Revision e9787f59
| b/py/maugis/debian/control | ||
|---|---|---|
| 10 | 10 |
Package: scenic |
| 11 | 11 |
Architecture: all |
| 12 | 12 |
XB-Python-Version: ${python:Versions}
|
| 13 |
Depends: ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), python-twisted, python-dev, python-gtk2, python-glade2
|
|
| 13 |
Depends: ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), python-twisted, python-dev, python-gtk2, python-glade2, gnome-themes-extras
|
|
| 14 | 14 |
Suggests: python-portmidi |
| 15 | 15 |
Description: Streaming Software for GNU/Linux |
| 16 | 16 |
. |
| b/py/maugis/scenic/gui.py | ||
|---|---|---|
| 51 | 51 |
import gobject |
| 52 | 52 |
import webbrowser |
| 53 | 53 |
import gettext |
| 54 |
import shutil |
|
| 55 |
import tempfile |
|
| 54 | 56 |
|
| 55 | 57 |
from twisted.internet import defer |
| 56 | 58 |
from twisted.internet import error |
| ... | ... | |
| 164 | 166 |
# -------------------------------------- |
| 165 | 167 |
# TODO: move that stuff to the Application class |
| 166 | 168 |
self.config = Config() # XXX |
| 169 |
self.load_gtk_theme() |
|
| 167 | 170 |
self.kiosk_mode_on = kiosk_mode |
| 168 | 171 |
self.send_video_port = None # XXX |
| 169 | 172 |
self.recv_video_port = None # XXX |
| ... | ... | |
| 277 | 280 |
print(str(e)) |
| 278 | 281 |
raise |
| 279 | 282 |
reactor.addSystemEventTrigger("before", "shutdown", self.before_shutdown)
|
| 283 |
reactor.callLater(3, self.load_gtk_theme, "/usr/share/themes/Glossy/gtk-2.0/gtkrc") |
|
| 280 | 284 |
|
| 281 | 285 |
# ------------------ window events and actions -------------------- |
| 286 |
|
|
| 287 |
def load_gtk_theme(self, file_name="/usr/share/themes/Darklooks/gtk-2.0/gtkrc"): |
|
| 288 |
# FIXME: not able to reload themes dynamically. |
|
| 289 |
if os.path.exists(file_name): |
|
| 290 |
gtk.rc_reset_styles(gtk.settings_get_default()) |
|
| 291 |
print "loading theme", file_name |
|
| 292 |
gtk.rc_parse(file_name) |
|
| 293 |
gtk.rc_reparse_all() |
|
| 294 |
else: |
|
| 295 |
print("File name not found: %s" % (file_name))
|
|
| 282 | 296 |
|
| 283 | 297 |
def toggle_fullscreen(self): |
| 284 | 298 |
""" |
Also available in: Unified diff