~elementary-apps/scratch/scratch

« back to all changes in this revision

Viewing changes to src/Widgets/SearchManager.vala

  • Committer: RabbitBot
  • Author(s): ffabio-96-x, ffabio-96-x
  • Date: 2014-10-05 03:10:08 UTC
  • mfrom: (1355.2.3 fix-1337291)
  • Revision ID: rabbitbot-20141005031008-ffcfazehgt9h1tfu
* Replace deprecated Granite.LightWindow with Gtk.Dialog in TemplateManager
* Replace deprecated Granite.SearchBar with Gtk.SearchEntry in SearchManager

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        private Gtk.ToolItem tool_arrow_up;
33
33
        private Gtk.ToolItem tool_arrow_down;
34
34
 
35
 
        public Granite.Widgets.SearchBar search_entry;
36
 
        public Granite.Widgets.SearchBar replace_entry;
 
35
        public Gtk.SearchEntry search_entry;
 
36
        public Gtk.SearchEntry replace_entry;
37
37
        public Gtk.SpinButton go_to_entry;
38
38
        private Gtk.Adjustment go_to_adj;
39
39
        
68
68
            // Main entries
69
69
            // Search entry
70
70
            this.window = window;
71
 
            search_entry = new Granite.Widgets.SearchBar (_("Find"));
 
71
            search_entry = new Gtk.SearchEntry ();
 
72
            search_entry.placeholder_text = _("Find");
72
73
            search_entry.width_request = 250;
73
74
            
74
75
            // Back and Next buttons
87
88
            previous.image = i;
88
89
            
89
90
            // Replace entry
90
 
            replace_entry = new Granite.Widgets.SearchBar (_("Replace With"));
 
91
            replace_entry = new Gtk.SearchEntry ();
 
92
            replace_entry.placeholder_text = _("Replace With");
91
93
            replace_entry.set_icon_from_icon_name (Gtk.EntryIconPosition.PRIMARY, "edit-symbolic");
92
94
            replace_entry.width_request = 250;
93
95