[gtkmm] Gdk::Cairo: Ignore deprecation of gdk_cairo_draw_from_gl()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk::Cairo: Ignore deprecation of gdk_cairo_draw_from_gl()
- Date: Fri, 1 Oct 2021 08:19:49 +0000 (UTC)
commit 1e1e2c76fdb9fcce09397edbde83cfe7620087cc
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Oct 1 10:18:09 2021 +0200
Gdk::Cairo: Ignore deprecation of gdk_cairo_draw_from_gl()
gdk/gdkmm/general.cc | 2 ++
gdk/gdkmm/general.h | 1 +
2 files changed, 3 insertions(+)
---
diff --git a/gdk/gdkmm/general.cc b/gdk/gdkmm/general.cc
index ec0af4a6..c20a97f3 100644
--- a/gdk/gdkmm/general.cc
+++ b/gdk/gdkmm/general.cc
@@ -52,6 +52,7 @@ void add_region_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, cons
return Gdk::Cairo::wrap(gdk_cairo_region_create_from_surface(surface->cobj()), true);
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
void draw_from_gl(const ::Cairo::RefPtr< ::Cairo::Context >& context,
const Glib::RefPtr<Gdk::Surface>& surface, int source, int source_type,
int buffer_scale, int x, int y, int width, int height)
@@ -59,6 +60,7 @@ void draw_from_gl(const ::Cairo::RefPtr< ::Cairo::Context >& context,
gdk_cairo_draw_from_gl(context->cobj(), surface->gobj(), source, source_type,
buffer_scale, x, y, width, height);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
} //namespace Cairo
diff --git a/gdk/gdkmm/general.h b/gdk/gdkmm/general.h
index 690d80ba..e5cdc8bd 100644
--- a/gdk/gdkmm/general.h
+++ b/gdk/gdkmm/general.h
@@ -124,6 +124,7 @@ GDKMM_API
void draw_from_gl(const ::Cairo::RefPtr< ::Cairo::Context >& context,
const Glib::RefPtr<Gdk::Surface>& surface, int source, int source_type,
int buffer_scale, int x, int y, int width, int height);
+//TODO: Deprecate draw_from_gl() in master when the gtkmm-4-4 branch has been created.
} //namespace Cairo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]