[geany/geany-plugins] 478418: scope - cell signal and default view fixes for Windows

Dimitar Zhekov git-noreply at xxxxx
Tue Jul 30 17:49:45 UTC 2013


Branch:      refs/heads/master
Author:      Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer:   Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date:        Tue, 30 Jul 2013 17:49:45 UTC
Commit:      4784187a04dca398cf5e29b3941264391f553399
             https://github.com/geany/geany-plugins/commit/4784187a04dca398cf5e29b3941264391f553399

Log Message:
-----------
scope - cell signal and default view fixes for Windows


Modified Paths:
--------------
    scope/ChangeLog
    scope/src/views.c

Modified: scope/ChangeLog
7 files changed, 7 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,10 @@
+2013-07-30  Dimitar Zhekov  <dimitar.zhekov at gmail.com>
+
+ * src/views.c:
+   Use map signal to pre-change contents when editing tree
+   cells, since map-event is not received under Windows.
+ * Windows panel defaults to THREADS view, not PROGRAM.
+
 2013-07-25  Dimitar Zhekov  <dimitar.zhekov at gmail.com>
 
  * src/break.c, src/conterm.c, src/debug.c, src/inspect.c,


Modified: scope/src/views.c
7 files changed, 3 insertions(+), 4 deletions(-)
===================================================================
@@ -258,8 +258,7 @@ static void on_editing_started(G_GNUC_UNUSED GtkCellRenderer *cell, GtkCellEdita
 		gtk_entry_set_cursor_hadjustment(GTK_ENTRY(editable), hadjustment);
 }
 
-static gboolean on_display_editable_map_event(GtkWidget *widget, G_GNUC_UNUSED GdkEvent *event,
-	gchar *display)
+static gboolean on_display_editable_map(GtkWidget *widget, gchar *display)
 {
 	gint position = 0;
 	GtkEditable *editable = GTK_EDITABLE(widget);
@@ -282,7 +281,7 @@ static void on_display_editing_started(G_GNUC_UNUSED GtkCellRenderer *cell,
 	scp_tree_store_get_iter_from_string(store, &iter, path_str);
 	scp_tree_store_get(store, &iter, COLUMN_VALUE, &value, COLUMN_HB_MODE, &hb_mode, -1);
 	/* scrolling editable to the proper position is left as an exercise for the reader */
-	g_signal_connect(editable, "map-event", G_CALLBACK(on_display_editable_map_event),
+	g_signal_connect(editable, "map", G_CALLBACK(on_display_editable_map),
 		parse_get_display_from_7bit(value, hb_mode, MR_EDITVC));
 }
 
@@ -608,7 +607,7 @@ void views_init(void)
 #ifdef G_OS_UNIX
 	view_current = VIEW_TERMINAL;
 #else
-	view_current = VIEW_PROGRAM;
+	view_current = VIEW_THREADS;
 #endif
 	last_views_state = 0;
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list