Mercurial > pidgin
comparison src/dialogs.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 | 728a90516211 |
| children | 78c4f497db2b |
comparison
equal
deleted
inserted
replaced
| 1234:cedf7047081e | 1235:a9cf2f61a7b1 |
|---|---|
| 120 GtkWidget *sendim; | 120 GtkWidget *sendim; |
| 121 GtkWidget *openwindow; | 121 GtkWidget *openwindow; |
| 122 GtkWidget *p_signon; | 122 GtkWidget *p_signon; |
| 123 GtkWidget *p_unaway; | 123 GtkWidget *p_unaway; |
| 124 GtkWidget *p_unidle; | 124 GtkWidget *p_unidle; |
| 125 GtkWidget *save; | |
| 125 GtkWidget *menu; | 126 GtkWidget *menu; |
| 126 | 127 |
| 127 struct aim_user *user; | 128 struct aim_user *user; |
| 128 }; | 129 }; |
| 129 | 130 |
| 1007 g_snprintf(bp->command, 2048, "%s", gtk_entry_get_text(GTK_ENTRY(b->commentry))); | 1008 g_snprintf(bp->command, 2048, "%s", gtk_entry_get_text(GTK_ENTRY(b->commentry))); |
| 1008 g_snprintf(bp->pouncer, 80, "%s", b->user->username); | 1009 g_snprintf(bp->pouncer, 80, "%s", b->user->username); |
| 1009 | 1010 |
| 1010 bp->protocol = b->user->protocol; | 1011 bp->protocol = b->user->protocol; |
| 1011 | 1012 |
| 1013 bp->options = 0; | |
| 1014 | |
| 1012 if (GTK_TOGGLE_BUTTON(b->openwindow)->active) | 1015 if (GTK_TOGGLE_BUTTON(b->openwindow)->active) |
| 1013 bp->popup = 1; | 1016 bp->options |= OPT_POUNCE_POPUP; |
| 1014 else | |
| 1015 bp->popup = 0; | |
| 1016 | 1017 |
| 1017 if (GTK_TOGGLE_BUTTON(b->sendim)->active) | 1018 if (GTK_TOGGLE_BUTTON(b->sendim)->active) |
| 1018 bp->sendim = 1; | 1019 bp->options |= OPT_POUNCE_SEND_IM; |
| 1019 else | |
| 1020 bp->sendim = 0; | |
| 1021 | 1020 |
| 1022 if (GTK_TOGGLE_BUTTON(b->command)->active) | 1021 if (GTK_TOGGLE_BUTTON(b->command)->active) |
| 1023 bp->cmd = 1; | 1022 bp->options |= OPT_POUNCE_COMMAND; |
| 1024 else | |
| 1025 bp->cmd = 0; | |
| 1026 | 1023 |
| 1027 if (GTK_TOGGLE_BUTTON(b->p_signon)->active) | 1024 if (GTK_TOGGLE_BUTTON(b->p_signon)->active) |
| 1028 bp->signon = 1; | 1025 bp->options |= OPT_POUNCE_SIGNON; |
| 1029 else | |
| 1030 bp->signon = 0; | |
| 1031 | 1026 |
| 1032 if (GTK_TOGGLE_BUTTON(b->p_unaway)->active) | 1027 if (GTK_TOGGLE_BUTTON(b->p_unaway)->active) |
| 1033 bp->unaway = 1; | 1028 bp->options |= OPT_POUNCE_UNAWAY; |
| 1034 else | |
| 1035 bp->unaway = 0; | |
| 1036 | 1029 |
| 1037 if (GTK_TOGGLE_BUTTON(b->p_unidle)->active) | 1030 if (GTK_TOGGLE_BUTTON(b->p_unidle)->active) |
| 1038 bp->unidle = 1; | 1031 bp->options |= OPT_POUNCE_UNIDLE; |
| 1039 else | 1032 |
| 1040 bp->unidle = 0; | 1033 if (GTK_TOGGLE_BUTTON(b->save)->active) |
| 1034 bp->options |= OPT_POUNCE_SAVE; | |
| 1041 | 1035 |
| 1042 buddy_pounces = g_list_append(buddy_pounces, bp); | 1036 buddy_pounces = g_list_append(buddy_pounces, bp); |
| 1043 | 1037 |
| 1044 do_bp_menu(); | 1038 do_bp_menu(); |
| 1045 | 1039 |
| 1208 b->commentry = gtk_entry_new(); | 1202 b->commentry = gtk_entry_new(); |
| 1209 gtk_box_pack_start(GTK_BOX(hbox), b->commentry, TRUE, TRUE, 0); | 1203 gtk_box_pack_start(GTK_BOX(hbox), b->commentry, TRUE, TRUE, 0); |
| 1210 gtk_signal_connect(GTK_OBJECT(b->commentry), "activate", | 1204 gtk_signal_connect(GTK_OBJECT(b->commentry), "activate", |
| 1211 GTK_SIGNAL_FUNC(do_new_bp), b); | 1205 GTK_SIGNAL_FUNC(do_new_bp), b); |
| 1212 gtk_widget_show(b->commentry); | 1206 gtk_widget_show(b->commentry); |
| 1207 | |
| 1208 sep = gtk_hseparator_new(); | |
| 1209 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); | |
| 1210 gtk_widget_show(sep); | |
| 1211 | |
| 1212 b->save = gtk_check_button_new_with_label(_("Save this pounce after activation")); | |
| 1213 gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(b->save), FALSE); | |
| 1214 gtk_box_pack_start(GTK_BOX(vbox), b->save, FALSE, FALSE, 0); | |
| 1215 gtk_widget_show(b->save); | |
| 1213 | 1216 |
| 1214 sep = gtk_hseparator_new(); | 1217 sep = gtk_hseparator_new(); |
| 1215 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); | 1218 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); |
| 1216 gtk_widget_show(sep); | 1219 gtk_widget_show(sep); |
| 1217 | 1220 |
