comparison src/pounce.c @ 5878:9e54bb2ee3b5

[gaim-migrate @ 6310] Whether or not pounces save after activation is now saved and loaded in pounces.xml. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 15 Jun 2003 03:22:55 +0000
parents 448f2f4ca3ec
children 94ad4d45346a
comparison
equal deleted inserted replaced
5877:f336fc0a7b8b 5878:9e54bb2ee3b5
602 } 602 }
603 603
604 g_free(data->pouncee); 604 g_free(data->pouncee);
605 data->pouncee = NULL; 605 data->pouncee = NULL;
606 } 606 }
607 else if (!strcmp(element_name, "save")) {
608 gaim_pounce_set_save(data->pounce, TRUE);
609 }
607 else if (!strcmp(element_name, "pounce")) { 610 else if (!strcmp(element_name, "pounce")) {
608 data->pounce = NULL; 611 data->pounce = NULL;
609 data->events = 0; 612 data->events = 0;
610 613
611 if (data->ui_name != NULL) g_free(data->ui_name); 614 if (data->ui_name != NULL) g_free(data->ui_name);
790 fprintf(fp, " <actions>\n"); 793 fprintf(fp, " <actions>\n");
791 794
792 g_hash_table_foreach(pounce->actions, write_action_parameter_list, fp); 795 g_hash_table_foreach(pounce->actions, write_action_parameter_list, fp);
793 796
794 fprintf(fp, " </actions>\n"); 797 fprintf(fp, " </actions>\n");
798
799 if (gaim_pounce_get_save(pounce))
800 fprintf(fp, " <save/>\n");
801
795 fprintf(fp, " </pounce>\n"); 802 fprintf(fp, " </pounce>\n");
796 803
797 g_free(pouncer_name); 804 g_free(pouncer_name);
798 } 805 }
799 806