Re: GtkTextView: how to stop default "paste-clipboard" handler ?

2008-05-13 Thread Miroslav Rajcic
Unfortunately this does not help. There is also a context menu for text view that contains the "Copy"/"Paste" items. Is there an alternative way? Is it not possible to prevent the default handler for this ? Regards, Miroslav - Original Message - From: "Micah Carrick" <[EMAIL PROTEC

Re: Best practices for laying out controls

2008-05-13 Thread Peter Clifton
On Tue, 2008-05-13 at 13:24 -0400, Dave Foster wrote: > Hi, > > I'm currently developing an application which has a lot of input widgets to > it. After consulting the HIG [1], specifically the portion about Window > Layout [2], it left me quite confused with exactly how I should implement > the g

Re: Best practices for laying out controls

2008-05-13 Thread jcupitt
2008/5/13 Dave Foster <[EMAIL PROTECTED]>: > I had thought about using a VBox, and then a number of HBoxes inside of the > VBox, but then the labels/controls quickly go out of alignment with one > another. Check this screenshot of a mockup of this scenario in glade (glade > file available here

Pango-1.21.1 released [unstable]

2008-05-13 Thread Behdad Esfahbod
Pango-1.19.0 is now available for download at: http://download.gnome.org/sources/pango/1.21/ or ftp://ftp.gtk.org/pub/pango/1.21 48efc23338ac4b359bee7348652e6107 pango-1.21.1.tar.bz2 ac5c3f8bc6a8be174311ce58fc4121ea pango-1.21.1.tar.gz This is a development release in yet another exciting

Best practices for laying out controls

2008-05-13 Thread Dave Foster
Hi, I'm currently developing an application which has a lot of input widgets to it. After consulting the HIG [1], specifically the portion about Window Layout [2], it left me quite confused with exactly how I should implement the guidelines it suggests. I understand the importance of alignment a

Finding the position of a button in a gtk dialog

2008-05-13 Thread chirag juneja
I am trying to find the position of a button in a gtk dialog. but getting some strange results.. approach i am using is : i will find the distance of the button from its parent, and then its parent's distance form its parent .. and so on, till i get toplevel window. then i am adding the decoration

Re: How to set locale dynamicly under GTK-win application?

2008-05-13 Thread Marvin Zhang
Especially thank Tor for spending time to explain this. It is very instructive! And thank you all for the help. Both putenv() and g_setenv() work. :-) - Original Message From: Tor Lillqvist <[EMAIL PROTECTED]> To: Marvin Zhang <[EMAIL PROTECTED]> Cc: Daniel Atallah <[EMAIL PROTECTED]>

Re: GtkTextView: how to stop default "paste-clipboard" handler ?

2008-05-13 Thread Micah Carrick
You may have to instead catch the Ctrl+V keybinding from within a handler for "key-press-event" and return TRUE to prevent further processing. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Miroslav Rajcic wrote: > I've needed to override th

GtkTextView: how to stop default "paste-clipboard" handler ?

2008-05-13 Thread Miroslav Rajcic
I've needed to override the default GtkTextView pasting code in order to support pasting of formatted text. My problem is that after adding the handler for "paste-clipboard" signal, the same text is pasted twice: - once as a formatted text, - and once more as a plain text (I suspect this other co

Re: How to set locale dynamicly under GTK-win application?

2008-05-13 Thread Tor Lillqvist
> But how to change the locale in the application? First you should say what locale exactly you mean, or preferably what end effect exactly you want to achieve... On Windows the locale concept is not as straightforward as on Unixes. I assume what you want is for the locale in the gettext sense to