Re: (no subject)



* trupthi n t (jukki rediffmail com) wrote:
>   Hi,
>  
> To write/find a function which returns the the widget on which
>         the current focus is,when i used the following function
> 
> GtkWidget*  gtk_window_get_focus(GtkWindow *window);
> 
> The compiler(gtk+1.2.10) gave the following error:
> 
> [root localhost test]# make
> gcc `gtk-config --cflags`  foc.c -o foc `gtk-config --libs`
> foc.c: In function `fovu':
> foc.c:60: warning: assignment makes pointer from integer without a cast
> /tmp/ccbfegod.o(.text+0x297): In function `fovu':
> : undefined reference to `gtk_window_get_focus'
> collect2: ld returned 1 exit status
> make: *** [foc] Error 1
> [root localhost test]#
> 
> Kindly help as to how to proceed further.

did you put the function definition in a header file included in the .c
files you want to use?

The "without a cast" error means you have to do something like this:

(GTK_WINDOW) GtkWidget = gtk_window_get_focus(*theWindow);

But it's hard to tell without seeing the code in question.


-- 
 .''`.      Carl B. Constantine
: :' :     duckwing duckwing ca
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]