Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
bin: Update function names per api changes, added temporary conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
wltjr committed May 22, 2019
1 parent 9c5bc79 commit 535ce80
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bin/ui/settings_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ _settings_default_font_cb(void *data,
_disable_font_widgets(state);
if(state)
{
#ifdef EFL_VERSION_1_22
elm_code_widget_font_set(doc->widget, NULL, 10);
#else
elm_obj_code_widget_font_set(doc->widget, NULL, 10);
#endif
ent_cfg->font.name = NULL;
ent_cfg->font.size = 10;
ecrire_cfg_save();
Expand Down Expand Up @@ -197,7 +201,11 @@ _settings_insert_spaces_cb (void *data,
Eina_Bool state;

state = elm_check_state_get(obj);
#ifdef EFL_VERSION_1_22
elm_code_widget_tab_inserts_spaces_set((Elm_Code_Widget *)data, state);
#else
elm_obj_code_widget_tab_inserts_spaces_set((Elm_Code_Widget *)data, state);
#endif
ent_cfg->insert_spaces = !state;
ecrire_cfg_save();
}
Expand All @@ -210,7 +218,11 @@ _settings_line_numbers_cb (void *data,
Eina_Bool state;

state = elm_check_state_get (obj);
#ifdef EFL_VERSION_1_22
elm_code_widget_line_numbers_set ((Elm_Code_Widget *)data, state);
#else
elm_obj_code_widget_line_numbers_set ((Elm_Code_Widget *)data, state);
#endif
ent_cfg->line_numbers = !state;
ecrire_cfg_save();
}
Expand Down

0 comments on commit 535ce80

Please sign in to comment.