aboutsummaryrefslogtreecommitdiff
path: root/src/title-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-01 00:31:55 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-01 00:31:55 +0100
commit262ef2532f8aa20018a750307f3d4815933e3c47 (patch)
tree344d07427139ce4b75f748b2e2e60c2dc0aa9c2c /src/title-widget.c
parent610f7ed87e0b95dd16ff75024672dba36028b745 (diff)
downloadayatana-indicator-sound-262ef2532f8aa20018a750307f3d4815933e3c47.tar.gz
ayatana-indicator-sound-262ef2532f8aa20018a750307f3d4815933e3c47.tar.bz2
ayatana-indicator-sound-262ef2532f8aa20018a750307f3d4815933e3c47.zip
first legit attempt at icon gutter placement failed
Diffstat (limited to 'src/title-widget.c')
-rw-r--r--src/title-widget.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/title-widget.c b/src/title-widget.c
index e9f34d6..8f0c3c5 100644
--- a/src/title-widget.c
+++ b/src/title-widget.c
@@ -35,6 +35,7 @@ struct _TitleWidgetPrivate
GtkWidget* hbox;
GtkWidget* name;
GtkWidget* player_icon;
+ GtkWidget* image_item;
DbusmenuMenuitem* twin_item;
};
@@ -73,7 +74,6 @@ title_widget_class_init (TitleWidgetClass *klass)
gobject_class->dispose = title_widget_dispose;
gobject_class->finalize = title_widget_finalize;
-
}
static void
@@ -84,12 +84,12 @@ title_widget_init (TitleWidget *self)
TitleWidgetPrivate * priv = TITLE_WIDGET_GET_PRIVATE(self);
GtkWidget *hbox;
-
+
hbox = gtk_hbox_new(FALSE, 0);
priv->hbox = hbox;
-
priv->player_icon = indicator_image_helper("sound_icon");
- gtk_box_pack_start(GTK_BOX (priv->hbox), priv->player_icon, FALSE, FALSE, 0);
+
+ //gtk_box_pack_start(GTK_BOX (priv->hbox), priv->image_item, FALSE, FALSE, 0);
}
static void
@@ -165,7 +165,13 @@ title_widget_style_name_text(TitleWidget* self)
gtk_label_set_markup (GTK_LABEL (priv->name), markup);
g_free(markup);
}
-
+
+GtkWidget* title_widget_get_player_icon(TitleWidget* self)
+{
+ TitleWidgetPrivate * priv = TITLE_WIDGET_GET_PRIVATE(self);
+ return priv->player_icon;
+}
+
/**
* transport_new:
* @returns: a new #TitleWidget.