changeset 23767:7c58107415bc

Make docklet menu appear on button press instead of release to match most other Linux things (where most is entirely based on what I had open at the time I checked :P). Fixes #5748.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 12 Aug 2008 04:53:07 +0000
parents 86bef5b06f70
children 18cdf05dd039
files pidgin/gtkdocklet-x11.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdocklet-x11.c	Tue Aug 12 04:37:18 2008 +0000
+++ b/pidgin/gtkdocklet-x11.c	Tue Aug 12 04:53:07 2008 +0000
@@ -82,7 +82,7 @@
 static gboolean
 docklet_x11_clicked_cb(GtkWidget *button, GdkEventButton *event, void *data)
 {
-	if (event->type != GDK_BUTTON_RELEASE)
+	if (event->type != GDK_BUTTON_PRESS)
 		return FALSE;
 
 	pidgin_docklet_clicked(event->button);
@@ -263,7 +263,7 @@
 	g_signal_connect(G_OBJECT(docklet), "embedded", G_CALLBACK(docklet_x11_embedded_cb), NULL);
 	g_signal_connect(G_OBJECT(docklet), "destroy", G_CALLBACK(docklet_x11_destroyed_cb), NULL);
 	g_signal_connect(G_OBJECT(docklet), "size-allocate", G_CALLBACK(docklet_x11_resize_icon), NULL);
-	g_signal_connect(G_OBJECT(box), "button-release-event", G_CALLBACK(docklet_x11_clicked_cb), NULL);
+	g_signal_connect(G_OBJECT(box), "button-press-event", G_CALLBACK(docklet_x11_clicked_cb), NULL);
 	gtk_container_add(GTK_CONTAINER(box), image);
 	gtk_container_add(GTK_CONTAINER(docklet), box);