e_border_resize(E_Border *bd, int w, int h)
{
E_Event_Border_Resize *ev;
+
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
e_border_iconify(E_Border *bd)
{
E_Event_Border_Iconify *ev;
-
unsigned int iconic;
+
E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if ((bd->fullscreen) || (bd->shading)) return;
void
e_border_act_move_begin(E_Border *bd, Ecore_X_Event_Mouse_Button_Down *ev)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->lock_user_location) return;
if (!bd->moving)
{
void
e_border_act_move_end(E_Border *bd, Ecore_X_Event_Mouse_Button_Up *ev)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!bd->moving) return;
bd->moving = 0;
_e_border_pointer_move_end(bd);
void
e_border_act_resize_begin(E_Border *bd, Ecore_X_Event_Mouse_Button_Down *ev)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->lock_user_size) return;
if (bd->resize_mode == RESIZE_NONE)
{
void
e_border_act_resize_end(E_Border *bd, Ecore_X_Event_Mouse_Button_Up *ev)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->resize_mode != RESIZE_NONE)
{
_e_border_pointer_resize_end(bd);
void
e_border_act_menu_begin(E_Border *bd, Ecore_X_Event_Mouse_Button_Down *ev, int key)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (ev)
{
_e_border_menu_show(bd,
void
e_border_act_close_begin(E_Border *bd)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->lock_close) return;
if (bd->client.icccm.delete_request)
{
void
e_border_act_kill_begin(E_Border *bd)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->internal) return;
if (bd->lock_close) return;
if ((bd->client.netwm.pid > 1) && (e_config->kill_process))
Evas_Object *o;
E_App *a = NULL;
+ E_OBJECT_CHECK_RETURN(bd, NULL);
+ E_OBJECT_TYPE_CHECK_RETURN(bd, E_BORDER_TYPE, NULL);
if (bd->app)
{
e_object_unref(E_OBJECT(bd->app));
Evas_List *list = NULL, *l;
int loss_overlap = 5;
+ E_OBJECT_CHECK_RETURN(zone, NULL);
+ E_OBJECT_TYPE_CHECK_RETURN(zone, E_ZONE_TYPE, NULL);
for (l = borders; l; l = l->next)
{
E_Border *bd;
void
e_border_ping(E_Border *bd)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!e_config->ping_clients) return;
-
bd->ping_ok = 0;
ecore_x_netwm_ping_send(bd->client.win);
bd->ping = ecore_time_get();
const char *
e_border_name_get(E_Border *bd)
{
+ E_OBJECT_CHECK_RETURN(bd, "");
+ E_OBJECT_TYPE_CHECK_RETURN(bd, E_BORDER_TYPE, "");
if (bd->client.netwm.name)
return bd->client.netwm.name;
else if (bd->client.icccm.title)
return bd->client.icccm.title;
- else
- return "";
+ return "";
}
void
e_border_signal_move_begin(E_Border *bd, char *sig, char *src)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!_e_border_move_begin(bd)) return;
bd->moving = 1;
_e_border_pointer_move_begin(bd);
void
e_border_signal_move_end(E_Border *bd, char *sig, char *src)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!bd->moving) return;
bd->moving = 0;
_e_border_pointer_move_end(bd);
int
e_border_resizing_get(E_Border *bd)
{
+ E_OBJECT_CHECK_RETURN(bd, 0);
+ E_OBJECT_TYPE_CHECK_RETURN(bd, E_BORDER_TYPE, 0);
if (bd->resize_mode == RESIZE_NONE) return 0;
return 1;
}
Ecore_X_Gravity grav = ECORE_X_GRAVITY_NW;
int resize_mode = RESIZE_BR;
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!_e_border_resize_begin(bd))
return;
if (!strcmp(dir, "tl"))
void
e_border_signal_resize_end(E_Border *bd, char *dir, char *sig, char *src)
{
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (bd->resize_mode == RESIZE_NONE) return;
_e_border_resize_handle(bd);
_e_border_pointer_resize_end(bd);
{
double a;
+ E_OBJECT_CHECK(bd);
+ E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
*w -= bd->client_inset.l + bd->client_inset.r;
*h -= bd->client_inset.t + bd->client_inset.b;
if (*h < 1) *h = 1;
{
E_Util_Fake_Mouse_Up_Info *info;
+ E_OBJECT_CHECK(con);
+ E_OBJECT_TYPE_CHECK(con, E_CONTAINER_TYPE);
+
info = calloc(1, sizeof(E_Util_Fake_Mouse_Up_Info));
if (info)
{
void
e_util_container_fake_mouse_up_all_later(E_Container *con)
{
+ E_OBJECT_CHECK(con);
+ E_OBJECT_TYPE_CHECK(con, E_CONTAINER_TYPE);
+
e_util_container_fake_mouse_up_later(con, 1);
e_util_container_fake_mouse_up_later(con, 2);
e_util_container_fake_mouse_up_later(con, 3);
{
E_Container *con;
+ E_OBJECT_CHECK_RETURN(man, NULL);
+ E_OBJECT_TYPE_CHECK_RETURN(man, E_MANAGER_TYPE, NULL);
con = e_container_current_get(man);
if (con)
{
Evas_List *l;
int pos, i;
+ E_OBJECT_CHECK_RETURN(bd, NULL);
+ E_OBJECT_TYPE_CHECK_RETURN(bd, E_BORDER_TYPE, NULL);
+
if (bd->layer == 0) pos = 0;
else if ((bd->layer > 0) && (bd->layer <= 50)) pos = 1;
else if ((bd->layer > 50) && (bd->layer <= 100)) pos = 2;
Evas_List *l;
int pos, i;
+ E_OBJECT_CHECK_RETURN(bd, NULL);
+ E_OBJECT_TYPE_CHECK_RETURN(bd, E_BORDER_TYPE, NULL);
+
if (bd->layer == 0) pos = 0;
else if ((bd->layer > 0) && (bd->layer <= 50)) pos = 1;
else if ((bd->layer > 50) && (bd->layer <= 100)) pos = 2;
void
e_zone_fullscreen_set(E_Zone *zone, int on)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
if ((!zone->fullscreen) && (on))
{
ecore_evas_show(zone->black_ecore_evas);
E_OBJECT_CHECK_RETURN(con, NULL);
E_OBJECT_TYPE_CHECK_RETURN(con, E_CONTAINER_TYPE, NULL);
- if (!starting)
+ if (!starting)
{
int x, y;
void
e_zone_flip_coords_handle(E_Zone *zone, int x, int y)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
if ((y == 0) && E_ZONE_FLIP_UP(zone))
{
/* top */
E_Event_Zone_Desk_Count_Set *ev;
E_Border_List *bl;
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
xx = x_count;
if (xx < 1) xx = 1;
yy = y_count;
void
e_zone_desk_count_get(E_Zone *zone, int *x_count, int *y_count)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
*x_count = zone->desk_x_count;
*y_count = zone->desk_y_count;
}
void
e_zone_update_flip(E_Zone *zone)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
_e_zone_update_flip(zone);
}
void
e_zone_desk_flip_by(E_Zone *zone, int dx, int dy)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
dx = zone->desk_x_current + dx;
dy = zone->desk_y_current + dy;
e_zone_desk_flip_to(zone, dx, dy);
{
E_Desk *desk;
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
if (x < 0) x = 0;
else if (x >= zone->desk_x_count) x = zone->desk_x_count - 1;
if (y < 0) y = 0;
void
e_zone_desk_linear_flip_by(E_Zone *zone, int dx)
{
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
dx = zone->desk_x_current +
(zone->desk_y_current * zone->desk_x_count) + dx;
dx = dx % (zone->desk_x_count * zone->desk_y_count);
{
int y;
+ E_OBJECT_CHECK(zone);
+ E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
+
if (x < 0) return;
y = x / zone->desk_x_count;
x = x - (y * zone->desk_x_count);
char *penv_ld_preload_path;*/
char buf[4096], buf2[32];
+ E_OBJECT_CHECK_RETURN(zone, 0);
+ E_OBJECT_TYPE_CHECK_RETURN(zone, E_ZONE_TYPE, 0);
+
if (!a) return 0;
if (startup_id == 0)
{