From: Kaj-Michael Lang Date: Sun, 27 Jan 2008 13:29:32 +0000 (+0200) Subject: Use a banner under hildon instead of a error dialog. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39db6c26267fb61d1a37a1aaaeee9b8f13f681be;p=mapper Use a banner under hildon instead of a error dialog. --- diff --git a/src/search.c b/src/search.c index 69965ed..e41f105 100644 --- a/src/search.c +++ b/src/search.c @@ -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; }