Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

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.)
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 14 comments