FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-17-2012, 07:42 PM
Chris Lumens
 
Default Let WM place the window (#821077)

> diff --git a/firstboot/interface.py b/firstboot/interface.py
> index d5eff3c..58965c2 100644
> --- a/firstboot/interface.py
> +++ b/firstboot/interface.py
> @@ -197,6 +197,8 @@ class Interface(object):
> geometry = screen.get_monitor_geometry(monitor)
> self._x_size = geometry.width
> self._y_size = geometry.height
> + logging.info("Setting size to %sx%s" % (self._x_size, self._y_size))
> + self.win.set_size_request(self._x_size, self._y_size)
>
> def createMainWindow(self):
> """Create and initialize the main window. This includes switching to
> @@ -206,7 +208,7 @@ class Interface(object):
> """
> # Create the initial window and a vbox to fill it with.
> self.win = gtk.Window()
> - self.win.set_position(gtk.WIN_POS_CENTER)
> + self.win.set_position(gtk.WIN_POS_NONE)
> self.win.set_decorated(False)
> # we don't set border width here so that the sidebar will meet
> # the edge of the screen

I can't help but think I've seen this before, but given all the testing
you've put into it, ACK. I think mgracik will appreciate not having to
do the waiting game that he hated so much.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-18-2012, 05:39 AM
Martin Gracik
 
Default Let WM place the window (#821077)

Yes, Brian you rule, I didn't know what to do with this.

----- Original Message -----
> > diff --git a/firstboot/interface.py b/firstboot/interface.py
> > index d5eff3c..58965c2 100644
> > --- a/firstboot/interface.py
> > +++ b/firstboot/interface.py
> > @@ -197,6 +197,8 @@ class Interface(object):
> > geometry = screen.get_monitor_geometry(monitor)
> > self._x_size = geometry.width
> > self._y_size = geometry.height
> > + logging.info("Setting size to %sx%s" % (self._x_size,
> > self._y_size))
> > + self.win.set_size_request(self._x_size, self._y_size)
> >
> > def createMainWindow(self):
> > """Create and initialize the main window. This includes
> > switching to
> > @@ -206,7 +208,7 @@ class Interface(object):
> > """
> > # Create the initial window and a vbox to fill it with.
> > self.win = gtk.Window()
> > - self.win.set_position(gtk.WIN_POS_CENTER)
> > + self.win.set_position(gtk.WIN_POS_NONE)
> > self.win.set_decorated(False)
> > # we don't set border width here so that the sidebar will
> > meet
> > # the edge of the screen
>
> I can't help but think I've seen this before, but given all the
> testing
> you've put into it, ACK. I think mgracik will appreciate not having
> to
> do the waiting game that he hated so much.
>
> - Chris
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org