forked from AuroraMiddleware/gtk
dialog: Fix action button rearrangement
The gtk_widget_get_parent() check does not work anymore since the headerbar adds the buttons to a child box.
This commit is contained in:
parent
bcd8941769
commit
11ee72fc7e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user