[geany/geany] 9f6f6c: gir: keybindings: adhere to user_data naming convention

Thomas Martitz git-noreply at xxxxx
Sun Jan 17 13:13:45 UTC 2016


Branch:      refs/heads/master
Author:      Thomas Martitz <kugel at rockbox.org>
Committer:   Thomas Martitz <kugel at rockbox.org>
Date:        Sun, 17 Jan 2016 13:13:45 UTC
Commit:      9f6f6cfb78f8fce294751fa54c1a241ca803c046
             https://github.com/geany/geany/commit/9f6f6cfb78f8fce294751fa54c1a241ca803c046

Log Message:
-----------
gir: keybindings: adhere to user_data naming convention

This helps g-ir-scanner recognizing the data parameter as context storage,
allowing object methods to be used as callback (via wrappers). It goes even
so far that g_object_unref is propery passed as destroy func to
keybindings_set_item_full() and plugin_set_key_group_full().


Modified Paths:
--------------
    src/keybindings.h

Modified: src/keybindings.h
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -55,7 +55,7 @@ typedef gboolean (*GeanyKeyGroupCallback) (guint key_id);
  * with the same key combination to handle it).
  *
  * @since 1.26 (API 226) */
-typedef gboolean (*GeanyKeyGroupFunc)(GeanyKeyGroup *group, guint key_id, gpointer pdata);
+typedef gboolean (*GeanyKeyGroupFunc)(GeanyKeyGroup *group, guint key_id, gpointer user_data);
 
 /** Function pointer type used for keybinding callbacks. */
 typedef void (*GeanyKeyCallback) (guint key_id);
@@ -67,7 +67,7 @@ typedef void (*GeanyKeyCallback) (guint key_id);
  * with the same key combination to handle it).
  *
  * @since 1.26 (API 226) */
-typedef gboolean (*GeanyKeyBindingFunc)(GeanyKeyBinding *key, guint key_id, gpointer pdata);
+typedef gboolean (*GeanyKeyBindingFunc)(GeanyKeyBinding *key, guint key_id, gpointer user_data);
 
 /** Represents a single keybinding action.
  *



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


More information about the Commits mailing list