[gtk+/gtk-style-context: 478/540] GtkToggleButton: Make it able to be prelight and active at the same time.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 478/540] GtkToggleButton: Make it able to be prelight and active at the same time.
- Date: Fri, 3 Dec 2010 03:16:18 +0000 (UTC)
commit daa3fed8086e7685ebb90f7c1a7996cac28606d3
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 24 02:10:28 2010 +0100
GtkToggleButton: Make it able to be prelight and active at the same time.
gtk/gtktogglebutton.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index 9f67cf7..7b8ae49 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -581,7 +581,8 @@ gtk_toggle_button_update_state (GtkButton *button)
if (!touchscreen && button->priv->in_button && (!button->priv->button_down || priv->draw_indicator))
new_state |= GTK_STATE_FLAG_PRELIGHT;
- else if (depressed)
+
+ if (depressed)
new_state |= GTK_STATE_FLAG_ACTIVE;
_gtk_button_set_depressed (button, depressed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]