aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-10-04 16:52:57 +0100
committerConor Curran <conor.curran@canonical.com>2010-10-04 16:52:57 +0100
commit91b9d94d85fa56a6cfe61d83b6640727ef084369 (patch)
tree2506392ac3dcf13cfca87d83cc06f2ce7f615892
parentdc28c32be1164f3bce269cb9227ea0c8384d4df5 (diff)
downloadayatana-indicator-sound-91b9d94d85fa56a6cfe61d83b6640727ef084369.tar.gz
ayatana-indicator-sound-91b9d94d85fa56a6cfe61d83b6640727ef084369.tar.bz2
ayatana-indicator-sound-91b9d94d85fa56a6cfe61d83b6640727ef084369.zip
fixed the text resizing
-rw-r--r--src/metadata-widget.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index 850e315..d5ec4d2 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -120,8 +120,9 @@ metadata_widget_init (MetadataWidget *self)
DBUSMENU_METADATA_MENUITEM_ARTIST));
gtk_misc_set_alignment(GTK_MISC(artist), (gfloat)0, (gfloat)0);
gtk_misc_set_padding (GTK_MISC(artist), (gfloat)10, (gfloat)0);
- gtk_label_set_width_chars(GTK_LABEL(artist), 15);
- gtk_label_set_ellipsize(GTK_LABEL(artist), PANGO_ELLIPSIZE_MIDDLE);
+ //gtk_label_set_width_chars(GTK_LABEL(artist), 15);
+ gtk_widget_set_size_request (artist, 140, 15);
+ gtk_label_set_ellipsize(GTK_LABEL(artist), PANGO_ELLIPSIZE_MIDDLE);
metadata_widget_style_labels(self, GTK_LABEL(artist));
priv->artist_label = artist;
@@ -131,8 +132,9 @@ metadata_widget_init (MetadataWidget *self)
DBUSMENU_METADATA_MENUITEM_TITLE) );
gtk_misc_set_alignment(GTK_MISC(piece), (gfloat)0, (gfloat)0);
gtk_misc_set_padding (GTK_MISC(piece), (gfloat)10, (gfloat)0);
- gtk_label_set_width_chars(GTK_LABEL(piece), 15);
- gtk_label_set_ellipsize(GTK_LABEL(piece), PANGO_ELLIPSIZE_MIDDLE);
+ //gtk_label_set_width_chars(GTK_LABEL(piece), 15);
+ gtk_widget_set_size_request (piece, 140, 15);
+ gtk_label_set_ellipsize(GTK_LABEL(piece), PANGO_ELLIPSIZE_MIDDLE);
metadata_widget_style_labels(self, GTK_LABEL(piece));
priv->piece_label = piece;
@@ -142,7 +144,8 @@ metadata_widget_init (MetadataWidget *self)
DBUSMENU_METADATA_MENUITEM_ALBUM) );
gtk_misc_set_alignment(GTK_MISC(container), (gfloat)0, (gfloat)0);
gtk_misc_set_padding (GTK_MISC(container), (gfloat)10, (gfloat)0);
- gtk_label_set_width_chars(GTK_LABEL(container), 15);
+ //gtk_label_set_width_chars(GTK_LABEL(container), 15);
+ gtk_widget_set_size_request (container, 140, 15);
gtk_label_set_ellipsize(GTK_LABEL(container), PANGO_ELLIPSIZE_MIDDLE);
metadata_widget_style_labels(self, GTK_LABEL(container));
priv->container_label = container;
@@ -505,7 +508,6 @@ metadata_widget_set_style(GtkWidget* metadata, GtkStyle* style)
MetadataWidgetPrivate * priv = METADATA_WIDGET_GET_PRIVATE(widg);
priv->theme_change_occured = TRUE;
gtk_widget_queue_draw(GTK_WIDGET(metadata));
- //g_debug("metadata_widget: theme change");
}
static void