sar->lw->sar_window = NULL;
gtk_widget_destroy(sar->window);
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
static gboolean entry_box_activate_cb(GtkWidget *UNUSED(widget), gpointer data)
reg_exp_str = g_string_new("\\b(\?=.*:)");
reg_exp_str = g_string_append(reg_exp_str, key);
- reg_exp = g_regex_new(reg_exp_str->str, G_REGEX_CASELESS, G_REGEX_MATCH_DEFAULT, &error);
+ reg_exp = g_regex_new(reg_exp_str->str, G_REGEX_CASELESS, GRegexMatchFlags(0), &error);
if (error)
{
log_printf("Error: could not compile regular expression %s\n%s\n", reg_exp_str->str, error->message);
g_error_free(error);
error = NULL;
- reg_exp = g_regex_new("", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL);
+ reg_exp = g_regex_new("", GRegexCompileFlags(0), GRegexMatchFlags(0), NULL);
}
- ret = g_regex_match(reg_exp, normalized, G_REGEX_MATCH_DEFAULT, NULL);
+ ret = g_regex_match(reg_exp, normalized, GRegexMatchFlags(0), NULL);
if (sar->match_found == FALSE && ret == TRUE)
{