How to get a widget from a dialog widget

2005-11-01 Thread suganya
Hi all, In function 1, I have created a a dialog widget which has 5 check buttons and I am check marking first 2 check buttons. The dialog widget is being passed as an argument for this function 2. How will I see which check buttons are checked and which are not. The declaration for check button

Re: Getting the pixel size of a Pango layout

2005-11-01 Thread Rob Chansky
Olivier Sessink wrote: I'm not sue if it answers your complete question, but are you aware of http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html question 1.13 ? Thank you, Oliver, but I wish it did.. :) pango_layout_get_pixel_size() returned the same too-large value that ..

optimal way to use Memory Chunks

2005-11-01 Thread Olivier Sessink
Hi all, I was considering to use the GMemChunk infrastructure for some of my code, where often 50 till 5000 structs of 4 bytes are allocated. I will use the G_ALLOC_AND_FREE mode, because many items are not used after a while, but not all. I am, however, wondering if GMemChunk has much overhead.

Re: Getting the pixel size of a Pango layout

2005-11-01 Thread Olivier Sessink
Rob Chansky wrote: > Hi all, > > I've been trying to get the size of a Pango layout and I am having > problems. My code is doing roughly this: > > string text = "1"; > text = "" + text.text + ""; > > pango_layout_set_markup (mTextObjLayout, text.c_str(), -1); > > PangoRectangle ext; > pango_lay

Getting the pixel size of a Pango layout

2005-11-01 Thread Rob Chansky
Hi all, I've been trying to get the size of a Pango layout and I am having problems. My code is doing roughly this: string text = "1"; text = "" + text.text + ""; pango_layout_set_markup (mTextObjLayout, text.c_str(), -1); PangoRectangle ext; pango_layout_get_pixel_extents (mMapTextLayout, N

Re: Drawing 1-bit bitmaps

2005-11-01 Thread John Cupitt
On 11/1/05, Juhana Sadeharju <[EMAIL PROTECTED]> wrote: > What library can load 1-bit images to a format GTK understands? > My 1-bit images have been very large, the library should be > able to extract only a rectangle from the image before converting > anything to 24-bit. > > What library can hand

Re: Drawing 1-bit bitmaps

2005-11-01 Thread Juhana Sadeharju
>From: George Williams <[EMAIL PROTECTED]> > >So I continue to believe that gdk does not support 1-bit client side >images. But I keep hoping I'm missing something. What library can load 1-bit images to a format GTK understands? My 1-bit images have been very large, the library should be able to

Re: Naming conventions

2005-11-01 Thread Paul Pogonyshev
César Leonardo Blum Silveira wrote: > Are there any naming conventions used for naming my widgets' > variables, so that for example when I have to name a label, instead of > naming it foo_label I could name it lblFoo? Well, why you would choose such a cryptic name over the perfectly readable `foo_

Re: GtkTooltips event handler

2005-11-01 Thread Iago Rubio
On Tue, 2005-11-01 at 09:33 +0100, Gian Mario Tagliaretti wrote: > 2005/11/1, Iago Rubio <[EMAIL PROTECTED]>: > > > Quoted text is from the doc. > > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html > > Thanks Iago but I've read the docs myself also before as I usually do, I'm

Re: GtkTooltips event handler

2005-11-01 Thread Gian Mario Tagliaretti
2005/11/1, Iago Rubio <[EMAIL PROTECTED]>: > Quoted text is from the doc. > http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html Thanks Iago but I've read the docs myself also before as I usually do, what I don't really understand is what it means "INFERIOR", what is considered an

Re: Programming style

2005-11-01 Thread Stefan Kost
hi, Wallace Owen wrote: On Mon, 2005-10-24 at 17:21 -0400, Tristan Van Berkom wrote: ... I just wanted to point out that the user data argument is usable and efficient (since nobody had mentioned that yet). Ofcourse there are cases where it isn't convenient to use the user_data; I might as we

Re: GtkTooltips event handler

2005-11-01 Thread Iago Rubio
On Mon, 2005-10-31 at 23:38 +0100, Gian Mario Tagliaretti wrote: > Hi all, > > I don't know if this is the correct list to ask these questions, is > something about gtk internals, but I don't think devel-list will > appeciate these kind of questions :) if not please let me know. > > I was looking