[PATCH] bug 145237: parent-folders button does not look like a button



Attached is a patch to help make the parent-folder button a little more
prominent. A quick screenshoot of the patch in action can be found at:
http://bugzilla.gnome.org/attachment.cgi?id=32231&action=view

-- Michael
Index: src/nautilus-spatial-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-spatial-window.c,v
retrieving revision 1.433
diff -p -u -r1.433 nautilus-spatial-window.c
--- src/nautilus-spatial-window.c	21 Jun 2004 18:33:43 -0000	1.433
+++ src/nautilus-spatial-window.c	5 Oct 2004 03:58:57 -0000
@@ -517,6 +517,10 @@ location_button_clicked_callback (GtkWid
 		name = nautilus_get_uri_shortname_for_display (uri);
 		menu_item = gtk_image_menu_item_new_with_label (name);
 		if (first_item == NULL) {
+			GtkWidget *open_icon = gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON);
+
+			gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), open_icon);
+
 			first_item = menu_item;
 		}
 		
@@ -585,6 +589,7 @@ nautilus_spatial_window_instance_init (N
 	GtkRcStyle *rc_style;
 	GtkWidget *arrow;
 	GtkWidget *hbox;
+	GtkWidget *folder_icon;
 
 	window->details = g_new0 (NautilusSpatialWindowDetails, 1);
 	window->affect_spatial_window_on_next_location_change = TRUE;
@@ -603,7 +608,7 @@ nautilus_spatial_window_instance_init (N
 
 	window->details->location_button = gtk_button_new ();
 	gtk_button_set_relief (GTK_BUTTON (window->details->location_button),
-			       GTK_RELIEF_NONE);
+			       GTK_RELIEF_NORMAL);
 	rc_style = gtk_widget_get_modifier_style (window->details->location_button);
 	rc_style->xthickness = 0;
 	rc_style->ythickness = 0;
@@ -616,6 +621,10 @@ nautilus_spatial_window_instance_init (N
 	gtk_container_add (GTK_CONTAINER (window->details->location_button), 
 			   hbox);
 	gtk_widget_show (hbox);
+
+	folder_icon = gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON);
+	gtk_box_pack_start (GTK_BOX (hbox), folder_icon, FALSE, FALSE, 0);
+	gtk_widget_show (folder_icon);
 	
 	window->details->location_label = gtk_label_new ("");
 	gtk_box_pack_start (GTK_BOX (hbox), window->details->location_label,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]