Branch: refs/heads/master Author: Dimitar Zhekov dimitar.zhekov@gmail.com Committer: Dimitar Zhekov dimitar.zhekov@gmail.com Date: Fri, 17 May 2013 17:21:14 UTC Commit: a4ceb98ae1dffee440bd24f4ab62a9720820acc6 https://github.com/geany/geany-plugins/commit/a4ceb98ae1dffee440bd24f4ab62a9...
Log Message: ----------- scope - fixed config reload, last version before Registers
Modified Paths: -------------- scope/ChangeLog scope/NEWS scope/src/prefs.c scope/src/program.c
Modified: scope/ChangeLog 10 files changed, 10 insertions(+), 0 deletions(-) =================================================================== @@ -1,3 +1,13 @@ +2013-05-17 Dimitar Zhekov dimitar.zhekov@gmail.com + + * scope/src/prefs.c: + Fixed config reload when a file other than scope.conf is saved. + * src/program.c: + Use scp_tree_store_traverse() to search recent programs. + * docs/scope.html, src/scope.c: + Increased version to 0.89. + + 2013-05-16 Dimitar Zhekov dimitar.zhekov@gmail.com
* src/store/ChangeLog:
Modified: scope/NEWS 9 files changed, 8 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,13 @@ +Scope 0.89 (2013-05-17) + + * Small fixes and improvements. This should be the last version + before a Registers view is added. + + Scope 0.87 (2013-04-14)
- * Switched to ScpTreeStore. + * Performance improvements for large Inspect tree and large number + of Threads, Breakpoints etc.
* Added GTK+ 3 support.
Modified: scope/src/prefs.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -203,7 +203,7 @@ static void on_document_save(G_GNUC_UNUSED GObject *obj, GeanyDocument *doc, { char *configfile = prefs_file_name();
- if (doc->real_path && utils_filenamecmp(doc->real_path, configfile)) + if (doc->real_path && !utils_filenamecmp(doc->real_path, configfile)) { GKeyFile *config = g_key_file_new();
Modified: scope/src/program.c 20 files changed, 7 insertions(+), 13 deletions(-) =================================================================== @@ -135,23 +135,17 @@ static char *recent_file_name(gint id) gboolean program_temp_breakpoint; gchar *program_temp_break_location;
-static gboolean program_find(GtkTreeIter *iter, const char *name) +static gint program_compare(ScpTreeStore *store, GtkTreeIter *iter, const char *name) { - gboolean valid = scp_tree_store_get_iter_first(recent_programs, iter); + const char *name1;
- while (valid) - { - const char *name1; - - scp_tree_store_get(recent_programs, iter, PROGRAM_NAME, &name1, -1); - if (!utils_filenamecmp(name1, name)) - break; - valid = scp_tree_store_iter_next(recent_programs, iter); - } - - return valid; + scp_tree_store_get(store, iter, PROGRAM_NAME, &name1, -1); + return !utils_filenamecmp(name1, name); }
+#define program_find(iter, name) scp_tree_store_traverse(recent_programs, FALSE, (iter), \ + NULL, (ScpTreeStoreTraverseFunc) program_compare, (gpointer) (name)) + static void save_program_settings(void) { const gchar *program_name = *program_executable ? program_executable :
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).