[sysprof] sysprof: port to GBindingGroup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] sysprof: port to GBindingGroup
- Date: Fri, 22 Jul 2022 21:06:53 +0000 (UTC)
commit 950f7461505601d4ff45518b063415ca8aa8ad49
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 22 14:06:46 2022 -0700
sysprof: port to GBindingGroup
We aren't using any of the special getter API here, so we can just drop
our use of the EggBindingGroup and use the upstream'd version.
src/sysprof/egg-binding-group.c | 639 ----------------------------------------
src/sysprof/egg-binding-group.h | 57 ----
src/sysprof/meson.build | 1 -
src/sysprof/sysprof-window.c | 10 +-
4 files changed, 4 insertions(+), 703 deletions(-)
---
diff --git a/src/sysprof/meson.build b/src/sysprof/meson.build
index 5b5796c1..bc5205c7 100644
--- a/src/sysprof/meson.build
+++ b/src/sysprof/meson.build
@@ -1,5 +1,4 @@
sysprof_sources = [
- 'egg-binding-group.c',
'sysprof.c',
'sysprof-application.c',
'sysprof-window.c',
diff --git a/src/sysprof/sysprof-window.c b/src/sysprof/sysprof-window.c
index be6bb2c4..2da8b091 100644
--- a/src/sysprof/sysprof-window.c
+++ b/src/sysprof/sysprof-window.c
@@ -25,15 +25,13 @@
#include <glib/gi18n.h>
#include <sysprof-ui.h>
-#include "egg-binding-group.h"
-
#include "sysprof-window.h"
struct _SysprofWindow
{
AdwApplicationWindow parent_instance;
- EggBindingGroup *bindings;
+ GBindingGroup *bindings;
SysprofNotebook *notebook;
GtkButton *open_button;
@@ -177,7 +175,7 @@ sysprof_window_finalize (GObject *object)
{
SysprofWindow *self = (SysprofWindow *)object;
- egg_binding_group_set_source (self->bindings, NULL);
+ g_binding_group_set_source (self->bindings, NULL);
g_clear_object (&self->bindings);
G_OBJECT_CLASS (sysprof_window_parent_class)->finalize (object);
@@ -231,8 +229,8 @@ sysprof_window_init (SysprofWindow *self)
self,
G_CONNECT_SWAPPED);
- self->bindings = egg_binding_group_new ();
- egg_binding_group_bind (self->bindings, "title", self, "title", G_BINDING_SYNC_CREATE);
+ self->bindings = g_binding_group_new ();
+ g_binding_group_bind (self->bindings, "title", self, "title", G_BINDING_SYNC_CREATE);
g_object_bind_property (self->notebook, "current", self->bindings, "source",
G_BINDING_SYNC_CREATE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]