pidgin: 1c18ae79: Make docklet menu appear on button press...
qulogic at pidgin.im
qulogic at pidgin.im
Tue Aug 12 00:56:28 EDT 2008
-----------------------------------------------------------------
Revision: 1c18ae79f0714ae9edd68c68f5d3e7fd79e58637
Ancestor: 8175c2ee59e9bd061677485b8842189f58028ed1
Author: qulogic at pidgin.im
Date: 2008-08-12T04:53:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1c18ae79f0714ae9edd68c68f5d3e7fd79e58637
Modified files:
pidgin/gtkdocklet-x11.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- pidgin/gtkdocklet-x11.c 315c2acc53e008778d6d2c171e53bb03c1cc4440
+++ pidgin/gtkdocklet-x11.c bd4f08e46e864ad14ffb37d6e09383b507c4136c
@@ -82,7 +82,7 @@ docklet_x11_clicked_cb(GtkWidget *button
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 @@ docklet_x11_create(gboolean recreate)
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);
More information about the Commits
mailing list