pidgin/gtkblist.c

changeset 20623
bc3d2a1eb54a
parent 20615
fe11a607bdcc
child 20655
66f2dfd94949
child 21193
e918a1846d03
equal deleted inserted replaced
20423:6fe2af91fac4 20623:bc3d2a1eb54a
1332 G_CALLBACK(gtk_blist_menu_im_cb), buddy, 0, 0, NULL); 1332 G_CALLBACK(gtk_blist_menu_im_cb), buddy, 0, 0, NULL);
1333 if (prpl_info && prpl_info->send_file) { 1333 if (prpl_info && prpl_info->send_file) {
1334 if (!prpl_info->can_receive_file || 1334 if (!prpl_info->can_receive_file ||
1335 prpl_info->can_receive_file(buddy->account->gc, buddy->name)) 1335 prpl_info->can_receive_file(buddy->account->gc, buddy->name))
1336 { 1336 {
1337 pidgin_new_item_from_stock(menu, _("_Send File"), 1337 pidgin_new_item_from_stock(menu, _("_Send File..."),
1338 PIDGIN_STOCK_TOOLBAR_SEND_FILE, 1338 PIDGIN_STOCK_TOOLBAR_SEND_FILE,
1339 G_CALLBACK(gtk_blist_menu_send_file_cb), 1339 G_CALLBACK(gtk_blist_menu_send_file_cb),
1340 buddy, 0, 0, NULL); 1340 buddy, 0, 0, NULL);
1341 } 1341 }
1342 } 1342 }
1343 1343
1344 pidgin_new_item_from_stock(menu, _("Add Buddy _Pounce"), NULL, 1344 pidgin_new_item_from_stock(menu, _("Add Buddy _Pounce..."), NULL,
1345 G_CALLBACK(gtk_blist_menu_bp_cb), buddy, 0, 0, NULL); 1345 G_CALLBACK(gtk_blist_menu_bp_cb), buddy, 0, 0, NULL);
1346 1346
1347 if (node->parent && node->parent->child->next && 1347 if (node->parent && node->parent->child->next &&
1348 !sub && !contact_expanded) { 1348 !sub && !contact_expanded) {
1349 pidgin_new_item_from_stock(menu, _("View _Log"), NULL, 1349 pidgin_new_item_from_stock(menu, _("View _Log"), NULL,
1429 { 1429 {
1430 GtkWidget *menu; 1430 GtkWidget *menu;
1431 GtkWidget *item; 1431 GtkWidget *item;
1432 1432
1433 menu = gtk_menu_new(); 1433 menu = gtk_menu_new();
1434 item = pidgin_new_item_from_stock(menu, _("Add a _Buddy"), GTK_STOCK_ADD, 1434 item = pidgin_new_item_from_stock(menu, _("Add _Buddy..."), GTK_STOCK_ADD,
1435 G_CALLBACK(pidgin_blist_add_buddy_cb), node, 0, 0, NULL); 1435 G_CALLBACK(pidgin_blist_add_buddy_cb), node, 0, 0, NULL);
1436 gtk_widget_set_sensitive(item, purple_connections_get_all() != NULL); 1436 gtk_widget_set_sensitive(item, purple_connections_get_all() != NULL);
1437 item = pidgin_new_item_from_stock(menu, _("Add a C_hat"), GTK_STOCK_ADD, 1437 item = pidgin_new_item_from_stock(menu, _("Add C_hat..."), GTK_STOCK_ADD,
1438 G_CALLBACK(pidgin_blist_add_chat_cb), node, 0, 0, NULL); 1438 G_CALLBACK(pidgin_blist_add_chat_cb), node, 0, 0, NULL);
1439 gtk_widget_set_sensitive(item, pidgin_blist_joinchat_is_showable()); 1439 gtk_widget_set_sensitive(item, pidgin_blist_joinchat_is_showable());
1440 pidgin_new_item_from_stock(menu, _("_Delete Group"), GTK_STOCK_REMOVE, 1440 pidgin_new_item_from_stock(menu, _("_Delete Group"), GTK_STOCK_REMOVE,
1441 G_CALLBACK(pidgin_blist_remove_cb), node, 0, 0, NULL); 1441 G_CALLBACK(pidgin_blist_remove_cb), node, 0, 0, NULL);
1442 pidgin_new_item_from_stock(menu, _("_Rename"), NULL, 1442 pidgin_new_item_from_stock(menu, _("_Rename"), NULL,
3084 { "/Buddies/sep3", NULL, NULL, 0, "<Separator>", NULL }, 3084 { "/Buddies/sep3", NULL, NULL, 0, "<Separator>", NULL },
3085 { N_("/Buddies/_Quit"), "<CTL>Q", purple_core_quit, 0, "<StockItem>", GTK_STOCK_QUIT }, 3085 { N_("/Buddies/_Quit"), "<CTL>Q", purple_core_quit, 0, "<StockItem>", GTK_STOCK_QUIT },
3086 3086
3087 /* Accounts menu */ 3087 /* Accounts menu */
3088 { N_("/_Accounts"), NULL, NULL, 0, "<Branch>", NULL }, 3088 { N_("/_Accounts"), NULL, NULL, 0, "<Branch>", NULL },
3089 { N_("/Accounts/Add\\/Edit"), "<CTL>A", pidgin_accounts_window_show, 0, "<Item>", NULL }, 3089 { N_("/Accounts/Manage"), "<CTL>A", pidgin_accounts_window_show, 0, "<Item>", NULL },
3090 3090
3091 /* Tools */ 3091 /* Tools */
3092 { N_("/_Tools"), NULL, NULL, 0, "<Branch>", NULL }, 3092 { N_("/_Tools"), NULL, NULL, 0, "<Branch>", NULL },
3093 { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "<Item>", NULL }, 3093 { N_("/Tools/Buddy _Pounces"), NULL, pidgin_pounces_manager_show, 0, "<Item>", NULL },
3094 { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "<Item>", NULL }, 3094 { N_("/Tools/_Certificates"), NULL, pidgin_certmgr_show, 0, "<Item>", NULL },
4614 4614
4615 /* Translators: Please maintain the use of -> and <- to refer to menu heirarchy */ 4615 /* Translators: Please maintain the use of -> and <- to refer to menu heirarchy */
4616 tmp = g_strdup_printf(_("<span weight='bold' size='larger'>Welcome to %s!</span>\n\n" 4616 tmp = g_strdup_printf(_("<span weight='bold' size='larger'>Welcome to %s!</span>\n\n"
4617 4617
4618 "You have no accounts enabled. Enable your IM accounts from the " 4618 "You have no accounts enabled. Enable your IM accounts from the "
4619 "<b>Accounts</b> window at <b>Accounts->Add/Edit</b>. Once you " 4619 "<b>Accounts</b> window at <b>Accounts->Manage</b>. Once you "
4620 "enable accounts, you'll be able to sign on, set your status, " 4620 "enable accounts, you'll be able to sign on, set your status, "
4621 "and talk to your friends."), PIDGIN_NAME); 4621 "and talk to your friends."), PIDGIN_NAME);
4622 pretty = pidgin_make_pretty_arrows(tmp); 4622 pretty = pidgin_make_pretty_arrows(tmp);
4623 g_free(tmp); 4623 g_free(tmp);
4624 label = gtk_label_new(NULL); 4624 label = gtk_label_new(NULL);
5814 gtk_table_set_col_spacings(GTK_TABLE(table), 5); 5814 gtk_table_set_col_spacings(GTK_TABLE(table), 5);
5815 gtk_container_set_border_width(GTK_CONTAINER(table), 0); 5815 gtk_container_set_border_width(GTK_CONTAINER(table), 0);
5816 gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); 5816 gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0);
5817 5817
5818 /* Set up stuff for the account box */ 5818 /* Set up stuff for the account box */
5819 label = gtk_label_new_with_mnemonic(_("_Account:")); 5819 label = gtk_label_new_with_mnemonic(_("A_ccount:"));
5820 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 5820 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
5821 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); 5821 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1);
5822 5822
5823 data->account_box = pidgin_account_option_menu_new(account, FALSE, 5823 data->account_box = pidgin_account_option_menu_new(account, FALSE,
5824 G_CALLBACK(add_buddy_select_account_cb), NULL, data); 5824 G_CALLBACK(add_buddy_select_account_cb), NULL, data);
6880 6880
6881 /* Clear the old Accounts menu */ 6881 /* Clear the old Accounts menu */
6882 for (l = gtk_container_get_children(GTK_CONTAINER(accountmenu)); l; l = g_list_delete_link(l, l)) { 6882 for (l = gtk_container_get_children(GTK_CONTAINER(accountmenu)); l; l = g_list_delete_link(l, l)) {
6883 menuitem = l->data; 6883 menuitem = l->data;
6884 6884
6885 if (menuitem != gtk_item_factory_get_widget(gtkblist->ift, N_("/Accounts/Add\\/Edit"))) 6885 if (menuitem != gtk_item_factory_get_widget(gtkblist->ift, N_("/Accounts/Manage")))
6886 gtk_widget_destroy(menuitem); 6886 gtk_widget_destroy(menuitem);
6887 } 6887 }
6888 6888
6889 for (accounts = purple_accounts_get_all(); accounts; accounts = accounts->next) { 6889 for (accounts = purple_accounts_get_all(); accounts; accounts = accounts->next) {
6890 char *buf = NULL; 6890 char *buf = NULL;

mercurial