Right size for Xfce 4.2

(Old svn revision: 331)
master
Bernhard Walle 2005-01-10 13:44:18 +00:00
parent ad6d9f7ab1
commit 6288deec59
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-01-10 Bernhard Walle
* Changed size so that in Xfce 4.2 the panel height does not increase
because of the plugin
* Released 0.2.4.
2004-08-01 Bernhard Walle 2004-08-01 Bernhard Walle
* Made the plugin thread-safe and so compatible with recent developement * Made the plugin thread-safe and so compatible with recent developement
versions of Xfce versions of Xfce

View File

@ -9,7 +9,7 @@ AC_INIT([panel-plugin/netload.c])
AM_CONFIG_HEADER([config.h]) AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([xfce4-netload-plugin], [0.2.3]) AM_INIT_AUTOMAKE([xfce4-netload-plugin], [0.2.4])
AM_MAINTAINER_MODE AM_MAINTAINER_MODE

View File

@ -1,7 +1,7 @@
/* XFce 4 - Netload Plugin /* XFce 4 - Netload Plugin
* Copyright (c) 2003 Bernhard Walle <bernhard.walle@gmx.de> * Copyright (c) 2003 Bernhard Walle <bernhard.walle@gmx.de>
* *
* Id: $Id: netload.c,v 1.10 2004/08/01 09:16:58 bwalle Exp $ * Id: $Id: netload.c,v 1.11 2005/01/10 13:43:01 bwalle Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -696,12 +696,12 @@ static void monitor_set_size(Control *ctrl, int size)
if (settings.orientation == HORIZONTAL) if (settings.orientation == HORIZONTAL)
{ {
gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]),
6 + 2 * size, icon_size[size]); 6 + 2 * size, icon_size[size] - 4);
} }
else else
{ {
gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]), gtk_widget_set_size_request(GTK_WIDGET(global->monitor->status[i]),
icon_size[size], 6 + 2 * size); icon_size[size] - 4, 6 + 2 * size);
} }
gtk_widget_queue_resize(GTK_WIDGET(global->monitor->status[i])); gtk_widget_queue_resize(GTK_WIDGET(global->monitor->status[i]));
} }