changeset 2606:f00549786a9c

[gaim-migrate @ 2619] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 Oct 2001 07:03:08 +0000
parents ff9d9b4f7aa2
children e0d4a23aac89
files src/buddy.c src/prpl.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Thu Oct 25 06:09:53 2001 +0000
+++ b/src/buddy.c	Thu Oct 25 07:03:08 2001 +0000
@@ -1955,11 +1955,11 @@
 	style->font = gdk_font_ref(GTK_WIDGET(bs->label)->style->font);
 	if ((blist_options & OPT_BLIST_GREY_IDLERS) && (b->idle) && (t - b->idle >= 1200)) {
 		style->fg[GTK_STATE_NORMAL].red =
-		  (style->fg[GTK_STATE_NORMAL].red / 3) * 2 + (style->bg[GTK_STATE_NORMAL].red / 3);
+		  (style->fg[GTK_STATE_NORMAL].red / 2) + (style->bg[GTK_STATE_NORMAL].red / 2);
 		style->fg[GTK_STATE_NORMAL].green = 
-		  (style->fg[GTK_STATE_NORMAL].green / 3) * 2 + (style->bg[GTK_STATE_NORMAL].green / 3);
+		  (style->fg[GTK_STATE_NORMAL].green / 2) + (style->bg[GTK_STATE_NORMAL].green / 2);
 		style->fg[GTK_STATE_NORMAL].blue = 
-		  (style->fg[GTK_STATE_NORMAL].blue / 3) * 2 + (style->bg[GTK_STATE_NORMAL].blue / 3);
+		  (style->fg[GTK_STATE_NORMAL].blue / 2) + (style->bg[GTK_STATE_NORMAL].blue / 2);
 	}
 	gtk_widget_set_style(bs->label, style);
 	gtk_style_unref(style);
--- a/src/prpl.c	Thu Oct 25 06:09:53 2001 +0000
+++ b/src/prpl.c	Thu Oct 25 07:03:08 2001 +0000
@@ -404,7 +404,8 @@
 	} else if (mn->email_win) {
 		gtk_widget_destroy(mn->email_win);
 		return;
-	}
+	} else
+		return;
 
 	if (mn->email_win) {
 		gtk_label_set_text(GTK_LABEL(mn->email_label), buf);