user-accounts: Add casts to suppress gcc warnings
"warning: passing argument 1 of ‘gtk_widget_destroy’ from incompatible pointer type" is printed from g_clear_pointer, because it is more type-safe now. See https://gitlab.gnome.org/GNOME/glib/issues/1425 for more info. Add the necessary casts to suppress the warnings.
This commit is contained in:
parent
8de968b935
commit
70d8427b04
2 changed files with 2 additions and 2 deletions
|
@ -1549,7 +1549,7 @@ um_account_dialog_dispose (GObject *obj)
|
||||||
self->enterprise_domain_timeout_id = 0;
|
self->enterprise_domain_timeout_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_clear_pointer (&self->join_dialog, gtk_widget_destroy);
|
g_clear_pointer ((GtkWidget **)&self->join_dialog, gtk_widget_destroy);
|
||||||
|
|
||||||
G_OBJECT_CLASS (um_account_dialog_parent_class)->dispose (obj);
|
G_OBJECT_CLASS (um_account_dialog_parent_class)->dispose (obj);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1485,7 +1485,7 @@ cc_user_panel_dispose (GObject *object)
|
||||||
gtk_dialog_response (GTK_DIALOG (self->account_dialog), GTK_RESPONSE_DELETE_EVENT);
|
gtk_dialog_response (GTK_DIALOG (self->account_dialog), GTK_RESPONSE_DELETE_EVENT);
|
||||||
self->account_dialog = NULL;
|
self->account_dialog = NULL;
|
||||||
}
|
}
|
||||||
g_clear_pointer (&self->language_chooser, gtk_widget_destroy);
|
g_clear_pointer ((GtkWidget **)&self->language_chooser, gtk_widget_destroy);
|
||||||
g_clear_object (&self->permission);
|
g_clear_object (&self->permission);
|
||||||
G_OBJECT_CLASS (cc_user_panel_parent_class)->dispose (object);
|
G_OBJECT_CLASS (cc_user_panel_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue