Mercurial > pidgin.yaz
comparison plugins/gtk-signals-test.c @ 12604:71299d63801d
[gaim-migrate @ 14939]
SF Patch #1383857 from Sadrul
"This patch makes the display-msg signals to be emitted
from gtkconv instead of conversation. The display-msg
signals were not too useful before, especially because
they were being emitted right after writing-msg
signals, and not being emitted for messages being sent
at all.
This patch also makes necessary changes in the plugins,
and in Changelog.API. With this change, the notify
plugin can set the URGENT hint for a new received
message which creates a conversation.
marv and charkins seemed to think this was a good thing
to do."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 21 Dec 2005 21:48:38 +0000 |
parents | 434181b96f44 |
children | 366326fa9cb4 |
comparison
equal
deleted
inserted
replaced
12603:e4e47871c373 | 12604:71299d63801d |
---|---|
58 static void | 58 static void |
59 conversation_dragging_cb(GaimGtkWindow *source, GaimGtkWindow *destination) { | 59 conversation_dragging_cb(GaimGtkWindow *source, GaimGtkWindow *destination) { |
60 gaim_debug_info("gtk-signal-test", "conversation dragging cb\n"); | 60 gaim_debug_info("gtk-signal-test", "conversation dragging cb\n"); |
61 } | 61 } |
62 | 62 |
63 static gboolean | |
64 displaying_im_msg_cb(GaimAccount *account, GaimConversation *conv, | |
65 char **buffer, int flags, void *data) | |
66 { | |
67 gaim_debug_misc("gtk-signals test", "displaying-im-msg (%s, %s)\n", | |
68 gaim_conversation_get_name(conv), *buffer); | |
69 | |
70 return FALSE; | |
71 } | |
72 | |
73 static void | |
74 displayed_im_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, int flags, void *data) | |
75 { | |
76 gaim_debug_misc("gtk-signals test", "displayed-im-msg (%s, %s)\n", | |
77 gaim_conversation_get_name(conv), buffer); | |
78 } | |
79 | |
80 static gboolean | |
81 displaying_chat_msg_cb(GaimAccount *account, GaimConversation *conv, | |
82 char **buffer, int flags, void *data) | |
83 { | |
84 gaim_debug_misc("gtk-signals test", "displaying-chat-msg (%s, %s)\n", | |
85 gaim_conversation_get_name(conv), *buffer); | |
86 | |
87 return FALSE; | |
88 } | |
89 | |
90 static void | |
91 displayed_chat_msg_cb(GaimAccount *account, GaimConversation *conv, const char *buffer, int flags, void *data) | |
92 { | |
93 gaim_debug_misc("gtk-signals test", "displayed-chat-msg (%s, %s)\n", | |
94 gaim_conversation_get_name(conv), buffer); | |
95 } | |
96 | |
63 /************************************************************************** | 97 /************************************************************************** |
64 * Plugin stuff | 98 * Plugin stuff |
65 **************************************************************************/ | 99 **************************************************************************/ |
66 static gboolean | 100 static gboolean |
67 plugin_load(GaimPlugin *plugin) | 101 plugin_load(GaimPlugin *plugin) |
81 plugin, GAIM_CALLBACK(blist_drawing_tooltip_cb), NULL); | 115 plugin, GAIM_CALLBACK(blist_drawing_tooltip_cb), NULL); |
82 | 116 |
83 /* Conversations subsystem signals */ | 117 /* Conversations subsystem signals */ |
84 gaim_signal_connect(conv_handle, "conversation-dragging", | 118 gaim_signal_connect(conv_handle, "conversation-dragging", |
85 plugin, GAIM_CALLBACK(conversation_dragging_cb), NULL); | 119 plugin, GAIM_CALLBACK(conversation_dragging_cb), NULL); |
120 gaim_signal_connect(conv_handle, "displaying-im-msg", | |
121 plugin, GAIM_CALLBACK(displaying_im_msg_cb), NULL); | |
122 gaim_signal_connect(conv_handle, "displayed-im-msg", | |
123 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL); | |
124 gaim_signal_connect(conv_handle, "displaying-chat-msg", | |
125 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL); | |
126 gaim_signal_connect(conv_handle, "displayed-chat-msg", | |
127 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL); | |
86 | 128 |
87 return TRUE; | 129 return TRUE; |
88 } | 130 } |
89 | 131 |
90 static gboolean | 132 static gboolean |