File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct MathDisplayPrivate
3434 GtkWidget * spinner ;
3535};
3636
37- G_DEFINE_TYPE (MathDisplay , math_display , GTK_TYPE_VIEWPORT );
37+ G_DEFINE_TYPE_WITH_PRIVATE (MathDisplay , math_display , GTK_TYPE_VIEWPORT );
3838
3939#define GET_WIDGET (ui , name ) GTK_WIDGET(gtk_builder_get_object(ui, name))
4040
@@ -434,8 +434,6 @@ math_display_class_init(MathDisplayClass *klass)
434434 object_class -> get_property = math_display_get_property ;
435435 object_class -> set_property = math_display_set_property ;
436436
437- g_type_class_add_private (klass , sizeof (MathDisplayPrivate ));
438-
439437 g_object_class_install_property (object_class ,
440438 PROP_EQUATION ,
441439 g_param_spec_object ("equation" ,
@@ -449,5 +447,5 @@ math_display_class_init(MathDisplayClass *klass)
449447static void
450448math_display_init (MathDisplay * display )
451449{
452- display -> priv = G_TYPE_INSTANCE_GET_PRIVATE ( display , math_display_get_type (), MathDisplayPrivate );
450+ display -> priv = math_display_get_instance_private ( display );
453451}
You can’t perform that action at this time.
0 commit comments