# HG changeset patch # User Eric Polino # Date 1180926009 0 # Node ID aeb8c9fbb57770592bca61fc881d3231b6d1dfea # Parent b242187b3591eb26ad598f2ffec45282f4689fe7 Fixed some curlies for functions diff -r b242187b3591 -r aeb8c9fbb577 finch/libgnt/gntwm.c --- a/finch/libgnt/gntwm.c Mon Jun 04 02:49:22 2007 +0000 +++ b/finch/libgnt/gntwm.c Mon Jun 04 03:00:09 2007 +0000 @@ -497,7 +497,8 @@ } static gboolean -free_rebind_info(){ +free_rebind_info() +{ g_free(rebind_info->keys); g_free(rebind_info->name); g_free(rebind_info->params); @@ -506,7 +507,8 @@ } static gboolean -help_for_widget_cancel_button_activate(GntBindable *bindable, gpointer data){ +help_for_widget_cancel_button_activate(GntBindable *bindable, gpointer data) +{ free_rebind_info(); gnt_widget_destroy(GNT_WIDGET(data)); @@ -514,7 +516,8 @@ } static gboolean -help_for_widget_bind_button_activate(GntBindable *bindable, gpointer data){ +help_for_widget_bind_button_activate(GntBindable *bindable, gpointer data) +{ /* This will be where the rebinding happens */ /* if(rebind_info->keys){ @@ -529,15 +532,14 @@ } static gboolean -help_for_widget_grab_key(GntBindable *bindable, const char *text, gpointer *data){ +help_for_widget_grab_key(GntBindable *bindable, const char *text, gpointer *data) +{ GntLabel *label = GNT_LABEL(data); char *newText; if(text && *text){ - fprintf(stderr,"%d %d\n",*text,text[1]); - if(!strcmp(text, GNT_KEY_CTRL_I) || !strcmp(text, GNT_KEY_ENTER)){ return FALSE; } @@ -552,8 +554,8 @@ return FALSE; } static void -help_for_widget_activate(GntBindable *bindable, gpointer widget){ - +help_for_widget_activate(GntBindable *bindable, gpointer widget) +{ GntTree * tree = GNT_TREE(bindable);