event get focus



 

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

                                                                                                   
                                                                                                    Kindly help as to how to proceed.
                                  Regards
                                          Trupthi
                                                                                                   






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