yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=df50f9f1f64bbe81ddab5c148f1e0277d6350382

commit df50f9f1f64bbe81ddab5c148f1e0277d6350382
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Dec 8 11:48:59 2015 +0200

    Add DEFAULT_TYPE enum value for propview
    
    It_Data_Type enum is used to switch to proper tab
    in a Property View.
    Add DEFAULT_TYPE value in order to give a command
    to udate view but keep opened type.
---
 src/bin/gui/prop_layout.c  | 13 +++++++++++++
 src/bin/gui/props_helper.h |  1 +
 2 files changed, 14 insertions(+)

diff --git a/src/bin/gui/prop_layout.c b/src/bin/gui/prop_layout.c
index 52ed271..056fcb2 100644
--- a/src/bin/gui/prop_layout.c
+++ b/src/bin/gui/prop_layout.c
@@ -97,6 +97,10 @@ _proplayout_build_post_cb(const Gui_Widget *wdg, 
It_Data_Type new_type)
               eo_do(g->main_win->itemview_box, 
efl_gfx_visible_set(EINA_FALSE));
               break;
            }
+      case DEFAULT_TYPE:
+           {
+              break;
+           }
      }
 
    _proplayout_toolbar_selected_item_type = new_type;
@@ -157,6 +161,10 @@ _proplayout_build_post_cb(const Gui_Widget *wdg, 
It_Data_Type new_type)
                 }
               break;
            }
+      case DEFAULT_TYPE:
+           {
+              break;
+           }
      }
 }
 
@@ -242,6 +250,7 @@ proplayout_view_switch(It_Data_Type type)
 {
    Elm_Object_Item *it = NULL;
    Egui_Layout_Widgets *g = egui_layout_gui_get();
+   if (type == DEFAULT_TYPE) type = _proplayout_toolbar_selected_item_type;
    switch (type)
      {
       case PROPERTY_TYPE:
@@ -267,6 +276,10 @@ proplayout_view_switch(It_Data_Type type)
               it = g->main_win->propsview_toolbar_cont_it;
               break;
            }
+      case DEFAULT_TYPE:
+           {
+              break;
+           }
      }
    _proplayout_toolbar_clicked(NULL, NULL, it);
 }
diff --git a/src/bin/gui/props_helper.h b/src/bin/gui/props_helper.h
index 5bbc0bf..d3647bb 100644
--- a/src/bin/gui/props_helper.h
+++ b/src/bin/gui/props_helper.h
@@ -29,6 +29,7 @@
 
 typedef enum
 {
+   DEFAULT_TYPE, // Default type - keep already used type
    DESCRIPTION_TYPE, // description view
    PROPERTY_TYPE,    // properties view
    CALLBACK_TYPE,     // callback view

-- 


Reply via email to