On Mon, Jan 02, 2012 at 02:42:43PM -0800, Gary Kline wrote:
>       could you please explain more about this macro and how to
>       resolve the complaint?

Use GTK_WIDGET_IS_SENSITIVE() instead of gtk_widget_is_sensitive().

>       as you note, things do only now frown using the macro def:
> 
>       main.c:243: warning: implicit declaration of function
>       ‘GTK_WIDGET_SET_SENSITIVE’
>       main.c: In function ‘dec_button_click_cb’:
> 
>       how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS 
> *implicit*?

GTK_WIDGET_SET_SENSITIVE is not GTK_WIDGET_IS_SENSITIVE.

GTK_WIDGET_SET_SENSITIVE does not exist, there has always been a
function for this: gtk_widget_set_sensitive().

Also note there are two kinds of functions: the -get-/-set- kind and the
-is- kind, the former for querying/setting whether the widget can be
sensitive and the latter for querying whether it actually is sensitive.
See the documentation.

>       this program works on ubuntu 11.10 which is a direct fork of
>       debian.  i  was certain it would work on my laptop whivh has the
>       latest debian.

Ubuntu contains a newer verison of Gtk+.  You cannot expect a program
developed with a newer version to work with an older version unless you
take care to use only functions that are present in the older version.

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