summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-09 02:44:29 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-26 10:30:21 +0900
commitdd31aac227c250a12dc59647eb58325eadb5ec7a (patch)
tree0efe0619ef34d21cd94b7166e3908f915a4af70b
parent9b47996b6c7a6e09194f4ca537c4f7e4152b573e (diff)
elm: Add missing const for getters.
-rw-r--r--src/lib/elm_cnp.c14
-rw-r--r--src/lib/elm_cnp.h2
-rw-r--r--src/lib/elm_focus.h2
-rw-r--r--src/lib/elm_main.c2
-rw-r--r--src/lib/elm_prefs_data.c2
-rw-r--r--src/lib/elm_prefs_data.h2
-rw-r--r--src/lib/elm_theme.c2
-rw-r--r--src/lib/elm_theme.h2
-rw-r--r--src/lib/elm_win.c2
-rw-r--r--src/lib/elm_win_legacy.h2
10 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 301994d8f..4b1984709 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -234,7 +234,7 @@ static Eina_Bool _x11_elm_cnp_init (void);
234static Eina_Bool _x11_elm_cnp_selection_set (Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, const void *selbuf, size_t buflen); 234static Eina_Bool _x11_elm_cnp_selection_set (Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, const void *selbuf, size_t buflen);
235static void _x11_elm_cnp_selection_loss_callback_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data); 235static void _x11_elm_cnp_selection_loss_callback_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);
236static Eina_Bool _x11_elm_object_cnp_selection_clear (Evas_Object *obj, Elm_Sel_Type selection); 236static Eina_Bool _x11_elm_object_cnp_selection_clear (Evas_Object *obj, Elm_Sel_Type selection);
237static Eina_Bool _x11_elm_cnp_selection_get (Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata); 237static Eina_Bool _x11_elm_cnp_selection_get (Ecore_X_Window xwin, const Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata);
238static Eina_Bool _x11_elm_drop_target_add (Evas_Object *obj, Elm_Sel_Format format, 238static Eina_Bool _x11_elm_drop_target_add (Evas_Object *obj, Elm_Sel_Format format,
239 Elm_Drag_State entercb, void *enterdata, 239 Elm_Drag_State entercb, void *enterdata,
240 Elm_Drag_State leavecb, void *leavedata, 240 Elm_Drag_State leavecb, void *leavedata,
@@ -1939,7 +1939,7 @@ _x11_elm_object_cnp_selection_clear(Evas_Object *obj, Elm_Sel_Type selection)
1939} 1939}
1940 1940
1941static Eina_Bool 1941static Eina_Bool
1942_x11_elm_cnp_selection_get(Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type selection, 1942_x11_elm_cnp_selection_get(Ecore_X_Window xwin, const Evas_Object *obj, Elm_Sel_Type selection,
1943 Elm_Sel_Format format, Elm_Drop_Cb datacb, 1943 Elm_Sel_Format format, Elm_Drop_Cb datacb,
1944 void *udata) 1944 void *udata)
1945{ 1945{
@@ -1955,7 +1955,7 @@ _x11_elm_cnp_selection_get(Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type s
1955 sel->requestwidget = NULL; 1955 sel->requestwidget = NULL;
1956 1956
1957 sel->requestformat = format; 1957 sel->requestformat = format;
1958 sel->requestwidget = obj; 1958 sel->requestwidget = (Evas_Object *)obj;
1959 sel->xwin = xwin; 1959 sel->xwin = xwin;
1960 sel->request(xwin, ECORE_X_SELECTION_TARGET_TARGETS); 1960 sel->request(xwin, ECORE_X_SELECTION_TARGET_TARGETS);
1961 sel->datacb = datacb; 1961 sel->datacb = datacb;
@@ -3465,7 +3465,7 @@ static Eina_Bool _local_elm_cnp_init(void);
3465static Eina_Bool _local_elm_cnp_selection_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection, Elm_Sel_Format format, const void *selbuf, size_t buflen); 3465static Eina_Bool _local_elm_cnp_selection_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection, Elm_Sel_Format format, const void *selbuf, size_t buflen);
3466static void _local_elm_cnp_selection_loss_callback_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection EINA_UNUSED, Elm_Selection_Loss_Cb func EINA_UNUSED, const void *data EINA_UNUSED); 3466static void _local_elm_cnp_selection_loss_callback_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection EINA_UNUSED, Elm_Selection_Loss_Cb func EINA_UNUSED, const void *data EINA_UNUSED);
3467static Eina_Bool _local_elm_object_cnp_selection_clear(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection); 3467static Eina_Bool _local_elm_object_cnp_selection_clear(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection);
3468static Eina_Bool _local_elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format EINA_UNUSED, Elm_Drop_Cb datacb, void *udata); 3468static Eina_Bool _local_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format EINA_UNUSED, Elm_Drop_Cb datacb, void *udata);
3469static Eina_Bool _local_elm_drop_target_add(Evas_Object *obj EINA_UNUSED, Elm_Sel_Format format EINA_UNUSED, 3469static Eina_Bool _local_elm_drop_target_add(Evas_Object *obj EINA_UNUSED, Elm_Sel_Format format EINA_UNUSED,
3470 Elm_Drag_State entercb EINA_UNUSED, void *enterdata EINA_UNUSED, 3470 Elm_Drag_State entercb EINA_UNUSED, void *enterdata EINA_UNUSED,
3471 Elm_Drag_State leavecb EINA_UNUSED, void *leavedata EINA_UNUSED, 3471 Elm_Drag_State leavecb EINA_UNUSED, void *leavedata EINA_UNUSED,
@@ -3555,7 +3555,7 @@ _local_elm_object_cnp_selection_clear(Evas_Object *obj EINA_UNUSED,
3555} 3555}
3556 3556
3557static Eina_Bool 3557static Eina_Bool
3558_local_elm_cnp_selection_get(Evas_Object *obj, 3558_local_elm_cnp_selection_get(const Evas_Object *obj,
3559 Elm_Sel_Type selection, 3559 Elm_Sel_Type selection,
3560 Elm_Sel_Format format EINA_UNUSED, 3560 Elm_Sel_Format format EINA_UNUSED,
3561 Elm_Drop_Cb datacb, void *udata) 3561 Elm_Drop_Cb datacb, void *udata)
@@ -3563,7 +3563,7 @@ _local_elm_cnp_selection_get(Evas_Object *obj,
3563 _local_elm_cnp_init(); 3563 _local_elm_cnp_init();
3564 if (_local_selinfo[selection].get.job) 3564 if (_local_selinfo[selection].get.job)
3565 ecore_job_del(_local_selinfo[selection].get.job); 3565 ecore_job_del(_local_selinfo[selection].get.job);
3566 _local_selinfo[selection].get.obj = obj; 3566 _local_selinfo[selection].get.obj = (Evas_Object *)obj;
3567 _local_selinfo[selection].get.func = datacb; 3567 _local_selinfo[selection].get.func = datacb;
3568 _local_selinfo[selection].get.data = udata; 3568 _local_selinfo[selection].get.data = udata;
3569 _local_selinfo[selection].get.job = 3569 _local_selinfo[selection].get.job =
@@ -3852,7 +3852,7 @@ elm_object_cnp_selection_clear(Evas_Object *obj, Elm_Sel_Type selection)
3852} 3852}
3853 3853
3854EAPI Eina_Bool 3854EAPI Eina_Bool
3855elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, 3855elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection,
3856 Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata) 3856 Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata)
3857{ 3857{
3858 if (selection > ELM_SEL_TYPE_CLIPBOARD) return EINA_FALSE; 3858 if (selection > ELM_SEL_TYPE_CLIPBOARD) return EINA_FALSE;
diff --git a/src/lib/elm_cnp.h b/src/lib/elm_cnp.h
index dceab77e1..61c9fc1e0 100644
--- a/src/lib/elm_cnp.h
+++ b/src/lib/elm_cnp.h
@@ -237,7 +237,7 @@ EAPI Eina_Bool elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection,
237 * 237 *
238 * @ingroup CopyPaste 238 * @ingroup CopyPaste
239 */ 239 */
240EAPI Eina_Bool elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, 240EAPI Eina_Bool elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection,
241 Elm_Sel_Format format, 241 Elm_Sel_Format format,
242 Elm_Drop_Cb datacb, void *udata); 242 Elm_Drop_Cb datacb, void *udata);
243 243
diff --git a/src/lib/elm_focus.h b/src/lib/elm_focus.h
index 2b3801d34..258d5d965 100644
--- a/src/lib/elm_focus.h
+++ b/src/lib/elm_focus.h
@@ -370,4 +370,4 @@ EAPI void elm_object_focus_move_policy_set(Evas_Object *obj, Elm
370 * 370 *
371 * @ingroup Focus 371 * @ingroup Focus
372 */ 372 */
373EAPI Elm_Focus_Move_Policy elm_object_focus_move_policy_get(Evas_Object *obj); 373EAPI Elm_Focus_Move_Policy elm_object_focus_move_policy_get(const Evas_Object *obj);
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index 0fcebc543..8f1d61485 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -1492,7 +1492,7 @@ elm_object_focus_move_policy_set(Evas_Object *obj,
1492} 1492}
1493 1493
1494EAPI Elm_Focus_Move_Policy 1494EAPI Elm_Focus_Move_Policy
1495elm_object_focus_move_policy_get(Evas_Object *obj) 1495elm_object_focus_move_policy_get(const Evas_Object *obj)
1496{ 1496{
1497 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE); 1497 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
1498 return elm_widget_focus_move_policy_get(obj); 1498 return elm_widget_focus_move_policy_get(obj);
diff --git a/src/lib/elm_prefs_data.c b/src/lib/elm_prefs_data.c
index 2789db986..749c044a8 100644
--- a/src/lib/elm_prefs_data.c
+++ b/src/lib/elm_prefs_data.c
@@ -385,7 +385,7 @@ elm_prefs_data_new(const char *data_file,
385} 385}
386 386
387EAPI unsigned int 387EAPI unsigned int
388elm_prefs_data_version_get(Elm_Prefs_Data *prefs_data) 388elm_prefs_data_version_get(const Elm_Prefs_Data *prefs_data)
389{ 389{
390 ELM_PREFS_DATA_CHECK_OR_RETURN_VAL(prefs_data, -1); 390 ELM_PREFS_DATA_CHECK_OR_RETURN_VAL(prefs_data, -1);
391 391
diff --git a/src/lib/elm_prefs_data.h b/src/lib/elm_prefs_data.h
index e37d8e6e0..54d350241 100644
--- a/src/lib/elm_prefs_data.h
+++ b/src/lib/elm_prefs_data.h
@@ -146,7 +146,7 @@ EAPI Eina_Bool elm_prefs_data_version_set(Elm_Prefs_Data *prefs_data,
146 * 146 *
147 * @since 1.8 147 * @since 1.8
148 */ 148 */
149EAPI unsigned int elm_prefs_data_version_get(Elm_Prefs_Data *prefs_data); 149EAPI unsigned int elm_prefs_data_version_get(const Elm_Prefs_Data *prefs_data);
150 150
151/** 151/**
152 * Increment reference count on a given prefs data handle. 152 * Increment reference count on a given prefs data handle.
diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c
index 8fa383e37..1e9a9b048 100644
--- a/src/lib/elm_theme.c
+++ b/src/lib/elm_theme.c
@@ -519,7 +519,7 @@ elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref)
519} 519}
520 520
521EAPI Elm_Theme * 521EAPI Elm_Theme *
522elm_theme_ref_get(Elm_Theme *th) 522elm_theme_ref_get(const Elm_Theme *th)
523{ 523{
524 if (!th) th = &(theme_default); 524 if (!th) th = &(theme_default);
525 return th->ref_theme; 525 return th->ref_theme;
diff --git a/src/lib/elm_theme.h b/src/lib/elm_theme.h
index fbe662420..b5a1dbd5b 100644
--- a/src/lib/elm_theme.h
+++ b/src/lib/elm_theme.h
@@ -148,7 +148,7 @@ EAPI void elm_theme_ref_set(Elm_Theme *th, Elm_Theme *thref);
148 * 148 *
149 * @ingroup Theme 149 * @ingroup Theme
150 */ 150 */
151EAPI Elm_Theme *elm_theme_ref_get(Elm_Theme *th); 151EAPI Elm_Theme *elm_theme_ref_get(const Elm_Theme *th);
152 152
153/** 153/**
154 * Return the default theme 154 * Return the default theme
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index cb909a0d0..47087f66d 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -4538,7 +4538,7 @@ elm_win_norender_pop(Evas_Object *obj)
4538} 4538}
4539 4539
4540EAPI int 4540EAPI int
4541elm_win_norender_get(Evas_Object *obj) 4541elm_win_norender_get(const Evas_Object *obj)
4542{ 4542{
4543 ELM_WIN_CHECK(obj) - 1; 4543 ELM_WIN_CHECK(obj) - 1;
4544 ELM_WIN_DATA_GET_OR_RETURN_VAL(obj, sd, -1); 4544 ELM_WIN_DATA_GET_OR_RETURN_VAL(obj, sd, -1);
diff --git a/src/lib/elm_win_legacy.h b/src/lib/elm_win_legacy.h
index f38bc45d5..883b3756d 100644
--- a/src/lib/elm_win_legacy.h
+++ b/src/lib/elm_win_legacy.h
@@ -161,7 +161,7 @@ EAPI void elm_win_norender_pop(Evas_Object *obj);
161 * @ingroup Win 161 * @ingroup Win
162 * @since 1.7 162 * @since 1.7
163 */ 163 */
164EAPI int elm_win_norender_get(Evas_Object *obj); 164EAPI int elm_win_norender_get(const Evas_Object *obj);
165 165
166/** 166/**
167 * This manually asks evas to render the window now 167 * This manually asks evas to render the window now