[gtk+/wip/cssnode3: 96/101] entry: Prelight icons when pressed
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssnode3: 96/101] entry: Prelight icons when pressed
- Date: Wed, 11 Mar 2015 00:27:40 +0000 (UTC)
commit 089154add6827b8e2b7625a2bf92f81bb05d2bbd
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 10 17:25:24 2015 +0100
entry: Prelight icons when pressed
There's no reason to not keep them in the prelight state, theme authors
can override a prelight effect in :active if they want.
gtk/gtkentry.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c0c32eb..55af63e 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3825,9 +3825,6 @@ should_prelight (GtkEntry *entry,
if (icon_info->nonactivatable && icon_info->target_list == NULL)
return FALSE;
- if (icon_info->pressed)
- return FALSE;
-
return TRUE;
}
@@ -4374,11 +4371,6 @@ gtk_entry_event (GtkWidget *widget,
case GDK_BUTTON_PRESS:
case GDK_2BUTTON_PRESS:
case GDK_3BUTTON_PRESS:
- if (should_prelight (GTK_ENTRY (widget), i))
- {
- icon_info->prelight = FALSE;
- gtk_widget_queue_draw (widget);
- }
priv->start_x = x;
priv->start_y = y;
@@ -4424,15 +4416,6 @@ gtk_entry_event (GtkWidget *widget,
icon_info->pressed = FALSE;
icon_info->device = NULL;
- if (should_prelight (GTK_ENTRY (widget), i) &&
- x >= 0 && y >= 0 &&
- x < gdk_window_get_width (icon_info->window) &&
- y < gdk_window_get_height (icon_info->window))
- {
- icon_info->prelight = TRUE;
- gtk_widget_queue_draw (widget);
- }
-
if (!icon_info->nonactivatable)
g_signal_emit (widget, signals[ICON_RELEASE], 0, i, event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]