changeset 2592:f194dd8250d4

[gaim-migrate @ 2605] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 24 Oct 2001 01:42:48 +0000
parents b771cbe7e161
children 5ba9ef368b8e
files ChangeLog TODO src/buddy.c src/gaim.h src/gaimrc.c src/prefs.c
diffstat 6 files changed, 22 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 23 21:39:44 2001 +0000
+++ b/ChangeLog	Wed Oct 24 01:42:48 2001 +0000
@@ -20,6 +20,7 @@
 	  (thanks Ben Miller)
 	* When someone adds you to their buddy list, it asks if you want
 	  to add them as well (Yahoo, ICQ, and MSN) (thanks Nathan Walp)
+	* Option to grey idle buddies (thanks Nathan Walp)
 
 version 0.46 (10/18/2001):
 	* New applet icons (courtesy David Raeman)
--- a/TODO	Tue Oct 23 21:39:44 2001 +0000
+++ b/TODO	Wed Oct 24 01:42:48 2001 +0000
@@ -79,7 +79,6 @@
 Future Plugins? :
 	ICQ through Oscar plugin (ICQ2000) (requires hacking libfaim :-/)
 		this would allow us to send SMS messages.
-	Hotline (Or is this a waste of time?.  Ill decide soon enough, heh)
 
 ----
 THE UIS:
--- a/src/buddy.c	Tue Oct 23 21:39:44 2001 +0000
+++ b/src/buddy.c	Wed Oct 24 01:42:48 2001 +0000
@@ -1920,6 +1920,7 @@
 	time_t t;
 	int ihrs, imin;
 	struct buddy *b;
+	GtkStyle *style;
 
 	char infotip[2048];
 	char warn[256];
@@ -1948,6 +1949,20 @@
 	if (blist_options & OPT_BLIST_SHOW_IDLETIME)
 		gtk_widget_show(bs->idle);
 
+	style = gtk_style_new();
+	gdk_font_unref(style->font);
+	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].green = 
+		  (style->fg[GTK_STATE_NORMAL].green / 3) * 2 + (style->bg[GTK_STATE_NORMAL].green / 3);
+		style->fg[GTK_STATE_NORMAL].blue = 
+		  (style->fg[GTK_STATE_NORMAL].blue / 3) * 2 + (style->bg[GTK_STATE_NORMAL].blue / 3);
+	}
+	gtk_widget_set_style(bs->label, style);
+	gtk_style_unref(style);
+
 	/* now we do the tooltip */
 	if (b->signon) {
 		char *stime = sec_to_text(t - b->signon +
--- a/src/gaim.h	Tue Oct 23 21:39:44 2001 +0000
+++ b/src/gaim.h	Wed Oct 24 01:42:48 2001 +0000
@@ -211,6 +211,7 @@
 #define OPT_BLIST_NO_BUTTONS		0x00000080
 #define OPT_BLIST_NO_MT_GRP		0x00000100
 #define OPT_BLIST_SHOW_WARN		0x00000200
+#define OPT_BLIST_GREY_IDLERS		0x00000400
 
 extern guint convo_options;
 #define OPT_CONVO_ENTER_SENDS		0x00000001
--- a/src/gaimrc.c	Tue Oct 23 21:39:44 2001 +0000
+++ b/src/gaimrc.c	Wed Oct 24 01:42:48 2001 +0000
@@ -769,6 +769,10 @@
 
 	}
 
+	/* this is where we do bugs and compatibility stuff */
+	if (!(sound_options & (OPT_SOUND_BEEP | OPT_SOUND_ESD | OPT_SOUND_NORMAL | OPT_SOUND_NAS | OPT_SOUND_ARTSC)))
+		sound_options |= OPT_SOUND_ESD | OPT_SOUND_NORMAL | OPT_SOUND_NAS | OPT_SOUND_ARTSC;
+
 	if (conv_size.width == 0 &&
 	    conv_size.height == 0 &&
 	    conv_size.entry_height == 0) {
--- a/src/prefs.c	Tue Oct 23 21:39:44 2001 +0000
+++ b/src/prefs.c	Wed Oct 24 01:42:48 2001 +0000
@@ -611,6 +611,7 @@
 	gtk_widget_show(vbox);
 
 	gaim_button(_("Show idle times"), &blist_options, OPT_BLIST_SHOW_IDLETIME, vbox);
+	gaim_button(_("Grey idle buddies"), &blist_options, OPT_BLIST_GREY_IDLERS, vbox);
 
 	gtk_widget_show(prefdialog);
 }