Re: GTK+ Application class



On Wed, 2006-10-25 at 17:39 +0100, Emmanuele Bassi wrote:
> Hi Rodrigo;
> 
> On Wed, 2006-10-25 at 18:33 +0200, Rodrigo Moya wrote:
>  
> > > That could be a route to explore - I think its really important to
> > > keep GtkWindow really simple in that respect though - it could be
> > > a dialog - it could be a popup window, a popup menu - or even a tooltip,
> > > So I would suggest that if we bind such logic into GtkWindow - making
> > > it some kind of hybrid composite widget - we should definitly do
> > > that in a GtkAppWindow subclass (that could be then used by the
> > > GtkApplication in question).
> > > 
> > and why not have:
> > 
> > gtk_window_new -> as it is now
> > gtk_window_new_dialog (buttons,...)
> > gtk_window_new_main_app(menus, toolbar, etc)
> > 
> > ?
> 
> Because we have a clear separation: a GtkDialog is a GtkWindow but not
> the other way around.  GtkWindow is a primitive object which should be
> specialised in subclasses.
> 
> I'm not sure that having a GtkApplicationWindow is the road to go
>
yay, so it's probably better to have convenience functions on
GtkApplication, like:

gtk_application_create_dialog
gtk_application_create_main_window

?
-- 
Rodrigo Moya <rodrigo gnome-db org>




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