Skip to content
Permalink
Browse files

math-variable-popup: avoid deprecated 'g_type_class_add_private'

  • Loading branch information...
sc0w committed Jan 26, 2019
1 parent 740f9a5 commit e0e01b806ca252ef07147527c1e51bd4e2b523ff
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/math-variable-popup.c
@@ -27,7 +27,7 @@ struct MathVariablePopupPrivate
GtkWidget *add_variable_button;
};

G_DEFINE_TYPE (MathVariablePopup, math_variable_popup, GTK_TYPE_WINDOW);
G_DEFINE_TYPE_WITH_PRIVATE (MathVariablePopup, math_variable_popup, GTK_TYPE_WINDOW);

MathVariablePopup *
math_variable_popup_new(MathEquation *equation)
@@ -276,8 +276,6 @@ math_variable_popup_class_init(MathVariablePopupClass *klass)
object_class->get_property = math_variable_popup_get_property;
object_class->set_property = math_variable_popup_set_property;

g_type_class_add_private(klass, sizeof(MathVariablePopupPrivate));

g_object_class_install_property(object_class,
PROP_EQUATION,
g_param_spec_object("equation",
@@ -291,7 +289,7 @@ math_variable_popup_class_init(MathVariablePopupClass *klass)
static void
math_variable_popup_init(MathVariablePopup *popup)
{
popup->priv = G_TYPE_INSTANCE_GET_PRIVATE(popup, math_variable_popup_get_type(), MathVariablePopupPrivate);
popup->priv = math_variable_popup_get_instance_private (popup);

gtk_window_set_decorated(GTK_WINDOW(popup), FALSE);
gtk_window_set_skip_taskbar_hint(GTK_WINDOW(popup), TRUE);

0 comments on commit e0e01b8

Please sign in to comment.
You can’t perform that action at this time.