2007-01-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
of PRELIGHT state for the reasons given in bug #135666. Widget
states are sometimes abused or otherwise used wrongly for historic
reasons, causing this part of the patch to break e.g. menu items.
svn path=/trunk/; revision=17211
+2007-01-24 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
+ of PRELIGHT state for the reasons given in bug #135666. Widget
+ states are sometimes abused or otherwise used wrongly for historic
+ reasons, causing this part of the patch to break e.g. menu items.
+
2007-01-24 Roozbeh Pournader <roozbeh@farsiweb.info>
* README: Remove mention of no-longer-existing PATCH
gtk_widget_set_state (GtkWidget *widget,
GtkStateType state)
{
- gboolean touchscreen;
-
g_return_if_fail (GTK_IS_WIDGET (widget));
if (state == GTK_WIDGET_STATE (widget))
return;
- g_object_get (gtk_widget_get_settings (widget),
- "gtk-touchscreen-mode", &touchscreen,
- NULL);
-
- if (touchscreen && state == GTK_STATE_PRELIGHT)
- state = GTK_STATE_NORMAL;
-
if (state == GTK_STATE_INSENSITIVE)
gtk_widget_set_sensitive (widget, FALSE);
else