[25460] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r24840 - trunk/debathena/config/gdm-config/debian

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Wed Mar 2 19:52:56 2011

Date: Wed, 2 Mar 2011 19:52:49 -0500 (EST)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: Jonathan D Reed <jdreed@mit.edu>
cc: source-commits@mit.edu
In-Reply-To: <201008232115.o7NLF3Jv005585@drugstore.mit.edu>
Message-ID: <alpine.DEB.1.10.1103021952390.19401@lunatique.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

ACK r24840, r24841, r24843

-- 
Geoffrey Thomas
geofft@mit.edu

On Mon, 23 Aug 2010, Jonathan D Reed wrote:

> Author: jdreed
> Date: 2010-08-23 17:15:03 -0400 (Mon, 23 Aug 2010)
> New Revision: 24840
>
> Modified:
>   trunk/debathena/config/gdm-config/debian/changelog
>   trunk/debathena/config/gdm-config/debian/debathena-branding
> Log:
> In gdm-config:
>  * Support legacy display resolutions
>
>
> Modified: trunk/debathena/config/gdm-config/debian/changelog
> ===================================================================
> --- trunk/debathena/config/gdm-config/debian/changelog	2010-08-23 18:17:02 UTC (rev 24839)
> +++ trunk/debathena/config/gdm-config/debian/changelog	2010-08-23 21:15:03 UTC (rev 24840)
> @@ -1,5 +1,11 @@
> -debathena-gdm-config (1.23) UNRELEASED; urgency=low
> +debathena-gdm-config (1.23.1) unstable; urgency=low
>
> +  * Support legacy display resolutions
> +
> + -- Jonathan Reed <jdreed@mit.edu>  Mon, 23 Aug 2010 17:14:31 -0400
> +
> +debathena-gdm-config (1.23) unstable; urgency=low
> +
>   * Add an applet to monitor /etc/nologin on new-GDM
>
>  -- Jonathan Reed <jdreed@mit.edu>  Mon, 16 Aug 2010 17:12:59 -0400
>
> Modified: trunk/debathena/config/gdm-config/debian/debathena-branding
> ===================================================================
> --- trunk/debathena/config/gdm-config/debian/debathena-branding	2010-08-23 18:17:02 UTC (rev 24839)
> +++ trunk/debathena/config/gdm-config/debian/debathena-branding	2010-08-23 21:15:03 UTC (rev 24840)
> @@ -16,7 +16,6 @@
> APP_ID = "debathena-branding"
> GLADE_FILE="/usr/share/debathena-branding/debathena-branding.glade"
> DEBATHENA_LOGO_FILE="/usr/share/pixmaps/debathena.png"
> -LOGO_SCALE=0.60
>
> class Branding:
>     def __init__(self):
> @@ -36,11 +35,17 @@
>
>
>         self.winWelcome = self.xml.get_widget('winWelcome')
> -        self.winWelcome.move(self.winWelcome.get_position()[0], 200)
> +        moveY = 200
> +        logoScale = 0.60
> +        if gtk.gdk.screen_height() < 864:
> +            # Here's a nickel, buy a real display
> +            moveY = 0
> +            logoScale = 0.40
> +        self.winWelcome.move(self.winWelcome.get_position()[0], moveY)
>         self.imgDebathena = self.xml.get_widget('imgDebathena')
>         try:
>             pixbuf = gtk.gdk.pixbuf_new_from_file(DEBATHENA_LOGO_FILE)
> -            self.imgDebathena.set_from_pixbuf(pixbuf.scale_simple(pixbuf.get_width() * LOGO_SCALE, pixbuf.get_height() * LOGO_SCALE, gtk.gdk.INTERP_BILINEAR))
> +            self.imgDebathena.set_from_pixbuf(pixbuf.scale_simple(int(pixbuf.get_width() * logoScale), int(pixbuf.get_height() * logoScale), gtk.gdk.INTERP_BILINEAR))
>         except:
>             # Just don't display the image if it's missing
>             pass
>
>

home help back first fref pref prev next nref lref last post