Mercurial > pidgin.yaz
comparison finch/gntconv.c @ 18068:0b3d6ea61760
propagate from branch 'im.pidgin.pidgin' (head 4b50880d8517570eaa67d4cd9d88c5934bb832f1)
to branch 'im.pidgin.pidgin.2.1.0' (head fefd59692d4177b91d52f6d71b1565b76c88725d)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 14:48:33 +0000 |
parents | 289ac53f753f |
children | f63b3a23280d |
comparison
equal
deleted
inserted
replaced
17782:5eebb9b24e30 | 18068:0b3d6ea61760 |
---|---|
62 | 62 |
63 static void | 63 static void |
64 send_typing_notification(GntWidget *w, FinchConv *ggconv) | 64 send_typing_notification(GntWidget *w, FinchConv *ggconv) |
65 { | 65 { |
66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); | 66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); |
67 gboolean empty = (!text || !*text); | 67 gboolean empty = (!text || !*text || (*text == '/')); |
68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) { | 68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) { |
69 PurpleConversation *conv = ggconv->active_conv; | 69 PurpleConversation *conv = ggconv->active_conv; |
70 PurpleConvIm *im = PURPLE_CONV_IM(conv); | 70 PurpleConvIm *im = PURPLE_CONV_IM(conv); |
71 if (!empty) { | 71 if (!empty) { |
72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); | 72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); |
311 | 311 |
312 static void | 312 static void |
313 get_info_cb(GntMenuItem *item, gpointer ggconv) | 313 get_info_cb(GntMenuItem *item, gpointer ggconv) |
314 { | 314 { |
315 FinchConv *ggc = ggconv; | 315 FinchConv *ggc = ggconv; |
316 PurpleNotifyUserInfo *info = purple_notify_user_info_new(); | 316 finch_retrieve_user_info(purple_conversation_get_gc(ggc->active_conv), |
317 purple_notify_user_info_add_pair(info, _("Information"), _("Retrieving...")); | |
318 purple_notify_userinfo(ggc->active_conv->account->gc, purple_conversation_get_name(ggc->active_conv), info, NULL, NULL); | |
319 purple_notify_user_info_destroy(info); | |
320 | |
321 serv_get_info(purple_conversation_get_gc(ggc->active_conv), | |
322 purple_conversation_get_name(ggc->active_conv)); | 317 purple_conversation_get_name(ggc->active_conv)); |
323 } | 318 } |
324 | 319 |
325 static void | 320 static void |
326 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv) | 321 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv) |