deskbar-applet r2305 - in trunk: . deskbar/core deskbar/handlers



Author: sebp
Date: Sat Aug  9 20:02:07 2008
New Revision: 2305
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2305&view=rev

Log:
2008-08-09  Sebastian PÃlsterl  <sebp cvs gnome org>

    * deskbar/core/Web.py:
    AccountDialog expects parent window as first argument.
    Make dialog modal and destroy with parent.
    Set row spacings to 3 and col spacings to 6.
    
    * deskbar/handlers/twitter.py:
    Adjusted to changes in Web.py

Modified:
   trunk/ChangeLog
   trunk/deskbar/core/Web.py
   trunk/deskbar/handlers/twitter.py

Modified: trunk/deskbar/core/Web.py
==============================================================================
--- trunk/deskbar/core/Web.py	(original)
+++ trunk/deskbar/core/Web.py	Sat Aug  9 20:02:07 2008
@@ -84,11 +84,12 @@
         dialog.destroy()
     
     """
-    def __init__ (self, account, dialog_type=gtk.MESSAGE_QUESTION):
+    def __init__ (self, parent, account, dialog_type=gtk.MESSAGE_QUESTION):
         """
         @param account: L{Account} to manage
         """
-        gtk.MessageDialog.__init__(self, None,
+        gtk.MessageDialog.__init__(self, parent=parent,
+                                   flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
                                    type=dialog_type,
                                    buttons=gtk.BUTTONS_OK_CANCEL)
         
@@ -108,6 +109,8 @@
         password_label = gtk.Label (_("Password:"))
         
         table = gtk.Table (2, 2)
+        table.set_row_spacings(3)
+        table.set_col_spacings(6)
         table.attach (user_label, 0, 1, 0, 1)
         table.attach (self._user_entry, 1, 2, 0, 1)
         table.attach (password_label, 0, 1, 1, 2)

Modified: trunk/deskbar/handlers/twitter.py
==============================================================================
--- trunk/deskbar/handlers/twitter.py	(original)
+++ trunk/deskbar/handlers/twitter.py	Sat Aug  9 20:02:07 2008
@@ -200,7 +200,7 @@
         LOGGER.debug ("Showing config")
         account = Account (self._domain, self._realm)
         
-        login_dialog = AccountDialog(account)
+        login_dialog = AccountDialog(parent, account)
         login_dialog.show_all()
         login_dialog.run()            
         login_dialog.destroy()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]