fix substitute pixmap bug
authorOliver Haertel <o.h.a@gmx.net>
Thu, 8 Aug 2002 06:11:08 +0000 (06:11 +0000)
committerOliver Haertel <o.h.a@gmx.net>
Thu, 8 Aug 2002 06:11:08 +0000 (06:11 +0000)
ChangeLog.claws
configure.in
src/prefs_toolbar.c

index 830f256130c327d271a7c8d265193d13595344a8..e534592aa02cd9eeb19edcc0fe269b7f00dad4b0 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-08 [oliver]    0.8.1claws37
+
+       * src/prefs_toolbar.c
+               fix substitute pixmap bug
+
 2002-08-08 [paul]      0.8.1claws36
 
        * sync with 0.8.1cvs19
 2002-08-08 [paul]      0.8.1claws36
 
        * sync with 0.8.1cvs19
index 4f735644a445d37e95d4843f17f6649f6e8054d8..1e029aa33d6376cbcd13055ae8ce3d46a4073801 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws36
+EXTRA_VERSION=claws37
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 7a48a2c11d4e20ce659ddd8c5bd74b4acb41fc7f..3187422156d0ee99287b8ace6157fe4259baaa53 100644 (file)
@@ -330,7 +330,7 @@ static gint prefs_toolbar_register(void)
        gint row_set = 0;
        GdkPixmap *xpm;
        GdkBitmap *xpmmask;
        gint row_set = 0;
        GdkPixmap *xpm;
        GdkBitmap *xpmmask;
-       gchar *item[5] = {0};
+       gchar *item[4];
 
        if (clist_icons->rows == 0) return -1; 
 
 
        if (clist_icons->rows == 0) return -1; 
 
@@ -348,7 +348,8 @@ static gint prefs_toolbar_register(void)
                item[3] = g_strdup ("");
                
                row_set = gtk_clist_append (GTK_CLIST (mtoolbar.clist_set), item);
                item[3] = g_strdup ("");
                
                row_set = gtk_clist_append (GTK_CLIST (mtoolbar.clist_set), item);
-       
+
+               g_free (item[0]);
        } else {
 
                if (is_duplicate (item[3])) {
        } else {
 
                if (is_duplicate (item[3])) {
@@ -376,7 +377,6 @@ static gint prefs_toolbar_register(void)
        gtk_clist_moveto(clist_set, row_set, 0, row_set/clist_set->rows, 0);
        gtk_clist_select_row (clist_set, row_set, 0);
 
        gtk_clist_moveto(clist_set, row_set, 0, row_set/clist_set->rows, 0);
        gtk_clist_select_row (clist_set, row_set, 0);
 
-       g_free (item[0]);
        g_free (item[2]);
        g_free (item[3]);
 
        g_free (item[2]);
        g_free (item[3]);
 
@@ -392,7 +392,7 @@ static gint prefs_toolbar_substitute(void)
        gint row_set = 0;
        GdkPixmap *xpm;
        GdkBitmap *xpmmask;
        gint row_set = 0;
        GdkPixmap *xpm;
        GdkBitmap *xpmmask;
-       gchar *item[5] = {0};
+       gchar *item[4];
        gchar *ac_set;
 
        /* no rows or nothing selected */
        gchar *ac_set;
 
        /* no rows or nothing selected */
@@ -417,6 +417,8 @@ static gint prefs_toolbar_substitute(void)
 
                gtk_clist_remove (clist_set, row_set);
                row_set = gtk_clist_insert (clist_set, row_set, item);
 
                gtk_clist_remove (clist_set, row_set);
                row_set = gtk_clist_insert (clist_set, row_set, item);
+
+               g_free (item[0]);
        } else {
 
                if ((is_duplicate(item[3])) && (g_strcasecmp(item[3], ac_set) != 0)){
        } else {
 
                if ((is_duplicate(item[3])) && (g_strcasecmp(item[3], ac_set) != 0)){
@@ -441,12 +443,9 @@ static gint prefs_toolbar_substitute(void)
                gtk_clist_set_pixmap (clist_set, row_set, 0, xpm, xpmmask);
        }
        
                gtk_clist_set_pixmap (clist_set, row_set, 0, xpm, xpmmask);
        }
        
-
-       
        gtk_clist_moveto(clist_set, row_set, 0, row_set/clist_set->rows, 0);
        gtk_clist_select_row (clist_set, row_set, 0);
 
        gtk_clist_moveto(clist_set, row_set, 0, row_set/clist_set->rows, 0);
        gtk_clist_select_row (clist_set, row_set, 0);
 
-       g_free (item[0]);
        g_free (item[2]);
        g_free (item[3]);
        
        g_free (item[2]);
        g_free (item[3]);