Use GDestroyNotify instead of custom type, for better introspectability

This commit is contained in:
Dan Winship 2009-03-25 10:50:40 -04:00
parent 3b864f8af5
commit 0e256a21a5
2 changed files with 3 additions and 5 deletions

View File

@ -3452,7 +3452,7 @@ gboolean
meta_keybindings_set_custom_handler (const gchar *name,
MetaKeyHandlerFunc handler,
gpointer user_data,
MetaKeyHandlerDataFreeFunc free_data)
GDestroyNotify free_data)
{
MetaKeyHandler *key_handler = find_handler (key_handlers, name);

View File

@ -23,8 +23,6 @@
#include "display.h"
#include "common.h"
typedef void (* MetaKeyHandlerDataFreeFunc) (gpointer user_data);
typedef void (* MetaKeyHandlerFunc) (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
@ -39,7 +37,7 @@ typedef struct
MetaKeyHandlerFunc default_func;
gint data, flags;
gpointer user_data;
MetaKeyHandlerDataFreeFunc user_data_free_func;
GDestroyNotify user_data_free_func;
} MetaKeyHandler;
struct _MetaKeyBinding
@ -56,7 +54,7 @@ struct _MetaKeyBinding
gboolean meta_keybindings_set_custom_handler (const gchar *name,
MetaKeyHandlerFunc handler,
gpointer user_data,
MetaKeyHandlerDataFreeFunc free_data);
GDestroyNotify free_data);
void meta_keybindings_switch_window (MetaDisplay *display,
MetaScreen *screen,