[Xfce4-commits] [xfce/xfce4-settings] 01/02: Ignore gdk_cairo_create deprecations until upstream finds a solution

noreply at xfce.org noreply at xfce.org
Tue Jun 13 12:57:30 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 f9d204fe55fc51b60159cf050ba2af31d3616d84
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Jun 13 06:55:58 2017 -0400

    Ignore gdk_cairo_create deprecations until upstream finds a solution
---
 dialogs/display-settings/scrollarea.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dialogs/display-settings/scrollarea.c b/dialogs/display-settings/scrollarea.c
index 149d894..c4d6e39 100644
--- a/dialogs/display-settings/scrollarea.c
+++ b/dialogs/display-settings/scrollarea.c
@@ -609,7 +609,9 @@ foo_scroll_area_realize (GtkWidget *widget)
     g_object_ref (window);
 
     area->priv->input_window = gdk_window_new (window, &attributes, attributes_mask);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     cr = gdk_cairo_create (gtk_widget_get_window (widget));
+G_GNUC_END_IGNORE_DEPRECATIONS
     area->priv->surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_COLOR,
                                                         widget_allocation.width, widget_allocation.height);
     cairo_destroy (cr);
@@ -641,7 +643,10 @@ create_new_surface (GtkWidget       *widget,
 
     gtk_widget_get_allocation (widget, &widget_allocation);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     cr = gdk_cairo_create (gtk_widget_get_window (widget));
+G_GNUC_END_IGNORE_DEPRECATIONS
+
     new = cairo_surface_create_similar (cairo_get_target (cr),
                                         CAIRO_CONTENT_COLOR,
                                         widget_allocation.width,
@@ -787,7 +792,9 @@ process_event (FooScrollArea         *scroll_area,
                 cairo_t *cr;
                 gboolean inside;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
                 cr = gdk_cairo_create (gtk_widget_get_window (widget));
+G_GNUC_END_IGNORE_DEPRECATIONS
                 cairo_set_fill_rule (cr, path->fill_rule);
                 cairo_set_line_width (cr, path->line_width);
                 cairo_append_path (cr, path->path);

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


More information about the Xfce4-commits mailing list