summaryrefslogtreecommitdiff
path: root/gtk/gtktooltips.c
diff options
context:
space:
mode:
authorPadraig O'Briain <padraigo@src.gnome.org>2002-02-07 15:45:17 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2002-02-07 15:45:17 +0000
commit49ea86bccde551858cbf22ba19c5a1fe1eabf460 (patch)
tree581dc9f165391745de606f35b3fa81253b6086fd /gtk/gtktooltips.c
parent5bc235001ab5ea9071ae550c8ced0dcb88a725eb (diff)
downloadgdk-pixbuf-49ea86bccde551858cbf22ba19c5a1fe1eabf460.tar.gz
Change show_help signal to return gboolean instead of void. This allows
* gtk/gtkwidget.[ch]: Change show_help signal to return gboolean instead of void. This allows the keypress which invokes the signal to be propagated to the focus widgets ancestors if not handled by the focus widget. * gtk/gtktoolips.[ch] Change _gtk_tooltips_show_tip () to return a gboolean indicating whether widget has tooltip to display.
Diffstat (limited to 'gtk/gtktooltips.c')
-rw-r--r--gtk/gtktooltips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c
index 6f035292c..125a60732 100644
--- a/gtk/gtktooltips.c
+++ b/gtk/gtktooltips.c
@@ -537,7 +537,7 @@ gtk_tooltips_widget_remove (GtkWidget *widget,
gtk_tooltips_destroy_data (tooltipsdata);
}
-void
+gboolean
_gtk_tooltips_show_tip (GtkWidget *widget)
{
/* Showing the tip from the keyboard */
@@ -551,10 +551,11 @@ _gtk_tooltips_show_tip (GtkWidget *widget)
tooltipsdata = gtk_tooltips_data_get (widget);
if (tooltipsdata == NULL)
- return;
+ return FALSE;
gtk_tooltips_set_active_widget (tooltipsdata->tooltips,
widget);
gtk_tooltips_timeout (tooltipsdata->tooltips);
+ return TRUE;
}