Sitelet https://github.com/gpodder/gpodder/pull/1222
Skip to content

gPodderExportToLocalFolder: Use GtkDialog.add_buttons() - #1222

Merged
auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:export-headerbar
Feb 5, 2022
Merged

auouymous merged 2 commits into
gpodder:masterfrom
tpikonen:export-headerbar

Conversation

@tpikonen

@tpikonen tpikonen commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

tpikonen commented Feb 5, 2022

Copy link
Copy Markdown
Contributor Author

That was a pure mistake. Fixed now.

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

Copy link
Copy Markdown
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