File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct MathVariablePopupPrivate
2727 GtkWidget * add_variable_button ;
2828};
2929
30- G_DEFINE_TYPE (MathVariablePopup , math_variable_popup , GTK_TYPE_WINDOW );
30+ G_DEFINE_TYPE_WITH_PRIVATE (MathVariablePopup , math_variable_popup , GTK_TYPE_WINDOW );
3131
3232MathVariablePopup *
3333math_variable_popup_new (MathEquation * equation )
@@ -276,8 +276,6 @@ math_variable_popup_class_init(MathVariablePopupClass *klass)
276276 object_class -> get_property = math_variable_popup_get_property ;
277277 object_class -> set_property = math_variable_popup_set_property ;
278278
279- g_type_class_add_private (klass , sizeof (MathVariablePopupPrivate ));
280-
281279 g_object_class_install_property (object_class ,
282280 PROP_EQUATION ,
283281 g_param_spec_object ("equation" ,
@@ -291,7 +289,7 @@ math_variable_popup_class_init(MathVariablePopupClass *klass)
291289static void
292290math_variable_popup_init (MathVariablePopup * popup )
293291{
294- popup -> priv = G_TYPE_INSTANCE_GET_PRIVATE ( popup , math_variable_popup_get_type (), MathVariablePopupPrivate );
292+ popup -> priv = math_variable_popup_get_instance_private ( popup );
295293
296294 gtk_window_set_decorated (GTK_WINDOW (popup ), FALSE);
297295 gtk_window_set_skip_taskbar_hint (GTK_WINDOW (popup ), TRUE);
You can’t perform that action at this time.
0 commit comments