projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcd8941
)
dialog: Fix action button rearrangement
author
Timm Bäder
<mail@baedert.org>
Sun, 29 Sep 2019 06:58:30 +0000
(08:58 +0200)
committer
Timm Bäder
<mail@baedert.org>
Wed, 9 Oct 2019 14:57:22 +0000
(16:57 +0200)
The gtk_widget_get_parent() check does not work anymore since the
headerbar adds the buttons to a child box.
gtk/gtkdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdialog.c
b/gtk/gtkdialog.c
index 6a6a03ecbd594193ffbe166f1c670930915a63c6..2aea42bd3e1f7fa2a152e6fcd2712ee669f3cf43 100644
(file)
--- a/
gtk/gtkdialog.c
+++ b/
gtk/gtkdialog.c
@@
-1513,7
+1513,7
@@
gtk_dialog_buildable_custom_finished (GtkBuildable *buildable,
{
apply_response_for_action_area (dialog, GTK_WIDGET (object), ad->response_id);
}
- else if (gtk_widget_get_
parent (GTK_WIDGET (object)
) == priv->headerbar)
+ else if (gtk_widget_get_
ancestor (GTK_WIDGET (object), GTK_TYPE_HEADER_BAR
) == priv->headerbar)
{
if (is_action)
{