From cc1b3fe7e9b754ffe6c61730a3a39186c6702194 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pekka=20Geh=C3=B6r?= Date: Fri, 16 Jan 2009 13:38:10 +0200 Subject: [PATCH] added name check functio. --- irreco/src/core/irreco_background_creator_dlg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/irreco/src/core/irreco_background_creator_dlg.c b/irreco/src/core/irreco_background_creator_dlg.c index 183c2fa9..f25eb77b 100644 --- a/irreco/src/core/irreco_background_creator_dlg.c +++ b/irreco/src/core/irreco_background_creator_dlg.c @@ -338,6 +338,11 @@ irreco_background_creator_dlg_check_details(IrrecoBackgroundCreatorDlg *self) "Background has already existed"); rvalue = FALSE; } + if (g_utf8_strlen(gtk_entry_get_text(GTK_ENTRY(self->entry_name)), 1) ==0) { + irreco_error_dlg(GTK_WINDOW(self), + "Set Background name"); + rvalue = FALSE; + } IRRECO_RETURN_BOOL(rvalue); } /** @} */ -- 2.11.4.GIT