From: Lukáš Bezdička <255993@mail.muni.cz> Date: Tue, 5 Apr 2011 16:58:20 +0000 (+0200) Subject: [shell] creating wrapper around ev_window_run_presentation X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=3242d87af0dbd37088249a6b42ac27237cabdd8d [shell] creating wrapper around ev_window_run_presentation --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 95908d4d..f0593b23 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -309,9 +309,9 @@ static void ev_window_stop_fullscreen (EvWindow *windo gboolean unfullscreen_window); static void ev_window_cmd_view_fullscreen (GtkAction *action, EvWindow *window); -/*static void ev_window_run_presentation (EvWindow *window); -static void ev_window_stop_presentation (EvWindow *window, - gboolean unfullscreen_window);*/ +static void ev_window_run_presentation_wrapper (EvWindow *window); +static void ev_window_stop_presentation_wrapper (EvWindow *window, + gboolean unfullscreen_window); static void ev_window_cmd_view_presentation (GtkAction *action, EvWindow *window); static void ev_view_popup_cmd_open_link (GtkAction *action, @@ -1026,7 +1026,7 @@ static void update_document_mode (EvWindow *window, EvDocumentMode mode) { if (mode == EV_DOCUMENT_MODE_PRESENTATION) { - ev_window_run_presentation (window); + ev_window_run_presentation_wrapper (window); } else if (mode == EV_DOCUMENT_MODE_FULL_SCREEN) { ev_window_run_fullscreen (window); @@ -1317,7 +1317,7 @@ setup_view_from_metadata (EvWindow *window) /* Presentation */ if (ev_metadata_get_boolean (window->priv->metadata, "presentation", &presentation)) { if (presentation) { - ev_window_run_presentation (window); + ev_window_run_presentation_wrapper (window); } } } @@ -1483,7 +1483,7 @@ ev_window_set_document (EvWindow *ev_window, EvDocument *document) /* Update the model with the current presentation page */ ev_document_model_set_page (ev_window->priv->model, current_page); - ev_window_run_presentation (ev_window); + ev_window_run_presentation_wrapper (ev_window); } if (ev_window->priv->setup_document_idle > 0) @@ -1620,7 +1620,7 @@ ev_window_load_job_cb (EvJob *job, ev_window_run_fullscreen (ev_window); break; case EV_WINDOW_MODE_PRESENTATION: - ev_window_run_presentation (ev_window); + ev_window_run_presentation_wrapper (ev_window); break; default: break; @@ -2157,7 +2157,7 @@ ev_window_open_document (EvWindow *ev_window, ev_window_run_fullscreen (ev_window); break; case EV_WINDOW_MODE_PRESENTATION: - ev_window_run_presentation (ev_window); + ev_window_run_presentation_wrapper (ev_window); break; default: break; @@ -3999,6 +3999,13 @@ ev_window_view_presentation_focus_out (EvWindow *window) return FALSE; } +static void +ev_window_run_presentation_wrapper(){ +} +static void +ev_window_stop_presentation_wrapper(){ +} + void ev_window_run_presentation (EvWindow *window) { @@ -4095,7 +4102,7 @@ ev_window_cmd_view_presentation (GtkAction *action, EvWindow *window) presentation = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); if (presentation) { - ev_window_run_presentation (window); + ev_window_run_presentation_wrapper (window); } } @@ -4573,7 +4580,7 @@ ev_window_cmd_leave_fullscreen (GtkAction *action, EvWindow *window) static void ev_window_cmd_start_presentation (GtkAction *action, EvWindow *window) { - ev_window_run_presentation (window); + ev_window_run_presentation_wrapper (window); } static void @@ -6764,7 +6771,7 @@ ev_window_media_player_key_pressed (EvWindow *window, * often seen keys */ if (strcmp (key, "Play") == 0) { - ev_window_run_presentation (window); + ev_window_run_presentation_wrapper (window); } else if (strcmp (key, "Previous") == 0) { if (EV_WINDOW_IS_PRESENTATION (window)) ev_view_presentation_previous_page (EV_VIEW_PRESENTATION (window->priv->presentation_view)); diff --git a/shell/ev-window.h b/shell/ev-window.h index dea45196..9d26ab9d 100644 --- a/shell/ev-window.h +++ b/shell/ev-window.h @@ -84,7 +84,7 @@ void ev_window_open_document (EvWindow *ev_window, gboolean ev_window_is_empty (const EvWindow *ev_window); void ev_window_run_presentation (EvWindow *ev_window); void ev_window_stop_presentation (EvWindow *ev_window, - gboolean unfullscreen_window); + gboolean unfullscreen_window); void ev_window_print_range (EvWindow *ev_window, int first_page, int last_page);