Index: time-out.c =================================================================== --- time-out.c (revision 5183) +++ time-out.c (working copy) @@ -44,9 +44,13 @@ #define DEFAULT_BREAK_COUNTDOWN_SECONDS 1800 /* 30 minutes */ #define DEFAULT_LOCK_COUNTDOWN_SECONDS 300 /* 5 minutes */ #define DEFAULT_POSTPONE_COUNTDOWN_SECONDS 120 /* 2 minutes */ +#define TIMEOUT_TITLE _("Time Out") +#define TIMEOUT_COPYRIGHT_YEARS _("2007") +#define TIMEOUT_COPYRIGHT_OWNERS _("The Xfce development team") +#ifndef VERSION +#define VERSION _("unknown") +#endif - - /* Plugin structure */ struct _TimeOutPlugin { @@ -221,8 +225,27 @@ panel_slice_free (TimeOutPlugin, time_out); } +void +timeout_about (XfcePanelPlugin *plugin) +{ + XfceAboutInfo *nfo; + GtkWidget *dialog; + nfo = xfce_about_info_new (CDDRIVE_TITLE, + VERSION, + _("CD-ROM drive tray and content control"), + XFCE_COPYRIGHT_TEXT (TIMEOUT_COPYRIGHT_YEARS, + TIMEOUT_COPYRIGHT_OWNERS), + XFCE_LICENSE_GPL); + xfce_about_info_add_credit (nfo, "Jannis Pohlmann", "jannis@xfce.org", "author"); + dialog = xfce_about_dialog_new_with_values (NULL, nfo, NULL); + xfce_about_info_free (nfo); + + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy (dialog); +} + static void time_out_construct (XfcePanelPlugin *plugin) { @@ -265,6 +288,7 @@ g_signal_connect (G_OBJECT (plugin), "size-changed", G_CALLBACK (time_out_size_changed), time_out); g_signal_connect (G_OBJECT (plugin), "configure-plugin", G_CALLBACK (time_out_configure), time_out); g_signal_connect (G_OBJECT (plugin), "orientation-changed", G_CALLBACK (time_out_orientation_changed), time_out); + g_signal_connect (G_OBJECT (plugin), "about", G_CALLBACK (timeout_about), NULL); /* Display the configure menu item */ xfce_panel_plugin_menu_show_configure (plugin); @@ -278,7 +302,6 @@ } - static void time_out_take_break (GtkMenuItem *menu_item, TimeOutPlugin *time_out) Index: time-out.h =================================================================== --- time-out.h (revision 5183) +++ time-out.h (working copy) @@ -23,9 +23,13 @@ #define __TIME_OUT_H__ - typedef struct _TimeOutPlugin TimeOutPlugin; #endif /* !__TIME_OUT_H__ */ + +#include + +void +timeout_about (XfcePanelPlugin *plugin);