Browse Source

Code cosmetics: use defines for hide/unhide timeouts.

(Old svn revision: 19009)
upstream/xfce4-panel-4.10.1
Jasper Huijsmans 18 years ago
parent
commit
45d51cd497
  1. 12
      panel/panel-properties.c

12
panel/panel-properties.c

@ -39,6 +39,8 @@
#define HIDDEN_SIZE 3
#define OPAQUE 0xffffffff
#define HIDE_TIMEOUT 350
#define UNHIDE_TIMEOUT 200
/* automatic (re)sizing and moving */
@ -542,8 +544,9 @@ panel_enter (Panel *panel, GdkEventCrossing * event)
}
if (priv->hidden)
priv->unhide_timeout =
g_timeout_add (200, (GSourceFunc)_unhide_timeout, panel);
priv->unhide_timeout = g_timeout_add (UNHIDE_TIMEOUT,
(GSourceFunc)_unhide_timeout,
panel);
}
}
@ -569,8 +572,9 @@ panel_leave (Panel *panel, GdkEventCrossing * event)
}
if (!priv->hidden)
priv->hide_timeout =
g_timeout_add (500, (GSourceFunc)_hide_timeout, panel);
priv->hide_timeout = g_timeout_add (HIDE_TIMEOUT,
(GSourceFunc)_hide_timeout,
panel);
}
}

Loading…
Cancel
Save