[gtk+/wip/baedert/box: 4/5] button: Remove grab_time
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box: 4/5] button: Remove grab_time
- Date: Thu, 20 Oct 2016 17:27:42 +0000 (UTC)
commit 3b318fd83ebfe0e252cf1f88a43e684795dee97b
Author: Timm Bäder <mail baedert org>
Date: Thu Oct 20 17:57:53 2016 +0200
button: Remove grab_time
Unused.
gtk/gtkbutton.c | 4 ----
gtk/gtkbuttonprivate.h | 1 -
2 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 2358009..013c97f 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -986,7 +986,6 @@ gtk_real_button_activate (GtkButton *button)
GtkWidget *widget = GTK_WIDGET (button);
GtkButtonPrivate *priv = button->priv;
GdkDevice *device;
- guint32 time;
device = gtk_get_current_event_device ();
@@ -995,8 +994,6 @@ gtk_real_button_activate (GtkButton *button)
if (gtk_widget_get_realized (widget) && !priv->activate_timeout)
{
- time = gtk_get_current_event_time ();
-
/* bgo#626336 - Only grab if we have a device (from an event), not if we
* were activated programmatically when no event is available.
*/
@@ -1008,7 +1005,6 @@ gtk_real_button_activate (GtkButton *button)
{
gtk_device_grab_add (widget, device, TRUE);
priv->grab_keyboard = device;
- priv->grab_time = time;
}
}
diff --git a/gtk/gtkbuttonprivate.h b/gtk/gtkbuttonprivate.h
index 8adc4db..b03d447 100644
--- a/gtk/gtkbuttonprivate.h
+++ b/gtk/gtkbuttonprivate.h
@@ -42,7 +42,6 @@ struct _GtkButtonPrivate
gfloat baseline_align;
guint activate_timeout;
- guint32 grab_time;
guint align_set : 1;
guint button_down : 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]