# HG changeset patch # User Etan Reisner # Date 1133762834 0 # Node ID 4f7797a3024be0fb9f2b69c0bdc9e1e522b77cb3 # Parent 8337e12863131ddda036cc8eb1efda886b179719 [gaim-migrate @ 14652] 00:53:29 oh yeah, we've lost the accellerator on the 'add/edit' menu item anyway 00:53:42 We can get that back. And now we have. committer: Tailor Script diff -r 8337e1286313 -r 4f7797a3024b src/gtkblist.c --- a/src/gtkblist.c Mon Dec 05 05:47:08 2005 +0000 +++ b/src/gtkblist.c Mon Dec 05 06:07:14 2005 +0000 @@ -2470,6 +2470,7 @@ /* Accounts menu */ { N_("/_Accounts"), NULL, NULL, 0, "" }, + { N_("/Accounts/Add\\/Edit"), "A", gaim_gtk_accounts_window_show, 0, "", GAIM_STOCK_ACCOUNTS }, /* Tools */ { N_("/_Tools"), NULL, NULL, 0, "" }, @@ -5376,16 +5377,13 @@ /* Clear the old Accounts menu */ for (l = gtk_container_get_children(GTK_CONTAINER(accountmenu)); l; l = l->next) { - gtk_container_remove(GTK_CONTAINER(accountmenu), - GTK_WIDGET(l->data)); + menuitem = l->data; + + if (menuitem != gtk_item_factory_get_widget(gtkblist->ift, N_("/Accounts/Add\\/Edit"))) + gtk_container_remove(GTK_CONTAINER(accountmenu), + GTK_WIDGET(l->data)); } - menuitem = gtk_menu_item_new_with_label(_("Add/Edit")); - g_signal_connect(G_OBJECT(menuitem), "activate", - G_CALLBACK(gaim_gtk_accounts_window_show), NULL); - gtk_menu_shell_append(GTK_MENU_SHELL(accountmenu), menuitem); - gtk_widget_show(menuitem); - for (accounts = gaim_accounts_get_all(); accounts; accounts = accounts->next) { char *buf = NULL; GtkWidget *image = NULL;