summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias.hasselmann@gmx.de>2007-06-15 18:24:55 +0000
committerMathias Hasselmann <hasselmm@src.gnome.org>2007-06-15 18:24:55 +0000
commit9b604e29a25ea6db2b65a8592af205467591e23f (patch)
treea2425256a3ed223b8129393c3a0579177fde72d4 /gtk/gtkwidget.h
parent4d638bf0c15c363f2c28cafc1485cf4066885383 (diff)
downloadgtk+-9b604e29a25ea6db2b65a8592af205467591e23f.tar.gz
Introduce convenience property "GtkWidget:tooltip-text" taking care of
2007-06-15 Mathias Hasselmann <mathias.hasselmann@gmx.de> * docs/reference/gtk/gtk-sections.txt, gtk/gtk.symbols, gtk/gtkwidget.c, gtk/gtkwidget.h, tests/testtooltips.c: Introduce convenience property "GtkWidget:tooltip-text" taking care of escaping it for unwanted markup entities. Add functions to set tooltip text: gtk_widget_set_tooltip_text(), gtk_widget_set_tooltip_markup(), gtk_widget_get_tooltip_text(), gtk_widget_get_tooltip_markup(). * gtk/gtktooltip.c, gtk/gtktooltip.h: Add gtk_tooltip_set_text() to set the tooltip text without using markup. Patches from Emmanuele Bassi (#447643). svn path=/trunk/; revision=18142
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r--gtk/gtkwidget.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index efb2b73244..7d88d62ab6 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -787,11 +787,16 @@ void gtk_widget_add_mnemonic_label (GtkWidget *widget,
void gtk_widget_remove_mnemonic_label (GtkWidget *widget,
GtkWidget *label);
-void gtk_widget_set_tooltip_window (GtkWidget *widget,
- GtkWindow *custom_window);
-GtkWindow *gtk_widget_get_tooltip_window (GtkWidget *widget);
-void gtk_widget_trigger_tooltip_query (GtkWidget *widget);
-
+void gtk_widget_set_tooltip_window (GtkWidget *widget,
+ GtkWindow *custom_window);
+GtkWindow *gtk_widget_get_tooltip_window (GtkWidget *widget);
+void gtk_widget_trigger_tooltip_query (GtkWidget *widget);
+void gtk_widget_set_tooltip_text (GtkWidget *widget,
+ const gchar *text);
+gchar * gtk_widget_get_tooltip_text (GtkWidget *widget);
+void gtk_widget_set_tooltip_markup (GtkWidget *widget,
+ const gchar *markup);
+gchar * gtk_widget_get_tooltip_markup (GtkWidget *widget);
GType gtk_requisition_get_type (void) G_GNUC_CONST;
GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition);