[Goodies-commits] r2179 - in xfce4-dict-plugin/trunk: . panel-plugin
Enrico Troeger
enrico at xfce.org
Sat Nov 25 20:33:09 CET 2006
Author: enrico
Date: 2006-11-25 19:33:05 +0000 (Sat, 25 Nov 2006)
New Revision: 2179
Modified:
xfce4-dict-plugin/trunk/ChangeLog
xfce4-dict-plugin/trunk/panel-plugin/dict.c
Log:
* Enabled website link to goodies.xfce.org in the about dialog.
* Added missing includes to fix compilation on FreeBSD.
* Improved calculation of panel icon size (thanks to Rupert Horstk?\195?\182tter for reporting).
Modified: xfce4-dict-plugin/trunk/ChangeLog
===================================================================
--- xfce4-dict-plugin/trunk/ChangeLog 2006-11-25 18:15:24 UTC (rev 2178)
+++ xfce4-dict-plugin/trunk/ChangeLog 2006-11-25 19:33:05 UTC (rev 2179)
@@ -1,3 +1,11 @@
+2006-11-25 enrico
+
+ * Enabled website link to goodies.xfce.org in the about dialog.
+ * Added missing includes to fix compilation on FreeBSD.
+ * Improved calculation of panel icon size (thanks to Rupert Horstkötter
+ for reporting).
+
+
2006-11-16 enrico
* Added dependency of libexo.
@@ -12,7 +20,7 @@
* Prefixed all functions with dict.
-2006-10-14 enrico
+2006-10-15 enrico
* Improved the threading code to do GTK-related stuff in the main thread.
* Fixed some compiler warnings.
Modified: xfce4-dict-plugin/trunk/panel-plugin/dict.c
===================================================================
--- xfce4-dict-plugin/trunk/panel-plugin/dict.c 2006-11-25 18:15:24 UTC (rev 2178)
+++ xfce4-dict-plugin/trunk/panel-plugin/dict.c 2006-11-25 19:33:05 UTC (rev 2179)
@@ -31,10 +31,12 @@
#include <exo/exo.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/stat.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/tcp.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <string.h>
@@ -658,9 +660,12 @@
}
-static gboolean dict_set_size(XfcePanelPlugin *plugin, gint size, DictData *dd)
+static gboolean dict_set_size(XfcePanelPlugin *plugin, gint wsize, DictData *dd)
{
gint width;
+ gint size = wsize - 2 - (2 * MAX(dd->panel_button->style->xthickness,
+ dd->panel_button->style->ythickness));
+
//g_object_unref(G_OBJECT(dd->icon));
dd->icon = dict_load_and_scale(dict_icon_data, size, -1);
@@ -1357,7 +1362,7 @@
XFCE_LICENSE_GPL);
xfce_about_info_add_credit(info, "Enrico Tröger", "enrico.troeger at uvena.de", _("Developer"));
- //xfce_about_info_set_homepage(info, "http://goodies.xfce.org");
+ xfce_about_info_set_homepage(info, "http://goodies.xfce.org");
dialog = xfce_about_dialog_new_with_values(GTK_WINDOW(widget), info, dd->icon);
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(gtk_widget_destroy), NULL);
More information about the Goodies-commits
mailing list