for (i=0;i<words->len;++i)
{
data = g_array_index (words, osso_rpc_t, i);
- tmp_word = g_strconcat(data.value.s,NULL);
+ tmp_word = g_strdup(data.value.s);
g_array_append_val(tmp, tmp_word);
}
if (ws_gui_app->history_flag == TRUE)
{
- GValue value;// = { 0, };
+ GValue value = { 0, };
GtkTreeIter tmp_iter;
gchar *pattern;
gboolean keep_searching = TRUE;
ws_gui_app->ws_gui_history_cur_pos)),
NULL);
-
-
ws_dbus_client_find_word (ws_gui_app->dbus_data,
- g_array_index(ws_gui_app->ws_gui_history_list,
+ g_strstrip(g_array_index(ws_gui_app->ws_gui_history_list,
gchar*,
- ws_gui_app->ws_gui_history_cur_pos)
+ ws_gui_app->ws_gui_history_cur_pos))
);
}
else
ws_dbus_client_find_word(ws_gui_app->dbus_data,
- g_array_index(ws_gui_app->ws_gui_history_list,
+ g_strstrip(g_array_index(ws_gui_app->ws_gui_history_list,
gchar*,
- ws_gui_app->ws_gui_history_cur_pos)
+ ws_gui_app->ws_gui_history_cur_pos))
);
}