summaryrefslogtreecommitdiff
path: root/src/nautilus-window-manage-views.c
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2002-09-23 18:08:46 +0000
committerDave Camp <campd@src.gnome.org>2002-09-23 18:08:46 +0000
commita8658e4da40c3e647957ee27603975af361d6184 (patch)
tree69bd2eb415e278ee2d9ab58ecc03300a352bd56c /src/nautilus-window-manage-views.c
parent991503a752daa0150359cdc61d843c5a6a849752 (diff)
downloadnautilus-a8658e4da40c3e647957ee27603975af361d6184.tar.gz
Removed the current image indicator. (nautilus_side_pane_init),
2002-09-23 Dave Camp <dave@ximian.com> * src/nautilus-side-pane.c: (switch_page_callback): Removed the current image indicator. (nautilus_side_pane_init), (nautilus_side_pane_destroy): Put a tooltip on the close button. (nautilus_side_pane_show_panel): New function. (shortcut_clicked_callback), (create_shortcut), (nautilus_side_pane_set_panel_image): Take a GdkPixbuf instead of a GtkImage. Create a shortcut on the side pane for panels with images. * src/nautilus-side-pane.h: * src/nautilus-window-manage-views.c: (set_side_panel_image): Pass a pixbuf rather than a GtkImage.
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r--src/nautilus-window-manage-views.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 7be8dd94c..1d376fb8e 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1969,23 +1969,26 @@ set_side_panel_image (NautilusWindow *window,
NautilusViewFrame *side_panel,
const char *image_name)
{
- GtkWidget *image;
+ GdkPixbuf *pixbuf;
char *image_path;
- image = NULL;
+ pixbuf = NULL;
if (image_name && image_name[0]) {
image_path = nautilus_theme_get_image_path (image_name);
if (image_path) {
- image = gtk_image_new_from_file (image_path);
- gtk_widget_show (image);
+ pixbuf = gdk_pixbuf_new_from_file (image_path, NULL);
g_free (image_path);
}
}
nautilus_side_pane_set_panel_image (window->sidebar,
GTK_WIDGET (side_panel),
- image);
+ pixbuf);
+
+ if (pixbuf) {
+ g_object_unref (pixbuf);
+ }
}
static void