[Xfce4-commits] [xfce/xfce4-settings] 01/01: Do not create a needless cairo_t

noreply at xfce.org noreply at xfce.org
Tue Jun 13 12:28:46 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/xfce4-settings.

commit 3988468934f36f05a5d7a0f71172be85799cfcc6
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Jun 13 06:28:40 2017 -0400

    Do not create a needless cairo_t
---
 dialogs/display-settings/main.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index bf93a42..336ad87 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -662,10 +662,9 @@ display_setting_screen_changed (GtkWidget *widget,
 
 static gboolean
 display_setting_identity_popup_draw (GtkWidget      *popup,
-                                       cairo_t *c,
-                                       GtkBuilder     *builder)
+                                     cairo_t *cr,
+                                     GtkBuilder     *builder)
 {
-    cairo_t         *cr = gdk_cairo_create (gtk_widget_get_window(popup));
     cairo_pattern_t *vertical_gradient, *innerstroke_gradient, *selected_gradient, *selected_innerstroke_gradient;
     gint             radius;
     gboolean         selected = (g_hash_table_lookup (display_popups, GINT_TO_POINTER (active_output)) == popup);
@@ -769,7 +768,6 @@ display_setting_identity_popup_draw (GtkWidget      *popup,
         cairo_close_path (cr);
     }
 
-    cairo_destroy (cr);
     cairo_pattern_destroy (vertical_gradient);
     cairo_pattern_destroy (innerstroke_gradient);
     cairo_pattern_destroy (selected_gradient);

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


More information about the Xfce4-commits mailing list