Mercurial > pidgin.yaz
diff console/libgnt/gntmenu.c @ 14616:f1f1dcb26d89
[gaim-migrate @ 17344]
Add a barebone menu in the buddylist for account actions. (Press Ctrl+o)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 24 Sep 2006 17:07:38 +0000 |
parents | 62bb53609a36 |
children | b7e145ea9076 |
line wrap: on
line diff
--- a/console/libgnt/gntmenu.c Sun Sep 24 16:35:31 2006 +0000 +++ b/console/libgnt/gntmenu.c Sun Sep 24 17:07:38 2006 +0000 @@ -10,10 +10,10 @@ static GntTreeClass *parent_class = NULL; static guint signals[SIGS] = { 0 }; -void (*org_draw)(GntWidget *wid); -void (*org_destroy)(GntWidget *wid); -void (*org_map)(GntWidget *wid); -gboolean (*org_key_pressed)(GntWidget *w, const char *t); +static void (*org_draw)(GntWidget *wid); +static void (*org_destroy)(GntWidget *wid); +static void (*org_map)(GntWidget *wid); +static gboolean (*org_key_pressed)(GntWidget *w, const char *t); static void gnt_menu_draw(GntWidget *widget) @@ -89,6 +89,7 @@ menu_tree_add(menu, item, NULL); } org_map(widget); + gnt_tree_adjust_columns(GNT_TREE(widget)); } GNTDEBUG; } @@ -267,7 +268,7 @@ GntWidget *widget = g_object_new(GNT_TYPE_MENU, NULL); GntMenu *menu = GNT_MENU(widget); menu->list = NULL; - menu->selected = -1; + menu->selected = 0; menu->type = type; if (type == GNT_MENU_TOPLEVEL) {