aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorWonguk Jeong <wonguk.jeong@samsung.com>2014-09-22 17:23:03 +0200
committerWonguk Jeong <wonguk.jeong@samsung.com>2014-09-22 17:25:03 +0200
commitfcd67ce7a204d787f092ad974fc1bbd232565544 (patch)
treed299f55fb7bab889276cf71dfc5113eaefdfcdae /src/bin/options_font.c
parentgenerate tty_keys.h from xterm itself (diff)
downloadterminology-fcd67ce7a204d787f092ad974fc1bbd232565544.tar.gz
options: chagne step of font size slider from 2 to 1
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 16ae600..f30cae8 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -8,6 +8,9 @@
#include "utils.h"
#define TEST_STRING "oislOIS.015!|,"
+#define FONT_MIN 5
+#define FONT_MAX 45
+#define FONT_STEP (1.0 / (FONT_MAX - FONT_MIN))
static Evas_Object *op_fontslider, *op_fontlist, *op_fsml, *op_fbig;
@@ -375,7 +378,8 @@ options_font(Evas_Object *opbox, Evas_Object *term)
elm_slider_span_size_set(o, 40);
elm_slider_unit_format_set(o, "%1.0f");
elm_slider_indicator_format_set(o, "%1.0f");
- elm_slider_min_max_set(o, 5, 45);
+ elm_slider_min_max_set(o, FONT_MIN, FONT_MAX);
+ elm_slider_step_set(o, FONT_STEP);
elm_slider_value_set(o, config->font.size);
elm_box_pack_end(bx, o);
evas_object_show(o);