From 87413e9d3c8ead9aef14d979c9cd790cff971454 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 28 Apr 2013 05:31:45 +0200 Subject: [PATCH] Add hints about the beep file --- src/fe-gtk/setup.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 48930278..a3037b1d 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -428,7 +428,11 @@ static const setting alert_settings[] = #endif {ST_3OGGLE, N_("Blink tray icon on:"), 0, 0, (void *)trayblinklist, 0}, {ST_3OGGLE, N_("Blink task bar on:"), 0, 0, (void *)taskbarlist, 0}, - {ST_3OGGLE, N_("Make a beep sound on:"), 0, 0, (void *)beeplist, 0}, +#ifdef WIN32 + {ST_3OGGLE, N_("Make a beep sound on:"), 0, N_("Play the \"Instant Message Notification\" system sound upon the selected events"), (void *)beeplist, 0}, +#else + {ST_3OGGLE, N_("Make a beep sound on:"), 0, N_("Play \"message-new-instant\" from the freedesktop.org sound theme upon the selected events"), (void *)beeplist, 0}, +#endif {ST_TOGGLE, N_("Omit alerts when marked as being away"), P_OFFINTNL(hex_away_omit_alerts), 0, 0, 0}, {ST_TOGGLE, N_("Omit alerts while the window is focused"), P_OFFINTNL(hex_gui_focus_omitalerts), 0, 0, 0}, @@ -653,6 +657,10 @@ setup_create_3oggle (GtkWidget *tab, int row, const setting *set) label = gtk_label_new (_(set->label)); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + if (set->tooltip) + { + add_tip (label, _(set->tooltip)); + } gtk_table_attach (GTK_TABLE (tab), label, 2, 3, row, row + 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, LABEL_INDENT, 0);