[Glade-users] Mixing glade C code with C++
- From: Colin Thomas <colin designresources co uk> (Colin Thomas)
 
- Subject: [Glade-users] Mixing glade C code with C++
 
- Date: Mon, 18 Dec 2000 18:23:50 +0000 (GMT)
 
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]