[Nautilus-list] Hardware-View cleanup.



Here is my first patch. It's literally a five minute cleanup to make it
look more like 1.x releases. I've also included a salvaged
i-harddisk.png image, renamed it HD_drive.png (to match naming style of
CD) as the patch for nautilus/components/icons/Makefile.am looks for it.


-- 
_______________________________________
Glen Gray             Software Engineer
a n t e f a c t o     t: +353 1 8586006
www.antefacto.com     f: +353 1 8586014
181 Parnell Street - Dublin 1 - Ireland
? hardware_cleanup.patch
? components/hardware/icons/HD_drive.png
Index: components/hardware/nautilus-hardware-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/hardware/nautilus-hardware-view.c,v
retrieving revision 1.52
diff -p -u -r1.52 nautilus-hardware-view.c
--- components/hardware/nautilus-hardware-view.c	2002/03/07 19:35:38	1.52
+++ components/hardware/nautilus-hardware-view.c	2002/03/19 15:53:01
@@ -438,7 +438,7 @@ setup_form_title (NautilusHardwareView *
 	if (image_name != NULL) {
  		file_name = gnome_program_locate_file (
                         NULL, GNOME_FILE_DOMAIN_PIXMAP, image_name, TRUE, NULL);
-
+		
 		if (file_name != NULL) {
 			temp_widget = gtk_image_new_from_file (file_name);
 			gtk_box_pack_start (GTK_BOX(temp_container), temp_widget, 0, 0, 8);		
@@ -448,7 +448,7 @@ setup_form_title (NautilusHardwareView *
 	}
 	
  	temp_widget = gtk_label_new (title_text);
-	eel_gtk_label_set_scale (GTK_LABEL (temp_widget), PANGO_SCALE_X_LARGE);
+	eel_gtk_label_set_scale (GTK_LABEL (temp_widget), PANGO_SCALE_XX_LARGE);
 
 	gtk_box_pack_start (GTK_BOX (temp_container), temp_widget, 0, 0, 8);			 	
 	gtk_widget_show (temp_widget);
@@ -531,6 +531,7 @@ setup_overview_form (NautilusHardwareVie
 		
 		temp_widget = gtk_label_new (temp_text);
 		eel_gtk_label_set_scale (GTK_LABEL (temp_widget), PANGO_SCALE_LARGE);
+		gtk_label_set_justify (GTK_LABEL (temp_widget), GTK_JUSTIFY_CENTER);
 		g_free(temp_text);
 		gtk_box_pack_start(GTK_BOX(temp_box), temp_widget, 0, 0, 0 );			
 		gtk_widget_show (temp_widget);
@@ -574,15 +575,12 @@ setup_overview_form (NautilusHardwareVie
                                 
                                 /* Set the icon depending on the type of device */
                                 if (strcmp (ide_media, "disk\n") == 0) {
-                                        file_name = gnome_program_locate_file (NULL,
-						GNOME_FILE_DOMAIN_PIXMAP,
-						"document-icons/i-harddisk.png",
-						TRUE, NULL);
+                                        file_name = nautilus_pixmap_file ("HD_drive.png");
                                 } else if (strcmp (ide_media, "cdrom\n") == 0) {
                                         file_name = nautilus_pixmap_file ("CD_drive.png");
                                 } else {
                                         /* some other device ... still set an icon */
-                                        file_name = nautilus_pixmap_file ("i-harddisk.png");
+                                        file_name = nautilus_pixmap_file ("HD_drive.png");
                                 }
                                 
 				pixmap_widget = gtk_image_new_from_file (file_name);
Index: components/hardware/icons/Makefile.am
===================================================================
RCS file: /cvs/gnome/nautilus/components/hardware/icons/Makefile.am,v
retrieving revision 1.2
diff -p -u -r1.2 Makefile.am
--- components/hardware/icons/Makefile.am	2000/10/20 22:15:08	1.2
+++ components/hardware/icons/Makefile.am	2002/03/19 15:53:01
@@ -2,6 +2,7 @@ icondir = $(datadir)/pixmaps/nautilus
 
 icon_DATA =			\
 	cpu.png			\
+	HD_drive.png		\
 	CD_drive.png		\
 	memory_chip.gif
 

Attachment: HD_drive.png
Description: PNG image



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