GNOME Bugzilla – Bug 654007
Use GtkStatusBar for status display
Last modified: 2012-01-16 23:53:39 UTC
Use a GtkStatusbar in the overlay uinstead of our custom frame+label. Status queue code imported from gtk could then be removed. This prepare the introduction of an 'escaping' GtkStatusBar subclass.
Created attachment 191317 [details] [review] Use GtkStatusBar for status display Replace our custom status widget in the overlay by GtkStatusBar. Status queue code copied from Gtk could then be removed. This prepares the introduction of a 'sliding' GtkStatusBar subclass.
Created attachment 191321 [details] [review] Use GtkStatusBar for status display Replace our custom status widget in the overlay by GtkStatusBar. Status queue code copied from Gtk could then be removed. This prepares the introduction of a 'sliding' GtkStatusBar subclass. Fix whitespaces
I'm not really sure about this. It means to use a widget in a completely different way than it's usually used just because you are interested in some aspect of its behavior (namely the stack-like message API). I think copying that code to our thing makes sense, since our widget really is pretty different.
Created attachment 191467 [details] [review] Use GtkStatusBar for status display Replace our custom status widget in the overlay by GtkStatusBar. Status queue code copied from Gtk could then be removed. This prepares the introduction of a 'sliding' GtkStatusBar subclass. Updated: - remove unused method
(In reply to comment #3) > I'm not really sure about this. It means to use a widget in a completely > different way than it's usually used just because you are interested in some > aspect of its behavior (namely the stack-like message API). I think copying > that code to our thing makes sense, since our widget really is pretty > different. GtkStatusbar is a nice fit to, well... display a status bar. Looking at its source, it is not much more complex than using our GtkFrame->GtkLabel + copying the queue code. The hierarchy is a bit deeper with GtkBox->Frame->GtkBox->GtkLabel. Pragmaticaly, The end result being less code duplication and less code to maintain for the exact same result. What's not to love about it ? :) Thanks for your review !
We are sharing NautilusFloatingBar with Nautilus now, so I guess this is obsolete. Thanks for the patch though!