[totem] main: Remove sidebar handling API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Remove sidebar handling API
- Date: Fri, 11 Mar 2016 19:08:44 +0000 (UTC)
commit 11eb451477ae6b1ea0aa913fd6880ce0dd49773c
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 9 18:51:13 2016 +0100
main: Remove sidebar handling API
It was warning for a while, and now it's gone.
docs/reference/Makefile.am | 2 -
docs/reference/totem-sections.txt | 4 ---
src/totem-object.c | 38 +------------------------------------
src/totem.h | 8 -------
4 files changed, 1 insertions(+), 51 deletions(-)
---
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index a4e1cdf..d03831c 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -51,7 +51,6 @@ CFILE_GLOB=$(top_srcdir)/src/*.c
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
IGNORE_HFILES = \
totem-private.h \
- ev-sidebar.h \
eggdesktopfile.h \
eggfileformatchooser.h \
egg-macros.h \
@@ -75,7 +74,6 @@ IGNORE_HFILES = \
totem-properties-view.h \
totem-open-location.h \
totem-statusbar.h \
- totem-sidebar.h \
totem-session.h \
totem-resources.h \
totem-plugins-engine.h \
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index 19fb087..a4c8ca7 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -47,8 +47,6 @@ totem_object_get_title_at_playlist_pos
totem_get_short_title
totem_object_get_volume
totem_object_get_version
-totem_object_add_sidebar_page
-totem_object_remove_sidebar_page
totem_object_get_supported_content_types
totem_object_get_supported_uri_schemes
<SUBSECTION Standard>
@@ -84,7 +82,6 @@ totem_remote_set_setting
totem_seek_time
totem_stop
totem_set_volume
-totem_add_sidebar_page
totem_add_to_playlist_and_play
totem_get_current_mrl
totem_get_main_window
@@ -97,7 +94,6 @@ totem_get_volume
totem_is_paused
totem_is_playing
totem_is_seekable
-totem_remove_sidebar_page
totem_set_current_subtitle
</SECTION>
diff --git a/src/totem-object.c b/src/totem-object.c
index a5283f4..1eec6de 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -180,7 +180,7 @@ totem_object_app_activate (GApplication *app)
/* Menubar */
totem->stack = GTK_WIDGET (gtk_builder_get_object (totem->xml, "tmw_main_stack"));
- /* The sidebar */
+ /* The playlist widget */
playlist_widget_setup (totem);
/* The rest of the widgets */
@@ -977,42 +977,6 @@ totem_object_set_current_subtitle (TotemObject *totem, const char *subtitle_uri)
totem_playlist_set_current_subtitle (totem->playlist, subtitle_uri);
}
-/**
- * totem_object_add_sidebar_page:
- * @totem: a #TotemObject
- * @page_id: a string used to identify the page
- * @title: the page's title
- * @main_widget: the main widget for the page
- *
- * Adds a sidebar page to Totem's sidebar with the given @page_id.
- * @main_widget is added into the page and shown automatically, while
- * @title is displayed as the page's title in the tab bar.
- **/
-void
-totem_object_add_sidebar_page (TotemObject *totem,
- const char *page_id,
- const char *title,
- GtkWidget *main_widget)
-{
- g_warning ("totem_object_add_sidebar_page is obsolete");
-}
-
-/**
- * totem_object_remove_sidebar_page:
- * @totem: a #TotemObject
- * @page_id: a string used to identify the page
- *
- * Removes the page identified by @page_id from Totem's sidebar.
- * If @page_id doesn't exist in the sidebar, this function does
- * nothing.
- **/
-void
-totem_object_remove_sidebar_page (TotemObject *totem,
- const char *page_id)
-{
- /* Empty */
-}
-
void
totem_object_set_main_page (TotemObject *totem,
const char *page_id)
diff --git a/src/totem.h b/src/totem.h
index 7aa4d87..585e1af 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -215,14 +215,6 @@ void totem_object_add_to_playlist (TotemObject *totem,
char * totem_object_get_current_mrl (TotemObject *totem);
void totem_object_set_current_subtitle (TotemObject *totem,
const char *subtitle_uri);
-/* Sidebar handling */
-void totem_object_add_sidebar_page (TotemObject *totem,
- const char *page_id,
- const char *title,
- GtkWidget *main_widget);
-void totem_object_remove_sidebar_page (TotemObject *totem,
- const char *page_id);
-
/* Remote actions */
void totem_object_remote_command (TotemObject *totem,
TotemRemoteCommand cmd,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]