[gtk+/wip/baedert/symbolic-icons: 24/24] image: _get_style_context never returns NULL
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/symbolic-icons: 24/24] image: _get_style_context never returns NULL
- Date: Sun, 7 Feb 2016 07:55:48 +0000 (UTC)
commit d9dd36094bb311528779844b5eac86ef59ca1261
Author: Timm Bäder <mail baedert org>
Date: Sun Feb 7 08:29:49 2016 +0100
image: _get_style_context never returns NULL
gtk/gtkimage.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 4b1d158..7e0443f 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1923,15 +1923,10 @@ gtk_image_style_updated (GtkWidget *widget)
{
GtkImage *image = GTK_IMAGE (widget);
GtkImagePrivate *priv = image->priv;
- GtkStyleContext *context;
+ GtkStyleContext *context = gtk_widget_get_style_context (widget);
+ GtkCssStyleChange *change = gtk_style_context_get_change (context);
- context = gtk_widget_get_style_context (widget);
- if (context)
- {
- GtkCssStyleChange *change = gtk_style_context_get_change (context);
-
- gtk_icon_helper_invalidate_for_change (priv->icon_helper, change);
- }
+ gtk_icon_helper_invalidate_for_change (priv->icon_helper, change);
GTK_WIDGET_CLASS (gtk_image_parent_class)->style_updated (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]