[totem] main: More dead code removal
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: More dead code removal
- Date: Fri, 24 Jan 2014 16:27:13 +0000 (UTC)
commit f7db2697f029a1920a1350afa6354f1129bb8aab
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 24 11:03:40 2014 +0100
main: More dead code removal
The View and Sound menus are now empty. The Remove right-click
menu for the playlist can also be removed (we can do the same
with the toolbar button in that widget).
data/playlist.ui | 9 ---------
data/totem.ui | 12 ------------
src/totem-playlist.c | 9 ---------
3 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/data/playlist.ui b/data/playlist.ui
index e0cf3ab..41e6d83 100644
--- a/data/playlist.ui
+++ b/data/playlist.ui
@@ -5,14 +5,6 @@
<child>
<object class="GtkActionGroup" id="playlist-action-group">
<child>
- <object class="GtkAction" id="remove">
- <property name="label" translatable="yes">_Remove</property>
- <property name="tooltip" translatable="yes">Remove file from playlist</property>
- <property name="stock-id">gtk-remove</property>
- <signal name="activate" handler="playlist_remove_action_callback"/>
- </object>
- </child>
- <child>
<object class="GtkAction" id="copy-location">
<property name="label" translatable="yes">_Copy Location</property>
<property name="tooltip" translatable="yes">Copy the location to the clipboard</property>
@@ -32,7 +24,6 @@
</child>
<ui>
<popup name="totem-playlist-popup">
- <menuitem name="remove" action="remove"/>
<menuitem name="copy-location" action="copy-location"/>
<menuitem name="select-subtitle" action="select-subtitle"/>
</popup>
diff --git a/data/totem.ui b/data/totem.ui
index 2022c00..5c4f92e 100644
--- a/data/totem.ui
+++ b/data/totem.ui
@@ -171,12 +171,6 @@
</child>
<child>
- <object class="GtkAction" id="view-menu">
- <property name="label" translatable="yes">_View</property>
- </object>
- </child>
-
- <child>
<object class="GtkAction" id="next-chapter">
<property name="label" translatable="yes">_Next Chapter/Movie</property>
<property name="tooltip" translatable="yes">Next chapter or movie</property>
@@ -193,12 +187,6 @@
<accelerator key="Left" modifiers="GDK_MOD1_MASK"/>
</child>
- <child>
- <object class="GtkAction" id="sound-menu">
- <property name="label" translatable="yes">_Sound</property>
- </object>
- </child>
-
</object>
</child>
</object>
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index da6912a..ca1496e 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -54,11 +54,8 @@ static void totem_playlist_clear_with_compare (TotemPlaylist *playlist,
/* Callback function for GtkBuilder */
G_MODULE_EXPORT void totem_playlist_add_files (GtkWidget *widget, TotemPlaylist *playlist);
G_MODULE_EXPORT void playlist_remove_button_clicked (GtkWidget *button, TotemPlaylist *playlist);
-G_MODULE_EXPORT void totem_playlist_up_files (GtkWidget *widget, TotemPlaylist *playlist);
-G_MODULE_EXPORT void totem_playlist_down_files (GtkWidget *widget, TotemPlaylist *playlist);
G_MODULE_EXPORT void playlist_copy_location_action_callback (GtkAction *action, TotemPlaylist *playlist);
G_MODULE_EXPORT void playlist_select_subtitle_action_callback (GtkAction *action, TotemPlaylist *playlist);
-G_MODULE_EXPORT void playlist_remove_action_callback (GtkAction *action, TotemPlaylist *playlist);
typedef struct {
@@ -807,12 +804,6 @@ playlist_remove_button_clicked (GtkWidget *button, TotemPlaylist *playlist)
playlist_remove_files (playlist);
}
-void
-playlist_remove_action_callback (GtkAction *action, TotemPlaylist *playlist)
-{
- playlist_remove_files (playlist);
-}
-
static int
totem_playlist_key_press (GtkWidget *win, GdkEventKey *event, TotemPlaylist *playlist)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]