[GnomeMeeting-devel-list] Re: Network interface resets when offline



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok.

You create the "Network Interface"-subsection with:

subsection = gnome_prefs_subsection_new (prefs_window,
container,_("Network Interface"), 1, 2);

in "static void gm_pw_init_network_page()" .

When someone clicks "Network interface" in the subsection-tree "static
void tree_selection_changed_cb()" is called.

Right so far?

You need to add a callback that is activated when our subsection is shown.
Exactly when "gtk_notebook_set_current_page (GTK_NOTEBOOK
(gpw->notebook), page);" is called for our "Network interface"-subsection.

In this callback you init the "Listen on" selection with:

ifaces = GnomeMeeting::Process ()->GetInterfaces ();
array = ifaces.ToCharArray ();
pw->interface = gnome_prefs_string_option_menu_new (subsection,
_("Listen on:"), array, PROTOCOLS_KEY "interface", _("The network
interface to listen on"), 0);
free (array);

Greetings,
Jan Schiefer!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCgMqWzC00UKXFdVcRAqSDAJ427m93E0tvEJecQ/7cK8rRCxaArACfbChX
FMar5xHKFvM2zWym+fMpTUs=
=zYGq
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]