display: Fix compile warnings using g_clear_pointer
This commit is contained in:
parent
9fa1e73da8
commit
04b0b68be4
2 changed files with 5 additions and 5 deletions
|
@ -272,7 +272,7 @@ cc_display_panel_dispose (GObject *object)
|
|||
g_clear_object (&self->shell_cancellable);
|
||||
g_clear_object (&self->shell_proxy);
|
||||
|
||||
g_clear_pointer (&self->night_light_dialog, gtk_widget_destroy);
|
||||
g_clear_pointer ((GtkWidget **) &self->night_light_dialog, gtk_widget_destroy);
|
||||
|
||||
G_OBJECT_CLASS (cc_display_panel_parent_class)->dispose (object);
|
||||
}
|
||||
|
|
|
@ -119,8 +119,8 @@ cc_night_light_widget_style_updated (GtkWidget *widget)
|
|||
CcNightLightWidget *self = CC_NIGHT_LIGHT_WIDGET (widget);
|
||||
GtkIconTheme *icon_theme = gtk_icon_theme_get_default ();
|
||||
|
||||
g_clear_pointer (&self->surface_sunrise, (GDestroyNotify) cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunset, (GDestroyNotify) cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunrise, cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunset, cairo_surface_destroy);
|
||||
|
||||
self->surface_sunrise =
|
||||
gtk_icon_theme_load_surface (icon_theme, "daytime-sunrise-symbolic",
|
||||
|
@ -152,8 +152,8 @@ cc_night_light_widget_finalize (GObject *object)
|
|||
{
|
||||
CcNightLightWidget *self = CC_NIGHT_LIGHT_WIDGET (object);
|
||||
|
||||
g_clear_pointer (&self->surface_sunrise, (GDestroyNotify) cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunset, (GDestroyNotify) cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunrise, cairo_surface_destroy);
|
||||
g_clear_pointer (&self->surface_sunset, cairo_surface_destroy);
|
||||
|
||||
G_OBJECT_CLASS (cc_night_light_widget_parent_class)->finalize (object);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue