Re: Don't shoot the newbie.
- From: Bradley Shuttleworth <brads debating org za>
- To: gtk-app-devel-list gnome org
- Subject: Re: Don't shoot the newbie.
- Date: 15 May 2001 17:30:13 +0200
Whoops.
The line which in my code-fragment read:
gtk_signal_connect_object(GTK_OBJECT(button),"clicked",GTK_SIGNAL_FUNC(title_change), (gpointer) mainwindow);
SHOULD choke and die - I was casting to (gpointer) instead of GTK_OBJECT
(mainwindow).
However, this still gives:
Gtk-WARNING **: invalid cast from `(unknown)' to `GtkWindow'
Gtk-CRITICAL **: file gtkwindow.c: line 402 (gtk_window_set_title):
assertion `GTK_IS_WINDOW (window)' failed.
Hmmm... Is the problem with my understanding of the GObject system? I
suspect
that GTK_OBJECT "extracts" a part of the mainwindow. If so, what is the
appropriate way to do this? is it to create another window variable
which I then assign to the data variable?
Thanks again,
Bradley.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]