diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-18 19:01:22 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-18 19:01:22 +0800 |
commit | 67798e67eb2433e8367111156a63ffee76e9e5b2 (patch) | |
tree | 4a11de69c4042ab67f248aaf835bd9d041b154f4 /src | |
parent | eae947e94cd0343801cfad4ee3cd4ff656ad734b (diff) | |
download | gsoc2013-epiphany-67798e67eb2433e8367111156a63ffee76e9e5b2.tar.gz gsoc2013-epiphany-67798e67eb2433e8367111156a63ffee76e9e5b2.tar.zst gsoc2013-epiphany-67798e67eb2433e8367111156a63ffee76e9e5b2.zip |
Remove Print Preview item from the super menu
It's already accessible from the Print dialog itself, so there's
really no need to duplicate it.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-lockdown.c | 1 | ||||
-rw-r--r-- | src/ephy-window.c | 5 | ||||
-rw-r--r-- | src/window-commands.c | 13 | ||||
-rw-r--r-- | src/window-commands.h | 3 |
4 files changed, 0 insertions, 22 deletions
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c index 73d9741ec..cc75b1291 100644 --- a/src/ephy-lockdown.c +++ b/src/ephy-lockdown.c @@ -103,7 +103,6 @@ typedef struct { static const BindAction window_actions[] = { { EPHY_PREFS_LOCKDOWN_PRINTING, "FilePrint", "sensitive" }, - { EPHY_PREFS_LOCKDOWN_PRINTING, "FilePrintPreview", "sensitive" }, { EPHY_PREFS_LOCKDOWN_PRINTING, "FilePrintSetup", "sensitive" }, { EPHY_PREFS_LOCKDOWN_PRINT_SETUP, "FilePrintSetup", "sensitive" }, { EPHY_PREFS_LOCKDOWN_COMMAND_LINE, "FilePrintSetup", "sensitive" }, diff --git a/src/ephy-window.c b/src/ephy-window.c index 7b434b4b2..4ff7ce3fc 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -129,9 +129,6 @@ static const GtkActionEntry ephy_menu_entries [] = { { "FilePrintSetup", STOCK_PRINT_SETUP, N_("Page Set_up"), NULL, N_("Setup the page settings for printing"), G_CALLBACK (window_cmd_file_print_setup) }, - { "FilePrintPreview", GTK_STOCK_PRINT_PREVIEW, N_("Print Pre_view"),"<control><shift>P", - N_("Print preview"), - G_CALLBACK (window_cmd_file_print_preview) }, { "FilePrint", GTK_STOCK_PRINT, N_("_Print…"), "<control>P", N_("Print the current page"), G_CALLBACK (window_cmd_file_print) }, @@ -1914,8 +1911,6 @@ sync_tab_load_status (EphyWebView *view, gtk_action_set_sensitive (action, loading); /* disable print while loading, see bug #116344 */ - action = gtk_action_group_get_action (action_group, "FilePrintPreview"); - ephy_action_change_sensitivity_flags (action, SENS_FLAG_LOADING, loading); action = gtk_action_group_get_action (action_group, "FilePrint"); ephy_action_change_sensitivity_flags (action, SENS_FLAG_LOADING, loading); diff --git a/src/window-commands.c b/src/window-commands.c index a9e56f1b0..65dedb5e2 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -85,19 +85,6 @@ window_cmd_file_print_setup (GtkAction *action, } void -window_cmd_file_print_preview (GtkAction *action, - EphyWindow *window) -{ - EphyEmbed *embed; - EphyWebView *view; - - embed = ephy_embed_container_get_active_child - (EPHY_EMBED_CONTAINER (window)); - view = ephy_embed_get_web_view (embed); - ephy_web_view_show_print_preview (view); -} - -void window_cmd_file_print (GtkAction *action, EphyWindow *window) { diff --git a/src/window-commands.h b/src/window-commands.h index e9ee7197f..ddd42a0ab 100644 --- a/src/window-commands.h +++ b/src/window-commands.h @@ -57,9 +57,6 @@ void window_cmd_file_save_as_application (GtkAction *action, void window_cmd_file_print_setup (GtkAction *action, EphyWindow *window); -void window_cmd_file_print_preview (GtkAction *action, - EphyWindow *window); - void window_cmd_file_print (GtkAction *action, EphyWindow *window); |