[gtk/master.win32: 4/8] gdksurface-win32.c: Deal with modal and decoration props
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/master.win32: 4/8] gdksurface-win32.c: Deal with modal and decoration props
- Date: Fri, 31 Jul 2020 15:20:42 +0000 (UTC)
commit 07166a55eeb7706d587817352142bfa942a51ea6
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 27 16:59:05 2020 +0800
gdksurface-win32.c: Deal with modal and decoration props
Handle these cases, especially the modal case, which we did not handle
previously after the conversion to surface subtypes.
gdk/win32/gdksurface-win32.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index af5a61cf47..fc52a82a5a 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -4825,10 +4825,16 @@ gdk_win32_toplevel_set_property (GObject *object,
g_object_notify_by_pspec (G_OBJECT (surface), pspec);
break;
+ case LAST_PROP + GDK_TOPLEVEL_PROP_MODAL:
+ _gdk_push_modal_window (surface);
+ break;
+
case LAST_PROP + GDK_TOPLEVEL_PROP_ICON_LIST:
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_DECORATED:
+ _gdk_win32_surface_update_style_bits (surface);
+ g_object_notify_by_pspec (G_OBJECT (surface), pspec);
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_DELETABLE:
@@ -4863,22 +4869,27 @@ gdk_win32_toplevel_get_property (GObject *object,
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_TITLE:
- g_value_set_string (value, "");
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_STARTUP_ID:
- g_value_set_string (value, "");
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_TRANSIENT_FOR:
g_value_set_object (value, surface->transient_for);
break;
+ case LAST_PROP + GDK_TOPLEVEL_PROP_MODAL:
+ break;
+
case LAST_PROP + GDK_TOPLEVEL_PROP_ICON_LIST:
g_value_set_pointer (value, NULL);
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_DECORATED:
+ {
+ GdkWMDecoration decorations = GDK_DECOR_ALL;
+ g_value_set_boolean (value, get_effective_window_decorations (surface, &decorations));
+ }
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_DELETABLE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]