diff options
author | Wu Xiaotian <[email protected]> | 2019-01-21 12:25:13 +0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-01-22 04:36:49 +0000 |
commit | 10efec8be67f2254ecaf197801e67e59d6d2a467 (patch) | |
tree | 30202b0af7dd4b45a6f6b93694f8d50822477608 /eel | |
parent | f58095e30b2d3b624bff536c37540dffaf22dc8b (diff) | |
download | caja-10efec8be67f2254ecaf197801e67e59d6d2a467.tar.bz2 caja-10efec8be67f2254ecaf197801e67e59d6d2a467.tar.xz |
[eel][libegg] Use G_DEFINE_TYPE_WITH_PRIVATE macro
Replace G_DEFINE_TYPE_WITH_CODE with G_DEFINE_TYPE_WITH_PRIVATE macro
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-background.c | 3 | ||||
-rw-r--r-- | eel/eel-image-table.c | 3 | ||||
-rw-r--r-- | eel/eel-labeled-image.c | 3 | ||||
-rw-r--r-- | eel/eel-wrap-table.c | 3 |
4 files changed, 4 insertions, 8 deletions
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) |