From 10efec8be67f2254ecaf197801e67e59d6d2a467 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Mon, 21 Jan 2019 12:25:13 +0800 Subject: [eel][libegg] Use G_DEFINE_TYPE_WITH_PRIVATE macro Replace G_DEFINE_TYPE_WITH_CODE with G_DEFINE_TYPE_WITH_PRIVATE macro --- eel/eel-background.c | 3 +-- eel/eel-image-table.c | 3 +-- eel/eel-labeled-image.c | 3 +-- eel/eel-wrap-table.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'eel') diff --git a/eel/eel-background.c b/eel/eel-background.c index e107f7db..9f4bc0c9 100644 --- a/eel/eel-background.c +++ b/eel/eel-background.c @@ -80,8 +80,7 @@ struct EelBackgroundPrivate static GList *desktop_bg_objects = NULL; -G_DEFINE_TYPE_WITH_CODE (EelBackground, eel_background, G_TYPE_OBJECT, - G_ADD_PRIVATE (EelBackground)) +G_DEFINE_TYPE_WITH_PRIVATE (EelBackground, eel_background, G_TYPE_OBJECT) static void free_fade (EelBackground *self) diff --git a/eel/eel-image-table.c b/eel/eel-image-table.c index f7da635c..d3ac54e7 100644 --- a/eel/eel-image-table.c +++ b/eel/eel-image-table.c @@ -85,8 +85,7 @@ static int ancestor_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer event_data); -G_DEFINE_TYPE_WITH_CODE (EelImageTable, eel_image_table, EEL_TYPE_WRAP_TABLE, - G_ADD_PRIVATE (EelImageTable)) +G_DEFINE_TYPE_WITH_PRIVATE (EelImageTable, eel_image_table, EEL_TYPE_WRAP_TABLE) static void eel_image_table_init (EelImageTable *image_table) diff --git a/eel/eel-labeled-image.c b/eel/eel-labeled-image.c index 74faa4b5..04afe258 100644 --- a/eel/eel-labeled-image.c +++ b/eel/eel-labeled-image.c @@ -104,8 +104,7 @@ static gboolean labeled_image_show_image (const EelLabeledImage static guint labeled_image_signals[LAST_SIGNAL] = { 0 }; -G_DEFINE_TYPE_WITH_CODE (EelLabeledImage, eel_labeled_image, GTK_TYPE_CONTAINER, - G_ADD_PRIVATE (EelLabeledImage)) +G_DEFINE_TYPE_WITH_PRIVATE (EelLabeledImage, eel_labeled_image, GTK_TYPE_CONTAINER) static void eel_labeled_image_init (EelLabeledImage *labeled_image) diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c index 52e1e2ab..a7924080 100644 --- a/eel/eel-wrap-table.c +++ b/eel/eel-wrap-table.c @@ -70,8 +70,7 @@ static gboolean wrap_table_child_focus_in (GtkWidget *w static void wrap_table_layout (EelWrapTable *wrap_table); -G_DEFINE_TYPE_WITH_CODE (EelWrapTable, eel_wrap_table, GTK_TYPE_CONTAINER, - G_ADD_PRIVATE (EelWrapTable)) +G_DEFINE_TYPE_WITH_PRIVATE (EelWrapTable, eel_wrap_table, GTK_TYPE_CONTAINER) static void eel_wrap_table_init (EelWrapTable *wrap_table) -- cgit v1.2.1