Skip to content

Commit 7eb062a

Browse files
committed
nemo-places-sidebar.c: Only register the special eject icon size
once. This is only needed once for the application.
1 parent b81ab12 commit 7eb062a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nemo-places-sidebar.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,11 +4111,6 @@ nemo_places_sidebar_init (NemoPlacesSidebar *sidebar)
41114111
GtkTreeSelection *selection;
41124112
GtkStyleContext *style_context;
41134113

4114-
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &menu_icon_pixels, NULL);
4115-
EJECT_ICON_SIZE_NOT_HOVERED = gtk_icon_size_register ("menu-icon-size-small",
4116-
menu_icon_pixels - EJECT_ICON_SIZE_REDUCTION,
4117-
menu_icon_pixels - EJECT_ICON_SIZE_REDUCTION);
4118-
41194114
sidebar->action_manager = nemo_action_manager_new ();
41204115
sidebar->actions_changed_id = g_signal_connect_swapped (sidebar->action_manager,
41214116
"changed",
@@ -4489,6 +4484,11 @@ nemo_places_sidebar_class_init (NemoPlacesSidebarClass *class)
44894484

44904485
widget_class->style_set = nemo_places_sidebar_style_set;
44914486
widget_class->focus = nemo_places_sidebar_focus;
4487+
4488+
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &menu_icon_pixels, NULL);
4489+
EJECT_ICON_SIZE_NOT_HOVERED = gtk_icon_size_register ("menu-icon-size-small",
4490+
menu_icon_pixels - EJECT_ICON_SIZE_REDUCTION,
4491+
menu_icon_pixels - EJECT_ICON_SIZE_REDUCTION);
44924492
}
44934493

44944494
static gboolean

0 commit comments

Comments
 (0)