From 1b59cdcdd95fca5b41155e029efaa5e28cb455f6 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 24 Mar 2010 03:06:00 +0000 Subject: [PATCH] const and -Wextra, come on guys! :-/ SVN revision: 47409 --- src/lib/Elementary.h.in | 152 +++++++++++++++++++++---------------------- src/lib/elc_fileselector.c | 10 +-- src/lib/elc_hoversel.c | 6 +- src/lib/elc_scrolled_entry.c | 8 +-- src/lib/elm_bubble.c | 4 +- src/lib/elm_button.c | 4 +- src/lib/elm_check.c | 4 +- src/lib/elm_entry.c | 11 ++-- src/lib/elm_flip.c | 2 +- src/lib/elm_frame.c | 2 +- src/lib/elm_index.c | 4 +- src/lib/elm_label.c | 2 +- src/lib/elm_list.c | 4 +- src/lib/elm_main.c | 2 +- src/lib/elm_map.c | 12 ++-- src/lib/elm_pager.c | 4 +- src/lib/elm_panel.c | 1 - src/lib/elm_photocam.c | 12 ++-- src/lib/elm_radio.c | 4 +- src/lib/elm_scroller.c | 4 +- src/lib/elm_separator.c | 2 +- src/lib/elm_slider.c | 4 +- src/lib/elm_slideshow.c | 6 +- src/lib/elm_spinner.c | 2 +- src/lib/elm_thumb.c | 26 ++++---- src/lib/elm_toggle.c | 4 +- src/lib/elm_toolbar.c | 2 +- src/lib/elm_win.c | 32 ++++----- 28 files changed, 164 insertions(+), 166 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index d99c946..f09faa8 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -246,7 +246,7 @@ extern "C" { EAPI void elm_object_focus(Evas_Object *obj); EAPI void elm_object_unfocus(Evas_Object *obj); EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable); - EAPI Eina_Bool elm_object_focus_allow_get(Evas_Object *obj); + EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj); EAPI void elm_object_scroll_hold_push(Evas_Object *obj); EAPI void elm_object_scroll_hold_pop(Evas_Object *obj); @@ -271,36 +271,36 @@ extern "C" { EAPI void elm_win_lower(Evas_Object *obj); EAPI void elm_win_raise(Evas_Object *obj); EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless); - EAPI Eina_Bool elm_win_borderless_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj); EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped); - EAPI Eina_Bool elm_win_shaped_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj); EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha); - EAPI Eina_Bool elm_win_transparent_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj); EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent); - EAPI Eina_Bool elm_win_alpha_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj); EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override); - EAPI Eina_Bool elm_win_override_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj); EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen); - EAPI Eina_Bool elm_win_fullscreen_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj); EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized); - EAPI Eina_Bool elm_win_maximized_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj); EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified); - EAPI Eina_Bool elm_win_iconified_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj); EAPI void elm_win_layer_set(Evas_Object *obj, int layer); - EAPI int elm_win_layer_get(Evas_Object *obj); + EAPI int elm_win_layer_get(const Evas_Object *obj); EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation); EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation); - EAPI int elm_win_rotation_get(Evas_Object *obj); + EAPI int elm_win_rotation_get(const Evas_Object *obj); EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky); - EAPI Eina_Bool elm_win_sticky_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj); EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant); - EAPI Eina_Bool elm_win_conformant_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj); EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel); - EAPI Eina_Bool elm_win_quickpanel_get(Evas_Object *obj); + EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj); EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority); - EAPI int elm_win_quickpanel_priority_major_get(Evas_Object *obj); + EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj); EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority); - EAPI int elm_win_quickpanel_priority_minor_get(Evas_Object *obj); + EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj); EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone); /*... @@ -319,7 +319,7 @@ extern "C" { EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode); EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard); - EAPI void elm_win_screen_position_get(Evas_Object *obj, int *x, int *y); + EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y); EAPI Evas_Object *elm_win_inwin_add(Evas_Object *obj); EAPI void elm_win_inwin_activate(Evas_Object *obj); @@ -396,9 +396,9 @@ extern "C" { EAPI Evas_Object *elm_button_add(Evas_Object *parent); EAPI void elm_button_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_button_label_get(Evas_Object *obj); + EAPI const char *elm_button_label_get(const Evas_Object *obj); EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_button_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj); EAPI void elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on); EAPI void elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t); EAPI void elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t); @@ -427,8 +427,8 @@ extern "C" { EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h); EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h); EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v); - EAPI void elm_scroller_region_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); - EAPI void elm_scroller_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); + EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); + EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h); EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize); @@ -447,7 +447,7 @@ extern "C" { EAPI Evas_Object *elm_label_add(Evas_Object *parent); EAPI void elm_label_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_label_label_get(Evas_Object *obj); + EAPI const char *elm_label_label_get(const Evas_Object *obj); EAPI void elm_label_line_wrap_set(Evas_Object *obj, Eina_Bool wrap); EAPI Eina_Bool elm_label_line_wrap_get(const Evas_Object *obj); EAPI void elm_label_wrap_width_set(Evas_Object *obj, Evas_Coord w); @@ -461,9 +461,9 @@ extern "C" { EAPI Evas_Object *elm_toggle_add(Evas_Object *parent); EAPI void elm_toggle_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_toggle_label_get(Evas_Object *obj); + EAPI const char *elm_toggle_label_get(const Evas_Object *obj); EAPI void elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_toggle_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_toggle_icon_get(const Evas_Object *obj); EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel); EAPI void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state); EAPI Eina_Bool elm_toggle_state_get(const Evas_Object *obj); @@ -474,7 +474,7 @@ extern "C" { EAPI Evas_Object *elm_frame_add(Evas_Object *parent); EAPI void elm_frame_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_frame_label_get(Evas_Object *obj); + EAPI const char *elm_frame_label_get(const Evas_Object *obj); EAPI void elm_frame_content_set(Evas_Object *obj, Evas_Object *content); /* available styles: * default @@ -592,16 +592,16 @@ extern "C" { EAPI void elm_entry_cursor_line_end_set(Evas_Object *obj); EAPI void elm_entry_cursor_selection_begin(Evas_Object *obj); EAPI void elm_entry_cursor_selection_end(Evas_Object *obj); - EAPI Eina_Bool elm_entry_cursor_is_format_get(Evas_Object *obj); - EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(Evas_Object *obj); - EAPI const char *elm_entry_cursor_content_get(Evas_Object *obj); + EAPI Eina_Bool elm_entry_cursor_is_format_get(const Evas_Object *obj); + EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object *obj); + EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj); EAPI void elm_entry_selection_cut(Evas_Object *obj); EAPI void elm_entry_selection_copy(Evas_Object *obj); EAPI void elm_entry_selection_paste(Evas_Object *obj); EAPI void elm_entry_context_menu_clear(Evas_Object *obj); EAPI void elm_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data); EAPI void elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled); - EAPI Eina_Bool elm_entry_context_menu_disabled_get(Evas_Object *obj); + EAPI Eina_Bool elm_entry_context_menu_disabled_get(const Evas_Object *obj); EAPI char *elm_entry_markup_to_utf8(const char *s); EAPI char *elm_entry_utf8_to_markup(const char *s); /* smart callbacks called: @@ -685,11 +685,11 @@ extern "C" { EAPI Evas_Object *elm_bubble_add(Evas_Object *parent); EAPI void elm_bubble_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_bubble_label_get(Evas_Object *obj); + EAPI const char *elm_bubble_label_get(const Evas_Object *obj); EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info); EAPI void elm_bubble_content_set(Evas_Object *obj, Evas_Object *content); EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_bubble_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj); EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner); /* smart callbacks called: */ @@ -703,10 +703,10 @@ extern "C" { EAPI Evas_Object *elm_thumb_add(Evas_Object *parent); EAPI void elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key); - EAPI void elm_thumb_file_get(Evas_Object *obj, const char **file, const char **key); + EAPI void elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key); EAPI void elm_thumb_keep_aspect_set(Evas_Object *obj, Eina_Bool setting); EAPI void elm_thumb_align_set(Evas_Object *obj, float x_align, float y_align); - EAPI void elm_thumb_align_get(Evas_Object *obj, float *x, float *y); + EAPI void elm_thumb_align_get(const Evas_Object *obj, float *x, float *y); EAPI void elm_thumb_animate(Evas_Object *obj, Elm_Thumb_Animation_Setting s); EAPI Eina_Bool elm_thumb_ethumb_client_connected(void); #ifdef ELM_ETHUMB @@ -728,13 +728,13 @@ extern "C" { EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent); EAPI void elm_hoversel_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_hoversel_label_get(Evas_Object *obj); + EAPI const char *elm_hoversel_label_get(const Evas_Object *obj); EAPI void elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_hoversel_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_hoversel_icon_get(const Evas_Object *obj); EAPI void elm_hoversel_hover_begin(Evas_Object *obj); EAPI void elm_hoversel_hover_end(Evas_Object *obj); EAPI void elm_hoversel_clear(Evas_Object *obj); - EAPI const Eina_List * elm_hoversel_items_get(Evas_Object *obj); + EAPI const Eina_List * elm_hoversel_items_get(const Evas_Object *obj); EAPI Elm_Hoversel_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data); EAPI void elm_hoversel_item_del(Elm_Hoversel_Item *item); EAPI void elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func); @@ -751,7 +751,7 @@ extern "C" { typedef struct _Elm_Toolbar_Item Elm_Toolbar_Item; EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent); EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size); - EAPI int elm_toolbar_icon_size_get(Evas_Object *obj); + EAPI int elm_toolbar_icon_size_get(const Evas_Object *obj); EAPI Elm_Toolbar_Item *elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, Evas_Smart_Cb func, const void *data); EAPI Evas_Object *elm_toolbar_item_icon_get(Elm_Toolbar_Item *item); EAPI const char *elm_toolbar_item_label_get(Elm_Toolbar_Item *item); @@ -809,9 +809,9 @@ extern "C" { EAPI void elm_list_clear(Evas_Object *obj); EAPI void elm_list_go(Evas_Object *obj); EAPI void elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi); - EAPI Eina_Bool elm_list_multi_select_get(Evas_Object *obj); + EAPI Eina_Bool elm_list_multi_select_get(const Evas_Object *obj); EAPI void elm_list_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode); - EAPI Elm_List_Mode elm_list_horizontal_mode_get(Evas_Object *obj); + EAPI Elm_List_Mode elm_list_horizontal_mode_get(const Evas_Object *obj); EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select); EAPI const Eina_List *elm_list_items_get(const Evas_Object *obj); EAPI Elm_List_Item *elm_list_selected_item_get(const Evas_Object *obj); @@ -852,9 +852,9 @@ extern "C" { EAPI Evas_Object *elm_slider_add(Evas_Object *parent); EAPI void elm_slider_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_slider_label_get(Evas_Object *obj); + EAPI const char *elm_slider_label_get(const Evas_Object *obj); EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_slider_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_slider_icon_get(const Evas_Object *obj); EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size); EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format); EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator); @@ -948,18 +948,18 @@ extern "C" { EAPI Evas_Object *elm_check_add(Evas_Object *parent); EAPI void elm_check_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_check_label_get(Evas_Object *obj); + EAPI const char *elm_check_label_get(const Evas_Object *obj); EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_check_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj); EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state); EAPI Eina_Bool elm_check_state_get(const Evas_Object *obj); EAPI void elm_check_state_pointer_set(Evas_Object *obj, Eina_Bool *statep); EAPI Evas_Object *elm_radio_add(Evas_Object *parent); EAPI void elm_radio_label_set(Evas_Object *obj, const char *label); - EAPI const char *elm_radio_label_get(Evas_Object *obj); + EAPI const char *elm_radio_label_get(const Evas_Object *obj); EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon); - EAPI Evas_Object *elm_radio_icon_get(Evas_Object *obj); + EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj); EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group); EAPI void elm_radio_state_value_set(Evas_Object *obj, int value); EAPI void elm_radio_value_set(Evas_Object *obj, int value); @@ -970,8 +970,8 @@ extern "C" { EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content); EAPI void elm_pager_content_pop(Evas_Object *obj); EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content); - EAPI Evas_Object *elm_pager_content_bottom_get(Evas_Object *obj); - EAPI Evas_Object *elm_pager_content_top_get(Evas_Object *obj); + EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj); + EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj); /* available item styles: * default * fade @@ -997,30 +997,30 @@ extern "C" { EAPI void elm_slideshow_show(Elm_Slideshow_Item *item); EAPI void elm_slideshow_next(Evas_Object *obj); EAPI void elm_slideshow_previous(Evas_Object *obj); - EAPI const Eina_List *elm_slideshow_transitions_get(Evas_Object *obj); + EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj); EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *); EAPI void elm_slideshow_timeout_set(Evas_Object *obj ,int timeout); - EAPI int elm_slideshow_timeout_get(Evas_Object *obj); + EAPI int elm_slideshow_timeout_get(const Evas_Object *obj); EAPI void elm_slideshow_loop_set(Evas_Object *obj, int loop); EAPI void elm_slideshow_clear(Evas_Object *obj); EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj); EAPI void elm_slideshow_item_del(Elm_Slideshow_Item *item); EAPI void * elm_slideshow_item_data_get(Elm_Slideshow_Item *item); - EAPI Elm_Slideshow_Item* elm_slideshow_item_current_get(Evas_Object *obj); + EAPI Elm_Slideshow_Item* elm_slideshow_item_current_get(const Evas_Object *obj); EAPI Evas_Object* elm_slideshow_item_object_get(Elm_Slideshow_Item* item); EAPI Evas_Object *elm_fileselector_add(Evas_Object *parent); EAPI void elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save); - EAPI Eina_Bool elm_fileselector_is_save_get(Evas_Object *obj); + EAPI Eina_Bool elm_fileselector_is_save_get(const Evas_Object *obj); EAPI void elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only); - EAPI Eina_Bool elm_fileselector_folder_only_get(Evas_Object *obj); + EAPI Eina_Bool elm_fileselector_folder_only_get(const Evas_Object *obj); EAPI void elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool buttons); - EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(Evas_Object *obj); + EAPI Eina_Bool elm_fileselector_buttons_ok_cancel_get(const Evas_Object *obj); EAPI void elm_fileselector_expandable_set(Evas_Object *obj, Eina_Bool expand); EAPI void elm_fileselector_path_set(Evas_Object *obj, const char *path); - EAPI const char *elm_fileselector_path_get(Evas_Object *obj); - EAPI const char *elm_fileselector_selected_get(Evas_Object *obj); + EAPI const char *elm_fileselector_path_get(const Evas_Object *obj); + EAPI const char *elm_fileselector_selected_get(const Evas_Object *obj); /* smart callbacks called: * "selected" - the user click on a file * "directory,open" - the list is populate with a new content. event_info is a directory. @@ -1047,13 +1047,13 @@ extern "C" { EAPI Evas_Object *elm_separator_add(Evas_Object *parent); EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); - EAPI Eina_Bool elm_separator_horizontal_get(Evas_Object *obj); + EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj); /* smart callbacks called: */ EAPI Evas_Object *elm_spinner_add(Evas_Object *parent); EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt); - EAPI const char *elm_spinner_label_format_get(Evas_Object *obj); + EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj); EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max); EAPI void elm_spinner_step_set(Evas_Object *obj, double step); EAPI void elm_spinner_value_set(Evas_Object *obj, double val); @@ -1071,8 +1071,8 @@ extern "C" { EAPI Evas_Object *elm_index_add(Evas_Object *parent); EAPI void elm_index_active_set(Evas_Object *obj, Eina_Bool active); EAPI void elm_index_item_level_set(Evas_Object *obj, int level); - EAPI int elm_index_item_level_get(Evas_Object *obj); - EAPI const void *elm_index_item_selected_get(Evas_Object *obj, int level); + EAPI int elm_index_item_level_get(const Evas_Object *obj); + EAPI const void *elm_index_item_selected_get(const Evas_Object *obj, int level); EAPI void elm_index_item_append(Evas_Object *obj, const char *letter, const void *item); EAPI void elm_index_item_prepend(Evas_Object *obj, const char *letter, const void *item); EAPI void elm_index_item_append_relative(Evas_Object *obj, const char *letter, const void *item, const void *relative); @@ -1094,17 +1094,17 @@ extern "C" { } Elm_Photocam_Zoom_Mode; EAPI Evas_Object *elm_photocam_add(Evas_Object *parent); EAPI int elm_photocam_file_set(Evas_Object *obj, const char *file); - EAPI const char * elm_photocam_file_get(Evas_Object *obj); + EAPI const char * elm_photocam_file_get(const Evas_Object *obj); EAPI void elm_photocam_zoom_set(Evas_Object *obj, double zoom); - EAPI double elm_photocam_zoom_get(Evas_Object *obj); + EAPI double elm_photocam_zoom_get(const Evas_Object *obj); EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode); - EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(Evas_Object *obj); - EAPI void elm_photocam_image_size_get(Evas_Object *obj, int *w, int *h); - EAPI void elm_photocam_region_get(Evas_Object *obj, int *x, int *y, int *w, int *h); + EAPI Elm_Photocam_Zoom_Mode elm_photocam_zoom_mode_get(const Evas_Object *obj); + EAPI void elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h); + EAPI void elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h); EAPI void elm_photocam_image_region_show(Evas_Object *obj, int x, int y, int w, int h); EAPI void elm_photocam_image_region_bring_in(Evas_Object *obj, int x, int y, int w, int h); EAPI void elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused); - EAPI Eina_Bool elm_photocam_paused_get(Evas_Object *obj); + EAPI Eina_Bool elm_photocam_paused_get(const Evas_Object *obj); EAPI Evas_Object *elm_photocam_internal_image_get(const Evas_Object *obj); /* smart callbacks called: @@ -1157,16 +1157,16 @@ extern "C" { EAPI Evas_Object *elm_map_add(Evas_Object *parent); EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom); - EAPI double elm_map_zoom_get(Evas_Object *obj); + EAPI double elm_map_zoom_get(const Evas_Object *obj); EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode); - EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(Evas_Object *obj); - EAPI void elm_map_geo_region_get(Evas_Object *obj, double *lon, double *lat); + EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj); + EAPI void elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat); EAPI void elm_map_geo_region_bring_in(Evas_Object *obj, double lon, double lat); EAPI void elm_map_geo_region_show(Evas_Object *obj, double lon, double lat); EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused); - EAPI Eina_Bool elm_map_paused_get(Evas_Object *obj); + EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj); EAPI void elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused); - EAPI Eina_Bool elm_map_paused_markers_get(Evas_Object *obj); + EAPI Eina_Bool elm_map_paused_markers_get(const Evas_Object *obj); EAPI void elm_map_utils_convert_coord_into_geo(int x, int y, int size, double *lon, double *lat); EAPI void elm_map_utils_convert_geo_into_coord(double lon, double lat, int size, int *x, int *y); EAPI Elm_Map_Marker *elm_map_marker_add(Evas_Object *obj, double lon, double lat, Elm_Map_Marker_Class *clas, Elm_Map_Group_Class *clas_group, void *data); @@ -1194,7 +1194,7 @@ extern "C" { EAPI void elm_map_marker_class_del_cb_set(Elm_Map_Marker_Class *clas, ElmMapMarkerDelFunc del); EAPI void elm_map_source_set(Evas_Object *obj, Elm_Map_Sources source); - EAPI Elm_Map_Sources elm_map_source_get(Evas_Object *obj); + EAPI Elm_Map_Sources elm_map_source_get(const Evas_Object *obj); EAPI void elm_map_source_custom_api_set(Elm_Map_Sources source, const char *label, int zoom_min, int zoom_max, ElmMapSourceURLFunc url_cb); EAPI int elm_map_source_zoom_min_get(Elm_Map_Sources source); @@ -1258,7 +1258,7 @@ extern "C" { EAPI Evas_Object *elm_flip_add(Evas_Object *parent); EAPI void elm_flip_content_front_set(Evas_Object *obj, Evas_Object *content); EAPI void elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content); - EAPI Eina_Bool elm_flip_front_get(Evas_Object *obj); + EAPI Eina_Bool elm_flip_front_get(const Evas_Object *obj); EAPI void elm_flip_perspective_set(Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y); EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode); /* smart callbacks called: @@ -1288,16 +1288,16 @@ extern "C" { EAPI void elm_scrolled_entry_cursor_line_end_set(Evas_Object *obj); EAPI void elm_scrolled_entry_cursor_selection_begin(Evas_Object *obj); EAPI void elm_scrolled_entry_cursor_selection_end(Evas_Object *obj); - EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(Evas_Object *obj); - EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(Evas_Object *obj); - EAPI const char *elm_scrolled_entry_cursor_content_get(Evas_Object *obj); + EAPI Eina_Bool elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj); + EAPI Eina_Bool elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj); + EAPI const char *elm_scrolled_entry_cursor_content_get(const Evas_Object *obj); EAPI void elm_scrolled_entry_selection_cut(Evas_Object *obj); EAPI void elm_scrolled_entry_selection_copy(Evas_Object *obj); EAPI void elm_scrolled_entry_selection_paste(Evas_Object *obj); EAPI void elm_scrolled_entry_context_menu_clear(Evas_Object *obj); EAPI void elm_scrolled_entry_context_menu_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data); EAPI void elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled); - EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(Evas_Object *obj); + EAPI Eina_Bool elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj); EAPI void elm_scrolled_entry_scrollbar_policy_set(Evas_Object *obj, Elm_Scroller_Policy h, Elm_Scroller_Policy v); EAPI void elm_scrolled_entry_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce); diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c index b409e33..4838995 100644 --- a/src/lib/elc_fileselector.c +++ b/src/lib/elc_fileselector.c @@ -447,7 +447,7 @@ elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save) } EAPI Eina_Bool -elm_fileselector_is_save_get(Evas_Object *obj) +elm_fileselector_is_save_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -466,7 +466,7 @@ elm_fileselector_folder_only_set(Evas_Object *obj, Eina_Bool only) } EAPI Eina_Bool -elm_fileselector_only_folder_get(Evas_Object *obj) +elm_fileselector_only_folder_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -520,7 +520,7 @@ elm_fileselector_buttons_ok_cancel_set(Evas_Object *obj, Eina_Bool only) } EAPI Eina_Bool -elm_fileselector_ok_cancel_get(Evas_Object *obj) +elm_fileselector_ok_cancel_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -544,7 +544,7 @@ elm_fileselector_path_set(Evas_Object *obj, const char *path) } EAPI const char * -elm_fileselector_path_get(Evas_Object *obj) +elm_fileselector_path_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -553,7 +553,7 @@ elm_fileselector_path_get(Evas_Object *obj) } EAPI const char * -elm_fileselector_selected_get(Evas_Object *obj) +elm_fileselector_selected_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c index c632148..329516d 100644 --- a/src/lib/elc_hoversel.c +++ b/src/lib/elc_hoversel.c @@ -327,7 +327,7 @@ elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) * @ingroup Hoversel */ EAPI const char * -elm_hoversel_label_get(Evas_Object *obj) +elm_hoversel_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -367,7 +367,7 @@ elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon) * @ingroup Hoversel */ EAPI Evas_Object * -elm_hoversel_icon_get(Evas_Object *obj) +elm_hoversel_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -445,7 +445,7 @@ elm_hoversel_clear(Evas_Object *obj) * @ingroup Hoversel */ EAPI const Eina_List * -elm_hoversel_items_get(Evas_Object *obj) +elm_hoversel_items_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elc_scrolled_entry.c b/src/lib/elc_scrolled_entry.c index 1389c09..9c63c88 100644 --- a/src/lib/elc_scrolled_entry.c +++ b/src/lib/elc_scrolled_entry.c @@ -390,7 +390,7 @@ elm_scrolled_entry_cursor_selection_end(Evas_Object *obj) } EAPI Eina_Bool -elm_scrolled_entry_cursor_is_format_get(Evas_Object *obj) +elm_scrolled_entry_cursor_is_format_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); @@ -399,7 +399,7 @@ elm_scrolled_entry_cursor_is_format_get(Evas_Object *obj) } EAPI Eina_Bool -elm_scrolled_entry_cursor_is_visible_format_get(Evas_Object *obj) +elm_scrolled_entry_cursor_is_visible_format_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); @@ -408,7 +408,7 @@ elm_scrolled_entry_cursor_is_visible_format_get(Evas_Object *obj) } EAPI const char * -elm_scrolled_entry_cursor_content_get(Evas_Object *obj) +elm_scrolled_entry_cursor_content_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -471,7 +471,7 @@ elm_scrolled_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disable } EAPI Eina_Bool -elm_scrolled_entry_context_menu_disabled_get(Evas_Object *obj) +elm_scrolled_entry_context_menu_disabled_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c index ca2de6e..e9ed0ec 100644 --- a/src/lib/elm_bubble.c +++ b/src/lib/elm_bubble.c @@ -138,7 +138,7 @@ elm_bubble_label_set(Evas_Object *obj, const char *label) } EAPI const char* -elm_bubble_label_get(Evas_Object *obj) +elm_bubble_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -231,7 +231,7 @@ elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon) } EAPI Evas_Object * -elm_bubble_icon_get(Evas_Object *obj) +elm_bubble_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index 38715eb..5ee3b04 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -262,7 +262,7 @@ elm_button_label_set(Evas_Object *obj, const char *label) } EAPI const char * -elm_button_label_get(Evas_Object *obj) +elm_button_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -310,7 +310,7 @@ elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) * @ingroup Button */ EAPI Evas_Object * -elm_button_icon_get(Evas_Object *obj) +elm_button_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c index 1c47f78..2379240 100644 --- a/src/lib/elm_check.c +++ b/src/lib/elm_check.c @@ -235,7 +235,7 @@ elm_check_label_set(Evas_Object *obj, const char *label) * @ingroup Check */ EAPI const char * -elm_check_label_get(Evas_Object *obj) +elm_check_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -285,7 +285,7 @@ elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) * @ingroup Check */ EAPI Evas_Object * -elm_check_icon_get(Evas_Object *obj) +elm_check_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 8f3ad25..5d2eab4 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1235,8 +1235,7 @@ elm_entry_entry_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); - const char *text, *s = NULL; - size_t len; + const char *text; if (!wd) return NULL; if (wd->text) return wd->text; text = edje_object_part_text_get(wd->ent, "elm.text"); @@ -1444,7 +1443,7 @@ elm_entry_cursor_selection_end(Evas_Object *obj) } EAPI Eina_Bool -elm_entry_cursor_is_format_get(Evas_Object *obj) +elm_entry_cursor_is_format_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -1453,7 +1452,7 @@ elm_entry_cursor_is_format_get(Evas_Object *obj) } EAPI Eina_Bool -elm_entry_cursor_is_visible_format_get(Evas_Object *obj) +elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -1462,7 +1461,7 @@ elm_entry_cursor_is_visible_format_get(Evas_Object *obj) } EAPI const char * -elm_entry_cursor_content_get(Evas_Object *obj) +elm_entry_cursor_content_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1542,7 +1541,7 @@ elm_entry_context_menu_disabled_set(Evas_Object *obj, Eina_Bool disabled) } EAPI Eina_Bool -elm_entry_context_menu_disabled_get(Evas_Object *obj) +elm_entry_context_menu_disabled_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c index c48c62f..1bbaebd 100644 --- a/src/lib/elm_flip.c +++ b/src/lib/elm_flip.c @@ -399,7 +399,7 @@ elm_flip_content_back_set(Evas_Object *obj, Evas_Object *content) * @ingroup Flip */ EAPI Eina_Bool -elm_flip_front_get(Evas_Object *obj) +elm_flip_front_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_frame.c b/src/lib/elm_frame.c index bf56ed5..727f566 100644 --- a/src/lib/elm_frame.c +++ b/src/lib/elm_frame.c @@ -143,7 +143,7 @@ elm_frame_label_set(Evas_Object *obj, const char *label) * @ingroup Frame */ EAPI const char * -elm_frame_label_get(Evas_Object *obj) +elm_frame_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c index 9360318..6d0d478 100644 --- a/src/lib/elm_index.c +++ b/src/lib/elm_index.c @@ -597,7 +597,7 @@ elm_index_item_level_set(Evas_Object *obj, int level) * @ingroup Index */ EAPI int -elm_index_item_level_get(Evas_Object *obj) +elm_index_item_level_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); @@ -614,7 +614,7 @@ elm_index_item_level_get(Evas_Object *obj) * @ingroup Index */ EAPI const void * -elm_index_item_selected_get(Evas_Object *obj, int level) +elm_index_item_selected_get(const Evas_Object *obj, int level) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c index da3f217..fa0539e 100644 --- a/src/lib/elm_label.c +++ b/src/lib/elm_label.c @@ -185,7 +185,7 @@ elm_label_label_set(Evas_Object *obj, const char *label) * @ingroup Label */ EAPI const char * -elm_label_label_get(Evas_Object *obj) +elm_label_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 74d26c7..1e168c1 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -857,7 +857,7 @@ elm_list_multi_select_set(Evas_Object *obj, Eina_Bool multi) } EAPI Eina_Bool -elm_list_multi_select_get(Evas_Object *obj) +elm_list_multi_select_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -883,7 +883,7 @@ elm_list_horizontal_mode_set(Evas_Object *obj, Elm_List_Mode mode) } EAPI Elm_List_Mode -elm_list_horizontal_mode_get(Evas_Object *obj) +elm_list_horizontal_mode_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_LIST_SCROLL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 370279b..ee53cba 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -1633,7 +1633,7 @@ elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable) * @ingroup Focus */ EAPI Eina_Bool -elm_object_focus_allow_get(Evas_Object *obj) +elm_object_focus_allow_get(const Evas_Object *obj) { return elm_widget_can_focus_get(obj); } diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c index bc31d3a..111c719 100644 --- a/src/lib/elm_map.c +++ b/src/lib/elm_map.c @@ -1915,7 +1915,7 @@ done: * @ingroup Map */ EAPI double -elm_map_zoom_get(Evas_Object *obj) +elm_map_zoom_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 1.0; Widget_Data *wd = elm_widget_data_get(obj); @@ -1967,7 +1967,7 @@ elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode) * @ingroup Map */ EAPI Elm_Map_Zoom_Mode -elm_map_zoom_mode_get(Evas_Object *obj) +elm_map_zoom_mode_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_MAP_ZOOM_MODE_MANUAL; Widget_Data *wd = elm_widget_data_get(obj); @@ -2057,7 +2057,7 @@ elm_map_geo_region_show(Evas_Object *obj, double lon, double lat) * @ingroup Map */ EAPI void -elm_map_geo_region_get(Evas_Object *obj, double *lon, double *lat) +elm_map_geo_region_get(const Evas_Object *obj, double *lon, double *lat) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); @@ -2131,7 +2131,7 @@ elm_map_paused_markers_set(Evas_Object *obj, Eina_Bool paused) * @return The current paused state */ EAPI Eina_Bool -elm_map_paused_get(Evas_Object *obj) +elm_map_paused_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -2148,7 +2148,7 @@ elm_map_paused_get(Evas_Object *obj) * @return The current paused state */ EAPI Eina_Bool -elm_map_paused_markers_get(Evas_Object *obj) +elm_map_paused_markers_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); @@ -2860,7 +2860,7 @@ elm_map_source_set(Evas_Object *obj, Elm_Map_Sources source) * @return Returns the maximum zoom of the source */ EAPI Elm_Map_Sources -elm_map_source_get(Evas_Object *obj) +elm_map_source_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_MAP_SOURCE_MAPNIK; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_pager.c b/src/lib/elm_pager.c index 5c8169b..4030329 100644 --- a/src/lib/elm_pager.c +++ b/src/lib/elm_pager.c @@ -371,7 +371,7 @@ elm_pager_content_promote(Evas_Object *obj, Evas_Object *content) * @ingroup Pager */ EAPI Evas_Object * -elm_pager_content_bottom_get(Evas_Object *obj) +elm_pager_content_bottom_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -391,7 +391,7 @@ elm_pager_content_bottom_get(Evas_Object *obj) * @ingroup Pager */ EAPI Evas_Object * -elm_pager_content_top_get(Evas_Object *obj) +elm_pager_content_top_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_panel.c b/src/lib/elm_panel.c index 7808656..778f85c 100644 --- a/src/lib/elm_panel.c +++ b/src/lib/elm_panel.c @@ -29,7 +29,6 @@ static void _theme_hook(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - int scale = 0; if (!wd) return; // scale = (elm_widget_scale_get(obj) * _elm_config->scale); // edje_object_scale_set(wd->scr, scale); diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c index 10e9ee4..177e111 100644 --- a/src/lib/elm_photocam.c +++ b/src/lib/elm_photocam.c @@ -1114,7 +1114,7 @@ elm_photocam_file_set(Evas_Object *obj, const char *file) * @ingroup Photocam */ EAPI const char * -elm_photocam_file_get(Evas_Object *obj) +elm_photocam_file_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1335,7 +1335,7 @@ elm_photocam_zoom_set(Evas_Object *obj, double zoom) * @ingroup Photocam */ EAPI double -elm_photocam_zoom_get(Evas_Object *obj) +elm_photocam_zoom_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 1.0; Widget_Data *wd = elm_widget_data_get(obj); @@ -1387,7 +1387,7 @@ elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) * @ingroup Photocam */ EAPI Elm_Photocam_Zoom_Mode -elm_photocam_zoom_mode_get(Evas_Object *obj) +elm_photocam_zoom_mode_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) ELM_PHOTOCAM_ZOOM_MODE_MANUAL; Widget_Data *wd = elm_widget_data_get(obj); @@ -1409,7 +1409,7 @@ elm_photocam_zoom_mode_get(Evas_Object *obj) * @ingroup Photocam */ EAPI void -elm_photocam_image_size_get(Evas_Object *obj, int *w, int *h) +elm_photocam_image_size_get(const Evas_Object *obj, int *w, int *h) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); @@ -1425,7 +1425,7 @@ elm_photocam_image_size_get(Evas_Object *obj, int *w, int *h) * */ EAPI void -elm_photocam_region_get(Evas_Object *obj, int *x, int *y, int *w, int *h) +elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); @@ -1596,7 +1596,7 @@ elm_photocam_paused_set(Evas_Object *obj, Eina_Bool paused) * @return The current paused state */ EAPI Eina_Bool -elm_photocam_paused_get(Evas_Object *obj) +elm_photocam_paused_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_radio.c b/src/lib/elm_radio.c index e44ea44..b767792 100644 --- a/src/lib/elm_radio.c +++ b/src/lib/elm_radio.c @@ -275,7 +275,7 @@ elm_radio_label_set(Evas_Object *obj, const char *label) * @ingroup Radio */ EAPI const char * -elm_radio_label_get(Evas_Object *obj) +elm_radio_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -325,7 +325,7 @@ elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) * @ingroup Radio */ EAPI Evas_Object * -elm_radio_icon_get(Evas_Object *obj) +elm_radio_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_scroller.c b/src/lib/elm_scroller.c index c263e0f..bccef5c 100644 --- a/src/lib/elm_scroller.c +++ b/src/lib/elm_scroller.c @@ -465,7 +465,7 @@ elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scro * @ingroup Scroller */ EAPI void -elm_scroller_region_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) +elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); @@ -491,7 +491,7 @@ elm_scroller_region_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coo * @ingroup Scroller */ EAPI void -elm_scroller_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) +elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_separator.c b/src/lib/elm_separator.c index 46fd89b..9c81ad3 100644 --- a/src/lib/elm_separator.c +++ b/src/lib/elm_separator.c @@ -86,7 +86,7 @@ elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) } EAPI Eina_Bool -elm_separator_horizontal_get(Evas_Object *obj) +elm_separator_horizontal_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c index da5f6c1..cd94d72 100644 --- a/src/lib/elm_slider.c +++ b/src/lib/elm_slider.c @@ -353,7 +353,7 @@ elm_slider_label_set(Evas_Object *obj, const char *label) * @ingroup Slider */ EAPI const char * -elm_slider_label_get(Evas_Object *obj) +elm_slider_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -403,7 +403,7 @@ elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) * @ingroup Slider */ EAPI Evas_Object * -elm_slider_icon_get(Evas_Object *obj) +elm_slider_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c index 6899a1c..2ebd525 100644 --- a/src/lib/elm_slideshow.c +++ b/src/lib/elm_slideshow.c @@ -389,7 +389,7 @@ elm_slideshow_previous(Evas_Object *obj) * @return Returns the list of transitions (list of char*) */ const Eina_List * -elm_slideshow_transitions_get(Evas_Object *obj) +elm_slideshow_transitions_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -439,7 +439,7 @@ elm_slideshow_timeout_set(Evas_Object *obj ,int timeout) * @return Returns the timeout */ EAPI int -elm_slideshow_timeout_get(Evas_Object *obj) +elm_slideshow_timeout_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) -1; Widget_Data *wd = elm_widget_data_get(obj); @@ -546,7 +546,7 @@ elm_slideshow_items_get(const Evas_Object *obj) * @return Returns the current item displayed */ EAPI Elm_Slideshow_Item * -elm_slideshow_item_current_get(Evas_Object *obj) +elm_slideshow_item_current_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c index bd92c30..7c72016 100644 --- a/src/lib/elm_spinner.c +++ b/src/lib/elm_spinner.c @@ -547,7 +547,7 @@ elm_spinner_label_format_set(Evas_Object *obj, const char *fmt) * @ingroup Spinner */ EAPI const char * -elm_spinner_label_format_get(Evas_Object *obj) +elm_spinner_label_format_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c index d6bd9ca..03c0648 100644 --- a/src/lib/elm_thumb.c +++ b/src/lib/elm_thumb.c @@ -86,7 +86,7 @@ _theme_hook(Evas_Object *obj) static void _thumb_geometry_set(Widget_Data *wd); static void -_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) { Widget_Data *wd = data; Evas_Event_Mouse_Down *ev = event_info; @@ -103,7 +103,7 @@ _mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } static void -_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_mouse_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) { Widget_Data *wd = data; @@ -181,7 +181,7 @@ err: } static void -_finished_thumb_cb(void *data, Ethumb_Client *c, int id, const char *file, const char *key, const char *thumb_path, const char *thumb_key, Eina_Bool success) +_finished_thumb_cb(void *data, Ethumb_Client *c __UNUSED__, int id, const char *file, const char *key, const char *thumb_path, const char *thumb_key, Eina_Bool success) { Widget_Data *wd = data; @@ -194,7 +194,7 @@ _finished_thumb_cb(void *data, Ethumb_Client *c, int id, const char *file, const return; } - ERR("could not generate thumbnail for %s", file); + ERR("could not generate thumbnail for %s (key: %s)", file, key ? key : ""); edje_object_signal_emit(wd->children.frm, EDJE_SIGNAL_GENERATE_ERROR, "elm"); evas_object_smart_callback_call(wd->self, "generate,error", NULL); } @@ -230,7 +230,7 @@ _thumb_apply(Widget_Data *wd) } static int -_thumb_apply_cb(void *data, int type, void *ev) +_thumb_apply_cb(void *data, int type __UNUSED__, void *ev __UNUSED__) { _thumb_apply(data); return ECORE_CALLBACK_RENEW; @@ -253,7 +253,7 @@ _thumb_show(Widget_Data *wd) } static void -_thumb_show_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_thumb_show_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { _thumb_show(data); } @@ -273,7 +273,7 @@ _cancel_cb(void *data, Eina_Bool success) } static void -_thumb_hide_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_thumb_hide_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { Widget_Data *wd = data; @@ -346,13 +346,13 @@ _thumb_geometry_set(Widget_Data *wd) } static void -_thumb_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_thumb_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { _thumb_geometry_set(data); } static void -_thumb_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +_thumb_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { _thumb_geometry_set(data); } @@ -364,7 +364,7 @@ static Eina_Bool _elm_need_ethumb = 0; static void _on_die_cb(void *, Ethumb_Client *); static void -_connect_cb(void *data, Ethumb_Client *c, Eina_Bool success) +_connect_cb(void *data __UNUSED__, Ethumb_Client *c, Eina_Bool success) { if (success) { @@ -377,7 +377,7 @@ _connect_cb(void *data, Ethumb_Client *c, Eina_Bool success) } static void -_on_die_cb(void *data, Ethumb_Client *c) +_on_die_cb(void *data __UNUSED__, Ethumb_Client *c __UNUSED__) { ethumb_client_disconnect(_elm_ethumb_client); _elm_ethumb_client = NULL; @@ -555,7 +555,7 @@ elm_thumb_file_set(Evas_Object *obj, const char *file, const char *key) * @ingroup Thumb */ EAPI void -elm_thumb_file_get(Evas_Object *obj, const char **file, const char **key) +elm_thumb_file_get(const Evas_Object *obj, const char **file, const char **key) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); @@ -657,7 +657,7 @@ elm_thumb_align_set(Evas_Object *obj, float x_align, float y_align) * @ingroup Thumb */ EAPI void -elm_thumb_align_get(Evas_Object *obj, float *x, float *y) +elm_thumb_align_get(const Evas_Object *obj, float *x, float *y) { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_toggle.c b/src/lib/elm_toggle.c index a3bb8ba..17d8962 100644 --- a/src/lib/elm_toggle.c +++ b/src/lib/elm_toggle.c @@ -183,7 +183,7 @@ elm_toggle_label_set(Evas_Object *obj, const char *label) } EAPI const char * -elm_toggle_label_get(Evas_Object *obj) +elm_toggle_label_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); @@ -210,7 +210,7 @@ elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon) } EAPI Evas_Object * -elm_toggle_icon_get(Evas_Object *obj) +elm_toggle_icon_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 6b4bd5e..527e051 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -342,7 +342,7 @@ elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size) } EAPI int -elm_toolbar_icon_size_get(Evas_Object *obj) +elm_toolbar_icon_size_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 81729ce..0b90b5e 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -608,7 +608,7 @@ elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless) } EAPI Eina_Bool -elm_win_borderless_get(Evas_Object *obj) +elm_win_borderless_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -629,7 +629,7 @@ elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped) } EAPI Eina_Bool -elm_win_shaped_get(Evas_Object *obj) +elm_win_shaped_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -663,7 +663,7 @@ elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha) } EAPI Eina_Bool -elm_win_alpha_get(Evas_Object *obj) +elm_win_alpha_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -690,7 +690,7 @@ elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent) } EAPI Eina_Bool -elm_win_transparent_get(Evas_Object *obj) +elm_win_transparent_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -712,7 +712,7 @@ elm_win_override_set(Evas_Object *obj, Eina_Bool override) } EAPI Eina_Bool -elm_win_override_get(Evas_Object *obj) +elm_win_override_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -742,7 +742,7 @@ elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen) } EAPI Eina_Bool -elm_win_fullscreen_get(Evas_Object *obj) +elm_win_fullscreen_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -774,7 +774,7 @@ elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized) } EAPI Eina_Bool -elm_win_maximized_get(Evas_Object *obj) +elm_win_maximized_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -795,7 +795,7 @@ elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified) } EAPI Eina_Bool -elm_win_iconified_get(Evas_Object *obj) +elm_win_iconified_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -816,7 +816,7 @@ elm_win_layer_set(Evas_Object *obj, int layer) } EAPI int -elm_win_layer_get(Evas_Object *obj) +elm_win_layer_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) -1; @@ -858,7 +858,7 @@ elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation) } EAPI int -elm_win_rotation_get(Evas_Object *obj) +elm_win_rotation_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) -1; @@ -879,7 +879,7 @@ elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky) } EAPI Eina_Bool -elm_win_sticky_get(Evas_Object *obj) +elm_win_sticky_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -920,7 +920,7 @@ elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard) } EAPI void -elm_win_screen_position_get(Evas_Object *obj, int *x, int *y) +elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype); @@ -961,7 +961,7 @@ elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) * @ingroup Win */ EAPI Eina_Bool -elm_win_conformant_get(Evas_Object *obj) +elm_win_conformant_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -1019,7 +1019,7 @@ elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) * @ingroup Win */ EAPI Eina_Bool -elm_win_quickpanel_get(Evas_Object *obj) +elm_win_quickpanel_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; @@ -1064,7 +1064,7 @@ elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) * @ingroup Win */ EAPI int -elm_win_quickpanel_priority_major_get(Evas_Object *obj) +elm_win_quickpanel_priority_major_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) -1; @@ -1109,7 +1109,7 @@ elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) * @ingroup Win */ EAPI int -elm_win_quickpanel_priority_minor_get(Evas_Object *obj) +elm_win_quickpanel_priority_minor_get(const Evas_Object *obj) { Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype) -1; -- 2.7.4