summaryrefslogtreecommitdiff
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-06-19 12:54:50 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-06-19 12:54:50 +0000
commit7666a1570b70e736653998caac1240ac7e9a79da (patch)
treed805eb2ec5caa2ff56b96fd4276e51d2e168f146 /src/bin/options_font.c
parent70603e55279258b6e3c950bd0de400ef2b9a2bad (diff)
disable font size slider when selecting a bitmap.
SVN revision: 72475
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 58501a8..ce90dea 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -6,7 +6,7 @@
6#include "options.h" 6#include "options.h"
7#include "options_font.h" 7#include "options_font.h"
8 8
9static Evas_Object *op_fontslider, *op_fontlist; 9static Evas_Object *op_fontslider, *op_fontlist, *op_fsml, *op_fbig;
10 10
11typedef struct _Font Font; 11typedef struct _Font Font;
12 12
@@ -62,6 +62,9 @@ _cb_op_font_sel(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
62 config->font.bitmap = f->bitmap; 62 config->font.bitmap = f->bitmap;
63 _update_sizing(f->term); 63 _update_sizing(f->term);
64 config_save(config, NULL); 64 config_save(config, NULL);
65 elm_object_disabled_set(op_fsml, f->bitmap);
66 elm_object_disabled_set(op_fontslider, f->bitmap);
67 elm_object_disabled_set(op_fbig, f->bitmap);
65} 68}
66 69
67static void 70static void
@@ -209,7 +212,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
209 bx = o = elm_box_add(opbox); 212 bx = o = elm_box_add(opbox);
210 elm_box_horizontal_set(o, EINA_TRUE); 213 elm_box_horizontal_set(o, EINA_TRUE);
211 214
212 o = elm_label_add(opbox); 215 op_fsml = o = elm_label_add(opbox);
213 elm_object_text_set(o, "<font_size=6>A</font_size>"); 216 elm_object_text_set(o, "<font_size=6>A</font_size>");
214 elm_box_pack_end(bx, o); 217 elm_box_pack_end(bx, o);
215 evas_object_show(o); 218 evas_object_show(o);
@@ -228,7 +231,7 @@ options_font(Evas_Object *opbox, Evas_Object *term)
228 evas_object_smart_callback_add(o, "delay,changed", 231 evas_object_smart_callback_add(o, "delay,changed",
229 _cb_op_fontsize_sel, term); 232 _cb_op_fontsize_sel, term);
230 233
231 o = elm_label_add(opbox); 234 op_fbig = o = elm_label_add(opbox);
232 elm_object_text_set(o, "<font_size=24>A</font_size>"); 235 elm_object_text_set(o, "<font_size=24>A</font_size>");
233 elm_box_pack_end(bx, o); 236 elm_box_pack_end(bx, o);
234 evas_object_show(o); 237 evas_object_show(o);
@@ -279,6 +282,9 @@ options_font(Evas_Object *opbox, Evas_Object *term)
279 { 282 {
280 elm_genlist_item_selected_set(it, EINA_TRUE); 283 elm_genlist_item_selected_set(it, EINA_TRUE);
281 sel_it = it; 284 sel_it = it;
285 elm_object_disabled_set(op_fsml, EINA_TRUE);
286 elm_object_disabled_set(op_fontslider, EINA_TRUE);
287 elm_object_disabled_set(op_fbig, EINA_TRUE);
282 } 288 }
283 free(file); 289 free(file);
284 } 290 }