Re: Preserved Window Placement



Le dimanche 28 octobre 2012 à 14:10 -0600, Federico Mena Quintero a
écrit :
> On Sun, 2012-10-28 at 08:53 +0000, Richard Hughes wrote:
> 
> > I was wondering if we could do something using GtkApplication. It
> > seems a shame to reimplement this in every app when most apps have
> > just one window...
> 
> Even easier and general-purpose:
> 
> gtk_window_set_state_saving_key (window, char *key);
> 
> Call it before realization, and Magic Happens at the right time :)


Empathy has some code (from the good old Gossip time iirc) doing exactly
that:
http://git.gnome.org/browse/empathy/tree/libempathy-gtk/empathy-geometry.h
http://git.gnome.org/browse/empathy/tree/libempathy-gtk/empathy-geometry.c


This logic could probably be implemented in GTK+ and then we could have
a GNOME goal to make use of it where it's relevant.


	G.



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