Mercurial > pidgin.yaz
comparison src/toc.c @ 1842:1d137dde946f
[gaim-migrate @ 1852]
irc can go through proxies. isn't that swell (that's my work o' the week, isn't it). next: msn, jabber, napster. probably in that order.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 12 May 2001 06:42:02 +0000 |
parents | 00aef397a1fe |
children | 4dbd8533d209 |
comparison
equal
deleted
inserted
replaced
1841:93f0629d4099 | 1842:1d137dde946f |
---|---|
1006 gtk_object_set_user_data(GTK_OBJECT(button), gc); | 1006 gtk_object_set_user_data(GTK_OBJECT(button), gc); |
1007 gtk_menu_append(GTK_MENU(menu), button); | 1007 gtk_menu_append(GTK_MENU(menu), button); |
1008 gtk_widget_show(button); | 1008 gtk_widget_show(button); |
1009 } | 1009 } |
1010 | 1010 |
1011 static void toc_print_option(GtkEntry * entry, struct aim_user *user) | 1011 static void toc_print_option(GtkEntry *entry, struct aim_user *user) |
1012 { | 1012 { |
1013 int entrynum; | 1013 int entrynum; |
1014 | 1014 |
1015 entrynum = (int)gtk_object_get_user_data(GTK_OBJECT(entry)); | 1015 entrynum = (int)gtk_object_get_user_data(GTK_OBJECT(entry)); |
1016 | 1016 |
1051 vbox = gtk_vbox_new(FALSE, 5); | 1051 vbox = gtk_vbox_new(FALSE, 5); |
1052 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); | 1052 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); |
1053 gtk_notebook_append_page(GTK_NOTEBOOK(book), vbox, gtk_label_new("TOC Options")); | 1053 gtk_notebook_append_page(GTK_NOTEBOOK(book), vbox, gtk_label_new("TOC Options")); |
1054 gtk_widget_show(vbox); | 1054 gtk_widget_show(vbox); |
1055 | 1055 |
1056 | |
1057 hbox = gtk_hbox_new(FALSE, 5); | 1056 hbox = gtk_hbox_new(FALSE, 5); |
1058 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 1057 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
1059 gtk_widget_show(hbox); | 1058 gtk_widget_show(hbox); |
1060 | 1059 |
1061 label = gtk_label_new("TOC Host:"); | 1060 label = gtk_label_new("TOC Host:"); |
1075 | 1074 |
1076 hbox = gtk_hbox_new(FALSE, 0); | 1075 hbox = gtk_hbox_new(FALSE, 0); |
1077 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 1076 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
1078 gtk_widget_show(hbox); | 1077 gtk_widget_show(hbox); |
1079 | 1078 |
1080 | |
1081 label = gtk_label_new("TOC Port:"); | 1079 label = gtk_label_new("TOC Port:"); |
1082 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 1080 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
1083 gtk_widget_show(label); | 1081 gtk_widget_show(label); |
1084 | 1082 |
1085 entry = gtk_entry_new(); | 1083 entry = gtk_entry_new(); |
1086 gtk_box_pack_end(GTK_BOX(hbox), entry, FALSE, FALSE, 0); | 1084 gtk_box_pack_end(GTK_BOX(hbox), entry, FALSE, FALSE, 0); |
1087 gtk_object_set_user_data(GTK_OBJECT(entry), (void *)1); | 1085 gtk_object_set_user_data(GTK_OBJECT(entry), (void *)USEROPT_AUTHPORT); |
1088 gtk_signal_connect(GTK_OBJECT(entry), "changed", GTK_SIGNAL_FUNC(toc_print_option), user); | 1086 gtk_signal_connect(GTK_OBJECT(entry), "changed", GTK_SIGNAL_FUNC(toc_print_option), user); |
1089 if (user->proto_opt[USEROPT_AUTHPORT][0]) { | 1087 if (user->proto_opt[USEROPT_AUTHPORT][0]) { |
1090 debug_printf("setting text %s\n", user->proto_opt[USEROPT_AUTHPORT]); | 1088 debug_printf("setting text %s\n", user->proto_opt[USEROPT_AUTHPORT]); |
1091 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_AUTHPORT]); | 1089 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_AUTHPORT]); |
1092 } else | 1090 } else |
1093 gtk_entry_set_text(GTK_ENTRY(entry), "9898"); | 1091 gtk_entry_set_text(GTK_ENTRY(entry), "9898"); |
1094 | 1092 |
1095 gtk_widget_show(entry); | 1093 gtk_widget_show(entry); |
1096 | |
1097 | 1094 |
1098 hbox = gtk_hbox_new(FALSE, 0); | 1095 hbox = gtk_hbox_new(FALSE, 0); |
1099 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 1096 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
1100 gtk_widget_show(hbox); | 1097 gtk_widget_show(hbox); |
1101 | 1098 |
1111 debug_printf("setting text %s\n", user->proto_opt[USEROPT_PROXYHOST]); | 1108 debug_printf("setting text %s\n", user->proto_opt[USEROPT_PROXYHOST]); |
1112 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_PROXYHOST]); | 1109 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_PROXYHOST]); |
1113 } | 1110 } |
1114 gtk_widget_show(entry); | 1111 gtk_widget_show(entry); |
1115 | 1112 |
1116 | |
1117 hbox = gtk_hbox_new(FALSE, 0); | 1113 hbox = gtk_hbox_new(FALSE, 0); |
1118 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 1114 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
1119 gtk_widget_show(hbox); | 1115 gtk_widget_show(hbox); |
1120 | 1116 |
1121 label = gtk_label_new("Proxy Port:"); | 1117 label = gtk_label_new("Proxy Port:"); |
1129 if (user->proto_opt[USEROPT_PROXYPORT][0]) { | 1125 if (user->proto_opt[USEROPT_PROXYPORT][0]) { |
1130 debug_printf("setting text %s\n", user->proto_opt[USEROPT_PROXYPORT]); | 1126 debug_printf("setting text %s\n", user->proto_opt[USEROPT_PROXYPORT]); |
1131 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_PROXYPORT]); | 1127 gtk_entry_set_text(GTK_ENTRY(entry), user->proto_opt[USEROPT_PROXYPORT]); |
1132 } | 1128 } |
1133 gtk_widget_show(entry); | 1129 gtk_widget_show(entry); |
1134 | |
1135 | 1130 |
1136 first = gtk_radio_button_new_with_label(NULL, "No proxy"); | 1131 first = gtk_radio_button_new_with_label(NULL, "No proxy"); |
1137 gtk_box_pack_start(GTK_BOX(vbox), first, FALSE, FALSE, 0); | 1132 gtk_box_pack_start(GTK_BOX(vbox), first, FALSE, FALSE, 0); |
1138 gtk_object_set_user_data(GTK_OBJECT(first), (void *)PROXY_NONE); | 1133 gtk_object_set_user_data(GTK_OBJECT(first), (void *)PROXY_NONE); |
1139 gtk_signal_connect(GTK_OBJECT(first), "clicked", GTK_SIGNAL_FUNC(toc_print_optionrad), user); | 1134 gtk_signal_connect(GTK_OBJECT(first), "clicked", GTK_SIGNAL_FUNC(toc_print_optionrad), user); |