Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_toolbar.c e_toolbar.h 


Log Message:
Add api functions to change orientation.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_toolbar.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_toolbar.c 9 Nov 2007 20:43:54 -0000       1.3
+++ e_toolbar.c 9 Nov 2007 21:05:18 -0000       1.4
@@ -127,6 +127,20 @@
    evas_object_resize(tbar->o_base, w, h);
 }
 
+EAPI void 
+e_toolbar_orient(E_Toolbar *tbar, E_Gadcon_Orient orient) 
+{
+   char buf[4096];
+   
+   E_OBJECT_CHECK(tbar);
+   E_OBJECT_TYPE_CHECK(tbar, E_TOOLBAR_TYPE);
+   e_gadcon_orient(tbar->gadcon, orient);
+   snprintf(buf, sizeof(buf), "e,state,orientation,%s", 
+           _e_toolbar_orient_string_get(tbar));
+   edje_object_signal_emit(tbar->o_base, buf, "e");
+   edje_object_message_signal_process(tbar->o_base);
+}
+
 /* local functions */
 static void 
 _e_toolbar_free(E_Toolbar *tbar) 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_toolbar.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_toolbar.h 31 Oct 2007 10:09:51 -0000      1.1
+++ e_toolbar.h 9 Nov 2007 21:05:18 -0000       1.2
@@ -30,6 +30,7 @@
 EAPI void       e_toolbar_move        (E_Toolbar *tbar, int x, int y);
 EAPI void       e_toolbar_resize      (E_Toolbar *tbar, int w, int h);
 EAPI void       e_toolbar_move_resize (E_Toolbar *tbar, int x, int y, int w, 
int h);
+EAPI void       e_toolbar_orient      (E_Toolbar *tbar, E_Gadcon_Orient 
orient);
 
 #endif
 #endif



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to