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

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Mar 10 13:29:36 UTC 2008


Revision: 2319
          http://geany.svn.sourceforge.net/geany/?rev=2319&view=rev
Author:   ntrel
Date:     2008-03-10 06:29:35 -0700 (Mon, 10 Mar 2008)

Log Message:
-----------
Make keybindings_send_command() take guint parameters, not gint.

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

Modified: branches/plugin-keybindings/ChangeLog
===================================================================
--- branches/plugin-keybindings/ChangeLog	2008-03-10 13:23:57 UTC (rev 2318)
+++ branches/plugin-keybindings/ChangeLog	2008-03-10 13:29:35 UTC (rev 2319)
@@ -7,6 +7,8 @@
    Rename KBCallback, cmd_id, cb_func with clearer names.
    Add KeyBinding::menu_item field for setting accelerators (currently
    does nothing).
+ * src/keybindings.c, src/keybindings.h, src/plugindata.h:
+   Make keybindings_send_command() take guint parameters, not gint.
 
 
 2008-03-07  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: branches/plugin-keybindings/src/keybindings.c
===================================================================
--- branches/plugin-keybindings/src/keybindings.c	2008-03-10 13:23:57 UTC (rev 2318)
+++ branches/plugin-keybindings/src/keybindings.c	2008-03-10 13:29:35 UTC (rev 2319)
@@ -928,7 +928,7 @@
  * 	Example: @code keybindings_send_command(GEANY_KEYGROUP_FILE, GEANY_KEYS_MENU_OPEN); @endcode
  * 	@param group_id The index for the key group that contains the @a key_id keybinding.
  * 	@param key_id The keybinding command index. */
-void keybindings_send_command(gint group_id, gint key_id)
+void keybindings_send_command(guint group_id, guint key_id)
 {
 	KeyBinding *kb;
 

Modified: branches/plugin-keybindings/src/keybindings.h
===================================================================
--- branches/plugin-keybindings/src/keybindings.h	2008-03-10 13:23:57 UTC (rev 2318)
+++ branches/plugin-keybindings/src/keybindings.h	2008-03-10 13:29:35 UTC (rev 2319)
@@ -258,7 +258,7 @@
 		KeyCallback callback, guint key, GdkModifierType mod,
 		const gchar *name, const gchar *label, GtkWidget *menu_item);
 
-void keybindings_send_command(gint group_id, gint key_id);
+void keybindings_send_command(guint group_id, guint key_id);
 
 KeyBinding *keybindings_lookup_item(guint group_id, guint key_id);
 

Modified: branches/plugin-keybindings/src/plugindata.h
===================================================================
--- branches/plugin-keybindings/src/plugindata.h	2008-03-10 13:23:57 UTC (rev 2318)
+++ branches/plugin-keybindings/src/plugindata.h	2008-03-10 13:29:35 UTC (rev 2319)
@@ -38,7 +38,7 @@
 
 /* The API version should be incremented whenever any plugin data types below are
  * modified or appended to. */
-static const gint api_version = 47;
+static const gint api_version = 48;
 
 /* The ABI version should be incremented whenever existing fields in the plugin
  * data types below have to be changed or reordered. It should stay the same if fields
@@ -334,7 +334,7 @@
 
 typedef struct KeybindingFuncs
 {
-	void		(*send_command) (gint group_id, gint key_id);
+	void		(*send_command) (guint group_id, guint key_id);
 	void		(*set_item) (struct KeyBindingGroup *group, gsize key_id,
 					KeyCallback callback, guint key, GdkModifierType mod,
 					const gchar *name, const gchar *label, GtkWidget *menu_item);


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