Skip to content

Conversation

@tpikonen
Copy link
Contributor

The remaining changes from #1129.

  • Replaces Gtk.Action in gPodderShownotesHTML with Gio.SimpleAction
  • Replaces GtkStock items with standard icon names and string labels in gpodder.ui and rest of the code
  • Regularizes gpodder.ui by saving with Glade and removing deprecated features, also removes extra placeholders in GtkGrids
  • Implements a way of setting Gtk properties in ui-file objects which is compatible with Glade

@tpikonen tpikonen requested a review from auouymous November 7, 2021 18:02
@tpikonen
Copy link
Contributor Author

tpikonen commented Feb 2, 2022

Rebased to current master.

@auouymous
Copy link
Member

Why did you drop Gtk translations for the previous PRs but then declare Dgtk_ for the ones here?

@tpikonen
Copy link
Contributor Author

tpikonen commented Feb 2, 2022

TBH, I can't remember for sure, but at least for the strings in ui-files the translation domains can't be mixed.

Should I replace the GTK translated strings by gpodder strings (i.e. remove Dgtk)?

@auouymous
Copy link
Member

It would be best to use the Gtk translations because many languages might not get updated. But mixing gpodder and Gtk translations might cause inconsistencies if gpodder's translation doesn't match Gtk's. So maybe drop Dgtk_.

 * Replace stock-ids with standard icon names
 * Remove deprecated rules-hint from treeAvailable
 * Set can-focus to True in search entries
 * Remove use-underline from buttons
Resize:
 * hbox_search_episodes
 * hboxContainer
 * hboxUpdateFeeds
 * vbox_episode_list
 * vbox42
 * vboxChannelNavigator
 * vMain
 * hboxDownloadSettings
 * hboxDownloadLimit
 * hboxDownloadRate
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.
@tpikonen
Copy link
Contributor Author

tpikonen commented Feb 2, 2022

Ok, Dgtk is now gone.

@elelay
Copy link
Member

elelay commented Feb 2, 2022

LGTM and works on my system. A few new strings to translate to French...

@elelay elelay self-requested a review February 2, 2022 21:28
Copy link
Member

@elelay elelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@auouymous auouymous merged commit 927a87d into gpodder:master Feb 3, 2022
@auouymous
Copy link
Member

Thanks, and sorry for the long delay.

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.

3 participants