[libwnck] pager: fix 'ISO C90 forbids mixed declarations and code' warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] pager: fix 'ISO C90 forbids mixed declarations and code' warning
- Date: Fri, 28 Apr 2017 09:38:51 +0000 (UTC)
commit a44be55bb97bf2f5d405677ce413cd13323f6a65
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Apr 27 12:54:37 2017 +0300
pager: fix 'ISO C90 forbids mixed declarations and code' warning
libwnck/pager.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index e8d4250..46e14eb 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -1304,9 +1304,10 @@ wnck_pager_draw_workspace (WnckPager *pager,
for (j = 0; j < verti_views; j++)
{
+ GtkStateFlags rec_state = GTK_STATE_FLAG_NORMAL;
+
/* "+ j" is for the thin lines */
vy = rect->y + (height_ratio * screen_height) * j + j;
- GtkStateFlags rec_state = GTK_STATE_FLAG_NORMAL;
if (j == verti_views - 1)
vh = rect->height + rect->y - vy;
@@ -1350,19 +1351,20 @@ wnck_pager_draw_workspace (WnckPager *pager,
wnck_screen_get_workspace (pager->priv->screen,
workspace));
- tmp = windows;
- while (tmp != NULL)
- {
- WnckWindow *win = tmp->data;
- GdkRectangle winrect;
+ tmp = windows;
+ while (tmp != NULL)
+ {
+ WnckWindow *win = tmp->data;
+ GdkRectangle winrect;
+ gboolean translucent;
- get_window_rect (win, rect, &winrect);
+ get_window_rect (win, rect, &winrect);
- gboolean translucent = (win == pager->priv->drag_window) && pager->priv->dragging;
- draw_window (cr, widget, win, &winrect, state, translucent);
+ translucent = (win == pager->priv->drag_window) && pager->priv->dragging;
+ draw_window (cr, widget, win, &winrect, state, translucent);
- tmp = tmp->next;
- }
+ tmp = tmp->next;
+ }
g_list_free (windows);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]