[gtkmm: 2/3] Gtk::Native: Remove vfuncs as interface is private




commit 240c3c54c24112b2c322aaa5eb07b2cc844bb360
Author: Andreas Persson <andreasp56 outlook com>
Date:   Sat Aug 15 07:38:20 2020 +0200

    Gtk::Native: Remove vfuncs as interface is private
    
    GtkNativeInterface is now private in Gtk. Adapt to that change by
    removing the vfuncs in Gtk::Native.

 gtk/src/native.hg | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/gtk/src/native.hg b/gtk/src/native.hg
index b61b46e4..2b32771e 100644
--- a/gtk/src/native.hg
+++ b/gtk/src/native.hg
@@ -53,7 +53,7 @@ class GTKMM_API Native : public Glib::Interface
   _CLASS_INTERFACE(Native, GtkNative, GTK_NATIVE, GtkNativeInterface, , , GTKMM_API)
 
 public:
-  _WRAP_METHOD(static Widget* get_for_surface(const Glib::RefPtr<const Gdk::Surface>& surface),
+  _WRAP_METHOD(static Native* get_for_surface(const Glib::RefPtr<const Gdk::Surface>& surface),
     gtk_native_get_for_surface)
 
   _WRAP_METHOD(void check_resize(), gtk_native_check_resize)
@@ -63,13 +63,6 @@ public:
 
   //?_WRAP_METHOD(GskRenderer* get_renderer(), gtk_native_get_renderer)
   _WRAP_METHOD(void get_surface_transform(double& x, double& y), gtk_native_get_surface_transform)
-
-protected:
-#m4 _CONVERSION(`Glib::RefPtr<Gdk::Surface>', `GdkSurface*', __CONVERT_REFPTR_TO_P)
-  _WRAP_VFUNC(Glib::RefPtr<Gdk::Surface> get_surface(), "get_surface", refreturn)
-  //?_WRAP_VFUNC(GskRenderer* get_renderer(), "get_renderer")
-  _WRAP_VFUNC(void get_surface_transform(double& x, double& y), "get_surface_transform")
-  _WRAP_VFUNC(void check_resize(), "check_resize")
 };
 
 } // namespace Gtk


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