[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-bug: [ geda-Patches-2661223 ] Allow double-click to select component in Compselect dialog
Patches item #2661223, was opened at 2009-03-04 12:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=818428&aid=2661223&group_id=161080
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: gschem
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: yarwhal (yarwhal)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow double-click to select component in Compselect dialog
Initial Comment:
diff --git a/gschem/src/x_compselect.c b/gschem/src/x_compselect.c
index eb17b79..bac8c20 100644
--- a/gschem/src/x_compselect.c
+++ b/gschem/src/x_compselect.c
@@ -446,12 +446,16 @@ tree_row_activated (GtkTreeView *tree_view,
{
GtkTreeModel *model;
GtkTreeIter iter;
+ Compselect *compselect = (Compselect*)user_data;
model = gtk_tree_view_get_model (tree_view);
gtk_tree_model_get_iter (model, &iter, path);
- if (!gtk_tree_model_iter_has_child (model, &iter))
+ if (!gtk_tree_model_iter_has_child (model, &iter)) {
+ gtk_dialog_response (GTK_DIALOG (compselect),
+ COMPSELECT_RESPONSE_HIDE);
return;
+ }
if (gtk_tree_view_row_expanded (tree_view, path))
gtk_tree_view_collapse_row (tree_view, path);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=818428&aid=2661223&group_id=161080
_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug