[gtkmm: 2/3] Gdk: Adapt to recent changes for Gdk::TopLevel
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm: 2/3] Gdk: Adapt to recent changes for Gdk::TopLevel
- Date: Sun, 9 Aug 2020 11:53:24 +0000 (UTC)
commit 9cbbf024c46813efe34927bfbfe8ac596746ffdf
Author: Andreas Persson <andreasp56 outlook com>
Date: Thu Aug 6 19:33:20 2020 +0200
Gdk: Adapt to recent changes for Gdk::TopLevel
Only minimal changes to fix compilation errors. The new class
ToplevelSize and the new signal in Toplevel are not wrapped yet.
gdk/src/surface.hg | 3 +--
gdk/src/toplevel.hg | 2 +-
gdk/src/toplevellayout.hg | 5 +----
3 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gdk/src/surface.hg b/gdk/src/surface.hg
index 04cef9ce..d1756f61 100644
--- a/gdk/src/surface.hg
+++ b/gdk/src/surface.hg
@@ -65,8 +65,7 @@ public:
// The gdk_surface_new_*() functions do more than call g_object_new().
// And we can't make one hand-coded constructor for each gdk_surface_new_*()
// function, because some of them have identical prototypes.
- _WRAP_METHOD(static Glib::RefPtr<Surface> create_toplevel(const Glib::RefPtr<Display>& display,
- int width, int height), gdk_surface_new_toplevel)
+ _WRAP_METHOD(static Glib::RefPtr<Surface> create_toplevel(const Glib::RefPtr<Display>& display),
gdk_surface_new_toplevel)
_WRAP_METHOD(static Glib::RefPtr<Surface> create_popup(
const Glib::RefPtr<Surface>& parent, bool autohide), gdk_surface_new_popup)
diff --git a/gdk/src/toplevel.hg b/gdk/src/toplevel.hg
index 1478ebbc..7bf498b9 100644
--- a/gdk/src/toplevel.hg
+++ b/gdk/src/toplevel.hg
@@ -45,7 +45,7 @@ class GDKMM_API Toplevel : public Glib::Interface
_CLASS_INTERFACE(Toplevel, GdkToplevel, GDK_TOPLEVEL, GdkToplevelInterface, , , GDKMM_API)
public:
- _WRAP_METHOD(bool present(int width, int height, const Glib::RefPtr<ToplevelLayout>& layout),
+ _WRAP_METHOD(bool present(const Glib::RefPtr<ToplevelLayout>& layout),
gdk_toplevel_present)
_WRAP_METHOD(bool minimize(), gdk_toplevel_minimize)
_WRAP_METHOD(bool lower(), gdk_toplevel_lower)
diff --git a/gdk/src/toplevellayout.hg b/gdk/src/toplevellayout.hg
index babd4397..3465304c 100644
--- a/gdk/src/toplevellayout.hg
+++ b/gdk/src/toplevellayout.hg
@@ -42,16 +42,13 @@ class GDKMM_API ToplevelLayout final
_IGNORE(gdk_toplevel_layout_ref, gdk_toplevel_layout_unref)
public:
- _WRAP_METHOD(static Glib::RefPtr<ToplevelLayout> create(int min_width, int min_height),
- gdk_toplevel_layout_new)
+ _WRAP_METHOD(static Glib::RefPtr<ToplevelLayout> create(), gdk_toplevel_layout_new)
_WRAP_METHOD(Glib::RefPtr<ToplevelLayout> copy() const, gdk_toplevel_layout_copy)
_WRAP_METHOD(bool equal(const Glib::RefPtr<const ToplevelLayout>& other) const,
gdk_toplevel_layout_equal)
_WRAP_METHOD(void set_maximized(bool maximized = true), gdk_toplevel_layout_set_maximized)
_WRAP_METHOD(void set_fullscreen(bool fullscreen = true, const Glib::RefPtr<Monitor>& monitor = {}),
gdk_toplevel_layout_set_fullscreen)
- _WRAP_METHOD(int get_min_width() const, gdk_toplevel_layout_get_min_width)
- _WRAP_METHOD(int get_min_height() const, gdk_toplevel_layout_get_min_height)
_WRAP_METHOD(bool get_maximized() const, gdk_toplevel_layout_get_maximized)
_WRAP_METHOD(bool get_fullscreen() const, gdk_toplevel_layout_get_fullscreen)
_WRAP_METHOD(Glib::RefPtr<Monitor> get_fullscreen_monitor(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]