fix bug 2954, 'Crash in "Save Image As" for HTML message'
[claws.git] / src / plugins / fancy / fancy_viewer.c
index 642aa8e1be22072cc454065d9506249907765f3e..d3e81b9f1e421d0eaab9cb13aa5c5fd9ef5feffb 100644 (file)
@@ -90,6 +90,7 @@ static void fancy_apply_prefs(FancyViewer *viewer)
                "enable-scripts", viewer->override_prefs_scripts,
                "enable-plugins", viewer->override_prefs_plugins,
                "enable-java-applet", viewer->override_prefs_java,
                "enable-scripts", viewer->override_prefs_scripts,
                "enable-plugins", viewer->override_prefs_plugins,
                "enable-java-applet", viewer->override_prefs_java,
+               "enable-dns-prefetching", viewer->override_prefs_remote_content,
 #ifdef G_OS_WIN32
                "default-font-family", "Arial",
                "cursive-font-family", "Comic Sans MS",
 #ifdef G_OS_WIN32
                "default-font-family", "Arial",
                "cursive-font-family", "Comic Sans MS",
@@ -683,6 +684,11 @@ static void download_file_cb(GtkWidget *widget, FancyViewer *viewer)
 #endif
 }
 
 #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");
 static void open_image_cb(GtkWidget *widget, FancyViewer *viewer)
 {
        debug_print("Not Yet Implemented\n");
@@ -767,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",
 
                        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);
                }
 
                                         (gpointer *) viewer);
                }
 
@@ -1036,7 +1042,7 @@ const gchar *plugin_desc(void)
 {
        return g_strdup_printf(_("This plugin renders HTML mail using the WebKit "
                               "%d.%d.%d library.\nBy default all remote content is "
 {
        return g_strdup_printf(_("This plugin renders HTML mail using the WebKit "
                               "%d.%d.%d library.\nBy default all remote content is "
-                              "blocked and images are not automatically loaded. Options "
+                              "blocked. Options "
                               "can be found in /Configuration/Preferences/Plugins/Fancy"),
                               WEBKIT_MAJOR_VERSION, WEBKIT_MINOR_VERSION,
                               WEBKIT_MICRO_VERSION);
                               "can be found in /Configuration/Preferences/Plugins/Fancy"),
                               WEBKIT_MAJOR_VERSION, WEBKIT_MINOR_VERSION,
                               WEBKIT_MICRO_VERSION);