efl_ui_layout_part_table: implement missing API
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 18 Sep 2019 12:59:44 +0000 (14:59 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Fri, 20 Sep 2019 21:20:40 +0000 (06:20 +0900)
setting of these properties does not work, as they are not available in
legacy, but edje is still creating legacy objects.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10007

src/lib/elementary/efl_ui_layout_pack.c
src/lib/elementary/efl_ui_layout_part_table.eo

index bb4819c..2f4a707 100644 (file)
@@ -453,5 +453,23 @@ _efl_ui_layout_part_table_efl_pack_table_table_rows_get(const Eo *obj EINA_UNUSE
    return rows;
 }
 
+EOLIAN static void
+_efl_ui_layout_part_table_efl_pack_table_table_rows_set(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Table_Data *pd EINA_UNUSED, int rows EINA_UNUSED)
+{
+   ERR("This API is currently not supported on table parts");
+}
+
+EOLIAN static void
+_efl_ui_layout_part_table_efl_pack_table_table_columns_set(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Table_Data *pd EINA_UNUSED, int cols EINA_UNUSED)
+{
+   ERR("This API is currently not supported on table parts");
+}
+
+EOLIAN static void
+_efl_ui_layout_part_table_efl_pack_table_table_size_set(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Table_Data *pd EINA_UNUSED, int cols EINA_UNUSED, int rows EINA_UNUSED)
+{
+   ERR("This API is currently not supported on table parts");
+}
+
 #include "efl_ui_layout_part_box.eo.c"
 #include "efl_ui_layout_part_table.eo.c"
index 97274b4..96c1c8e 100644 (file)
@@ -25,8 +25,8 @@ class Efl.Ui.Layout_Part_Table extends Efl.Ui.Layout_Part implements Efl.Pack_Ta
       Efl.Pack_Table.table_contents_get;
       Efl.Pack_Table.table_cell_column { get; set; }
       Efl.Pack_Table.table_cell_row { get; set; }
-      Efl.Pack_Table.table_size { get; }
-      Efl.Pack_Table.table_columns { get; }
-      Efl.Pack_Table.table_rows { get; }
+      Efl.Pack_Table.table_size { get; set; }
+      Efl.Pack_Table.table_columns { get; set; }
+      Efl.Pack_Table.table_rows { get; set; }
    }
 }