Branch: refs/heads/master Author: Dimitar Zhekov dimitar.zhekov@gmail.com Committer: Dimitar Zhekov dimitar.zhekov@gmail.com Date: Wed, 08 May 2013 17:26:05 UTC Commit: 6b7eb44b0c9eab15277ee8c4c649139af97883c9 https://github.com/geany/geany-plugins/commit/6b7eb44b0c9eab15277ee8c4c64913...
Log Message: ----------- scope - small improvements, increased version to 0.88
Modified Paths: -------------- scope/ChangeLog scope/docs/scope.html scope/src/conterm.c scope/src/scope.c scope/src/store/scptreestore.html scope/src/views.c
Modified: scope/ChangeLog 11 files changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -1,3 +1,14 @@ +2013-05-08 Dimitar Zhekov dimitar.zhekov@gmail.com + + * src/conterm.c: + Insert or typing into console brings up the command dialog only if + gdb is loaded. + * src/store/scptreestore.html: + Note that ScpTreeStore can not be currently used with Glade. + * src/view.c: + Small improvements. + + 2013-05-04 Dimitar Zhekov dimitar.zhekov@gmail.com
* data/scope.glade, src/break.c, src/gtk216.c, src/gtk216.h,
Modified: scope/docs/scope.html 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -713,7 +713,7 @@
<b><a name="copyright">Copyright</a></b>
-<p>Scope 0.87, Copyright (C) 2013 Dimitar Toshkov Zhekov</p> +<p>Scope 0.88, 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/conterm.c 5 files changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -351,11 +351,12 @@ static gboolean on_console_key_press(G_GNUC_UNUSED GtkWidget *widget, { gboolean insert = event->keyval == GDK_Insert || event->keyval == GDK_KP_Insert;
- if (insert || (event->keyval >= 0x21 && event->keyval <= 0x7F && - event->state <= GDK_SHIFT_MASK)) + if ((insert || (event->keyval >= 0x21 && event->keyval <= 0x7F && + event->state <= GDK_SHIFT_MASK)) && (debug_state() & DS_ACTIVE)) { char command[2] = { event->keyval, '\0' }; view_command_line(insert ? NULL : command, NULL, NULL, TRUE); + return TRUE; }
return FALSE;
Modified: scope/src/scope.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -32,7 +32,7 @@ PLUGIN_VERSION_CHECK(215)
PLUGIN_SET_TRANSLATABLE_INFO(LOCALEDIR, GETTEXT_PACKAGE, _("Scope Debugger"), - _("Relatively simple GDB front-end."), "0.87" , + _("Relatively simple GDB front-end."), "0.88" , "Dimitar Toshkov Zhekov dimitar.zhekov@gmail.com")
/* Keybinding(s) */
Modified: scope/src/store/scptreestore.html 6 files changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -630,8 +630,10 @@
<h3><a name="bugs">Bugs</a></h3>
-<p>Probably. In particular, the linguistically correct string comparision is not well tested. -</p> +<p>Incomplete Glade support. You can include ScpTreeStore-s in .glade files with a text +editor, but editing such files with Glade will discard the stores.</p> + +<p>The linguistically correct string comparision is not well tested.</p>
<p>Report bugs to <tt><dimitar.zhekov@gmail.com></tt>.</p>
Modified: scope/src/views.c 39 files changed, 22 insertions(+), 17 deletions(-) =================================================================== @@ -26,6 +26,7 @@ typedef struct _ViewInfo { gboolean dirty; + gboolean data; void (*clear)(void); gboolean (*update)(void); gboolean flush; @@ -34,17 +35,17 @@
static ViewInfo views[VIEW_COUNT] = { - { FALSE, NULL, NULL, FALSE, 0 }, - { FALSE, threads_clear, threads_update, FALSE, DS_SENDABLE }, - { FALSE, breaks_clear, breaks_update, FALSE, DS_SENDABLE }, - { FALSE, stack_clear, stack_update, TRUE, DS_DEBUG }, - { FALSE, locals_clear, locals_update, TRUE, DS_DEBUG }, - { FALSE, watches_clear, watches_update, TRUE, DS_DEBUG }, - { FALSE, memory_clear, memory_update, TRUE, DS_SENDABLE }, - { FALSE, NULL, dc_update, FALSE, DS_DEBUG }, - { FALSE, inspects_clear, inspects_update, FALSE, DS_DEBUG }, - { FALSE, tooltip_clear, tooltip_update, FALSE, DS_SENDABLE }, - { FALSE, menu_clear, NULL, FALSE, 0 } + { FALSE, FALSE, NULL, NULL, FALSE, 0 }, + { FALSE, FALSE, threads_clear, threads_update, FALSE, DS_SENDABLE }, + { FALSE, FALSE, breaks_clear, breaks_update, FALSE, DS_SENDABLE }, + { FALSE, TRUE, stack_clear, stack_update, TRUE, DS_DEBUG }, + { FALSE, TRUE, locals_clear, locals_update, TRUE, DS_DEBUG }, + { FALSE, TRUE, watches_clear, watches_update, TRUE, DS_DEBUG }, + { FALSE, TRUE, memory_clear, memory_update, TRUE, DS_SENDABLE }, + { FALSE, FALSE, NULL, dc_update, FALSE, DS_DEBUG }, + { FALSE, TRUE, inspects_clear, inspects_update, FALSE, DS_DEBUG }, + { FALSE, TRUE, tooltip_clear, tooltip_update, FALSE, DS_SENDABLE }, + { FALSE, FALSE, menu_clear, NULL, FALSE, 0 } };
void view_dirty(ViewIndex index) @@ -54,12 +55,11 @@ void view_dirty(ViewIndex index)
void views_data_dirty(void) { - view_dirty(VIEW_STACK); - view_dirty(VIEW_LOCALS); - view_dirty(VIEW_WATCHES); - view_dirty(VIEW_MEMORY); - view_dirty(VIEW_INSPECT); - view_dirty(VIEW_TOOLTIP); + ViewIndex i; + + for (i = 0; i < VIEW_COUNT; i++) + if (views[i].data) + view_dirty(i); }
static void view_update_unconditional(ViewIndex index, DebugState state) @@ -523,6 +523,8 @@ static void command_line_update_state(DebugState state) void view_command_line(const gchar *text, const gchar *title, const gchar *seek, gboolean seek_after) { + GtkTextIter start, end; + gtk_window_set_title(GTK_WINDOW(command_dialog), title ? title : _("GDB Command")); gtk_widget_grab_focus(command_view);
@@ -539,6 +541,9 @@ void view_command_line(const gchar *text, const gchar *title, const gchar *seek,
on_command_text_changed(command_text, NULL); command_line_update_state(debug_state()); + gtk_text_buffer_get_start_iter(command_text, &start); + gtk_text_buffer_get_end_iter(command_text, &end); + gtk_text_buffer_select_range(command_text, &start, &end); gtk_combo_box_set_active_iter(command_history, NULL); gtk_dialog_run(GTK_DIALOG(command_dialog)); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).