*add* tooltips

git-svn-id: http://tint2.googlecode.com/svn/trunk@175 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2009-09-14 21:28:17 +00:00
parent 5b3edd6777
commit d66778438c
10 changed files with 396 additions and 13 deletions

View File

@@ -30,6 +30,7 @@
#include "task.h"
#include "server.h"
#include "panel.h"
#include "tooltip.h"
@@ -139,7 +140,7 @@ void get_title(Task *tsk)
Panel *panel = tsk->area.panel;
char *title, *name;
if (!panel->g_task.text) return;
if (!panel->g_task.text && !g_tooltip.enabled) return;
name = server_get_property (tsk->win, server.atom._NET_WM_VISIBLE_NAME, server.atom.UTF8_STRING, 0);
if (!name || !strlen(name)) {

View File

@@ -26,8 +26,8 @@ typedef struct {
int icon_size1;
int maximum_width;
int maximum_height;
int hue, saturation, brightness;
int hue_active, saturation_active, brightness_active;
int hue, saturation, brightness;
int hue_active, saturation_active, brightness_active;
// starting position for text ~ task_padding + task_border + icon_size
double text_posx, text_posy;