how to constrain the cursor in just one screen.

2007-05-22 Thread Liu Jie
Hi, I'm working a GTK based applicaion, which uses double screens. Without any constraint, the user can move the cursor freely from one scrren to another. Now, I want to constrain the cursor in just one screen. How can I do it? Is there a gtk function which can help me solve my problem? Andy

G_KEY_FILE_KEEP_COMMENTS adds extra newlines

2007-05-22 Thread Enrico Tröger
Hi, please see http://mail.gnome.org/archives/gtk-app-devel-list/2007-January/msg00102.html are there any news? I still have this issue and I don't want to remove the G_KEY_FILE_KEEP_COMMENTS flag. I guess it is a bug but I didn't find a bug report. Should I create one? Or is it maybe already

Howto discover when GtkLabel is elipsized.

2007-05-22 Thread Alexander Semyonov
Hello. I have an elipsized GtkLabel. What I need is to correctly discover when the ellipsis ... is displayed (I think i must discover it in some resize or paint event). Can you help me? Thanx. ___ gtk-app-devel-list mailing list

Re: Howto discover when GtkLabel is elipsized.

2007-05-22 Thread Alexander Semyonov
I realized that pango_layout_get_width (GTK_LABEL (label)-layout)) return -1 when the label's text is not elipsized. I think it suffices. :) On 5/22/07, Alexander Semyonov [EMAIL PROTECTED] wrote: Hello. I have an elipsized GtkLabel. What I need is to correctly discover when the ellipsis ...

Re: Fake pushing a GTK+ button

2007-05-22 Thread Mike Melanson
danielg RHCE wrote: I'm pulling my hair out over something that I believe should be easy but I cannot see it. I have a program that has your basic set of buttons, windows, switches and adjustables. I have added a listener to tell me if a directory has been added to or changed. The printf

How to create a self contained GTK+ Application for Linux

2007-05-22 Thread Jeremy Roberson
The majority of our clients are using custom Linux Distributions and they are using older versions of GTK+. Our application depends on features available in GTK+ = 2.10 so, I need to figure out how to distribute the application with all of its dependencies. So, I used ldd to determine all of

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

2007-05-22 Thread Tristan Van Berkom
On Tue, 2007-05-22 at 20:29 +, Jeremy Roberson wrote: [...] And I get a segmentation fault. I then tried ldd and gdb and I get an instant segmentation fault. If I unset the LD_LIBRARY_PATH variable and then try ldd and gdb, they work but the application fails because it's linking against

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

2007-05-22 Thread Shixin Zeng
On 5/22/07, Jeremy Roberson [EMAIL PROTECTED] wrote: The majority of our clients are using custom Linux Distributions and they are using older versions of GTK+. Our application depends on features available in GTK+ = 2.10 so, I need to figure out how to distribute the application with all

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

2007-05-22 Thread Jeremy Roberson
Tristan Van Berkom tvb at gnome.org writes: On Tue, 2007-05-22 at 20:29 +, Jeremy Roberson wrote: [...] And I get a segmentation fault. I then tried ldd and gdb and I get an instant segmentation fault. If I unset the LD_LIBRARY_PATH variable and then try ldd and gdb, they work

Extending GtkRange to support buffered region / GtkRange subclassing limitation

2007-05-22 Thread Daniel Yek
Hi, I subclassed GtkHScale and overrode expose_event virtual function and others to add additional functionality to the class. I called the parent classes's (particularly GtkRange's) expose_event implementation to draw the trough and slider. So far so good. Due to the lack of support for

How to get the titles for all top level windows

2007-05-22 Thread Sreeram Akella
Hi, I am using GTK version 2.8.9 on Fedora Core 6. I need to develop an application that lists all top level windows along with the corresponding titles. I tried using the method gdk_windows_get_toplevels() to return the GList of all top level windows on the default screen on the default

Re: How to get the titles for all top level windows

2007-05-22 Thread wallace . owen
On Tue, 2007-05-22 at 16:33 -0700, Sreeram Akella wrote: Hi, I am using GTK version 2.8.9 on Fedora Core 6. I need to develop an application that lists all top level windows along with the corresponding titles. I tried using the method gdk_windows_get_toplevels() to return the GList of all

Re: How to get the titles for all top level windows

2007-05-22 Thread Emmanuele Bassi
On Tue, 2007-05-22 at 16:33 -0700, Sreeram Akella wrote: I would greatly appreciate it if some one can point me to the error here or still better a code snippet that can do this. you want to use libwnck, not gtk+ if you plan to manipulate the entire windows list. ciao, Emmanuele. --

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

2007-05-22 Thread Jeremy Roberson
Tristan Van Berkom tvb at gnome.org writes: On Tue, 2007-05-22 at 20:29 +, Jeremy Roberson wrote: [...] And I get a segmentation fault. I then tried ldd and gdb and I get an instant segmentation fault. If I unset the LD_LIBRARY_PATH variable and then try ldd and gdb, they work

RE: How to get the titles for all top level windows

2007-05-22 Thread Sreeram Akella
Hi Wally, Thanks for your quick response. But is there any way I can get the list of all the windows of all applications, just like what a Window manager would maintain? Thanks Sreeram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 4:49

Re: GtkLabel + PangoLayout

2007-05-22 Thread Leonel Freire
I'm was trying to change de label pango context matrix, but no success. because you need to queue a redraw of the label. After this I wrote... ... layout = gtk_label_get_layout(GTK_LABEL(label)); pango_layout_set_text(layout, TEXT, -1); gtk_widget_queue_draw(label); But nothing happened...

Re: GtkLabel + PangoLayout

2007-05-22 Thread Leonel Freire
Sorry... Double width: 42 chars (210 x 20) - two char width for each char, but the same height Not 210 x 20... but 420 x 20... the same size but with just 21 chars, each one with double width. =P ___ gtk-app-devel-list mailing list

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

2007-05-22 Thread Tor Lillqvist
Jeremy Roberson writes: So, I copied all of the shared libraries into a sub directory of the application directory called lib/ for testing. But GTK+ and Pango also look for various other files at run-time. It's not just the shared libraries that are needed. The pathnames of these other files

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

2007-05-22 Thread Brian J. Tarricone
Hey Jeremy, On Wed, 23 May 2007 06:54:14 +0300 Tor Lillqvist wrote: Jeremy Roberson writes: So, I copied all of the shared libraries into a sub directory of the application directory called lib/ for testing. But GTK+ and Pango also look for various other files at run-time. It's not

GLib 2.13.2 released

2007-05-22 Thread Matthias Clasen
GLib 2.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.13/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.13/ glib-2.13.2.tar.bz2 md5sum: fe671c2152bda5510f6c07706c1f glib-2.13.2.tar.gz md5sum: 7c9a41df3851371d42aa13ef299de17c This is the third development release

Re: how to constrain the cursor in just one screen.

2007-05-22 Thread Sven Neumann
Hi, this mailing-list is about development of GTK+. Please ask your question on gtk-list or gtk-app-devel-list. Thanks. Sven PS: Take a look at the confine_to parameter of gdk_pointer_grab(). ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

How to generate python bindings correctly - for a GObject based system?

2007-05-22 Thread मयंक जैन ( makuchaku)
Hi, I'm trying to write a python wrapper for my GObject derived system --- // Object definition struct _MakuObject { GObject parent; gint age; DBusGProxy *gproxy; }; // ObjectKlass definition struct _MakuObjectClass { GObjectClass parent;

Common widget for choosing file formats

2007-05-22 Thread Mathias Hasselmann
Quoting myself from Bug 440431[1]: Applications supporting multiple file formats needs a file-format chooser in their file saving dialog. Several GNOME apps implement very similiar file-format choosers - so it makes sense to me, to add this widget to GTK+. The widget would be used like this:

Re: Common widget for choosing file formats

2007-05-22 Thread Bastien Nocera
On Tue, 2007-05-22 at 14:43 +0200, Mathias Hasselmann wrote: Quoting myself from Bug 440431[1]: Applications supporting multiple file formats needs a file-format chooser in their file saving dialog. Several GNOME apps implement very similiar file-format choosers - so it makes sense to me,

[REMINDER] GTK+ developers Ttam meeting tonight

2007-05-22 Thread Emmanuele Bassi
hi everyone; since nobody has objected to the date/time for a developers meeting[1], here's the more format announcement/reminder: tonight, tuesday may 22nd, at 21:00 UTC [2] in #gtk-devel on irc.gimp.org the action points for the meeting: * where are we wrt FOSDEM release schedule [3];

Re: Common widget for choosing file formats

2007-05-22 Thread Mathias Hasselmann
Am Dienstag, den 22.05.2007, 14:51 +0200 schrieb Xavier Bestel: On Tue, 2007-05-22 at 14:43 +0200, Mathias Hasselmann wrote: Applications supporting multiple file formats needs a file-format chooser in their file saving dialog. Several GNOME apps implement very similiar file-format

Re: [REMINDER] GTK+ developers Ttam meeting tonight

2007-05-22 Thread Tommi Komulainen
On 5/22/07, Emmanuele Bassi [EMAIL PROTECTED] wrote: tonight, tuesday may 22nd, at 21:00 UTC [2] in #gtk-devel on irc.gimp.org And here's a little helper for timezone impaired such as myself: http://www.timeanddate.com/worldclock/fixedtime.html?month=5day=22year=2007hour=21min=0sec=0p1=0

Re: Common widget for choosing file formats

2007-05-22 Thread Xavier Bestel
On Tue, 2007-05-22 at 16:34 +0200, Mathias Hasselmann wrote: Am Dienstag, den 22.05.2007, 14:51 +0200 schrieb Xavier Bestel: On Tue, 2007-05-22 at 14:43 +0200, Mathias Hasselmann wrote: Applications supporting multiple file formats needs a file-format chooser in their file saving

Re: glib/gtk compilation subsets (Re: is glib too bloated?)

2007-05-22 Thread Matthias Clasen
On 5/14/07, Tim Janik [EMAIL PROTECTED] wrote: we've discussed that during last GUADECs Gtk+ meeting: http://mail.gnome.org/archives/gtk-devel-list/2006-June/msg00146.html the main outcome was that the ability to disable some of the non-strict-core widgets in Gtk+ could be an interesting

Re: How to generate python bindings correctly - for a GObject based system?

2007-05-22 Thread Felix Rabe (public)
Hi, मयंक जैन (makuchaku) wrote: I'm trying to write a python wrapper for my GObject derived system I think the PyGTK mailing list is a better place to ask this, since this list here is about the development of GTK+ (not applications, but the library) and related things. See

Re: Shipping multiple themes by default (Was: Sudden Tango changes in trunk)

2007-05-22 Thread Matthias Clasen
On 3/29/07, Loïc Minier [EMAIL PROTECTED] wrote: Hi, Would it be difficult to ship multiple themes by default, for example legacy and tango (and perhaps qt and metal themes in the future?); the default theme could be selected at build time and the default default could be set to

Re: first Gtk Version over DirectFB

2007-05-22 Thread Matthias Clasen
On 3/28/07, Attilio Fiandrotti [EMAIL PROTECTED] wrote: i believe it would be nice if someone could sync directfb backend in trunk with stable release: all that's in trunk can be safely backported into 2.10 (also some autofile sysnc is needed). I sadly cannot do it by myself as i have no svn

Re: Warning about reaped children

2007-05-22 Thread Matthias Clasen
On 3/29/07, Federico Mena Quintero [EMAIL PROTECTED] wrote: Hi, I forgot to pass G_SPAWN_DO_NOT_REAP_CHILD to g_spawn_async_with_pipes() and ended up scratching my head about why my GChildWatch callback wasn't firing. After some hot strace action and RTFM, I added that flag and everything

GtkEditableLabel Widget

2007-05-22 Thread Andrew Krause
Hello All, It was recommended that I ask this question on the gtk-devel-list instead, so here it goes: I have an interest invested in an editable label widget because of an application I am working on. Because of this, I decided to work on the widget myself since the project seems to have been

Re: first Gtk Version over DirectFB

2007-05-22 Thread Attilio Fiandrotti
Matthias Clasen ha scritto: On 3/28/07, Attilio Fiandrotti [EMAIL PROTECTED] wrote: i believe it would be nice if someone could sync directfb backend in trunk with stable release: all that's in trunk can be safely backported into 2.10 (also some autofile sysnc is needed). I sadly cannot do

Re: [REMINDER] GTK+ developers Ttam meeting tonight

2007-05-22 Thread Behdad Esfahbod
On Tue, 2007-05-22 at 12:28 -0400, Olav Vitters wrote: On Tue, May 22, 2007 at 02:29:28PM +0100, Emmanuele Bassi wrote: * are people in the foundation sponsoring a conf call for the team? The board uses the Sun conference call system. If allowed for gtk+, one person has to set it up

Re: Shipping multiple themes by default (Was: Sudden Tango changes in trunk)

2007-05-22 Thread Loïc Minier
On Tue, May 22, 2007, Matthias Clasen wrote: Would it be difficult to ship multiple themes by default, for example legacy and tango (and perhaps qt and metal themes in the future?); the default theme could be selected at build time and the default default could be set to tango for win32

Re: Warning about reaped children

2007-05-22 Thread Federico Mena Quintero
On Tue, 2007-05-22 at 13:32 -0400, Matthias Clasen wrote: On 3/29/07, Federico Mena Quintero [EMAIL PROTECTED] wrote: Hi, I forgot to pass G_SPAWN_DO_NOT_REAP_CHILD to g_spawn_async_with_pipes() and ended up scratching my head about why my GChildWatch callback wasn't firing. After some

GTK+ Team Meeting Minutes - 22nd May 2007

2007-05-22 Thread Emmanuele Bassi
hey everyone; these are the minutes for the gtk+ team meeting held on may, 22nd 2007. the meeting was incredibly good and I'd like to thank everyone that participated tonight. as usual, the (slightly edited) log of the meeting is available on the gtk+ website, at

GLib 2.13.2 released

2007-05-22 Thread Matthias Clasen
GLib 2.13.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.13/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.13/ glib-2.13.2.tar.bz2 md5sum: fe671c2152bda5510f6c07706c1f glib-2.13.2.tar.gz md5sum: 7c9a41df3851371d42aa13ef299de17c This is the third development release