Mercurial > pidgin
comparison finch/gntrequest.c @ 17922:43a55528ff26
propagate from branch 'im.pidgin.pidgin' (head b5c55520ae8ff7186733fd82db23a6e4452976cc)
to branch 'im.pidgin.soc.2007.finchfeat' (head 93037197c5356731d62e75b4050ca7d01b1017d6)
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Mon, 04 Jun 2007 15:12:50 +0000 |
parents | a236c67e39b6 |
children | 4ca97b26a8fb |
comparison
equal
deleted
inserted
replaced
17827:223a4fca43a1 | 17922:43a55528ff26 |
---|---|
610 return window; | 610 return window; |
611 } | 611 } |
612 | 612 |
613 static PurpleRequestUiOps uiops = | 613 static PurpleRequestUiOps uiops = |
614 { | 614 { |
615 .request_input = finch_request_input, | 615 finch_request_input, |
616 .close_request = finch_close_request, | 616 finch_request_choice, |
617 .request_choice = finch_request_choice, | 617 finch_request_action, |
618 .request_action = finch_request_action, | 618 finch_request_fields, |
619 .request_fields = finch_request_fields, | 619 finch_request_file, |
620 .request_file = finch_request_file, | 620 finch_close_request, |
621 .request_folder = NULL /* No plans for this */ | 621 NULL, /* No plans for request_folder */ |
622 NULL, | |
623 NULL, | |
624 NULL, | |
625 NULL | |
622 }; | 626 }; |
623 | 627 |
624 PurpleRequestUiOps *finch_request_get_ui_ops() | 628 PurpleRequestUiOps *finch_request_get_ui_ops() |
625 { | 629 { |
626 return &uiops; | 630 return &uiops; |
666 } | 670 } |
667 | 671 |
668 pt = purple_prefs_get_type(id); | 672 pt = purple_prefs_get_type(id); |
669 switch (pt) { | 673 switch (pt) { |
670 case PURPLE_PREF_INT: | 674 case PURPLE_PREF_INT: |
675 { | |
676 long int tmp; | |
671 if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */ | 677 if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */ |
672 sscanf(val, "%ld", (long int *)&val); | 678 sscanf(val, "%ld", &tmp); |
673 purple_prefs_set_int(id, GPOINTER_TO_INT(val)); | 679 purple_prefs_set_int(id, (gint)tmp); |
674 break; | 680 break; |
681 } | |
675 case PURPLE_PREF_BOOLEAN: | 682 case PURPLE_PREF_BOOLEAN: |
676 purple_prefs_set_bool(id, GPOINTER_TO_INT(val)); | 683 purple_prefs_set_bool(id, GPOINTER_TO_INT(val)); |
677 break; | 684 break; |
678 case PURPLE_PREF_STRING: | 685 case PURPLE_PREF_STRING: |
679 purple_prefs_set_string(id, val); | 686 purple_prefs_set_string(id, val); |