g_spawn_async_with_pipes problems

2005-08-02 Thread John Coppens
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_out and std_e

General CPU usage question

2005-08-02 Thread Nickolai Dobrynin
I'm sure this question has been asked before, so maybe just point me to the right place where I could look. Suppose, as a simple example, I am setting the bg color of a GtkEventBox and suppose there is a lot of redundancy, meaning that, say, I set the background color to red when it's already red.

Re: pkg-config vs gnome-config

2005-08-02 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark C. Smith wrote: > If this message if out of place or already answered, please point me to > the right direction and I'll be more than happy to follow up there. > > I'm working on an app that uses gtk+-2.0 and a gdk_canvas. 'gnome-config' > point

pkg-config vs gnome-config

2005-08-02 Thread Mark C. Smith
If this message if out of place or already answered, please point me to the right direction and I'll be more than happy to follow up there. I'm working on an app that uses gtk+-2.0 and a gdk_canvas. 'gnome-config' points to the gtk-1.2 installation and pkg-config leaves out the necessary include

Re: GdkEvent --> XEvent

2005-08-02 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Van Berkom wrote: > Hi all, > As usual, I'm trying to do something that just wasnt' meant to be > done :) (otherwise when would I have any fun ?) > > I'm trying to write a widget that will display a netscape gecko plugin > stream on linux

GdkEvent --> XEvent

2005-08-02 Thread Tristan Van Berkom
Hi all, As usual, I'm trying to do something that just wasnt' meant to be done :) (otherwise when would I have any fun ?) I'm trying to write a widget that will display a netscape gecko plugin stream on linux, the plugin framework delivers an XEvent to the plugin and lets the plugin "react

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
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

Providing gtk_main() with asynchronous data

2005-08-02 Thread Faria, Sydney C
That is an excellent example, and I also was working solving this AsyncQueue method! Have you run into any examples of communicating TO a separate thread? Sydney ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailm

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
Hi again! Sorry if this topic was explained in the past. I connected drag'n'drop events to my treeview: g_signal_connect (object, "drag-begin", G_CALLBACK (_drag_start_cb), NULL); g_signal_connect (object, "drag-data-get", G_CALLBACK (_drag_data_get_cb)

GLib 2.7.5 released

2005-08-02 Thread Matthias Clasen
GLib 2.7.5 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.7/ glib-2.7.5.tar.bz2 md5sum: b55611611f7a6afb34e2e7f7be4db7aa glib-2.7.5.tar.gz md5sum: 3939234166ef35729bccfb4cdd1b0748 This is the sixth development release leading up to GLib 2.8. Notes: * We consider this rele

Query - Using Gtk on the Framebuffer..

2005-08-02 Thread Hasmeet Bedi
Hello Everybody i want to use GTK on the Framebuffer..i have read the doc related to this... but i m confused.. i m using gtk+2.0 ( installed with Redhat 9)..able to work with it..but now i want to try Framebuffer Programming...let me know any Tutorial available for that.. now it's writ

Re: Fonts

2005-08-02 Thread Liam R. E. Quin
On Tue, 2005-08-02 at 10:35 +1000, Russell Shaw wrote: > I was wandering if every time a gtk app prints some text, the instructions > for each character to print are sent as 1 byte, or 4 bytes like utf-8 or > whatever (eg, 0x61 for 'a') so that the text rendering thing on the server > side knows w

VFS monitor

2005-08-02 Thread The Saltydog
I am using gnome_vfs_monitor_addto monitor a directory. When there are subsequent changes to the dirctory, the application crashes with this message: libgnomevfs-ERROR **: file gnome-vfs-monitor.c: line 246 (actually_dispatch_callback): assertion failed: (callback_data->send_state != CALLBACK_

Re: Providing gtk_main() with asynchronous data

2005-08-02 Thread Owen Taylor
On Tue, 2005-08-02 at 06:36 -0600, Pat Mahoney wrote: > 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 dat

Re: Providing gtk_main() with asynchronous data

2005-08-02 Thread Pat Mahoney
On Mon, Aug 01, 2005 at 05:36:47PM -0400, Tristan Van Berkom wrote: > In gereral this is how we deal with this problem: > > typedef struct { > GSource source; > gpointer my; > gint extended; > gchar *data; > } GMySource; Thanks, works great. My C skills are weak... should

Re: Fonts

2005-08-02 Thread Owen Taylor
On Tue, 2005-08-02 at 00:16 +1000, Russell Shaw wrote: > Hi, > Does all text in gtk/pango get sent to the X server as ascii, or are bitmaps > sent too? If sent as ascii, is it 7-bit, 8-bit, or something longer? > Does gtk have any control over what renders the fonts at the X server? > Is XDrawStrin

Re: Providing gtk_main() with asynchronous data

2005-08-02 Thread Owen Taylor
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.gnome.org/archives/gtk-app-devel-list/2004-July/msg00181.html > > which descr

Re: d'n'd on a listview

2005-08-02 Thread Hubert Sokołowski
Hi! I have read the document at http://developer.gnome.org/doc/API/2.0/gtk/gtk-GtkTreeView-drag-and-drop.html about high-level drag'n'drop api for gtktreeview, but still don't know where to start. I understand most of this functions, but what events I have to connect to, to enable drag and drop o