X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fdc_glade.py;h=690039e54d9476be92892ed638964715055b33d8;hb=29f545b149526c96a0ba15841c20d15333d90e9d;hp=3b5f0041b181fcced6cd3a58057d9dea0b4f6397;hpb=24d388f15cd9a1d6079134c1679d463785a741f9;p=gc-dialer diff --git a/src/dc_glade.py b/src/dc_glade.py index 3b5f004..690039e 100755 --- a/src/dc_glade.py +++ b/src/dc_glade.py @@ -18,7 +18,6 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -@bug Need to add unit tests @todo Look into an actor system @bug Session timeouts are bad, possible solutions: @li For every X minutes, if logged in, attempt login @@ -128,9 +127,13 @@ class Dialcentral(object): self._window = hildon.Window() oldWindow.get_child().reparent(self._window) self._app.add_window(self._window) - self._widgetTree.get_widget("usernameentry").set_property('hildon-input-mode', 7) - self._widgetTree.get_widget("passwordentry").set_property('hildon-input-mode', 7|(1 << 29)) - self._widgetTree.get_widget("callbackcombo").get_child().set_property('hildon-input-mode', (1 << 4)) + + try: + self._widgetTree.get_widget("usernameentry").set_property('hildon-input-mode', 7) + self._widgetTree.get_widget("passwordentry").set_property('hildon-input-mode', 7|(1 << 29)) + self._widgetTree.get_widget("callbackcombo").get_child().set_property('hildon-input-mode', (1 << 4)) + except TypeError, e: + warnings.warn(e.message) hildon.hildon_helper_set_thumb_scrollbar(self._widgetTree.get_widget('recent_scrolledwindow'), True) hildon.hildon_helper_set_thumb_scrollbar(self._widgetTree.get_widget('message_scrolledwindow'), True) hildon.hildon_helper_set_thumb_scrollbar(self._widgetTree.get_widget('contacts_scrolledwindow'), True) @@ -708,7 +711,7 @@ class Dialcentral(object): dlg.set_name(constants.__pretty_app_name__) dlg.set_version(constants.__version__) dlg.set_copyright("Copyright 2008 - LGPL") - dlg.set_comments("Dialer is designed to interface with your Google Grandcentral account. This application is not affiliated with Google or Grandcentral in any way") + dlg.set_comments("Dialcentral is a touch screen enhanced interface to your GoogleVoice/Grandcentral account. This application is not affiliated with Google in any way") dlg.set_website("http://gc-dialer.garage.maemo.org/") dlg.set_authors(["", "Eric Warnke ", "Ed Page "]) dlg.run()