[totem] main: Rename totem_action_seek_relative()



commit 67e9b4f856da50b26f9656d13cc5d044e50f6737
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 19 09:54:21 2013 +0100

    main: Rename totem_action_seek_relative()
    
    To totem_object_action_seek_relative()

 src/totem-menu.c   |    4 ++--
 src/totem-object.c |   28 ++++++++++++++--------------
 src/totem.h        |    2 +-
 3 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/totem-menu.c b/src/totem-menu.c
index 9260e00..9e48d50 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -707,13 +707,13 @@ previous_chapter_action_callback (GtkAction *action, Totem *totem)
 void
 skip_forward_action_callback (GtkAction *action, Totem *totem)
 {
-       totem_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
+       totem_object_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
 }
 
 void
 skip_backwards_action_callback (GtkAction *action, Totem *totem)
 {
-       totem_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
+       totem_object_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
 }
 
 void
diff --git a/src/totem-object.c b/src/totem-object.c
index 6d62522..9d89c76 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1839,7 +1839,7 @@ totem_seek_time_rel (TotemObject *totem, gint64 _time, gboolean relative, gboole
 }
 
 /**
- * totem_action_seek_relative:
+ * totem_object_action_seek_relative:
  * @totem: a #TotemObject
  * @offset: the time offset to seek to
  * @accurate: whether to use accurate seek, an accurate seek might be slower for some formats (see GStreamer 
docs)
@@ -1848,7 +1848,7 @@ totem_seek_time_rel (TotemObject *totem, gint64 _time, gboolean relative, gboole
  * or displays an error dialog if that's not possible.
  **/
 void
-totem_action_seek_relative (TotemObject *totem, gint64 offset, gboolean accurate)
+totem_object_action_seek_relative (TotemObject *totem, gint64 offset, gboolean accurate)
 {
        totem_seek_time_rel (totem, offset, TRUE, accurate);
 }
@@ -2860,9 +2860,9 @@ totem_object_action_remote (TotemObject *totem, TotemRemoteCommand cmd, const ch
                if (url != NULL)
                        offset = g_ascii_strtod (url, NULL);
                if (offset == 0) {
-                       totem_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
                } else {
-                       totem_action_seek_relative (totem, offset * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, offset * 1000, FALSE);
                }
                icon_name = "media-seek-forward-symbolic";
                break;
@@ -2873,9 +2873,9 @@ totem_object_action_remote (TotemObject *totem, TotemRemoteCommand cmd, const ch
                if (url != NULL)
                        offset = g_ascii_strtod (url, NULL);
                if (offset == 0)
-                       totem_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
                else
-                       totem_action_seek_relative (totem,  - (offset * 1000), FALSE);
+                       totem_object_action_seek_relative (totem,  - (offset * 1000), FALSE);
                icon_name = "media-seek-backward-symbolic";
                break;
        }
@@ -3282,18 +3282,18 @@ totem_action_handle_seek (TotemObject *totem, GdkEventKey *event, gboolean is_fo
 {
        if (is_forward != FALSE) {
                if (event->state & GDK_SHIFT_MASK)
-                       totem_action_seek_relative (totem, SEEK_FORWARD_SHORT_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_FORWARD_SHORT_OFFSET * 1000, FALSE);
                else if (event->state & GDK_CONTROL_MASK)
-                       totem_action_seek_relative (totem, SEEK_FORWARD_LONG_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_FORWARD_LONG_OFFSET * 1000, FALSE);
                else
-                       totem_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_FORWARD_OFFSET * 1000, FALSE);
        } else {
                if (event->state & GDK_SHIFT_MASK)
-                       totem_action_seek_relative (totem, SEEK_BACKWARD_SHORT_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_BACKWARD_SHORT_OFFSET * 1000, FALSE);
                else if (event->state & GDK_CONTROL_MASK)
-                       totem_action_seek_relative (totem, SEEK_BACKWARD_LONG_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_BACKWARD_LONG_OFFSET * 1000, FALSE);
                else
-                       totem_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
+                       totem_object_action_seek_relative (totem, SEEK_BACKWARD_OFFSET * 1000, FALSE);
        }
 }
 
@@ -3574,10 +3574,10 @@ totem_action_handle_scroll (TotemObject    *totem,
 
        switch (direction) {
        case GDK_SCROLL_UP:
-               totem_action_seek_relative (totem, SEEK_FORWARD_SHORT_OFFSET * 1000, FALSE);
+               totem_object_action_seek_relative (totem, SEEK_FORWARD_SHORT_OFFSET * 1000, FALSE);
                break;
        case GDK_SCROLL_DOWN:
-               totem_action_seek_relative (totem, SEEK_BACKWARD_SHORT_OFFSET * 1000, FALSE);
+               totem_object_action_seek_relative (totem, SEEK_BACKWARD_SHORT_OFFSET * 1000, FALSE);
                break;
        default:
                retval = FALSE;
diff --git a/src/totem.h b/src/totem.h
index 672834f..5e79ae6 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -184,7 +184,7 @@ void        totem_object_action_fullscreen_toggle   (TotemObject *totem);
 void   totem_object_action_next                (TotemObject *totem);
 void   totem_object_action_previous            (TotemObject *totem);
 void   totem_object_action_seek_time           (TotemObject *totem, gint64 msec, gboolean accurate);
-void   totem_action_seek_relative              (TotemObject *totem, gint64 offset, gboolean accurate);
+void   totem_object_action_seek_relative       (TotemObject *totem, gint64 offset, gboolean accurate);
 double totem_object_get_volume                 (TotemObject *totem);
 void   totem_object_action_volume              (TotemObject *totem, double volume);
 void   totem_action_volume_relative            (TotemObject *totem, double off_pct);


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