Mercurial > pidgin.yaz
changeset 452:0a2eb65b6909
[gaim-migrate @ 462]
Changes to how the away dialog works: before, could save without being away,
now, can be away without saving.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 30 Jun 2000 07:18:38 +0000 |
parents | 7b49c67e561c |
children | dd82845ed7b6 |
files | src/dialogs.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Fri Jun 30 05:55:02 2000 +0000 +++ b/src/dialogs.c Fri Jun 30 07:18:38 2000 +0000 @@ -2471,15 +2471,17 @@ g_free(away_message); is_checked = GTK_TOGGLE_BUTTON(ca->checkbx)->active; - if (is_checked) do_away_message(NULL, b); - - /* stick it on the away list */ - if (strlen(b->name)) { + if (is_checked) { away_messages = g_list_append(away_messages, b); save_prefs(); do_away_menu(); if (pd != NULL) gtk_list_select_item(GTK_LIST(pd->away_list), g_list_index(away_messages, b)); + } + + /* stick it on the away list */ + if (strlen(b->name)) { + do_away_message(NULL, b); } destroy_dialog(NULL, ca->window); @@ -2554,7 +2556,7 @@ icon = gdk_pixmap_create_from_xpm_d( ca->window->window , &mask, NULL, save_xpm); icon_i = gtk_pixmap_new ( icon, mask ); - label = gtk_label_new(_("Save")); + label = gtk_label_new(_("Away")); gtk_box_pack_start(GTK_BOX(button_box), icon_i, FALSE, FALSE, 2); gtk_box_pack_start(GTK_BOX(button_box), label, FALSE, FALSE, 2); @@ -2595,7 +2597,7 @@ /* End of our cancel button code */ /* Checkbox for showing away msg */ - ca->checkbx = gtk_check_button_new_with_label(_("Make away now")); + ca->checkbx = gtk_check_button_new_with_label(_("Save for later use")); /* pack boxes where they belong */ gtk_box_pack_start(GTK_BOX(fbox), titlebox, TRUE, TRUE, 5);