Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/conf_keybindings
Modified Files:
e_int_config_keybindings.c
Log Message:
Don't use strlen to check for empty string.
Fix formatting.
===================================================================
RCS file:
/cvs/e/e17/apps/e/src/modules/conf_keybindings/e_int_config_keybindings.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_int_config_keybindings.c 29 Oct 2007 06:17:18 -0000 1.6
+++ e_int_config_keybindings.c 29 Oct 2007 06:20:36 -0000 1.7
@@ -1088,16 +1088,16 @@
e_widget_ilist_unselect(cfdata->gui.o_action_list);
if (cfdata->locals.action) free(cfdata->locals.action);
cfdata->locals.action = strdup("");
- if(strlen(cfdata->params) > 0)
+ if (cfdata->params[0])
{
- int j,g = -1;
- _find_key_binding_action("exec",NULL,&g,NULL,&j);
- if(j >=0 )
+ int j, g = -1;
+ _find_key_binding_action("exec", NULL, &g, NULL,
&j);
+ if (j >= 0)
{
e_widget_ilist_unselect(cfdata->gui.o_action_list);
-
e_widget_ilist_selected_set(cfdata->gui.o_action_list, (j+g+1));
+
e_widget_ilist_selected_set(cfdata->gui.o_action_list, (j + g + 1));
e_widget_entry_clear(cfdata->gui.o_params);
-
e_widget_entry_text_set(cfdata->gui.o_params,cfdata->params);
+ e_widget_entry_text_set(cfdata->gui.o_params,
cfdata->params);
}
}
else
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs