Nested Tree View

2007-11-30 Thread Alejandro Serrano
Hi, I'm trying to write a custom widget to represent some data in a way similar to this image: http://www.threatofchaos.com/imagenes/hsl2.PNG What I need is to nest items in a TreeView, but changing the set of columns that are represented. I mean, I need to have - Item 1 - Item 2 * SubItem 2.1

Re: memory leak in gtk

2007-11-30 Thread Michael L Torrie
c f wrote: snip I have checked the GTK documentation and it states that gtk_exit free all resources allocated for GTK+. gtk_exit is depricated and using exit is recommended. I have tested both but non of them improved the situation (still more than 5000 leaks). This is normal. GTK is not

Re: Nested Tree View

2007-11-30 Thread Micah Carrick
Typically, you would use two cell renderers for this task. For example, in a file browser, you might not have 1 column for the icon and another for the filename, but instead you could pack the icon renderer AND filename renderer into the column for a single column so that the alignment works.

Re: GTK+ v2.12.2 build for Windows ?

2007-11-30 Thread Neil Bird
Around about 30/11/07 11:13, Tor Lillqvist typed ... ... not MSVC's, which you apparently use as you talk about release mode and debug mode). OT: I can see where the assumption comes from, but as it happens we do debug and release builds using gcc (arg, to Makefile), it's not just a

Re: write a media player using gtk+

2007-11-30 Thread jcupitt
On Nov 30, 2007 2:45 AM, Bin Chen [EMAIL PROTECTED] wrote: image, but I am not familiar with XLib, so I want to know if it is possible to use pure GTK+ API to achieve this? What about the performance comparing to use XLib directly? You can use gdk_draw_rgb_image() to paint an RGB array to the

Re: write a media player using gtk+

2007-11-30 Thread Kenneth Østby
Hi, On Nov 30, 2007 3:45 AM, Bin Chen [EMAIL PROTECTED] wrote: I want to write a media(video) player using gtk+, I take a look at several existing project, they all use XWindow API to display decoded image. Not that I am by any means any expert on media, but wouldn't gstreamer solve a lot

Re: GTK+ v2.12.2 build for Windows ?

2007-11-30 Thread Tor Lillqvist
I started noticing that my application now regularly crashes on exit when compiled in release mode (debug works fine). Does this happen only when you compile against the 2.12.2 headers, and run against 2.12.2 binaries? What about other combinations? Do you have a stack trace? (Well, you can't

Re: GTK+ v2.12.2 build for Windows ?

2007-11-30 Thread Miroslav Rajcic
I've installed the latest GTK+ version for Windows as was suggested (new gettext runtime), but I started noticing that my application now regularly crashes on exit when compiled in release mode (debug works fine). It was not the case with the previous GTK+ version v2.12.1. Does anyone has the

write a media player using gtk+

2007-11-30 Thread Bin Chen
Hi, I want to write a media(video) player using gtk+, I take a look at several existing project, they all use XWindow API to display decoded image, but I am not familiar with XLib, so I want to know if it is possible to use pure GTK+ API to achieve this? What about the performance comparing to

Re: write a media player using gtk+

2007-11-30 Thread Bin Chen
On 11/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Nov 30, 2007 2:45 AM, Bin Chen [EMAIL PROTECTED] wrote: image, but I am not familiar with XLib, so I want to know if it is possible to use pure GTK+ API to achieve this? What about the performance comparing to use XLib directly?

Re: GTK+ v2.12.2 build for Windows ?

2007-11-30 Thread Miroslav Rajcic
To correct the previous statement, even debug build crashes when started outside of the VS2005 IDE. When started from the IDE it seems to run OK. Does this happen only when you compile against the 2.12.2 headers, and run against 2.12.2 binaries? Yes. Compiles without problems, but crashes on

Fwd: localization of shortcuts (ctrl+*)

2007-11-30 Thread Evgeniy Ivanov
Hi! I have written such thing to gtk-18n-list. But nobody answered. I understood that the question is a bit differ. -- Forwarded message -- From: Evgeniy Ivanov [EMAIL PROTECTED] Date: 25.11.2007 0:43 Subject: localization of shortcuts (ctrl+*) To: [EMAIL PROTECTED] Hi, folks!

Re: SoupInputStream / trying out gio

2007-11-30 Thread Alexander Larsson
On Thu, 2007-11-29 at 13:18 -0500, Dan Winship wrote: OK, I've written a GInputStream subclass using libsoup to download HTTP responses. It's not beautiful (because it has to convert between libsoup's push API and gio's pull API), but it shows that it can work for gvfs. The biggest problem

Re: GLib: embedded list implementation?

2007-11-30 Thread muppet
On Nov 30, 2007, at 2:09 PM, Matthew Barnes wrote: What about embedding a GList node at the top of a larger struct, as we do with GObjects? e.g. struct MyNode { GList parent; ... other data ... }; Sure you'd have an unused 'data' pointer in every node, but it might

Re: GLib: embedded list implementation?

2007-11-30 Thread Matthew Barnes
On Fri, 2007-11-30 at 10:41 -0500, Behdad Esfahbod wrote: The Linux kernel has a unique, and useful, doubly-linked list implementation that I find myself constantly copying into the userspace programs that I write. As a frequent user of GLib in my console-based and server applications,

Re: Gtk on Embedded Device Query

2007-11-30 Thread Saroj Kumar
Hi, Thanks for the suggestions. I have two options left now. 1. Running Gtk+ on top of X11 2. Testing Pango and Cairo modules on directfb itself. Now I am planning to run gtk+ on X-server. I started hunting for X-server and found TinyX. Now how to cross-compile X-server? Is there any

Re: Gtk on Embedded Device Query

2007-11-30 Thread Attilio Fiandrotti
Sven Neumann wrote: Hi, On Thu, 2007-11-29 at 19:44 +0530, Saroj Kumar wrote: Anyhow I have to use this system for my application. I agree that this system is having slow processor speed. But lower than this configuration, processors running on mobile devices performing well in terms of

Re: Gtk on Embedded Device Query

2007-11-30 Thread Saroj Kumar
Hi Sven, Thanks for the suggestions. I have two options left now. Now I am planning to run gtk+ on X-server. I started hunting for X-server and found TinyX. Now how to cross-compile X-server? Is there any document on it. I downloaded X-server from Xfree86 ftp site. Plz. guide me on

Re: Gtk on Embedded Device Query

2007-11-30 Thread Ross Burton
On Fri, 2007-11-30 at 17:41 +0530, Saroj Kumar wrote: Now I am planning to run gtk+ on X-server. I started hunting for X-server and found TinyX. Now how to cross-compile X-server? Is there any document on it. I downloaded X-server from Xfree86 ftp site. Plz. guide me on cross-compiling.

Re: Announce: gio merged

2007-11-30 Thread Hans Breuer
On 28.11.2007 09:24, Alexander Larsson wrote: On Tue, 2007-11-27 at 22:34 +0100, Hans Breuer wrote: On 26.11.2007 17:25, Alexander Larsson wrote: I just commited gio to the glib svn module. As this is a sort of large chunk of work I expect there to be some temporary issues to work out. For

Re: GLib: embedded list implementation?

2007-11-30 Thread Behdad Esfahbod
On Thu, 2007-11-29 at 10:30 -0500, Jeff Garzik wrote: Greetings from pre-2000 GLib contributor :) Welcome! The Linux kernel has a unique, and useful, doubly-linked list implementation that I find myself constantly copying into the userspace programs that I write. As a frequent user of

Re: To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread Murray Cumming
On Fri, 2007-11-30 at 08:24 -0500, Paul Davis wrote: (Paul, would you be willing to take the scribble code from gtk-demo and do this, including any user additions? Surely for such a trivial example of drawing option 2 should be easy?) I'm not sure what's being asked for but gtkmm has a

Re: To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread jcupitt
I thought of another point: soon (please!) gtk will come with a nice cairo canvas widget which ought to be able to replace the drawing code of a lot of applications. All of this messy detail and noise will just vanish and we won't have to worry about retained vs. non-retained mode. The nastiest

Re: To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread jcupitt
On 11/30/07, Richard Boaz [EMAIL PROTECTED] wrote: Sorry, I can't think of a single application responsible for making its own drawings by hand where option 2 is not crazy hard. (If anybody has an example of this in real-world application, please post?) My 2p: Most applications let you zoom

To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread Richard Boaz
splitting this out into its own thread... 2) option 2 is simply impossible to make a one-to-one calculation as to which pixels must be refreshed, programmatically. for many (perhaps even for an overwhelming majority of applications (2) works just fine. if you application

Problem with multi-language input for Gtk-DirectFB

2007-11-30 Thread Suzuki K P
Hi, I am facing some issues with getting the keyboard input in a non-english language for a Gtk program. The backend is DirectFB. I have loaded the console keymap for the language, but somehow, when I type the gtk doesn't get any of them. Any clues ? I am runnin : DirectFB - 0.9.25.1

Re: To Draw | ! To Draw in an Expose Handler

2007-11-30 Thread Paul Davis
On Fri, 2007-11-30 at 10:38 +0100, Richard Boaz wrote: splitting this out into its own thread... 2) option 2 is simply impossible to make a one-to-one calculation as to which pixels must be refreshed, programmatically. for many (perhaps even for an overwhelming

Re: segv on exit from certain uimanager program

2007-11-30 Thread Emmanuele Bassi
On Fri, 2007-11-30 at 11:18 +1100, Kevin Ryde wrote: I get a segv from the program below when using the mouse to select File/Quit. This is on a recent debian i386 with gtk-perl 1.161, perl 5.8.8, gtk 2.12.1 and glib 2.14.3. sub do_quit { exit 0; } bang. try replacing it with: sub

Re: segv on exit from certain uimanager program

2007-11-30 Thread muppet
On Nov 29, 2007, at 7:18 PM, Kevin Ryde wrote: I get a segv from the program below when using the mouse to select File/Quit. This is on a recent debian i386 with gtk-perl 1.161, perl 5.8.8, gtk 2.12.1 and glib 2.14.3. Reproduced on Fedora Core 2 with both stock gtk+ 2.4.14 and with a