Mercurial > pidgin
comparison finch/gntconv.c @ 17700:e0f7da938ad3
propagate from branch 'im.pidgin.pidgin' (head 234d50fbd0d7227e39d68d9dd3c21afc02b4fd01)
to branch 'im.pidgin.finch.workspaces' (head 1c8dc02b27984381f3c5c0c6c1f8c4bedfd8dd86)
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Fri, 27 Apr 2007 01:57:41 +0000 |
parents | 4999bbc52881 |
children | 373466e3151a |
comparison
equal
deleted
inserted
replaced
17698:56d2ae9cbb5c | 17700:e0f7da938ad3 |
---|---|
41 #include "gnt.h" | 41 #include "gnt.h" |
42 #include "gntbox.h" | 42 #include "gntbox.h" |
43 #include "gntentry.h" | 43 #include "gntentry.h" |
44 #include "gnttextview.h" | 44 #include "gnttextview.h" |
45 | 45 |
46 #define PREF_ROOT "/purple/gnt/conversations" | 46 #define PREF_ROOT "/finch/conversations" |
47 | 47 |
48 #include "config.h" | 48 #include "config.h" |
49 | 49 |
50 static void | 50 static void |
51 send_typing_notification(GntWidget *w, FinchConv *ggconv) | 51 send_typing_notification(GntWidget *w, FinchConv *ggconv) |
52 { | 52 { |
53 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); | 53 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); |
54 gboolean empty = (!text || !*text); | 54 gboolean empty = (!text || !*text); |
55 if (purple_prefs_get_bool("/purple/gnt/conversations/notify_typing")) { | 55 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) { |
56 PurpleConversation *conv = ggconv->active_conv; | 56 PurpleConversation *conv = ggconv->active_conv; |
57 PurpleConvIm *im = PURPLE_CONV_IM(conv); | 57 PurpleConvIm *im = PURPLE_CONV_IM(conv); |
58 if (!empty) { | 58 if (!empty) { |
59 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); | 59 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); |
60 | 60 |
379 notify = !!gnt_text_view_tag_change(GNT_TEXT_VIEW(ggconv->tv), "typing", NULL, TRUE); | 379 notify = !!gnt_text_view_tag_change(GNT_TEXT_VIEW(ggconv->tv), "typing", NULL, TRUE); |
380 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), "\n", GNT_TEXT_FLAG_NORMAL); | 380 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), "\n", GNT_TEXT_FLAG_NORMAL); |
381 | 381 |
382 /* Unnecessary to print the timestamp for delayed message */ | 382 /* Unnecessary to print the timestamp for delayed message */ |
383 if (!(flags & PURPLE_MESSAGE_DELAYED) && | 383 if (!(flags & PURPLE_MESSAGE_DELAYED) && |
384 purple_prefs_get_bool("/purple/gnt/conversations/timestamps")) | 384 purple_prefs_get_bool("/finch/conversations/timestamps")) |
385 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), | 385 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), |
386 purple_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM); | 386 purple_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM); |
387 | 387 |
388 if (flags & PURPLE_MESSAGE_AUTO_RESP) | 388 if (flags & PURPLE_MESSAGE_AUTO_RESP) |
389 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), | 389 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), |