Revision: 5314 http://geany.svn.sourceforge.net/geany/?rev=5314&view=rev Author: ntrel Date: 2010-10-21 16:06:53 +0000 (Thu, 21 Oct 2010)
Log Message: ----------- Rename confusing Grab Key dialog callback functions.
Modified Paths: -------------- trunk/src/prefs.c
Modified: trunk/src/prefs.c =================================================================== --- trunk/src/prefs.c 2010-10-21 15:59:06 UTC (rev 5313) +++ trunk/src/prefs.c 2010-10-21 16:06:53 UTC (rev 5314) @@ -80,8 +80,8 @@ static gboolean edited = FALSE;
static void kb_cell_edited_cb(GtkCellRendererText *cellrenderertext, gchar *path, gchar *new_text, gpointer user_data); -static gboolean kb_keytype_dialog_response_cb(GtkWidget *dialog, GdkEventKey *event, gpointer user_data); -static void kb_dialog_response_cb(GtkWidget *dialog, gint response, gpointer user_data); +static gboolean kb_grab_key_dialog_key_press_cb(GtkWidget *dialog, GdkEventKey *event, gpointer user_data); +static void kb_grab_key_dialog_response_cb(GtkWidget *dialog, gint response, gpointer user_data); static gboolean kb_find_duplicate(GtkWidget *parent, GeanyKeyBinding *search_kb, guint key, GdkModifierType mods, const gchar *action); static void on_toolbar_show_toggled(GtkToggleButton *togglebutton, gpointer user_data); @@ -176,8 +176,8 @@ gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), dialog_label);
g_signal_connect(dialog, "key-press-event", - G_CALLBACK(kb_keytype_dialog_response_cb), NULL); - g_signal_connect(dialog, "response", G_CALLBACK(kb_dialog_response_cb), NULL); + G_CALLBACK(kb_grab_key_dialog_key_press_cb), NULL); + g_signal_connect(dialog, "response", G_CALLBACK(kb_grab_key_dialog_response_cb), NULL);
gtk_widget_show_all(dialog); g_free(str); @@ -1279,7 +1279,7 @@ }
-static gboolean kb_keytype_dialog_response_cb(GtkWidget *dialog, GdkEventKey *event, gpointer user_data) +static gboolean kb_grab_key_dialog_key_press_cb(GtkWidget *dialog, GdkEventKey *event, gpointer user_data) { gchar *str; gint state; @@ -1298,7 +1298,7 @@ }
-static void kb_dialog_response_cb(GtkWidget *dialog, gint response, G_GNUC_UNUSED gpointer iter) +static void kb_grab_key_dialog_response_cb(GtkWidget *dialog, gint response, G_GNUC_UNUSED gpointer iter) { if (response == GTK_RESPONSE_ACCEPT) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.