[gtk/kill-tree-menu: 9/52] window: Complete the popover conversion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 9/52] window: Complete the popover conversion
- Date: Sat, 28 Dec 2019 16:23:04 +0000 (UTC)
commit f17f00f07687704a5852c5d1d6fa3716ab62bd24
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 28 00:08:29 2019 -0500
window: Complete the popover conversion
gtk/gtkwindow.c | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index a7be84d871..8de8f83660 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -34,7 +34,6 @@
#include "gtkbuilderprivate.h"
#include "gtkbutton.h"
#include "gtkcheckbutton.h"
-#include "gtkcheckmenuitem.h"
#include "gtkcontainerprivate.h"
#include "gtkcsscornervalueprivate.h"
#include "gtkcssiconthemevalueprivate.h"
@@ -55,9 +54,6 @@
#include "gtkmarshalers.h"
#include "gtkmessagedialog.h"
#include "gtkmnemonichash.h"
-#include "gtkmenu.h"
-#include "gtkmenubarprivate.h"
-#include "gtkmenushellprivate.h"
#include "gtkpointerfocusprivate.h"
#include "gtkpopovermenuprivate.h"
#include "gtkmodelbuttonprivate.h"
@@ -65,7 +61,6 @@
#include "gtkprivate.h"
#include "gtkroot.h"
#include "gtknative.h"
-#include "gtkseparatormenuitem.h"
#include "gtksettings.h"
#include "gtksnapshot.h"
#include "gtkstylecontextprivate.h"
@@ -6597,8 +6592,8 @@ gtk_window_get_state (GtkWindow *window)
}
static void
-restore_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+restore_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = GTK_WINDOW (user_data);
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
@@ -6618,8 +6613,8 @@ restore_window_clicked (GtkMenuItem *menuitem,
}
static void
-move_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+move_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = GTK_WINDOW (user_data);
@@ -6630,8 +6625,8 @@ move_window_clicked (GtkMenuItem *menuitem,
}
static void
-resize_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+resize_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = GTK_WINDOW (user_data);
@@ -6643,8 +6638,8 @@ resize_window_clicked (GtkMenuItem *menuitem,
}
static void
-minimize_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+minimize_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = GTK_WINDOW (user_data);
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
@@ -6657,8 +6652,8 @@ minimize_window_clicked (GtkMenuItem *menuitem,
}
static void
-maximize_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+maximize_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = GTK_WINDOW (user_data);
GdkSurfaceState state;
@@ -6672,8 +6667,8 @@ maximize_window_clicked (GtkMenuItem *menuitem,
}
static void
-ontop_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+ontop_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = (GtkWindow *)user_data;
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
@@ -6683,8 +6678,8 @@ ontop_window_clicked (GtkMenuItem *menuitem,
}
static void
-close_window_clicked (GtkMenuItem *menuitem,
- gpointer user_data)
+close_window_clicked (GtkModelButton *button,
+ gpointer user_data)
{
GtkWindow *window = (GtkWindow *)user_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]