[gtk+] settings: Avoid one case of g_object_notify
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] settings: Avoid one case of g_object_notify
- Date: Mon, 7 Sep 2015 15:36:51 +0000 (UTC)
commit 9b494df91e2429b202602a8c613d9aa82270011d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 7 11:34:41 2015 -0400
settings: Avoid one case of g_object_notify
We already have the GParamSpec in hands, lets just use it instead
of looking it up again.
gtk/gtksettings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 1d2166a..41a17c5 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -2833,7 +2833,7 @@ _gtk_settings_handle_event (GdkEventSetting *event)
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
if (pspec)
- g_object_notify (G_OBJECT (settings), pspec->name);
+ g_object_notify_by_pspec (G_OBJECT (settings), pspec);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]