Branch: refs/heads/master Author: Dimitar Zhekov dimitar.zhekov@gmail.com Committer: Dimitar Zhekov dimitar.zhekov@gmail.com Date: Thu, 11 Jul 2013 17:38:04 UTC Commit: 4dc860df2c96a325ffd634bb0ed108febf193567 https://github.com/geany/geany-plugins/commit/4dc860df2c96a325ffd634bb0ed108...
Log Message: ----------- scope - update toolbar on document save/activate, support F77
Modified Paths: -------------- scope/ChangeLog scope/NEWS scope/docs/scope.html scope/src/scope.c scope/src/utils.c
Modified: scope/ChangeLog 11 files changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -1,3 +1,14 @@ +2013-07-11 Dimitar Zhekov dimitar.zhekov@gmail.com + + * src/scope.c: + Update toolbar state when saving a document or switching to + another document, and properly cache the last state. + * src/utils.c: + Recognize F77 as gdb-supported file type (was only Fortran). + * docs/scope.html, src/scope.c: + Increased version to 0.91.1. + + 2013-07-05 Dimitar Zhekov dimitar.zhekov@gmail.com
* src/codes.html:
Modified: scope/NEWS 8 files changed, 8 insertions(+), 0 deletions(-) =================================================================== @@ -1,3 +1,11 @@ +Scope 0.91.1 (2013-07-11) + + * (Un)Block toolbar Toggle Breakpoint when saving a document or + switching to another document. + + * Added F77 to the list of gdb-supported source file types. + + Scope 0.91 (2013-07-05)
* Better support for float frame Inspect variables.
Modified: scope/docs/scope.html 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -738,7 +738,7 @@
<b><a name="copyright">Copyright</a></b>
-<p>Scope 0.91, Copyright (C) 2013 Dimitar Toshkov Zhekov</p> +<p>Scope 0.91.1, Copyright (C) 2013 Dimitar Toshkov Zhekov</p>
<p>The menu and toolbar icons are from <a href="http://netbeans.org">Netbeans</a>, except for BreakPoint.</p>
Modified: scope/src/scope.c 16 files changed, 14 insertions(+), 2 deletions(-) =================================================================== @@ -32,7 +32,7 @@ PLUGIN_VERSION_CHECK(215)
PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE, _("Scope Debugger"), - _("Relatively simple GDB front-end."), "0.91" , + _("Relatively simple GDB front-end."), "0.91.1" , "Dimitar Toshkov Zhekov dimitar.zhekov@gmail.com")
/* Keybinding(s) */ @@ -205,6 +205,8 @@ static void toolbar_update_state(DebugState state) gtk_widget_set_sensitive(item->widget, menu_item_matches_state(debug_menu_items + item->index, state)); } + + state = last_state; } }
@@ -371,7 +373,15 @@ static gboolean on_editor_notify(G_GNUC_UNUSED GObject *obj, GeanyEditor *editor static void on_document_filetype_set(G_GNUC_UNUSED GObject *obj, GeanyDocument *doc, G_GNUC_UNUSED GeanyFiletype *filetype_old, G_GNUC_UNUSED gpointer gdata) { - utils_lock_unlock(doc, debug_state() != DS_INACTIVE && utils_source_document(doc)); + DebugState state = debug_state(); + utils_lock_unlock(doc, state != DS_INACTIVE && utils_source_document(doc)); + toolbar_update_state(state); +} + +static void on_document_activate(G_GNUC_UNUSED GObject *obj, GeanyDocument *doc, + G_GNUC_UNUSED gpointer user_data) +{ + toolbar_update_state(debug_state()); }
static void on_project_open(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED GKeyFile *config) @@ -419,6 +429,8 @@ static void on_build_start(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED gpointer gd { "save-settings", G_CALLBACK(on_session_save) }, { "editor-notify", G_CALLBACK(on_editor_notify) }, { "document-filetype-set", G_CALLBACK(on_document_filetype_set) }, + { "document-activate", G_CALLBACK(on_document_activate) }, + { "document-save", G_CALLBACK(on_document_activate) }, { "project-before-save", G_CALLBACK(on_session_save) }, { "project-open", G_CALLBACK(on_project_open) }, { "project-close", G_CALLBACK(on_project_close) },
Modified: scope/src/utils.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -313,9 +313,9 @@ gboolean utils_source_filetype(GeanyFiletype *ft) { static const filetype_id ft_id[] = { GEANY_FILETYPES_C, GEANY_FILETYPES_CPP, GEANY_FILETYPES_D, GEANY_FILETYPES_OBJECTIVEC, GEANY_FILETYPES_FORTRAN, - GEANY_FILETYPES_JAVA, /* GEANY_FILETYPES_OPENCL_C, */ GEANY_FILETYPES_PASCAL, - /* GEANY_FILETYPES_S, */ GEANY_FILETYPES_ASM, /* GEANY_FILETYPES_MODULA_2, */ - GEANY_FILETYPES_ADA }; + GEANY_FILETYPES_F77, GEANY_FILETYPES_JAVA, /* GEANY_FILETYPES_OPENCL_C, */ + GEANY_FILETYPES_PASCAL, /* GEANY_FILETYPES_S, */ GEANY_FILETYPES_ASM, + /* GEANY_FILETYPES_MODULA_2, */ GEANY_FILETYPES_ADA, };
guint i;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).