Re: Our size allocation issues



On Tue, 2002-08-20 at 11:32, Michael Meeks wrote:
> @@ -512,6 +514,12 @@ gtk_socket_size_allocate (GtkWidget     
>           child_allocation.height = allocation->height;
>  
>           gtk_widget_size_allocate (socket->plug_widget, &child_allocation);
> +
> +         if (socket->need_map)
> +           {
> +             gdk_window_show (socket->plug_window);
> +             socket->need_map = FALSE;
> +           }

	It turns out that this is bogus; it doesn't set GTK_MAPPED on the plug,
due to the magic in gtk_plug_set_is_child, instead:

@@ -512,6 +514,13 @@ gtk_socket_size_allocate (GtkWidget     
          child_allocation.height = allocation->height;
 
          gtk_widget_size_allocate (socket->plug_widget,
&child_allocation);
+
+         if (socket->need_map)
+           {
+              if (GTK_WIDGET_VISIBLE (socket->plug_widget))
+               gtk_widget_map (socket->plug_widget);
+             socket->need_map = FALSE;
+           }
        }

	with equivalent ChangeLog; so Nautilus renders it's scrollbars
properly.

	Hmm,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]