diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-07-08 23:14:14 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-07-08 23:14:14 +0200 |
commit | dc60b532b6e3f8135a6a32ac517c282fff274db5 (patch) | |
tree | a86b51ea209d6ee7ee0e8b0f7519178d060b6a13 /libindicator/indicator-image-helper.c | |
parent | ec36577978bd7e31c0f52083d5d9d05976edc2db (diff) | |
parent | 3fc3179d758ccef92bbc8e33d4ae20b5ab79a8b7 (diff) | |
download | libayatana-indicator-0.3.9-0ubuntu1.tar.gz libayatana-indicator-0.3.9-0ubuntu1.tar.bz2 libayatana-indicator-0.3.9-0ubuntu1.zip |
releasing version 0.3.9-0ubuntu10.3.9-0ubuntu1
Diffstat (limited to 'libindicator/indicator-image-helper.c')
-rw-r--r-- | libindicator/indicator-image-helper.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index 86d6c25..2492227 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -40,18 +40,6 @@ refresh_image (GtkImage * image) gint icon_size = 22; - GtkStyle * style = gtk_widget_get_style(GTK_WIDGET(image)); - GValue styleprop = {0}; - gtk_style_get_style_property(style, GTK_TYPE_IMAGE, "x-ayatana-indicator-dynamic", &styleprop); - - if (G_VALUE_HOLDS_BOOLEAN(&styleprop) && g_value_get_boolean(&styleprop)) { - PangoContext * context = gtk_widget_get_pango_context(GTK_WIDGET(image)); - PangoFontMetrics * metrics = pango_context_get_metrics(context, style->font_desc, pango_context_get_language(context)); - icon_size = PANGO_PIXELS(pango_font_metrics_get_ascent(metrics)) + PANGO_PIXELS(pango_font_metrics_get_descent(metrics)); - g_debug("Looking for icon size %d", icon_size); - pango_font_metrics_unref(metrics); - } - /* Look through the themes for that icon */ GtkIconInfo * icon_info = gtk_icon_theme_lookup_by_gicon(default_theme, icon_names, icon_size, 0); if (icon_info == NULL) { |