accerciser r727 - in trunk: . plugins src/lib/accerciser
- From: eitani svn gnome org
- To: svn-commits-list gnome org
- Subject: accerciser r727 - in trunk: . plugins src/lib/accerciser
- Date: Wed, 4 Mar 2009 17:01:14 +0000 (UTC)
Author: eitani
Date: Wed Mar 4 17:01:13 2009
New Revision: 727
URL: http://svn.gnome.org/viewvc/accerciser?rev=727&view=rev
Log:
* src/lib/accerciser/main_window.py: Added an informative window
title (bug #574103).
* src/lib/accerciser/prefs_dialog.py: Fixed empty padding
issue (bug #574101)
* plugins/script_recorder.py: Port to gtksourceview2 (bug #574100).
Modified:
trunk/ChangeLog
trunk/plugins/script_recorder.py
trunk/src/lib/accerciser/main_window.py
trunk/src/lib/accerciser/prefs_dialog.py
Modified: trunk/plugins/script_recorder.py
==============================================================================
--- trunk/plugins/script_recorder.py (original)
+++ trunk/plugins/script_recorder.py Wed Mar 4 17:01:13 2009
@@ -3,7 +3,7 @@
import pyatspi
import gtk
from gtk import keysyms
-import gtksourceview
+import gtksourceview2
import threading
import wnck
from accerciser.i18n import N_, _
@@ -181,12 +181,12 @@
'''
Initialize the plugin.
'''
- text_buffer = gtksourceview.SourceBuffer()
- lm = gtksourceview.SourceLanguagesManager()
- lang = lm.get_language_from_mime_type('text/x-python')
+ text_buffer = gtksourceview2.Buffer()
+ lm = gtksourceview2.LanguageManager()
+ lang = lm.get_language('python')
text_buffer.set_language(lang)
- text_buffer.set_highlight(True)
- self.text_view = gtksourceview.SourceView(text_buffer)
+ text_buffer.set_highlight_syntax(True)
+ self.text_view = gtksourceview2.View(text_buffer)
self.text_view.set_editable(True)
self.text_view.set_cursor_visible(True)
xml = gtk.glade.XML(GLADE_FILE, 'main_vbox')
Modified: trunk/src/lib/accerciser/main_window.py
==============================================================================
--- trunk/src/lib/accerciser/main_window.py (original)
+++ trunk/src/lib/accerciser/main_window.py Wed Mar 4 17:01:13 2009
@@ -36,7 +36,7 @@
'''
gtk.Window.__init__(self)
self.set_icon_name('accerciser')
- self.set_title('accerciser')
+ self.set_title(_('Accerciser Accessibility Explorer'))
self.connect('key-press-event', self._onKeyPress)
node.connect('blink-done', self._onBlinkDone)
cl = gconf.client_get_default()
Modified: trunk/src/lib/accerciser/prefs_dialog.py
==============================================================================
--- trunk/src/lib/accerciser/prefs_dialog.py (original)
+++ trunk/src/lib/accerciser/prefs_dialog.py Wed Mar 4 17:01:13 2009
@@ -65,7 +65,7 @@
'''
def __init__(self):
gtk.Alignment.__init__(self)
- self.set_padding(0, 0, 20, 0)
+ self.set_padding(12, 12, 18, 12)
self.gconf_cl = gconf.client_get_default()
self._buildUI()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]