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
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
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
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
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
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
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
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