Re: Alternative for gtk_style_get_font

2006-10-31 Thread Olexiy Avramchenko
On 10/31/06, Madhusudan E [EMAIL PROTECTED] wrote: Hi All, The API gtk_style_get_font is deprecated. Can anyone tell us which is the alternative for this API Hello, use GtkStyle::font_desc field: http://developer.gnome.org/doc/API/2.0/gtk/GtkStyle.html#GtkStyle-struct Some useful links,

Re: Glade GUI: changing mechanism

2006-10-31 Thread Daniel Haude
On Tue, 24 Oct 2006 14:39:32 +0200, Philippe Bertin [EMAIL PROTECTED] wrote: My reasoning is that if you inhibit the user the *possibility* to tamper with the files you deliver, you won't have to take this into account when providing support. Call me a security (effectiveniss ?) freak: the

Re: Glade GUI: changing mechanism

2006-10-31 Thread Johan Kohler
Isn't it possible to inline the .glade file in the compiled code? Ie. Instead of reading from a text file, it reads from a declared constant. I think that one can inline pixmaps in this way using GTK. On 31/10/06, Daniel Haude [EMAIL PROTECTED] wrote: On Tue, 24 Oct 2006 14:39:32 +0200,

Re: Glade GUI: changing mechanism

2006-10-31 Thread Carlo Agrusti
[EMAIL PROTECTED] ha scritto lo scorso 24/10/2006 14:44: On Tue, Oct 24, 2006 at 02:39:32PM +0200, Philippe Bertin wrote: [...] Let me indeed do that. I wonder why nobody ever came up with the concern I have; am I that much of a security freak ? FWIW, I'll miss the C code generation

Catch a global keypress event

2006-10-31 Thread Ian Hummel
I have looked all over and can't figure out how to register a global shortcut key combination for my app. Something like CTRL+~ should bring up a dialog box, in front of all other windows, sort of like the ALT-Tab window. any suggestions on where to look? thanks, Ian.

Re: Glade GUI: changing mechanism

2006-10-31 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Oct 31, 2006 at 03:07:13PM +0200, Olexiy Avramchenko wrote: On 10/31/06, Carlo Agrusti [EMAIL PROTECTED] wrote: I'll miss it too [...] This was discussed some time ago. The size of XML (and load time) is not actually a problem here,

Re: Glade GUI: changing mechanism

2006-10-31 Thread Olexiy Avramchenko
On 10/31/06, Johan Kohler [EMAIL PROTECTED] wrote: Isn't it possible to inline the .glade file in the compiled code? Ie. Instead of reading from a text file, it reads from a declared constant. I think that one can inline pixmaps in this way using GTK. Sure, it's possible to embed xml into

Re: About XML file formats

2006-10-31 Thread Fabricio Rocha
Hi, Yuri and all! Thank you very much, to everyone who replied -- your opinions were highly valuable and I have already written all the XML code I needed! Using the DOM approach with libxml was, in fact, simpler than it seemed to be... but it would be IMPOSSIBLE if all the documentation

Re: Catch a global keypress event

2006-10-31 Thread Olexiy Avramchenko
On 10/31/06, Ian Hummel [EMAIL PROTECTED] wrote: I have looked all over and can't figure out how to register a global shortcut key combination for my app. Something like CTRL+~ should bring up a dialog box, in front of all other windows, sort of like the ALT-Tab window. any suggestions on

Re: gtk_file_selection - select only folder?

2006-10-31 Thread Iago Rubio
On Fri, 2006-10-27 at 11:27 -0700, Lance Dillon wrote: From: Alvis Koon [EMAIL PROTECTED] Quick question: Is there a way to limit users to only select folders on gtk_file_selection? I'd guess you can filter (with GtkFileFilter) on mime type, filtering on text/directory. If you can use

Re: Glade GUI: changing mechanism

2006-10-31 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [...] This thread is getting a little redundant (i.e. yes yes the glade file can be inlined - this was not the issue at hand), we were in the midst of disputing the relevence of inlining your glade file and protecting

Question about multithreads

2006-10-31 Thread Tomasz Jankowski
Hi! I generaly know how to write multithreads applications (so far code, which I wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I know, that i'm obligated to sorround with mutex's lock and unlock each part of code,

Re: Question about multithreads

2006-10-31 Thread Paul Pogonyshev
Tomasz Jankowski wrote: I generaly know how to write multithreads applications (so far code, which I wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I know, that i'm obligated to sorround with mutex's lock and

Re: Question about multithreads

2006-10-31 Thread John Cupitt
On 10/31/06, Tomasz Jankowski [EMAIL PROTECTED] wrote: wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I know, that i'm If the value is changing and the changes are being used to signal between threads, then you

Plugins, callbacks, signals, oh my!

2006-10-31 Thread Samuel Cormier-Iijima
Hi everyone (sorry about the stupid title :-)) I'm writing a BitTorrent client which uses GObjects to expose a simple and wrappable interface. I'd also like to allow plugins to hook into events and add functionality. However, I'm not sure what's the best way to do this. So far I've come up with

Re: Question about multithreads

2006-10-31 Thread Chris Vine
On Tuesday 31 October 2006 22:00, Paul Pogonyshev wrote: Tomasz Jankowski wrote: I generaly know how to write multithreads applications (so far code, which I wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I

AM_PATH_GLIB_2_0 incompatible with AC_LANG(C++)

2006-10-31 Thread Daniel K. O.
Hello. AM_PATH_GLIB_2_0 doesn't seem to work after AC_LANG(C++) (because autoconf uses CXXFLAGS instead of the CFLAGS set by the macro). Is this intentional? Can the macro be extended to support both C and C++? Or should I just switch to AC_LANG(C) while testing for Glib? -- Daniel K. O.

efficient drawing of rectangles

2006-10-31 Thread Cornelius Weig
I am writing a program, that involves drawing of an 2dim array of up to 300x300 squares. I use a pixmap to do offscreen drawing, afterwards the pixmap is flushed to a GtkDrawingArea. For drawing to the pixmap I use gdk_draw_rectangle, but the performance of this approach is somewhat disappointing.