Mercurial > pidgin
comparison src/gtkblist.c @ 12348:4f7797a3024b
[gaim-migrate @ 14652]
00:53:29 <Bleeter> oh yeah, we've lost the accellerator on the 'add/edit' menu item anyway
00:53:42 <deryni> We can get that back.
And now we have.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 05 Dec 2005 06:07:14 +0000 |
parents | eea31c8cc9f7 |
children | 8dd086d0f2b3 |
comparison
equal
deleted
inserted
replaced
12347:8337e1286313 | 12348:4f7797a3024b |
---|---|
2468 { "/Buddies/sep2", NULL, NULL, 0, "<Separator>" }, | 2468 { "/Buddies/sep2", NULL, NULL, 0, "<Separator>" }, |
2469 { N_("/Buddies/_Quit"), "<CTL>Q", gaim_core_quit, 0, "<StockItem>", GTK_STOCK_QUIT }, | 2469 { N_("/Buddies/_Quit"), "<CTL>Q", gaim_core_quit, 0, "<StockItem>", GTK_STOCK_QUIT }, |
2470 | 2470 |
2471 /* Accounts menu */ | 2471 /* Accounts menu */ |
2472 { N_("/_Accounts"), NULL, NULL, 0, "<Branch>" }, | 2472 { N_("/_Accounts"), NULL, NULL, 0, "<Branch>" }, |
2473 { N_("/Accounts/Add\\/Edit"), "<CTL>A", gaim_gtk_accounts_window_show, 0, "<StockItem>", GAIM_STOCK_ACCOUNTS }, | |
2473 | 2474 |
2474 /* Tools */ | 2475 /* Tools */ |
2475 { N_("/_Tools"), NULL, NULL, 0, "<Branch>" }, | 2476 { N_("/_Tools"), NULL, NULL, 0, "<Branch>" }, |
2476 { N_("/Tools/Buddy _Pounces"), NULL, gaim_gtk_pounces_manager_show, 0, "<StockItem>", GAIM_STOCK_POUNCE }, | 2477 { N_("/Tools/Buddy _Pounces"), NULL, gaim_gtk_pounces_manager_show, 0, "<StockItem>", GAIM_STOCK_POUNCE }, |
2477 { N_("/Tools/Plu_gins"), "<CTL>U", gaim_gtk_plugin_dialog_show, 0, "<StockItem>", GAIM_STOCK_PLUGIN }, | 2478 { N_("/Tools/Plu_gins"), "<CTL>U", gaim_gtk_plugin_dialog_show, 0, "<StockItem>", GAIM_STOCK_PLUGIN }, |
5374 if (accountmenu == NULL) | 5375 if (accountmenu == NULL) |
5375 return; | 5376 return; |
5376 | 5377 |
5377 /* Clear the old Accounts menu */ | 5378 /* Clear the old Accounts menu */ |
5378 for (l = gtk_container_get_children(GTK_CONTAINER(accountmenu)); l; l = l->next) { | 5379 for (l = gtk_container_get_children(GTK_CONTAINER(accountmenu)); l; l = l->next) { |
5379 gtk_container_remove(GTK_CONTAINER(accountmenu), | 5380 menuitem = l->data; |
5380 GTK_WIDGET(l->data)); | 5381 |
5381 } | 5382 if (menuitem != gtk_item_factory_get_widget(gtkblist->ift, N_("/Accounts/Add\\/Edit"))) |
5382 | 5383 gtk_container_remove(GTK_CONTAINER(accountmenu), |
5383 menuitem = gtk_menu_item_new_with_label(_("Add/Edit")); | 5384 GTK_WIDGET(l->data)); |
5384 g_signal_connect(G_OBJECT(menuitem), "activate", | 5385 } |
5385 G_CALLBACK(gaim_gtk_accounts_window_show), NULL); | |
5386 gtk_menu_shell_append(GTK_MENU_SHELL(accountmenu), menuitem); | |
5387 gtk_widget_show(menuitem); | |
5388 | 5386 |
5389 for (accounts = gaim_accounts_get_all(); accounts; accounts = accounts->next) { | 5387 for (accounts = gaim_accounts_get_all(); accounts; accounts = accounts->next) { |
5390 char *buf = NULL; | 5388 char *buf = NULL; |
5391 GtkWidget *image = NULL; | 5389 GtkWidget *image = NULL; |
5392 GaimConnection *gc = NULL; | 5390 GaimConnection *gc = NULL; |