[gthumb/ext] check parameters for the load_location_after callbacks
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] check parameters for the load_location_after callbacks
- Date: Tue, 1 Sep 2009 07:39:04 +0000 (UTC)
commit f865a15f0e17e9553ae82338e11c01773e014528
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Sep 1 09:11:22 2009 +0200
check parameters for the load_location_after callbacks
[bug #593684]
extensions/catalogs/callbacks.c | 3 +++
extensions/file_manager/callbacks.c | 3 +++
extensions/rename_series/callbacks.c | 3 +++
extensions/search/callbacks.c | 3 +++
4 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/extensions/catalogs/callbacks.c b/extensions/catalogs/callbacks.c
index 6a501ca..a44766c 100644
--- a/extensions/catalogs/callbacks.c
+++ b/extensions/catalogs/callbacks.c
@@ -244,6 +244,9 @@ catalogs__gth_browser_load_location_after_cb (GthBrowser *browser,
{
BrowserData *data;
+ if ((location_data == NULL) || (error != NULL))
+ return;
+
data = g_object_get_data (G_OBJECT (browser), BROWSER_DATA_KEY);
if (GTH_IS_FILE_SOURCE_CATALOGS (gth_browser_get_location_source (browser))) {
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index adfd7a8..7231800 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -579,6 +579,9 @@ fm__gth_browser_load_location_after_cb (GthBrowser *browser,
BrowserData *data;
GtkWidget *file_view;
+ if ((location_data == NULL) || (error != NULL))
+ return;
+
data = g_object_get_data (G_OBJECT (browser), BROWSER_DATA_KEY);
file_manager_update_ui (data, browser);
diff --git a/extensions/rename_series/callbacks.c b/extensions/rename_series/callbacks.c
index cd0b30f..82e67ae 100644
--- a/extensions/rename_series/callbacks.c
+++ b/extensions/rename_series/callbacks.c
@@ -136,6 +136,9 @@ rs__gth_browser_load_location_after_cb (GthBrowser *browser,
{
BrowserData *data;
+ if ((location_data == NULL) || (error != NULL))
+ return;
+
data = g_object_get_data (G_OBJECT (browser), BROWSER_DATA_KEY);
file_manager_update_ui (data, browser);
}
diff --git a/extensions/search/callbacks.c b/extensions/search/callbacks.c
index b30e04d..313bf2b 100644
--- a/extensions/search/callbacks.c
+++ b/extensions/search/callbacks.c
@@ -150,6 +150,9 @@ search__gth_browser_load_location_after_cb (GthBrowser *browser,
BrowserData *data;
char *uri;
+ if ((location_data == NULL) || (error != NULL))
+ return;
+
data = g_object_get_data (G_OBJECT (browser), BROWSER_DATA_KEY);
uri = g_file_get_uri (location_data->file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]