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, would unescape the %xx

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 Pango, would unescape the %xx

Pango-1.15.1 released [unstable]

2006-12-04 Thread Behdad Esfahbod
Pango-1.15.1 is now available for download at: http://download.gnome.org/sources/pango/1.15/ or ftp://ftp.gtk.org/pub/pango/1.15 bb24f4fd3d303e84827f852b38a682f7 pango-1.15.1.tar.bz2 3d2bd774728c11728e15ba429c67e6d5 pango-1.15.1.tar.gz This is a development release leading up to Pango-1.16

Re: gtkentry grab-focus

2006-12-04 Thread control H
For those interested, here's a way to get the desired result. The source of gtkentry.c shows that if the entry receives a click, it resets the selection to the current position of the cursor. Hence the following button-press-event callback works: static gboolean event_cb(GtkWidget*w,GdkEvent*event

Re: Finding Version of GTK installed

2006-12-04 Thread John Coppens
On Mon, 4 Dec 2006 13:09:46 -0500 David Vandepol <[EMAIL PROTECTED]> wrote: > a gtk-config file is not created in /usr/lib or anyplace > for that matter. I was wondering if anyone knew how to determine the > version of GTK installed, or any file(s) that would contain this > information. gtk-conf

Re: Finding Version of GTK installed

2006-12-04 Thread John Cupitt
On 12/4/06, David Vandepol <[EMAIL PROTECTED]> wrote: > mailing list a while ago, however I've come across another issue. I can > determine if GTK is installed on the computer, however I'm having trouble > determining the version of GTK that is installed. When GTK is installed There are a number

Finding Version of GTK installed

2006-12-04 Thread David Vandepol
Hi all, I'm working on a program that prereqs GTK, and I posted on this mailing list a while ago, however I've come across another issue. I can determine if GTK is installed on the computer, however I'm having trouble determining the version of GTK that is installed. When GTK is installed

Re: Adjusting GtkFileChooserDialog appearance

2006-12-04 Thread Reed Hedges
You can go in and mess with the contents of the dialog. Somewhere I think I have a function that "walks" the tree of widgets within it printing out relevant information. Such a solution is completely and horribly non-portable between versions of GTK of course. (So yeah, it would be great if

Adjusting GtkFileChooserDialog appearance

2006-12-04 Thread Vladislav Grinchenko
Hi, I am trying to scale down the width of the GtkFileChooser dialog to fit in 320x240 display geometry. One annoying thing is that the [+ Add][- Remove] buttons of the 'Places' left-side pane define its minimal width. There is no property to hide it all together (which I would like to do ver

Re: How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
On Mon, 4 Dec 2006 17:18:05 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Mon, 4 Dec 2006 15:13:56 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> how can I get the style which is actually used to draw the > ET> widgets in an application? > > This shoud work correct: > > GtkSty

Re: How to get the used style for a widget

2006-12-04 Thread Eugene Zagidullin
On Mon, 4 Dec 2006 15:13:56 +0100 Enrico Tröger <[EMAIL PROTECTED]> wrote: ET> how can I get the style which is actually used to draw the widgets in ET> an application? This shoud work correct: GtkStyle *rc_style = gtk_rc_get_style (your_widget); -- Best regards, Eugene

How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
Hi, how can I get the style which is actually used to draw the widgets in an application? More preciously, I need to get the foreground colour (resp. the colours for the GtkStateType enum) for a widget. I want to change the foreground colour of this widget(GtkLabel) to red if a file inside my appl

Re: Calling gtk_notebook_get_menu_label_text () in a for loop

2006-12-04 Thread Yeti
On Mon, Dec 04, 2006 at 10:23:09AM +0100, Colossus wrote: > I'm in need of calling gtk_notebook_get_menu_label_text() in a for > loop to know if an archive is already open in a page. If you have to scan some widgets and parse their labels to find out whether an archive is already displayed somewh

Calling gtk_notebook_get_menu_label_text () in a for loop

2006-12-04 Thread Colossus
Hi, I'm in need of calling gtk_notebook_get_menu_label_text() in a for loop to know if an archive is already open in a page. Each menu label page does contain the archive name. Since from the doc I read "the string is owned by the widget and must not be freed" will I produce memory leaks if I c