[Pidgin] #2651: Fix gtkrequest.c handling of lists with multiple preselected values

Pidgin trac at pidgin.im
Mon Aug 20 16:56:57 EDT 2007


#2651: Fix gtkrequest.c handling of lists with multiple preselected values
--------------------------+-------------------------------------------------
 Reporter:  ghudson       |       Type:  patch
   Status:  new           |   Priority:  minor
Component:  pidgin (gtk)  |    Version:  2.1.0
 Keywords:                |    Pending:  0    
--------------------------+-------------------------------------------------
 gtkrequest.c sets up a callback handler for the "changed" signal so that
 it can keep the request object in sync with the GTK widget.  Currently, it
 sets up this callback before creating the list items.  When the first
 selected list item is added, the "change" signal handler fires, and the
 request object's selected-item list is smashed to include only that first
 item.

 One way to reproduce this bug: connect to an Openfire XMPP server and
 configure a chatroom.  The "roles for which presence is broadcast"
 selector contains three selected items by default, but if you simply click
 OK without changing anything, that gets smashed down to just "Moderator".

 It seems simple to fix this issue simply by setting up the signal handler
 after the list items are created.  I will attach a patch.

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


More information about the Tracker mailing list