[gimp] check that the action has a gimp pointer attached before using it
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] check that the action has a gimp pointer attached before using it
- Date: Thu, 8 Oct 2009 22:34:19 +0000 (UTC)
commit 8c221ebfe51aa3dd30a7b61540be03e74b653b75
Author: Sven Neumann <sven gimp org>
Date: Fri Oct 9 00:33:27 2009 +0200
check that the action has a gimp pointer attached before using it
app/actions/config-commands.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/config-commands.c b/app/actions/config-commands.c
index ebacbc1..d11b0b4 100644
--- a/app/actions/config-commands.c
+++ b/app/actions/config-commands.c
@@ -34,7 +34,8 @@ config_use_gegl_cmd_callback (GtkAction *action,
gpointer data)
{
GtkToggleAction *toggle_action = GTK_TOGGLE_ACTION (action);
- Gimp *gimp = action_data_get_gimp (data);
+ Gimp *gimp = NULL;
+ return_if_no_gimp (gimp, data);
g_object_set (gimp->config,
"use-gegl", gtk_toggle_action_get_active (toggle_action),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]