Commit f1f83c1d authored by Matthias Clasen's avatar Matthias Clasen

More debork

svn path=/trunk/; revision=20766
parent 81376a6e
......@@ -794,7 +794,17 @@ gtk_menu_set_property (GObject *object,
gtk_menu_set_accel_path (menu, g_value_get_string (value));
break;
case PROP_ATTACH_WIDGET:
gtk_menu_attach_to_widget (menu, g_value_get_object (value), NULL);
{
GtkWidget *widget;
widget = gtk_menu_get_attach_widget (menu);
if (widget)
gtk_menu_detach (menu);
widget = (GtkWidget*) g_value_get_object (value);
if (widget)
gtk_menu_attach_to_widget (menu, widget, NULL);
}
break;
case PROP_TEAROFF_STATE:
gtk_menu_set_tearoff_state (menu, g_value_get_boolean (value));
......
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