Hi,
I did not receive any answers so far - If you think this mail is out of
place or someone has a better/different way of achieving this, please
tell me.
Otherwise, any help would be appreciated.
--- original message:
I modified the gtkframe widget to do the following:
/--- frame.al
>I did not receive any answers so far - If you think this mail is out of
>place or someone has a better/different way of achieving this, please
>tell me.
i use frames a lot. i've never noticed the effect you describe, even
with widgets that change size dynamically. i think you should send a
small
Carsten Burstedde <[EMAIL PROTECTED]> writes:
> I modified the gtkframe widget to do the following:
>
> /--- frame.allocation ---\
> |
> | empty space
> |
> | / frame shadow/line \
> | | child widget
> | |
> |
>
> so that the ch
Hi,
Carsten Burstedde <[EMAIL PROTECTED]> writes:
> I did not receive any answers so far - If you think this mail is out of
> place or someone has a better/different way of achieving this, please
> tell me.
>
> Otherwise, any help would be appreciated.
>
> --- original message:
>
> I modified
> > I modified the gtkframe widget to do the following:
> >
> > /--- frame.allocation ---\
> > |
> > | empty space
> > |
> > | / frame shadow/line \
> > | | child widget
> > | |
> > |
> >
> > so that the child widget may change size
> > What can I do? Do I have to set up some virtual function (maybe for
> > gtkcontainer)?
>
> Try:
>
> gtk_container_set_reallocate_redraws (GTK_CONTAINER (my_widget), TRUE);
>
> In your init function. The other thing you could do is call
> gtk_widget_queue_draw() in your size_allocate() method
> assuming that I understood you correctly, you can achieve what you
> describe w/o fiddling around in GTK+ internals by putting a standard
> GtkFrame inside a GtkAlignment:
>
> GtkWidget *align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
> GtkWidget *frame = gtk_frame_new (NULL);
>
> gtk_cont