mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
button: Remove grab_time
Unused.
This commit is contained in:
parent
0f6235752e
commit
f989281b38
@ -986,7 +986,6 @@ gtk_real_button_activate (GtkButton *button)
|
|||||||
GtkWidget *widget = GTK_WIDGET (button);
|
GtkWidget *widget = GTK_WIDGET (button);
|
||||||
GtkButtonPrivate *priv = button->priv;
|
GtkButtonPrivate *priv = button->priv;
|
||||||
GdkDevice *device;
|
GdkDevice *device;
|
||||||
guint32 time;
|
|
||||||
|
|
||||||
device = gtk_get_current_event_device ();
|
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)
|
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
|
/* bgo#626336 - Only grab if we have a device (from an event), not if we
|
||||||
* were activated programmatically when no event is available.
|
* 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);
|
gtk_device_grab_add (widget, device, TRUE);
|
||||||
priv->grab_keyboard = device;
|
priv->grab_keyboard = device;
|
||||||
priv->grab_time = time;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ struct _GtkButtonPrivate
|
|||||||
gfloat baseline_align;
|
gfloat baseline_align;
|
||||||
|
|
||||||
guint activate_timeout;
|
guint activate_timeout;
|
||||||
guint32 grab_time;
|
|
||||||
|
|
||||||
guint align_set : 1;
|
guint align_set : 1;
|
||||||
guint button_down : 1;
|
guint button_down : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user