Enlightenment CVS committal
Author : andreas99
Project : e16
Module : tools
Dir : e16/tools/e16menuedit2/src
Modified Files:
callbacks.c
Log Message:
svg bug workaround
===================================================================
RCS file: /cvsroot/enlightenment/e16/tools/e16menuedit2/src/callbacks.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- callbacks.c 27 Jul 2004 13:27:16 -0000 1.3
+++ callbacks.c 27 Jul 2004 22:41:55 -0000 1.4
@@ -172,7 +172,9 @@
entry_select = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (
resize_combo)->entry));
- /* temporary fix for probability broken gdk function */
+ /* temporary fix for probability broken librsvg function.
+ * it should autodetect librsvg version...
+ */
right = g_malloc (3);
strsplit (filename, &right, g_utf8_strlen (filename, -1) - 3);
if (strcmp (right, "svg"))
@@ -183,11 +185,11 @@
}
else
{
- width = 64;
- height = 64;
+ width = ICON_SIZE_AUTO;
+ height = ICON_SIZE_AUTO;
}
- g_free (right);
-
+ g_free (right);
+
if (width <= 0)
width = 1;
if (height <= 0)
@@ -413,7 +415,9 @@
{
gchar *right;
- /* temporary fix for probability broken gdk function */
+ /* temporary fix for probability broken librsvg function
+ * it should autodetect librsvg version...
+ */
right = g_malloc (3);
strsplit (filename, &right, g_utf8_strlen (filename, -1) - 3);
@@ -427,7 +431,7 @@
height = ICON_SIZE_AUTO;
}
g_free (right);
-
+
if ((width > ICON_SIZE_AUTO) || (height > ICON_SIZE_AUTO))
{
width = ICON_SIZE_AUTO;
-------------------------------------------------------
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