trouble with gtk-compat.c



The current, i.e. 2004-May-20, version of rep-gtk in CVS has in
in gtk-compat.c a code like that.

#if GTK_MAJOR_VERSION < 2 || (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 4)
GtkWidget*
gtk_radio_menu_item_new_with_label_from_widget ( ....

GtkWidget*
gtk_radio_menu_item_new_with_mnemonic_from_widget ( ...

GtkWidget*
gtk_radio_menu_item_new_from_widget ( ....
,,,
#endif /* < 2.4 */

The trouble is that when I recompiled this on an FC2 installation,
where that condition triggered and the code vanished, then I got
immediately from 'sawfish-ui':

(rep:17277): Gtk-CRITICAL **: file gtkradiomenuitem.c: line 272
(gtk_radio_menu_item_new_with_label_from_widget): assertion
`GTK_IS_RADIO_MENU_ITEM (group)' failed
*** Bad argument: #<subr gtk-menu-shell-append>, (), 2

This was with librep and sawfish updated too to the current CVS
status and both on i386 and x86_64 installations.  I am not sure how
to really debug that. 'sawfish-ui' is a shell script calling 'rep'
with some lisp code.  But when I removed '#if ... #endif' bracketing
in question then the whole thing recompiled without any complaints
and works like it should.

  Michal



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