[gtk/kill-hierarchy-changed: 8/14] header bar: Stop using ::hierarchy-changed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-hierarchy-changed: 8/14] header bar: Stop using ::hierarchy-changed
- Date: Sat, 23 Feb 2019 14:45:26 +0000 (UTC)
commit 0230a7b1e53add380f2e0d154707e688a8bb6395
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 23 01:02:55 2019 -0500
header bar: Stop using ::hierarchy-changed
Use the root and unroot vfuncs instead.
gtk/gtkheaderbar.c | 7 ++++---
1 file 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]