[gtk/present-toplevel-2: 168/178] wayland: Drop more unused vfuncs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 168/178] wayland: Drop more unused vfuncs
- Date: Tue, 10 Mar 2020 01:24:03 +0000 (UTC)
commit 34a70ae47be40fb57097afe169a53bbd7007d149
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 9 11:17:32 2020 -0700
wayland: Drop more unused vfuncs
gdk/wayland/gdksurface-wayland.c | 104 ---------------------------------------
1 file changed, 104 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index dcfbed7053..438b90b610 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2927,33 +2927,6 @@ gdk_wayland_surface_focus (GdkSurface *surface,
gtk_surface1_present (impl->display_server.gtk_surface, timestamp);
}
-static void
-gdk_wayland_surface_set_type_hint (GdkSurface *surface,
- GdkSurfaceTypeHint hint)
-{
- GdkWaylandSurface *impl;
-
- impl = GDK_WAYLAND_SURFACE (surface);
-
- if (GDK_SURFACE_DESTROYED (surface))
- return;
-
- impl->hint = hint;
-}
-
-static GdkSurfaceTypeHint
-gdk_wayland_surface_get_type_hint (GdkSurface *surface)
-{
- GdkWaylandSurface *impl;
-
- if (GDK_SURFACE_DESTROYED (surface))
- return GDK_SURFACE_TYPE_HINT_NORMAL;
-
- impl = GDK_WAYLAND_SURFACE (surface);
-
- return impl->hint;
-}
-
static void
gtk_surface_configure (void *data,
struct gtk_surface1 *gtk_surface,
@@ -3240,24 +3213,6 @@ gdk_wayland_surface_set_transient_for (GdkSurface *surface,
gdk_wayland_surface_sync_parent (surface, NULL);
}
-static void
-gdk_wayland_surface_set_accept_focus (GdkSurface *surface,
- gboolean accept_focus)
-{
-}
-
-static void
-gdk_wayland_surface_set_focus_on_map (GdkSurface *surface,
- gboolean focus_on_map)
-{
-}
-
-static void
-gdk_wayland_surface_set_icon_list (GdkSurface *surface,
- GList *surfaces)
-{
-}
-
static void
gdk_wayland_surface_minimize (GdkSurface *surface)
{
@@ -3291,21 +3246,6 @@ gdk_wayland_surface_minimize (GdkSurface *surface)
#endif
}
-static void
-gdk_wayland_surface_unminimize (GdkSurface *surface)
-{
-}
-
-static void
-gdk_wayland_surface_stick (GdkSurface *surface)
-{
-}
-
-static void
-gdk_wayland_surface_unstick (GdkSurface *surface)
-{
-}
-
static void
gdk_wayland_surface_maximize (GdkSurface *surface)
{
@@ -3478,18 +3418,6 @@ gdk_wayland_surface_unfullscreen (GdkSurface *surface)
}
}
-static void
-gdk_wayland_surface_set_keep_above (GdkSurface *surface,
- gboolean setting)
-{
-}
-
-static void
-gdk_wayland_surface_set_keep_below (GdkSurface *surface,
- gboolean setting)
-{
-}
-
static void
gdk_wayland_surface_begin_resize_drag (GdkSurface *surface,
GdkSurfaceEdge edge,
@@ -3631,12 +3559,6 @@ gdk_wayland_surface_begin_move_drag (GdkSurface *surface,
gdk_seat_ungrab (gdk_device_get_seat (device));
}
-static void
-gdk_wayland_surface_set_opacity (GdkSurface *surface,
- gdouble opacity)
-{
-}
-
static void
gdk_wayland_surface_destroy_notify (GdkSurface *surface)
{
@@ -3781,37 +3703,13 @@ gdk_wayland_surface_class_init (GdkWaylandSurfaceClass *klass)
impl_class->destroy = gdk_wayland_surface_destroy;
impl_class->beep = gdk_wayland_surface_beep;
- impl_class->focus = gdk_wayland_surface_focus;
- impl_class->set_type_hint = gdk_wayland_surface_set_type_hint;
- impl_class->get_type_hint = gdk_wayland_surface_get_type_hint;
- impl_class->set_modal_hint = gdk_wayland_surface_set_modal_hint;
- impl_class->set_geometry_hints = gdk_wayland_surface_set_geometry_hints;
- impl_class->set_title = gdk_wayland_surface_set_title;
- impl_class->set_startup_id = gdk_wayland_surface_set_startup_id;
- impl_class->set_transient_for = gdk_wayland_surface_set_transient_for;
- impl_class->set_accept_focus = gdk_wayland_surface_set_accept_focus;
- impl_class->set_focus_on_map = gdk_wayland_surface_set_focus_on_map;
- impl_class->set_icon_list = gdk_wayland_surface_set_icon_list;
- impl_class->minimize = gdk_wayland_surface_minimize;
- impl_class->unminimize = gdk_wayland_surface_unminimize;
- impl_class->stick = gdk_wayland_surface_stick;
- impl_class->unstick = gdk_wayland_surface_unstick;
- impl_class->maximize = gdk_wayland_surface_maximize;
- impl_class->unmaximize = gdk_wayland_surface_unmaximize;
- impl_class->fullscreen = gdk_wayland_surface_fullscreen;
- impl_class->fullscreen_on_monitor = gdk_wayland_surface_fullscreen_on_monitor;
- impl_class->unfullscreen = gdk_wayland_surface_unfullscreen;
- impl_class->set_keep_above = gdk_wayland_surface_set_keep_above;
- impl_class->set_keep_below = gdk_wayland_surface_set_keep_below;
impl_class->begin_resize_drag = gdk_wayland_surface_begin_resize_drag;
impl_class->begin_move_drag = gdk_wayland_surface_begin_move_drag;
- impl_class->set_opacity = gdk_wayland_surface_set_opacity;
impl_class->destroy_notify = gdk_wayland_surface_destroy_notify;
impl_class->drag_begin = _gdk_wayland_surface_drag_begin;
impl_class->get_scale_factor = gdk_wayland_surface_get_scale_factor;
impl_class->set_opaque_region = gdk_wayland_surface_set_opaque_region;
impl_class->set_shadow_width = gdk_wayland_surface_set_shadow_width;
- impl_class->show_window_menu = gdk_wayland_surface_show_window_menu;
impl_class->create_gl_context = gdk_wayland_surface_create_gl_context;
impl_class->supports_edge_constraints = gdk_wayland_surface_supports_edge_constraints;
@@ -4573,8 +4471,6 @@ gdk_wayland_toplevel_present (GdkToplevel *toplevel,
GdkGeometry geometry;
GdkSurfaceHints mask;
- gdk_wayland_surface_unminimize (surface);
-
if (gdk_toplevel_layout_get_resizable (layout))
{
geometry.min_width = gdk_toplevel_layout_get_min_width (layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]