diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-03-14 01:23:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-14 01:23:09 -0400 |
commit | 0d3df4fb1d56d33133e5c58c014cdf369b3f00b7 (patch) | |
tree | 7b63b1bbc65f10ff8617f3f174d32a678829ee68 /gdk | |
parent | 4be675b0c9b655336a2b0907dfbd40ecb0c6cb8b (diff) | |
download | gtk+-0d3df4fb1d56d33133e5c58c014cdf369b3f00b7.tar.gz |
Document gdk_toplevel_set_modal
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdktoplevel.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c index 1cfeb2c448..7544b673a2 100644 --- a/gdk/gdktoplevel.c +++ b/gdk/gdktoplevel.c @@ -352,6 +352,19 @@ gdk_toplevel_set_transient_for (GdkToplevel *toplevel, g_object_set (toplevel, "transient-for", parent, NULL); } +/** + * gdk_toplevel_set_modal: + * @toplevel: A toplevel surface + * @modal: %TRUE if the surface is modal, %FALSE otherwise. + * + * The application can use this hint to tell the + * window manager that a certain surface has modal + * behaviour. The window manager can use this information + * to handle modal surfaces in a special way. + * + * You should only use this on surfaces for which you have + * previously called gdk_toplevel_set_transient_for(). + */ void gdk_toplevel_set_modal (GdkToplevel *toplevel, gboolean modal) |