[totem] main: Remove add_to_recent arg
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Remove add_to_recent arg
- Date: Sat, 14 Jul 2012 23:26:37 +0000 (UTC)
commit 56b6d9865c124231fa333ec937b1cf7b3c6cc7ba
Author: Bastien Nocera <hadess hadess net>
Date: Sun Jul 15 00:22:14 2012 +0100
main: Remove add_to_recent arg
src/plugins/grilo/totem-grilo.c | 6 ++----
src/plugins/iplayer/iplayer.py | 2 +-
src/totem-object.c | 4 +---
src/totem-video-list.c | 2 +-
src/totem.h | 3 +--
5 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 4976b44..b59c1fa 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -565,8 +565,7 @@ play (TotemGriloPlugin *self,
url = grl_media_get_url (media);
if (url != NULL) {
totem_add_to_playlist_and_play (self->priv->totem, url,
- grl_media_get_title (media),
- TRUE);
+ grl_media_get_title (media));
return;
}
@@ -1234,8 +1233,7 @@ add_to_pls_cb (GtkAction *action, TotemGriloPlugin *self)
{
totem_add_to_playlist_and_play (self->priv->totem,
grl_media_get_url (self->priv->selected_media),
- grl_media_get_title (self->priv->selected_media),
- TRUE);
+ grl_media_get_title (self->priv->selected_media));
}
static void
diff --git a/src/plugins/iplayer/iplayer.py b/src/plugins/iplayer/iplayer.py
index 49a5f77..d413aea 100644
--- a/src/plugins/iplayer/iplayer.py
+++ b/src/plugins/iplayer/iplayer.py
@@ -115,7 +115,7 @@ class IplayerPlugin (GObject.Object, Peas.Activatable):
# Add the programme to the playlist and play it
title = tree_store.get_value (tree_iter, 0)
- self.totem.add_to_playlist_and_play (mrl, title, True)
+ self.totem.add_to_playlist_and_play (mrl, title)
def _populate_programme_list (self, feed, tree_store, category_iter):
if self.debug:
diff --git a/src/totem-object.c b/src/totem-object.c
index cabfecb..27f2df0 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -648,15 +648,13 @@ add_to_playlist_and_play_cb (TotemPlaylist *playlist, GAsyncResult *async_result
* @totem: a #TotemObject
* @uri: the URI to add to the playlist
* @display_name: the display name of the URI
- * @add_to_recent: if %TRUE, add the URI to the recent items list
*
* Add @uri to the playlist and play it immediately.
**/
void
totem_object_add_to_playlist_and_play (TotemObject *totem,
const char *uri,
- const char *display_name,
- gboolean add_to_recent)
+ const char *display_name)
{
AddToPlaylistData *data;
diff --git a/src/totem-video-list.c b/src/totem-video-list.c
index fbdceea..fad1deb 100644
--- a/src/totem-video-list.c
+++ b/src/totem-video-list.c
@@ -378,7 +378,7 @@ row_activated_cb (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *
goto finish;
if (mrl != NULL)
- totem_add_to_playlist_and_play (self->priv->totem, mrl, display_name, FALSE);
+ totem_add_to_playlist_and_play (self->priv->totem, mrl, display_name);
finish:
g_free (mrl);
diff --git a/src/totem.h b/src/totem.h
index c0c25c3..782e000 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -262,8 +262,7 @@ char * totem_object_get_title_at_playlist_pos (TotemObject *totem,
#define totem_add_to_playlist_and_play totem_object_add_to_playlist_and_play
void totem_object_add_to_playlist_and_play (TotemObject *totem,
const char *uri,
- const char *display_name,
- gboolean add_to_recent);
+ const char *display_name);
#define totem_get_current_mrl totem_object_get_current_mrl
char * totem_object_get_current_mrl (TotemObject *totem);
#define totem_set_current_subtitle totem_object_set_current_subtitle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]