summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 15:17:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commit9a65ed9adaa6e34d8322f8f6d642d88a9bd050e0 (patch)
tree77661155d11857dbed0bcea0ecd93f8f0af9acd9 /gtk/gtkwindow.h
parentf59f3551902268600090c0382068103a09184df0 (diff)
downloadgtk+-9a65ed9adaa6e34d8322f8f6d642d88a9bd050e0.tar.gz
window: Derive from GtkWidget
We want to remove GtkBin and GtkContainer as they don't provide much useful functionality anymore. This requires us to move get_request_mode and compute_expand down. Update the accessible implementation to match, remove remnants of container implementations in GtkWindow subclasses, and fix livecycle issues around destroy vs dispose in GtkAssistant. After this commit, using gtk_container_add on window subclasses is not allowed anymore, but adding childing with <child> in ui files still works. See #2681
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 8333ac9160..488a37c792 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -32,7 +32,7 @@
#include <gtk/gtkapplication.h>
#include <gtk/gtkaccelgroup.h>
-#include <gtk/gtkbin.h>
+#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
@@ -51,7 +51,7 @@ typedef struct _GtkWindowGroupPrivate GtkWindowGroupPrivate;
struct _GtkWindow
{
- GtkBin parent_instance;
+ GtkWidget parent_instance;
};
/**
@@ -67,7 +67,7 @@ struct _GtkWindow
*/
struct _GtkWindowClass
{
- GtkBinClass parent_class;
+ GtkWidgetClass parent_class;
/*< public >*/