Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-10-31 17:40:28 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-10-31 17:40:28 (GMT)
commit81c134286178c1b09b7505c1a9e8fba0c612fe1f (patch)
treef6106e7f60d723e279bf41b9801f4e8e9435c867 /shell/ev-window.c
parent973e7f54f89b94cb7eae1f1e33befa424142cb3f (diff)
Removed shell/ev-view-private.h
2008-10-31 Carlos Garcia Campos <carlosgc@gnome.org> * configure.ac: * backend/pdf/ev-poppler.cc: * properties/ev-properties-view.c: * shell/Makefile.am: * shell/ev-tooltip.[ch]: Removed * shell/ev-view-private.h * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-open-recent-action.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-view.c: * shell/ev-window.c: Bump GTK+ requirement to 2.12. svn path=/trunk/; revision=3242
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 0205bc4..60ea87c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2301,10 +2301,9 @@ ev_window_print_send (EvWindow *window,
ev_application_set_print_settings (EV_APP,
window->priv->print_settings);
-#if GTK_CHECK_VERSION (2, 11, 0)
print_settings_file = ev_tmp_filename ("print-settings");
gtk_print_settings_to_file (settings, print_settings_file, NULL);
-#endif
+
uri = g_filename_to_uri (filename, NULL, NULL);
ev_application_open_uri_at_dest (EV_APP,
uri,
@@ -3083,11 +3082,7 @@ ev_window_run_preview (EvWindow *window)
action = gtk_action_group_get_action (window->priv->action_group,
"PreviewPrint");
-#if GTK_CHECK_VERSION (2, 11, 0)
gtk_action_set_visible (action, TRUE);
-#else
- gtk_action_set_visible (action, FALSE);
-#endif
update_chrome_visibility (window);
}
@@ -3480,7 +3475,6 @@ ev_window_cmd_preview_print (GtkAction *action, EvWindow *window)
{
EvWindowPrivate *priv = window->priv;
GtkPrintSettings *print_settings = NULL;
-#if GTK_CHECK_VERSION (2, 11, 0)
const gchar *print_settings_file = priv->print_settings_file;
if (print_settings_file) {
@@ -3497,7 +3491,6 @@ ev_window_cmd_preview_print (GtkAction *action, EvWindow *window)
}
}
}
-#endif /* GTK 2.11.0 */
if (!print_settings)
print_settings = gtk_print_settings_new ();
@@ -5422,13 +5415,7 @@ ev_window_init (EvWindow *ev_window)
g_error_free (error);
}
-#if GTK_CHECK_VERSION(2,11,4)
ev_window->priv->recent_manager = gtk_recent_manager_get_default ();
-#else
- /* It's fine to just use the one of the default screen here */
- ev_window->priv->recent_manager = gtk_recent_manager_get_for_screen (
- gdk_screen_get_default ());
-#endif
ev_window->priv->recent_action_group = NULL;
ev_window->priv->recent_ui_id = 0;
g_signal_connect_swapped (ev_window->priv->recent_manager,