Index: shell/ev-window.c
===================================================================
RCS file: /cvs/gnome/evince/shell/ev-window.c,v
retrieving revision 1.198
diff -u -p -r1.198 ev-window.c
--- shell/ev-window.c	25 Jul 2005 20:25:15 -0000	1.198
+++ shell/ev-window.c	28 Jul 2005 09:27:27 -0000
@@ -2434,6 +2434,18 @@ ev_window_view_sidebar_cb (GtkAction *ac
 			    gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)));
 }
 
+static gboolean
+ev_window_sidebar_button_press_cb (GtkWidget *widget, GdkEventButton *event,
+ 			           EvWindow *ev_window)
+{
+	if (event->type == GDK_2BUTTON_PRESS) {
+		update_chrome_flag (ev_window, EV_CHROME_SIDEBAR,
+ 	    			    GCONF_CHROME_SIDEBAR,
+	    			    FALSE);
+	}
+	return FALSE;
+}
+
 static void
 ev_window_sidebar_visibility_changed_cb (EvSidebar *ev_sidebar, GParamSpec *pspec,
 					 EvWindow   *ev_window)
@@ -3300,6 +3312,10 @@ ev_window_init (EvWindow *ev_window)
 	g_signal_connect (ev_window->priv->hpaned,
 			  "notify::position",
 			  G_CALLBACK (ev_window_sidebar_position_change_cb),
+			  ev_window);
+	g_signal_connect (ev_window->priv->hpaned,
+			  "button-press-event",
+			  G_CALLBACK (ev_window_sidebar_button_press_cb),
 			  ev_window);
 	
 	sidebar_size = SIDEBAR_DEFAULT_SIZE;
