[gnome-panel/gtk3] Do not render launchers as pressed when hovered
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] Do not render launchers as pressed when hovered
- Date: Mon, 17 Jan 2011 14:14:17 +0000 (UTC)
commit 2172112cabb9636f96890217c5deaa4c23a3c03e
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon Jan 17 15:13:37 2011 +0100
Do not render launchers as pressed when hovered
gnome-panel/button-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/button-widget.c b/gnome-panel/button-widget.c
index 9621611..d66a5ae 100644
--- a/gnome-panel/button-widget.c
+++ b/gnome-panel/button-widget.c
@@ -350,8 +350,8 @@ button_widget_draw (GtkWidget *widget,
/* offset for pressed buttons */
state_flags = gtk_widget_get_state_flags (widget);
- off = (button_widget->priv->activatable &&
- state_flags & (GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_ACTIVE)) ?
+ off = (button_widget->priv->activatable && (state_flags & GTK_STATE_FLAG_PRELIGHT) &&
+ (state_flags & GTK_STATE_FLAG_ACTIVE)) ?
BUTTON_WIDGET_DISPLACEMENT * height / 48.0 : 0;
/* FIXMEchpe replace this by cairo ops too! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]