[gimp/soc-2009-dynamics] Have config value for prop button.
- From: zhenfeng zhao <zhenfengz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Have config value for prop button.
- Date: Mon, 24 Aug 2009 14:16:40 +0000 (UTC)
commit 2ba3b36969fcb2b07e8533d1b508fe4cbcd40b11
Author: zhenfeng zhao <zhzzf_0808 hotmail com>
Date: Mon Aug 24 11:15:14 2009 -0300
Have config value for prop button.
app/widgets/gimpdynamicseditor.c | 14 +++++++++++---
app/widgets/gimpdynamicseditor.h | 4 ++--
2 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/app/widgets/gimpdynamicseditor.c b/app/widgets/gimpdynamicseditor.c
index 11260c6..6206cc3 100644
--- a/app/widgets/gimpdynamicseditor.c
+++ b/app/widgets/gimpdynamicseditor.c
@@ -152,7 +152,8 @@ gimp_dynamics_editor_new (GimpContext *context,
g_return_val_if_fail (GIMP_IS_MENU_FACTORY (menu_factory), NULL);
g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL);
- return g_object_new (GIMP_TYPE_DYNAMICS_EDITOR,
+ GimpDynamicsEditor *editor;
+ editor = g_object_new (GIMP_TYPE_DYNAMICS_EDITOR,
"menu-factory", menu_factory,
"menu-identifier", "<DynamicsEditor>",
"ui-path", "/dynamics-editor-popup",
@@ -160,6 +161,10 @@ gimp_dynamics_editor_new (GimpContext *context,
"context", context,
"data", gimp_context_get_dynamics (context),
NULL);
+
+ editor->config_data = G_OBJECT(context);
+
+ return editor;
}
@@ -186,7 +191,8 @@ gimp_dynamics_editor_init (GimpDynamicsEditor *editor)
gint n_dynamics = 0;
GtkWidget *dynamics_labels[7];
//GObject *config = get_config_value (editor);
- GObject *config = G_OBJECT(editor);
+ //GObject *config = G_OBJECT(editor->data);
+ GObject *config = editor->config_data;
vbox = gtk_vbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (data_editor), vbox, TRUE, TRUE, 0);
@@ -518,11 +524,13 @@ pressure_options_gui (GObject *config,
labels[column - 1]);
column++;
}
-
+/*
scalebutton = gimp_prop_scale_button_new (config, "pressure-prescale");
gtk_table_attach (table, scalebutton, column, column + 1, row, row + 1,
GTK_SHRINK, GTK_SHRINK, 0, 0);
gtk_widget_show (scalebutton);
+ */
+
}
/*
static void
diff --git a/app/widgets/gimpdynamicseditor.h b/app/widgets/gimpdynamicseditor.h
index 90a72a9..be22c78 100644
--- a/app/widgets/gimpdynamicseditor.h
+++ b/app/widgets/gimpdynamicseditor.h
@@ -36,8 +36,8 @@ struct _GimpDynamicsEditor
GimpDataEditor parent_instance;
GtkWidget *options_vbox;
- GtkAdjustment *data;
-
+ //GtkAdjustment *data;
+ GObject *config_data;
};
struct _GimpDynamicsEditorClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]