2007-10-10 [colin] 3.0.2cvs53
authorColin Leroy <colin@colino.net>
Wed, 10 Oct 2007 16:58:53 +0000 (16:58 +0000)
committerColin Leroy <colin@colino.net>
Wed, 10 Oct 2007 16:58:53 +0000 (16:58 +0000)
* src/addressadd.c
* src/editaddress.c
* src/headerview.c
* src/textview.c
More error handling on saving pictures

ChangeLog
PATCHSETS
configure.ac
src/addressadd.c
src/editaddress.c
src/headerview.c
src/textview.c

index 67c4446..92dfe20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-10-10 [colin]     3.0.2cvs53
+
+       * src/addressadd.c
+       * src/editaddress.c
+       * src/headerview.c
+       * src/textview.c
+               More error handling on saving pictures
+
 2007-10-10 [colin]     3.0.2cvs52
 
        * src/printing.c
index e95eed2..8653732 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.9.2.18 -r 1.9.2.19 src/addressadd.c;  cvs diff -u -r 1.28.2.36 -r 1.28.2.37 src/addrindex.c;  cvs diff -u -r 1.14.2.34 -r 1.14.2.35 src/editaddress.c;  ) > 3.0.2cvs50.patchset
 ( cvs diff -u -r 1.1.2.4 -r 1.1.2.5 src/addrduplicates.c;  ) > 3.0.2cvs51.patchset
 ( cvs diff -u -r 1.1.2.9 -r 1.1.2.10 src/printing.c;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/printing.h;  ) > 3.0.2cvs52.patchset
+( cvs diff -u -r 1.9.2.19 -r 1.9.2.20 src/addressadd.c;  cvs diff -u -r 1.14.2.35 -r 1.14.2.36 src/editaddress.c;  cvs diff -u -r 1.8.2.25 -r 1.8.2.26 src/headerview.c;  cvs diff -u -r 1.96.2.186 -r 1.96.2.187 src/textview.c;  ) > 3.0.2cvs53.patchset
index af72d80..7f517e9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=52
+EXTRA_VERSION=53
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 73665ad..065b40f 100644 (file)
@@ -441,6 +441,11 @@ gboolean addressadd_selection( AddressIndex *addrIndex, const gchar *name,
                                gchar *name = g_strconcat( get_rc_dir(), G_DIR_SEPARATOR_S, ADDRBOOK_DIR, G_DIR_SEPARATOR_S, 
                                                        ADDRITEM_ID(person), ".png", NULL );
                                gdk_pixbuf_save(picture, name, "png", &error, NULL);
+                               if (error) {
+                                       g_warning(_("Failed to save image: \n%s"),
+                                                       error->message);
+                                       g_error_free(error);
+                               }
                                addritem_person_set_picture( person, ADDRITEM_ID(person) ) ;
                                g_free( name );
                        }
index 60d030f..ed01521 100644 (file)
@@ -1446,6 +1446,11 @@ static gboolean addressbook_edit_person_close( gboolean cancelled )
                        name = g_strconcat( get_rc_dir(), G_DIR_SEPARATOR_S, ADDRBOOK_DIR, G_DIR_SEPARATOR_S, 
                                                        ADDRITEM_ID(current_person), ".png", NULL );
                        gdk_pixbuf_save(pixbuf, name, "png", &error, NULL);
+                       if (error) {
+                               alertpanel_error(_("Failed to save image: \n%s"),
+                                               error->message);
+                               g_error_free(error);
+                       }
                        addritem_person_set_picture( current_person, ADDRITEM_ID(current_person) ) ;
                        g_free( name );
                } else {
index a9621ac..dcf9a3b 100644 (file)
@@ -343,8 +343,14 @@ static void headerview_save_contact_pic (HeaderView *headerview, MsgInfo *msginf
        filename = addrindex_get_picture_file(msginfo->from);
        if (!filename)
                return;
-       if (!is_file_exist(filename))
+       if (!is_file_exist(filename)) {
                gdk_pixbuf_save(picture, filename, "png", &error, NULL);
+               if (error) {
+                       g_warning(_("Failed to save image: \n%s"),
+                                       error->message);
+                       g_error_free(error);
+               }
+       }
        g_free(filename);
 }      
 
index 6016941..3cad0d6 100644 (file)
@@ -1921,8 +1921,14 @@ static void textview_save_contact_pic(TextView *textview)
        filename = addrindex_get_picture_file(msginfo->from);
        if (!filename)
                return;
-       if (!is_file_exist(filename))
+       if (!is_file_exist(filename)) {
                gdk_pixbuf_save(picture, filename, "png", &error, NULL);
+               if (error) {
+                       g_warning(_("Failed to save image: \n%s"),
+                                       error->message);
+                       g_error_free(error);
+               }
+       }
        g_free(filename);
 }