Mercurial > pidgin.yaz
comparison pidgin/gtksmiley.c @ 22883:09f426ca9ca7
Attempt at a better error message.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 25 Feb 2008 04:39:37 +0000 |
parents | d1bcb54920f8 |
children | 019052a807a3 |
comparison
equal
deleted
inserted
replaced
22882:d30bee8d6bdf | 22883:09f426ca9ca7 |
---|---|
198 | 198 |
199 entry = gtk_entry_get_text(GTK_ENTRY(s->smile)); | 199 entry = gtk_entry_get_text(GTK_ENTRY(s->smile)); |
200 | 200 |
201 if (s->filename == NULL || *entry == 0) { | 201 if (s->filename == NULL || *entry == 0) { |
202 purple_notify_error(s->parent, _("Custom Smiley"), | 202 purple_notify_error(s->parent, _("Custom Smiley"), |
203 _("More Data needed"), NULL); | 203 _("More Data needed"), |
204 s->filename ? _("Please provide a shortcut to associate with the smiley.") | |
205 : _("Please select an image for the smiley.")); | |
204 return; | 206 return; |
205 } | 207 } |
206 | 208 |
207 purple_debug_info("gtksmiley", "adding a new smiley\n"); | 209 purple_debug_info("gtksmiley", "adding a new smiley\n"); |
208 file = g_path_get_basename(s->filename); | 210 file = g_path_get_basename(s->filename); |