gyrus r343 - in branches/gyrus-python: . src



Author: csaavedra
Date: Wed Apr  2 20:22:31 2008
New Revision: 343
URL: http://svn.gnome.org/viewvc/gyrus?rev=343&view=rev

Log:
2008-04-02  Claudio Saavedra  <csaavedra gnome org>

	* src/gyrus.py: Fix some indentation glitches with previous patch.
	Fixes bug #524244.



Modified:
   branches/gyrus-python/ChangeLog
   branches/gyrus-python/src/gyrus.py

Modified: branches/gyrus-python/src/gyrus.py
==============================================================================
--- branches/gyrus-python/src/gyrus.py	(original)
+++ branches/gyrus-python/src/gyrus.py	Wed Apr  2 20:22:31 2008
@@ -160,17 +160,17 @@
         self.actiongroup_acl.set_sensitive (False)
 
         # creat actions
-            self.actiongroup_window.add_actions([
-             ('FileMenu', None, _('_File')),
-             ('OpenSession', gtk.STOCK_DISCONNECT, _('Go to server...'),'<control>O',
-             _('Show the list of servers'), gyrus_session.load_interface),
-             ('Quit', gtk.STOCK_QUIT, _('_Quit'), None, _('Quit the Program'), self.quit_program),
-             ('EditMenu', None, _('_Edit')),
-             ('AclMenu', None, _('_ACL')),
-             ('ViewMenu', None, _('_View')),
-             ('HelpMenu', None, _('_Help')),
-             ('About', gtk.STOCK_ABOUT, None, None, None, self.show_about),
-             ], user_data=self)
+        self.actiongroup_window.add_actions([
+            ('FileMenu', None, _('_File')),
+            ('OpenSession', gtk.STOCK_DISCONNECT, _('Go to server...'),'<control>O',
+            _('Show the list of servers'), gyrus_session.load_interface),
+            ('Quit', gtk.STOCK_QUIT, _('_Quit'), None, _('Quit the Program'), self.quit_program),
+            ('EditMenu', None, _('_Edit')),
+            ('AclMenu', None, _('_ACL')),
+            ('ViewMenu', None, _('_View')),
+            ('HelpMenu', None, _('_Help')),
+            ('About', gtk.STOCK_ABOUT, None, None, None, self.show_about),
+            ], user_data=self)
 
         self.actiongroup_server.add_actions([
              ('AddMailbox', gtk.STOCK_ADD, _('Add mailbox'),None, _('Add a mailbox under the one selected'), self.on_addmailbox_action),
@@ -224,32 +224,32 @@
         return
 
     def main(self):
-            "Begin cicle main"
+        "Begin cicle main"
         gtk.main()
 
     def quit_program(self,data1=None,data2=None):
         "Quit of program"
         gtk.main_quit()
 
-        def show_about (widget,data,self):
-                self.about.show()
+    def show_about (widget,data,self):
+        self.about.show()
 
-        def create_about_dialog (self):
-                authors = ('Alejandro Valdes Jimenez','Francisco Rojas')
-                translator_credits = ('Alejandro Valdes Jimenez')
-                logo =  gtk.gdk.pixbuf_new_from_file (LOGO)
-
-                ad = gtk.AboutDialog()
-                ad.set_name(config.PACKAGE)
-                ad.set_version(config.VERSION)
-                ad.set_authors(authors)
-                ad.set_translator_credits(translator_credits)
-                ad.set_logo(logo)
+    def create_about_dialog (self):
+        authors = ('Alejandro Valdes Jimenez','Francisco Rojas')
+        translator_credits = ('Alejandro Valdes Jimenez')
+        logo =  gtk.gdk.pixbuf_new_from_file (LOGO)
+
+        ad = gtk.AboutDialog()
+        ad.set_name(config.PACKAGE)
+        ad.set_version(config.VERSION)
+        ad.set_authors(authors)
+        ad.set_translator_credits(translator_credits)
+        ad.set_logo(logo)
 
-                ad.connect ("delete-event", self.about_delete)
-                ad.connect ("response", self.about_delete)
+        ad.connect ("delete-event", self.about_delete)
+        ad.connect ("response", self.about_delete)
 
-                return ad
+        return ad
 
     def about_delete (self,about,event):
          about.hide ()
@@ -265,32 +265,32 @@
         admin.image_cnx.set_from_stock (gtk.STOCK_DISCONNECT,gtk.ICON_SIZE_BUTTON)
 
         # create a new page on notebook
-                hbox_image = gtk.HBox(False,0)
-                image = gtk.Image()
-                image.set_from_stock('gtk-close','GTK_ICON_SIZE_MENU')
-                hbox_image.pack_start(image,True,False,False)
-
-                button = gtk.Button()
-                button.set_relief('GTK_RELIEF_NONE')
-                button.add(hbox_image)
+        hbox_image = gtk.HBox(False,0)
+        image = gtk.Image()
+        image.set_from_stock('gtk-close','GTK_ICON_SIZE_MENU')
+        hbox_image.pack_start(image,True,False,False)
+
+        button = gtk.Button()
+        button.set_relief('GTK_RELIEF_NONE')
+        button.add(hbox_image)
         button.connect('clicked',self.on_button_page_clicked,admin)
 
         hbox_b = gtk.HBox(False,0)
-                label = gtk.Label(session.name)
-                hbox_b.pack_start(label,True,False,False)
+        label = gtk.Label(session.name)
+        hbox_b.pack_start(label,True,False,False)
         hbox_b.pack_start(button,True,False,False)
 
-                hbox_image.show()
-                image.show()
-                button.show()
+        hbox_image.show()
+        image.show()
+        button.show()
         label.show()
 
         # create treeview/treemodel for users
         model = gtk.TreeStore(gtk.gdk.Pixbuf,
-                    gobject.TYPE_STRING)
+                gobject.TYPE_STRING)
 
-            col = gtk.TreeViewColumn (_("Mailboxs"))
-            col.set_resizable (True)
+        col = gtk.TreeViewColumn (_("Mailboxs"))
+        col.set_resizable (True)
         admin.treeview_users.append_column (col)
         cell = gtk.CellRendererPixbuf()
         col.pack_start (cell,False)
@@ -434,16 +434,16 @@
         # add new iter to model acl 
         model_acl = admin.treeview_acl.get_model()
         iter = model_acl.append(None)
-                model_acl.set(iter,COLUMN_IDENTIFIER,_("identifier"),
-                               COLUMN_L,True,
-                               COLUMN_R,True,
-                               COLUMN_S,True,
-                               COLUMN_W,True,
-                               COLUMN_I,True,
-                               COLUMN_P,True,
-                               COLUMN_C,True,
-                               COLUMN_D,True,
-                               COLUMN_A,True)
+        model_acl.set(iter,COLUMN_IDENTIFIER,_("identifier"),
+                        COLUMN_L,True,
+                        COLUMN_R,True,
+                        COLUMN_S,True,
+                        COLUMN_W,True,
+                        COLUMN_I,True,
+                        COLUMN_P,True,
+                        COLUMN_C,True,
+                        COLUMN_D,True,
+                        COLUMN_A,True)
 
         # select the iter
         selection = admin.treeview_acl.get_selection()



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