[gnome-panel] toplevel: remove unused parameters from update_auto_hide_position
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] toplevel: remove unused parameters from update_auto_hide_position
- Date: Sat, 15 Feb 2020 23:08:24 +0000 (UTC)
commit 92e0de1dac430ae90c6cb211bdae9b3709fbb20b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Feb 15 21:57:47 2020 +0200
toplevel: remove unused parameters from update_auto_hide_position
gnome-panel/panel-toplevel.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 62a19f689..cce3617a5 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -1690,8 +1690,6 @@ static void
panel_toplevel_update_auto_hide_position (PanelToplevel *toplevel,
int *x,
int *y,
- int *w,
- int *h,
gboolean for_end_position)
{
int width, height;
@@ -2014,7 +2012,6 @@ static void
panel_toplevel_update_position (PanelToplevel *toplevel)
{
int x, y;
- int w, h;
int monitor_width, monitor_height;
GdkScreen *screen;
@@ -2087,22 +2084,15 @@ panel_toplevel_update_position (PanelToplevel *toplevel)
y = (monitor_height - toplevel->priv->geometry.height) / 2;
}
- w = h = -1;
-
if (toplevel->priv->state == PANEL_STATE_NORMAL)
panel_toplevel_update_normal_position (toplevel, &x, &y);
else if (toplevel->priv->state == PANEL_STATE_AUTO_HIDDEN)
- panel_toplevel_update_auto_hide_position (toplevel, &x, &y, &w, &h, FALSE);
+ panel_toplevel_update_auto_hide_position (toplevel, &x, &y, FALSE);
else
panel_toplevel_update_hidden_position (toplevel, &x, &y);
- if (w != -1)
- toplevel->priv->geometry.width = w;
- if (h != -1)
- toplevel->priv->geometry.height = h;
-
screen = gtk_window_get_screen (GTK_WINDOW (toplevel));
x += panel_multiscreen_x (screen, toplevel->priv->monitor);
y += panel_multiscreen_y (screen, toplevel->priv->monitor);
@@ -2919,8 +2909,6 @@ panel_toplevel_calculate_animation_end_geometry (PanelToplevel *toplevel)
panel_toplevel_update_auto_hide_position (toplevel,
&toplevel->priv->animation_end_x,
&toplevel->priv->animation_end_y,
- &toplevel->priv->animation_end_width,
- &toplevel->priv->animation_end_height,
TRUE);
else
panel_toplevel_update_hidden_position (toplevel,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]