|
42 | 42 | }; |
43 | 43 |
|
44 | 44 | /* Detail member struct */ |
45 | | -struct EelWrapTableDetails |
| 45 | +struct EelWrapTablePrivate |
46 | 46 | { |
47 | 47 | guint x_spacing; |
48 | 48 | guint y_spacing; |
@@ -70,16 +70,15 @@ static gboolean wrap_table_child_focus_in (GtkWidget *w |
70 | 70 | static void wrap_table_layout (EelWrapTable *wrap_table); |
71 | 71 |
|
72 | 72 |
|
73 | | -G_DEFINE_TYPE (EelWrapTable, eel_wrap_table, GTK_TYPE_CONTAINER) |
| 73 | +G_DEFINE_TYPE_WITH_CODE (EelWrapTable, eel_wrap_table, GTK_TYPE_CONTAINER, |
| 74 | + G_ADD_PRIVATE (EelWrapTable)) |
74 | 75 |
|
75 | 76 | static void |
76 | 77 | eel_wrap_table_init (EelWrapTable *wrap_table) |
77 | 78 | { |
78 | 79 | gtk_widget_set_has_window (GTK_WIDGET (wrap_table), FALSE); |
79 | 80 |
|
80 | | - wrap_table->details = G_TYPE_INSTANCE_GET_PRIVATE (wrap_table, |
81 | | - EEL_TYPE_WRAP_TABLE, |
82 | | - EelWrapTableDetails); |
| 81 | + wrap_table->details = eel_wrap_table_get_instance_private (wrap_table); |
83 | 82 | wrap_table->details->x_justification = EEL_JUSTIFICATION_BEGINNING; |
84 | 83 | wrap_table->details->y_justification = EEL_JUSTIFICATION_END; |
85 | 84 | wrap_table->details->cols = 1; |
@@ -485,7 +484,6 @@ eel_wrap_table_class_init (EelWrapTableClass *wrap_table_class) |
485 | 484 | g_param_spec_boolean ("homogeneous", NULL, NULL, |
486 | 485 | FALSE, G_PARAM_READWRITE)); |
487 | 486 |
|
488 | | - g_type_class_add_private (wrap_table_class, sizeof (EelWrapTableDetails)); |
489 | 487 | } |
490 | 488 |
|
491 | 489 | /* Private EelWrapTable methods */ |
|
0 commit comments