[nautilus/wip/antoniof/preserve_popover_menu_model] pathbar: Don't keep ref to menus to copy
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/preserve_popover_menu_model] pathbar: Don't keep ref to menus to copy
- Date: Sun, 23 Jun 2019 17:49:57 +0000 (UTC)
commit 3e0bbe6b99f951c1b681c468d40c6d728980935a
Author: António Fernandes <antoniof gnome org>
Date: Sat Jun 22 19:14:41 2019 +0100
pathbar: Don't keep ref to menus to copy
We don't need to anymore. Also, we are leaking them.
src/nautilus-pathbar.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 6bf10c93d..820a562b9 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -104,8 +104,6 @@ struct _NautilusPathBar
GMenu *extensions_section;
GMenu *templates_submenu;
GMenu *button_menu;
- GMenu *extensions_background_menu;
- GMenu *templates_menu;
};
G_DEFINE_TYPE (NautilusPathBar, nautilus_path_bar, GTK_TYPE_CONTAINER);
@@ -924,12 +922,6 @@ nautilus_path_bar_set_extensions_background_menu (NautilusPathBar *self,
{
g_return_if_fail (NAUTILUS_IS_PATH_BAR (self));
- g_clear_object (&self->extensions_background_menu);
- if (menu != NULL)
- {
- self->extensions_background_menu = g_object_ref (menu);
- }
-
nautilus_gmenu_set_from_model (self->extensions_section,
G_MENU_MODEL (menu));
}
@@ -940,12 +932,6 @@ nautilus_path_bar_set_templates_menu (NautilusPathBar *self,
{
g_return_if_fail (NAUTILUS_IS_PATH_BAR (self));
- g_clear_object (&self->templates_menu);
- if (menu != NULL)
- {
- self->templates_menu = g_object_ref (menu);
- }
-
nautilus_gmenu_set_from_model (self->templates_submenu,
G_MENU_MODEL (menu));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]