[Xfce4-commits] [xfce/exo] 01/01: Replace deprecated gtk_style_context_get_background_color

noreply at xfce.org noreply at xfce.org
Tue Jul 4 11:55:06 CEST 2017


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/exo.

commit 82c6ba19744fe2e565e80978c40a38547ae54a98
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Jul 4 05:55:01 2017 -0400

    Replace deprecated gtk_style_context_get_background_color
---
 exo/exo-cell-renderer-icon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/exo/exo-cell-renderer-icon.c b/exo/exo-cell-renderer-icon.c
index 445e1f5..6ffda7e 100644
--- a/exo/exo-cell-renderer-icon.c
+++ b/exo/exo-cell-renderer-icon.c
@@ -549,9 +549,9 @@ exo_cell_renderer_icon_render (GtkCellRenderer     *renderer,
             {
 #if GTK_CHECK_VERSION (3, 0, 0)
               style_context = gtk_widget_get_style_context (widget);
-              gtk_style_context_get_background_color (style_context,
-                                                      gtk_style_context_get_state (style_context),
-                                                      &color_rgba);
+              gtk_style_context_get (style_context, GTK_STATE_FLAG_NORMAL,
+                                     GTK_STYLE_PROPERTY_BACKGROUND_COLOR,
+                                     &color_rgba, NULL);
 
               color_gdk.pixel = 0;
               color_gdk.red = color_rgba.red * 65535.0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list