GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Oct 25, 2014 10:12 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: regarding gtkmozilla
PostPosted: Wed Dec 20, 2006 7:48 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 21, 2006 4:23 am 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
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

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject: yeah great!
PostPosted: Fri Dec 22, 2006 7:46 am 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 22, 2006 6:34 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
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.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 2:50 am 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject: thank u i
PostPosted: Sat Dec 23, 2006 10:23 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 7:10 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
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.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group