summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2019-07-22 17:58:13 +0300
committermonsta <[email protected]>2019-07-26 15:25:23 +0300
commit08e0723bf03978c23018b9fce6320ba6c15db84c (patch)
tree174a1aa28523c4bc5fe86c302521fd844a4d3cde
parentf285d0281b82f9f84d422d2947b2b4b41174fb24 (diff)
downloadmate-panel-08e0723bf03978c23018b9fce6320ba6c15db84c.tar.bz2
mate-panel-08e0723bf03978c23018b9fce6320ba6c15db84c.tar.xz
panel-toplevel: fix coding style and spacing a bit
-rw-r--r--mate-panel/panel-toplevel.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index 83dfd59d..78ce5152 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -2964,10 +2964,8 @@ panel_toplevel_move_resize_window (PanelToplevel *toplevel,
toplevel->priv->geometry.width,
toplevel->priv->geometry.height);
- if(resize || move)
- {
- for(list = toplevel->priv->panel_widget->applet_list;list!=NULL;list = g_list_next(list))
- {
+ if (resize || move) {
+ for (list = toplevel->priv->panel_widget->applet_list; list != NULL; list = g_list_next (list)) {
AppletData *ad = list->data;
id = mate_panel_applet_get_id_by_widget (ad->applet);
@@ -2979,8 +2977,7 @@ panel_toplevel_move_resize_window (PanelToplevel *toplevel,
stick = g_settings_get_boolean (info->settings, PANEL_OBJECT_PANEL_RIGHT_STICK_KEY);
- if(stick)
- {
+ if (stick) {
position = g_settings_get_int (info->settings, PANEL_OBJECT_POSITION_KEY);
ad->pos = toplevel->priv->geometry.width - position;
}