Message-ID: <3E565207.90401 at lix.polytechnique.fr> Date: Fri, 21 Feb 2003 17:21:27 +0100 From: Benjamin Monate MIME-Version: 1.0 To: Olivier Andrieu Cc: Jacques Garrigue , lablgtk at kaba.or.jp Subject: Re: New snapshot available References: <20030221172940D.garrigue at kurims.kyoto-u.ac.jp> <15958.19863.193875.240174 at akasha.ijm.jussieu.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Yes. lablgtk2 main target is Gtk 2.2. But it should compile with Gtk 2.x , x < 2. Application developped for Gtk 2.2 will compile with Gtk 2.x but they may fail with Failure "Unsupported feature in Gtk 2.x < 2.2" exceptions. Thank you for the report. This is patched in CVS. If you really need to compile the snapshot change these lines in ml_gdk.c : /* Screen geometry */ ML_1 (gdk_screen_get_width, GdkScreen_val, Val_int) ML_1 (gdk_screen_get_height, GdkScreen_val, Val_int) ML_0 (gdk_screen_get_default, Val_GdkScreen) ML_1 (gdk_pango_context_get_for_screen, GdkScreen_val, Val_PangoContext_new) into /* Screen geometry */ #ifdef HASGTK22 ML_1 (gdk_screen_get_width, GdkScreen_val, Val_int) ML_1 (gdk_screen_get_height, GdkScreen_val, Val_int) ML_0 (gdk_screen_get_default, Val_GdkScreen) ML_1 (gdk_pango_context_get_for_screen, GdkScreen_val, Val_PangoContext_new) #else Unsupported (gdk_screen_get_width) Unsupported (gdk_screen_get_height) Unsupported (gdk_screen_get_default) Unsupported (gdk_pango_context_get_for_screen) #endif Cheers. Benjamin Olivier Andrieu wrote: > Jacques Garrigue [Friday 21 February 2003] : > > I've put a new lablgtk2 snapshot on the lablgtk site. > > > > ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/lablgtk2-20020221.tar.gz > >[ that was lablgtk2-20030221.tar.gz ] > >FYI, I have gtk2 2.0.6 installed and it fails to build : > >ml_gdk.c: In function `ml_gdk_screen_get_width': >ml_gdk.c:52: warning: implicit declaration of function `gdk_screen_get_width' >ml_gdk.c:52: warning: implicit declaration of function `GDK_SCREEN' >ml_gdk.c: In function `ml_gdk_screen_get_height': >ml_gdk.c:53: warning: implicit declaration of function `gdk_screen_get_height' >ml_gdk.c: In function `ml_gdk_screen_get_default': >ml_gdk.c:54: warning: implicit declaration of function `gdk_screen_get_default' >ml_gdk.c: In function `ml_gdk_pango_context_get_for_screen': >ml_gdk.c:55: warning: implicit declaration of function `gdk_pango_context_get_for_screen' > >I guess GTK+ 2.1 or 2.2 is needed. > > >