1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 10-dont-use-pop-up-bubble.dpatch by Kyran Lange <kyran.lange@gmail.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix "alltray trayicons use their own tooltip theme" (LP: #355077)
6
## DP: src/trayicon.c and src/utils.c: Apply revision 25 from
7
## DP: old-maintenance branch upstream in order to stop alltray using its
8
## DP: own pop-up bubble for tooltips
11
diff -urNad alltray-0.69~/src/trayicon.c alltray-0.69/src/trayicon.c
12
--- alltray-0.69~/src/trayicon.c 2006-06-23 04:15:16.000000000 +0930
13
+++ alltray-0.69/src/trayicon.c 2009-04-16 12:39:06.000000000 +0930
18
-gboolean icon_window_enter_event(GtkWidget *widget, GdkEventButton * event,
22
- win_struct *win= (win_struct*) user_data;
24
- if (debug) printf ("icon window enter event\n");
26
- win->balloon_message_allowed=TRUE;
28
- show_balloon (win, win->title, 0);
34
void create_tray_and_dock (win_struct *win)
38
g_signal_connect ((gpointer) win->plug, "configure_event",
39
G_CALLBACK (icon_window_configure_event),
43
- g_signal_connect ((gpointer) win->plug, "enter_notify_event",
44
- G_CALLBACK (icon_window_enter_event),
48
dock_window (win->manager_window, win->plug_xlib);
50
diff -urNad alltray-0.69~/src/utils.c alltray-0.69/src/utils.c
51
--- alltray-0.69~/src/utils.c 2009-04-16 12:39:06.000000000 +0930
52
+++ alltray-0.69/src/utils.c 2009-04-16 12:39:06.000000000 +0930
54
win->title=g_strdup (title);
56
if (debug) printf ("win->title: %s\n", win->title);
58
+ gtk_widget_set_tooltip_text(win->plug, win->title);