Re: glade and signals connection

2016-10-19 Thread rastersoft
Hi: You can create a class (and instantiate an object) with the methods, and pass "self" to connect_signals. Something like: class myclass: def __init__(self): builder = Gtk.Builder() builder.add_from_file("example.glade") builder.connect_signals(self) def

glade and signals connection

2016-10-19 Thread Pozz Pozz
I'm new to python, gtk and glade, so I'm sorry if the question is dumb. I'm trying to learn gtk in its Python flavor (pyGObject). I choose to start from the graphical GUI builder glade that I run under Windows (it taked some time to find the latest Windows build in Msys2 environment... the

Re: signals connection

2003-03-24 Thread Tristan Van Berkom
g_signal_connect_swapped(G_OBJECT(window), destroy, G_CALLBACK(g_free), someobject); Ahhh; never though of that, thats pretty cute ;-) Evan Martin wrote: On Thu, Mar 20, 2003 at 09:54:09AM -0500, Tristan Van Berkom wrote: Hmmm... it seems to mean that the callback will be

Re: signals connection

2003-03-24 Thread Tristan Van Berkom
wait a second :S this is the prototype for g_free: void g_free (gpointer mem); and this is the `catch all function pointer' GCallback void (*GCallback) (void); so far so good but when it comes down to marshalling the signals stack garbage will be collected as a return

Re: signals connection

2003-03-24 Thread Sven Neumann
Hi, Tristan Van Berkom [EMAIL PROTECTED] writes: wait a second :S this is the prototype for g_free: void g_free (gpointer mem); and this is the `catch all function pointer' GCallback void (*GCallback) (void); so far so good but when it comes down to marshalling

signals connection

2003-03-20 Thread Axel
I didn' t understood the difference between g_signal_connect() and g_signal_connect_swapped() (even while reading the tutorial), could someone give me a clear explaination? BTW, i ask again if someone knows out to have a relief GtkMenuItem in a GTKMenuBar Thks

Re: signals connection

2003-03-20 Thread Tristan Van Berkom
Axel wrote: I didn' t understood the difference between g_signal_connect() and g_signal_connect_swapped() (even while reading the tutorial), could someone give me a clear explaination? BTW, i ask again if someone knows out to have a relief GtkMenuItem in a GTKMenuBar Thks In the API

Re: signals connection

2003-03-20 Thread Evan Martin
On Thu, Mar 20, 2003 at 09:54:09AM -0500, Tristan Van Berkom wrote: Hmmm... it seems to mean that the callback will be called like this: c_handler(G_OBJECT(data), detail, (gpointer) instance); instead of c_handler(G_OBJECT(instance), detail, (gpointer) data); (I guess where detail