changeset 14421:553bbd68387e

[gaim-migrate @ 17129] Print a "<AUTO-REPLY>" before the autoreply messages. Fix some earlier brain-damaged ifdefs. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 02 Sep 2006 19:29:06 +0000
parents c4a32405af68
children 84a480acb6ad
files console/gntconv.c console/libgnt/gntcolors.c console/libgnt/gntmain.c console/libgnt/gntwidget.h console/libgnt/gntwm.h
diffstat 5 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/console/gntconv.c	Sat Sep 02 18:55:27 2006 +0000
+++ b/console/gntconv.c	Sat Sep 02 19:29:06 2006 +0000
@@ -301,6 +301,10 @@
 		gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv),
 					gaim_utf8_strftime("(%H:%M:%S) ", localtime(&mtime)), GNT_TEXT_FLAG_DIM);
 
+	if (flags & GAIM_MESSAGE_AUTO_RESP)
+		gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv),
+					_("<AUTO-REPLY> "), GNT_TEXT_FLAG_BOLD);
+
 	if (who && *who && (flags & (GAIM_MESSAGE_SEND | GAIM_MESSAGE_RECV)))
 	{
 		char * name = NULL;
--- a/console/libgnt/gntcolors.c	Sat Sep 02 18:55:27 2006 +0000
+++ b/console/libgnt/gntcolors.c	Sat Sep 02 19:29:06 2006 +0000
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #ifdef HAVE_NCURSESW_INC
 #include <ncursesw/ncurses.h>
 #else
--- a/console/libgnt/gntmain.c	Sat Sep 02 18:55:27 2006 +0000
+++ b/console/libgnt/gntmain.c	Sat Sep 02 19:29:06 2006 +0000
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #ifdef HAVE_NCURSESW_INC
 #include <ncursesw/panel.h>
 #else
@@ -655,7 +657,7 @@
 	if (GNT_WIDGET_IS_FLAG_SET(win, GNT_WIDGET_NO_BORDER))
 		return;
 	
-	d = dupwin(win->window);
+	d = win->window;
 	gnt_widget_get_size(win, &w, &h);
 
 #define DECIDE(ch) (set ? ((ch) | A_REVERSE) : ((ch) & ~A_REVERSE))
@@ -677,7 +679,6 @@
 	}
 
 	wrefresh(win->window);
-	delwin(d);
 }
 
 static gboolean
--- a/console/libgnt/gntwidget.h	Sat Sep 02 18:55:27 2006 +0000
+++ b/console/libgnt/gntwidget.h	Sat Sep 02 19:29:06 2006 +0000
@@ -1,6 +1,8 @@
 #ifndef GNT_WIDGET_H
 #define GNT_WIDGET_H
 
+#include "config.h"
+
 #include <stdio.h>
 #include <glib.h>
 #include <glib-object.h>
--- a/console/libgnt/gntwm.h	Sat Sep 02 18:55:27 2006 +0000
+++ b/console/libgnt/gntwm.h	Sat Sep 02 19:29:06 2006 +0000
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #ifdef HAVE_NCURSESW_INC
 #include <ncursesw/panel.h>
 #else