--- classmate-tools-0.2.orig/README +++ classmate-tools-0.2/README @@ -1,9 +1,9 @@ -This is a switcher tool that enables the Classmate PC +This is a switcher tool that enables the Classmate PC to toggle a panning mode of 800x600 instead of the physical 800x480. It is recommended to use the example xorg.conf shipped with this source. -You need to have 915resolution and the i810 xserver installed. +You need to have 915resolution and the vesa xserver (or optionally i810) installed. Copy the binary to your $PATH and the .desktop file to /etc/xdg/autostart -The app will start with the desktop session and put a little icon in your +The app will start with the desktop session and put a little icon in your system tray which will toggle between the two modes. --- classmate-tools-0.2.orig/debian/classmate-tools.install +++ classmate-tools-0.2/debian/classmate-tools.install @@ -0,0 +1,4 @@ +etc +usr +doc/* usr/share/doc/classmate-tools +README usr/share/doc/classmate-tools --- classmate-tools-0.2.orig/debian/rules +++ classmate-tools-0.2/debian/rules @@ -0,0 +1,46 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian rules file for classmate tools + +#export DH_VERBOSE=1 + + +build: build-stamp + +build-stamp: + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman debian/classmate-screen-switch.1 + dh_install + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +binary-arch: + +binary: binary-indep +.PHONY: build clean binary-indep binary install --- classmate-tools-0.2.orig/debian/copyright +++ classmate-tools-0.2/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Oliver Grawert on +Mon, 24 Oct 2007 10:01:23 +0100. + +Copyright Holder: 2007 Canonical Ltd. (Oliver Grawert ) + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- classmate-tools-0.2.orig/debian/compat +++ classmate-tools-0.2/debian/compat @@ -0,0 +1 @@ +5 --- classmate-tools-0.2.orig/debian/control +++ classmate-tools-0.2/debian/control @@ -0,0 +1,14 @@ +Source: classmate-tools +Section: misc +Priority: optional +Maintainer: Oliver Grawert +Build-Depends: debhelper (>= 5.0.37) +Standards-Version: 3.7.3 + +Package: classmate-tools +Architecture: all +Depends: ${misc:Depends}, x11-xserver-utils, python-gtk2 (>= 2.18), python +Recommends: xserver-xorg-video-vesa +Description: classmate specific gui tools + Specific GUI tools for the classmatePC desktop, this includes a little applet + to switch to an 800x600 virtual screen. --- classmate-tools-0.2.orig/debian/classmate-screen-switch.1 +++ classmate-tools-0.2/debian/classmate-screen-switch.1 @@ -0,0 +1,40 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH CLASSMATE-SCREEN-SWITCH 1 "October 24, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +classmate-screen-switch \- program to switch to a virtual screen on a classmatePC +.SH SYNOPSIS +.B classmate-screen-switch +.SH DESCRIPTION +This manual page documents briefly the +.B classmate-screen-switch +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBclassmate-screen-switch\fP adds an applet to the classmatePC notification area that enables you to switch to a bigger virtual screen +.SH OPTIONS +This program follows the usual GNU command line syntax but has no +options. This manpage is only here to fulfill the debian policy. +The app is started by a .desktop file from /etc/xdg/autostart. +.br +.SH AUTHOR +classmate-screen-switch was written by Oliver Grawert . +.PP +This manual page was written by Oliver Grawert , +for ubuntu (but may be used by others). --- classmate-tools-0.2.orig/debian/changelog +++ classmate-tools-0.2/debian/changelog @@ -0,0 +1,76 @@ +classmate-tools (0.2-0ubuntu8) saucy; urgency=low + + * Port from python-eggtrayicon to gtk.StatusIcon. + + -- Colin Watson Tue, 01 Oct 2013 00:56:37 +0100 + +classmate-tools (0.2-0ubuntu7) quantal; urgency=low + + * debian/control: added ${misc:Depends} to depends + + -- Benjamin Kerensa Mon, 17 Sep 2012 23:27:31 -0700 + +classmate-tools (0.2-0ubuntu6) lucid; urgency=low + + * debian/control: + - Depend on python-eggtrayicon rather than python-gnome2-extras + + -- Chris Coulson Mon, 29 Mar 2010 23:14:32 +0100 + +classmate-tools (0.2-0ubuntu5) jaunty; urgency=low + + * Drop xserver-xorg-video-i810 from Recommends as it is going away and + -vesa is an alternative. + + -- James Westby Mon, 12 Jan 2009 23:19:35 +0000 + +classmate-tools (0.2-0ubuntu4) hardy; urgency=low + + * use i810 with disabled DRI instead of vesa, saves actually + more ram and we still get proper xv support + + -- Oliver Grawert Thu, 27 Mar 2008 01:05:26 +0100 + +classmate-tools (0.2-0ubuntu3) hardy; urgency=low + + * updated xorg.conf + * added vesa to recommends since it takes way less ram than i810 + * updated README + + -- Oliver Grawert Wed, 12 Mar 2008 22:52:15 +0100 + +classmate-tools (0.2-0ubuntu2) hardy; urgency=low + + * drop dep on -desktop metapackages + + -- Oliver Grawert Tue, 11 Mar 2008 13:48:59 +0100 + +classmate-tools (0.2-0ubuntu1) hardy; urgency=low + + * fix tabs in code + * fix wording for large screen + * egg.trayicon is in python-gnome2-extras so lets depend on it + * and only depend once on ubuntu-desktop + * add example xorg.conf + * add README + + -- Oliver Grawert Fri, 07 Mar 2008 15:08:33 +0100 + +classmate-tools (0.1-0ubuntu3) hardy; urgency=low + + * no Encoding= in .desktop files enymore + * no XSBC-Original-Maintainer needed here (yet) + + -- Oliver Grawert Fri, 07 Mar 2008 14:58:52 +0100 + +classmate-tools (0.1-0ubuntu2) hardy; urgency=low + + * fix deps, we dont have classmate-settings + + -- Oliver Grawert Fri, 07 Mar 2008 14:44:01 +0100 + +classmate-tools (0.1-0ubuntu1) hardy; urgency=low + + * Initial release. + + -- Oliver Grawert Tue, 07 Mar 2008 14:12:22 +0100 --- classmate-tools-0.2.orig/doc/example-xorg.conf +++ classmate-tools-0.2/doc/example-xorg.conf @@ -13,27 +13,6 @@ # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg -# - -Section "Module" - Load "bitmap" - Load "ddc" - Load "GLCore" - Load "dri" - Load "extmod" - Load "freetype" - Load "glx" - Load "int10" - Load "type1" - Load "v4l" - Load "vbe" - Load "synaptics" - Load "dbe" -EndSection - -Section "Extensions" - Option "Composite" "enable" -EndSection Section "InputDevice" Identifier "Generic Keyboard" @@ -48,10 +27,19 @@ Driver "mouse" EndSection +Section "InputDevice" + Identifier "Synaptics Touchpad" + Driver "synaptics" + Option "SendCoreEvents" "true" + Option "Device" "/dev/psaux" + Option "Protocol" "auto-dev" + Option "HorizEdgeScroll" "0" +EndSection + Section "Device" Identifier "Configured Video Device" Driver "i810" - Option "UseFBDev" "True" + Option "DRI" "false" EndSection Section "Monitor" @@ -61,11 +49,14 @@ Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" - SubSection "Display" - Virtual 800 600 - EndSubSection + Device "Configured Video Device" + SubSection "Display" + Virtual 800 600 + EndSubSection EndSection -Section "DRI" - Mode 0666 +Section "ServerLayout" + Identifier "Default Layout" + Screen "Default Screen" + InputDevice "Synaptics Touchpad" EndSection --- classmate-tools-0.2.orig/usr/bin/classmate-screen-switch +++ classmate-tools-0.2/usr/bin/classmate-screen-switch @@ -21,7 +21,6 @@ # USA import gtk -import egg.trayicon import subprocess # constant string @@ -31,34 +30,26 @@ bigtxt = 'extended' smalltxt = 'normal' -class SwitchTrayIcon(egg.trayicon.TrayIcon): +class SwitchTrayIcon(gtk.StatusIcon): def __init__(self, name): - super(SwitchTrayIcon, self).__init__(name) + super(SwitchTrayIcon, self).__init__() + self.set_property("title", name) subprocess.Popen(['/usr/bin/xrandr', '-s', '800x480']) - self.box = gtk.EventBox() - self.tips = gtk.Tooltips() - self.image = gtk.Image() - - self.tips.enable() - - self.box.add(self.image) - self.box.connect("button_press_event", self.click_handler) - - self.add(self.box) + self.connect("activate", self.activate_handler) if self.isbig() == True: - self.switch_ui(smalltxt, 'gtk-leave-fullscreen') + self.switch_ui(smalltxt, gtk.STOCK_LEAVE_FULLSCREEN) else: - self.switch_ui(bigtxt, 'gtk-fullscreen') + self.switch_ui(bigtxt, gtk.STOCK_FULLSCREEN) - def click_handler(self, widget, event): + def activate_handler(self, status_icon): if self.isbig() == True: size = '800x480' - self.switch_ui(bigtxt, 'gtk-fullscreen') + self.switch_ui(bigtxt, gtk.STOCK_FULLSCREEN) else: - self.switch_ui(smalltxt, 'gtk-leave-fullscreen') + self.switch_ui(smalltxt, gtk.STOCK_LEAVE_FULLSCREEN) size = '800x600' subprocess.Popen(['/usr/bin/xrandr', '-s', size]) @@ -68,11 +59,10 @@ if int(data.stdout.read().split('x')[1].split()[0]) == 600: return True - def switch_ui(self, txt, img): - self.tips.set_tip(self, tipstring % txt) - self.image.set_from_stock(img, gtk.ICON_SIZE_MENU) + def switch_ui(self, txt, stock_id): + self.set_tooltip_text(tipstring % txt) + self.set_from_stock(stock_id) if __name__ == "__main__": icon = SwitchTrayIcon("Screen Status") - icon.show_all() gtk.main()