Do not call popover_set_relative with NULL

This gives a critical warning since that function expects a
valid widget.

https://bugzilla.gnome.org/show_bug.cgi?id=724407
This commit is contained in:
Paolo Borelli 2014-02-15 11:30:53 +01:00 committed by Matthias Clasen
parent 479babf339
commit 2f379604d1

View File

@ -1097,7 +1097,6 @@ gtk_menu_button_set_popover (GtkMenuButton *menu_button,
g_signal_handlers_disconnect_by_func (priv->popover,
menu_deactivate_cb,
menu_button);
gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
}
priv->popover = popover;