Re: Gtk+ Integration with Webkit

2008-09-30 Thread Arx Cruz
Ephiphany now support webkit
Check this out:
http://arstechnica.com/journals/linux.ars/2007/07/26/using-epiphany-with-webkit

2008/9/30 Salvatore De Paolis <[EMAIL PROTECTED]>

> On Tue, 30 Sep 2008 23:23:41 +0300
> "Mackram Raydan" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> > Hey All,
> >
> > I am working on a small app that needs some integration with an HTML
> layout
> > engine. I have read across the net that there is work to integrate webkit
> > with Gtk+ but cant seem to find some good explanation of the integration
> or
> > some quick tutorials. I want to do the project in a fast time frame but
> > would prefer to stick with Gtk rather than going with something like Qt
> > which supports webkit directly (or so I hear).
> Ports exists for Qt and GTK+ as well...
> As far I know, there aren't tutorial about it, but you can take a look at
> sources of GtkLauncher (included in webkit sources) or the web browser
> midori
> if you want to build you app in C.
> > PS I am thinking of writing the application in C or Lisp but if webkit
> > integration is already done for python then I might take that route, so
> do
> > let me know
> If you would like to go with python instead, you would check here
> http://code.google.com/p/pywebkitgtk/
>
> Regards
> Salvatore
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



-- 
"A fé remove montanhas, mas eu prefiro a dinamite"
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+ Integration with Webkit

2008-09-30 Thread Salvatore De Paolis
On Tue, 30 Sep 2008 23:23:41 +0300
"Mackram Raydan" <[EMAIL PROTECTED]> wrote:

Hi,
> Hey All,
> 
> I am working on a small app that needs some integration with an HTML layout
> engine. I have read across the net that there is work to integrate webkit
> with Gtk+ but cant seem to find some good explanation of the integration or
> some quick tutorials. I want to do the project in a fast time frame but
> would prefer to stick with Gtk rather than going with something like Qt
> which supports webkit directly (or so I hear).
Ports exists for Qt and GTK+ as well...
As far I know, there aren't tutorial about it, but you can take a look at
sources of GtkLauncher (included in webkit sources) or the web browser midori
if you want to build you app in C.
> PS I am thinking of writing the application in C or Lisp but if webkit
> integration is already done for python then I might take that route, so do
> let me know
If you would like to go with python instead, you would check here
http://code.google.com/p/pywebkitgtk/

Regards
Salvatore
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Gtk+ Integration with Webkit

2008-09-30 Thread Mackram Raydan
Hey All,

I am working on a small app that needs some integration with an HTML layout
engine. I have read across the net that there is work to integrate webkit
with Gtk+ but cant seem to find some good explanation of the integration or
some quick tutorials. I want to do the project in a fast time frame but
would prefer to stick with Gtk rather than going with something like Qt
which supports webkit directly (or so I hear).

Can anyone provide some guidance? Appreciate any help that you can send my
way.

PS I am thinking of writing the application in C or Lisp but if webkit
integration is already done for python then I might take that route, so do
let me know

Regards,

Mackram Raydan

Website: www.trailoflight.net
"An invasion of armies can be resisted, but not an idea whose time has
come." Victor Hugo
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: URI's

2008-09-30 Thread Liam R E Quin
On Tue, 2008-09-30 at 13:19 -0600, Kevin DeKorte wrote:

> Ok, thanks for the info. Some macros like G_IS_URI or something similar
> would have been nice, but maybe I can work out some code using the
> g_filename_to_uri and g_filename_from_uri functions to determine what
> value I have.

What are you trying to do? What if you get a telnet: or mailto: URI?
What about data: ?

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: URI's

2008-09-30 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

A. Walton wrote:
> On Tue, Sep 30, 2008 at 1:24 PM, Kevin DeKorte <[EMAIL PROTECTED]> wrote:
> Is there a glib function to determine if a gchar* is a valid URI or not?
> 
> 
>> No. See the following bugs:
>> http://bugzilla.gnome.org/show_bug.cgi?id=489862
>> http://bugzilla.gnome.org/show_bug.cgi?id=550110

Ok, thanks for the info. Some macros like G_IS_URI or something similar
would have been nice, but maybe I can work out some code using the
g_filename_to_uri and g_filename_from_uri functions to determine what
value I have.

Kevin

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjie7sACgkQ6w2kMH0L1dEvBgCeOapf1Vckc3A+P/sf+9Bvy/Ww
YXkAoJdD5LQmf/WKb2yDwFrUcp0O+YlO
=03Gu
-END PGP SIGNATURE-
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: URI's

2008-09-30 Thread A. Walton
On Tue, Sep 30, 2008 at 1:24 PM, Kevin DeKorte <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Is there a glib function to determine if a gchar* is a valid URI or not?
>

No. See the following bugs:
http://bugzilla.gnome.org/show_bug.cgi?id=489862
http://bugzilla.gnome.org/show_bug.cgi?id=550110

-A. Walton

> Thanks,
>
> Kevin
> - --
> Get my public GnuPG key from
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFI4mC56w2kMH0L1dERAho1AJwOnG/zVqmjDMJF049ScZhV9rImwgCfUjJ8
> 9bLcuAtSXEECM1OZk/Y7pvs=
> =cap7
> -END PGP SIGNATURE-
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


glib question about g_io_add_watch_full

2008-09-30 Thread Vasiliy G Tolstov
i'm try to execute /etc/init.d/sshd status with g_spawn_async_with_pipes
and g_io_add_watch_full

spawn_asycn works, but g_io_add_watch_full does not, where is my
mistake, can You help me?

char *argv[3];
argv[0] = "/etc/init.d/sshd";
argv[1] = "status";
argv[2] = NULL;
exec (argv);


gboolean exec (gchar **argv) {
GIOChannel *channel_out;
GIOChannel *channel_in;
GIOChannel *channel_err;

gint std_in;
gint std_out;
gint std_err;
guint std_in_out;
guint std_in_err;
GError *error = NULL;

channel_out = g_io_channel_unix_new(1);
channel_err = g_io_channel_unix_new(2);

if (g_spawn_async_with_pipes ("/", argv, NULL,
G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, NULL, NULL, &std_in, &std_out,
&std_err, &error)) {
std_in_out = g_io_add_watch_full(channel_out,
G_PRIORITY_LOW, GIOCondition (G_IO_IN | G_IO_OUT | G_IO_PRI | G_IO_ERR |
G_IO_HUP | G_IO_NVAL), exec_read, NULL, NULL);
std_in_err = g_io_add_watch_full(channel_err,
G_PRIORITY_LOW, GIOCondition (G_IO_IN | G_IO_OUT | G_IO_PRI | G_IO_ERR |
G_IO_HUP | G_IO_NVAL), exec_read, NULL, NULL);
std::cerr << "spawn!" << std::endl;
}
else {
std::cerr << "FUCK" << std::endl;
std::cerr << error->message << std::endl;
}
return 0;
}


gboolean exec_read (GIOChannel *iochannel, GIOCondition condition,
gpointer data) {
gchar *buffer = NULL;
gsize bytes = 0;
GError *error = NULL;
g_io_channel_set_encoding (iochannel, NULL, NULL);

if (condition ) {
if (g_io_channel_read_to_end (iochannel, &buffer,
&bytes, &error) == G_IO_STATUS_NORMAL ) {
std::cerr << buffer << std::endl;
std::cerr << "error" << std::endl;
std::cerr << error->message << std::endl;
}
else {
std::cerr << "error" << std::endl;
std::cerr << error->message << std::endl;
std::cerr << buffer << std::endl;
}
}
g_io_channel_shutdown (iochannel, TRUE, NULL);
g_io_channel_unref (iochannel);
return 0;
}


-- 
Vasiliy G Tolstov <[EMAIL PROTECTED]>
Selfip.Ru

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


URI's

2008-09-30 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there a glib function to determine if a gchar* is a valid URI or not?

Thanks,

Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFI4mC56w2kMH0L1dERAho1AJwOnG/zVqmjDMJF049ScZhV9rImwgCfUjJ8
9bLcuAtSXEECM1OZk/Y7pvs=
=cap7
-END PGP SIGNATURE-
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list