diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-19 01:37:04 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-19 01:37:04 +0000 |
commit | dc384dc1e664c4cfadf39700ddf913c12398a01e (patch) | |
tree | bda11687ba9355787cb1e70373abd6946a659ba3 /src/prefs_actions.c | |
parent | 0515142354c9c7bc88a214d0c08414bdb2e91adf (diff) |
removed compilation warning.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2490 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_actions.c')
-rw-r--r-- | src/prefs_actions.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/prefs_actions.c b/src/prefs_actions.c index 6fba22ae..1d79f3c0 100644 --- a/src/prefs_actions.c +++ b/src/prefs_actions.c @@ -609,22 +609,20 @@ static void prefs_actions_select(GtkCList *clist, gint row, gint column, action = gtk_clist_get_row_data(clist, row); if (!action) { - ENTRY_SET_TEXT(actions.name_entry, ""); - ENTRY_SET_TEXT(actions.cmd_entry, ""); + gtk_entry_set_text(GTK_ENTRY(actions.name_entry), ""); + gtk_entry_set_text(GTK_ENTRY(actions.cmd_entry), ""); return; } strncpy(buf, action, PREFSBUFSIZE - 1); - buf[PREFSBUFSIZE - 1] = 0x00; + buf[PREFSBUFSIZE - 1] = '\0'; cmd = strstr(buf, ": "); - if (cmd && cmd[2]) - ENTRY_SET_TEXT(actions.cmd_entry, &cmd[2]); - else - return; - - *cmd = 0x00; - ENTRY_SET_TEXT(actions.name_entry, buf); + if (cmd && cmd[2]) { + gtk_entry_set_text(GTK_ENTRY(actions.cmd_entry), &cmd[2]); + *cmd = '\0'; + gtk_entry_set_text(GTK_ENTRY(actions.name_entry), buf); + } } static void prefs_actions_row_move(GtkCList *clist, |