On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote:
> main.c:157: warning: implicit declaration of function ‘chdir’
> main.c:362: warning: implicit declaration of function ‘sleep’

Declared in unistd.h.  Forgot to include it?

> main.c: In function ‘inc_button_click_cb’:
> main.c:242: warning: implicit declaration of function
> ‘gtk_widget_is_sensitive’
> ...
> Here is the code that has gtk_widget_is_sensitive().  i gave up on
> this after a couple hours [last night].

gtk_widget_is_sensitive() appeared in Gtk+ 2.18.

Use devhelp or look at the on-line reference documentation to see when a
specific symbol appeared.

Use gtkdoc-depscan to scan your source code for functions that are
available only since a specific Gtk+ version.

Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+.

Yeti

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

Reply via email to