mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
libgimp: 'gimp_ui' as priority prefix for GimpUi introspected module.
Since meson 0.43.0 (below our current requirement), 'symbol_prefix' argument of gnome.generate_gir() allows an ordered list. If I prepend 'gimp_ui', it makes any gimp_ui_*() function to not start with 'ui_'. In particular, GimpUi.ui_init() becomes GimpUi.init() which is much less redundant.
This commit is contained in:
parent
aac49878f7
commit
2e73e30afd
11 changed files with 13 additions and 12 deletions
|
@ -134,7 +134,7 @@ class PaletteOffset (Gimp.PlugIn):
|
|||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
|
||||
GimpUi.ui_init ("palette-offset.py")
|
||||
GimpUi.init ("palette-offset.py")
|
||||
|
||||
use_header_bar = Gtk.Settings.get_default().get_property("gtk-dialogs-use-header")
|
||||
dialog = GimpUi.Dialog(use_header_bar=use_header_bar,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue