forked from enlightenment/enlightenment
Give the iconbars some substance.
If a bit named Resist with class Decoration is added to .e_iconbar.bits.db, it will resist window movement. Makes it easy to line up windows along the edge of the iconbar. I'll commit an updated default db. SVN revision: 5807
This commit is contained in:
parent
e8adca84c5
commit
cb15f5013c
|
@ -199,6 +199,7 @@ e_desktops_init_file_display(E_Desktop *desk)
|
||||||
v->options.back_pixmap = 1;
|
v->options.back_pixmap = 1;
|
||||||
v->is_desktop = 1;
|
v->is_desktop = 1;
|
||||||
|
|
||||||
|
desk->view = v;
|
||||||
/* fixme: later */
|
/* fixme: later */
|
||||||
/* uncomment this and comment out the next line for some tress testing */
|
/* uncomment this and comment out the next line for some tress testing */
|
||||||
/* e_strdup(v->dir, "/dev"); */
|
/* e_strdup(v->dir, "/dev"); */
|
||||||
|
|
|
@ -32,6 +32,7 @@ struct _E_Desktop
|
||||||
int x, y;
|
int x, y;
|
||||||
} area;
|
} area;
|
||||||
} desk;
|
} desk;
|
||||||
|
E_View *view;
|
||||||
int changed;
|
int changed;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1281,3 +1281,24 @@ ib_child_handle(Ecore_Event *ev)
|
||||||
|
|
||||||
D_RETURN;
|
D_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
E_Rect *
|
||||||
|
e_iconbar_get_resist_rect(E_Iconbar *ib)
|
||||||
|
{
|
||||||
|
double x, y, w, h;
|
||||||
|
int resist = 32;
|
||||||
|
E_Rect *r;
|
||||||
|
|
||||||
|
D_ENTER;
|
||||||
|
|
||||||
|
ebits_get_named_bit_geometry(ib->bit, "Resist", &x, &y, &w, &h);
|
||||||
|
|
||||||
|
r = NEW(E_Rect, 1);
|
||||||
|
r->x = x;
|
||||||
|
r->y = y;
|
||||||
|
r->w = w;
|
||||||
|
r->h = h;
|
||||||
|
r->v1 = resist;
|
||||||
|
|
||||||
|
D_RETURN_(r);
|
||||||
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "exec.h"
|
#include "exec.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "object.h"
|
#include "object.h"
|
||||||
|
#include "resist.h"
|
||||||
|
|
||||||
typedef struct _E_Iconbar_Icon E_Iconbar_Icon;
|
typedef struct _E_Iconbar_Icon E_Iconbar_Icon;
|
||||||
#ifndef E_ICONBAR_TYPEDEF
|
#ifndef E_ICONBAR_TYPEDEF
|
||||||
|
@ -72,5 +73,6 @@ void e_iconbar_file_add(E_View *v, char *file);
|
||||||
void e_iconbar_file_delete(E_View *v, char *file);
|
void e_iconbar_file_delete(E_View *v, char *file);
|
||||||
void e_iconbar_file_change(E_View *v, char *file);
|
void e_iconbar_file_change(E_View *v, char *file);
|
||||||
void e_iconbar_save_out_final(E_Iconbar *ib);
|
void e_iconbar_save_out_final(E_Iconbar *ib);
|
||||||
|
E_Rect * e_iconbar_get_resist_rect(E_Iconbar *ib);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue