[Xfce4-commits] [xfce/thunar] 01/01: Use hard-coded shading color for mouse gestures

noreply at xfce.org noreply at xfce.org
Wed Jun 6 04:54:10 CEST 2018


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

a   n   d   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/thunar.

commit 51fa8fc2dfd7bea356caacd72b69e56925045cff
Author: Andre Miranda <andreldm at xfce.org>
Date:   Tue Jun 5 23:52:19 2018 -0300

    Use hard-coded shading color for mouse gestures
    
    This removes the use of gtk_widget_get_style (deprecated).
---
 thunar/thunar-abstract-icon-view.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c
index 1ba1826..f53f453 100644
--- a/thunar/thunar-abstract-icon-view.c
+++ b/thunar/thunar-abstract-icon-view.c
@@ -642,7 +642,6 @@ thunar_abstract_icon_view_draw (ExoIconView            *view,
   GtkAction  *action = NULL;
   GdkPixbuf  *gesture_icon = NULL;
   gchar      *icon_name;
-  GdkColor    bg;
   gint        x, y;
 
   _thunar_return_val_if_fail (EXO_IS_ICON_VIEW (view), FALSE);
@@ -652,8 +651,7 @@ thunar_abstract_icon_view_draw (ExoIconView            *view,
   _thunar_return_val_if_fail (abstract_icon_view->priv->gesture_release_id > 0, FALSE);
 
   /* shade the abstract_icon view content while performing mouse gestures */
-  bg = gtk_widget_get_style (GTK_WIDGET (view))->base[GTK_STATE_NORMAL];
-  cairo_set_source_rgba (cr, bg.red / 65535.0, bg.green / 65535.0, bg.blue / 65535.0, 0.7);
+  cairo_set_source_rgba (cr, 1, 1, 1, 0.7);
   cairo_paint (cr);
 
   /* determine the gesture action */

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


More information about the Xfce4-commits mailing list