[gthumb/ext: 61/79] show an error dialog if an error occurs
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext: 61/79] show an error dialog if an error occurs
- Date: Sun, 2 Aug 2009 20:31:13 +0000 (UTC)
commit 765aa1a9ff2f22f0b71d54a8cbbb86bfd10661dc
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jul 25 00:20:11 2009 +0200
show an error dialog if an error occurs
extensions/search/gth-search-task.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/extensions/search/gth-search-task.c b/extensions/search/gth-search-task.c
index 71bc692..94277d3 100644
--- a/extensions/search/gth-search-task.c
+++ b/extensions/search/gth-search-task.c
@@ -314,6 +314,11 @@ clear_search_result_copy_done_cb (void *buffer,
{
GthSearchTask *task = user_data;
+ if (error != NULL) {
+ _gtk_error_dialog_from_gerror_show (GTK_WINDOW (task->priv->browser), _("Could not create the catalog"), &error);
+ return;
+ }
+
task->priv->location_ready_id = g_signal_connect (task->priv->browser,
"location-ready",
G_CALLBACK (browser_location_ready_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]