From 7f711b89d0db04c12db2286b5d18892be45f26a5 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 5 Jan 2018 01:15:53 +0300 Subject: simplify some code --- mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mate-panel') diff --git a/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c b/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c index 449f4db3..e9657648 100644 --- a/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c +++ b/mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c @@ -235,8 +235,7 @@ container_child_background_set (GObject *source_object, mate_panel_applet_container_child_set_finish (container, res, NULL); - if (frame->priv->bg_operation) - frame->priv->bg_operation = NULL; + frame->priv->bg_operation = NULL; } static void @@ -327,8 +326,7 @@ mate_panel_applet_frame_dbus_finalize (GObject *object) { MatePanelAppletFrameDBus *frame = MATE_PANEL_APPLET_FRAME_DBUS (object); - if (frame->priv->bg_operation) - frame->priv->bg_operation = NULL; + frame->priv->bg_operation = NULL; G_OBJECT_CLASS (mate_panel_applet_frame_dbus_parent_class)->finalize (object); } -- cgit v1.2.1