Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_notebook.c 


Log Message:
- allow the themer to know what position the tabs are in

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_notebook.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_notebook.c      6 Nov 2006 16:12:20 -0000       1.18
+++ ewl_notebook.c      16 Nov 2006 23:23:24 -0000      1.19
@@ -56,7 +56,7 @@
        ewl_object_alignment_set(EWL_OBJECT(n->body.tabbar), 
                                                EWL_FLAG_ALIGN_CENTER);
        ewl_widget_internal_set(n->body.tabbar, TRUE);
-       ewl_widget_appearance_set(n->body.tabbar, "tabbar");
+       ewl_widget_appearance_set(n->body.tabbar, "top/tabbar");
        ewl_widget_show(n->body.tabbar);
 
        n->body.pages = ewl_vbox_new();
@@ -164,6 +164,23 @@
                                                                        &pw, 
&ph);
 
                        ewl_object_preferred_inner_size_set(EWL_OBJECT(n), pw, 
ph + t);
+
+                       break;
+       }
+
+       switch (pos)
+       {
+               case EWL_POSITION_LEFT:
+                       ewl_widget_appearance_set(n->body.tabbar, 
"left/tabbar");
+                       break;
+               case EWL_POSITION_RIGHT:
+                       ewl_widget_appearance_set(n->body.tabbar, 
"right/tabbar");
+                       break;
+               case EWL_POSITION_TOP:
+                       ewl_widget_appearance_set(n->body.tabbar, "top/tabbar");
+                       break;
+               case EWL_POSITION_BOTTOM:
+                       ewl_widget_appearance_set(n->body.tabbar, 
"bottom/tabbar");
                        break;
        }
 



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to