]> err.no Git - mapper/commitdiff
Use a banner under hildon instead of a error dialog.
authorKaj-Michael Lang <milang@tal.org>
Sun, 27 Jan 2008 13:29:32 +0000 (15:29 +0200)
committerKaj-Michael Lang <milang@tal.org>
Sun, 27 Jan 2008 13:29:32 +0000 (15:29 +0200)
src/search.c

index 69965ede2aaa958e828b8aa29dab5910245090f8..e41f10565f47692b5e3044c005f1eccd850df2fb 100644 (file)
@@ -84,10 +84,18 @@ if (gtk_combo_box_get_active_iter(GTK_COMBO_BOX(s->cmb_category), &iter)==TRUE)
 else
        cid=-1;
 if (s->stype==SEARCH_TYPE_POI && cid==-1 && slen<2) {
+#ifdef WITH_HILDON
+       hildon_banner_show_information(s->dialog, NULL, _("Query string too short. Minimum 2 characters."));
+#else
        popup_error(s->dialog, _("Query string too short. Minimum 2 characters."));
+#endif
        return TRUE;
 } else if (slen<2 && s->stype!=SEARCH_TYPE_POI) {
+#ifdef WITH_HILDON
+       hildon_banner_show_information(s->dialog, NULL, _("Query string too short. Minimum 2 characters."));
+#else
        popup_error(s->dialog, _("Query string too short. Minimum 2 characters."));
+#endif
        return TRUE;
 }