Re: g_spawn_async_with_pipes problems

2005-08-03 Thread Stefan Kost
Hi John, Hello people. I call an external program, like this: ok = g_spawn_async_with_pipes("/tmp", argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &std_in, &std_out, &std_err, &error); For both the std_o

GLib GOption usage with GNOME

2005-08-03 Thread Hazael Maldonado Torres
Hi guys I have been looking for a glib-related mailing list and I could find one therefore I am asking here the following. As far as I can see GNOME uses popt to handle commandline options. Nowadays GLib includes their own commandline option parser called GOption. The function gnome_program_

Format/Encoding of Drag-and-drop data

2005-08-03 Thread Gaurav Jain
Hi, I'm trying to support drag-and-drop functionality in which any file can be dragged from the explorer, such as Nautilus, and dropped onto my application. My application is supposed to try and open this file. I need to support ANY file name, including complex scripts, so I need to know the for

Query - Hello-world-gtk program execution using scratchbox cross compilation

2005-08-03 Thread Hasmeet Bedi
Hello Everybody i want to execute simple Hello-world-gtk (GUI) program for ARM. I have cross compiled it for ARM and got the executable.. but as i execute it on target ..it gives error like this ./Hello:error while loading shared libraries:libgtk-x11-2.0.so.o: cannot open shared object I have tri

Web Browser

2005-08-03 Thread Bhatnagar Achindra
How can I make a web browser in GTK -- Bhatnagar Achindra Towards Invincibility ! www.mcp-achindra.it.tt "All men seek one goal: success or happiness. The only way to achieve true success is to express yourself completely in service to society. First, have a d

Re: Format/Encoding of Drag-and-drop data

2005-08-03 Thread Damon Chaplin
On Wed, 2005-08-03 at 16:05 +0530, Gaurav Jain wrote: > Hi, > > I'm trying to support drag-and-drop functionality in which any file > can be dragged from the explorer, such as Nautilus, and dropped onto > my application. My application is supposed to try and open this file. > > I need to support

Re: Query - Hello-world-gtk program execution using scratchbox cross compilation

2005-08-03 Thread Toni Willberg
Hi. This question is more in scope of the Scratchbox.org project, forwarding your question there. - Toni On Wed, 2005-08-03 at 11:43 +0100, Hasmeet Bedi wrote: > Hello Everybody > > i want to execute simple Hello-world-gtk (GUI) program > for ARM. > I have cross compiled it for ARM and got the

Re: Web Browser

2005-08-03 Thread André Pedralho
You may use the mozilla api for this: GtkMozEmbed. It provides a lot of functionalities you will need to develop it. Take a look at http://www.mozilla.org/unix/gtk-embedding.html However, you can use the GtkWebcore instead of GtkMozEmbed. We have developed one browser wich you can choose between t

Re: GdkEvent --> XEvent

2005-08-03 Thread Tristan Van Berkom
Brian J. Tarricone wrote: [...] I'm relatively sure the XEvent is indeed "lost" by the time you see it in your event handler. If you'll look at the various XEvent and GdkEvent structures, however, you'll note that they're fairly similar (I think it's safe to assume GdkEvent was originally based

Re: GdkEvent --> XEvent

2005-08-03 Thread Tor Lillqvist
Tristan Van Berkom writes: > Although I wonder if xlib will let me snoop the event queue in a > convenient way) GDK lets you do that. Install a global GDK event filter. It's called for each XEvent received. --tml ___ gtk-app-devel-list mailing list g

Re: GdkEvent --> XEvent

2005-08-03 Thread Tristan Van Berkom
Tor Lillqvist wrote: Tristan Van Berkom writes: > Although I wonder if xlib will let me snoop the event queue in a > convenient way) GDK lets you do that. Install a global GDK event filter. It's called for each XEvent received. Wow, I missed that: http://developer.gnome.org/doc/API/2.0/gdk/g

XImage -> GdkImage

2005-08-03 Thread Ken Siersma
Is there an easy way to convert an XImage to a GdkImage? Thanks. Ken -- Ken Siersma, Software Engineer EKK, Inc. phone: (248) 624-9957 fax: (248) 624-7158 http://www.ekkinc.com -- "Our lives begin to end the day we become silent about things that matter." -MLK Jr. __

Re: XImage -> GdkImage

2005-08-03 Thread Tristan Van Berkom
Ken Siersma wrote: Is there an easy way to convert an XImage to a GdkImage? /* Draw your image to a Pixmap (now has an XID and is an X resource) */ XPutImage (); /* Make a Gdk representation of your X resource */ gdk_pixmap_foreign_new (); /* Get GdkImage */ gdk_drawabe_get_image (); Cheers

query- which one to opt ?

2005-08-03 Thread Hasmeet Bedi
Hello everybody I want to develop Mobile related GUI.. I have a doubt ..Which one is better to use..GTK or QTopia?? Let me know if any other better than these is available.. Thanx Hazzy ___ Too much spam in your inbox? Yaho

I don't think I need a custom widget

2005-08-03 Thread Greg Breland
I want to take various existing GTK widgets and draw boxes around them with handles so they can be interactively sized. The only documentation of this I can find is the GTK manual section on custom widgets and the gtkdial example. However, after reading both I think a full blown custom widget is

Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: I'm sure I can handle the display part without a creating a custom widget, but can I handle the interactive part without resorting to creating a new widget based on the GTK widget? I have about 26 different widgets I need to do this for and I don't want to have to create 26 c

text cursor invisible in empty gtk_entry

2005-08-03 Thread Bill Medland
Can someone point me in the right direction please. I have an application that contains a lot of gtk_entry widgets; basically there is a lot of text entry. Suppose the keyboard focus moves from a gtk_entry that contains text to one that does not yet contain any text. The previous entry still

Re: XImage -> GdkImage

2005-08-03 Thread Ken Siersma
Tristan Van Berkom wrote: Ken Siersma wrote: Is there an easy way to convert an XImage to a GdkImage? /* Draw your image to a Pixmap (now has an XID and is an X resource) */ XPutImage (); /* Make a Gdk representation of your X resource */ gdk_pixmap_foreign_new (); /* Get GdkImage */ gdk_

Re: g_spawn_async_with_pipes problems

2005-08-03 Thread John Coppens
On Wed, 03 Aug 2005 09:33:52 +0200 Stefan Kost <[EMAIL PROTECTED]> wrote: > Hi John, r Google without success. > > > Better ask Dr. Koders: > http://www.koders.com/?s=g_spawn_async_with_pipes&_%3Abtn=Search&_%3Ala=C&_%3Ali=* > > I glanced of the first page and the all seems to use less than all

Label Alignment

2005-08-03 Thread Kevin DeKorte
I'm adding a GTKLabel into a GTKTable Doing this conf_label = gtk_label_new(_("Cache Size:")); gtk_table_attach_defaults(GTK_TABLE(conf_table), conf_label, 0, 1, 3, 4); gtk_widget_show(conf_label); Works great, but the label is centered, I would like it

Re: Label Alignment

2005-08-03 Thread Nickolai Dobrynin
Kevin, Have you seen http://www.gtk.org/faq/#AEN799? The FAQ #6.9. Regards, Nickolai On 8/3/05, Kevin DeKorte <[EMAIL PROTECTED]> wrote: > I'm adding a GTKLabel into a GTKTable > > Doing this > > conf_label = gtk_label_new(_("Cache Size:")); > gtk_table_attach_defaults(GTK_TABLE(c

Re: Label Alignment

2005-08-03 Thread Bill Medland
On August 3, 2005 11:37 am, Kevin DeKorte wrote: > I'm adding a GTKLabel into a GTKTable > > Doing this > > conf_label = gtk_label_new(_("Cache Size:")); > gtk_table_attach_defaults(GTK_TABLE(conf_table), > conf_label, 0, 1, 3, 4); > gtk_widget_show(conf_label); > > > Works great, but t

Re: I don't think I need a custom widget

2005-08-03 Thread Greg Breland
On Wed, 2005-08-03 at 13:24, Tristan Van Berkom wrote: > Maybe you should write one custom GtkContainer for each type > of container you need to put those widgets in. > > The problem is really about the container widget and the > allocation it gives to its child, also what child properties > are i

Re: Label Alignment

2005-08-03 Thread Kevin DeKorte
On Wednesday 03 August 2005 12:55 pm, Bill Medland wrote: > On August 3, 2005 11:37 am, Kevin DeKorte wrote: > > I'm adding a GTKLabel into a GTKTable > > > > Doing this > > > > conf_label = gtk_label_new(_("Cache Size:")); > > gtk_table_attach_defaults(GTK_TABLE(conf_table), > > conf_label

Re: Providing gtk_main() with asynchronous data

2005-08-03 Thread Pat Mahoney
On Tue, Aug 02, 2005 at 07:47:32AM -0400, Owen Taylor wrote: > On Sun, 2005-07-31 at 15:44 -0600, Pat Mahoney wrote: > > (not subscribed; please CC replies) > > > > I'm trying to find a way to provide my mainloop with asynchronous data > > from a thread. I have read this: > > > > http://mail.gno

Re: d'n'd on a listview

2005-08-03 Thread HuamiSoft Hubert Sokolowski
it was my fault, I didn't add a button mask to gtk_tree_view_enable_model_drag_source ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: [...] This sounds like a workable idea as long as it won't alter the allocation request of the child widget. You mean the size-request (aka GtkRequisition) ? Usually a size-request isn't needed on a widget, but you shoulnt allow a widget to have an allocation that is smal

GTK+ 2.7.5 released

2005-08-03 Thread Matthias Clasen
GTK+ 2.7.5 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ gtk+-2.7.5.tar.bz2 md5sum: dbadc6e9272ed64fd321194089cc52cd gtk+-2.7.5.tar.gz md5sum: dd0333bfd597c3afd0f53e9cf0b8cc44 This is the sixth development release loading up to GTK+ 2.8. Notes: * We consider this r

Re: Label Alignment

2005-08-03 Thread Eduardo M KALINOWSKI
Kevin DeKorte wrote: >I'm adding a GTKLabel into a GTKTable > >Doing this > >conf_label = gtk_label_new(_("Cache Size:")); >gtk_table_attach_defaults(GTK_TABLE(conf_table), conf_label, 0, 1, 3, > 4); >gtk_widget_show(conf_label); > > >Works great, but the la

GLib 2.7.6 released

2005-08-03 Thread Matthias Clasen
GLib 2.7.6 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.6.tar.bz2 md5sum: 7bf9ca8de29b3e5612325c15be64e68d glib-2.7.6.tar.gz md5sum: df8e9ba30cd9051b9295fec6f2241394 This is the seventh release leading up to GLib 2.8. Notes: * We consider this release to be

Re: Format/Encoding of Drag-and-drop data

2005-08-03 Thread Gaurav Jain
Thank you Damon. Yes, indeed, I need to decode the data from URI encoding! Gaurav On 8/3/05, Damon Chaplin <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-03 at 16:05 +0530, Gaurav Jain wrote: > > Hi, > > > > I'm trying to support drag-and-drop functionality in which any file > > can be dragged fro