After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 159101 - Need GtkWidget API to ignore multiple clicks
Need GtkWidget API to ignore multiple clicks
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.4.x
Other All
: Normal enhancement
: Medium API
Assigned To: gtk-bugs
gtk-bugs
: 340275 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-11-22 19:02 UTC by Federico Mena Quintero
Modified: 2015-02-18 00:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Federico Mena Quintero 2004-11-22 19:02:49 UTC
Right now, double-clicking on a GtkButton gives you two emissions of the
"clicked" signal.  This is especially bad for things like launcher buttons in
the Gnome panel, as people launch two instances of the same program without
intending it.

We need

  void gtk_button_set_ignore_double_click (GtkButton *button, gboolean ignore);
  gboolean gtk_button_get_ignore_double_click (GtkButton *button);

The default should probably be to actually ignore double clicks.
Comment 1 Federico Mena Quintero 2004-12-14 18:12:32 UTC
Actually, see the more general proposal here:
http://mail.gnome.org/archives/gtk-devel-list/2004-December/msg00026.html

Retitling for clarity.
Comment 2 Federico Mena Quintero 2004-12-14 18:37:14 UTC
See also bug #157492 for a related issue.
Comment 3 Teppo Turtiainen 2006-05-07 14:31:03 UTC
*** Bug 340275 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2015-02-18 00:29:51 UTC
the gesture framework in gtk lets widgets do the right thing