[gimp] app: add a precision combo to GimpTemplateEditor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add a precision combo to GimpTemplateEditor
- Date: Wed, 2 May 2012 16:41:37 +0000 (UTC)
commit d724aca1a33e8f55fe8dba4d4789d756496105cb
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 22 19:10:01 2012 +0200
app: add a precision combo to GimpTemplateEditor
app/widgets/gimptemplateeditor.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimptemplateeditor.c b/app/widgets/gimptemplateeditor.c
index f17cbfa..ab08e41 100644
--- a/app/widgets/gimptemplateeditor.c
+++ b/app/widgets/gimptemplateeditor.c
@@ -289,7 +289,7 @@ gimp_template_editor_constructed (GObject *object)
gtk_container_add (GTK_CONTAINER (private->expander), frame);
gtk_widget_show (frame);
- table = gtk_table_new (5, 2, FALSE);
+ table = gtk_table_new (6, 2, FALSE);
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2);
@@ -389,10 +389,17 @@ gimp_template_editor_constructed (GObject *object)
combo, 1, FALSE);
combo = gimp_prop_enum_combo_box_new (G_OBJECT (template),
+ "precision",
+ -1, -1);
+ gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
+ _("_Precision:"), 0.0, 0.5,
+ combo, 1, FALSE);
+
+ combo = gimp_prop_enum_combo_box_new (G_OBJECT (template),
"fill-type",
GIMP_FOREGROUND_FILL,
GIMP_PATTERN_FILL);
- gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
+ gimp_table_attach_aligned (GTK_TABLE (table), 0, 4,
_("_Fill with:"), 0.0, 0.5,
combo, 1, FALSE);
@@ -402,7 +409,7 @@ gimp_template_editor_constructed (GObject *object)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gimp_table_attach_aligned (GTK_TABLE (table), 0, 4,
+ gimp_table_attach_aligned (GTK_TABLE (table), 0, 5,
_("Comme_nt:"), 0.0, 0.0,
scrolled_window, 1, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]