gtk_widget_get_allocation



On Thu, 2008-09-25 at 02:02 +0200, Christian Dywan wrote:
> >      * gtk_widget_get_allocation
> >        Removed in 2.14.1
> 
> The prototype of this function was not agreed upon among the core
> developers. So the decision was deferred to the next Gtk version.
> It had to be removed before final API freeze, otherwise it could not
> have been changed anymore.

This is rather old, but it never came up again after this so I'd like to
see what thoughts are about how to implement this in C.  It was in 2.13
but removed before 2.14 because of disagreement, but I can't find any
public record of the disagreement in gtk-devel-list.  Can anyone comment
on what was not liked, or how a better implementation could be made?

For reference, this is the previous implementation:

GtkAllocation
gtk_widget_get_allocation (GtkWidget *widget)
{
  static GtkAllocation allocation = { 0 };
  g_return_val_if_fail (GTK_IS_WIDGET (widget), allocation);

  return widget->allocation;
}

/ Cody



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