Re: Using Gtk.Builder to create a menubar.

2018-04-23 Thread infirit .
uite and there are a lot more people on the those that can help, https://www.gtk.org/mailing-lists.php. ~infirit The code > > #!/usr/bin/env python3 > import gi > gi.require_version('Gtk', '3.0') > from gi.repository import Gtk > > class Window(Gtk.Applicatio

Re: Using Gtk.Builder to create a menubar.

2018-04-22 Thread infirit
roup'| Where did you find add_action_group it is nowhere in the documentation [1]. There is insert_action_group which can be used on a Gtk.Widget and Gtk.UIManager. You may want to work through [2] as it deals with the basic questions about Gtk+3 and Python including UIManager and Actions. ~

Re: Update pygi docs

2018-03-12 Thread infirit
Op 12-03-18 om 08:02 schreef Christoph Reiter: >> The web repo should be updated, but devhelp is still missing. If I >> missed anything in the web version please provide a link. > devhelp updated Awesome, thanks for the update :-) ~infirit ___

Re: Python pointers in python-gi ?

2018-03-11 Thread infirit
_time_return: (out) (not nullable): text Right? If so then see below patch. @Reuben let me know the bug number and I'll post the patch there for review. ~infirit diff --git a/gdk/gdkframeclock.c b/gdk/gdkframeclock.c index a1f20c40e9..18e957d5b0 100644 --- a/gdk/gdkframeclock.c +++ b/gdk/

Update pygi docs

2018-03-11 Thread infirit
vhelp repo can be updated? Thx ~infirit ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/listinfo/python-hackers-list

Re: Gio.DBusObjectManagerClient not updating

2018-01-13 Thread infirit
ndler) > udisks2.connect('object-added', new_obj_handler) loop = GLib.MainLoop() loop.run() > paths = [] > while(True): >     if paths != get_paths(udisks2): >     paths = get_paths(udisks2) >     print(paths) >     sleep(1) Above is not going to work whe

Re: PyGObject NEWS

2018-01-13 Thread infirit
Good News! And I just wanted to say I am happy to see you picking up the pieces and bringing them together. Thank you :-). ~infirit ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/listinfo/python

Re: Gitlab Migration

2017-12-06 Thread infirit
ve. Also it might attract more outside contribution as the ux (fork and merge requests for example) is much more friendly. ~infirit ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/listinfo/python-hackers-list

Re: PyGObject GtkTreeStore.set override multiple signals

2017-11-14 Thread infirit
Op 11/14/2017 om 09:24 PM schreef Christoph Reiter: > Please file a bug at > https://bugzilla.gnome.org/enter_bug.cgi?product=pygobject and attach > the the patch. Done, https://bugzilla.gnome.org/show_bug.cgi?id=790346. Thx ~infirit ___ pytho

Re: PyGObject GtkTreeStore.set override multiple signals

2017-11-14 Thread infirit
Op 09/15/2017 om 12:58 PM schreef infirit: > If something else needs to be added/changed please let me know. What else is needed to get this upstream? ~infirit >From 90950235aa6c0ea2e57500e3fc5cc6e094aa8d4d Mon Sep 17 00:00:00 2001 From: Sander Sweers Date: Sun, 20 Aug 2017 22:44:15

Re: PyGObject GtkTreeStore.set override multiple signals

2017-09-15 Thread infirit
Op 20-08-17 om 23:44 schreef Christoph Reiter: > On Sun, Aug 20, 2017 at 10:47 PM, infirit wrote: >> Wouldn't using Gtk.ListStore.set in the override make much more sense? >> Something like attached patch perhaps? > Looks good to me. Maybe add a test counting the row-ch

Re: PyGObject GtkTreeStore.set override multiple signals

2017-08-21 Thread infirit
Op 08/20/2017 om 11:44 PM schreef Christoph Reiter: > Looks good to me. Maybe add a test counting the row-changed signals. Cool, I'll make sure current tests pass and figure out a way to count the signals :-) ~infirit ___ python-hackers-list

PyGObject GtkTreeStore.set override multiple signals

2017-08-20 Thread infirit
like attached patch perhaps? ~infirit [1] https://git.gnome.org/browse/pygobject/commit/?id=cadbd4142bd0045368b5123d4b0a1876bdd5d798 From a9bbd414a31b21f372af31815b98d5200c3386fe Mon Sep 17 00:00:00 2001 From: Sander Sweers Date: Sun, 20 Aug 2017 22:44:15 +0200 Subject: [PATCH] Drop set_value usa

Re: How to create attributes in Pango

2017-05-15 Thread infirit
up_text.encode("UTF-8")) or -1 it works for me. As for the docs, the docs maintainers is active here so I'll leave it to him to comment on adding the column to the docs. ~infirit ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/listinfo/python-hackers-list

Re: How to create attributes in Pango

2017-05-05 Thread infirit
it may be related to it. ~infirit [1] https://bugzilla.gnome.org/show_bug.cgi?id=646788 [2] https://gist.github.com/infirit/cf4f531e03136b641471b079b8370ead ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailma

Re: Gtk.AccelGroup connect and disconnec signals

2017-05-02 Thread infirit
Op 05/01/2017 om 02:29 PM schreef Christoph Reiter: Shall I at least open a bug report on this? For GTK+4, which currently allows API breaks, the function name could be changed. Opening a gtk bug report for this sounds good to me. https://bugzilla.gnome.org/show_bug.cgi?id=782085 _

Re: Gtk.AccelGroup connect and disconnec signals

2017-05-01 Thread infirit
n Gtk itself? Reading the guidelines on [1] asking for a API changes for language bindings it is a valid reason. The question then is what to name it because gtk_accel_group_connect_group will be confusing in C. Shall I at least open a bug report on this? ~infirit [1] https://wiki.gnome.org/Pro

Gtk.AccelGroup connect and disconnec signals

2017-04-29 Thread infirit
Hi, In the old PyGtk connecting and disconnecting accelerator keys was renamed because it interferes with GObject signal (dis)connect. They then decided to use Gtk.AccelGroup.(dis)connect_group, see [1]. The question is, should the same now be done for PyGObject? ~infirit [1] http

Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?

2017-02-23 Thread infirit
how to fix it. One options may be to add static bindings like was done for g_spawn_async [1] but it adds to the maintenance of pygobject which may not be worth the effort. ~infirit [1] https://git.gnome.org/browse/pygobject/tree/gi/pygspawn.c ___ python

Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?

2017-02-22 Thread infirit
Op 02/22/2017 om 04:15 PM schreef infirit: > At home now :-). > > Op 02/22/2017 om 11:47 AM schreef John Lane: >> This was changed to `_gdk_x11_window_change_property` in commit 166ff5e9 >> 2010-12-17 00:00:01 (https://git.gnome.org/browse/gtk+) > That commit removed th

Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?

2017-02-22 Thread infirit
being prefixed with an underscore seems to indicate it shouldn't be used any more. So for now it appears there is no way to do this from PyGobject. ~infirit ps: All the gdk_x11 functions live in GdkX11 https://lazka.github.io/pgi-docs/#GdkX11-3.0 ___

Re: Setting Window properties in Gtk3 (gi.repository) like Gdk.gdk.Window.property_change ?

2017-02-22 Thread Infirit
In sofar I understand your question, you will want to set the type hint. see https://lazka.github.io/pgi-docs/#Gdk-3.0/classes/Window.html#Gdk.Window.set_type_hint ~infirit -- Sent from my Android device with K-9 Mail. Please excuse my brevity

PyGObject GLib.spawn_async versus documentation

2017-01-10 Thread infirit
with the docs? ~infirit [1] https://lazka.github.io/pgi-docs/#GLib-2.0/functions.html#GLib.spawn_async [2] https://developer.gnome.org/pygobject/stable/glib-functions.html#function-glib--spawn-async [3] a 4-tuple containing the child's process id and the stdin, stdout and stderr file descr

Re: Subclass Gio.DBusProxy and UnicodeDecodeError under python 3

2016-12-27 Thread infirit
Op 12/27/2016 om 05:32 PM schreef infirit: > Op 12/13/2016 om 04:31 PM schreef infirit: >> Op 12/12/2016 om 11:49 PM schreef Christoph Reiter: >>> On Sun, Dec 11, 2016 at 6:12 PM, infirit wrote: >>>> Hi all, >>>> >>>> I subclassed Gi

Re: Subclass Gio.DBusProxy and UnicodeDecodeError under python 3

2016-12-27 Thread infirit
Op 12/13/2016 om 04:31 PM schreef infirit: > Op 12/12/2016 om 11:49 PM schreef Christoph Reiter: >> On Sun, Dec 11, 2016 at 6:12 PM, infirit wrote: >>> Hi all, >>> >>> I subclassed Gio.DBusProxy and overridden the do_g_properties_changed >>> virtual

Re: Subclass Gio.DBusProxy and UnicodeDecodeError under python 3

2016-12-13 Thread infirit
Op 12/12/2016 om 11:49 PM schreef Christoph Reiter: > On Sun, Dec 11, 2016 at 6:12 PM, infirit wrote: >> Hi all, >> >> I subclassed Gio.DBusProxy and overridden the do_g_properties_changed >> virtual function. In there I emit my own signal that consumers of the >

Subclass Gio.DBusProxy and UnicodeDecodeError under python 3

2016-12-11 Thread infirit
ne know what is going on with this? Pygobject version 3.22.0 Python version 3.4 GLib 2.50.2 Thanks ~infirit [1] https://gist.github.com/infirit/905824891cbca1c9d4fd2edb69817a37 ___ python-hackers-list mailing list python-hackers-list@gnome.org https:/