[Glade-devel] Glade 2.6 : toolbar widget, warning with gtk_image_new_from_stock

On Tue, 2004-05-25 at 16:20, Boris HUISGEN wrote:

A small problem occurs with toolbar buttons / icons in Glade 2.6. When I
compile source, some errors are noticed like this :

interface.cc: In function `GtkWidget* create_main_window()':
interface.cc:299: invalid conversion from `gint' to `GtkIconSize'
interface.cc:307: invalid conversion from `gint' to `GtkIconSize'
interface.cc: In function `GtkWidget* create_configeditor_dialog()':
interface.cc:2978: invalid conversion from `gint' to `GtkIconSize'
make[3]: *** [interface.o] Error 1

The problem is related to function gtk_image_new_from_stock () : her
second parameter has type 'GtkIconSize' and not 'gint'.

Thanks. I've fixed it in cvs. Though I think it is only a problem if you
are compiling it as C++, isn't it?


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