Re: On deprecating GtkTearOffMenuItem



On Sat, 2010-06-05 at 15:33 +0400, Stanislav Maslovski wrote:

> How many LOC/bytes this change will save?

deprecation seldom has to do with lines of code or bytes saved; those
are broken metrics.

the TearoffMenuItem has been proposed for deprecation because:

  • it's a broken user interaction metaphor, that just provides a way
for the user to unbreak poorly designed applications;
  • it does complicate the code in GtkMenu because it has to handle the
case where the menu window becomes a detached top-level under the window
manager's domain.

>  Does it really makes a
> considerable difference? Is the related code too complicated to
> maintain (seems hard to believe)?

well, you should open gtk/gtkmenu.c some time. you'd find it easier to
believe.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi



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