Enlightenment CVS committal

Author  : andreas99
Project : e16
Module  : tools

Dir     : e16/tools/e16menuedit2/src


Modified Files:
        callbacks.c callbacks.h 


Log Message:
added more icon size to fit the "most common" sizes. Is a 64x64 limit enough? hm...

===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/callbacks.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- callbacks.c 25 Jul 2004 17:21:51 -0000      1.1
+++ callbacks.c 27 Jul 2004 11:21:18 -0000      1.2
@@ -135,6 +135,9 @@
   glist = g_list_append (glist, ICON_SIZE2_STRING);
   glist = g_list_append (glist, ICON_SIZE3_STRING);
   glist = g_list_append (glist, ICON_SIZE4_STRING);
+  glist = g_list_append (glist, ICON_SIZE5_STRING);
+  glist = g_list_append (glist, ICON_SIZE6_STRING);
+  glist = g_list_append (glist, ICON_SIZE7_STRING);
   gtk_combo_set_popdown_strings (GTK_COMBO (resize_combo), glist);
   gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (resize_combo)->entry),
                       "auto (64x64 limit)");
@@ -210,6 +213,21 @@
           width_new = ICON_SIZE4;
           height_new = ICON_SIZE4;
         }
+        else if (!strcmp (entry_select, ICON_SIZE5_STRING))
+        {
+          width_new = ICON_SIZE5;
+          height_new = ICON_SIZE5;
+        }
+        else if (!strcmp (entry_select, ICON_SIZE6_STRING))
+        {
+          width_new = ICON_SIZE6;
+          height_new = ICON_SIZE6;
+        }
+        else if (!strcmp (entry_select, ICON_SIZE7_STRING))
+        {
+          width_new = ICON_SIZE7;
+          height_new = ICON_SIZE7;
+        }
 
         if ((width == width_new) && (height == height_new))
         {
@@ -221,15 +239,15 @@
                         width_new,
                         height_new,
                         NULL);
-          
+
           sprintf (filename_resized, "%s/%s/%s/%s_%dx%d.png", homedir (getuid ()),
                    APP_HOME, ICON_DIR, g_path_get_basename (filename),
-                  width_new, height_new);        
-       
-         g_free (filename);
-         filename = strdup (filename_resized);
-       
-         /*printf ("%s\n", filename);*/
+                   width_new, height_new);
+
+          g_free (filename);
+          filename = strdup (filename_resized);
+
+          /*printf ("%s\n", filename);*/
 
           gdk_pixbuf_save (icon_pixbuf, filename, "png", NULL, NULL);
         }
@@ -242,7 +260,7 @@
                               -1);
         }
       }
-      
+
       g_free (filename);
       break;
     }
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/callbacks.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- callbacks.h 25 Jul 2004 17:21:51 -0000      1.1
+++ callbacks.h 27 Jul 2004 11:21:18 -0000      1.2
@@ -26,13 +26,19 @@
 #define ICON_SIZE_AUTO_STRING "auto (64x64 limit)"
 #define ICON_SIZE1_STRING "64x64"
 #define ICON_SIZE2_STRING "48x48"
-#define ICON_SIZE3_STRING "32x32"
-#define ICON_SIZE4_STRING "16x16"
+#define ICON_SIZE3_STRING "36x36"
+#define ICON_SIZE4_STRING "32x32"
+#define ICON_SIZE5_STRING "24x24"
+#define ICON_SIZE6_STRING "22x22"
+#define ICON_SIZE7_STRING "16x16"
 
 #define ICON_SIZE_AUTO 64
 #define ICON_SIZE1 64
 #define ICON_SIZE2 48
-#define ICON_SIZE3 32
-#define ICON_SIZE4 16
+#define ICON_SIZE3 36
+#define ICON_SIZE4 32
+#define ICON_SIZE5 24
+#define ICON_SIZE6 22
+#define ICON_SIZE7 16
 
 #endif /* _CALLBACKS_H */




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to