evan_tech

Previous Entry Share Next Entry
11:41 am, 21 Apr 04

logjam and gtk2.4

GTK 2.4 changes a bunch of APIs around again. It's (source+binary)backwards compatible, but they deprecated a bunch of widgets. I was poking around at it yesterday and I was writing code like this:
ag = gtk_action_group_new("MenuActions");
gtk_action_group_add_actions(ag, actions, G_N_ELEMENTS(actions), jw);
 
ui = gtk_ui_manager_new();
gtk_ui_manager_insert_action_group(ui, ag, 0);
gtk_window_add_accel_group(GTK_WINDOW(jw),
                  gtk_ui_manager_get_accel_group(ui));
 
if (!gtk_ui_manager_add_ui_from_string(ui, ui_desc, -1, &err)) {
and then the awfulness of all of these function names and casts and never-ending revision hit me. I don't think I can deal with it anymore.

(Right here someone's gonna wanna comment and suggest [other language, probably C++] and I'm gonna laugh at you in advance.)