[gtk+] listbox: Emit ::row-selected as we used to
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] listbox: Emit ::row-selected as we used to
- Date: Sun, 13 Apr 2014 21:08:40 +0000 (UTC)
commit dbf3a0681a3de0e7e688cbc3f499dce8a5f3840b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 13 13:51:49 2014 -0700
listbox: Emit ::row-selected as we used to
The listbox selection test was failing because we were not
emitting these signals anymore.
gtk/gtklistbox.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index d67440f..5baa4ec 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -944,7 +944,10 @@ gtk_list_box_set_selection_mode (GtkListBox *box,
g_object_notify_by_pspec (G_OBJECT (box), properties[PROP_SELECTION_MODE]);
if (dirty)
- g_signal_emit (box, signals[SELECTED_ROWS_CHANGED], 0);
+ {
+ g_signal_emit (box, signals[ROW_SELECTED], 0, NULL);
+ g_signal_emit (box, signals[SELECTED_ROWS_CHANGED], 0);
+ }
}
/**
@@ -2214,7 +2217,10 @@ gtk_list_box_remove (GtkContainer *container,
gtk_widget_queue_resize (widget);
if (was_selected)
- g_signal_emit (box, signals[SELECTED_ROWS_CHANGED], 0);
+ {
+ g_signal_emit (box, signals[ROW_SELECTED], 0, NULL);
+ g_signal_emit (box, signals[SELECTED_ROWS_CHANGED], 0);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]