Skip to content
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

Config value [engine/Array:SpecialNotify] does not exist, etc. #15

Open
anthonyfok opened this issue Dec 12, 2019 · 2 comments
Open

Config value [engine/Array:SpecialNotify] does not exist, etc. #15

anthonyfok opened this issue Dec 12, 2019 · 2 comments
Assignees

Comments

@anthonyfok
Copy link
Contributor

In setup/main.py, the two config values [engine/Array:SpecialOnly] and [engine/Array:SpecialNotify] do not seem to work under GNOME 3.

(main.py:105491): IBUS-WARNING **: 11:52:42.454: org.freedesktop.IBus.Config.GetValue: GDBus.Error:org.freedesktop.DBus.Error.Failed: Config value [engine/Array:SpecialOnly] does not exist.

(main.py:105491): IBUS-WARNING **: 11:52:42.456: org.freedesktop.IBus.Config.GetValue: GDBus.Error:org.freedesktop.DBus.Error.Failed: Config value [engine/Array:SpecialNotify] does not exist.

There are some PyGIWarning and PyGTKDeprecationWarning too:

$ /usr/bin/python3.8 -Wd /usr/share/ibus-array/setup/main.py
/usr/share/ibus-array/setup/main.py:25: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/share/ibus-array/setup/main.py:26: PyGIWarning: IBus was imported without specifying a version first. Use gi.require_version('IBus', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import IBus
/usr/share/ibus-array/setup/main.py:41: PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.__window = Gtk.Dialog(_('ibus-array setup'), None,
/usr/share/ibus-array/setup/main.py:41: PyGTKDeprecationWarning: The "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.__window = Gtk.Dialog(_('ibus-array setup'), None,
/usr/lib/python3/dist-packages/gi/overrides/Gtk.py:575: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "title, transient_for, flags, add_buttons" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self._init(*args, **new_kwargs)
/usr/share/ibus-array/setup/main.py:48: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.__special_notify_button = Gtk.CheckButton(_("Special Code Notification"))
/usr/share/ibus-array/setup/main.py:50: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.__special_only_button = Gtk.CheckButton(_("Special Code Only Mode"))
@lexical lexical self-assigned this Jan 8, 2020
@lexical
Copy link
Owner

lexical commented Jun 7, 2020

I notice that if clicked on the checkbox, on the second time executing /usr/share/ibus-array/setup/main.py, the value was set and can be read:

$ python3.8 setup/main.py setup/main.py:46: PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.__window = Gtk.Dialog(_('ibus-array setup'), None, setup/main.py:46: PyGTKDeprecationWarning: The "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.__window = Gtk.Dialog(_('ibus-array setup'), None, setup/main.py:53: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.__special_notify_button = Gtk.CheckButton(_("Special Code Notification")) setup/main.py:55: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.__special_only_button = Gtk.CheckButton(_("Speical Code Only Mode"))

Somewhat src/engine.c can't read the value set by setup/main.py.

@slyfox3
Copy link
Contributor

slyfox3 commented Jun 7, 2021

Deprecation warnings are being fixed in #24

The setting also seems not to work for me, Fedora32 with Gnome.

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

No branches or pull requests

3 participants