Re: troubles porting from ubuntu to debian. [??]
- From: David NeÄas <yeti physics muni cz>
- To: Gary Kline <kline thought org>
- Cc: GTK Devel List <gtk-app-devel-list gnome org>
- Subject: Re: troubles porting from ubuntu to debian. [??]
- Date: Tue, 3 Jan 2012 00:49:46 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]