[totem] main: Remove totem_action_{get, set}_aspect_ratio from the public API



commit af70bec2a71d13abf260123bdb339a926fc12f4a
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 19 10:20:33 2013 +0100

    main: Remove totem_action_{get,set}_aspect_ratio from the public API

 src/totem-menu.c   |    2 +-
 src/totem-object.c |   30 +-----------------------------
 src/totem.h        |    2 --
 3 files changed, 2 insertions(+), 32 deletions(-)
---
diff --git a/src/totem-menu.c b/src/totem-menu.c
index 9e48d50..b9135d9 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -830,7 +830,7 @@ show_sidebar_action_callback (GtkToggleAction *action, Totem *totem)
 void
 aspect_ratio_changed_callback (GtkRadioAction *action, GtkRadioAction *current, Totem *totem)
 {
-       totem_action_set_aspect_ratio (totem, gtk_radio_action_get_current_value (current));
+       bacon_video_widget_set_aspect_ratio (totem->bvw, gtk_radio_action_get_current_value (current));
 }
 
 void
diff --git a/src/totem-object.c b/src/totem-object.c
index f182d0a..c908fea 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1955,7 +1955,7 @@ totem_action_toggle_aspect_ratio (TotemObject *totem)
        GtkAction *action;
        int tmp;
 
-       tmp = totem_action_get_aspect_ratio (totem);
+       tmp = bacon_video_widget_get_aspect_ratio (totem->bvw);
        tmp++;
        if (tmp > BVW_RATIO_DVB)
                tmp = BVW_RATIO_AUTO;
@@ -1964,34 +1964,6 @@ totem_action_toggle_aspect_ratio (TotemObject *totem)
        gtk_radio_action_set_current_value (GTK_RADIO_ACTION (action), tmp);
 }
 
-/**
- * totem_action_set_aspect_ratio:
- * @totem: a #TotemObject
- * @ratio: the aspect ratio to use
- *
- * Sets the aspect ratio selected in the menu to @ratio,
- * as defined in #BvwAspectRatio.
- **/
-void
-totem_action_set_aspect_ratio (TotemObject *totem, int ratio)
-{
-       bacon_video_widget_set_aspect_ratio (totem->bvw, ratio);
-}
-
-/**
- * totem_action_get_aspect_ratio:
- * @totem: a #TotemObject
- *
- * Gets the current aspect ratio as defined in #BvwAspectRatio.
- *
- * Return value: the current aspect ratio
- **/
-int
-totem_action_get_aspect_ratio (TotemObject *totem)
-{
-       return (bacon_video_widget_get_aspect_ratio (totem->bvw));
-}
-
 void
 totem_action_show_help (TotemObject *totem)
 {
diff --git a/src/totem.h b/src/totem.h
index f58c795..9981ac5 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -194,8 +194,6 @@ void        totem_action_set_mrl_and_play           (TotemObject *totem,
                                                 const char *mrl, 
                                                 const char *subtitle);
 
-void   totem_action_set_aspect_ratio           (TotemObject *totem, int ratio);
-int    totem_action_get_aspect_ratio           (TotemObject *totem);
 void   totem_object_action_next_angle          (TotemObject *totem);
 
 void    totem_object_action_error               (TotemObject *totem,


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