|
|
| Author |
Message |
|
|
cnu_sree GTK+ Geek
Joined: 06 Oct 2006 Posts: 57
|
Posted: Wed Dec 20, 2006 7:48 am Post subject: regarding gtkmozilla |
|
|
wht i need ai running a html page using gtkmozilla.
when net is not connected
we have to catch that siganl
any signal is available for this
i search this
i found in vc++ is isdestiinationreachable() function
any function in gtk will do the samething
thank u
inadvance.
sree |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 497 Location: Portland, OR USA
|
Posted: Thu Dec 21, 2006 4:23 am Post subject: |
|
|
Well, from what I can tell, the gtkmozilla is pretty old. You may want to look into using GtkMozEmbed http://www.mozilla.org/unix/gtk-embedding.html. I haven't used it myself, however, it looks like you can simply connect to the "net_state" signal and check the 'signal' variable to determine why the file cannot be loaded:
GTK_MOZ_EMBED_STATUS_FAILED_DNS
GTK_MOZ_EMBED_STATUS_FAILED_CONNECT
GTK_MOZ_EMBED_STATUS_FAILED_TIMEOUT
GTK_MOZ_EMBED_STATUS_FAILED_USERCANCELED
GTK_MOZ_EMBED_STATUS_PROXY_FAILED |
|
| Back to top |
|
 |
ramesh GTK+ Guru
Joined: 16 Nov 2006 Posts: 142 Location: INDIA
|
Posted: Fri Dec 22, 2006 7:46 am Post subject: yeah great! |
|
|
thank you
but how can use this commands programatically
can you please post an example program regarding this.
i hope you can solve my problem..
please show me the way |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 497 Location: Portland, OR USA
|
Posted: Fri Dec 22, 2006 6:34 pm Post subject: |
|
|
| Unfortunately, I do not know if I have time to do that. I'm sorry.I suggest you do a sourceforge.net/google search and try to find a project using it and look at the source code. |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
Posted: Sat Dec 23, 2006 2:50 am Post subject: |
|
|
| I would recommend just typing one of the enumeration values into koders.com or the google code search. You can find premade code because people don't always have the time to write examples for you. |
|
| Back to top |
|
 |
cnu_sree GTK+ Geek
Joined: 06 Oct 2006 Posts: 57
|
Posted: Sat Dec 23, 2006 10:23 am Post subject: thank u i |
|
|
i tried like this
if handle the siganl
and in this function
i worte the folllowing commands
if (status == GTK_MOZ_EMBED_STATUS_FAILED_DNS ||status == GTK_MOZ_EMBED_STATUS_FAILED_CONNECT ||status == GTK_MOZ_EMBED_STATUS_FAILED_TIMEOUT ||status==GTK_MOZ_EMBED_STATUS_FAILED_USERCANCELED)
g_print("*********************netdown******************************* \n");
else
g_print("***************************netup************************** \n");
but my problem is
if deactivate the net using neat
then also it is showing netup
i can't understand y?
so please help me
thank u
sree |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 497 Location: Portland, OR USA
|
Posted: Sat Dec 23, 2006 7:10 pm Post subject: |
|
|
| I'm assuming that you have to use that within the "net-state" signal which I'm also assuming will only be triggered when you try to load a URI in the gtkMozEmbed widget. |
|
| Back to top |
|
 |
|