[gtk+] flow box: Avoid excessive signals
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] flow box: Avoid excessive signals
- Date: Sat, 29 Mar 2014 04:48:02 +0000 (UTC)
commit 7ac684e9e3d0e58931d1c165d83e9e407467b461
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 29 00:46:51 2014 -0400
flow box: Avoid excessive signals
We were emitting the a11y ::selection-changed signal much more
often than ::selected-children-changed. Thats not necessary.
gtk/gtkflowbox.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 942d577..0c55636 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -961,8 +961,6 @@ static gboolean
gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
gboolean selected)
{
- GtkFlowBox *box;
-
if (CHILD_PRIV (child)->selected != selected)
{
CHILD_PRIV (child)->selected = selected;
@@ -973,9 +971,6 @@ gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
gtk_widget_unset_state_flags (GTK_WIDGET (child),
GTK_STATE_FLAG_SELECTED);
- box = gtk_flow_box_child_get_box (child);
- _gtk_flow_box_accessible_selection_changed (GTK_WIDGET (box));
-
gtk_widget_queue_draw (GTK_WIDGET (child));
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]