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
3 files changed,
10 insertions(+),
1 deletions(-)
M
src/config.c
→
src/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.c
→
src/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.h
→
src/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;