[nautilus/wip/gaction: 19/19] toolbar: cleanups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction: 19/19] toolbar: cleanups
- Date: Mon, 22 Dec 2014 11:03:28 +0000 (UTC)
commit b518064a805a0f912f2e37b39f7c085207deb623
Author: Cosimo Cecchi <cosimo endlesm com>
Date: Mon Dec 22 19:02:13 2014 +0800
toolbar: cleanups
src/nautilus-toolbar.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index af63b76..3a82979 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -385,11 +385,8 @@ zoom_level_changed (GtkRange *range,
zoom_level = gtk_range_get_value (range);
slot = nautilus_window_get_active_slot (self->priv->window);
view = nautilus_window_slot_get_current_view (slot);
-
view_action_group = nautilus_view_get_action_group (view);
- zoom_level = gtk_range_get_value (range);
-
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group), "zoom-to-level");
g_action_change_state (action,
g_variant_new_int32 ((gint) zoom_level));
@@ -527,7 +524,7 @@ nautilus_toolbar_class_init (NautilusToolbarClass *klass)
g_object_class_install_properties (oclass, NUM_PROPERTIES, properties);
gtk_widget_class_set_template_from_resource (widget_class,
- "/org/gnome/nautilus/nautilus-toolbar-ui.xml");
+ "/org/gnome/nautilus/nautilus-toolbar-ui.xml");
gtk_widget_class_bind_template_child_private (widget_class, NautilusToolbar, view_button);
gtk_widget_class_bind_template_child_private (widget_class, NautilusToolbar, action_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]