summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-06-24 15:44:41 +0200
committerBastien Nocera <hadess@hadess.net>2018-07-31 13:27:17 +0200
commit096eb10dfda8aefd56cf1fd0b16ce962bfcfe6bc (patch)
treecfc983ad27997384661df0426429394537ec8d09
parentdcacd94d618620240fc81ce7ee002ad0c881eadc (diff)
downloadtotem-wip/hadess/series-page.tar.gz
main: s/TOTEM_LIBRARY_PAGE_RECENT/TOTEM_LIBRARY_PAGE_VIDEOSwip/hadess/series-page
The "Recent" moniker isn't used in the interface any more.
-rw-r--r--src/totem-library.c8
-rw-r--r--src/totem-library.h2
-rw-r--r--src/totem-object.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/src/totem-library.c b/src/totem-library.c
index ac646f2c2..c94cc4978 100644
--- a/src/totem-library.c
+++ b/src/totem-library.c
@@ -1737,7 +1737,7 @@ source_switched (GtkToggleButton *button,
if (g_str_equal (id, "recent")) {
gd_main_view_set_model (GD_MAIN_VIEW (self->priv->browser),
self->priv->recent_sort_model);
- self->priv->current_page = TOTEM_LIBRARY_PAGE_RECENT;
+ self->priv->current_page = TOTEM_LIBRARY_PAGE_VIDEOS;
totem_library_set_drop_enabled (self, TRUE);
} else if (g_str_equal (id, "channels")) {
if (self->priv->browser_filter_model != NULL)
@@ -2471,7 +2471,7 @@ totem_library_set_current_page (TotemLibrary *self,
g_return_if_fail (TOTEM_IS_GRILO (self));
- if (page == TOTEM_LIBRARY_PAGE_RECENT)
+ if (page == TOTEM_LIBRARY_PAGE_VIDEOS)
button = self->priv->recent;
else if (page == TOTEM_LIBRARY_PAGE_CHANNELS)
button = self->priv->channels;
@@ -2488,7 +2488,7 @@ totem_library_set_current_page (TotemLibrary *self,
TotemLibraryPage
totem_library_get_current_page (TotemLibrary *self)
{
- g_return_val_if_fail (TOTEM_IS_GRILO (self), TOTEM_LIBRARY_PAGE_RECENT);
+ g_return_val_if_fail (TOTEM_IS_GRILO (self), TOTEM_LIBRARY_PAGE_VIDEOS);
return self->priv->current_page;
}
@@ -2662,7 +2662,7 @@ totem_library_class_init (TotemLibraryClass *klass)
g_param_spec_int ("current-page",
"Current page",
"The name of the currently visible page",
- TOTEM_LIBRARY_PAGE_RECENT, TOTEM_LIBRARY_PAGE_CHANNELS, TOTEM_LIBRARY_PAGE_RECENT,
+ TOTEM_LIBRARY_PAGE_VIDEOS, TOTEM_LIBRARY_PAGE_CHANNELS, TOTEM_LIBRARY_PAGE_VIDEOS,
G_PARAM_READWRITE));
gtk_widget_class_set_template_from_resource (widget_class, "/org/totem/grilo/grilo.ui");
diff --git a/src/totem-library.h b/src/totem-library.h
index 5d4482236..1b56db483 100644
--- a/src/totem-library.h
+++ b/src/totem-library.h
@@ -58,7 +58,7 @@ struct _TotemLibraryClass
};
typedef enum{
- TOTEM_LIBRARY_PAGE_RECENT,
+ TOTEM_LIBRARY_PAGE_VIDEOS,
TOTEM_LIBRARY_PAGE_CHANNELS
} TotemLibraryPage;
diff --git a/src/totem-object.c b/src/totem-object.c
index be92a9a49..45689dae5 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1034,7 +1034,7 @@ totem_object_set_main_page (TotemObject *totem,
g_clear_object (&totem->custom_title);
gtk_widget_hide (totem->fullscreen_button);
gtk_widget_hide (totem->gear_button);
- if (totem_library_get_current_page (TOTEM_LIBRARY (totem->grilo)) == TOTEM_LIBRARY_PAGE_RECENT)
+ if (totem_library_get_current_page (TOTEM_LIBRARY (totem->grilo)) == TOTEM_LIBRARY_PAGE_VIDEOS)
gtk_widget_show (totem->add_button);
totem_library_start (TOTEM_LIBRARY (totem->grilo));
}
@@ -2878,7 +2878,7 @@ totem_object_remote_command (TotemObject *totem, TotemRemoteCommand cmd, const c
case TOTEM_REMOTE_COMMAND_PLAY_DVD:
if (g_strcmp0 (totem_object_get_main_page (totem), PAGE_PLAYER) == 0)
back_button_clicked_cb (NULL, totem);
- totem_library_set_current_page (TOTEM_LIBRARY (totem->grilo), TOTEM_LIBRARY_PAGE_RECENT);
+ totem_library_set_current_page (TOTEM_LIBRARY (totem->grilo), TOTEM_LIBRARY_PAGE_VIDEOS);
break;
case TOTEM_REMOTE_COMMAND_MUTE:
totem_object_volume_toggle_mute (totem);
@@ -3699,7 +3699,7 @@ update_add_button_visibility (GObject *gobject,
gtk_widget_hide (totem->add_button);
} else {
gtk_widget_set_visible (totem->add_button,
- totem_library_get_current_page (TOTEM_LIBRARY (totem->grilo)) == TOTEM_LIBRARY_PAGE_RECENT);
+ totem_library_get_current_page (TOTEM_LIBRARY (totem->grilo)) == TOTEM_LIBRARY_PAGE_VIDEOS);
}
}
@@ -3903,7 +3903,7 @@ grilo_current_page_changed (TotemLibrary *grilo,
page = totem_library_get_current_page (TOTEM_LIBRARY (totem->grilo));
gtk_widget_set_visible (totem->add_button,
- page == TOTEM_LIBRARY_PAGE_RECENT);
+ page == TOTEM_LIBRARY_PAGE_VIDEOS);
}
}