← Back to team overview

ayatana-commits team mailing list archive

[Branch ~indicator-applet-developers/indicator-me/trunk] Rev 111: visual update on text or hint property changes

 

------------------------------------------------------------
revno: 111
committer: David Barth <david.barth@xxxxxxxxxxxxx>
branch nick: indicator-me
timestamp: Wed 2010-09-22 12:44:42 +0200
message:
  visual update on text or hint property changes
modified:
  src/indicator-me.c


--
lp:indicator-me
https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk

Your team ayatana-commits is subscribed to branch lp:indicator-me.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk/+edit-subscription
=== modified file 'src/indicator-me.c'
--- src/indicator-me.c	2010-09-22 09:09:47 +0000
+++ src/indicator-me.c	2010-09-22 10:44:42 +0000
@@ -384,9 +384,13 @@
 
 	if (g_strcmp0 (prop, DBUSMENU_ENTRY_MENUITEM_PROP_TEXT) == 0) {
 		gtk_entry_set_text (entry, g_value_get_string (value));
+    if (gtk_entry_get_text_length (entry) == 0)
+      entry_maybe_show_hint (entry);
 	}
 	if (g_strcmp0 (prop, DBUSMENU_ENTRY_MENUITEM_PROP_HINT) == 0) {
     entry_set_hint (entry, g_value_get_string (value));
+    if (entry_hint_is_shown (GTK_WIDGET (entry)))
+        entry_maybe_show_hint (entry); /* visual update */
 	}
 }