diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-23 01:02:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-23 09:43:57 -0500 |
commit | 0230a7b1e53add380f2e0d154707e688a8bb6395 (patch) | |
tree | 2370b4355825d2d06a1249c185c0e536a9cd1c4f /gtk/gtkheaderbar.c | |
parent | 55337c588cdf60ec300a6ed9b425b2cdcb78451a (diff) | |
download | gtk+-0230a7b1e53add380f2e0d154707e688a8bb6395.tar.gz |
header bar: Stop using ::hierarchy-changed
Use the root and unroot vfuncs instead.
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index ab913812e4..828250f653 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -1755,11 +1755,12 @@ surface_state_changed (GtkWidget *widget) } static void -gtk_header_bar_hierarchy_changed (GtkWidget *widget, - GtkWidget *previous_toplevel) +gtk_header_bar_root (GtkWidget *widget) { GtkHeaderBar *bar = GTK_HEADER_BAR (widget); + GTK_WIDGET_CLASS (gtk_header_bar_parent_class)->root (widget); + _gtk_header_bar_update_window_buttons (bar); } @@ -1779,7 +1780,7 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class) widget_class->measure = gtk_header_bar_measure; widget_class->realize = gtk_header_bar_realize; widget_class->unrealize = gtk_header_bar_unrealize; - widget_class->hierarchy_changed = gtk_header_bar_hierarchy_changed; + widget_class->root = gtk_header_bar_root; container_class->add = gtk_header_bar_add; container_class->remove = gtk_header_bar_remove; |