qulogic/libgnt

0504e811a36b
Parents 1102d7f28a37
Children 872aa4069b52
Update the ChangeLog.API and change how gnt_menu_get_item works.
On a different note, 'IM experience' is such a dirty phrase. PUKE!
  • +0 -3
    gntmenu.c
  • +1 -1
    gntmenu.h
  • +5 -2
    gntwm.c
  • --- a/gntmenu.c Mon Nov 12 17:13:44 2007 +0000
    +++ b/gntmenu.c Wed Nov 14 00:09:06 2007 +0000
    @@ -490,9 +490,6 @@
    item = NULL;
    }
    - if (item)
    - menuitem_activate(menu, item);
    -
    return item;
    }
    --- a/gntmenu.h Mon Nov 12 17:13:44 2007 +0000
    +++ b/gntmenu.h Wed Nov 14 00:09:06 2007 +0000
    @@ -108,7 +108,7 @@
    void gnt_menu_add_item(GntMenu *menu, GntMenuItem *item);
    /**
    - * Activate and return the GntMenuItem with the given ID.
    + * Return the GntMenuItem with the given ID.
    *
    * @param menu The menu.
    * @param id The ID for an item.
    --- a/gntwm.c Mon Nov 12 17:13:44 2007 +0000
    +++ b/gntwm.c Wed Nov 14 00:09:06 2007 +0000
    @@ -1876,8 +1876,11 @@
    GntMenu *menu = GNT_WINDOW(win)->menu;
    if (menu) {
    const char *id = gnt_window_get_accel_item(GNT_WINDOW(win), keys);
    - if (id)
    - ret = (gnt_menu_get_item(menu, id) != NULL);
    + if (id) {
    + GntMenuItem *item = gnt_menu_get_item(menu, id);
    + if (item)
    + ret = gnt_menuitem_activate(item);
    + }
    }
    }
    if (!ret)