* Since 770 is suported now, removed my notes on it
* Removed the threading context since we aren't doing that anymore
* Added some reminders for myself in using the SDK
git-svn-id: file:///svnroot/gc-dialer/trunk@51
c39d3808-3fe2-4d86-a59f-
b7f623ee9f21
desktop
os2007
os2008
+
+SDK Enviroment
+===================
+
+Native
+
+Follow install instructions
+ Ubuntu: http://www.linuxuk.org/node/38
+Install Nokia stuff (for each target)
+ fakeroot apt-get install maemo-explicit
+
+Userful commands
+Login
+ /scratchbox/login
+Change targets
+ sb-conf select DIABLO_ARMEL
+ sb-conf select DIABLO_X86
+Fixing it
+ fakeroot apt-get -f install
+
+Starting scratchbox
+ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite
+ scratchbox
+ export DISPLAY=:2
+ af-sb-init.sh start
+Then running a command in the "Maemo" terminal will launch it in the Xephyr session
+ Tip: run with "run-standalone.sh" for niceness?
-770 Support
- GTK Builder -> Glade
- XML -> Glade File (Don't know how many of these matter, we might need to build a seperate glade file)
- object -> widget
- interface -> glade-interface
- Differences in properties
General Python/Maemo stuff
http://pymaemo.garage.maemo.org/documentation.html
DBus
<signal name="clicked" handler="on_loginbutton_clicked"/>
</widget>
</child>
+ <child>
+ <widget class="GtkButton" id="closebutton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="label" translatable="yes">Close</property>
+ <property name="response_id">0</property>
+ <signal name="clicked" handler="on_loginclose_clicked"/>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
import re
import time
import threading
-import contextlib
import gobject
import gtk
import gtk.glade
from gcbackend import GCDialer
import socket
-socket.setdefaulttimeout(5)
-@contextlib.contextmanager
-def gtk_critical_section():
- #The API changed and I hope these are the right calls
- gtk.gdk.threads_enter()
- yield
- gtk.gdk.threads_leave()
+
+socket.setdefaulttimeout(5)
def makeugly(prettynumber):
"on_digit_clicked" : self.on_digit_clicked,
"on_dial_clicked" : self.on_dial_clicked,
"on_loginbutton_clicked" : self.on_loginbutton_clicked,
+ "on_loginclose_clicked" : self.on_loginclose_clicked,
"on_clearcookies_clicked" : self.on_clearcookies_clicked,
# "on_callbackentry_changed" : self.on_callbackentry_changed,
"on_notebook_switch_page" : self.on_notebook_switch_page,
def on_loginbutton_clicked(self, data=None):
self.wTree.get_widget("login_dialog").response(gtk.RESPONSE_OK)
+ def on_loginclose_clicked(self, data=None):
+ sys.exit(0)
+
def on_dial_clicked(self, widget):
self.attemptLogin(3)