Re: app/window deactivation handling

2008-03-18 Thread G Hasse
On Wed, Mar 12, 2008 at 03:20:15PM -0700, Steve Splonskowski wrote: Hello, In an app we are working on we have some things that need to be done when the app (or window since we only have one main window) is deactivated. That is when the use switches to another application we want to

Re: app/window deactivation handling

2008-03-18 Thread G Hasse
On Wed, Mar 12, 2008 at 03:37:23PM -0700, Steve Splonskowski wrote: Sorry for the loose terminology (thankfully I am not from the Windows world!). I mean when the application looses focus (and is still running). Then there is no problem at all. When a Window lose focus you just register a

GTK app to change pic on click

2008-03-18 Thread Midhun A
Hi All, I am very new to GTK+ (started out yesterday). I am writing a simple application which will show pictures one by one on button click. Although I am able to get my first picture, the picture does not change on click of the button (next or previous). The full code is as below. #include

Re: Add a button to the about dialog

2008-03-18 Thread G Hasse
On Fri, Mar 14, 2008 at 06:23:50PM +0100, Daniel Leidert wrote: Hi, I would like to add some information to the About dialog of an application. The About-dialog is created using gtk_show_about_dialog(). The About dialog is a very simple widget that is often used and threrefor made as a

Re: gtktextview render hint-rules effect

2008-03-18 Thread majid
thanks, but my questions was about GTK_TEXT_VIEW widget.! I use this function to set rules hint property to a TREE_VIEW object. gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, gboolean setting); but wath about a TEXT_VIEW? how can i do the same thing? bye On Mon, Mar 17, 2008 at 3:12

Re: GTK app to change pic on click

2008-03-18 Thread Tomas Carnecky
Midhun A wrote: Hi All, I am very new to GTK+ (started out yesterday). I am writing a simple application which will show pictures one by one on button click. Although I am able to get my first picture, the picture does not change on click of the button (next or previous). The full code is

Re: How create new GtkBin widget

2008-03-18 Thread gege2061
2008/3/17, Eduardo M KALINOWSKI [EMAIL PROTECTED]: Use a GtkNotebook with the tabs hidden. It works perfectly for that purpose. This is generally what I use, but for fun I want test implement this feature from to GtkBin. -- Nicolas Joseph Responsable de la rubrique GTK+ de developpez.com

gtk_selection_data_set_pixbuf fails because PIXMAP != image/png

2008-03-18 Thread Xavier Toth
I'm trying to copypaste an image using the default clipboard. I'm using pygtk and retrieving the image from the clipboard using gtk.Clipboard.wait_for_image then later I try to set the selection data pixbuf using gtk.SelectionData.set_pixbuf() with the data gotten from wait_for_image but this

Follow-Up: Size Requesition of User Defined Widget

2008-03-18 Thread Markus Müller
Hello again, i have to apologize: the thing about the wrong window size was a very nasty memory allocation thing: a corrected malloc and the requisition data weren´t be overwritten... *sigh* But another question still remains: The gtkmplayer widget allocation data gets the right dimensions

GtkCellRendererProgress pulse behavior

2008-03-18 Thread Thomas Flynn
Dear gtk-app-devel mailing list, I'm not sure if this is a bug or an error on my part so I decided to put it here and see what you guys and gals think. I have a program with a gtktreeview which includes a column that uses gtkcellrendererprogress. Using the new pulse property of the treeview

Re: gtktextview render hint-rules effect

2008-03-18 Thread Brian J. Tarricone
majid wrote: thanks, but my questions was about GTK_TEXT_VIEW widget.! Oh, jeez. I should learn how to read! I use this function to set rules hint property to a TREE_VIEW object. gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, gboolean setting); but wath about a TEXT_VIEW? how can

Is it possible to create a static cursor ?

2008-03-18 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, is it possible to: - create a GdkCursor - position it in a GdtWindow - BE able to DISASSOCIATE / ASSOCIATE it with the mouse upon demand. i.e. in other words, I want the 2nd cursor to be visible, and fixed

Can the GtkFileChooser be customized ?

2008-03-18 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Is it possible to change the default gtk_file_chooser UI so that: - an extra column is displayed, specifically the file's size ? - the columns can be sorted by clicking on the column header ? I've been all thru the

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Sven Neumann
Hi, On Mon, 2008-03-17 at 12:42 +0200, Tor Lillqvist wrote: GIMP will continue to link in libpng, libjpeg, and etc., so that won't be affected by this regression. Yep. GIMP needs all the information it can get, especially for JPEG, where it needs to actually have a look at the

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Mathias Hasselmann
Am Montag, den 17.03.2008, 21:18 -0400 schrieb Dominic Lachowicz: * The functions that enumerate GDI+'s loaders simply don't exist in the 1.0 version of the GDI+ DLL. They may exist in the 1.1 DLL (which is not re-distributable AFAIK), but that's only in Windows Vista, and we know how great

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Tor Lillqvist
This change would still break the thumbnailing system built into libgimpthumb. This code uses the PNG module from gdk-pixbuf to load and save thumbnails and it relies on the ability to read PNG text chunks from PNG images and to set the PNG text chunk when creating PNG files. Ah, thanks

Re: Move to LGPL3

2008-03-18 Thread Tommi Komulainen
On Sat, 2008-03-15 at 21:03 +0100, ext ryan lortie wrote: Hello. After some talk at the Hackfest about it, I'm writing the list to officially request that glib and GTK be moved to LGPL version 3 or later. IANAL and all, but here are a few points for consideration based on my experience

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Tor Lillqvist
(Unless there is some way to read and write text chunks also through GDI+ after all.) GDI+ does provide access to *some* tEXt chunks that it knows about a priori. At least the Description chunk is available as PropertyTagImageDescription and the Software chunk as PropertyTagSoftwareUsed. But

Re: GdkWindow clean up for offscreen redirection

2008-03-18 Thread varun shrivastava
hi i tried using the offscreen patch, but has a doubt regarding pixmaps. What i did is , added gtkentry as a child of gtkoffscreenBox widget. And than tried setting event mask

Re: Move to LGPL3

2008-03-18 Thread Sven Herzberg
Hi Tommi, Am Dienstag, den 18.03.2008, 11:56 +0200 schrieb Tommi Komulainen: On Sat, 2008-03-15 at 21:03 +0100, ext ryan lortie wrote: After some talk at the Hackfest about it, I'm writing the list to officially request that glib and GTK be moved to LGPL version 3 or later. IANAL and

Re: Move to LGPL3

2008-03-18 Thread Lieven van der Heide
Does that really apply for the code you link to? Afaik, if a GPL program uses an LGPL library, it doesn't relicense that library under GPL too, it merely links to it, and leaves it up to the user to make sure the library is available. If this would be the case, than it wouldn't be possible for GPL

Re: Move to LGPL3

2008-03-18 Thread Lieven van der Heide
Ok, according to the matrix on http://www.fsf.org/licensing/licenses/gpl-faq.html#AllCompatibility it's indeed not allowed, although I don't really understand why. On 3/18/08, Lieven van der Heide [EMAIL PROTECTED] wrote: Does that really apply for the code you link to? Afaik, if a GPL

Re: Move to LGPL3

2008-03-18 Thread Jean Bréfort
Windows API (and may be DirectX) is a special case, because you can't write a Windows program without using it. Le mardi 18 mars 2008 à 12:57 +0100, Lieven van der Heide a écrit : Ok, according to the matrix on http://www.fsf.org/licensing/licenses/gpl-faq.html#AllCompatibility it's indeed

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Dominic Lachowicz
* There is no way that I know of to distinguish between a metafile/vector format and a raster format, except maybe to try loading everything as a metafile and see if something fails. Hmm, there are the ImageCodecFlagsSupportBitmap and ImageCodecFlagsSupportVector bits in the

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Tor Lillqvist
Will cairo move away from libpng too? If somebody just writes the code, I think it would be accepted to have a configure-time choice to either use GDI+ or libpng on Windows. Dunno what the Mozilla folks think. --tml ___ gtk-devel-list mailing list

Re: Minutes: Foreign OSes BoF

2008-03-18 Thread Dominic Lachowicz
Hi Tor, On Mon, Mar 17, 2008 at 10:26 PM, Tor Lillqvist [EMAIL PROTECTED] wrote: Tentative patch at http://tml.pp.fi/gdip-in-gtk.diff . Comments, please. A few things in io-gdip-utils.h need attention: 1) I redefined _() if it wasn't already defined. Instead, you probably want to remove that

Gtk+ stock-icons how r they supposed 2b installed?

2008-03-18 Thread Yotam Medini יותם מדיני
Hello Gtk+ developpers. The gtk+2.12 (or similar versions) source tree, contains the sub directories gtk/stock-icons{16,20,24,32,48} with rich set of icons. When building and installing it (using say, prefix=/home/local) these icons (at least in my case) are _not_ installed. My questions: +

Re: glib utf8 api

2008-03-18 Thread Gregory Sharp
2) There seems to be no way to create a best guess valid string. g_utf8_validate is nice and all, but if validation fails I still need to create a valid string. Am I supposed to use g_convert_with_fallback() from UTF-8 to UTF-8? Very good point. I raised this here too:

Re: Move to LGPL3

2008-03-18 Thread Alexander Shaduri
Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2). This method allows people to link GTK+ with any of the

reg - USB and Ethernet performance open source utility

2008-03-18 Thread Sarahana
Dear Sir I am Sarahana, working in an embedded product concern based on linux, i wish to have an utility to check the performance of both USB and Ethernet, thing is that i have to cross compile the code for my device, if you have any such open source utility, if not can you please suggest me to go

Re: Move to LGPL3

2008-03-18 Thread Tor Lillqvist
If this would be the case, than it wouldn't be possible for GPL code to use something like the Windows API or DirectX either. And don't forget proprietary Unixes with proprietary C libraries. That was after all the expected runtime for the original GPL programs (like Emacs, gcc, bison, etc)

Re: reg - USB and Ethernet performance open source utility

2008-03-18 Thread Mikael Hallendal
17 mar 2008 kl. 16.13 skrev Sarahana: Hi, This is the development mailing list for the GTK+ project, please stay on topic. Best Regards, Mikael Hallendal Dear Sir I am Sarahana, working in an embedded product concern based on linux, i wish to have an utility to check the performance

Re: Move to LGPL3

2008-03-18 Thread Sven Herzberg
Quoting GPL 2: »However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component

Re: exporting _gtk_selection_request for selection manager use

2008-03-18 Thread Alexander Larsson
On Sat, 2008-03-15 at 13:46 -0500, Xavier Toth wrote: Thanks I'll look at the gnome-settings-daemon. A little background, the problem I'm looking to address is the one related to MCS/MLS policy in the SELinux world where you are copying and pasting between windows of different contexts and or

Re: exporting _gtk_selection_request for selection manager use

2008-03-18 Thread Sven Neumann
Hi, On Tue, 2008-03-18 at 17:50 +0100, Alexander Larsson wrote: Load large spreadsheet, click select all, watch your eager clipboard manager suck down lots and lots of data, probably in duplicates converted to all possible data types the spreadsheet can convert to. And this may happen even

Moving Open with to the platform

2008-03-18 Thread Federico Mena Quintero
Hi, Right now, the Open with another application dialog lives in nautilus/libnautilus-private/nautilus-open-with-dialog.[ch]. This dialog uses the machinery in GIO's GAppInfo to figure out which apps can be used to open a file of a certain MIME-type. There's a long-standing annoyance in

Re: Moving Open with to the platform

2008-03-18 Thread Claudio Saavedra
El mar, 18-03-2008 a las 14:02 -0600, Federico Mena Quintero escribió: Hi, Right now, the Open with another application dialog lives in nautilus/libnautilus-private/nautilus-open-with-dialog.[ch]. This dialog uses the machinery in GIO's GAppInfo to figure out which apps can be used to

Re: Moving Open with to the platform

2008-03-18 Thread Cosimo Cecchi
On Tue, 2008-03-18 at 14:02 -0600, Federico Mena Quintero wrote: Hi, Right now, the Open with another application dialog lives in nautilus/libnautilus-private/nautilus-open-with-dialog.[ch]. This dialog uses the machinery in GIO's GAppInfo to figure out which apps can be used to open a

Re: Moving Open with to the platform

2008-03-18 Thread Bastien Nocera
On Tue, 2008-03-18 at 17:09 -0300, Claudio Saavedra wrote: snip What about the open with... menu items machinery? This is reimplemented in more than one place (being eog and gthumb the examples I recall at the moment). Totem has one to open videos embedded in web pages with the movie player

Re: Moving Open with to the platform

2008-03-18 Thread A. Walton
On Tue, Mar 18, 2008 at 4:26 PM, Cosimo Cecchi [EMAIL PROTECTED] wrote: On Tue, 2008-03-18 at 14:02 -0600, Federico Mena Quintero wrote: Hi, Right now, the Open with another application dialog lives in nautilus/libnautilus-private/nautilus-open-with-dialog.[ch]. This dialog uses

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Lieven van der Heide wrote: Ok, according to the matrix on http://www.fsf.org/licensing/licenses/gpl-faq.html#AllCompatibility it's indeed not allowed, although I don't really understand why. Mathias pointed out exactly why. It's not that linking GPLv2-only to LGPLv3 violates the LGPLv3

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2). Hmm, there's a nifty idea.

Re: visibility-notify-event query

2008-03-18 Thread Federico Mena Quintero
On Sun, 2008-03-16 at 21:06 -0700, iluvlinux wrote: i have a question regarding visibility-notify-event If i add widgets to a container than i get the signal visibility-notify-event, whenever visibility changes but if i add widgets to a scrolledwindow i donot get visibility-notify-event for

Re: Move to LGPL3

2008-03-18 Thread Yevgen Muntyan
Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2). But you can't do that. Gtk

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Yevgen Muntyan wrote: Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2).

Re: Move to LGPL3

2008-03-18 Thread Ben Pfaff
Yevgen Muntyan [EMAIL PROTECTED] writes: Gtk is *LGPL*-2, so you can't make it GPL-2 (unless you convince all contributors, including aliens and dead). It appears that you have not read LGPLv2. Clause 3 explicitly says that You may opt to apply the terms of the ordinary GNU General Public

Re: Move to LGPL3

2008-03-18 Thread Yevgen Muntyan
Brian J. Tarricone wrote: Yevgen Muntyan wrote: Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply

Re: Move to LGPL3

2008-03-18 Thread Hubert Figuiere
On Tue, 2008-03-18 at 16:03 -0700, Brian J. Tarricone wrote: You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. [...] (If a newer version than version 2 of the ordinary GNU General Public License has appeared,

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Hubert Figuiere wrote: On Tue, 2008-03-18 at 16:03 -0700, Brian J. Tarricone wrote: You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. [...] (If a newer version than version 2 of the ordinary GNU General Public

Re: Move to LGPL3

2008-03-18 Thread Mark Mielke
Tommi Komulainen wrote: IANAL and all, but here are a few points for consideration based on my experience after being exposed to Nokia legal machinery. 1. Changing the wording from version 2 or later to version 3 or later will remove the 2 or later option. To my understanding

Re: Move to LGPL3

2008-03-18 Thread Mark Mielke
Jean Bréfort wrote: Windows API (and may be DirectX) is a special case, because you can't write a Windows program without using it. It's not a special case. There is certainly no reference to the Windows API in the GPL or the LGPL. The only license that matters when it comes to deciding

Re: Move to LGPL3

2008-03-18 Thread Alberto Ruiz
2008/3/19, Mark Mielke [EMAIL PROTECTED]: Jean Bréfort wrote: I can't see this thread going anywhere close to a conclusion, at this point we should stop discussing about the hundreds of possible interpretations of the licenses. Probably none of the people that has participated is a lawyer,

Re: Move to LGPL3

2008-03-18 Thread Ryan Lortie
On Mon, 2008-03-17 at 14:16 +0400, Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 /