Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 29378:fdb61f7e8576
Change the cursor and act on double click on usernames in chat history.
Use the hand-cursor when hovering over usernames in the chat history, and
pop up an IM on double click. Closes #11295.
On the news tonight: The bird is still the word.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 06 Feb 2010 23:45:03 +0000 |
parents | 5f6571bb128d |
children | 88c462455bc8 56ea87a90cba |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Sat Feb 06 06:53:31 2010 +0000 +++ b/pidgin/gtkconv.c Sat Feb 06 23:45:03 2010 +0000 @@ -5621,7 +5621,11 @@ buddyname = (tag->name) + 6; - if (btn_event->button == 2 + if (btn_event->button == 1 && + event->type == GDK_2BUTTON_PRESS) { + chat_do_im(PIDGIN_CONVERSATION(conv), buddyname); + return TRUE; + } else if (btn_event->button == 2 && event->type == GDK_2BUTTON_PRESS) { chat_do_info(PIDGIN_CONVERSATION(conv), buddyname); @@ -5683,6 +5687,7 @@ "weight", purple_find_buddy(purple_conversation_get_account(conv), who) ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL, NULL); + g_object_set_data(G_OBJECT(buddytag), "cursor", ""); g_signal_connect(G_OBJECT(buddytag), "event", G_CALLBACK(buddytag_event), conv); }