[gimp] app: use a spin scale for the aspect ratio
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use a spin scale for the aspect ratio
- Date: Tue, 2 Nov 2010 21:02:33 +0000 (UTC)
commit 6ee6fb9b81b9fc13314113a281e2d44f75d95e17
Author: Michael Natterer <mitch gimp org>
Date: Tue Nov 2 22:01:15 2010 +0100
app: use a spin scale for the aspect ratio
even though a non-log scale is totally broken here, but that at least
creates pressure for finding a solution...
app/tools/gimppaintoptions-gui.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/app/tools/gimppaintoptions-gui.c b/app/tools/gimppaintoptions-gui.c
index 490390f..8f99549 100644
--- a/app/tools/gimppaintoptions-gui.c
+++ b/app/tools/gimppaintoptions-gui.c
@@ -167,22 +167,22 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
G_CALLBACK (gimp_paint_options_gui_reset_size),
options);
- adj = gimp_prop_scale_entry_new (config, "brush-aspect-ratio",
- GTK_TABLE (table), 0, table_row++,
- /* Label for a slider that affects
- aspect ratio for brushes */
- _("Aspect:"),
- 0.01, 0.1, 2,
- FALSE, 0.0, 0.0);
- gimp_scale_entry_set_logarithmic (adj, TRUE);
-
- button = gimp_prop_spin_scale_new (config, "brush-angle",
- _("Angle"),
- 1.0, 5.0, 2);
- gtk_table_attach (GTK_TABLE (table), button,
+ scale = gimp_prop_spin_scale_new (config, "brush-aspect-ratio",
+ _("Aspect Ratio"),
+ 0.01, 0.1, 2);
+ gtk_table_attach (GTK_TABLE (table), scale,
0, 3, table_row, table_row + 1,
GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_SHRINK, 0, 0);
- gtk_widget_show (button);
+ gtk_widget_show (scale);
+ table_row++;
+
+ scale = gimp_prop_spin_scale_new (config, "brush-angle",
+ _("Angle"),
+ 1.0, 5.0, 2);
+ gtk_table_attach (GTK_TABLE (table), scale,
+ 0, 3, table_row, table_row + 1,
+ GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_SHRINK, 0, 0);
+ gtk_widget_show (scale);
table_row++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]