[gtk/present-toplevel-2: 26/59] surface: Drop window menu api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 26/59] surface: Drop window menu api
- Date: Thu, 5 Mar 2020 18:18:48 +0000 (UTC)
commit 4eab81d71b0d362a86fdfaa5571da9c23a3b1392
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 3 09:00:20 2020 -0800
surface: Drop window menu api
gdk/gdksurface.c | 29 -----------------------------
gdk/gdksurface.h | 3 ---
2 files changed, 32 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index bb855815db..b3a642c635 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -3382,35 +3382,6 @@ gdk_surface_set_shadow_width (GdkSurface *surface,
class->set_shadow_width (surface, left, right, top, bottom);
}
-/**
- * gdk_surface_show_window_menu:
- * @surface: a #GdkSurface
- * @event: a #GdkEvent to show the menu for
- *
- * Asks the windowing system to show the window menu. The window menu
- * is the menu shown when right-clicking the titlebar on traditional
- * windows managed by the window manager. This is useful for windows
- * using client-side decorations, activating it with a right-click
- * on the window decorations.
- *
- * Returns: %TRUE if the window menu was shown and %FALSE otherwise.
- */
-gboolean
-gdk_surface_show_window_menu (GdkSurface *surface,
- GdkEvent *event)
-{
- GdkSurfaceClass *class;
-
- g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
- g_return_val_if_fail (!GDK_SURFACE_DESTROYED (surface), FALSE);
-
- class = GDK_SURFACE_GET_CLASS (surface);
- if (class->show_window_menu)
- return class->show_window_menu (surface, event);
- else
- return FALSE;
-}
-
gboolean
gdk_surface_supports_edge_constraints (GdkSurface *surface)
{
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index bba1ed70b9..c5af6d76fa 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -507,9 +507,6 @@ void gdk_surface_set_shadow_width (GdkSurface *surface,
gint right,
gint top,
gint bottom);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_surface_show_window_menu (GdkSurface *surface,
- GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkCairoContext *gdk_surface_create_cairo_context(GdkSurface *surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]