aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorHarry van Haaren <harryhaaren@gmail.com>2011-07-27 13:23:48 +0100
committerHarry van Haaren <harryhaaren@gmail.com>2011-07-27 13:23:48 +0100
commit11c1764fc6b46b364720c64993dffef972598c3a (patch)
treed339e301b70f1497616f754cce3c9d657e5c43c5 /src/transport-widget.c
parent9762553300ac40df12e5f700810cc8203903bb64 (diff)
downloadayatana-indicator-sound-11c1764fc6b46b364720c64993dffef972598c3a.tar.gz
ayatana-indicator-sound-11c1764fc6b46b364720c64993dffef972598c3a.tar.bz2
ayatana-indicator-sound-11c1764fc6b46b364720c64993dffef972598c3a.zip
Transport-widget has offscreen_window and spinner
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 11e0f91..b26147c 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -76,6 +76,9 @@ typedef struct _TransportWidgetPrivate TransportWidgetPrivate;
struct _TransportWidgetPrivate
{
+ GtkWidget* offscreen_window;
+ GtkWidget* spinner;
+
TransportAction current_command;
TransportAction key_event;
TransportAction motion_event;
@@ -170,7 +173,12 @@ transport_widget_class_init (TransportWidgetClass *klass)
static void
transport_widget_init (TransportWidget *self)
{
- TransportWidgetPrivate* priv = TRANSPORT_WIDGET_GET_PRIVATE(self);
+ TransportWidgetPrivate* priv = TRANSPORT_WIDGET_GET_PRIVATE(self);
+
+ priv->spinner = gtk_spinner_new();
+ priv->offscreen_window = gtk_offscreen_window_new();
+ gtk_container_add( GTK_CONTAINER(priv->offscreen_window), priv->spinner);
+
priv->current_command = TRANSPORT_ACTION_NO_ACTION;
priv->current_state = TRANSPORT_STATE_PAUSED;
priv->key_event = TRANSPORT_ACTION_NO_ACTION;
@@ -1755,9 +1763,8 @@ draw (GtkWidget* button, cairo_t *cr)
}
else if(priv->current_state == TRANSPORT_STATE_LAUNCHING)
{
-/*
g_debug ("launching in draw");
-*/
+
_setup (&cr_surf, &surf, PLAY_WIDTH+6, PLAY_HEIGHT+6);
_mask_play (cr_surf,
PLAY_PADDING,