int w,h;
Evas_Object *image_ob;
+ if (fullimage == NULL) {
+ return NULL;
+ }
evas_object_image_size_get(fullimage, &w, &h);
data = (unsigned int*)evas_object_image_data_get(fullimage,0);
CSCLUtils *utils = CSCLUtils::get_instance();
SclWindowContext *winctx = NULL;
SclWindowContext *targetctx = NULL;
- if (windows) {
+ if (windows && window) {
//winctx = windows->get_window_context(window, FALSE);
winctx = windows->get_window_context(window);
//targetctx = windows->get_window_context(draw_ctx, FALSE);
SclWindowContext *winctx = NULL;
SclWindowContext *targetctx = NULL;
- if (windows) {
+ if (windows && window) {
//winctx = windows->get_window_context(window, FALSE);
winctx = windows->get_window_context(window);
//targetctx = windows->get_window_context(draw_ctx, FALSE);
SclWindowContext *winctx = NULL;
SclWindowContext *targetctx = NULL;
- if (windows) {
+ if (windows && window) {
//winctx = windows->get_window_context(window, FALSE);
winctx = windows->get_window_context(window);
//targetctx = windows->get_window_context(draw_ctx, FALSE);
CSCLWindows *windows = CSCLWindows::get_instance();
Evas_Object *window_object = (Evas_Object*)(windows->get_base_window());
- Evas *evas = evas_object_evas_get(window_object);
- Evas_Object *image_object = evas_object_image_add(evas);
+ Evas_Object *image_object = NULL;
+
+ if (window_object) {
+ Evas *evas = evas_object_evas_get(window_object);
+ image_object = evas_object_image_add(evas);
+ }
if (image_object) {
int w, h;
SclSize ret = { 0, 0 };
CSCLWindows *windows = CSCLWindows::get_instance();
+ Evas_Object *winobj = NULL;
+ Evas *evas = NULL;
- Evas_Object *winobj = (Evas_Object*)(windows->get_base_window());
- Evas *evas = evas_object_evas_get(winobj);
+ if (windows) {
+ winobj = (Evas_Object*)(windows->get_base_window());
+ }
+ if (winobj) {
+ evas = evas_object_evas_get(winobj);
+ }
int w, h;
{
SCL_DEBUG();
- ecore_x_icccm_transient_for_set(elm_win_xwindow_get(static_cast<Evas_Object*>(window)),
- elm_win_xwindow_get(static_cast<Evas_Object*>(parent)));
+ if (parent && window) {
+ ecore_x_icccm_transient_for_set(elm_win_xwindow_get(static_cast<Evas_Object*>(window)),
+ elm_win_xwindow_get(static_cast<Evas_Object*>(parent)));
+ }
}
/**
CSCLUtils *utils = CSCLUtils::get_instance();
SclWindowContext *winctx = NULL;
- if (windows) {
+ if (windows && window) {
winctx = windows->get_window_context(window);
}
CSCLUtils *utils = CSCLUtils::get_instance();
SclWindowContext *winctx = NULL;
- if (windows) {
+ if (windows && window) {
winctx = windows->get_window_context(window);
if (winctx) {
if (!(winctx->is_virtual)) {
}
}
- if (windows && utils) {
+ if (windows && utils && window) {
// Memory optimization */
//if (window == windows->get_magnifier_window() || TRUE) {
if (window == windows->get_magnifier_window() || window == windows->get_dim_window()) {
CSCLContext *context = CSCLContext::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
- if (utils && context && windows) {
+ if (utils && context && windows && window) {
//SclWindowContext *winctx = windows->get_window_context(window, FALSE);
SclWindowContext *winctx = windows->get_window_context(window);
unsigned short win_width = 0;
Evas_Object *win = (Evas_Object*)window;
#ifndef FULL_SCREEN_TEST
- if (windows && utils) {
+ if (windows && utils && window) {
utils->log("WinEfl_resizewin %p %p %d %d (basewin %p mag %p)\n",
window, elm_win_xwindow_get(static_cast<Evas_Object*>(window)), width, height,
windows->get_base_window(), windows->get_magnifier_window());
windows->update_window(window);
}*/
//evas_render_idle_flush(evas);
- if (windows) {
+ if (windows && window) {
if (window != windows->get_base_window()) {
evas_object_resize(win, width, height);
}
#ifndef FULL_SCREEN_TEST
CSCLWindows *windows = CSCLWindows::get_instance();
CSCLUtils *utils = CSCLUtils::get_instance();
- if (windows && utils) {
+ if (windows && utils && window) {
if (window != windows->get_base_window()) {
evas_object_move(win, x, y);
evas_object_resize(win, width, height);
CSCLUtils *utils = CSCLUtils::get_instance();
SclWindowContext *winctx = NULL;
- if (windows) {
+ if (windows && window) {
//winctx = windows->get_window_context(window, FALSE);
winctx = windows->get_window_context(window);
}
}
winctx->etc_info = NULL;*/
}
+ CSCLUIBuilder *builder = CSCLUIBuilder::get_instance();
+ builder->show_layout(window, x, y, width, height);
}
/*evas_image_cache_flush(evas_object_evas_get((Evas_Object*)window));
elm_cache_all_flush();
malloc_trim(0);*/
//edje_file_cache_flush();
-
- CSCLUIBuilder *builder = CSCLUIBuilder::get_instance();
- builder->show_layout(window, x, y, width, height);
}
/**
CSCLUtils *utils = CSCLUtils::get_instance();
CSCLContext *context = CSCLContext::get_instance();
- if (utils && context && rect) {
+ if (utils && context && rect && window) {
Window junkwin;
Ecore_X_Window_Attributes attrs;
int x, y, width, height;
CSCLWindows *windows = CSCLWindows::get_instance();
SclWindowContext *winctx = NULL;
- if (windows) {
+ if (windows && window) {
//winctx = windows->get_window_context(window, FALSE);
winctx = windows->get_window_context(window);
- }
- if (winctx) {
- if (winctx->is_virtual) {
- return;
+ if (winctx) {
+ if (winctx->is_virtual) {
+ return;
+ }
}
- }
- if (scl_check_arrindex(rotation, ROTATION_MAX)) {
- elm_win_rotation_with_resize_set(static_cast<Evas_Object*>(window), rotation_values_EFL[rotation]);
- }
+ if (scl_check_arrindex(rotation, ROTATION_MAX)) {
+ elm_win_rotation_with_resize_set(static_cast<Evas_Object*>(window), rotation_values_EFL[rotation]);
+ }
- XSizeHints hint;
- long int mask;
- Window win;
- Display *dpy;
+ XSizeHints hint;
+ long int mask;
+ Window win;
+ Display *dpy;
- dpy = (Display*)ecore_x_display_get();
- win = elm_win_xwindow_get((Evas_Object*)window);
+ dpy = (Display*)ecore_x_display_get();
+ win = elm_win_xwindow_get((Evas_Object*)window);
- if (!XGetWMNormalHints(dpy, win, &hint, &mask))
- memset(&hint, 0, sizeof(XSizeHints));
+ if (!XGetWMNormalHints(dpy, win, &hint, &mask))
+ memset(&hint, 0, sizeof(XSizeHints));
- hint.flags |= USPosition;
+ hint.flags |= USPosition;
- XSetWMNormalHints(dpy, win, &hint);
- /*if (winctx) {
- windows->resize_window(winctx->window, winctx->width, winctx->height);
- }*/
+ XSetWMNormalHints(dpy, win, &hint);
+ /*if (winctx) {
+ windows->resize_window(winctx->window, winctx->width, winctx->height);
+ }*/
+ }
}
//if (window == windows->get_magnifier_window()) {
//SclWindowContext *winctx = windows->get_window_context(win, FALSE);
SclWindowContext *winctx = windows->get_window_context(win);
- if (winctx) {
+ if (winctx && win) {
if (winctx->etc_info) {
Eina_List *list = (Eina_List*)(winctx->etc_info);