GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

regarding gtkmozilla

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
cnu_sree
GTK+ Geek


Joined: 06 Oct 2006
Posts: 57

PostPosted: Wed Dec 20, 2006 7:48 am    Post subject: regarding gtkmozilla Reply with quote

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

PostPosted: Thu Dec 21, 2006 4:23 am    Post subject: Reply with quote

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: 135
Location: INDIA

PostPosted: Fri Dec 22, 2006 7:46 am    Post subject: yeah great! Reply with quote

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

PostPosted: Fri Dec 22, 2006 6:34 pm    Post subject: Reply with quote

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

PostPosted: Sat Dec 23, 2006 2:50 am    Post subject: Reply with quote

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

PostPosted: Sat Dec 23, 2006 10:23 am    Post subject: thank u i Reply with quote

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

PostPosted: Sat Dec 23, 2006 7:10 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP