Commit 6f9364ec authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

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
parent d3808c70
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).
2007-09-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_key_press): only start
......
......@@ -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
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment