summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-14 21:13:42 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-14 21:18:49 +0100
commitc1f71ee3e8add0c8e43445b888719ac85a743583 (patch)
treebea9b64da51daaa47f1ea7c4bf6e3dffba3681ed /gtk/gtkwindow.h
parent222e6e5d6e440785623987632101fc0ad9144513 (diff)
downloadgtk+-c1f71ee3e8add0c8e43445b888719ac85a743583.tar.gz
window: Remove GtkWindowType and window->type
And remove code that was making decisions on the type and just use the part for toplevels.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 82ba85e5db..eedbc5df2f 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -84,31 +84,6 @@ struct _GtkWindowClass
gpointer padding[8];
};
-/**
- * GtkWindowType:
- * @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog.
- * @GTK_WINDOW_POPUP: A special window such as a tooltip.
- *
- * A #GtkWindow can be one of these types. Most things you’d consider a
- * “window” should have type #GTK_WINDOW_TOPLEVEL; windows with this type
- * are managed by the window manager and have a frame by default (call
- * gtk_window_set_decorated() to toggle the frame). Windows with type
- * #GTK_WINDOW_POPUP are ignored by the window manager; window manager
- * keybindings won’t work on them, the window manager won’t decorate the
- * window with a frame, many GTK+ features that rely on the window
- * manager will not work (e.g. maximization/minimization).
- * #GTK_WINDOW_POPUP is used to implement
- * widgets such as #GtkMenu or tooltips that you normally don’t think of
- * as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL.
- * In particular, do not use #GTK_WINDOW_POPUP just to turn off
- * the window borders; use gtk_window_set_decorated() for that.
- */
-typedef enum
-{
- GTK_WINDOW_TOPLEVEL,
- GTK_WINDOW_POPUP
-} GtkWindowType;
-
GDK_AVAILABLE_IN_ALL
GType gtk_window_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
@@ -330,9 +305,6 @@ GtkWindowGroup *gtk_window_get_group (GtkWindow *window);
GDK_AVAILABLE_IN_ALL
gboolean gtk_window_has_group (GtkWindow *window);
-GDK_AVAILABLE_IN_ALL
-GtkWindowType gtk_window_get_window_type (GtkWindow *window);
-
GDK_AVAILABLE_IN_ALL
GtkApplication *gtk_window_get_application (GtkWindow *window);