[Pidgin] #15020: PurpleConversationPresent from dbus

Pidgin trac at pidgin.im
Tue Mar 20 12:42:54 EDT 2012


#15020: PurpleConversationPresent from dbus
-------------------+--------------------------------------------------------
Reporter:  cdar    |        Type:  defect              
  Status:  new     |   Component:  pidgin (gtk)        
 Version:  2.10.0  |    Keywords:  conversation present
-------------------+--------------------------------------------------------
 This function
 {{{
 void
 purple_conversation_present(PurpleConversation *conv)
 }}}
 from ''libpurple/conversation.c'' which is exposed through dbus doesn't
 meet its expectations.

 It is implemented by
 {{{
 void
 pidgin_conv_present_conversation(PurpleConversation *conv)
 {
         PidginConversation *gtkconv;
         GdkModifierType state;

         pidgin_conv_attach_to_conversation(conv);
         gtkconv = PIDGIN_CONVERSATION(conv);

         pidgin_conv_switch_active_conversation(conv);
         /* Switch the tab only if the user initiated the event by pressing
          * a button or hitting a key. */
         if (gtk_get_current_event_state(&state))
                 pidgin_conv_window_switch_gtkconv(gtkconv->win, gtkconv);
         gtk_window_present(GTK_WINDOW(gtkconv->win->window));
 }
 }}}
 from ''pidgin/gtkconv.c'' and has condition which forbids switching the
 tab for events not initiated by user.

 I need it for my pidgin unity lens. By choosing a contact from dash, a new
 conversation is opened and presenting to the user.

 [http://imageshack.us/photo/my-images/267/pidginlens.jpg/]

 Newly created conversation isn't active. Will it stay that way? If yes,
 then its worth to exclude this function form exporting to the dbus.

 Is it possible to emit that kind of event through dbus to pidgin?

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


More information about the Tracker mailing list