[gtk+/wip/listbox] GtkListBox: minor fix
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/listbox] GtkListBox: minor fix
- Date: Wed, 12 Jun 2013 11:21:16 +0000 (UTC)
commit 0c6b5fdf420e4ee6a6fc2ac71927cf1322a15cd0
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jun 12 13:08:36 2013 +0200
GtkListBox: minor fix
Move the check inside the existing chech which also checks
for active_row != NULL for extra safety.
gtk/gtklistbox.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 1ec1891..6a77699 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1242,10 +1242,10 @@ gtk_list_box_real_button_release_event (GtkWidget *widget,
gtk_list_box_select_and_activate (list_box, priv->active_row);
else
gtk_list_box_update_selected (list_box, priv->active_row);
+
+ gtk_widget_unset_state_flags (GTK_WIDGET (priv->active_row),
+ GTK_STATE_FLAG_ACTIVE);
}
- if (priv->active_row_active)
- gtk_widget_unset_state_flags (GTK_WIDGET (priv->active_row),
- GTK_STATE_FLAG_ACTIVE);
priv->active_row = NULL;
priv->active_row_active = FALSE;
gtk_widget_queue_draw (GTK_WIDGET (list_box));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]