Hiroyuki Ikezoe
ikezo****@users*****
Fri Mar 16 14:17:34 JST 2007
Index: kazehakase/src/actions/kz-actions.c diff -u kazehakase/src/actions/kz-actions.c:1.243 kazehakase/src/actions/kz-actions.c:1.244 --- kazehakase/src/actions/kz-actions.c:1.243 Fri Mar 16 14:00:37 2007 +++ kazehakase/src/actions/kz-actions.c Fri Mar 16 14:17:34 2007 @@ -297,7 +297,8 @@ GtkWidget *widget = KZ_WINDOW_CURRENT_PAGE(kz); gchar *text; GRegex *regex; - gint n_match, i = 1; + gint i = 1; + gboolean match; GError *error = NULL; g_return_if_fail (KZ_IS_WINDOW((kz))); @@ -317,9 +318,9 @@ text = kz_embed_get_selection_string(KZ_EMBED(widget)); if (!text) return; - n_match = g_regex_match(regex, text, 0); + match = g_regex_match(regex, text, 0); - if (n_match > 0) + if (match) { gchar **uri; uri = g_regex_fetch_all(regex, text); Index: kazehakase/src/actions/kz-history-action.c diff -u kazehakase/src/actions/kz-history-action.c:1.29 kazehakase/src/actions/kz-history-action.c:1.30 --- kazehakase/src/actions/kz-history-action.c:1.29 Fri Mar 16 14:00:37 2007 +++ kazehakase/src/actions/kz-history-action.c Fri Mar 16 14:17:34 2007 @@ -355,8 +355,7 @@ } } - if (g_regex_match(action->completion_regex, - case_normalized_string, 0) > 0) + if (g_regex_match(action->completion_regex, case_normalized_string, 0)) { ret = TRUE; } Index: kazehakase/src/actions/kz-location-entry-action.c diff -u kazehakase/src/actions/kz-location-entry-action.c:1.58 kazehakase/src/actions/kz-location-entry-action.c:1.59 --- kazehakase/src/actions/kz-location-entry-action.c:1.58 Fri Mar 16 14:00:37 2007 +++ kazehakase/src/actions/kz-location-entry-action.c Fri Mar 16 14:17:34 2007 @@ -514,7 +514,7 @@ return; } - if (g_regex_match(regex, uri, 0) > 0) + if (g_regex_match(regex, uri, 0)) { *prefix = g_regex_fetch(regex, 1, uri); *path = g_regex_fetch(regex, 2, uri);