Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-07 Thread jcupitt
Hi Michael, Unfortunately I don't think this is easy. You need o do some kind of crazy hack, like realizing but not mapping the dialog, measuring the size you get, guessing the amount of chrome the theme is adding from that, then setting the default window size and finally mapping. I'd love to

Re: GtkDrawingArea size

2012-03-07 Thread Christopher Howard
On 03/06/2012 02:08 PM, Christopher Howard wrote: Hello again. So, I recently started a project to create a certain board game (in C) using gtk+, and I just started learning gtk+. I was planning to draw the board graphics, pieces, etc. all into one GtkDrawingArea. So, how do I fix the size of

Re: GtkDrawingArea size

2012-03-07 Thread Bernhard Schuster
If you did not yet start implementing it, goocanvas might be another option to the bare stuff. goocanvas allows you to set a fixed paper size. Am 7. März 2012 19:44 schrieb Christopher Howard christopher.how...@frigidcode.com: On 03/06/2012 02:08 PM, Christopher Howard wrote: Hello again. So,

Re: GtkDrawingArea size

2012-03-07 Thread Christopher Howard
On 03/07/2012 11:37 AM, Bernhard Schuster wrote: If you did not yet start implementing it, goocanvas might be another option to the bare stuff. goocanvas allows you to set a fixed paper size. I think the halign and valign properties are what I was looking for. It seems that, if I do an

Re: GtkDrawingArea size

2012-03-07 Thread Stefan Salewski
On Wed, 2012-03-07 at 09:44 -0900, Christopher Howard wrote: X Bump. I'm trying to look through some other projects to see how this is done, but I would appreciate it if anyone happens to know of the top of their head. I guess you can have a drawingarea of fixed size if you put it in a

modifiable dialog button labels?

2012-03-07 Thread Roger Davis
Hi all, I am trying to code some reusable GtkDialogs (i.e., create them only once, then hide and reuse them later as necessary rather than destroying and recreating every time). I need numerous dialogs which ask a simple question and then have two buttons for the user to choose between, e.g.,

Re: modifiable dialog button labels?

2012-03-07 Thread Lance Dillon
From: Roger Davis r...@soest.hawaii.edu To: gtk-app-devel-list@gnome.org Sent: Wednesday, March 7, 2012 7:59 PM Subject: modifiable dialog button labels? Hi all, I am trying to code some reusable GtkDialogs (i.e., create them only once, then hide and

Re: modifiable dialog button labels?

2012-03-07 Thread Roger Davis
On Wed, 7 Mar 2012, Lance Dillon wrote: you can use gtk_get_action_area() to get the GtkBox that that is the action area, that itself contains the buttons.  I believe you can then get all the child widgets, which would be the GtkButtons. The  docs for GtkDialog describes it some, but doesn't