diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2000-09-21 23:51:19 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2000-09-21 23:51:19 +0000 |
commit | 1e2203ebe50bc6ba15d7a3750490af2048eac699 (patch) | |
tree | 696923b3f7cb48a8e17441e7c241ed4a4c6f3011 /src/nautilus-sidebar.c | |
parent | 81952cfbc769cacc05270760e09c33746f7962ed (diff) | |
download | nautilus-1e2203ebe50bc6ba15d7a3750490af2048eac699.tar.gz |
Fixed bug 2090, Sidebar panel shrinks when back from text or image view to
2000-09-21 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 2090, Sidebar panel shrinks when back from text
or image view to directory view.
* src/nautilus-sidebar.c: (make_button_box),
(nautilus_sidebar_update_buttons):
Fixed logic where button centering was being shown
at the wrong time, messing up spacing of sidebar panels.
* components/image-viewer/nautilus-image-view.c: (redraw_view),
(configure_size), (view_factory_common):
Fixed cases where image data might be NULL.
Diffstat (limited to 'src/nautilus-sidebar.c')
-rw-r--r-- | src/nautilus-sidebar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nautilus-sidebar.c b/src/nautilus-sidebar.c index e79986a9e..29675d8fd 100644 --- a/src/nautilus-sidebar.c +++ b/src/nautilus-sidebar.c @@ -187,7 +187,6 @@ static void make_button_box (NautilusSidebar *sidebar) { sidebar->details->button_box_centerer = GTK_HBOX (gtk_hbox_new (FALSE, 0)); - gtk_widget_show (GTK_WIDGET (sidebar->details->button_box_centerer)); gtk_box_pack_start_defaults (GTK_BOX (sidebar->details->container), GTK_WIDGET (sidebar->details->button_box_centerer)); @@ -1311,10 +1310,12 @@ nautilus_sidebar_update_buttons (NautilusSidebar *sidebar) add_command_buttons (sidebar, short_application_list); gnome_vfs_mime_application_list_free (short_application_list); - /* Hide button box if a sidebar panel is showing. */ + /* Hide button box if a sidebar panel is showing. Otherwise, show it! */ if (sidebar->details->selected_index != -1) { gtk_widget_hide (GTK_WIDGET (sidebar->details->button_box_centerer)); gtk_widget_hide (GTK_WIDGET (sidebar->details->title)); + } else { + gtk_widget_show (GTK_WIDGET (sidebar->details->button_box_centerer)); } } } |