aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-02-22 13:22:55 +0000
committerConor Curran <conor.curran@canonical.com>2012-02-22 13:22:55 +0000
commit9e3e24efd718efe26b62ba1db5b151d6a78c6544 (patch)
tree6364efee39c930c7e1bebc9b06720352d10b9a07 /src/metadata-widget.c
parentbd74119fe73c955a458b414b12ac92d580a15344 (diff)
downloadayatana-indicator-sound-9e3e24efd718efe26b62ba1db5b151d6a78c6544.tar.gz
ayatana-indicator-sound-9e3e24efd718efe26b62ba1db5b151d6a78c6544.tar.bz2
ayatana-indicator-sound-9e3e24efd718efe26b62ba1db5b151d6a78c6544.zip
fix layout of the metadata widget
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r--src/metadata-widget.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index a3383df..5f4e1a1 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -129,13 +129,13 @@ metadata_widget_init (MetadataWidget *self)
priv->icon_buf = NULL;
#if GTK_CHECK_VERSION(3, 0, 0)
- outer_v_box = gtk_box_new (FALSE, 0);
+ outer_v_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
#else
outer_v_box = gtk_vbox_new (FALSE, 0);
#endif
#if GTK_CHECK_VERSION(3, 0, 0)
- hbox = gtk_box_new(FALSE, 0);
+ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
#else
hbox = gtk_hbox_new(FALSE, 0);
#endif
@@ -168,13 +168,13 @@ metadata_widget_init (MetadataWidget *self)
#endif
gtk_box_pack_start (GTK_BOX (priv->meta_data_h_box),
priv->album_art,
- FALSE,
- FALSE,
+ TRUE,
+ TRUE,
1);
priv->theme_change_occured = FALSE;
#if GTK_CHECK_VERSION(3, 0, 0)
- GtkWidget* vbox = gtk_box_new(FALSE, 0);
+ GtkWidget* vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
#else
GtkWidget* vbox = gtk_vbox_new(FALSE, 0);
#endif
@@ -227,16 +227,15 @@ metadata_widget_init (MetadataWidget *self)
// player label
GtkWidget* player_label;
- player_label = gtk_label_new("");
- gtk_misc_set_alignment(GTK_MISC(player_label), (gfloat)0, (gfloat)0.5);
- gtk_misc_set_padding (GTK_MISC(player_label), (gfloat)1, (gfloat)0);
- gtk_widget_set_size_request (player_label, 200, 24);
+ player_label = gtk_label_new ("");
+ gtk_misc_set_alignment(GTK_MISC(player_label), (gfloat)0, (gfloat)0);
+ gtk_misc_set_padding (GTK_MISC(player_label), (gfloat)1, (gfloat)0);
+ gtk_widget_set_size_request (player_label, 150, 24);
priv->player_label = player_label;
gtk_box_pack_start (GTK_BOX(outer_v_box), priv->player_label, FALSE, FALSE, 0);
-
gtk_box_pack_start (GTK_BOX(outer_v_box), priv->meta_data_h_box, FALSE, FALSE, 0);
-
+
gtk_container_add (GTK_CONTAINER (self), outer_v_box);
gtk_widget_show_all (priv->meta_data_h_box);