elementaryart team mailing list archive
-
elementaryart team
-
Mailing list archive
-
Message #01870
[Merge] lp:~markellmtthw/granite/fix-916950 into lp:granite
Matthew Markell has proposed merging lp:~markellmtthw/granite/fix-916950 into lp:granite.
Requested reviews:
elementary Pantheon team (elementary-pantheon)
Related bugs:
Bug #916950 in Granite: "Clear placeholder-text when Widgets.SearchBar is insensitive"
https://bugs.launchpad.net/granite/+bug/916950
For more details, see:
https://code.launchpad.net/~markellmtthw/granite/fix-916950/+merge/88629
--
https://code.launchpad.net/~markellmtthw/granite/fix-916950/+merge/88629
Your team elementaryart (old) is subscribed to branch lp:granite.
=== modified file 'lib/Widgets/Entries.vala'
--- lib/Widgets/Entries.vala 2011-11-08 21:45:07 +0000
+++ lib/Widgets/Entries.vala 2012-01-16 00:45:29 +0000
@@ -71,11 +71,13 @@
private void grey_out () {
override_font (Pango.FontDescription.from_string ("italic"));
override_color(Gtk.StateFlags.NORMAL, insensitive_color);
+ this.text = "";
}
private void reset_font () {
override_font (Pango.FontDescription.from_string ("normal"));
override_color(Gtk.StateFlags.NORMAL, normal_color);
+ this.text = hint_string;
}
public new string get_text () {