[gtk+] Send a notification when a GtkEntry icon's tooltip text changes



commit 77c0f9d8e66dd2eb85611d6ed982fc583c3fdb1c
Author: Mike Gorse <mgorse suse com>
Date:   Sun Nov 11 11:01:57 2012 -0600

    Send a notification when a GtkEntry icon's tooltip text changes

 gtk/gtkentry.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 0c637de..4f020b7 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -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");
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]