SF.net SVN: geany: [1438] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Apr 5 11:53:52 UTC 2007
Revision: 1438
http://svn.sourceforge.net/geany/?rev=1438&view=rev
Author: ntrel
Date: 2007-04-05 04:53:52 -0700 (Thu, 05 Apr 2007)
Log Message:
-----------
Only construct-complete when the editor widget has focus.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/keybindings.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-04-05 11:27:44 UTC (rev 1437)
+++ trunk/ChangeLog 2007-04-05 11:53:52 UTC (rev 1438)
@@ -6,6 +6,8 @@
* doc/geany.docbook:
Add filtering out version control files with Extra options info to
Find in Files section.
+ * src/keybindings.c:
+ Only construct-complete when the editor widget has focus.
2007-04-03 Nick Treleaven <nick.treleaven at btinternet.com>
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2007-04-05 11:27:44 UTC (rev 1437)
+++ trunk/src/keybindings.c 2007-04-05 11:53:52 UTC (rev 1438)
@@ -587,8 +587,10 @@
if (keys[i]->key == event->keyval && keys[i]->mods == event->state)
{
gint idx = document_get_cur_idx();
+ GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(app->window));
- if (DOC_IDX_VALID(idx))
+ // keybinding only valid when scintilla widget has focus
+ if (DOC_IDX_VALID(idx) && focusw == GTK_WIDGET(doc_list[idx].sci))
{
ScintillaObject *sci = doc_list[idx].sci;
gint pos = sci_get_current_position(sci);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list