# HG changeset patch # User Eric Warmenhoven # Date 962349518 0 # Node ID 0a2eb65b6909315052083ead88534d2e1d5dbfa4 # Parent 7b49c67e561c15b759c8647eb64507b5e4093b3a [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 diff -r 7b49c67e561c -r 0a2eb65b6909 src/dialogs.c --- 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);