Skip to content

Commit

Permalink
Use hard-coded shading color for mouse gestures
Browse files Browse the repository at this point in the history
This removes the use of gtk_widget_get_style (deprecated).
  • Loading branch information
Andre Miranda committed Jun 6, 2018
1 parent baf9922 commit 51fa8fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions thunar/thunar-abstract-icon-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down

0 comments on commit 51fa8fc

Please sign in to comment.