Skip to content

Conversation

@tpikonen
Copy link
Contributor

@tpikonen tpikonen commented Feb 4, 2022

Currently the gPodderExportToLocalFolder dialog adds the OK and Cancel buttons to the action area explicitly in the ui-file. This causes Gtk warnings on systems which are configured to have dialog the buttons in the window headerbar.

The correct way is to add the buttons with GtkDialog.add_buttons() method, which places the buttons either to the header bar or the action area depending on system settings.

Also fix strings in the 'File already exists' confirmation dialog.

@neodyne neodyne mentioned this pull request Feb 4, 2022
@auouymous
Copy link
Member

LGTM, but the Save button changed to OK, was that intentional or a mistake? The save page as dialog in Firefox uses Cancel and Save buttons.

Create the dialog buttons with GtkDialog.add_buttons(). This places them
either to the dialog action area, or to the headerbar, accoording to the
system setting.

Also set 'do-overwrite-confirmation' property of the Dialog to False.
@tpikonen
Copy link
Contributor Author

tpikonen commented Feb 5, 2022

That was a pure mistake. Fixed now.

@auouymous auouymous merged commit 7dd48ef into gpodder:master Feb 5, 2022
@auouymous
Copy link
Member

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants