What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
is needed to not get into such situation? Thanks. -- Daniel Yek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
Attaching file in email body... At 02:36 AM 10/12/2006, Daniel Yek wrote: >Hi, > >I am attaching the source code of a small test program here. > >Could somebody enlighten me why after an I/O Channel operation >(g_io_channel_shutdown() here), the GTK+ program started to use up

Answer to: What causes GLib I/O Channels operations to use up 100% CPU in GTK+ app.?

2006-10-12 Thread Daniel Yek
700, Daniel Yek wrote: > > > > At 02:36 AM 10/12/2006, Daniel Yek wrote: > > > > > >Could somebody enlighten me why after an I/O Channel operation > > >(g_io_channel_shutdown() here), the GTK+ program started to use up > 100% CPU? > > > > > &

Drag_Drop to before the first row of Tree View (List Store)

2006-11-22 Thread Daniel Yek
o that? I tried several approaches...still looking for a good solution. If I can translate between the tree coordinates and the coordinates of the window containing column headers, my problem would be solved. How can I do that? Is there another easier way to do this? Thanks. --

Re: Drag_Drop to before the first row of Tree View (List Store)

2006-11-26 Thread Daniel Yek
Resending...Still hoping for a nice solution. At 01:39 AM 11/22/2006, Daniel Yek wrote: >Hi, > >I'm trying to handle Drag_Drop to before the first row and after the last >row of a Tree View with a List Store. > >In the drag_drop handler, I got a y-coordinate of between 0

How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-11-29 Thread Daniel Yek
: 50 72 65 73 65 6e 74 61 63 69 25 66 33 6e c3 b3 2e 73 78 69 I tried g_convert_with_fallback(str, -1, "UTF-8", "UTF-8" /* whatever codeset used by filesystem */, NULL, NULL, NULL, NULL), but this function won't accept non-UTF-8 input. Thanks much for a

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-11-30 Thread Daniel Yek
Hi, First, thanks for replying. I appreciate it. At 03:54 AM 11/30/2006, [EMAIL PROTECTED] wrote: >On Wed, Nov 29, 2006 at 05:25:25PM -0800, Daniel Yek wrote: > > Hi, > > > > I am attempting to handle raw filenames (which may be encoded differently > > than th

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-01 Thread Daniel Yek
At 01:57 AM 12/1/2006, Peter Lund wrote: >On Wed, 2006-11-29 at 17:25 -0800, Daniel Yek wrote: > >>To be clear, I want UTF-8 characters remain UTF-8 and only escape non-UTF-8 >>byte sequence. Is there a function that does that? > >I don't think so. I didn't actua

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-04 Thread Daniel Yek
At 12:35 PM 12/1/2006, Edward Catmur wrote: >On Thu, 2006-11-30 at 15:46 -0800, Daniel Yek wrote: > > Well, with g_utf8_validate(), it is trivial to implement a function that > > escape non-UTF-8 bytes to Hex. However, I then found out that TreeView, or > > more likely Pang

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-04 Thread Daniel Yek
At 07:29 AM 12/1/2006, Peter Lund wrote: >On Thu, 2006-11-30 at 15:46 -0800, Daniel Yek wrote: > > > Well, with g_utf8_validate(), it is trivial to implement a function that > > escape non-UTF-8 bytes to Hex. However, I then found out that TreeView, or > > more likely Pango

Re: GTK - Proper Way to Code Pipes

2006-12-05 Thread Daniel Yek
and just buffer the data in the pipe ? it can get complex. > > > >Cheers, > > -Tristan > >I really would like to be able to write to the pipe from my threads, have >the GUI read from >the pipe and then update my progress/status bars based o

Re: When are these g_io_channel_*() input conditions occurring ?

2006-12-05 Thread Daniel Yek
hat you need to >>handle G_IO_HUP, G_IO_NVAL, (and maybe G_IO_PRI). Handling these helped >>my troubles, but I don't know if these have anything to do with your trouble. >> > >-- >Daniel Yek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
icular fix is really easy -- just replacing gdk_pixbuf_unref() with g_object_unref(). If there is no interest in fixing Glade-2, is there a work-around I can use without manually changing / post-processing the generated files? Thanks. -- Daniel Yek _

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 11:51 AM 12/27/2006, [EMAIL PROTECTED] wrote: >On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > *_interface.c files from Glade-2. > > > > Is there a recommended way to do that?

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 11:49 AM 12/27/2006, David wrote: >On Wed, Dec 27, 2006 at 11:23:16AM -0800, Daniel Yek wrote: > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > *_interface.c files from Glade-2. > > > > Is there a recommended way to do that? Is

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread Daniel Yek
At 12:26 PM 12/27/2006, Daniel Yek wrote: >At 11:51 AM 12/27/2006, [EMAIL PROTECTED] wrote: > >On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > > > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > > > *_interface.c files from Glade-2

Tracing (application-supplied) icons used by nautilus

2007-01-10 Thread Daniel Yek
.I'll try...) -- Daniel Yek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Not disabling menu item accelerator when hiding menu bar, ...

2007-02-27 Thread Daniel Yek
ut? Is it a way to for an application to save user-modifiable accelerator settings (like that provided by The Gimp?) How does accel_map interact with accelerators defined in the menu? Many thanks for the answer to my questions. -- Daniel Yek ___ g

Re: Not disabling menu item accelerator when hiding menu bar, ...

2007-03-02 Thread Daniel Yek
hanks much. If other people know the answers to other questions (at the bottom) and would like to share with me before I find out for myself, I'm still all ears! -- Daniel Yek * From: David Ne as (Yeti) * To: gtk-app-devel-list gnome org * Subject: Re: Not disabling menu i

How to create more space leading to and trailing PangoLayout text output with background color?

2007-05-09 Thread Daniel Yek
n the surrounding. What is the best way to create spaces in the Pango rendering of markup? Thanks! -- Daniel Yek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Extending GtkRange to support buffered region / GtkRange subclassing limitation

2007-05-22 Thread Daniel Yek
any changes in these GtkRange subclasses. Does anybody see other alternatives to maintaining private stack of GtkRange, GtkScale, and GtkHScale? (Is a second rewrite of GtkRange warranted?) Thanks. -- Daniel Yek ___ gtk-app-devel-list mailin

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Daniel Yek
ges in details.) If it is to the executable path, it is easier -- by reading the symbolic link target of: /proc//exe if the symbolic link exists. For DSOs, is it an option to get the module load address and parse: /proc//maps to find out the module load add

How to detect display speed in custom widget?

2007-08-31 Thread Daniel Yek
Hi, I'm wondering if anybody is experienced in writing smart widget that would react differently depending on whether the current display is local/fast for graphics animation or remote/slow where all animation should be kept to the minimum? What techniques are suitable for drawing speed detect

Re: How to compile and link GTK2 Programms tobe compatibe with XFree86 and Xorg

2007-08-31 Thread Daniel Yek
mms >> under newer Distibutions also runable under older Distributions. >> You are looking for LSB (which is probably not perfect, but it could be as good as you can get -- in my opinion, anyway): http://www.linux-foundation.org/en/LSB https://lists.linux-foundation.org/piper

(1) How to implement Image Buttons without gaps? (2) Can GtkImage stretch an image automatically?

2008-08-20 Thread Daniel Yek
Hi, (1) I have been looking for a way to use GtkButton to create an Image Button that is exactly of the same size as the GtkImage that it contains, so that two Image Buttons next to each others would leave no gap in between. I have some ideas in mind, but I wonder if I'm going to over-engine

What strategy to use to deal with Glade-3's problem in removing pixbuf directory paths in .glade file!

2008-10-06 Thread Daniel Yek
m pixbuf in .glade file, libglade would have worked. I think one clumsy way I can deal with this is to create a script that post-process .glade file touched by Glade-3 to explicitly restore the pixbuf directory paths. Is there another better way to deal wi

Re: What strategy to use to deal with Glade-3's problem in removing pixbuf directory paths in .glade file!

2008-10-09 Thread Daniel Yek
Hi Tristan, Thanks for responding. My responses inlined below... Tristan Van Berkom wrote: On Mon, Oct 6, 2008 at 2:01 PM, Daniel Yek <[EMAIL PROTECTED]> wrote: Hi, I'm trying to find a way to deal with the problem with Glade-3 removing absolute or relative path from pixbuf pro

Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-16 Thread Daniel Yek
figure out how to best create and use composite widgets. Ideas and advice are appreciated. Thanks. -- Daniel Yek. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-16 Thread Daniel Yek
Tristan Van Berkom wrote: On Thu, Oct 16, 2008 at 10:01 PM, Daniel Yek <[EMAIL PROTECTED]> wrote: ...create a (custom) composite widget to contain several standard GTK+ widgets...(It is nicer if all widgets appear in the same design view.) ...Is pluggable widget the replacement mec

Re: Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-21 Thread Daniel Yek
Tristan Van Berkom wrote: On Fri, Oct 17, 2008 at 2:10 AM, Daniel Yek <[EMAIL PROTECTED]> wrote: [...] This is done by installing custom widgets catalog into catalog directory, installing custom plugin libraries, loading optional/custom plugin libraries, installing and loading g

Re: Layout Composite Widget Components Using Glade-3? / See Glade Only as Prototyping Tool?

2008-10-21 Thread Daniel Yek
ng tool and that projects having more modularity requirement will fare better to code the subclasses using GTK+ API directly. I suppose one way to analyze this is to look at Glade source code itself and questioning why Glade application interface wasn't composed using Glade itself, but coded d

How To Enable X Root Window PropertyNotify Event ("property-notify-event" signal?) In GTK+?

2010-01-05 Thread Daniel Yek
pt at solving my problem. Does anybody know if the right way to enable root window PropertyNotify event in GTK+? Thanks! -- Daniel Yek. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How To Enable X Root Window PropertyNotify Event ("property-notify-event" signal?) In GTK+?

2010-01-07 Thread Daniel Yek
Brian J. Tarricone wrote: > On 01/05/2010 01:36 PM, Daniel Yek wrote: >> I want to receive X's PropertyNotify event for _NET_WORKAREA and >> _NET_CURRENT_DESKTOP root window properties. >> >> How can I enable them? Can they be received as "property-notify-