Olexiy Avramchenko wrote:
GtkLayout doesn't emit "configure-event". Try to connect to
"size-allocate" signal of the layout. You'll get the actual size of
the layout in the signal handler's second parameter.
Works like a charm. Thanks!
--
Sander
___
g
Olexiy Avramchenko wrote:
On 3/21/06, Sander Marechal <[EMAIL PROTECTED]> wrote:
Is it possible to remove that container, or set it's grey background to
transparent so that the rounded button shape is drawn directly on the
green canvas? A GIMPed mockup of the desired result is at [2].
There's
On 3/21/06, Sander Marechal <[EMAIL PROTECTED]> wrote:
> I'm also having trouble getting the GtkLayout resized properly if the
> main window changes size. It looks like GtkLayout and it's container
> element GtkScrolledWindow do not send out configure_event's when the
> main GtkWindow is resized. I
On 3/21/06, Sander Marechal <[EMAIL PROTECTED]> wrote:
> The button is sitting neatly on top of the playing area now, but it has
> a small grey box around it. See the screenshot at [1]. I think that the
> 1 pixel grey border is added by an invisible container widget that holds
> the button in quest
Olexiy Avramchenko wrote:
Take a look at GtkLayout instead of GtkDrawingArea. This widget
provides a window GtkLayout::bin_window that can be used for custom
drawing like GtkDrawingArea and also it is a container like GtkFixed.
I'm also having trouble getting the GtkLayout resized properly if
Olexiy Avramchenko wrote:
Sander Marechal wrote:
Is there a way to add a button inside (or on top) a GtkDrawingArea
using glade? Or using Gtk directly in C? Glade wouldn't let me add
one. If it isn't possible, is there an easy way I can "fake" the
effect of a button sitting in the middle of th
Sander Marechal wrote:
Hello,
I am writing a hearts game for GNOME using glade and the libglade XML
loader. The main playing area is a big GtkDrawingArea. I need to add a
button in the middle of the drawing area during the beginning of the
game (when you are passing cards to another player).