diff options
author | Felix Riemann <[email protected]> | 2013-10-04 12:07:29 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-07-17 21:53:38 +0200 |
commit | 5a5612ab8ec4fb31464fa35e049a4a3b7cb64393 (patch) | |
tree | 0eee4a38e9d5f8f5d39beb5132c57a84c50a0e09 /src/eom-sidebar.c | |
parent | a3c97eb293bfff825c43bd10d5584ae5a20f5495 (diff) | |
download | eom-5a5612ab8ec4fb31464fa35e049a4a3b7cb64393.tar.bz2 eom-5a5612ab8ec4fb31464fa35e049a4a3b7cb64393.tar.xz |
Convert to G_DEFINE_TYPE_WITH_PRIVATE part 1
origin commits:
https://gitlab.gnome.org/GNOME/eog/commit/35c3864
https://gitlab.gnome.org/GNOME/eog/commit/842775b
https://gitlab.gnome.org/GNOME/eog/commit/3fe0bd4
https://gitlab.gnome.org/GNOME/eog/commit/2b25632
https://gitlab.gnome.org/GNOME/eog/commit/f0c977d
https://gitlab.gnome.org/GNOME/eog/commit/5cdb1b8
https://gitlab.gnome.org/GNOME/eog/commit/dba0bd4
https://gitlab.gnome.org/GNOME/eog/commit/8e31683
https://gitlab.gnome.org/GNOME/eog/commit/3945bb1
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r-- | src/eom-sidebar.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c index 37a7cf4..18e86ec 100644 --- a/src/eom-sidebar.c +++ b/src/eom-sidebar.c @@ -64,10 +64,7 @@ struct _EomSidebarPrivate { GtkTreeModel *page_model; }; -G_DEFINE_TYPE (EomSidebar, eom_sidebar, GTK_TYPE_BOX) - -#define EOM_SIDEBAR_GET_PRIVATE(object) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_SIDEBAR, EomSidebarPrivate)) +G_DEFINE_TYPE_WITH_PRIVATE (EomSidebar, eom_sidebar, GTK_TYPE_BOX) static void eom_sidebar_destroy (GtkWidget *object) @@ -185,8 +182,6 @@ eom_sidebar_class_init (EomSidebarClass *eom_sidebar_class) g_object_class = G_OBJECT_CLASS (eom_sidebar_class); widget_class = GTK_WIDGET_CLASS (eom_sidebar_class); - g_type_class_add_private (g_object_class, sizeof (EomSidebarPrivate)); - widget_class->destroy = eom_sidebar_destroy; g_object_class->get_property = eom_sidebar_get_property; g_object_class->set_property = eom_sidebar_set_property; @@ -350,7 +345,7 @@ eom_sidebar_init (EomSidebar *eom_sidebar) GtkWidget *arrow; GtkWidget *image; - eom_sidebar->priv = EOM_SIDEBAR_GET_PRIVATE (eom_sidebar); + eom_sidebar->priv = eom_sidebar_get_instance_private (eom_sidebar); /* data model */ eom_sidebar->priv->page_model = (GtkTreeModel *) |