fix bug 2954, 'Crash in "Save Image As" for HTML message'
authorPaul <paul@claws-mail.org>
Fri, 12 Jul 2013 08:23:43 +0000 (09:23 +0100)
committerPaul <paul@claws-mail.org>
Fri, 12 Jul 2013 08:23:43 +0000 (09:23 +0100)
note: this patch prevents the crash but does not implement saving images

src/plugins/fancy/fancy_viewer.c

index 1463c1e..d3e81b9 100644 (file)
@@ -684,6 +684,11 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
 #endif
 }
 
+static void save_image_cb(GtkWidget *widget, FancyViewer *viewer)
+{
+       debug_print("Not Yet Implemented\n");
+}
+
 static void open_image_cb(GtkWidget *widget, FancyViewer *viewer)
 {
        debug_print("Not Yet Implemented\n");
@@ -768,7 +773,7 @@ static void viewer_menu_handler(GtkWidget *menuitem, FancyViewer *viewer)
 
                        GtkImageMenuItem *m_simage = GTK_IMAGE_MENU_ITEM(menuitem);
                        g_signal_connect(G_OBJECT(m_simage), "activate",
-                                        G_CALLBACK(download_file_cb),
+                                        G_CALLBACK(save_image_cb),
                                         (gpointer *) viewer);
                }