Re: RadioMenuItem

2009-04-13 Thread Paolo
Sorry. I've fix my problem. Thanks 2009/4/13 Paolo pra...@gmail.com How can I apply gtk_toggle_button_get_active() function? I have a radiomenuitem and the function needs a togglebutton 2009/4/13 donglongchao donglongc...@163.com Hi, Because they are in the same group,and if one is

Re: RadioMenuItem

2009-04-13 Thread donglongchao
you are always welcome.:-) 在2009-04-13,Paolo pra...@gmail.com 写道: Sorry. I've fix my problem. Thanks 2009/4/13 Paolo pra...@gmail.com How can I apply gtk_toggle_button_get_active() function? I have a radiomenuitem and the function needs a togglebutton 2009/4/13 donglongchao

Re: RadioMenuItem

2009-04-13 Thread Paolo
How can I apply gtk_toggle_button_get_active() function? I have a radiomenuitem and the function needs a togglebutton 2009/4/13 donglongchao donglongc...@163.com Hi, Because they are in the same group,and if one is selected(or toggled), then before it send a toggled signal,the other one

Re: Rendering lines

2009-04-13 Thread jcupitt
2009/4/13 Paolo pra...@gmail.com: I'm drawing lines into GtkDrawingArea through gdk_draw_line function. The results is good, but not enough. How can I increase the rendering? Do you mean make it faster'? You could try: - disable gtk's automatic double buffering - try another X driver (there's

Re: Rendering lines

2009-04-13 Thread Dov Grobgeld
gdk_draw_line() is deprecated. Use cairo instead. Regards, Dov 2009/4/13 Paolo pra...@gmail.com Hi! I'm drawing lines into GtkDrawingArea through gdk_draw_line function. The results is good, but not enough. How can I increase the rendering? ___

Re: Rendering lines

2009-04-13 Thread Dov Grobgeld
Slow or fast is obviously application dependent. The original poster didn't complain about speed... The most important thing is never to send to the rendering pipeline data that will not be shown. E.g. in a GIS system if you are zoomed out you don't want to draw small features. And you don't want

Re: How to make my own widget semi-transparent?

2009-04-13 Thread John Stebbins
The documentation for GdkWindow has a good example of how to do translucent widgets. http://library.gnome.org/devel/gdk/unstable/gdk-Windows.html#composited-window-example Your attachments didn't go through, so I can't say what your doing wrong. But if I had to guess, I would say you're

Re: What gives us the macro GSEAL()?

2009-04-13 Thread Grzegorz Kuczyński
A. Walton pisze: 2009/4/12 A. Walton awal...@ubuntu.com: ... gtk_window_set_title() is inside of gtk+ and won't need to change. The macro is to prevent external applications from doing window-title = whatever; and instead applications should (and will be forced to use)

FYI: better UTF8 decoder.

2009-04-13 Thread Butrus Damaskus
Hi! This page: http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ claims to have better (quicker and smaller?) utf8 decoder. Maybe it would be worth to look at it? BBD ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: What gives us the macro GSEAL()?

2009-04-13 Thread Grzegorz Kuczyński
Tor Lillqvist pisze: So to protection is enable - must include gdkconfig.h.win32 in my aplications? Eek, no. Include gdkconfig.h. Including the normal GTK+ headers already does that for you. When building GTK+ for Windows with MSVC, gdkconfig.h.win32 is copied to gdkconfig.h. If

Re: GVariant for prez!

2009-04-13 Thread Mikkel Kamstrup Erlandsen
2009/4/9 Dan Winship d...@gnome.org: Ryan Lortie wrote: The type system, of course, is that of DBus. I love your feedback.  Please give it all to me. I took at a look at GVariant from the perspective of could I make libsoup's XML-RPC (and future JSON) code use GVariant instead of GValue.

Re: What gives us the macro GSEAL()?

2009-04-13 Thread Colomban Wendling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Grzegorz Kuczyński a écrit : Colomban Wendling pisze: Ok I understand the idea, but... how work it? for example: --- struct _GtkWindow { GtkBin bin; gchar *GSEAL (title); --- void gtk_window_set_title (GtkWindow

Re: What gives us the macro GSEAL()?

2009-04-13 Thread Colomban Wendling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Grzegorz Kuczyński a écrit : A. Walton pisze: 2009/4/12 A. Walton awal...@ubuntu.com: ... gtk_window_set_title() is inside of gtk+ and won't need to change. The macro is to prevent external applications from doing window-title = whatever; and

How to process on selected icon in IconView

2009-04-13 Thread frantishek
I am learning gtk+ version 2.12. Currently I am trying to implement icon view, showing thumbnails with text labels. The code I used is as follows: const char* list[] = { 1, 2 , 3, 4, NULL }; filename = gtk_file_chooser_get_filename

Question about gtkrc

2009-04-13 Thread bardzo_szorstki
Hello. I am writin to tou to ask a few questions. The first problem is how to disable icons on GtkButton? There is description how to change spacing bewtween label nad the icon, but I can't find a solution to disable icons at all. The second question is how to change spacing between scroll and

Re: GVariant for prez!

2009-04-13 Thread Havoc Pennington
Hi, On Mon, Apr 13, 2009 at 7:45 AM, Mikkel Kamstrup Erlandsen mikkel.kamst...@gmail.com wrote:  * I really hope there is room in GVariant for NULL values in some way or other. Without a NULL it is hard to map stuff from an SQL DB directly to the serialization format without nasty hacks. This

Re: What gives us the macro GSEAL()?

2009-04-13 Thread Grzegorz Kuczyński
Colomban Wendling pisze: Simply because access to window-title will not be possible any more, as I explained in another mail. - another mail: No, AFAIK, GSEAL_ENABLE is not meant to be put in any GTK+ header, only to be added by hand to your programs' compiling options (e.g. -

Re: GVariant for prez!

2009-04-13 Thread Freddie Unpenstein
From: Mikkel Kamstrup Erlandsen, Date: 13/04/2009 21:45, Wrote: How about dropping GVariant data in a human readable form to a file? I often find myself in the following scenario: I have data that is really not well suited for GConf and can't fit in a GKeyFile, and I also want to allow

Re: GVariant for prez!

2009-04-13 Thread Havoc Pennington
Hi, On Mon, Apr 13, 2009 at 3:00 PM, Ryan Lortie de...@desrt.ca wrote: GVariant has nullable (maybe) types which were a proposed extension to DBus some time ago but never materialised.  iirc, Havoc, you had a favourable opinion of this extension but wasn't sure exactly how we'd handle the

Re: GVariant for prez!

2009-04-13 Thread Havoc Pennington
Hi, On Mon, Apr 13, 2009 at 3:00 PM, Ryan Lortie de...@desrt.ca wrote:  - dictionary entries in GVariant can stand freely (ie: they are not    restricted to being contained in an array). What does it mean if you have a free-floating dict entry? Are you supposed to treat as a dict with one

Re: GVariant for prez!

2009-04-13 Thread Ryan Lortie
Mikkel Kamstrup Erlandsen wrote: I have been silently anticipating GVariant for a while now and I am very happy to see it coming forth now. I am bit in the same camp as Dan here... My primary interest is not necessarily passing GVariants over DBus (although I would also love to do that), but

Re: GVariant for prez!

2009-04-13 Thread Ryan Lortie
Havoc Pennington wrote: Reading the gvariant and gbus source btw, this would be somewhat misleading at the moment; gvariant's type system is a dbus superset, and its serialization format is a proposed dbus v2 format that may or may not ever get used by dbus. (One of the main barriers being that

Re: GVariant for prez!

2009-04-13 Thread Simon McVittie
On Mon, 13 Apr 2009 at 15:56:36 -0400, Havoc Pennington wrote: It looked like you might allow non-string dict keys, was one I noticed. Er, so does D-Bus... Telepathy uses a{uu} in at least one place. I personally think D-Bus has about the right balance for what to allow as a key in a dict (any

Re: GVariant for prez!

2009-04-13 Thread Havoc Pennington
Hi, On Mon, Apr 13, 2009 at 4:32 PM, Simon McVittie simon.mcvit...@collabora.co.uk wrote: On Mon, 13 Apr 2009 at 15:56:36 -0400, Havoc Pennington wrote: It looked like you might allow non-string dict keys, was one I noticed. Er, so does D-Bus... Telepathy uses a{uu} in at least one place. I

Re: GVariant for prez!

2009-04-13 Thread Ryan Lortie
Havoc Pennington wrote: Hi, On Mon, Apr 13, 2009 at 4:32 PM, Simon McVittie simon.mcvit...@collabora.co.uk wrote: On Mon, 13 Apr 2009 at 15:56:36 -0400, Havoc Pennington wrote: It looked like you might allow non-string dict keys, was one I noticed. Er, so does D-Bus... Telepathy uses a{uu}

Re: FYI: better UTF8 decoder.

2009-04-13 Thread Behdad Esfahbod
On 04/13/2009 05:00 AM, Butrus Damaskus wrote: Hi! This page: http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ claims to have better (quicker and smaller?) utf8 decoder. Maybe it would be worth to look at it? Funny how he claims reduced complexity. That's definitely the most complex UTF-8