C++ and gtk.




Hi,

I have just joined this list and I'm not sure if this has been covered.
I'm using gtk in a c++ project and the following lines 

  gtk_table_attach(0, 0, 1, 2, 1, 2,
		   GTK_EXPAND|GTK_SHRINK,
		   GTK_EXPAND|GTK_SHRINK,
		   5, 5);

(predictable) cause the follwing errors.

attach.c:7: warning: conversion from `int' to `enum GtkAttachOptions'
attach.c:7: warning: conversion from `int' to `enum GtkAttachOptions'

Is there a way to solve it without explicit casts (or writing my own
wrappers)?

Thanks,

Pavel



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