Red and green entries in searches?

View: New views
7 Messages — Rating Filter:   Alert me  

Red and green entries in searches?

by Erik Max Francis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I upgraded to 0.96.4 a little while ago and noticed some of the search
results end up being colored red, or in some very rare cases, what
appears to be green.  I checked the documentation but didn't see
anything obvious regarding what this meant.  Any ideas?

Happy Thanksgiving!

--
Erik Max Francis && max@... && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   Being in love for real / It ain't like a movie screen
    -- India Arie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: Red and green entries in searches?

by Raphael Manfredi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting Erik Max Francis <max@...> from ml.softs.gtk-gnutella.users:
:I upgraded to 0.96.4 a little while ago and noticed some of the search
:results end up being colored red, or in some very rare cases, what
:appears to be green.  I checked the documentation but didn't see
:anything obvious regarding what this meant.  Any ideas?

Black is default.
Dark red is definite spam.
Bright red is probably spam.
Blue signals something "marked" by user filters.
Green signals something you're downloading.
Gray signals "ignored".
Indigo signals a result coming from an hostile host.
Marroon flags result that were unrequested but delivered nonetheless via OOB.

The choice of colors is not ideal on all screens and for all color temperatures.
For instance, on my screen at 7000K, I can hardly distinguish Indigo from Blue.
It's also a matter of taste.

Raphael

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: Red and green entries in searches?

by Christian Biere :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Erik Max Francis wrote:
> I upgraded to 0.96.4 a little while ago and noticed some of the search
> results end up being colored red, or in some very rare cases, what
> appears to be green.  I checked the documentation but didn't see
> anything obvious regarding what this meant.  Any ideas?

Results which are coloured red refer to items of a set which contained one more
or items assumed to be spam. Results arrive in sets of one or more items
instead of strictly single items to reduce the overhead.  Such results with red
items frequently arrive from infected hosts or otherwise users which take not
much care about the quality/integrity of their library. The file itself however
may be fine. Consider it a warning, if you're in doubt about the nature or
quality of the result.

The items identified as spam are hidden by default. You cannot make these or
any other filtered results visible retrospectively. You can disable spam
filtering of your results by un-ticking the relevant box under "General search
settings" below the search results, if you don't trust the filter or are simply
curious. You'll notice even more colours this way.

Results which are coloured green indicate a file that is or was in the process
of being downloaded when the result arrived. That means old results don't
change their colour once the associated file has been fully downloaded. You
won't see any green results if you opt for hiding them under "General search
settings".

> Happy Thanksgiving!

http://icanhascheezburger.com/2007/11/22/happee-fangsgivings/

--
1000 octets   = 1 ko = 1 kilooctet; 1024 octets   = 1 Kio = 1 kibioctet
1000^2 octets = 1 Mo = 1 megaoctet; 1024^2 octets = 1 Mio = 1 mebioctet
1000^3 octets = 1 Go = 1 gigaoctet; 1024^3 octets = 1 Gio = 1 gibioctet

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: Red and green entries in searches?

by wwp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Raphael,


On Thu, 22 Nov 2007 22:55:52 +0000 (UTC) Raphael_Manfredi@... (Raphael Manfredi) wrote:

> Quoting Erik Max Francis <max@...> from ml.softs.gtk-gnutella.users:
> :I upgraded to 0.96.4 a little while ago and noticed some of the search
> :results end up being colored red, or in some very rare cases, what
> :appears to be green.  I checked the documentation but didn't see
> :anything obvious regarding what this meant.  Any ideas?
>
> Black is default.
> Dark red is definite spam.
> Bright red is probably spam.
> Blue signals something "marked" by user filters.
> Green signals something you're downloading.
> Gray signals "ignored".
> Indigo signals a result coming from an hostile host.
> Marroon flags result that were unrequested but delivered nonetheless via OOB.
>
> The choice of colors is not ideal on all screens and for all color temperatures.
> For instance, on my screen at 7000K, I can hardly distinguish Indigo from Blue.
> It's also a matter of taste.
Yes, particularly w/ dark gtk themes. IIRC we had this discussion on IRC
months ago, and I had to do tiny changes to the code to better fit
my colors (see below), but I wonder if that's still worth.


Index: src/ui/gtk/search_common.c
===================================================================
--- src/ui/gtk/search_common.c  (revision 15010)
+++ src/ui/gtk/search_common.c  (working copy)
@@ -131,7 +131,10 @@
 gui_color_get(const enum gui_color id)
 {
        g_assert((guint) id <= NUM_GUI_COLORS);
-       return &colors[(guint) id].color;
+       if (id == GUI_COLOR_DEFAULT)
+               return NULL;
+       else
+               return &colors[(guint) id].color;
 }

 static void
Index: src/ui/gtk/gtk1/search.c
===================================================================
--- src/ui/gtk/gtk1/search.c    (revision 15010)
+++ src/ui/gtk/gtk1/search.c    (working copy)
@@ -1246,7 +1246,11 @@
                gtk_ctree_move(ctree, auto_node, parent, sibling);
        }

-       gtk_ctree_node_set_foreground(ctree, node, gui_color_get(color));
+       {
+               GdkColor *c = gui_color_get(color);
+               if (c)
+                       gtk_ctree_node_set_foreground(ctree, node, c);
+       }
 }

 /**


Regards,

--
wwp


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

signature.asc (196 bytes) Download Attachment

Re: Red and green entries in searches?

by Erik Max Francis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Raphael Manfredi wrote:

> Quoting Erik Max Francis <max@...> from ml.softs.gtk-gnutella.users:
> :I upgraded to 0.96.4 a little while ago and noticed some of the search
> :results end up being colored red, or in some very rare cases, what
> :appears to be green.  I checked the documentation but didn't see
> :anything obvious regarding what this meant.  Any ideas?
>
> Black is default.
> Dark red is definite spam.
> Bright red is probably spam.
> Blue signals something "marked" by user filters.
> Green signals something you're downloading.
> Gray signals "ignored".
> Indigo signals a result coming from an hostile host.
> Marroon flags result that were unrequested but delivered nonetheless via OOB.
>
> The choice of colors is not ideal on all screens and for all color temperatures.
> For instance, on my screen at 7000K, I can hardly distinguish Indigo from Blue.
> It's also a matter of taste.

Thanks a lot for the answer, that was really helpful.

--
Erik Max Francis && max@... && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   There are not fifty ways of fighting, there is only one: to be the
    conqueror. -- Andrew Malraux, 1937

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: Red and green entries in searches?

by Bill Pringlemeir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 22 Nov 2007, Raphael_Manfredi@... wrote:

> The choice of colors is not ideal on all screens and for all color
> temperatures.  For instance, on my screen at 7000K, I can hardly
> distinguish Indigo from Blue.  It's also a matter of taste.

I updated the manual in SVN and the web page,

  http://gtk-gnutella.sourceforge.net/manual/searching.html

Are the actually RGB color HEX colors somewhere?

Thanks,
Bill.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users

Re: Red and green entries in searches?

by Bill Pringlemeir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 28 Nov 2007, bpringle@... wrote:

> I updated the manual in SVN and the web page,

> http://gtk-gnutella.sourceforge.net/manual/searching.html

> Are the actually RGB color HEX colors somewhere?

Previously mr gtk-gnutella-cvs-request said:

Modified: trunk/gtk-gnutella/src/ui/gtk/search_common.c
===================================================================
--- trunk/gtk-gnutella/src/ui/gtk/search_common.c 2007-11-21 22:52:12 UTC (rev 15009)
+++ trunk/gtk-gnutella/src/ui/gtk/search_common.c 2007-11-22 22:54:22 UTC (rev 15010)
@@ -117,14 +117,14 @@
  const enum gui_color id;
  GdkColor color;
 } colors[] = {
- { "#000000", GUI_COLOR_DEFAULT, { 0, 0, 0, 0 } },

Thank you Mr. gtk-gnutella-cvs-request, you are a fine human bean.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
gtk-gnutella-users mailing list
gtk-gnutella-users@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-users