[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (6eba3ba08e503112e403626d84217b4704eeed46)
The branch, master has been updated
via 6eba3ba08e503112e403626d84217b4704eeed46 (commit)
from 4ad9a1cdd78b91ea616edf2b5a295913f0f3d62e (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
=========
src/hid/gtk/gui-library-window.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 6eba3ba08e503112e403626d84217b4704eeed46
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
hid/gtk: expand library tree after filtering
This patch changes the behavior of the library selection dialog.
After filtering by name is applied the tree view of matching components
is automatically expanded so that all leafs are immediately selectable.
The tree view is collapsed when the filter is cleared.
Patch is adapted from Krzysztof Kosciuszkiewicz's patch for gschem.
Closes-bug: lp-753643
Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
:100644 100644 b101576... 8c8ae17... M src/hid/gtk/gui-library-window.c
=========
Changes
=========
commit 6eba3ba08e503112e403626d84217b4704eeed46
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
hid/gtk: expand library tree after filtering
This patch changes the behavior of the library selection dialog.
After filtering by name is applied the tree view of matching components
is automatically expanded so that all leafs are immediately selectable.
The tree view is collapsed when the filter is cleared.
Patch is adapted from Krzysztof Kosciuszkiewicz's patch for gschem.
Closes-bug: lp-753643
Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
diff --git a/src/hid/gtk/gui-library-window.c b/src/hid/gtk/gui-library-window.c
index b101576..8c8ae17 100644
--- a/src/hid/gtk/gui-library-window.c
+++ b/src/hid/gtk/gui-library-window.c
@@ -432,7 +432,16 @@ library_window_filter_timeout (gpointer data)
if (model != NULL)
{
+ const gchar *text = gtk_entry_get_text (library_window->entry_filter);
gtk_tree_model_filter_refilter ((GtkTreeModelFilter *) model);
+ if (strcmp (text, "") != 0)
+ {
+ /* filter text not-empty */
+ gtk_tree_view_expand_all (library_window->libtreeview);
+ } else {
+ /* filter text is empty, collapse expanded tree */
+ gtk_tree_view_collapse_all (library_window->libtreeview);
+ }
}
/* return FALSE to remove the source */
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs