summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-13 14:49:31 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-16 09:18:08 +0100
commitb57d0aa571fb9a2353d2fba9107c13717cd3c4b4 (patch)
tree7f468dff63e743682c433f4c01afa857fa32737b
parent008517645e4ad926a090aebf0c37707a46dcad6d (diff)
efl_ui_progressbar: do not allow parts on unified widgets
this only allows the default part to be gotten when running the unified widget. A later widget can then be used to expose the second progressbar part. ref T8501 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11075
-rw-r--r--src/lib/elementary/efl_ui_progressbar.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_progressbar.c b/src/lib/elementary/efl_ui_progressbar.c
index 9aec5fd808..8c206e9099 100644
--- a/src/lib/elementary/efl_ui_progressbar.c
+++ b/src/lib/elementary/efl_ui_progressbar.c
@@ -681,10 +681,17 @@ _efl_ui_progressbar_efl_part_part_get(const Eo *obj, Efl_Ui_Progressbar_Data *sd
681 EINA_SAFETY_ON_NULL_RETURN_VAL(part, NULL); 681 EINA_SAFETY_ON_NULL_RETURN_VAL(part, NULL);
682 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL); 682 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
683 683
684 // Progress bars are dragable types 684 if (elm_widget_is_legacy(obj))
685 if (edje_object_part_drag_dir_get(wd->resize_obj, part) != (Edje_Drag_Dir)EFL_UI_DRAG_DIR_NONE) 685 {
686 return ELM_PART_IMPLEMENT(EFL_UI_PROGRESSBAR_PART_CLASS, obj, part); 686 // Progress bars are dragable types
687 687 if (edje_object_part_drag_dir_get(wd->resize_obj, part) != (Edje_Drag_Dir)EFL_UI_DRAG_DIR_NONE)
688 return ELM_PART_IMPLEMENT(EFL_UI_PROGRESSBAR_PART_CLASS, obj, part);
689 }
690 else
691 {
692 if (eina_streq(part, "efl.cur.progressbar"))
693 return ELM_PART_IMPLEMENT(EFL_UI_PROGRESSBAR_PART_CLASS, obj, part);
694 }
688 return efl_part_get(efl_super(obj, MY_CLASS), part); 695 return efl_part_get(efl_super(obj, MY_CLASS), part);
689} 696}
690 697