make disable cursor inverted logically in the ui (makes more sense)
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Jul 2012 07:46:01 +0000 (07:46 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Jul 2012 07:46:01 +0000 (07:46 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@73951 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/options_behavior.c

index 399721f..22bc042 100644 (file)
@@ -34,7 +34,7 @@ _cb_op_behavior_cursor_blink_chg(void *data, Evas_Object *obj, void *event __UNU
 {
    Evas_Object *term = data;
    Config *config = termio_config_get(term);
-   config->disable_cursor_blink = elm_check_state_get(obj);
+   config->disable_cursor_blink = !elm_check_state_get(obj);
    termio_config_update(term);
    config_save(config, NULL);
 }
@@ -144,8 +144,8 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
    o = elm_check_add(bx);
    evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
-   elm_object_text_set(o, "Disable cursor blinking");
-   elm_check_state_set(o, config->disable_cursor_blink);
+   elm_object_text_set(o, "Cursor blinking");
+   elm_check_state_set(o, !config->disable_cursor_blink);
    elm_box_pack_end(bx, o);
    evas_object_show(o);
    evas_object_smart_callback_add(o, "changed",