[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: branch: master updated (1.1.1.20070708-19-gac28aaa)
The branch, master has been updated
via ac28aaa56a684a07fe3ee5590a31baf3fa8adbe7 (commit)
from 7f54d6e4996f15d14781a49b3400ce89a39a60dd (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
=========
gschem/src/x_compselect.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit ac28aaa56a684a07fe3ee5590a31baf3fa8adbe7
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sun Jul 22 05:33:42 2007 +0100
Save/restore which component selector source tab was last used.
:100644 100644 e890e7f... 81f0d60... M gschem/src/x_compselect.c
=========
Changes
=========
commit ac28aaa56a684a07fe3ee5590a31baf3fa8adbe7
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sun Jul 22 05:33:42 2007 +0100
Save/restore which component selector source tab was last used.
diff --git a/gschem/src/x_compselect.c b/gschem/src/x_compselect.c
index e890e7f..81f0d60 100644
--- a/gschem/src/x_compselect.c
+++ b/gschem/src/x_compselect.c
@@ -968,6 +968,9 @@ compselect_geometry_save (GschemDialog *dialog, GKeyFile *key_file, gchar *group
position = gtk_paned_get_position (GTK_PANED (COMPSELECT (dialog)->hpaned));
g_key_file_set_integer (key_file, group_name, "hpaned", position );
+
+ position = gtk_notebook_get_current_page (COMPSELECT (dialog)->viewtabs);
+ g_key_file_set_integer (key_file, group_name, "source-tab", position );
}
@@ -993,6 +996,9 @@ compselect_geometry_restore (GschemDialog *dialog, GKeyFile *key_file, gchar *gr
position = g_key_file_get_integer (key_file, group_name, "hpaned", NULL);
if (position != 0)
gtk_paned_set_position (GTK_PANED (COMPSELECT (dialog)->hpaned), position);
+
+ position = g_key_file_get_integer (key_file, group_name, "source-tab", NULL);
+ gtk_notebook_set_current_page (COMPSELECT (dialog)->viewtabs, position);
}
#endif /* !GLIB_CHECK_VERSION(2,6,0) */
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs