Avoid ellipsizing app names; Draw glow around running

Corresponding with the design, if an application is in a running
state (has > 0 windows open), draw a glow behind the name.

To make the display look a bit nicer, set the width of each item
to be equal to the longest word among all the items.
This commit is contained in:
Colin Walters
2009-07-04 17:28:34 -04:00
parent 9f4ccb83e3
commit 96cf9c739e
3 changed files with 149 additions and 12 deletions

View File

@ -81,10 +81,18 @@ void shell_global_format_time_relative_pretty (ShellGlobal *global, guint delta,
ClutterActor *shell_global_create_root_pixmap_actor (ShellGlobal *global);
guint shell_global_get_max_word_width (ShellGlobal *global, ClutterActor *ref, const char *text, const char *font);
void shell_global_clutter_cairo_texture_draw_clock (ClutterCairoTexture *texture,
int hour,
int minute);
void shell_global_clutter_cairo_texture_draw_glow (ClutterCairoTexture *texture,
double red,
double blue,
double green,
double alpha);
G_END_DECLS
#endif /* __SHELL_GLOBAL_H__ */