Mercurial > pidgin.yaz
comparison plugins/raw.c @ 4655:fac4c73dd5ad
[gaim-migrate @ 4966]
cleanups for some plugins that aren't compiled by default
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 06 Mar 2003 17:27:17 +0000 |
parents | 07a3d1fae88f |
children | fefad67de2c7 |
comparison
equal
deleted
inserted
replaced
4654:374384081171 | 4655:fac4c73dd5ad |
---|---|
47 return FALSE; | 47 return FALSE; |
48 } | 48 } |
49 | 49 |
50 static void send_it(GtkEntry *entry) | 50 static void send_it(GtkEntry *entry) |
51 { | 51 { |
52 char *txt; | 52 const char *txt; |
53 if (!gc) return; | 53 if (!gc) return; |
54 txt = gtk_entry_get_text(entry); | 54 txt = gtk_entry_get_text(entry); |
55 switch (gc->protocol) { | 55 switch (gc->protocol) { |
56 case PROTO_TOC: | 56 case PROTO_TOC: |
57 { | 57 { |
106 if (c->protocol != PROTO_TOC && c->protocol != PROTO_MSN && | 106 if (c->protocol != PROTO_TOC && c->protocol != PROTO_MSN && |
107 c->protocol != PROTO_IRC && c->protocol != PROTO_JABBER) | 107 c->protocol != PROTO_IRC && c->protocol != PROTO_JABBER) |
108 continue; | 108 continue; |
109 if (!gc) | 109 if (!gc) |
110 gc = c; | 110 gc = c; |
111 g_snprintf(buf, sizeof buf, "%s (%s)", c->username, (*c->prpl->name)()); | 111 g_snprintf(buf, sizeof buf, "%s (%s)", c->username, c->prpl->name); |
112 opt = gtk_menu_item_new_with_label(buf); | 112 opt = gtk_menu_item_new_with_label(buf); |
113 g_signal_connect(GTK_OBJECT(opt), "activate", G_CALLBACK(set_gc), c); | 113 g_signal_connect(GTK_OBJECT(opt), "activate", G_CALLBACK(set_gc), c); |
114 gtk_widget_show(opt); | 114 gtk_widget_show(opt); |
115 gtk_menu_append(GTK_MENU(menu), opt); | 115 gtk_menu_shell_append(GTK_MENU_SHELL(menu), opt); |
116 } | 116 } |
117 | 117 |
118 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); | 118 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); |
119 gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu); | 119 gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu); |
120 gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), 0); | 120 gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), 0); |