[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: xgsch2pcb.git: branch: master updated (rel_0.1.2-3-g4d57103)
The branch, master has been updated
via 4d571037066113c9d372a7bf71560dcd9cd988e5 (commit)
from 8fe2dae043955e3dd36a02c091527befa0624430 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
lib/xgsch2pcb/gui.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 4d571037066113c9d372a7bf71560dcd9cd988e5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sun Jul 27 14:53:56 2008 +0100
Make double-clicking / activating a schematic open it in gschem
:100644 100644 8f49cf0... 4fc84ff... M lib/xgsch2pcb/gui.py
=========
Changes
=========
commit 4d571037066113c9d372a7bf71560dcd9cd988e5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sun Jul 27 14:53:56 2008 +0100
Make double-clicking / activating a schematic open it in gschem
diff --git a/lib/xgsch2pcb/gui.py b/lib/xgsch2pcb/gui.py
index 8f49cf0..4fc84ff 100644
--- a/lib/xgsch2pcb/gui.py
+++ b/lib/xgsch2pcb/gui.py
@@ -87,6 +87,8 @@ class MonitorWindow(gtk.Window):
# Treeview showing available schematic pages
self.pagelist = gtk.TreeView(gtk.ListStore(str))
+ self.pagelist.connect('row-activated',
+ self.event_pagelist_row_activated)
scrollwin.add_with_viewport(self.pagelist)
column = gtk.TreeViewColumn(None, gtk.CellRendererText(), text=0)
self.pagelist.append_column(column)
@@ -273,6 +275,11 @@ class MonitorWindow(gtk.Window):
iter = model.iter_next(iter)
self.set_pcbsensitivities()
+ def event_pagelist_row_activated(self, treeview, path, view_column):
+ # Prod the "Open schematic" button if it is sensitive
+ if self.editpagebutton.get_property("sensitive"):
+ self.editpagebutton.clicked()
+
def event_pagelist_selection_changed(self, selection):
page_selected = selection.count_selected_rows()
self.removepagebutton.set_sensitive(page_selected)
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs