summaryrefslogtreecommitdiff
path: root/gtk/deprecated
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-08 20:57:24 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-09 13:30:40 +0100
commitccfc4d3f128d0617b3d9c0bbe034b5ceae771780 (patch)
tree80a11fc68cb0844a8c3979ff4f4902803f65d8df /gtk/deprecated
parente95e2d5048e59cb0615943400d738534a24aa958 (diff)
downloadgtk+-ccfc4d3f128d0617b3d9c0bbe034b5ceae771780.tar.gz
iconhelper: Remove the context argument
Instead, use the widget's context.
Diffstat (limited to 'gtk/deprecated')
-rw-r--r--gtk/deprecated/gtkstatusicon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c
index fd65b0aa54..b46dfcc7a9 100644
--- a/gtk/deprecated/gtkstatusicon.c
+++ b/gtk/deprecated/gtkstatusicon.c
@@ -1376,7 +1376,6 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
HICON prev_hicon;
#endif
GtkIconHelper *icon_helper;
- GtkStyleContext *context;
cairo_surface_t *surface;
GtkWidget *widget;
GdkPixbuf *pixbuf;
@@ -1391,7 +1390,6 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
if (widget == NULL)
return;
- context = gtk_widget_get_style_context (widget);
round_size = round_pixel_size (widget, priv->size);
icon_helper = _gtk_icon_helper_new (widget);
@@ -1399,7 +1397,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
_gtk_icon_helper_set_definition (icon_helper, priv->image_def);
_gtk_icon_helper_set_icon_size (icon_helper, GTK_ICON_SIZE_SMALL_TOOLBAR);
_gtk_icon_helper_set_pixel_size (icon_helper, round_size);
- surface = gtk_icon_helper_load_surface (icon_helper, context, 1);
+ surface = gtk_icon_helper_load_surface (icon_helper, 1);
pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0, round_size, round_size);
cairo_surface_destroy (surface);