iconhelper: Require passing a cssnode to the constructor

Note that we don't use it yet.
This commit is contained in:
Benjamin Otte
2015-12-09 18:25:36 +01:00
committed by Matthias Clasen
parent 7075d00958
commit ad22612ab2
9 changed files with 29 additions and 14 deletions

View File

@ -43,6 +43,7 @@
#include "gtktooltip.h"
#include "gtkicontheme.h"
#include "gtklabel.h"
#include "gtkstylecontextprivate.h"
#include "gtktypebuiltins.h"
#ifdef GDK_WINDOWING_X11
@ -1392,7 +1393,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
round_size = round_pixel_size (widget, priv->size);
icon_helper = _gtk_icon_helper_new (widget);
icon_helper = gtk_icon_helper_new (gtk_style_context_get_node (gtk_widget_get_style_context (widget)), widget);
_gtk_icon_helper_set_force_scale_pixbuf (icon_helper, TRUE);
_gtk_icon_helper_set_definition (icon_helper, priv->image_def);
_gtk_icon_helper_set_icon_size (icon_helper, GTK_ICON_SIZE_SMALL_TOOLBAR);