[gtkmm] Gdk::Cursor, Pixbuf, Window: Fix use of Cairo::xxx in namespace Gdk
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk::Cursor, Pixbuf, Window: Fix use of Cairo::xxx in namespace Gdk
- Date: Wed, 16 Sep 2015 13:35:57 +0000 (UTC)
commit 07c7bcc4e6bebce8fd265d83d815d2b2e4ee0e59
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Wed Sep 16 15:32:32 2015 +0200
Gdk::Cursor, Pixbuf, Window: Fix use of Cairo::xxx in namespace Gdk
* gdk/src/cursor.hg:
* gdk/src/pixbuf.[hg|ccg]:
* gdk/src/window.hg: Replace Cairo::xxx by ::Cairo::xxx, to force the
compiler to search in namespace Cairo, and not in namespace Gdk::Cairo.
Bug #755061.
gdk/src/cursor.hg | 8 ++++----
gdk/src/pixbuf.ccg | 2 +-
gdk/src/pixbuf.hg | 4 ++--
gdk/src/window.hg | 6 +++---
4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gdk/src/cursor.hg b/gdk/src/cursor.hg
index e29a0e3..81c7b3e 100644
--- a/gdk/src/cursor.hg
+++ b/gdk/src/cursor.hg
@@ -64,10 +64,10 @@ public:
_WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> get_image() const, gdk_cursor_get_image, constversion)
//TODO: Should this always be const?
-#m4 _CONVERSION(`cairo_surface_t*',`Cairo::RefPtr<Cairo::Surface>',`Cairo::RefPtr<Cairo::Surface>(new
Cairo::Surface($3, true /* take reference */))')
-#m4 _CONVERSION(`cairo_surface_t*',`Cairo::RefPtr<const Cairo::Surface>',`Cairo::RefPtr<Cairo::Surface>(new
Cairo::Surface($3, true /* take reference */))')
- _WRAP_METHOD(Cairo::RefPtr<Cairo::Surface> get_surface(double& x_hot, double& y_hot),
gdk_cursor_get_surface)
- _WRAP_METHOD(Cairo::RefPtr<const Cairo::Surface> get_surface(double& x_hot, double& y_hot) const,
gdk_cursor_get_surface, constversion)
+#m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr< ::Cairo::Surface>',`::Cairo::RefPtr<
::Cairo::Surface>(new ::Cairo::Surface($3, true /* take reference */))')
+#m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr<const ::Cairo::Surface>',`::Cairo::RefPtr<
::Cairo::Surface>(new ::Cairo::Surface($3, true /* take reference */))')
+ _WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Surface> get_surface(double& x_hot, double& y_hot),
gdk_cursor_get_surface)
+ _WRAP_METHOD(::Cairo::RefPtr<const ::Cairo::Surface> get_surface(double& x_hot, double& y_hot) const,
gdk_cursor_get_surface, constversion)
_WRAP_METHOD(CursorType get_cursor_type() const, gdk_cursor_get_cursor_type)
};
diff --git a/gdk/src/pixbuf.ccg b/gdk/src/pixbuf.ccg
index 58706d3..1c9e19c 100644
--- a/gdk/src/pixbuf.ccg
+++ b/gdk/src/pixbuf.ccg
@@ -56,7 +56,7 @@ Pixbuf::Pixbuf(const Glib::RefPtr<Window>& src,
src->gobj(), src_x, src_y, width, height))
{}
-Pixbuf::Pixbuf(const Cairo::RefPtr<Cairo::Surface>& src,
+Pixbuf::Pixbuf(const ::Cairo::RefPtr< ::Cairo::Surface>& src,
int src_x, int src_y, int width, int height)
:
Object((GObject*) gdk_pixbuf_get_from_surface(
diff --git a/gdk/src/pixbuf.hg b/gdk/src/pixbuf.hg
index 52834dc..cb858a3 100644
--- a/gdk/src/pixbuf.hg
+++ b/gdk/src/pixbuf.hg
@@ -113,7 +113,7 @@ protected:
*
* @newin{2,30}
*/
- Pixbuf(const Cairo::RefPtr<Cairo::Surface>& src,
+ Pixbuf(const ::Cairo::RefPtr< ::Cairo::Surface>& src,
int src_x, int src_y, int width, int height);
_IGNORE(gdk_pixbuf_get_from_surface)
@@ -171,7 +171,7 @@ public:
*
* @newin{2,30}
*/
- _WRAP_CREATE(const Cairo::RefPtr<Cairo::Surface>& src,
+ _WRAP_CREATE(const ::Cairo::RefPtr< ::Cairo::Surface>& src,
int src_x, int src_y, int width, int height)
_WRAP_METHOD(Glib::RefPtr<Pixbuf> copy() const, gdk_pixbuf_copy)
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 25bc3fb..d7e29a1 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -158,9 +158,9 @@ public:
#m4 _CONVERSION(`const ::Cairo::RefPtr< ::Cairo::Pattern>&',`cairo_pattern_t*',`($3)->cobj()')
_WRAP_METHOD(void set_background(const ::Cairo::RefPtr< ::Cairo::Pattern>& pattern),
gdk_window_set_background_pattern)
- #m4 _CONVERSION(`cairo_pattern_t*',`::Cairo::RefPtr< ::Cairo::Pattern>',`::Cairo::RefPtr<
::Cairo::Pattern>(new Cairo::Pattern($3, false /* take reference */))')
+ #m4 _CONVERSION(`cairo_pattern_t*',`::Cairo::RefPtr< ::Cairo::Pattern>',`::Cairo::RefPtr<
::Cairo::Pattern>(new ::Cairo::Pattern($3, false /* take reference */))')
_WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Pattern> get_background_pattern(),
gdk_window_get_background_pattern)
- #m4 _CONVERSION(`cairo_pattern_t*',`::Cairo::RefPtr<const ::Cairo::Pattern>',`::Cairo::RefPtr<const
::Cairo::Pattern>(new Cairo::Pattern($3, false /* take reference */))')
+ #m4 _CONVERSION(`cairo_pattern_t*',`::Cairo::RefPtr<const ::Cairo::Pattern>',`::Cairo::RefPtr<const
::Cairo::Pattern>(new ::Cairo::Pattern($3, false /* take reference */))')
_WRAP_METHOD(::Cairo::RefPtr<const ::Cairo::Pattern> get_background_pattern() const,
gdk_window_get_background_pattern)
@@ -245,7 +245,7 @@ public:
_WRAP_METHOD(bool get_decorations(WMDecoration& decorations) const, gdk_window_get_decorations)
_WRAP_METHOD(void set_functions(WMFunction functions), gdk_window_set_functions)
- #m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr< ::Cairo::Surface>',`::Cairo::RefPtr<
::Cairo::Surface>(new Cairo::Surface($3, false /* take reference */))')
+ #m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr< ::Cairo::Surface>',`::Cairo::RefPtr<
::Cairo::Surface>(new ::Cairo::Surface($3, false /* take reference */))')
#m4 _CONVERSION(`::Cairo::Content',`cairo_content_t',`(cairo_content_t)($3)')
_WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Surface> create_similar_surface(::Cairo::Content content, int
width, int height), gdk_window_create_similar_surface )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]