-
-
Notifications
You must be signed in to change notification settings - Fork 217
Remove GTK stock items and other deprecations #1129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Gtk.Action is deprecated.
Glade does not allow to set it in the ui-file.
Resize: * hbox_search_episodes * hboxContainer * hboxUpdateFeeds * vbox_episode_list * vbox42 * vboxChannelNavigator * vMain
|
The menu bar is missing with GTK_CSD=0. |
|
@auouymous, I can't replicate the missing menubar with GTK_CSD=0 here. Can you provide more details or bisect the patch stack? Can you test without GTK_CSD=0? My guess is that this is related to setting the 'application' property in the code in fc6177a. Could you try if putting it back to gpodder.ui with this patch helps? |
|
That patch fixed the menubar. Why did you replace checkboxes with toggle buttons? |
|
The quit button on toolbar is missing an icon. The close icon in channel and episode find entries are missing. What are all the placeholders in progress tab? The |
44cda0f to
9ccb7b4
Compare
|
Thanks for testing @auouymous. The latest push should fix all the problems you found. The aim of this PR was to leave everything visibly as it was, but apparently the gtk-* icons which replace the stock items are not included in the default GTK theme (Adwaita). The generic replacements are not exactly the same in some cases ('edit-clear' and 'edit'), but should be close enough. Could you check if the last commit fixes the missing menubar without the previous app-setting patch? |
|
The menubar is still missing. |
This reverts commit fc6177a.
The '_builder_expose' argument to GtkBuilderWidget.__init__() allowed binding of names in the ui-file to objects defined outside of the ui-file. Glade does not allow setting properties to values which are not defined in the ui-file, so we set GTK/Gobject properties explicitly. This is made with a new kwarg '_gtk_properties' in GtkBuilderWidget.__init__() which is a dict with a (object_id, property_name) key.
9ccb7b4 to
47f88ee
Compare
|
Ok, one more try. @auouymous, could you check if the latest push fixes the menubar? |
|
That fixed the menubar. The The Using tab key to focus is broken in all preference tabs. |
|
More fixes, thanks @auouymous. Since this PR is getting ridiculously long, I'm going to squash and split it to smaller parts. I'm also having second thoughts about bd77467, i.e. using the GTK gettext domain. Would it be better to just add the standard dialog button strings ('OK, 'Close', etc.) to be translated in gpodder? |
|
Using GTK's translations would be better since gpodder has almost none. |
This PR removes all usage of deprecated GTK stock features. I used Glade to fix the ui-files, which caused quite a bit of churn, but hopefully this makes future UI changes easier.
One instance of (deprecated) Gtk.Action was also replaced by Gio.SimpleAction.
I went through all the dialogs and they seem to work, but I mostly use the adaptive version, so I may have missed some of the breakage caused by saving the ui-files with Glade. Please test.