[Glade-users] Mixing glade C code with C++



Hi,

I write in C++. I have looked at gtkmm and glade--, but there are
issues with both.

Are there any tricks in getting glade C code (standard gtk+) to compile
with  the gnu g++ compiler.

I am seeing the following being flagged, and am looking for a workaround
which does not mean editing the interface.c code:

###############################################
g++ -DHAVE_CONFIG_H -I. -I. -I..  \
            -I/usr/local/lib/glib/include \
            -I/usr/local/include          \
            -I/usr/openwin/include        \
            -c \
            -o interface.o interface.c     
interface.c: In function `struct GtkWidget * create_guiTopWindow()':
interface.c:81: conversion from `int' to `enum GtkAccelFlags'
interface.c:96: conversion from `int' to `enum GtkAccelFlags'
interface.c:111: conversion from `int' to `enum GtkAccelFlags'
###############################################
Where line 81 is:

  gtk_widget_add_accelerator (guiReadLEF, "activate_item", accel_group,
                              tmp_key, GDK_MOD1_MASK, 0);
################################################


I look forward to your combined wisdom...

many thanks in advance..

Colin Thomas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Colin Thomas.     
| Email   : colin designresources co uk     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






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