gboolean speed_dial_in_new_tabs;
gchar* download_manager;
gchar* news_aggregator;
- gboolean ask_for_destination_folder;
gboolean middle_click_opens_selection;
gboolean open_tabs_in_the_background;
gboolean close_buttons_on_tabs;
WebKitDownload* download = webkit_download_new (request);
gboolean handled;
g_object_unref (request);
- if (view->ask_for_destination_folder)
- g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
+ g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
g_signal_emit (view, signals[DOWNLOAD_REQUESTED], 0, download, &handled);
- if (!view->ask_for_destination_folder)
- webkit_download_start (download);
}
static void
WebKitDownload* download = webkit_download_new (request);
gboolean handled;
g_object_unref (request);
- if (view->ask_for_destination_folder)
- g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
+ g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
g_signal_emit (view, signals[DOWNLOAD_REQUESTED], 0, download, &handled);
- if (!view->ask_for_destination_folder)
- webkit_download_start (download);
g_free (uri);
}
WebKitDownload* download = webkit_download_new (request);
gboolean handled;
g_object_unref (request);
- if (view->ask_for_destination_folder)
- g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
+ g_object_set_data (G_OBJECT (download), "save-as-download", (void*)0xdeadbeef);
g_signal_emit (view, signals[DOWNLOAD_REQUESTED], 0, download, &handled);
- if (!view->ask_for_destination_folder)
- webkit_download_start (download);
g_free (uri);
}
_("Copy Link de_stination"), NULL,
G_CALLBACK (midori_web_view_menu_link_copy_activate_cb), widget);
midori_view_insert_menu_item (menu_shell, -1,
- view->ask_for_destination_folder ? _("_Save Link destination")
- : _("_Download Link destination"), NULL,
+ _("_Save Link destination"), NULL,
G_CALLBACK (midori_web_view_menu_save_activate_cb), widget);
if (view->download_manager && *view->download_manager)
midori_view_insert_menu_item (menu_shell, -1,
_("Copy Image _Address"), NULL,
G_CALLBACK (midori_web_view_menu_image_copy_activate_cb), widget);
midori_view_insert_menu_item (menu_shell, -1,
- view->ask_for_destination_folder ? _("Save I_mage")
- : _("Download I_mage"), GTK_STOCK_SAVE,
+ _("Save I_mage"), GTK_STOCK_SAVE,
G_CALLBACK (midori_web_view_menu_image_save_activate_cb), widget);
}
"kinetic-scrolling", &kinetic_scrolling,
"close-buttons-on-tabs", &view->close_buttons_on_tabs,
"open-new-pages-in", &view->open_new_pages_in,
- "ask-for-destination-folder", &view->ask_for_destination_folder,
"middle-click-opens-selection", &view->middle_click_opens_selection,
"open-tabs-in-the-background", &view->open_tabs_in_the_background,
"find-while-typing", &view->find_while_typing,
}
else if (name == g_intern_string ("open-new-pages-in"))
view->open_new_pages_in = g_value_get_enum (&value);
- else if (name == g_intern_string ("ask-for-destination-folder"))
- view->ask_for_destination_folder = g_value_get_boolean (&value);
else if (name == g_intern_string ("middle-click-opens-selection"))
view->middle_click_opens_selection = g_value_get_boolean (&value);
else if (name == g_intern_string ("open-tabs-in-the-background"))
MidoriStartup load_on_startup : 2;
gboolean show_crash_dialog : 1;
gboolean speed_dial_in_new_tabs : 1;
- gboolean ask_for_destination_folder : 1;
- gboolean notify_transfer_completed : 1;
MidoriPreferredEncoding preferred_encoding : 3;
gboolean always_show_tabbar : 1;
gboolean close_buttons_on_tabs : 1;
PROP_SHOW_CRASH_DIALOG,
PROP_SPEED_DIAL_IN_NEW_TABS,
PROP_DOWNLOAD_FOLDER,
- PROP_ASK_FOR_DESTINATION_FOLDER,
- PROP_NOTIFY_TRANSFER_COMPLETED,
PROP_DOWNLOAD_MANAGER,
PROP_TEXT_EDITOR,
PROP_NEWS_AGGREGATOR,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif
- /**
- * MidoriWebSettings:ask-for-destination-folder:
- *
- * Whether to ask for the destination folder when downloading a file.
- *
- * Note: Only since 0.2.0 is this value actually used.
- *
- * Since: 0.1.7
- *
- * Deprecated: 0.3.0
- */
- g_object_class_install_property (gobject_class,
- PROP_ASK_FOR_DESTINATION_FOLDER,
- g_param_spec_boolean (
- "ask-for-destination-folder",
- _("Ask for the destination folder"),
- _("Whether to ask for the destination folder when downloading a file"),
- FALSE,
- #if WEBKIT_CHECK_VERSION (1, 1, 15)
- flags));
- #else
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- #endif
-
- /**
- * MidoriWebSettings:notify-transfer-completed:
- *
- * Whether to show a notification when a transfer has been completed.
- *
- * Since: 0.1.7
- *
- * Deprecated: 0.3.0
- */
- g_object_class_install_property (gobject_class,
- PROP_NOTIFY_TRANSFER_COMPLETED,
- g_param_spec_boolean (
- "notify-transfer-completed",
- _("Notify when a transfer has been completed"),
- _("Whether to show a notification when a transfer has been completed"),
- TRUE,
- #if WEBKIT_CHECK_VERSION (1, 1, 3)
- flags));
- #else
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- #endif
-
g_object_class_install_property (gobject_class,
PROP_DOWNLOAD_MANAGER,
g_param_spec_string (
static void
midori_web_settings_init (MidoriWebSettings* web_settings)
{
- web_settings->notify_transfer_completed = TRUE;
web_settings->download_folder = g_strdup (midori_get_download_dir ());
web_settings->http_proxy = NULL;
web_settings->show_panel_controls = TRUE;
case PROP_DOWNLOAD_FOLDER:
katze_assign (web_settings->download_folder, g_value_dup_string (value));
break;
- case PROP_ASK_FOR_DESTINATION_FOLDER:
- web_settings->ask_for_destination_folder = g_value_get_boolean (value);
- break;
- case PROP_NOTIFY_TRANSFER_COMPLETED:
- web_settings->notify_transfer_completed = g_value_get_boolean (value);
- break;
case PROP_DOWNLOAD_MANAGER:
katze_assign (web_settings->download_manager, g_value_dup_string (value));
break;
case PROP_DOWNLOAD_FOLDER:
g_value_set_string (value, web_settings->download_folder);
break;
- case PROP_ASK_FOR_DESTINATION_FOLDER:
- g_value_set_boolean (value, web_settings->ask_for_destination_folder);
- break;
- case PROP_NOTIFY_TRANSFER_COMPLETED:
- g_value_set_boolean (value, web_settings->notify_transfer_completed);
- break;
case PROP_DOWNLOAD_MANAGER:
g_value_set_string (value, web_settings->download_manager);
break;