From: Eric W. <war...@us...> - 2001-10-24 01:42:50
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv32728/src Modified Files: buddy.c gaim.h gaimrc.c prefs.c Log Message: hi Index: buddy.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/buddy.c,v retrieving revision 1.258 retrieving revision 1.259 diff -u -d -r1.258 -r1.259 --- buddy.c 2001/10/23 08:47:11 1.258 +++ buddy.c 2001/10/24 01:42:47 1.259 @@ -1920,6 +1920,7 @@ time_t t; int ihrs, imin; struct buddy *b; + GtkStyle *style; char infotip[2048]; char warn[256]; @@ -1947,6 +1948,20 @@ gtk_label_set(GTK_LABEL(bs->idle), ""); 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) { Index: gaim.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/gaim.h,v retrieving revision 1.287 retrieving revision 1.288 diff -u -d -r1.287 -r1.288 --- gaim.h 2001/10/23 08:06:09 1.287 +++ gaim.h 2001/10/24 01:42:47 1.288 @@ -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 Index: gaimrc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gaimrc.c,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- gaimrc.c 2001/10/23 04:05:52 1.87 +++ gaimrc.c 2001/10/24 01:42:48 1.88 @@ -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) { Index: prefs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/prefs.c,v retrieving revision 1.189 retrieving revision 1.190 diff -u -d -r1.189 -r1.190 --- prefs.c 2001/10/23 04:18:07 1.189 +++ prefs.c 2001/10/24 01:42:48 1.190 @@ -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); } |