~cldx3000/+junk/slingshot

« back to all changes in this revision

Viewing changes to frontend/widgets/Searchbar.vala

  • Committer: Joern Konopka
  • Date: 2011-02-12 14:11:50 UTC
  • mfrom: (37.1.3 slingshot)
  • Revision ID: cldx3000@googlemail.com-20110212141150-s5vhjm4u6dp6fjog
Merging latest Changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
                    this.reset_font ();
29
29
                    this.label.label = this.buffer.text; 
30
30
                    this.label.select_region (-1, -1);
31
 
                    this.clear_icon.set_from_stock("edit-clear-symbolic", Gtk.IconSize.MENU);
 
31
                    this.clear_icon.visible = true;
32
32
                }
33
33
            }
34
34
        }
98
98
            clear_icon_wrapper.button_release_event.connect ( () => { this.hint (); return true; });
99
99
            wrapper.pack_end (clear_icon_wrapper, false, true, 3);
100
100
            
101
 
            // Hint it
102
 
            this.hint ();
103
 
            
104
101
            // Connect signals and callbacks
105
102
            this.buffer.changed.connect (on_changed);
106
103
            this.expose_event.connect (this.draw_background);
 
104
            this.realize.connect (() => {
 
105
                                this.hint (); // hint it
 
106
                        });
107
107
        
108
108
        }
109
109
        
111
111
            this.buffer.text = "";
112
112
            this.label.label = this.hint_string;
113
113
            this.grey_out ();
114
 
            this.clear_icon.clear ();
 
114
            this.clear_icon.visible = false;
115
115
        }
116
116
 
117
117
        public void unhint () {