diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-08-23 16:45:40 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-08-23 16:45:40 +0100 |
commit | 97af8d3a53f77c0a2212dbbc58b09bb8c63c5a92 (patch) | |
tree | 27dedb49a3c2e1b24c0918546d4943e05f45f51f | |
parent | 5f163af57701a168e2704faf951b894e2a7e6365 (diff) | |
download | ayatana-indicator-sound-97af8d3a53f77c0a2212dbbc58b09bb8c63c5a92.tar.gz ayatana-indicator-sound-97af8d3a53f77c0a2212dbbc58b09bb8c63c5a92.tar.bz2 ayatana-indicator-sound-97af8d3a53f77c0a2212dbbc58b09bb8c63c5a92.zip |
finally blank art work handling out the door
-rw-r--r-- | src/metadata-widget.c | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 146f84a..167ec88 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -244,19 +244,22 @@ metadata_image_expose (GtkWidget *metadata, GdkEventExpose *event, gpointer user PangoLayout *layout; PangoFontDescription *desc; layout = pango_cairo_create_layout(cr); + PangoContext* pcontext = pango_cairo_create_context(cr); + pango_cairo_context_set_resolution (pcontext, 96); GString* string = g_string_new(""); gssize size = -1; - gunichar code = g_utf8_get_char_validated("0x266B", size); + gunichar code = g_utf8_get_char_validated("\342\231\253", size); g_string_append_unichar (string, code); pango_layout_set_text(layout, string->str, -1); - desc = pango_font_description_from_string("Sans Bold 12"); + desc = pango_font_description_from_string("Sans Bold 30"); pango_layout_set_font_description(layout, desc); pango_font_description_free(desc); - cairo_set_source_rgb(cr, 0.0, 0.0, 0.0); + cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 0.8); pango_cairo_update_layout(cr, layout); + cairo_move_to (cr, alloc.x + alloc.width/6, alloc.y); pango_cairo_show_layout(cr, layout); g_object_unref(layout); @@ -323,33 +326,6 @@ metadata_widget_property_update(DbusmenuMenuitem* item, gchar* property, } } -static void metadata_widget_draw_album_art_placeholder(MetadataWidget* self) -{ - /*MetadataWidgetPrivate * priv = METADATA_WIDGET_GET_PRIVATE(self); - cairo_t *cr; - cr = gdk_cairo_create (GTK_WIDGET(self)->window); - PangoLayout *layout; - PangoFontDescription *desc; - layout = pango_cairo_create_layout(cr); - - GString* string = g_string_new(""); - gssize size = -1; - gunichar code = g_utf8_get_char_validated("0x266B", size); - g_string_append_unichar (string, code); - - pango_layout_set_text(layout, string->str, -1); - desc = pango_font_description_from_string("Sans Bold 12"); - pango_layout_set_font_description(layout, desc); - pango_font_description_free(desc); - - cairo_set_source_rgb(cr, 0.0, 0.0, 1.0); - pango_cairo_update_layout(cr, layout); - pango_cairo_show_layout(cr, layout); - - g_object_unref(layout); - cairo_destroy (cr); - */ -} static void metadata_widget_update_album_art(MetadataWidget* self){ |