A remember the orientation per instance!

SVN revision: 37465
This commit is contained in:
Davide Andreoli 2008-11-05 03:28:19 +00:00
parent 2699ee7a4c
commit 742ed7ef14
1 changed files with 6 additions and 5 deletions

View File

@ -41,6 +41,7 @@ struct _Instance
IBar *ibar;
E_Drop_Handler *drop_handler;
Config_Item *ci;
E_Gadcon_Orient orient;
};
struct _IBar
@ -143,6 +144,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->gcc = gcc;
inst->o_ibar = o;
inst->orient = E_GADCON_ORIENT_HORIZ;
evas_object_geometry_get(o, &x, &y, &w, &h);
inst->drop_handler =
@ -174,13 +176,12 @@ static void
_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient)
{
Instance *inst;
static last = E_GADCON_ORIENT_HORIZ;
if (orient != -1)
last = orient;
inst = gcc->data;
switch (last)
if (orient != -1)
inst->orient = orient;
switch (inst->orient)
{
case E_GADCON_ORIENT_FLOAT:
case E_GADCON_ORIENT_HORIZ: