Changeset 346
- Timestamp:
- 07/08/06 20:28:54 (2 years ago)
- Files:
-
- trunk/po/es.po (modified) (1 diff)
- trunk/po/mesk.pot (modified) (1 diff)
- trunk/src/control.py (modified) (2 diffs)
- trunk/src/main_window.py (modified) (5 diffs)
- trunk/src/playlist_control.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/po/es.po
r345 r346 8 8 "Project-Id-Version: 0.1.1\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2006-0 6-30 19:09-0600\n"10 "POT-Creation-Date: 2006-07-01 16:38-0600\n" 11 11 "PO-Revision-Date: 2006-04-15 17:38-0600\n" 12 12 "Last-Translator: Travis Shirk <travis@pobox.com>\n" trunk/po/mesk.pot
r345 r346 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2006-0 6-30 19:09-0600\n"11 "POT-Creation-Date: 2006-07-01 16:38-0600\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" trunk/src/control.py
r332 r346 24 24 '''A GUI element''' 25 25 # FIXME: Document 26 27 # The notebook tab widget 28 tab_widget = gtk.Label('') 29 # The notebook page widget 30 widget = None 26 31 27 32 def __init__(self): … … 58 63 self.widget = self.xml.get_widget('empty_control') 59 64 self.widget.show() 60 61 # FIXME62 self.tab_label_ebox = gtk.Label('foo')63 64 #self.xml.get_widget('image_left').set_from_file('images/mesk.svg')65 #self.xml.get_widget('image_right').set_from_file('images/mesk.svg')trunk/src/main_window.py
r340 r346 160 160 def add_notebook_control(self, ctrl): 161 161 162 # FIXME: Add an accessor for the label, with a suitable default163 self._notebook. append_page(ctrl.widget, ctrl.tab_label_ebox)162 new_index = self._notebook.append_page(ctrl.widget, ctrl.tab_widget) 163 self._notebook.set_current_page(new_index) 164 164 165 165 if ctrl != self._empty_control: … … 167 167 # it 168 168 close_button = \ 169 ctrl.tab_ label_ebox.get_children()[0].get_children()[2]169 ctrl.tab_widget.get_children()[0].get_children()[2] 170 170 if mesk.config.getboolean(mesk.CONFIG_UI, 'show_tab_close_button'): 171 171 close_button.connect('clicked', … … 179 179 self._notebook.remove_page(page_num) 180 180 181 # Show tabs and notebook borner when num controls > 1 181 182 if self._notebook.get_n_pages() > 1: 182 183 self._notebook.set_show_tabs(True) 184 self._notebook.set_show_border(True) 185 else: 186 self._notebook.set_show_border(False) 187 183 188 # This list order does not necessarily correspond to the tab order 184 189 self._controls.append(ctrl) … … 186 191 187 192 # Set tab label as drag source and connect the drag_data_get signal 188 ctrl.tab_label_ebox.dnd_handler = \ 189 ctrl.tab_label_ebox.connect('drag_data_get', 190 self._on_tab_drag_data_get) 191 ctrl.tab_label_ebox.drag_source_set(gtk.gdk.BUTTON1_MASK, 192 self.DND_TARGETS, 193 gtk.gdk.ACTION_MOVE) 193 ctrl.tab_widget.dnd_handler = \ 194 ctrl.tab_widget.connect('drag_data_get', self._on_tab_drag_data_get) 195 ctrl.tab_widget.drag_source_set(gtk.gdk.BUTTON1_MASK, self.DND_TARGETS, 196 gtk.gdk.ACTION_MOVE) 194 197 195 198 def remove_notebook_control(self, ctrl): … … 221 224 self.add_notebook_control(self._empty_control) 222 225 elif self._notebook.get_n_pages() == 1: 226 self._notebook.set_show_border(False) 223 227 # DnD clean up 224 228 self._notebook.drag_dest_unset() trunk/src/playlist_control.py
r344 r346 74 74 # Setup tab label 75 75 self.tab_label_xml = gtk_utils.get_glade('playlist_tab_ebox') 76 self.tab_label_ebox = self.tab_label_xml.get_widget('playlist_tab_ebox') 77 self.tab_label_ebox\ 78 .connect('button-press-event', 79 self._on_playlist_tab_ebox_button_press_event) 76 self.tab_widget = self.tab_label_xml.get_widget('playlist_tab_ebox') 77 self.tab_widget.connect('button-press-event', 78 self._on_playlist_tab_ebox_button_press_event) 80 79 # FIXME: My handler is never called 81 self.tab_ label_ebox.connect('key-press-event',82 self._on_playlist_tab_key_press_event)80 self.tab_widget.connect('key-press-event', 81 self._on_playlist_tab_key_press_event) 83 82 self.tab_label_label = \ 84 83 self.tab_label_xml.get_widget('playlist_tab_label') … … 251 250 self._is_active = active 252 251 252 # Connect events for audio_control on first activation 253 253 if self._is_active and not self._initial_active: 254 254 assert(self._audio_control) 255 # Connect events for audio_control of first active256 255 self._initial_active = True 257 256 self._audio_control.connect('play', self._on_audio_playing)
