summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-20 01:13:41 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-04-20 02:28:46 +0000
commitfed2db1493606342e0c80df6e959158f9d467523 (patch)
tree1d8a4e9cb0ccc9f36f746104a518eb1b8516fcd8 /gdk/x11
parent77ff83cdd14352015514c14f4fab33e164b83977 (diff)
downloadgtk+-fed2db1493606342e0c80df6e959158f9d467523.tar.gz
window: Drop some x11-specific apis
The skip-taskbar, skip-pager and urgency hints were only ever implemented for X11, and are not very useful with modern desktops. Relegate the functionality to x11 backend api, and drop the GtkWindow api.
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdksurface-x11.c15
-rw-r--r--gdk/x11/gdkx11surface.h10
2 files changed, 16 insertions, 9 deletions
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 2e3714859e..aa5eb9b5a4 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -1867,9 +1867,9 @@ gdk_x11_surface_set_modal_hint (GdkSurface *surface,
NULL);
}
-static void
+void
gdk_x11_surface_set_skip_taskbar_hint (GdkSurface *surface,
- gboolean skips_taskbar)
+ gboolean skips_taskbar)
{
GdkToplevelX11 *toplevel;
@@ -1888,9 +1888,9 @@ gdk_x11_surface_set_skip_taskbar_hint (GdkSurface *surface,
NULL);
}
-static void
+void
gdk_x11_surface_set_skip_pager_hint (GdkSurface *surface,
- gboolean skips_pager)
+ gboolean skips_pager)
{
GdkToplevelX11 *toplevel;
@@ -1909,9 +1909,9 @@ gdk_x11_surface_set_skip_pager_hint (GdkSurface *surface,
NULL);
}
-static void
+void
gdk_x11_surface_set_urgency_hint (GdkSurface *surface,
- gboolean urgent)
+ gboolean urgent)
{
GdkToplevelX11 *toplevel;
@@ -4658,9 +4658,6 @@ gdk_surface_impl_x11_class_init (GdkSurfaceImplX11Class *klass)
impl_class->set_type_hint = gdk_x11_surface_set_type_hint;
impl_class->get_type_hint = gdk_x11_surface_get_type_hint;
impl_class->set_modal_hint = gdk_x11_surface_set_modal_hint;
- impl_class->set_skip_taskbar_hint = gdk_x11_surface_set_skip_taskbar_hint;
- impl_class->set_skip_pager_hint = gdk_x11_surface_set_skip_pager_hint;
- impl_class->set_urgency_hint = gdk_x11_surface_set_urgency_hint;
impl_class->set_geometry_hints = gdk_x11_surface_set_geometry_hints;
impl_class->set_title = gdk_x11_surface_set_title;
impl_class->set_startup_id = gdk_x11_surface_set_startup_id;
diff --git a/gdk/x11/gdkx11surface.h b/gdk/x11/gdkx11surface.h
index bb23dbee71..fcd6a8006d 100644
--- a/gdk/x11/gdkx11surface.h
+++ b/gdk/x11/gdkx11surface.h
@@ -105,6 +105,16 @@ GDK_AVAILABLE_IN_ALL
GdkSurface *gdk_x11_surface_lookup_for_display (GdkDisplay *display,
Window window);
+GDK_AVAILABLE_IN_ALL
+void gdk_x11_surface_set_skip_taskbar_hint (GdkSurface *surface,
+ gboolean skips_taskbar);
+GDK_AVAILABLE_IN_ALL
+void gdk_x11_surface_set_skip_pager_hint (GdkSurface *surface,
+ gboolean skips_pager);
+GDK_AVAILABLE_IN_ALL
+void gdk_x11_surface_set_urgency_hint (GdkSurface *surface,
+ gboolean urgent);
+
G_END_DECLS
#endif /* __GDK_X11_SURFACE_H__ */