summaryrefslogtreecommitdiff
path: root/src/nautilus-places-sidebar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2008-04-27 19:03:13 +0000
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-04-27 19:03:13 +0000
commit1699ec31d478155223c5499d42bdf21a37e25c5b (patch)
tree5d2734e37736b2c9b6f2b851a654e9e0be5ea0fe /src/nautilus-places-sidebar.c
parent5bbc8307e1651de2ab2d13d08fdc601e089cb461 (diff)
downloadnautilus-1699ec31d478155223c5499d42bdf21a37e25c5b.tar.gz
Always use single click policy in the Places sidebar. (#355760).
2008-04-27 Cosimo Cecchi <cosimoc@gnome.org> * src/nautilus-places-sidebar.c: (nautilus_places_sidebar_init): Always use single click policy in the Places sidebar. (#355760). svn path=/trunk/; revision=14102
Diffstat (limited to 'src/nautilus-places-sidebar.c')
-rw-r--r--src/nautilus-places-sidebar.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 16d07c5c1..766d408ce 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -590,27 +590,6 @@ row_activated_callback (GtkTreeView *tree_view,
}
static void
-update_click_policy (NautilusPlacesSidebar *sidebar)
-{
- int policy;
-
- policy = eel_preferences_get_enum (NAUTILUS_PREFERENCES_CLICK_POLICY);
-
- eel_gtk_tree_view_set_activate_on_single_click
- (sidebar->tree_view, policy == NAUTILUS_CLICK_POLICY_SINGLE);
-}
-
-static void
-click_policy_changed_callback (gpointer user_data)
-{
- NautilusPlacesSidebar *sidebar;
-
- sidebar = NAUTILUS_PLACES_SIDEBAR (user_data);
-
- update_click_policy (sidebar);
-}
-
-static void
desktop_location_changed_callback (gpointer user_data)
{
NautilusPlacesSidebar *sidebar;
@@ -1960,11 +1939,8 @@ nautilus_places_sidebar_init (NautilusPlacesSidebar *sidebar)
g_signal_connect (tree_view, "button-press-event",
G_CALLBACK (bookmarks_button_press_event_cb), sidebar);
- eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_CLICK_POLICY,
- click_policy_changed_callback,
- sidebar,
- G_OBJECT (sidebar));
- update_click_policy (sidebar);
+ eel_gtk_tree_view_set_activate_on_single_click (sidebar->tree_view,
+ TRUE);
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
desktop_location_changed_callback,