summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-05 01:15:53 +0300
committermonsta <[email protected]>2018-01-05 01:15:53 +0300
commit7f711b89d0db04c12db2286b5d18892be45f26a5 (patch)
tree05491e97330f963da3abe3b03dbc55a4164a601d
parent180ba4ae21e8f5bc7d67f4902d0cda6ff053f4b2 (diff)
downloadmate-panel-7f711b89d0db04c12db2286b5d18892be45f26a5.tar.bz2
mate-panel-7f711b89d0db04c12db2286b5d18892be45f26a5.tar.xz
simplify some code
-rw-r--r--mate-panel/libmate-panel-applet-private/panel-applet-frame-dbus.c6
1 files changed, 2 insertions, 4 deletions
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);
}