From 1b8b65aad4be457d227ed0a6a9c03572cd6de6b0 Mon Sep 17 00:00:00 2001 From: Devashish Sharma Date: Tue, 28 Feb 2006 08:20:18 +0000 Subject: Fix for Bug 332811 svn path=/trunk/; revision=31605 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/contact-editor/e-contact-editor.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index b4741de467..b0527dabb4 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2006-02-28 Devashish Sharma + + * gui/contact-editor/e-contact-editor.c (extract_simple_field): Fix for Bug + #332811 crash adding an image to a contact. + 2006-02-27 Devashish Sharma * gui/contact-editor/e-contact-editor.c: Fix for Bug #332498: orphaned diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 120a73f13f..75e4cd2712 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -2269,7 +2269,7 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id) height = gdk_pixbuf_get_height (pixbuf); width = gdk_pixbuf_get_width (pixbuf); - if ((height > 96 || width > 96) && e_error_run (GTK_WINDOW (editor), "addressbook:prompt-resize", NULL) == GTK_RESPONSE_YES) { + if ((height > 96 || width > 96) && e_error_run (GTK_WINDOW (editor->app), "addressbook:prompt-resize", NULL) == GTK_RESPONSE_YES) { if ( width > height) { height = height * 96 / width; -- cgit v1.2.3