[gtk+] list box: Use g_object_notify_by_pspec everywhere
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] list box: Use g_object_notify_by_pspec everywhere
- Date: Sun, 6 Sep 2015 21:15:36 +0000 (UTC)
commit 5f458e40024537cbeece27585282965b9a3f7a28
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 6 10:39:57 2015 -0400
list box: Use g_object_notify_by_pspec everywhere
We already have the pspec at hand, so use it.
gtk/gtklistbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 01a0f4d..fe62e1d 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -3468,7 +3468,7 @@ gtk_list_box_row_set_activatable (GtkListBoxRow *row,
ROW_PRIV (row)->activatable = activatable;
gtk_list_box_update_row_style (gtk_list_box_row_get_box (row), row);
- g_object_notify (G_OBJECT (row), "activatable");
+ g_object_notify_by_pspec (G_OBJECT (row), row_properties[ROW_PROP_ACTIVATABLE]);
}
}
@@ -3516,7 +3516,7 @@ gtk_list_box_row_set_selectable (GtkListBoxRow *row,
ROW_PRIV (row)->selectable = selectable;
gtk_list_box_update_row_style (gtk_list_box_row_get_box (row), row);
- g_object_notify (G_OBJECT (row), "selectable");
+ g_object_notify_by_pspec (G_OBJECT (row), row_properties[ROW_PROP_SELECTABLE]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]