[gimp] app: get the tool preset from the context
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: get the tool preset from the context
- Date: Sun, 4 Apr 2010 17:24:09 +0000 (UTC)
commit 8a8a2e1fac9a341032c7e322d29fb829a8f6e832
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 4 19:23:29 2010 +0200
app: get the tool preset from the context
app/actions/tool-preset-actions.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/app/actions/tool-preset-actions.c b/app/actions/tool-preset-actions.c
index 0e57ad7..21e0504 100644
--- a/app/actions/tool-preset-actions.c
+++ b/app/actions/tool-preset-actions.c
@@ -102,15 +102,14 @@ void
tool_preset_actions_update (GimpActionGroup *group,
gpointer user_data)
{
- GimpContext *context = action_data_get_context (user_data);
+ GimpContext *context = action_data_get_context (user_data);
GimpToolPreset *tool_preset = NULL;
- GimpData *data = NULL;
- const gchar *filename = NULL;
+ GimpData *data = NULL;
+ const gchar *filename = NULL;
if (context)
{
- tool_preset = GIMP_TOOL_PRESET (gimp_tool_preset_new("Current Options")); //FIXMEE!!!!!!!!!!!!
-
+ tool_preset = gimp_context_get_tool_preset (context);
if (tool_preset)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]