comparison src/dialogs.c @ 1140:249b040f6a83

[gaim-migrate @ 1150] Pounce stuff is working now. It still doesnt use the "per connection" info. Im just playing with the UI right now. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 27 Nov 2000 01:00:09 +0000
parents ce935e673907
children 8f4ce8b74901
comparison
equal deleted inserted replaced
1139:ce935e673907 1140:249b040f6a83
1088 GtkWidget *opt; 1088 GtkWidget *opt;
1089 GList *u = aim_users; 1089 GList *u = aim_users;
1090 struct aim_user *a; 1090 struct aim_user *a;
1091 1091
1092 hbox = gtk_hbox_new(FALSE, 5); 1092 hbox = gtk_hbox_new(FALSE, 5);
1093 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); 1093 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0);
1094 gtk_widget_show(hbox); 1094 gtk_widget_show(hbox);
1095 1095
1096 label = gtk_label_new(_("Pounce buddy as:")); 1096 label = gtk_label_new(_("Pounce buddy as:"));
1097 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); 1097 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
1098 gtk_widget_show(label); 1098 gtk_widget_show(label);
1099 1099
1100 optmenu = gtk_option_menu_new(); 1100 optmenu = gtk_option_menu_new();
1101 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 5); 1101 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0);
1102 gtk_widget_show(optmenu); 1102 gtk_widget_show(optmenu);
1103 1103
1104 menu = gtk_menu_new(); 1104 menu = gtk_menu_new();
1105 1105
1106 while (u) { 1106 while (u) {
1123 void show_new_bp(char *name) 1123 void show_new_bp(char *name)
1124 { 1124 {
1125 GtkWidget *label; 1125 GtkWidget *label;
1126 GtkWidget *bbox; 1126 GtkWidget *bbox;
1127 GtkWidget *vbox; 1127 GtkWidget *vbox;
1128 GtkWidget *hbox;
1128 GtkWidget *button; 1129 GtkWidget *button;
1129 1130
1130 struct addbp *b = g_new0(struct addbp, 1); 1131 struct addbp *b = g_new0(struct addbp, 1);
1131 1132
1132 b->window = gtk_window_new(GTK_WINDOW_DIALOG); 1133 b->window = gtk_window_new(GTK_WINDOW_DIALOG);
1152 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 1153 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
1153 1154
1154 /* Pounce as menu */ 1155 /* Pounce as menu */
1155 pounce_user_menu(b, vbox); 1156 pounce_user_menu(b, vbox);
1156 1157
1157 /* Put the buttons in the box */ 1158
1159 hbox = gtk_hbox_new(FALSE, 5);
1160
1158 label = gtk_label_new(_("Buddy To Pounce:")); 1161 label = gtk_label_new(_("Buddy To Pounce:"));
1159 gtk_widget_show(label); 1162 gtk_widget_show(label);
1160 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); 1163 gtk_widget_show(hbox);
1161 gtk_box_pack_start(GTK_BOX(vbox), b->nameentry, FALSE, FALSE, 0); 1164 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
1162 1165 gtk_box_pack_start(GTK_BOX(hbox), b->nameentry, FALSE, FALSE, 0);
1166 gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
1167
1168
1169 label = gtk_label_new(_("Events:"));
1170
1163 /* Set up the different options */ 1171 /* Set up the different options */
1164 b->p_signon = gtk_check_button_new_with_label(_("Sign On")); 1172 b->p_signon = gtk_check_button_new_with_label(_("Sign On"));
1165 b->p_unaway = gtk_check_button_new_with_label(_("Return from away")); 1173 b->p_unaway = gtk_check_button_new_with_label(_("Return from away"));
1166 b->p_unidle = gtk_check_button_new_with_label(_("Return from idle")); 1174 b->p_unidle = gtk_check_button_new_with_label(_("Return from idle"));
1167 1175
1168 /* Show them */ 1176 /* Show them */
1177 gtk_widget_show(label);
1169 gtk_widget_show(b->p_signon); 1178 gtk_widget_show(b->p_signon);
1170 gtk_widget_show(b->p_unaway); 1179 gtk_widget_show(b->p_unaway);
1171 gtk_widget_show(b->p_unidle); 1180 gtk_widget_show(b->p_unidle);
1172 1181
1173 /* And pack'em */ 1182 /* And pack'em */
1183 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
1174 gtk_box_pack_start(GTK_BOX(vbox), b->p_signon, FALSE, FALSE, 0); 1184 gtk_box_pack_start(GTK_BOX(vbox), b->p_signon, FALSE, FALSE, 0);
1175 gtk_box_pack_start(GTK_BOX(vbox), b->p_unaway, FALSE, FALSE, 0); 1185 gtk_box_pack_start(GTK_BOX(vbox), b->p_unaway, FALSE, FALSE, 0);
1176 gtk_box_pack_start(GTK_BOX(vbox), b->p_unidle, FALSE, FALSE, 0); 1186 gtk_box_pack_start(GTK_BOX(vbox), b->p_unidle, FALSE, FALSE, 0);
1177 1187
1188
1189 label = gtk_label_new(_("Actions:"));
1190
1178 /* And now the other stuff */ 1191 /* And now the other stuff */
1179 b->openwindow = gtk_check_button_new_with_label(_("Open IM window on pounce")); 1192 b->openwindow = gtk_check_button_new_with_label(_("Open IM window on pounce"));
1180 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->openwindow), FALSE); 1193 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->openwindow), FALSE);
1181 1194
1182 b->sendim = gtk_check_button_new_with_label(_("Send IM on pounce")); 1195 b->sendim = gtk_check_button_new_with_label(_("Send IM on pounce"));
1183 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->sendim), TRUE); 1196 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->sendim), TRUE);
1184 1197
1198 gtk_widget_show(label);
1185 gtk_widget_show(b->openwindow); 1199 gtk_widget_show(b->openwindow);
1186 gtk_widget_show(b->sendim); 1200 gtk_widget_show(b->sendim);
1201
1202 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
1187 gtk_box_pack_start(GTK_BOX(vbox), b->openwindow, FALSE, FALSE, 0); 1203 gtk_box_pack_start(GTK_BOX(vbox), b->openwindow, FALSE, FALSE, 0);
1188 gtk_box_pack_start(GTK_BOX(vbox), b->sendim, FALSE, FALSE, 0); 1204 gtk_box_pack_start(GTK_BOX(vbox), b->sendim, FALSE, FALSE, 0);
1189 1205
1190 label = gtk_label_new(_("Message to send:")); 1206 label = gtk_label_new(_("Message to send:"));
1191 gtk_widget_show(label); 1207 gtk_widget_show(label);