From ef6503021e57ba2e8da4e0eefc5c080fbee2a5cb Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 3 May 2010 18:55:26 -0500 Subject: [PATCH] Setting the window icon --- src/mormonchannel_gtk.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mormonchannel_gtk.py b/src/mormonchannel_gtk.py index 09ebb5d..1b020b3 100755 --- a/src/mormonchannel_gtk.py +++ b/src/mormonchannel_gtk.py @@ -1,6 +1,11 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +""" +@todo Reverse order option. Toggle between playing ascending/descending chronological order +@todo Track recent +""" + from __future__ import with_statement import gc @@ -37,6 +42,8 @@ class MormonChannelProgram(hildonize.get_app_class()): def __init__(self): super(MormonChannelProgram, self).__init__() self._clipboard = gtk.clipboard_get() + self._player = player.Player() + self._store = imagestore.ImageStore("../data", "../data") self._window_in_fullscreen = False #The window isn't in full screen mode initially. @@ -88,6 +95,7 @@ class MormonChannelProgram(hildonize.get_app_class()): self._window = hildonize.hildonize_window(self, self._window) hildonize.set_application_title(self._window, "%s" % constants.__pretty_app_name__) + self._window.set_icon(self._store.get_pixbuf_from_store(self._store.STORE_LOOKUP["icon"])) menuBar = hildonize.hildonize_menu( self._window, menuBar, @@ -118,8 +126,6 @@ class MormonChannelProgram(hildonize.get_app_class()): self._window.show_all() - self._player = player.Player() - self._store = imagestore.ImageStore("../data", "../data") self._windowStack = [windows.SourceSelector(self._player, self._store)] vbox.pack_start(self._windowStack[0].toplevel, True, True) -- 1.7.9.5