Re: [gtk-list] Re: [patch] gtkviewport design bug.
- From: Tim Janik <Tim Janik Hamburg Netsurf DE>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: [patch] gtkviewport design bug.
- Date: Sun, 18 Jan 1998 01:56:06 +0100 (CET)
On Sat, 17 Jan 1998, Jay Painter wrote:
> I wasn't able to find your patch, so I don't know exactly what it does,
> but I came up with probably one of the shortest solutions to this problem,
> and it seems to be pretty bullet-proof.
>
> In the container_add function, do
> gtk_signal_connect_after (GTK_OBJECT (clist->column[i].button),
> "realize",
> (GtkSignalFunc) button_realize,
> (gpointer) clist);
>
>
> Then the function is:
> static void
> gtk_clist_column_button_realize (GtkWidget * widget,
> gpointer data)
> {
> GtkCList *clist;
>
> g_return_if_fail (widget != NULL);
> g_return_if_fail (GTK_IS_CLIST (data));
>
> clist = GTK_CLIST (data);
>
> if (widget->window && clist->title_window)
> gdk_window_reparent (widget->window, clist->title_window,
> widget->allocation.x, 0);
> }
>
> This is a good technique to keep in mind if you are composing a new widget
> with multiple windows of it's own, and you want to put widgets into those
> windows which are not widget->window.
hm,. what is about NO_WINDOW widgets?
>
> -----------------------------------------------------------------------
> Jay Painter -- jpaint@serv.net -- jpaint@gimp.org -- jpaint@real.com
> http://www.serv.net/~jpaint
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]