[file-roller] menu tool button: keep a ref of the menu button
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] menu tool button: keep a ref of the menu button
- Date: Thu, 6 Dec 2012 09:43:54 +0000 (UTC)
commit 599709cfd314c456b3b7626b9aa40058fd7cfa67
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 6 10:42:29 2012 +0100
menu tool button: keep a ref of the menu button
src/gth-toggle-menu-tool-button.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gth-toggle-menu-tool-button.c b/src/gth-toggle-menu-tool-button.c
index ace6cc1..ce6aa3c 100644
--- a/src/gth-toggle-menu-tool-button.c
+++ b/src/gth-toggle-menu-tool-button.c
@@ -694,6 +694,7 @@ gth_toggle_menu_tool_button_init (GthToggleMenuToolButton *button)
button->priv->contents_invalid = TRUE;
button->priv->menu_button = gtk_menu_button_new ();
+ g_object_ref_sink (button->priv->menu_button);
gtk_button_set_focus_on_click (GTK_BUTTON (button->priv->menu_button), FALSE);
gtk_container_add (GTK_CONTAINER (button), button->priv->menu_button);
gtk_widget_show (button->priv->menu_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]