[gtkmm] Deprecate Gdk::GLContext::get_shared_context()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Deprecate Gdk::GLContext::get_shared_context()
- Date: Thu, 29 Jul 2021 08:55:08 +0000 (UTC)
commit 8c01bdcf5c61bd24b11ae5a7ad3fee73ded480c8
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Jul 29 10:52:04 2021 +0200
Deprecate Gdk::GLContext::get_shared_context()
gdk_gl_context_get_shared_context() has been deprecated.
gdk/src/glcontext.hg | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gdk/src/glcontext.hg b/gdk/src/glcontext.hg
index 13ecabfc..4b39ec93 100644
--- a/gdk/src/glcontext.hg
+++ b/gdk/src/glcontext.hg
@@ -46,10 +46,14 @@ public:
_WRAP_METHOD(Glib::RefPtr<const Display> get_display() const, gdk_gl_context_get_display, refreturn,
constversion, newin "3,18")
_WRAP_METHOD(Glib::RefPtr<Surface> get_surface(), gdk_gl_context_get_surface, refreturn, newin "3,18")
_WRAP_METHOD(Glib::RefPtr<const Surface> get_surface() const, gdk_gl_context_get_surface, refreturn,
constversion, newin "3,18")
- _WRAP_METHOD(Glib::RefPtr<GLContext> get_shared_context(), gdk_gl_context_get_shared_context, refreturn,
newin "3,18")
- _WRAP_METHOD(Glib::RefPtr<const GLContext> get_shared_context() const, gdk_gl_context_get_shared_context,
refreturn, constversion, newin "3,18")
+ _WRAP_METHOD(Glib::RefPtr<GLContext> get_shared_context(), gdk_gl_context_get_shared_context, refreturn,
+ newin "3,18", deprecated "Always returns an empty RefPtr.")
+ _WRAP_METHOD(Glib::RefPtr<const GLContext> get_shared_context() const, gdk_gl_context_get_shared_context,
+ refreturn, constversion, newin "3,18", deprecated "Always returns an empty RefPtr.")
_WRAP_METHOD(void get_version(int& major, int& minor) const, gdk_gl_context_get_version, newin "3,18")
_WRAP_METHOD(bool is_legacy() const, gdk_gl_context_is_legacy)
+ //TODO: Add is_shared() when gtkmm requires gtk >= 4.3.2
+ //_WRAP_METHOD(bool is_shared() const, gdk_gl_context_is_shared, newin "4,4")
_WRAP_METHOD(void get_required_version(int& major, int& minor) const, gdk_gl_context_get_required_version,
newin "3,18")
_WRAP_METHOD(void set_required_version(int major, int minor), gdk_gl_context_set_required_version, newin
"3,18")
_WRAP_METHOD(bool get_debug_enabled() const, gdk_gl_context_get_debug_enabled, newin "3,18")
@@ -92,7 +96,7 @@ public:
_WRAP_METHOD(static Glib::RefPtr<GLContext> get_current(), gdk_gl_context_get_current, refreturn, newin
"3,18")
_WRAP_METHOD(static void clear_current(), gdk_gl_context_clear_current, newin "3,18")
- _WRAP_PROPERTY("shared-context", Glib::RefPtr<GLContext>, newin "3,18")
+ _WRAP_PROPERTY("shared-context", Glib::RefPtr<GLContext>, newin "3,18", deprecated "Always returns an
empty RefPtr.")
};
} // namespace Gdk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]