[nautilus/wip/ernestask/men-use: 4/5] files-view: Use g_autoptr for GtkBuilder
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/men-use: 4/5] files-view: Use g_autoptr for GtkBuilder
- Date: Mon, 17 Dec 2018 17:22:39 +0000 (UTC)
commit 5f9708104790dc2583409b5cfa88f50784f47749
Author: Ernestas Kulik <ekulik redhat com>
Date: Sun Dec 16 11:13:59 2018 +0100
files-view: Use g_autoptr for GtkBuilder
src/nautilus-files-view.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index d6bc99bc0..1031e87c6 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -7958,7 +7958,7 @@ static void
real_update_context_menus (NautilusFilesView *view)
{
NautilusFilesViewPrivate *priv;
- GtkBuilder *builder;
+ g_autoptr (GtkBuilder) builder = NULL;
GObject *object;
priv = nautilus_files_view_get_instance_private (view);
@@ -7973,8 +7973,6 @@ real_update_context_menus (NautilusFilesView *view)
object = gtk_builder_get_object (builder, "selection-menu");
priv->selection_menu = g_object_ref (G_MENU (object));
- g_object_unref (builder);
-
update_selection_menu (view);
update_background_menu (view);
update_extensions_menus (view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]