all repos — tint2 @ 88c133a9a778fa41806947eba1c565e74c88148c

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Launcher tooltips configurable, default off (Issue 366).


git-svn-id: http://tint2.googlecode.com/svn/trunk@642 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
google@craigoakes.com google@craigoakes.com@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

88c133a9a778fa41806947eba1c565e74c88148c

parent

6542370297facdf25fe591a8390c27beda751907

3 files changed, 10 insertions(+), 1 deletions(-)

jump to
M src/config.csrc/config.c

@@ -594,6 +594,9 @@ launcher_alpha = atoi(value1);

launcher_saturation = atoi(value2); launcher_brightness = atoi(value3); } + else if (strcmp(key, "launcher_tooltip") == 0) { + launcher_tooltip_enabled = atoi(value); + } /* Tooltip */ else if (strcmp (key, "tooltip_show_timeout") == 0) {
M src/launcher/launcher.csrc/launcher/launcher.c

@@ -34,6 +34,7 @@ #include "launcher.h"

int launcher_enabled; int launcher_max_icon_size; +int launcher_tooltip_enabled; int launcher_alpha; int launcher_saturation; int launcher_brightness;

@@ -55,6 +56,7 @@ void default_launcher()

{ launcher_enabled = 0; launcher_max_icon_size = 0; + launcher_tooltip_enabled = 0; launcher_alpha = 100; launcher_saturation = 0; launcher_brightness = 0;

@@ -694,7 +696,10 @@ launcherIcon->area.redraw = 1;

launcherIcon->area.bg = &g_array_index(backgrounds, Background, 0); launcherIcon->area.on_screen = 1; launcherIcon->area._on_change_layout = launcher_icon_on_change_layout; - launcherIcon->area._get_tooltip_text = launcher_icon_get_tooltip_text; + if (launcher_tooltip_enabled) + launcherIcon->area._get_tooltip_text = launcher_icon_get_tooltip_text; + else + launcherIcon->area._get_tooltip_text = NULL; launcherIcon->is_app_desktop = 1; launcherIcon->cmd = strdup(entry.exec); launcherIcon->icon_name = entry.icon ? strdup(entry.icon) : strdup(ICON_FALLBACK);
M src/launcher/launcher.hsrc/launcher/launcher.h

@@ -60,6 +60,7 @@ } IconTheme;

extern int launcher_enabled; extern int launcher_max_icon_size; +extern int launcher_tooltip_enabled; extern int launcher_alpha; extern int launcher_saturation; extern int launcher_brightness;