delete trailing whitespace.

SVN revision: 46003
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-09 03:04:18 +00:00
parent f87a7d374d
commit 195f67f0f9
1 changed files with 55 additions and 55 deletions

View File

@ -3,7 +3,7 @@
/** /**
* @defgroup Win Win * @defgroup Win Win
* *
*/ */
typedef struct _Elm_Win Elm_Win; typedef struct _Elm_Win Elm_Win;
@ -333,7 +333,7 @@ _elm_win_subobj_callback_changed_size_hints(void *data, Evas *e, Evas_Object *ob
void void
_elm_win_shutdown(void) _elm_win_shutdown(void)
{ {
while (_elm_win_list) while (_elm_win_list)
evas_object_del(_elm_win_list->data); evas_object_del(_elm_win_list->data);
} }
@ -419,7 +419,7 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
evas_object_layer_set(win->win_obj, 50); evas_object_layer_set(win->win_obj, 50);
evas_object_pass_events_set(win->win_obj, 1); evas_object_pass_events_set(win->win_obj, 1);
evas_object_intercept_show_callback_add(win->win_obj, evas_object_intercept_show_callback_add(win->win_obj,
_elm_win_obj_intercept_show, win); _elm_win_obj_intercept_show, win);
ecore_evas_object_associate(win->ee, win->win_obj, ecore_evas_object_associate(win->ee, win->win_obj,
ECORE_EVAS_OBJECT_ASSOCIATE_BASE | ECORE_EVAS_OBJECT_ASSOCIATE_BASE |
@ -479,10 +479,10 @@ elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj)
if (!win) return; if (!win) return;
win->subobjs = eina_list_append(win->subobjs, subobj); win->subobjs = eina_list_append(win->subobjs, subobj);
elm_widget_sub_object_add(obj, subobj); elm_widget_sub_object_add(obj, subobj);
evas_object_event_callback_add(subobj, EVAS_CALLBACK_DEL, evas_object_event_callback_add(subobj, EVAS_CALLBACK_DEL,
_elm_win_subobj_callback_del, obj); _elm_win_subobj_callback_del, obj);
evas_object_event_callback_add(subobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, evas_object_event_callback_add(subobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_elm_win_subobj_callback_changed_size_hints, _elm_win_subobj_callback_changed_size_hints,
obj); obj);
ecore_evas_geometry_get(win->ee, NULL, NULL, &w, &h); ecore_evas_geometry_get(win->ee, NULL, NULL, &w, &h);
evas_object_move(subobj, 0, 0); evas_object_move(subobj, 0, 0);
@ -497,11 +497,11 @@ elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj)
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
win = elm_widget_data_get(obj); win = elm_widget_data_get(obj);
if (!win) return; if (!win) return;
evas_object_event_callback_del_full(subobj, evas_object_event_callback_del_full(subobj,
EVAS_CALLBACK_CHANGED_SIZE_HINTS, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_elm_win_subobj_callback_changed_size_hints, _elm_win_subobj_callback_changed_size_hints,
obj); obj);
evas_object_event_callback_del_full(subobj, EVAS_CALLBACK_DEL, evas_object_event_callback_del_full(subobj, EVAS_CALLBACK_DEL,
_elm_win_subobj_callback_del, obj); _elm_win_subobj_callback_del, obj);
win->subobjs = eina_list_remove(win->subobjs, subobj); win->subobjs = eina_list_remove(win->subobjs, subobj);
elm_widget_sub_object_del(obj, subobj); elm_widget_sub_object_del(obj, subobj);
@ -850,14 +850,14 @@ elm_win_screen_position_get(Evas_Object *obj, int *x, int *y)
/** /**
* Set if this window is an illume conformant window * Set if this window is an illume conformant window
* *
* @param obj The window object * @param obj The window object
* @param conformant The conformant flag (1 = conformant, 0 = non-conformant) * @param conformant The conformant flag (1 = conformant, 0 = non-conformant)
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI void EAPI void
elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant) elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
@ -872,14 +872,14 @@ elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant)
/** /**
* Get if this window is an illume conformant window * Get if this window is an illume conformant window
* *
* @param obj The window object * @param obj The window object
* @return A boolean if this window is illume conformant or not * @return A boolean if this window is illume conformant or not
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI Eina_Bool EAPI Eina_Bool
elm_win_conformant_get(Evas_Object *obj) elm_win_conformant_get(Evas_Object *obj)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE; if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
@ -895,16 +895,16 @@ elm_win_conformant_get(Evas_Object *obj)
/** /**
* Set a window to be an illume quickpanel window * Set a window to be an illume quickpanel window
* *
* By default window objects are not quickpanel windows. * By default window objects are not quickpanel windows.
* *
* @param obj The window object * @param obj The window object
* @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window) * @param quickpanel The quickpanel flag (1 = quickpanel, 0 = normal window)
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI void EAPI void
elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel) elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
@ -912,10 +912,10 @@ elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel)
if (!win) return; if (!win) return;
_elm_win_xwindow_get(win); _elm_win_xwindow_get(win);
#ifdef HAVE_ELEMENTARY_X #ifdef HAVE_ELEMENTARY_X
if (win->xwin) if (win->xwin)
{ {
ecore_x_e_illume_quickpanel_set(win->xwin, quickpanel); ecore_x_e_illume_quickpanel_set(win->xwin, quickpanel);
if (quickpanel) if (quickpanel)
{ {
Ecore_X_Window_State states[2]; Ecore_X_Window_State states[2];
@ -930,14 +930,14 @@ elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel)
/** /**
* Get if this window is a quickpanel or not * Get if this window is a quickpanel or not
* *
* @param obj The window object * @param obj The window object
* @return A boolean if this window is a quickpanel or not * @return A boolean if this window is a quickpanel or not
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI Eina_Bool EAPI Eina_Bool
elm_win_quickpanel_get(Evas_Object *obj) elm_win_quickpanel_get(Evas_Object *obj)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE; if (strcmp(elm_widget_type_get(obj), "win")) return EINA_FALSE;
@ -953,14 +953,14 @@ elm_win_quickpanel_get(Evas_Object *obj)
/** /**
* Set the major priority of a quickpanel window * Set the major priority of a quickpanel window
* *
* @param obj The window object * @param obj The window object
* @param priority The major priority for this quickpanel * @param priority The major priority for this quickpanel
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI void EAPI void
elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority) elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
@ -975,14 +975,14 @@ elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority)
/** /**
* Get the major priority of a quickpanel window * Get the major priority of a quickpanel window
* *
* @param obj The window object * @param obj The window object
* @return The major priority of this quickpanel * @return The major priority of this quickpanel
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI int EAPI int
elm_win_quickpanel_priority_major_get(Evas_Object *obj) elm_win_quickpanel_priority_major_get(Evas_Object *obj)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1; if (strcmp(elm_widget_type_get(obj), "win")) return -1;
@ -998,14 +998,14 @@ elm_win_quickpanel_priority_major_get(Evas_Object *obj)
/** /**
* Set the minor priority of a quickpanel window * Set the minor priority of a quickpanel window
* *
* @param obj The window object * @param obj The window object
* @param priority The minor priority for this quickpanel * @param priority The minor priority for this quickpanel
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI void EAPI void
elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority) elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
@ -1020,14 +1020,14 @@ elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority)
/** /**
* Get the minor priority of a quickpanel window * Get the minor priority of a quickpanel window
* *
* @param obj The window object * @param obj The window object
* @return The minor priority of this quickpanel * @return The minor priority of this quickpanel
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI int EAPI int
elm_win_quickpanel_priority_minor_get(Evas_Object *obj) elm_win_quickpanel_priority_minor_get(Evas_Object *obj)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return -1; if (strcmp(elm_widget_type_get(obj), "win")) return -1;
@ -1043,14 +1043,14 @@ elm_win_quickpanel_priority_minor_get(Evas_Object *obj)
/** /**
* Set which zone this quickpanel should appear in * Set which zone this quickpanel should appear in
* *
* @param obj The window object * @param obj The window object
* @param zone The requested zone for this quickpanel * @param zone The requested zone for this quickpanel
* *
* @ingroup Win * @ingroup Win
*/ */
EAPI void EAPI void
elm_win_quickpanel_zone_set(Evas_Object *obj, int zone) elm_win_quickpanel_zone_set(Evas_Object *obj, int zone)
{ {
Elm_Win *win; Elm_Win *win;
if (strcmp(elm_widget_type_get(obj), "win")) return; if (strcmp(elm_widget_type_get(obj), "win")) return;
@ -1058,19 +1058,19 @@ elm_win_quickpanel_zone_set(Evas_Object *obj, int zone)
if (!win) return; if (!win) return;
_elm_win_xwindow_get(win); _elm_win_xwindow_get(win);
#ifdef HAVE_ELEMENTARY_X #ifdef HAVE_ELEMENTARY_X
if (win->xwin) if (win->xwin)
{ {
Ecore_X_Window *zones; Ecore_X_Window *zones;
int zcount; int zcount;
zcount = zcount =
ecore_x_window_prop_window_list_get(ecore_x_window_root_first_get(), ecore_x_window_prop_window_list_get(ecore_x_window_root_first_get(),
ECORE_X_ATOM_E_ILLUME_ZONE_LIST, ECORE_X_ATOM_E_ILLUME_ZONE_LIST,
&zones); &zones);
if ((zones) && (zcount >= (zone + 1))) if ((zones) && (zcount >= (zone + 1)))
{ {
ecore_x_e_illume_quickpanel_zone_set(win->xwin, &zones[zone]); ecore_x_e_illume_quickpanel_zone_set(win->xwin, &zones[zone]);
ecore_x_e_illume_quickpanel_zone_request_send(zones[zone], ecore_x_e_illume_quickpanel_zone_request_send(zones[zone],
win->xwin); win->xwin);
free(zones); free(zones);
} }