[gtk+/wip/window-scales] Revert "Gtk: Use gdk_cairo_surface_create_similar"



commit 86a5f2c30ef2a4f76d7b542163dfa37172a9d61f
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jul 2 16:27:06 2013 +0200

    Revert "Gtk: Use gdk_cairo_surface_create_similar"
    
    This reverts commit bb7e83399b91dea698487a9b78f28a838aee3958.

 gtk/gtkcssimage.c          |    2 +-
 gtk/gtknumerableicon.c     |    6 +++---
 gtk/gtkthemingbackground.c |    6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index c200a78..a79b3e1 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -395,7 +395,7 @@ _gtk_css_image_get_surface (GtkCssImage     *image,
   g_return_val_if_fail (surface_height > 0, NULL);
 
   if (target)
-    result = gdk_cairo_surface_create_similar (target,
+    result = cairo_surface_create_similar (target,
                                            CAIRO_CONTENT_COLOR_ALPHA,
                                            surface_width,
                                            surface_height);
diff --git a/gtk/gtknumerableicon.c b/gtk/gtknumerableicon.c
index e1811c6..9ba612f 100644
--- a/gtk/gtknumerableicon.c
+++ b/gtk/gtknumerableicon.c
@@ -175,9 +175,9 @@ draw_from_image (cairo_surface_t *image)
   cairo_surface_t *surface;
   cairo_t *cr;
 
-  surface = gdk_cairo_surface_create_similar (image, CAIRO_CONTENT_COLOR_ALPHA,
-                                              cairo_image_surface_get_width (image),
-                                              cairo_image_surface_get_height (image));
+  surface = cairo_surface_create_similar (image, CAIRO_CONTENT_COLOR_ALPHA,
+                                          cairo_image_surface_get_width (image),
+                                          cairo_image_surface_get_height (image));
   cr = cairo_create (surface);
 
   cairo_set_source_surface (cr, image, 0, 0);
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 1566aae..706752b 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -216,9 +216,9 @@ _gtk_theming_background_paint_layer (GtkThemingBackground *bg,
       else
         surface_height = round (image_height);
 
-      surface = gdk_cairo_surface_create_similar (cairo_get_target (cr),
-                                                  CAIRO_CONTENT_COLOR_ALPHA,
-                                                  surface_width, surface_height);
+      surface = cairo_surface_create_similar (cairo_get_target (cr),
+                                              CAIRO_CONTENT_COLOR_ALPHA,
+                                              surface_width, surface_height);
       cr2 = cairo_create (surface);
       cairo_translate (cr2,
                        0.5 * (surface_width - image_width),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]