Documentation: Use G_SOURCE_CONTINUE and G_SOURCE_REMOVE
[geeqie.git] / src / search-and-run.cc
index 7e6dd5f..af5a7a3 100644 (file)
@@ -179,7 +179,7 @@ static gboolean search_and_run_destroy(gpointer data)
        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)
@@ -254,16 +254,16 @@ static gboolean match_func(GtkEntryCompletion *completion, const gchar *key, Gtk
        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)
                {