gedit-plugins r373 - in trunk: . plugins/terminal
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit-plugins r373 - in trunk: . plugins/terminal
- Date: Mon, 8 Sep 2008 08:04:32 +0000 (UTC)
Author: pborelli
Date: Mon Sep 8 08:04:32 2008
New Revision: 373
URL: http://svn.gnome.org/viewvc/gedit-plugins?rev=373&view=rev
Log:
2008-09-08 Paolo Borelli <pborelli katamail com>
* plugins/terminal/terminal.py: take into account system-wide cursor
blink setting
Modified:
trunk/ChangeLog
trunk/plugins/terminal/terminal.py
Modified: trunk/plugins/terminal/terminal.py
==============================================================================
--- trunk/plugins/terminal/terminal.py (original)
+++ trunk/plugins/terminal/terminal.py Mon Sep 8 08:04:32 2008
@@ -118,8 +118,18 @@
gtk.gdk.color_parse (bg_color),
[])
- self._vte.set_cursor_blinks(gconf_get_bool(self.GCONF_PROFILE_DIR + "/cursor_blinks",
- self.defaults['cursor_blinks']))
+ # cursor blink
+ blink_mode = gconf_get_str(self.GCONF_PROFILE_DIR + "/cursor_blink_mode")
+ if blink_mode.lower() == "system":
+ blink = gconf_get_bool("/desktop/gnome/interface/cursor_blink",
+ self.defaults['cursor_blinks'])
+ elif blink_mode.lower() == "on":
+ blink = True
+ elif blink_mode.lower() == "off":
+ blink = False
+ else:
+ blink = self.defaults['cursor_blinks']
+ self._vte.set_cursor_blinks(blink)
self._vte.set_audible_bell(not gconf_get_bool(self.GCONF_PROFILE_DIR + "/silent_bell",
not self.defaults['audible_bell']))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]