[nautilus/wip/gaction: 18/19] toolbar: don't unref an object we don't own
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction: 18/19] toolbar: don't unref an object we don't own
- Date: Mon, 22 Dec 2014 11:03:23 +0000 (UTC)
commit bd2d3aab840b369bb4997d02dd11f39470162510
Author: Cosimo Cecchi <cosimo endlesm com>
Date: Mon Dec 22 17:04:55 2014 +0800
toolbar: don't unref an object we don't own
The menu is owned by the button - no need to unref it here.
src/nautilus-toolbar.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index f842fdf..af63b76 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -583,7 +583,6 @@ nautilus_toolbar_reset_menus (NautilusToolbar *self)
g_print ("reset toolbar menus\n");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (self->priv->action_button), NULL);
- g_clear_object (&self->priv->action_menu);
builder = gtk_builder_new_from_resource ("/org/gnome/nautilus/nautilus-toolbar-action-menu.xml");
self->priv->action_menu = G_MENU (gtk_builder_get_object (builder, "action-menu"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]