}
}
+static void
+popover_destroy_cb (GtkMenuButton *menu_button)
+{
+ gtk_menu_button_set_popover (menu_button, NULL);
+}
+
/**
* gtk_menu_button_set_direction:
* @menu_button: a #GtkMenuButton
if (priv->popover)
{
+ g_signal_handlers_disconnect_by_func (priv->popover,
+ popover_destroy_cb,
+ object);
gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
priv->popover = NULL;
}
return priv->use_popover;
}
-static void
-popover_destroy_cb (GtkMenuButton *menu_button)
-{
- gtk_menu_button_set_popover (menu_button, NULL);
-}
-
/**
* gtk_menu_button_set_popover:
* @menu_button: a #GtkMenuButton
g_signal_handlers_disconnect_by_func (priv->popover,
menu_deactivate_cb,
menu_button);
+ g_signal_handlers_disconnect_by_func (priv->popover,
+ popover_destroy_cb,
+ menu_button);
gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
}