[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8846 - trunk/gnue-forms/src/uidrivers/gtk2/widgets
From: |
reinhard |
Subject: |
[gnue] r8846 - trunk/gnue-forms/src/uidrivers/gtk2/widgets |
Date: |
Wed, 18 Oct 2006 09:01:42 -0500 (CDT) |
Author: reinhard
Date: 2006-10-18 09:01:42 -0500 (Wed, 18 Oct 2006)
New Revision: 8846
Modified:
trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py
Log:
Removed a few checks that are not needed any more now as focus handling is
cleaned up a bit.
Modified: trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py 2006-10-18
13:56:03 UTC (rev 8845)
+++ trunk/gnue-forms/src/uidrivers/gtk2/widgets/entry.py 2006-10-18
14:01:42 UTC (rev 8846)
@@ -335,11 +335,6 @@
assert gDebug (6, "insert gtk.Entry () '%s' at %d (%s) into %s" % \
(newtext, widget.get_position (), pos, widget))
- # Before we're going to change the field's value, make sure it has the
- # focus on both sides (UI and GF)
- if not widget.is_focus ():
- self._request ('FOCUS', data = gfObject)
-
text = unicode (newtext, 'utf-8')
action = events.Event ('requestKEYPRESS', text = text,
_form = gfObject._form)
@@ -356,11 +351,6 @@
assert gDebug (6, "Delete %s to %s in %s" % (start_pos, end_pos, widget))
- # Before we're going to change the field's value, make sure it has the
- # focus on both sides (UI and GF)
- if not widget.is_focus ():
- self._request ('FOCUS', data = gfObject)
-
action = events.Event ('requestDELETERANGE',
start_pos = start_pos,
end_pos = end_pos,
@@ -559,7 +549,7 @@
# ---------------------------------------------------------------------------
- # Handle changes of selection in the tree view
+ # Handle changes of selection in the listbox
# ---------------------------------------------------------------------------
def _selectionChanged (self, treeSelection, gfObject):
@@ -570,9 +560,6 @@
fRef = gfObject._form
- action = events.Event ('requestFOCUS', gfObject, _form = fRef)
- self._eventHandler (action)
-
if tIter is not None:
action = events.Event ('requestREPLACEVALUE', text = desc, _form = fRef)
self._eventHandler (action)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8846 - trunk/gnue-forms/src/uidrivers/gtk2/widgets,
reinhard <=