diff --git a/ChangeLog b/ChangeLog index b3dd804fc5494caf6936f731667e04fefdafdbe5..3f5871d905f8f0b2b088ae35f62025251ba04596 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/panel-plugin/dict.c b/panel-plugin/dict.c index aa4dbe8a92cef1f33ed84f8e7486143591b424d4..627ba843260eefd0c4c43fd47b6b48b5b05c8eb0 100644 --- a/panel-plugin/dict.c +++ b/panel-plugin/dict.c @@ -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 void dict_free_data(XfcePanelPlugin *plugin, DictData *dd) } -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 @@ static void dict_about_dialog(GtkWidget *widget, DictData *dd) XFCE_LICENSE_GPL); xfce_about_info_add_credit(info, "Enrico Tröger", "enrico.troeger@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);