SF.net SVN: geany: [2302] branches/plugin-keybindings

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Mar 3 17:35:33 UTC 2008


Revision: 2302
          http://geany.svn.sourceforge.net/geany/?rev=2302&view=rev
Author:   ntrel
Date:     2008-03-03 09:35:32 -0800 (Mon, 03 Mar 2008)

Log Message:
-----------
Re-enable snippets completion.

Modified Paths:
--------------
    branches/plugin-keybindings/ChangeLog
    branches/plugin-keybindings/src/keybindings.c

Modified: branches/plugin-keybindings/ChangeLog
===================================================================
--- branches/plugin-keybindings/ChangeLog	2008-03-03 17:28:15 UTC (rev 2301)
+++ branches/plugin-keybindings/ChangeLog	2008-03-03 17:35:32 UTC (rev 2302)
@@ -5,6 +5,7 @@
    Fix clearing a shortcut when overriding it in Prefs dialog.
  * src/keybindings.c:
    Re-enable focus commands in the VTE.
+   Re-enable snippets completion.
 
 
 2008-02-29  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: branches/plugin-keybindings/src/keybindings.c
===================================================================
--- branches/plugin-keybindings/src/keybindings.c	2008-03-03 17:28:15 UTC (rev 2301)
+++ branches/plugin-keybindings/src/keybindings.c	2008-03-03 17:35:32 UTC (rev 2302)
@@ -765,10 +765,10 @@
  * return FALSE if no completion occurs, so the tab or space is handled normally. */
 static gboolean check_snippet_completion(guint keyval, guint state)
 {
-return FALSE; /* tmp */
-#if 0
-	const guint i = GEANY_KEYS_EDIT_COMPLETESNIPPET;
-	if (keys[i]->key == keyval && keys[i]->mods == state)
+	KeyBinding *kb = keybindings_lookup_item(GEANY_KEYGROUP_TAGS,
+		GEANY_KEYS_EDIT_COMPLETESNIPPET);
+
+	if (kb->key == keyval && kb->mods == state)
 	{
 		gint idx = document_get_cur_idx();
 		GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(app->window));
@@ -784,7 +784,6 @@
 		}
 	}
 	return FALSE;
-#endif
 }
 
 


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