diff options
author | Brandon Nielsen <nielsenb@jetfuse.net> | 2020-09-18 08:30:06 -0500 |
---|---|---|
committer | Robert Ancell <robert.ancell@gmail.com> | 2020-09-25 01:59:57 +0000 |
commit | 26e8f115665302e6347e211951db24d68712707b (patch) | |
tree | d4ad545df2aa3d13bed01e1b579bee0f38a5b217 /panels/printers/pp-details-dialog.c | |
parent | 9225cd9364e3826978da1c399f2c3d68268f081e (diff) | |
download | gnome-control-center-26e8f115665302e6347e211951db24d68712707b.tar.gz |
component: PpPPDSelectionDialog
G_IS_OBJECT checks fail when calling g_signal_connect_object because
PpPPDSelectionDialog is a struct, not a type descending from G_OBJECT.
This makes the changes required for PpPPDSelectionDialog to be a
GObject, and defines PpPPDSelectionDialog as a GObject. It also updates
consumers of PpPPDSelectionDialog to destroy created PpPPDSelectionDialogs as GObjects.
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1126
Diffstat (limited to 'panels/printers/pp-details-dialog.c')
-rw-r--r-- | panels/printers/pp-details-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/printers/pp-details-dialog.c b/panels/printers/pp-details-dialog.c index f9d97e5c1..98ca1d409 100644 --- a/panels/printers/pp-details-dialog.c +++ b/panels/printers/pp-details-dialog.c @@ -174,7 +174,7 @@ ppd_selection_dialog_response_cb (GtkDialog *dialog, } } - pp_ppd_selection_dialog_free (self->pp_ppd_selection_dialog); + g_clear_object (&self->pp_ppd_selection_dialog); self->pp_ppd_selection_dialog = NULL; } |