Changeset 652
- Timestamp:
- 05/12/07 16:51:16 (6 years ago)
- Files:
-
- 4 modified
- 1 copied
-
branch/hildon/umitGUI/MainWindow.py (modified) (5 diffs)
-
branch/hildon/umitGUI/ScanNotebook.py (modified) (2 diffs)
-
branch/hildon/umitGUI/ScanToolbar.py (modified) (1 diff)
-
branch/hildon/umitGUI/SearchWindow.py (modified) (1 diff)
-
trunk/higwidgets/higframe.py (copied) (copied from branch/ggpolo/higwidgets/higframe.py)
Legend:
- Unmodified
- Added
- Removed
-
branch/hildon/umitGUI/MainWindow.py
r624 r652 53 53 try: 54 54 if sys.platform == 'win32': root = True 55 elif is_maemo(): root = True 55 56 elif os.getuid() == 0: root = True 56 57 except: pass … … 66 67 hildon.Window.__init__(self) 67 68 self.set_resizable(False) 68 self.set_border_width(5) 69 self.set_border_width(0) 70 self.vbox = gtk.VBox() 71 self.vbox.set_border_width(0) 72 self.vbox.set_spacing(0) 69 73 70 74 else: … … 72 76 def __init__(self): 73 77 HIGMainWindow.__init__(self) 78 self.vbox = gtk.VBox() 74 79 75 80 … … 84 89 self.add_accel_group(self.main_accel_group) 85 90 86 self.vbox = gtk.VBox()87 91 self.add(self.vbox) 88 92 … … 550 554 self.scan_notebook = ScanNotebook() 551 555 self.scan_notebook.show_all() 552 self.vbox.pack_start(self.scan_notebook, True, True, 4) 556 if is_maemo(): 557 # No padding. We need space! 558 self.vbox.pack_start(self.scan_notebook, True, True, 0) 559 else: 560 self.vbox.pack_start(self.scan_notebook, True, True, 4) 553 561 554 562 def _create_statusbar(self): -
branch/hildon/umitGUI/ScanNotebook.py
r567 r652 37 37 from umitCore.NmapCommand import NmapCommand 38 38 from umitCore.NmapCommand import CommandConstructor 39 from umitCore.UmitConf import CommandProfile, ProfileNotFound 39 from umitCore.UmitConf import CommandProfile, ProfileNotFound, is_maemo 40 40 from umitCore.NmapParser import NmapParser 41 41 from umitCore.Paths import Path … … 262 262 def __init__(self): 263 263 HIGVBox.__init__(self) 264 265 # The borders are consuming too much space on Maemo. Setting it to 266 # 0 pixels while on Maemo 267 if is_maemo(): 268 self.set_border_width(0) 269 264 270 self.set_spacing(0) 265 271 self.status = PageStatus() -
branch/hildon/umitGUI/ScanToolbar.py
r470 r652 56 56 self._create_profile() 57 57 58 self.scan_button = gtk.Button(_("S tart Scan"))58 self.scan_button = gtk.Button(_("Scan")) 59 59 60 60 self._pack_noexpand_nofill(self.target_label) -
branch/hildon/umitGUI/SearchWindow.py
r484 r652 22 22 23 23 from umitCore.I18N import _ 24 from umitCore.UmitConf import is_maemo 24 25 25 26 from higwidgets.higboxes import HIGVBox 26 27 from higwidgets.higbuttons import HIGButton 27 28 28 class SearchWindow(gtk.Window, object): 29 BaseSearchWindow = None 30 hildon = None 31 32 if is_maemo(): 33 import hildon 34 class BaseSearchWindow(hildon.Window): 35 def __init__(self): 36 hildon.Window.__init__(self) 37 else: 38 class BaseSearchWindow(gtk.Window): 39 def __init__(self): 40 gtk.Window.__init__(self) 41 self.set_title(_("Search Window")) 42 self.set_position(gtk.WIN_POS_CENTER) 43 44 class SearchWindow(BaseSearchWindow, object): 29 45 def __init__(self, load_method): 30 gtk.Window.__init__(self) 31 self.set_title(_("Search Window")) 32 self.set_position(gtk.WIN_POS_CENTER) 46 BaseSearchWindow.__init__(self) 33 47 34 48 self.load_method = load_method
