Results 1 to 1 of 1
Hi all,
I am getting the following error if I try to use GObject in one of my functions.
The function is:::
gboolean sd_gtk_container_mouse_press_hook(GObject *object,
guint signal_id,
guint n_params,
GtkArg ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-21-2004 #1Just Joined!
- Join Date
- Aug 2004
- Posts
- 9
Difference Between Gobject & Gtkobject
Hi all,
I am getting the following error if I try to use GObject in one of my functions.
The function is:::
gboolean sd_gtk_container_mouse_press_hook(GObject *object,
guint signal_id,
guint n_params,
GtkArg *params,
gpointer data)
Error :::
[root@localhost root]# gcc `gtk-config --cflags` -c testButton.c
testButton.c:33: parse error before '*' token
testButton.c: In function `sd_gtk_container_mouse_press_hook':
testButton.c:49: `data' undeclared (first use in this function)
testButton.c:49: (Each undeclared identifier is reported only once
testButton.c:49: for each function it appears in.)
This runs fine if I use GtkObject as can be seen below.
gboolean sd_gtk_container_mouse_press_hook(GtkObject *object,
guint signal_id,
guint n_params,
GtkArg *params,
gpointer data)
Where does the problem lie...
1. Is it I am missing some header file?
2. Am I using a wrong approch to compile?
3. Or something else?
If I use the following with the second case
GtkWidget *widget = GTK_WIDGET(object);
I get the following at runtime.........So i cant proceed by using either of the case..
[root@localhost root]# gnome-calculator --gtk-module=/root/testButton.so
Gtk-Message: Failed to load module "/root/testButton.so": /root/testButton.so: undefined symbol: gtk_type_check_object_cast
Please send me something which helps in sorting this out..
Thanx Vishal


Reply With Quote
