summaryrefslogtreecommitdiff
path: root/shell/panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/panel.c')
-rw-r--r--shell/panel.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/shell/panel.c b/shell/panel.c
index b4df188..5f7adfa 100644
--- a/shell/panel.c
+++ b/shell/panel.c
@@ -25,12 +25,8 @@
#include "app-icon.h"
#include "favorites.h"
-#include "vertical-clock.h"
enum {
- APP_MENU_TOGGLED,
- SYSTEM_TOGGLED,
- VOLUME_TOGGLED,
FAVORITE_LAUNCHED,
N_SIGNALS
};
@@ -38,9 +34,6 @@ static guint signals[N_SIGNALS] = { 0 };
struct MaynardPanelPrivate {
gboolean hidden;
-
- GtkWidget *revealer_buttons; /* for the top buttons */
- GtkWidget *revealer_clock; /* for the vertical clock */
};
G_DEFINE_TYPE(MaynardPanel, maynard_panel, GTK_TYPE_WINDOW)
@@ -104,16 +97,6 @@ maynard_panel_constructed (GObject *object)
main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (self), main_box);
- /* for the top buttons and vertical clock we have a few more
- * boxes. the hbox has two cells. in each cell there is a
- * GtkRevealer for hiding and showing the content. only one revealer
- * is ever visibile at one point and transitions happen at the same
- * time so the width stays constant (the animation duration is the
- * same). the first revealer contains another box which has the two
- * wifi and sound buttons. the second revealer has the vertical
- * clock widget.
- */
-
/* GtkBoxes seem to eat up enter/leave events, so let's use an event
* box for the entire thing. */
ebox = gtk_event_box_new ();
@@ -123,30 +106,6 @@ maynard_panel_constructed (GObject *object)
menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (ebox), menu_box);
- /* revealer for the top buttons */
- self->priv->revealer_buttons = gtk_revealer_new ();
- gtk_revealer_set_transition_type (GTK_REVEALER (self->priv->revealer_buttons),
- GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT);
- gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_buttons),
- TRUE);
- gtk_box_pack_start (GTK_BOX (menu_box),
- self->priv->revealer_buttons, FALSE, FALSE, 0);
-
- /* revealer for the vertical clock */
- self->priv->revealer_clock = gtk_revealer_new ();
- gtk_revealer_set_transition_type (GTK_REVEALER (self->priv->revealer_clock),
- GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT);
- gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_clock),
- FALSE);
- gtk_box_pack_start (GTK_BOX (menu_box),
- self->priv->revealer_clock, FALSE, FALSE, 0);
-
- /* vertical clock */
- gtk_container_add (GTK_CONTAINER (self->priv->revealer_clock),
- maynard_vertical_clock_new ());
-
- /* end of the menu buttons and vertical clock */
-
/* favorites */
ebox = gtk_event_box_new ();
gtk_box_pack_start (GTK_BOX (main_box), ebox, FALSE, FALSE, 0);
@@ -192,14 +151,6 @@ maynard_panel_new (void)
NULL);
}
-void
-maynard_panel_set_expand (MaynardPanel *self,
- gboolean expand)
-{
- gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_buttons), expand);
- gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_clock), !expand);
-}
-
static void
set_icon (GtkWidget *button,
const gchar *icon_name)