[Pidgin] #5331: Issue with plugin setting status message

Pidgin trac at pidgin.im
Fri Apr 4 15:37:15 EDT 2008


#5331: Issue with plugin setting status message
---------------------------+------------------------------------------------
  Reporter:  Natureshadow  |       Owner:       
      Type:  defect        |      Status:  new  
  Priority:  minor         |   Milestone:       
 Component:  libpurple     |     Version:  2.2.1
Resolution:                |    Keywords:       
   Pending:  1             |  
---------------------------+------------------------------------------------
Changes (by datallah):

  * pending:  0 => 1

Comment:

 It looks like the issue is related to updating the current status (which
 may be a primitive status).  I suppose one could argue that this is a bug,
 but it could also be considered to work as designed.

 The way this is handled in the status box is with the following code:
 {{{
 /* If we've used this type+message before, lookup the transient status */
 saved_status =
 purple_savedstatus_find_transient_by_type_and_message(primitive, message);

 /* If this type+message is unique then create a new transient saved status
 */
 if (saved_status == NULL)
 {
         saved_status = purple_savedstatus_new(NULL, primitive);
         purple_savedstatus_set_message(saved_status, message);
 }

 /* Set the status for each account */
 purple_savedstatus_activate(saved_status);
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/5331#comment:1>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list