[gtkmm] Gdk::Window: Remove the constructor that matched gdk_window_new().



commit dc545d3bc18e57606c37b101c952fa8715e10f07
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Nov 7 13:42:04 2016 +0100

    Gdk::Window: Remove the constructor that matched gdk_window_new().
    
    Because that is now not public API in GTK+4:
    https://git.gnome.org/browse/gtk+/commit/?id=9fe8b1e11240f5d853711c8e8fc4d2a0aa943c09

 gdk/src/window.ccg |    7 -------
 gdk/src/window.hg  |    6 ------
 2 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gdk/src/window.ccg b/gdk/src/window.ccg
index c2cb3b1..1f858ab 100644
--- a/gdk/src/window.ccg
+++ b/gdk/src/window.ccg
@@ -25,13 +25,6 @@
 namespace Gdk
 {
 
-Window::Window(const Glib::RefPtr<Window>& parent, GdkWindowAttr* attributes, int attributes_mask)
-:
-  Glib::Object((GObject*) gdk_window_new(Glib::unwrap(parent), attributes, attributes_mask))
-{
-  //GdkWindow is X11/win32-specific, so we probably can't derived our own GType.
-}
-
 void Window::set_cursor()
 {
   gdk_window_set_cursor(gobj(), nullptr);
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 434fd35..cf016fc 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -36,7 +36,6 @@ namespace Gdk
 
 _WRAP_ENUM(WindowState, GdkWindowState)
 _WRAP_ENUM(WindowType, GdkWindowType)
-_WRAP_ENUM(WindowAttributesType, GdkWindowAttributesType)
 _WRAP_ENUM(WindowHints, GdkWindowHints)
 _WRAP_ENUM(WindowTypeHint, GdkWindowTypeHint)
 _WRAP_ENUM(WMDecoration, GdkWMDecoration)
@@ -62,12 +61,7 @@ class Window : public Glib::Object
   _STRUCT_NOT_HIDDEN
   _IGNORE(gdk_window_destroy, gdk_window_new, gdk_window_is_destroyed)
 
-protected:
-  Window(const Glib::RefPtr<Window>& parent, GdkWindowAttr* attributes, int attributes_mask);
-
 public:
-  _WRAP_CREATE(const Glib::RefPtr<Window>& parent, GdkWindowAttr* attributes, int attributes_mask)
-
   _WRAP_METHOD(WindowType get_window_type() const, gdk_window_get_window_type)
 
   _WRAP_METHOD(Glib::RefPtr<Screen> get_screen(), gdk_window_get_screen, refreturn)


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