[rhythmbox] shell: remove statusbar



commit 6928dce9a847d208c3b7baa3b69875ce8566907a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Oct 23 20:09:52 2017 +1000

    shell: remove statusbar

 data/ui/app-menu.ui  |    4 -
 po/POTFILES.in       |    1 -
 shell/Makefile.am    |    2 -
 shell/rb-shell.c     |   13 --
 shell/rb-statusbar.c |  338 --------------------------------------------------
 shell/rb-statusbar.h |   72 -----------
 6 files changed, 0 insertions(+), 430 deletions(-)
---
diff --git a/data/ui/app-menu.ui b/data/ui/app-menu.ui
index e1f7157..3e7f6b0 100644
--- a/data/ui/app-menu.ui
+++ b/data/ui/app-menu.ui
@@ -27,10 +27,6 @@
            <attribute name="accel">&lt;Primary&gt;k</attribute>
          </item>
          <item>
-           <attribute name="label" translatable="yes">Status Bar</attribute>
-           <attribute name="action">win.statusbar-visible</attribute>
-         </item>
-         <item>
            <attribute name="label" translatable="yes">Song Position Slider</attribute>
            <attribute name="action">win.show-song-position-slider</attribute>
          </item>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 66afe2e..32db4cc 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -192,7 +192,6 @@ shell/rb-shell.c
 shell/rb-shell-clipboard.c
 shell/rb-shell-player.c
 shell/rb-shell-preferences.c
-shell/rb-statusbar.c
 shell/rb-track-transfer-batch.c
 shell/rb-track-transfer-queue.c
 sources/rb-auto-playlist-source.c
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 4365f32..0a8101a 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -94,8 +94,6 @@ librhythmbox_core_la_SOURCES =                                \
        rb-shell-player.c                               \
        rb-shell-preferences.c                          \
        rb-shell-preferences.h                          \
-       rb-statusbar.c                                  \
-       rb-statusbar.h                                  \
        rb-task-list.c                                  \
        rb-task-list.h                                  \
        rb-track-transfer-batch.c                       \
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index 7ae0227..a0e0ac8 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -75,7 +75,6 @@
 #include "rb-track-transfer-queue.h"
 #include "rb-shell-clipboard.h"
 #include "rb-shell-player.h"
-#include "rb-statusbar.h"
 #include "rb-shell-preferences.h"
 #include "rb-library-source.h"
 #include "rb-podcast-source.h"
@@ -275,7 +274,6 @@ struct _RBShellPrivate
        RBShellPlayer *player_shell;
        RBShellClipboard *clipboard_shell;
        RBHeader *header;
-       RBStatusbar *statusbar;
        RBPlaylistManager *playlist_manager;
        RBRemovableMediaManager *removable_media_manager;
        RBTrackTransferQueue *track_transfer_queue;
@@ -580,9 +578,6 @@ construct_widgets (RBShell *shell)
        gtk_widget_show (GTK_WIDGET (shell->priv->header));
        g_settings_bind (shell->priv->settings, "time-display", shell->priv->header, "show-remaining", 
G_SETTINGS_BIND_DEFAULT);
 
-       shell->priv->statusbar = rb_statusbar_new (shell->priv->db);
-       gtk_widget_show (GTK_WIDGET (shell->priv->statusbar));
-
        g_signal_connect_object (shell->priv->display_page_tree, "selected",
                                 G_CALLBACK (display_page_selected_cb), shell, 0);
 
@@ -676,7 +671,6 @@ construct_widgets (RBShell *shell)
 
        gtk_box_pack_start (GTK_BOX (shell->priv->main_vbox), GTK_WIDGET (shell->priv->top_container), FALSE, 
TRUE, 0);
        gtk_box_pack_start (GTK_BOX (shell->priv->main_vbox), shell->priv->paned, TRUE, TRUE, 0);
-       gtk_box_pack_start (GTK_BOX (shell->priv->main_vbox), GTK_WIDGET (shell->priv->statusbar), FALSE, 
TRUE, 0);
        gtk_widget_show_all (shell->priv->main_vbox);
 
        gtk_container_add (GTK_CONTAINER (win), shell->priv->main_vbox);
@@ -1733,12 +1727,6 @@ rb_shell_constructed (GObject *object)
                         shell->priv->queue_source, "visibility",
                         G_SETTINGS_BIND_INVERT_BOOLEAN);
 
-       action = g_settings_create_action (shell->priv->settings, "statusbar-visible");
-       g_action_map_add_action (G_ACTION_MAP (shell->priv->window), action);
-       g_settings_bind (shell->priv->settings, "statusbar-visible",
-                        shell->priv->statusbar, "visible",
-                        G_SETTINGS_BIND_DEFAULT);
-
        action = g_settings_create_action (shell->priv->settings, "follow-playing");
        g_action_map_add_action (G_ACTION_MAP (shell->priv->window), action);
        g_signal_connect (shell->priv->settings, "changed", G_CALLBACK (rb_shell_settings_changed_cb), shell);
@@ -2377,7 +2365,6 @@ rb_shell_select_page (RBShell *shell, RBDisplayPage *page)
 
                /* clear playlist-manager:source? */
        }
-       rb_statusbar_set_page (shell->priv->statusbar, page);
 
        g_object_notify (G_OBJECT (shell), "selected-page");
 }


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