aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-image-helper.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-08 15:15:46 -0500
committerTed Gould <ted@gould.cx>2010-07-08 15:15:46 -0500
commit3b191f923fd4e31594898027b94cf6cc8a91cba9 (patch)
treeeed77f8a84fee0186192b41d944b983a43f6b70c /libindicator/indicator-image-helper.c
parent105fa9906a1971d1c2731b9d8c86b370ca1ac834 (diff)
parentbc5e925ed181f2b64229afcac41bb4ba4f9aa4d1 (diff)
downloadlibayatana-indicator-3b191f923fd4e31594898027b94cf6cc8a91cba9.tar.gz
libayatana-indicator-3b191f923fd4e31594898027b94cf6cc8a91cba9.tar.bz2
libayatana-indicator-3b191f923fd4e31594898027b94cf6cc8a91cba9.zip
Import upstream version 0.3.9
Diffstat (limited to 'libindicator/indicator-image-helper.c')
-rw-r--r--libindicator/indicator-image-helper.c12
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) {