diff --git a/typing-break/ChangeLog b/typing-break/ChangeLog index fbac50e28..c2e9af158 100644 --- a/typing-break/ChangeLog +++ b/typing-break/ChangeLog @@ -1,3 +1,13 @@ +2005-11-27 Richard Hult + + * main.c: (main): Don't display a dialog when the monitor is + already running, that's an old remain from when drwright was a + standalone app. Fixes bug #307425. + + * drw-break-window.c: + * drwright.c: (popup_break_cb): Use stock icon from GTK+ instead + of libgnomeui and use i18n includes from glib. Fixes bug #171664. + 2005-11-14 Kjartan Maraas * drw-selection.h: ANSIfy function declaration. diff --git a/typing-break/drw-break-window.c b/typing-break/drw-break-window.c index b01aa056e..7f42d53c9 100644 --- a/typing-break/drw-break-window.c +++ b/typing-break/drw-break-window.c @@ -27,6 +27,7 @@ #include #include #include + #include "drwright.h" #include "drw-utils.h" #include "drw-break-window.h" diff --git a/typing-break/drwright.c b/typing-break/drwright.c index cc9821760..6b1e0d30a 100644 --- a/typing-break/drwright.c +++ b/typing-break/drwright.c @@ -21,22 +21,16 @@ */ #include - -#include "drwright.h" - #include #include #include - #include #include #include #include -#include -#include - #include +#include "drwright.h" #include "drw-break-window.h" #include "drw-monitor.h" #include "drw-utils.h" @@ -139,7 +133,7 @@ static GList * create_secondary_break_windows (void); static GtkItemFactoryEntry popup_items[] = { /* { N_("/_Enabled"), NULL, GIF_CB (popup_enabled_cb), POPUP_ITEM_ENABLED, "", NULL },*/ { N_("/_Preferences"), NULL, GIF_CB (popup_preferences_cb), 0, "", GTK_STOCK_PREFERENCES }, - { N_("/_About"), NULL, GIF_CB (popup_about_cb), 0, "", GNOME_STOCK_ABOUT }, + { N_("/_About"), NULL, GIF_CB (popup_about_cb), 0, "", GTK_STOCK_ABOUT }, { "/sep1", NULL, NULL, 0, "", NULL }, { N_("/_Take a Break"), NULL, GIF_CB (popup_break_cb), POPUP_ITEM_BREAK, "", NULL } }; @@ -560,7 +554,7 @@ popup_break_cb (gpointer callback_data, guint action, GtkWidget *widget) { - DrWright *dr = callback_data; + DrWright *dr = callback_data; if (dr->enabled) { dr->state = STATE_BREAK_SETUP; diff --git a/typing-break/main.c b/typing-break/main.c index e704a6bac..2c98c4be8 100644 --- a/typing-break/main.c +++ b/typing-break/main.c @@ -21,10 +21,11 @@ #include #include +#include #include #include #include -#include + #include "drw-selection.h" #include "drwright.h" @@ -85,30 +86,23 @@ main (int argc, char *argv[]) selection = drw_selection_start (); if (!drw_selection_is_master (selection)) { - GtkWidget *dialog; - - dialog = gtk_message_dialog_new (NULL, 0, - GTK_MESSAGE_INFO, - GTK_BUTTONS_CLOSE, - _("The typing monitor is already running.")); - - gtk_dialog_run (GTK_DIALOG (dialog)); - + g_message ("The typing monitor is already running, exiting."); return 0; } if (!no_check && !have_tray ()) { GtkWidget *dialog; - dialog = gtk_message_dialog_new (NULL, 0, - GTK_MESSAGE_INFO, - GTK_BUTTONS_CLOSE, - _("The typing monitor uses the notification area to display " - "information. You don't seem to have a notification area " - "on your panel. You can add it by right-clicking on your " - "panel and choosing 'Add to panel', selecting 'Notification " - "area' and clicking 'Add'.")); - + dialog = gtk_message_dialog_new ( + NULL, 0, + GTK_MESSAGE_INFO, + GTK_BUTTONS_CLOSE, + _("The typing monitor uses the notification area to display " + "information. You don't seem to have a notification area " + "on your panel. You can add it by right-clicking on your " + "panel and choosing 'Add to panel', selecting 'Notification " + "area' and clicking 'Add'.")); + gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog);