comparison src/conversation.c @ 1235:a9cf2f61a7b1

[gaim-migrate @ 1245] 1. added protocol names to menus in conversation/join chat dialog. helpful if you're signed on as warmenhoven in both irc and yahoo. 2. made "no sounds when away" mean absolutely no sounds when away. 3. fixed buddy pounces and made it so you can save them. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 12 Dec 2000 09:09:24 +0000
parents 6773043cf9f6
children eaa0e2f5ace4
comparison
equal deleted inserted replaced
1234:cedf7047081e 1235:a9cf2f61a7b1
33 #include <gtk/gtk.h> 33 #include <gtk/gtk.h>
34 #include "gtkhtml.h" 34 #include "gtkhtml.h"
35 #include <gdk/gdkkeysyms.h> 35 #include <gdk/gdkkeysyms.h>
36 #include "convo.h" 36 #include "convo.h"
37 #include "gtkspell.h" 37 #include "gtkspell.h"
38 #include "prpl.h"
38 39
39 #include "pixmaps/underline.xpm" 40 #include "pixmaps/underline.xpm"
40 #include "pixmaps/bold.xpm" 41 #include "pixmaps/bold.xpm"
41 #include "pixmaps/italic.xpm" 42 #include "pixmaps/italic.xpm"
42 #include "pixmaps/small.xpm" 43 #include "pixmaps/small.xpm"
1644 static void create_convo_menu(struct conversation *cnv) 1645 static void create_convo_menu(struct conversation *cnv)
1645 { 1646 {
1646 GtkWidget *menu, *opt; 1647 GtkWidget *menu, *opt;
1647 GSList *g = connections; 1648 GSList *g = connections;
1648 struct gaim_connection *c; 1649 struct gaim_connection *c;
1650 char buf[2048];
1649 1651
1650 if (g_slist_length(g) < 2) 1652 if (g_slist_length(g) < 2)
1651 gtk_widget_hide(cnv->menu->parent); 1653 gtk_widget_hide(cnv->menu->parent);
1652 else { 1654 else {
1653 menu = gtk_menu_new(); 1655 menu = gtk_menu_new();
1654 1656
1655 while (g) { 1657 while (g) {
1656 c = (struct gaim_connection *)g->data; 1658 c = (struct gaim_connection *)g->data;
1657 opt = gtk_menu_item_new_with_label(c->username); 1659 g_snprintf(buf, sizeof buf, "%s (%s)", c->username, (*c->prpl->name)());
1660 opt = gtk_menu_item_new_with_label(buf);
1658 gtk_object_set_user_data(GTK_OBJECT(opt), cnv); 1661 gtk_object_set_user_data(GTK_OBJECT(opt), cnv);
1659 gtk_signal_connect(GTK_OBJECT(opt), "activate", 1662 gtk_signal_connect(GTK_OBJECT(opt), "activate",
1660 GTK_SIGNAL_FUNC(convo_sel_send), c); 1663 GTK_SIGNAL_FUNC(convo_sel_send), c);
1661 gtk_widget_show(opt); 1664 gtk_widget_show(opt);
1662 gtk_menu_append(GTK_MENU(menu), opt); 1665 gtk_menu_append(GTK_MENU(menu), opt);