+2005-07-03 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * shell/ev-window.c: (update_document_mode),
+ (ev_window_run_fullscreen), (ev_window_stop_fullscreen),
+ (ev_window_cmd_view_fullscreen), (ev_window_stop_presentation),
+ (ev_window_cmd_view_presentation), (ev_window_cmd_escape):
+
+ Exit from fullscreen mode when switch to presentation. Fix for
+ bug 309365
+
2005-07-02 Matthew S. Wilson <msw@rpath.com>
* shell/ev-pixbuf-cache.c (ev_pixbuf_cache_get_selection_pixbuf):
EvWindow *ev_window);
static void ev_window_add_recent (EvWindow *window,
const char *filename);
-static void ev_window_fullscreen (EvWindow *window);
-static void ev_window_unfullscreen (EvWindow *window);
+static void ev_window_run_fullscreen (EvWindow *window);
+static void ev_window_stop_fullscreen (EvWindow *window);
static void ev_window_cmd_view_fullscreen (GtkAction *action,
EvWindow *window);
static void ev_window_run_presentation (EvWindow *window);
ev_window_run_presentation (window);
}
else if (mode == EV_DOCUMENT_MODE_FULL_SCREEN) {
- ev_window_fullscreen (window);
+ ev_window_run_fullscreen (window);
}
}
}
static void
-ev_window_fullscreen (EvWindow *window)
+ev_window_run_fullscreen (EvWindow *window)
{
ev_view_set_fullscreen (EV_VIEW (window->priv->view), TRUE);
if (window->priv->fullscreen_popup == NULL)
}
static void
-ev_window_unfullscreen (EvWindow *window)
+ev_window_stop_fullscreen (EvWindow *window)
{
EvView *view = EV_VIEW (window->priv->view);
+ if (!ev_view_get_fullscreen (EV_VIEW (view)))
+ return;
+
ev_view_set_fullscreen (view, FALSE);
g_object_set (G_OBJECT (window->priv->scrolled_window),
"shadow-type", GTK_SHADOW_IN,
fullscreen = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
if (fullscreen) {
- ev_window_fullscreen (window);
+ ev_window_run_fullscreen (window);
} else {
- ev_window_unfullscreen (window);
+ ev_window_stop_fullscreen (window);
}
}
static void
ev_window_stop_presentation (EvWindow *window)
{
- if (! ev_view_get_presentation (EV_VIEW (window->priv->view)))
+ if (!ev_view_get_presentation (EV_VIEW (window->priv->view)))
return;
g_object_set (G_OBJECT (window->priv->scrolled_window),
gboolean presentation;
g_return_if_fail (EV_IS_WINDOW (window));
+ ev_window_stop_fullscreen (window);
presentation = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
if (presentation) {
NULL);
if (fullscreen)
- ev_window_unfullscreen (window);
+ ev_window_stop_fullscreen (window);
if (presentation)
ev_window_stop_presentation (window);