]> Pileus Git - ~andy/gtk/commitdiff
Send a notification when a GtkEntry icon's tooltip text changes
authorMike Gorse <mgorse@suse.com>
Sun, 11 Nov 2012 17:01:57 +0000 (11:01 -0600)
committerMike Gorse <mgorse@suse.com>
Mon, 12 Nov 2012 15:15:46 +0000 (09:15 -0600)
gtk/gtkentry.c

index 0c637de275ae308f1ec224bf4cbf461076e3509a..4f020b72a0e717c6623c7881cadef9a0aa025b83 100644 (file)
@@ -8807,6 +8807,9 @@ gtk_entry_set_icon_tooltip_text (GtkEntry             *entry,
   icon_info->tooltip = tooltip ? g_markup_escape_text (tooltip, -1) : NULL;
 
   ensure_has_tooltip (entry);
+
+  g_object_notify (G_OBJECT (entry),
+                   icon_pos == GTK_ENTRY_ICON_PRIMARY ? "primary-icon-tooltip-text" : "secondary-icon-tooltip-text");
 }
 
 /**