Glade crash

2017-03-02 Thread pozzugno
Most probably this isn't the most appropriate mailing list, because I think my issue is related to Glade (and not Gtk libraries). Attached is one of my graphical interface, designed with Glade. Unfortunately when Glade opens this file, it seems it is very unstable if I try to change

Re: The Big Gtk limitations: a reliable GUI builder

2016-11-29 Thread pozzugno
First of all, I'm using Glade 3.20.0 for Windows, installed through Msys2 project. I don't know if Glade is more stable under Linux OS. When I open a file, non-null margins aren't rendered correctly. Take a look at the screencast [1]. As soon as I change one margin (from 10 to 11, for

Re: Editable SpinButton on a TreeView: detect *every* changes

2016-11-14 Thread pozzugno
Il 14/11/2016 18:19, Pozz Pozz ha scritto: I created with success a TreeView based on a ListStore. One column has a SpinButton (actually a GtkCellRendererSpin). Now I want to detect when the user *is* changing the value, i.e. every time he clicks on + or - buttons. If I connect the "edited"

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-03 Thread pozzugno
Il 03/11/2016 01:20, infirit ha scritto: Op 11/03/2016 om 12:19 AM schreef pozzugno: Il 02/11/2016 18:55, Nicola Fontana ha scritto: Il Wed, 2 Nov 2016 14:40:58 +0100 Pozz Pozz <pozzu...@gmail.com> scrisse: 2016-11-02 11:24 GMT+01:00 Nicola Fontana <n...@entidi.it>: ..

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-03 Thread pozzugno
Il 03/11/2016 00:48, Michael Torrie ha scritto: On 11/02/2016 05:19 PM, pozzugno wrote: It seems pyGObject implementation gives only two "handler block" functions: handler_block(), that needs the handler_id that I don't have; handler_block_by_func() that needs the callback to block

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-02 Thread pozzugno
Il 02/11/2016 18:55, Nicola Fontana ha scritto: Il Wed, 2 Nov 2016 14:40:58 +0100 Pozz Pozz scrisse: 2016-11-02 11:24 GMT+01:00 Nicola Fontana : ... you don't necessarily need the handler id. In C (I don't use python) you could write the following: void

Re: SpinButton: how to avoid calling signal handler when set_value()

2016-11-01 Thread pozzugno
(gpointer instance, gulong handler_id); Putting these before and after your set_value() should temporarily block the handler. You get the handler_id from g_signal_connect(...): handler_id = g_signal_connect(...); On 11/01/16 11:29, pozzugno wrote: I have a SpinButton with an associated

SpinButton: how to avoid calling signal handler when set_value()

2016-11-01 Thread pozzugno
I have a SpinButton with an associated Adjustment. I connected a handler for "value-changed" signal, because I have to make something when the user changes the value. I sometimes need to change the value in the code, using set_value() method of SpinButton or Adjustment. In this case, I don't