andy128k / cl-gobject-introspection

BSD 2-Clause "Simplified" License
49 stars 15 forks source link

default-flags does not work #93

Open bigos opened 1 year ago

bigos commented 1 year ago

For some reason, :default_flags do not work for me. Inspecting the error shows the following:

#<GIR:ENUM-DESC {1003AE7613}>
--------------------
Class: #<STANDARD-CLASS GIR:ENUM-DESC>
--------------------
 Group slots by inheritance [ ]
 Sort slots alphabetically  [X]

All Slots:
[ ]  METHODS-DICT = NIL
[ ]  NAME         = "ApplicationFlags"
[ ]  VALUES-DICT  = (("flags_none" . 0) ("is_service" . 1) ("is_launcher" . 2) ("handles_open" . 4) ("handles_command_line" . 8) ("send_environment" . 16) ("non_unique" . 32) ("can_override_app_id" . 64) ("allow_replacement" . 128) ("replace" . 256))
andy128k commented 1 year ago

:flags_none is deprecated. https://docs.gtk.org/gio/flags.ApplicationFlags.html Check your version of gio.

bigos commented 1 year ago

Well spotted. But you are correct about the older version I use. sudo ldconfig -v | grep gio gives libgio-2.0.so.0 -> libgio-2.0.so.0.7200.4

Do you have any recommendation for such case?

andy128k commented 1 year ago

That's unfortunate change in upstream.

Probably the best option is to use 0 instead of (gir:nget *gio* "ApplicationFlags" :default-flags) to be compatible with all versions of gio.