Enlightenment CVS committal
Author : lok
Project : e17
Module : proto
Dir : e17/proto/enhance/src/lib
Modified Files:
enhance.c enhance_widget.c
Log Message:
Iconview support added.
Notebook "show_tabs" properties support added.
===================================================================
RCS file: /cvs/e/e17/proto/enhance/src/lib/enhance.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- enhance.c 21 Jul 2006 15:59:24 -0000 1.11
+++ enhance.c 31 Jul 2006 20:06:55 -0000 1.12
@@ -674,6 +674,15 @@
value);
}
}
+
+ else if(!strcmp(name, "show_tabs"))
+ {
+ IF_PARENT_CLASS("GtkNotebook")
+ {
+ PROPERTY_BOOL;
+ etk_notebook_show_tabs_set(ETK_NOTEBOOK(wid->wid), value);
+ }
+ }
}
void
===================================================================
RCS file: /cvs/e/e17/proto/enhance/src/lib/enhance_widget.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- enhance_widget.c 21 Jul 2006 15:59:24 -0000 1.12
+++ enhance_widget.c 31 Jul 2006 20:06:55 -0000 1.13
@@ -32,6 +32,8 @@
static E_Widget *_e_widget_hslider_handle(Enhance *en, EXML_Node *node);
static E_Widget *_e_widget_vslider_handle(Enhance *en, EXML_Node *node);
static E_Widget *_e_widget_textview_handle(Enhance *en, EXML_Node *node);
+static E_Widget *_e_widget_filechooser_widget_handle(Enhance *en, EXML_Node
*node);
+static E_Widget *_e_widget_iconview_handle(Enhance *en, EXML_Node *node);
static EXML_Node *find_node(EXML_Node *node, char *key, char *value)
{
@@ -681,6 +683,21 @@
return filechooser;
}
+static E_Widget *
+_e_widget_iconview_handle(Enhance *en, EXML_Node *node)
+{
+ E_Widget *iconbox;
+ char *id;
+
+ id = ecore_hash_get(node->attributes, "id");
+ if(!id) return NULL;
+
+ iconbox = _e_widget_new(en, node, etk_iconbox_new(), id);
+// etk_iconbox_model_new(ETK_ICONBOX(iconbox));
+
+ return iconbox;
+}
+
E_Widget *
_e_widget_handle(Enhance *en, EXML_Node *node)
{
@@ -763,6 +780,8 @@
return _e_widget_textview_handle(en, node);
else if(!strcmp(class, "GtkFileChooserWidget"))
return _e_widget_filechooser_widget_handle(en, node);
+ else if(!strcmp(class, "GtkIconView"))
+ return _e_widget_iconview_handle(en, node);
return NULL;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs