diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index 61a58bb48a..d88ed22e08 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -656,13 +656,9 @@ gtk_toggle_button_update_state (GtkButton *button) { GtkToggleButton *toggle_button = GTK_TOGGLE_BUTTON (button); GtkToggleButtonPrivate *priv = toggle_button->priv; - gboolean depressed, touchscreen; + gboolean depressed; GtkStateFlags new_state = 0; - g_object_get (gtk_widget_get_settings (GTK_WIDGET (button)), - "gtk-touchscreen-mode", &touchscreen, - NULL); - new_state = gtk_widget_get_state_flags (GTK_WIDGET (button)) & ~(GTK_STATE_FLAG_INCONSISTENT | GTK_STATE_FLAG_PRELIGHT | @@ -678,7 +674,7 @@ gtk_toggle_button_update_state (GtkButton *button) else depressed = priv->active; - if (!touchscreen && button->priv->in_button && (!button->priv->button_down || priv->draw_indicator)) + if (button->priv->in_button && (!button->priv->button_down || priv->draw_indicator)) new_state |= GTK_STATE_FLAG_PRELIGHT; if (depressed)