[Pidgin] #5549: purple_request_field_string_new needs a "html" hint like purple_request_input

Pidgin trac at pidgin.im
Thu Apr 17 03:19:52 EDT 2008


#5549: purple_request_field_string_new needs a "html" hint like
purple_request_input
--------------------------+-------------------------------------------------
 Reporter:  isleshocky77  |       Type:  defect
   Status:  new           |   Priority:  minor 
Component:  libpurple     |    Version:  2.4.1 
 Keywords:                |    Pending:  0     
--------------------------+-------------------------------------------------
 {{{
 #!c
 field_group_message = purple_request_field_group_new(NULL);
 purple_request_fields_add_group(fields, field_group_message);
 field = purple_request_field_string_new("groupMessage", "Message", NULL,
 TRUE);
 purple_request_field_set_type_hint(field, "html");
 purple_request_field_group_add_field(field_group_message, field);

 purple_request_fields(NULL,
   _("Group Message"),
   _("You can send this message to any of the below checked users"),
   NULL,
   fields,
   _("OK"), G_CALLBACK(do_it_cb),
   _("Cancel"), G_CALLBACK(dont_do_it_cb),
   NULL, NULL, NULL,
   list);
 }}}

 Should output the same HTML text box which is outputted by doing:
 {{{
 #!c
 purple_request_input(group, _("Spam"),
   _("Please enter the message to send"),
   tmp,
   "", TRUE, FALSE, "html",
   _("Send"), G_CALLBACK(do_it_cb),
   _("Cancel"), G_CALLBACK(dont_do_it_cb),
   NULL, NULL, NULL, list);
 }}}

 Note: Both are setting the hint to "html"

-- 
Ticket URL: <http://developer.pidgin.im/ticket/5549>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list