Quoting Emile le Vivre <[EMAIL PROTECTED]> from ml.softs.gtk-gnutella.devel:
:Looks like someone added this to the GTK1 interface already.  Attached
:is a patch to add it to the GTK2 interface.  

OK, thanks.  I'm the one who updated GTK1.  I've started learning
to use glade, and I'm improving quickly. ;-)

As you have noticed, the GTK2 interface is now orphaned...  I will rely
on people taking care of updating it, since I don't use GTK2 myself.

:Note: I couldn't see what needed to be done to 'connect' it up inside
:the core so it's possible this patch isn't what you're looking for. 
:>From what I could tell the internal connections were already done.  All
:I did was add the checkboxes to the gui. 

Correct.  All the connections appear in settings_gui.c, which is common
to both GUI.   And some work is happening in xxx_gui_common.c, which is
also common.

:The widget names are: checkbutton_gnet_monitor_servents and
:checkbutton_gnet_monitor_ip as per the property names.
:
:Emile
:
:ps.  Servants is spelled with an 'A' not an 'E'.  I'm not sure if
:there's some reason for the incorrect spelling.  

"servEnt" is the correct spelling.  It's the contraction of "SERVer"
and "cliENT".

Note that I've also done some further modification in the GTK1 GUI that
would need propagation to GTK2: I've obsoleted mark_ignored and replaced
it with a combo, backed by the property "search_handle_ignored_files".
Again, all what is needed is a change via glade, all the connections
are here (and to obsolete--remove actually--the "mark_ignored" property).

Also I now count the amount of actively and passively queued entries, and
display them on the download pane.  See latest CVS for more information.
I haven't sent the notice of the changes yet because those were minor.
Again, all the connections are done, all what is needed is the update
of the glade file.

Finally, there is another new search property: "search_hide_downloaded"
which is a pure GUI prop, that has a checkbox in GTK1 "Hide downloaded files".

Look at settings_gui.c in the property_map[] array to see how to name
the widgets.  For instance, you will see this:

    {
        get_main_window,
        PROP_SEARCH_HIDE_DOWNLOADED,
        update_togglebutton,
        TRUE,
        "checkbutton_search_hide_downloaded",
        FREQ_UPDATES, 0
    },

which means that the checkbox must be named

        "checkbutton_search_hide_downloaded"

in glade for it to work.  Again, all the connections are made in the core
and common parts for it to work directly.

Raphael


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to