[epiphany] Remove Print Preview item from the super menu



commit 67798e67eb2433e8367111156a63ffee76e9e5b2
Author: Xan Lopez <xan igalia com>
Date:   Wed Jan 18 12:01:22 2012 +0100

    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.

 data/ui/epiphany-ui.xml |    1 -
 embed/ephy-web-view.c   |   15 ---------------
 embed/ephy-web-view.h   |    1 -
 src/ephy-lockdown.c     |    1 -
 src/ephy-window.c       |    5 -----
 src/window-commands.c   |   13 -------------
 src/window-commands.h   |    3 ---
 7 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/data/ui/epiphany-ui.xml b/data/ui/epiphany-ui.xml
index b7b08f2..8b3fc49 100644
--- a/data/ui/epiphany-ui.xml
+++ b/data/ui/epiphany-ui.xml
@@ -93,7 +93,6 @@
                 <menuitem name="EditPasteMenu" action="EditPaste"/>
                 <separator name="EditSep3"/> 
                 <menuitem name="FilePrintSetupMenu" action="FilePrintSetup"/>
-                <menuitem name="FilePrintPreviewMenu" action="FilePrintPreview"/>
                 <menuitem name="FilePrintMenu" action="FilePrint"/>
                 <menuitem name="FileSendToMenu" action="FileSendTo"/>
                 <separator name="FileSep4"/>
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 08d2f86..638640b 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3304,21 +3304,6 @@ ephy_web_view_run_print_action (EphyWebView *view, GtkPrintOperationAction actio
 }
 
 /**
- * ephy_web_view_show_print_preview
- * @view: an #EphyWebView
- *
- * Generates a print preview of the specified view.
- * An external viewer is used to display the preview.
- *
- * Since: 2.30
- **/
-void
-ephy_web_view_show_print_preview (EphyWebView *view)
-{
-  ephy_web_view_run_print_action (view, GTK_PRINT_OPERATION_ACTION_PREVIEW);
-}
-
-/**
  * ephy_web_view_print
  * @view: an #EphyWebView
  *
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 7539a9f..c05461e 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -164,7 +164,6 @@ void                       ephy_web_view_get_security_level       (EphyWebView
                                                                    EphyWebViewSecurityLevel  *level,
                                                                    char                     **description);
 void                       ephy_web_view_show_page_certificate    (EphyWebView               *view);
-void                       ephy_web_view_show_print_preview       (EphyWebView               *view);
 void                       ephy_web_view_print                    (EphyWebView               *view);
 void                       ephy_web_view_set_title                (EphyWebView               *view,
                                                                    const char                *view_title);
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c
index 73d9741..cc75b12 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 7b434b4..4ff7ce3 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 a9e56f1..65dedb5 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 e9ee719..ddd42a0 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]