[Nautilus-list] Tiny patch



Here is a small patch to 

1) Change the hackish reporting of RAM size in Hardware View to a
different hackish  formula that reports the RAM size more accurately
with more RAM sizes than whats there. But it's still not correct.

2)Display an icon in the sidebar when in the hardware view as opposed to
the blank icon that's there currently. Attached is the icon too.


-- 
_______________________________________
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
? size_icon.patch
? components/hardware/icons/computer.png
Index: components/hardware/nautilus-hardware-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/hardware/nautilus-hardware-view.c,v
retrieving revision 1.53
diff -p -u -r1.53 nautilus-hardware-view.c
--- components/hardware/nautilus-hardware-view.c	2002/03/20 02:52:49	1.53
+++ components/hardware/nautilus-hardware-view.c	2002/04/08 15:03:36
@@ -339,7 +339,7 @@ get_RAM_description (void)
         /* strip kbyte suffix */
 	temp_str[strlen(temp_str) - 3] = '\0';
 
-	ram_size = (strtoul (temp_str, NULL, 10) + 500) / 1000;
+	ram_size = (strtoul (temp_str, NULL, 10) + 1024) / 1000;
 	if (ram_size >= 1000) {
 		result = g_strdup_printf (_("%lu GB RAM"), ram_size / 1000);
 	} else {
Index: components/hardware/icons/Makefile.am
===================================================================
RCS file: /cvs/gnome/nautilus/components/hardware/icons/Makefile.am,v
retrieving revision 1.3
diff -p -u -r1.3 Makefile.am
--- components/hardware/icons/Makefile.am	2002/03/20 02:52:50	1.3
+++ components/hardware/icons/Makefile.am	2002/04/08 15:03:36
@@ -4,6 +4,7 @@ icon_DATA =			\
 	cpu.png			\
 	HD_drive.png		\
 	CD_drive.png		\
-	memory_chip.gif
+	memory_chip.gif		\
+	computer.png
 
 EXTRA_DIST = $(icon_DATA)

Attachment: computer.png
Description: PNG image



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