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



Colin Thomas wrote:

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

I think g++ needs:

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

You could easily fix Glade so it outputs this, if you are willing to recompile
it.


Damon






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