aboutsummaryrefslogtreecommitdiff
path: root/src/title-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-02 16:31:30 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-02 16:31:30 +0100
commit966137c8c0547f1c749fa7b13955c6f536539129 (patch)
tree877dfb8bfa63e7ea84c04f1c08a29099d3ffd40b /src/title-widget.c
parent0c040b86cd7a05c8284662bb3032dccbf6707e90 (diff)
downloadayatana-indicator-sound-966137c8c0547f1c749fa7b13955c6f536539129.tar.gz
ayatana-indicator-sound-966137c8c0547f1c749fa7b13955c6f536539129.tar.bz2
ayatana-indicator-sound-966137c8c0547f1c749fa7b13955c6f536539129.zip
tidy up
Diffstat (limited to 'src/title-widget.c')
-rw-r--r--src/title-widget.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/title-widget.c b/src/title-widget.c
index 0a59cca..04471c0 100644
--- a/src/title-widget.c
+++ b/src/title-widget.c
@@ -34,7 +34,6 @@ struct _TitleWidgetPrivate
{
GtkWidget* hbox;
GtkWidget* name;
- GtkWidget* player_icon;
GtkWidget* image_item;
DbusmenuMenuitem* twin_item;
};
@@ -88,7 +87,7 @@ title_widget_init (TitleWidget *self)
hbox = gtk_hbox_new(FALSE, 0);
priv->hbox = hbox;
- // Add image to the 'gutter'
+ // Add image to the 'gutter'
gtk_image_menu_item_set_always_show_image(GTK_IMAGE_MENU_ITEM(self), TRUE);
gint padding = 4;
@@ -97,7 +96,6 @@ title_widget_init (TitleWidget *self)
gint width, height;
gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height);
- //priv->player_icon = indicator_image_helper("sound_icon");
GtkWidget * icon = gtk_image_new_from_icon_name("sound_icon", GTK_ICON_SIZE_MENU);
gtk_widget_set_size_request(icon, width
@@ -107,12 +105,11 @@ title_widget_init (TitleWidget *self)
gtk_misc_set_alignment(GTK_MISC(icon), 1.0 /* right aligned */, 0.5);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(self), icon);
gtk_widget_show(icon);
-
+ gtk_widget_show(GTK_WIDGET(self));
+
GtkImageType type = gtk_image_get_storage_type(GTK_IMAGE(icon));
g_debug("gtk_image_storage_type = %i", type);
- //gtk_container_add(GTK_CONTAINER(gmi), priv->hbox);
- //gtk_box_pack_start(GTK_BOX (priv->hbox), priv->image_item, FALSE, FALSE, 0);
}
static void
@@ -190,12 +187,6 @@ title_widget_style_name_text(TitleWidget* self)
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.