deskbar-applet r2047 - in trunk: . deskbar/ui/preferences



Author: sebp
Date: Sat Mar 29 14:53:46 2008
New Revision: 2047
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2047&view=rev

Log:
Dialog that shows success message is not blocking anymore and modal. Text in ProgressbarDialog is no longer selectable

Modified:
   trunk/ChangeLog
   trunk/deskbar/ui/preferences/DeskbarPreferences.py
   trunk/deskbar/ui/preferences/ProgressbarDialog.py

Modified: trunk/deskbar/ui/preferences/DeskbarPreferences.py
==============================================================================
--- trunk/deskbar/ui/preferences/DeskbarPreferences.py	(original)
+++ trunk/deskbar/ui/preferences/DeskbarPreferences.py	Sat Mar 29 14:53:46 2008
@@ -224,8 +224,9 @@
                        type=gtk.MESSAGE_INFO,
                        buttons=gtk.BUTTONS_OK,
                        message_format=_("Extension has been installed successfully"))
-        dialog.connect('response', lambda w, id: dialog.destroy())
-        dialog.run ()
+        dialog.set_modal(True)
+        dialog.connect ('response', lambda w, r: w.destroy())
+        dialog.show_all ()
         
     def _tags_sort_func(self, model, iter1, iter2):
         val1 = model[iter1][0]
@@ -542,10 +543,12 @@
         
         # Remove from webmodulelist
         if self.__capuchin_installing:
+            # We where installing a new module
             model, iter = self.webmoduleview.get_selection().get_selected()
             self.web_module_list.remove (iter)
             self.__capuchin_installing = False
         else:
+            # We updated a already installed module
             model, iter = self.moduleview.get_selection().get_selected()
             self.module_list[iter][self.module_list.MODULE_CTX_COL].set_updateable (False)
             self.module_list.set_module_update_available(iter, False)
@@ -572,8 +575,8 @@
             dialog = ErrorDialog(self.dialog,
                                  _("Extension could not be installed due a problem with the provided file"),
                                  traceback.format_exc() )
-        
             dialog.run()
+        
         return
     
     def on_button_top_clicked(self, button):

Modified: trunk/deskbar/ui/preferences/ProgressbarDialog.py
==============================================================================
--- trunk/deskbar/ui/preferences/ProgressbarDialog.py	(original)
+++ trunk/deskbar/ui/preferences/ProgressbarDialog.py	Sat Mar 29 14:53:46 2008
@@ -22,7 +22,6 @@
         self.text = gtk.Label()
         self.text.set_alignment(0.0, 0.0)
         self.text.set_line_wrap(True)
-        self.text.set_selectable(True)        
         self.vbox2.pack_start(self.text, False, True, 0)
         
         # VBox containing ProgressBar and status



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