summaryrefslogtreecommitdiff
path: root/gtk/gtkmenutoolbutton.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2007-09-10 12:46:23 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-09-10 12:46:23 +0000
commit6f9364eceba8ce6db737d26cd15ec4a91a03ca27 (patch)
tree971f351439353c94f47eb1e0888e91c94fe23fea /gtk/gtkmenutoolbutton.c
parentd3808c705b09f0ad4ad7e98dd34b7d5a2e604a59 (diff)
downloadgtk+-6f9364eceba8ce6db737d26cd15ec4a91a03ca27.tar.gz
when creating a new box, be sure to transfer a possible tooltip from the
2007-09-10 Kristian Rietveld <kris@imendio.com> * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_construct_contents): when creating a new box, be sure to transfer a possible tooltip from the old to the new box. (Fixes #458283, reported by Christian Persch). svn path=/trunk/; revision=18785
Diffstat (limited to 'gtk/gtkmenutoolbutton.c')
-rw-r--r--gtk/gtkmenutoolbutton.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 8b20766871..8d7f611ea5 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -106,6 +106,17 @@ gtk_menu_tool_button_construct_contents (GtkMenuToolButton *button)
if (priv->box)
{
+ gchar *tmp;
+
+ /* Transfer a possible tooltip to the new box */
+ g_object_get (priv->box, "tooltip-markup", &tmp, NULL);
+
+ if (tmp)
+ {
+ g_object_set (box, "tooltip-markup", tmp, NULL);
+ g_free (tmp);
+ }
+
/* Note: we are not destroying the button and the arrow_button
* here because they were removed from their container above
*/