summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_buffer.c
diff options
context:
space:
mode:
authorGwanglim Lee <gl77.lee@samsung.com>2012-12-05 06:48:46 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-12-05 06:48:46 +0000
commit74cdf85ea9a1931e508703ddd1cfb1c9ce68f3c1 (patch)
tree642d82752f5aef6f25a56dab07629a32c25bd30b /src/lib/ecore_evas/ecore_evas_buffer.c
parent25ea899dfae39b155f7f0f2b7cafc456cfd1f1d8 (diff)
From: Gwanglim Lee <gl77.lee@samsung.com>
Subject: Re: Re: Re: [E-devel] [RFC] Virtual desktop window profile I've attached 4th patch. May the 4th be with you. ecore patch has been merged with efl and all files are based on r80123. Thanks & Regards, Gwanglim ------- Original Message ------- Sender : Daniel Juyung Seo<seojuyung2@gmail.com> Date : 2012-12-04 01:55 (GMT+09:00) Title : Re: Re: [E-devel] [RFC] Virtual desktop window profile It looks ok to me. Sorry but can you re-generate the patch according to the recent ecore merge to efl single tree? Daniel Juyung Seo (SeoZ) On Thu, Nov 29, 2012 at 12:29 AM, Gwanglim Lee <gl77.lee@samsung.com> wrote: Dear Raster and Daniel Juyung Seo, I've attached 3rd patches and test_config according to your reviews. These are based on r79782. [elementary & ecore] 1. "profile,set" -> "profile,changed" - done 2. spaces after EINA_LIST_FOREACH - done 3. variable type - keep 4. author - done 5. removing deprecated marking in patch - done 6. add elm_win_available_profiles_get to test_config for the debugging purpose - done 7. check whether a given profile is present in an available profiles. otherwise window profile will be one of the item in available profiles. - newly added thing to the elm_win 8. merge with EO - done. :( Any comments would be appreciated. SVN revision: 80214
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_buffer.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 26f48ce336..8dcd71442e 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -467,6 +467,22 @@ _ecore_evas_buffer_alpha_set(Ecore_Evas *ee, int alpha)
467 } 467 }
468} 468}
469 469
470static void
471_ecore_evas_buffer_profile_set(Ecore_Evas *ee, const char *profile)
472{
473 _ecore_evas_window_profile_free(ee);
474 ee->prop.profile.name = NULL;
475
476 if (profile)
477 {
478 ee->prop.profile.name = (char *)eina_stringshare_add(profile);
479
480 /* just change ee's state.*/
481 if (ee->func.fn_state_change)
482 ee->func.fn_state_change(ee);
483 }
484}
485
470static Ecore_Evas_Engine_Func _ecore_buffer_engine_func = 486static Ecore_Evas_Engine_Func _ecore_buffer_engine_func =
471{ 487{
472 _ecore_evas_buffer_free, 488 _ecore_evas_buffer_free,
@@ -516,6 +532,7 @@ static Ecore_Evas_Engine_Func _ecore_buffer_engine_func =
516 _ecore_evas_buffer_alpha_set, 532 _ecore_evas_buffer_alpha_set,
517 NULL, //transparent 533 NULL, //transparent
518 NULL, // profiles_set 534 NULL, // profiles_set
535 _ecore_evas_buffer_profile_set,
519 536
520 NULL, 537 NULL,
521 NULL, 538 NULL,
@@ -583,6 +600,7 @@ ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, i
583 ee->h = h; 600 ee->h = h;
584 ee->req.w = ee->w; 601 ee->req.w = ee->w;
585 ee->req.h = ee->h; 602 ee->req.h = ee->h;
603 ee->profile_supported = 1;
586 604
587 ee->prop.max.w = 0; 605 ee->prop.max.w = 0;
588 ee->prop.max.h = 0; 606 ee->prop.max.h = 0;
@@ -722,6 +740,7 @@ ecore_evas_object_image_new(Ecore_Evas *ee_target)
722 ee->h = h; 740 ee->h = h;
723 ee->req.w = ee->w; 741 ee->req.w = ee->w;
724 ee->req.h = ee->h; 742 ee->req.h = ee->h;
743 ee->profile_supported = 1;
725 744
726 ee->prop.max.w = 0; 745 ee->prop.max.w = 0;
727 ee->prop.max.h = 0; 746 ee->prop.max.h = 0;