[jokosher-devel] [PATCH] fix for bug 76683 https://launchpad.net/products/jokosher/+bug/76683
- From: John Kelly <kelly_worth2003 yahoo co uk>
- To: Jokosher development list <jokosher-devel-list gnome org>
- Subject: [jokosher-devel] [PATCH] fix for bug 76683 https://launchpad.net/products/jokosher/+bug/76683
- Date: Thu, 21 Dec 2006 08:44:34 +0000
Hello everyone,
This patch makes the ok button become the default widget in the new
project dialog if any text entries have been selected.
John
Index: NewProjectDialog.py
===================================================================
--- NewProjectDialog.py (revision 1041)
+++ NewProjectDialog.py (working copy)
@@ -40,8 +40,10 @@
self.sideimage.set_from_file(os.path.join(Globals.IMAGE_PATH, "newproject.png"))
self.name = self.res.get_widget("name")
+ self.name.set_activates_default(True)
self.folder = self.res.get_widget("folder")
self.author = self.res.get_widget("author")
+ self.author.set_activates_default(True)
# Default author to name of currently logged in user
try:
@@ -55,6 +57,8 @@
self.author.set_text(pwd.getpwuid(os.getuid())[0])
self.okbutton = self.res.get_widget("okButton")
+ self.okbutton.set_flags(gtk.CAN_DEFAULT)
+ self.okbutton.grab_default()
# Set the default folder of 'folder' (a FileChooserButton)
self.folder.set_current_folder(Globals.settings.general["projectfolder"])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]