]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] creating wrapper around ev_window_run_presentation
authorLukáš Bezdička <255993@mail.muni.cz>
Tue, 5 Apr 2011 16:58:20 +0000 (18:58 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 1 Jun 2011 11:09:21 +0000 (13:09 +0200)
shell/ev-window.c
shell/ev-window.h

index 95908d4db382054b58ed703540250abd5b963931..f0593b2373f53a7a6f51f121dfb879b7689776b6 100644 (file)
@@ -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));
index dea451964b3a21a9763f5f5c8158573a0333c622..9d26ab9d65cea0b3164153078e3a8bebff7f615e 100644 (file)
@@ -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);