[gtk/wip/chergert/for-main: 2/10] macos: cleanup popup surface properties and compute-size
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-main: 2/10] macos: cleanup popup surface properties and compute-size
- Date: Tue, 1 Mar 2022 07:09:57 +0000 (UTC)
commit d75f36be4956b15194d4bf5ebb04fa069426d3c8
Author: Christian Hergert <christian hergert me>
Date: Mon Feb 28 18:15:58 2022 -0800
macos: cleanup popup surface properties and compute-size
gdk/macos/gdkmacospopupsurface.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacospopupsurface.c b/gdk/macos/gdkmacospopupsurface.c
index 5a2d7ed481..7d2a575655 100644
--- a/gdk/macos/gdkmacospopupsurface.c
+++ b/gdk/macos/gdkmacospopupsurface.c
@@ -203,6 +203,16 @@ enum {
LAST_PROP,
};
+static gboolean
+_gdk_macos_popup_surface_compute_size (GdkSurface *surface)
+{
+ GdkMacosPopupSurface *self = (GdkMacosPopupSurface *)surface;
+
+ g_assert (GDK_IS_MACOS_POPUP_SURFACE (self));
+
+ return FALSE;
+}
+
static void
_gdk_macos_popup_surface_finalize (GObject *object)
{
@@ -270,12 +280,15 @@ static void
_gdk_macos_popup_surface_class_init (GdkMacosPopupSurfaceClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GdkSurfaceClass *surface_class = GDK_SURFACE_CLASS (klass);
object_class->finalize = _gdk_macos_popup_surface_finalize;
object_class->get_property = _gdk_macos_popup_surface_get_property;
object_class->set_property = _gdk_macos_popup_surface_set_property;
- gdk_popup_install_properties (object_class, 1);
+ surface_class->compute_size = _gdk_macos_popup_surface_compute_size;
+
+ gdk_popup_install_properties (object_class, LAST_PROP);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]