Re: ComboBox



gtk-2.24 is still "current" in CentOS/RedHat Enterprise/Scientific Linux and static linking might be not allowed due to license restrictions.

On Thu, Jun 27, 2013 at 6:09 PM, Rudra Banerjee <rudra banerjee aol co uk> wrote:
gtk+2 itself is old, and if there is no other reason, you should (since
you are new) use gtk+3.
The documentation is at https://developer.gnome.org/gtk3/3.8/

On Thu, 2013-06-27 at 14:46 +0100, Rui Pedro Caldeira wrote:
Hello guys, I'm new to GTK+ and I've run into a problem when creating a
 ComboBox.
I'm using GTK+ 2.24.18 and following the tutorial from this page: https://developer.gnome.org/gtk-tutorial/2.24/x1063.html But when I try to compile the code, it seems that none of the functions I
 call exists in the gtk.h file
Output: xxx.c: In function ‘XXX’: xxx.c:63:2: warning: implicit declaration of function ‘gtk_combo_new’
 [-Wimplicit-function-declaration]
xxx.c:63:8: warning: assignment makes pointer from integer without a cast
 [enabled by default]
xxx.c:65:2: warning: implicit declaration of function ‘GTK_COMBO’
 [-Wimplicit-function-declaration]
xxx.c:65:101: error: invalid type argument of ‘->’ (have ‘int’)
 xxx.c:111:3: warning: statement with no effect [-Wunused-value]
xxx.c:116:3: warning: format not a string literal and no format arguments
 [-Wformat-security]
 xxx.c:123:2: warning: implicit declaration of function
‘gtk_combo_set_popdown_strings’ [-Wimplicit-function-declaration]
 xxx.c:127:2: warning: implicit declaration of function
 ‘gtk_combo_set_use_arrows’ [-Wimplicit-function-declaration]
xxx.c:54:6: warning: unused variable ‘status’ [-Wunused-variable] If you could help me I would be thankful Best regards,
 Rui
 _______________________________________________
 gtk-app-devel-list mailing list
 gtk-app-devel-list gnome org
 https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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