[Xfce4-commits] r22900 - in libexo/trunk: . exo

2006-08-27 Thread Benedikt Meurer
Author: benny
Date: 2006-08-27 08:58:28 + (Sun, 27 Aug 2006)
New Revision: 22900

Modified:
   libexo/trunk/ChangeLog
   libexo/trunk/exo/exo-icon-chooser-model.h
Log:
2006-08-27  Benedikt Meurer [EMAIL PROTECTED]

* exo/exo-icon-chooser-model.h: Need to include exo/exo-config.h to
  make sure G_GNUC_WARN_UNUSED_RESULT is defined. Thanks to Enrico
  Troeger [EMAIL PROTECTED] for the hint.




Modified: libexo/trunk/ChangeLog
===
--- libexo/trunk/ChangeLog  2006-08-26 23:38:40 UTC (rev 22899)
+++ libexo/trunk/ChangeLog  2006-08-27 08:58:28 UTC (rev 22900)
@@ -1,3 +1,9 @@
+2006-08-27 Benedikt Meurer [EMAIL PROTECTED]
+
+   * exo/exo-icon-chooser-model.h: Need to include exo/exo-config.h to
+ make sure G_GNUC_WARN_UNUSED_RESULT is defined. Thanks to Enrico
+ Troeger [EMAIL PROTECTED] for the hint.
+
 2006-08-26 Benedikt Meurer [EMAIL PROTECTED]
 
* exo/exo-icon-chooser-dialog.c(CONTEXT_TITLES): Apply patch from

Modified: libexo/trunk/exo/exo-icon-chooser-model.h
===
--- libexo/trunk/exo/exo-icon-chooser-model.h   2006-08-26 23:38:40 UTC (rev 
22899)
+++ libexo/trunk/exo/exo-icon-chooser-model.h   2006-08-27 08:58:28 UTC (rev 
22900)
@@ -25,6 +25,8 @@
 #ifndef __EXO_ICON_CHOOSER_MODEL_H__
 #define __EXO_ICON_CHOOSER_MODEL_H__
 
+#include exo/exo-config.h
+
 #include gtk/gtk.h
 
 G_BEGIN_DECLS;

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22903 - in xfburn/trunk: po xfburn

2006-08-27 Thread Jean-Fran�ois Wauthy
Author: pollux
Date: 2006-08-27 11:50:56 + (Sun, 27 Aug 2006)
New Revision: 22903

Added:
   xfburn/trunk/po/nl.po
Modified:
   xfburn/trunk/po/ChangeLog
   xfburn/trunk/po/LINGUAS
   xfburn/trunk/xfburn/xfburn-main-window.c
Log:
add Dutch translations

Modified: xfburn/trunk/po/ChangeLog
===
--- xfburn/trunk/po/ChangeLog   2006-08-27 11:47:48 UTC (rev 22902)
+++ xfburn/trunk/po/ChangeLog   2006-08-27 11:50:56 UTC (rev 22903)
@@ -1,3 +1,7 @@
+2006-08-27  Jean-François Wauthy [EMAIL PROTECTED]
+
+   * nl.po: Add Dutch translations
+
 2006-08-24  Jean-François Wauthy [EMAIL PROTECTED]
 
* pl.po: Update Polish translations

Modified: xfburn/trunk/po/LINGUAS
===
--- xfburn/trunk/po/LINGUAS 2006-08-27 11:47:48 UTC (rev 22902)
+++ xfburn/trunk/po/LINGUAS 2006-08-27 11:50:56 UTC (rev 22903)
@@ -1,2 +1,2 @@
 # set of available languages (in alphabetic order)
-ca cs de el eu fi fr gl he hu ja lt pl ru uk zh_TW
+ca cs de el eu fi fr gl he hu ja lt nl pl ru uk zh_TW

Added: xfburn/trunk/po/nl.po
===
--- xfburn/trunk/po/nl.po   (rev 0)
+++ xfburn/trunk/po/nl.po   2006-08-27 11:50:56 UTC (rev 22903)
@@ -0,0 +1,627 @@
+# Dutch translations for xfburn package.
+# Copyright (C) 2006 THE xfburn'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the xfburn package.
+# Stephan Arts [EMAIL PROTECTED], 2006.
+#
+msgid 
+msgstr 
+Project-Id-Version: xfburn 0.0.3svn-21957\n
+Report-Msgid-Bugs-To: \n
+POT-Creation-Date: 2006-08-25 07:51+0200\n
+PO-Revision-Date: 2006-08-10 18:53+0200\n
+Last-Translator: Stephan Arts [EMAIL PROTECTED]\n
+Language-Team: Dutch [EMAIL PROTECTED]\n
+MIME-Version: 1.0\n
+Content-Type: text/plain; charset=ASCII\n
+Content-Transfer-Encoding: 8bit\n
+Plural-Forms: nplurals=2; plural=(n != 1);\n
+
+#: ../xfburn/xfburn-adding-progress.c:89
+msgid Adding files to the composition
+msgstr Bestanden toevoegen aan compositie
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:94
+#: ../xfburn/xfburn-blank-cd-progress-dialog.c:151
+#: ../xfburn/xfburn-main-window.c:114
+msgid Blank CD-RW
+msgstr CD-RW wissen
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:105
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:131
+#: ../xfburn/xfburn-burn-image-dialog.c:122
+#: ../xfburn/xfburn-copy-cd-dialog.c:131
+msgid Burning device
+msgstr Brand apparaat
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:111
+msgid Fast
+msgstr Snel
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:112
+msgid Complete
+msgstr Klaar
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:113
+msgid Reopen last session
+msgstr Heropen laatste sessie
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:114
+msgid Erase last session
+msgstr Verwijder laatste sessie
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:118
+msgid Blank type
+msgstr Wis type
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:126
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:152
+#: ../xfburn/xfburn-burn-image-dialog.c:143
+#: ../xfburn/xfburn-copy-cd-dialog.c:139
+msgid Options
+msgstr Opties
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:130
+#, fuzzy
+msgid _Force
+msgstr _Force
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:134
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:156
+#: ../xfburn/xfburn-burn-image-dialog.c:147
+#: ../xfburn/xfburn-copy-cd-dialog.c:143
+msgid E_ject disk
+msgstr Disk Uitw_erpen
+
+#: ../xfburn/xfburn-blank-cd-dialog.c:144
+msgid _Blank
+msgstr _Wissen
+
+#: ../xfburn/xfburn-blank-cd-progress-dialog.c:133
+msgid Blanking...
+msgstr Wissen...
+
+#: ../xfburn/xfburn-blank-cd-progress-dialog.c:136
+msgid Performing OPC...
+msgstr OPC uitvoeren...
+
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:123
+msgid Burn Composition
+msgstr Compositie branden
+
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:140
+#: ../xfburn/xfburn-burn-image-dialog.c:131
+msgid Write _mode :
+msgstr Schrijf _modus:
+
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:161
+#: ../xfburn/xfburn-burn-image-dialog.c:152
+#: ../xfburn/xfburn-copy-cd-dialog.c:148
+msgid _Dummy write
+msgstr 
+
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:165
+#: ../xfburn/xfburn-burn-image-dialog.c:156
+#, fuzzy
+msgid Burn_Free
+msgstr Burn_Free
+
+#. create ISO ?
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:171
+#: ../xfburn/xfburn-copy-cd-dialog.c:157
+msgid Only create _ISO
+msgstr Alleen _ISO maken
+
+#: ../xfburn/xfburn-burn-data-composition-dialog.c:208
+msgid _Burn Composition
+msgstr Compositie _Branden
+
+#: ../xfburn/xfburn-burn-data-composition-progress-dialog.c:84
+#: ../xfburn/xfburn-burn-image-progress-dialog.c:89
+msgid Finishing
+msgstr Afmaken
+
+#: ../xfburn/xfburn-burn-data-composition-progress-dialog.c:90
+#: ../xfburn/xfburn-burn-image-progress-dialog.c:95
+msgid Fixating...
+msgstr Fixeren...
+
+#: ../xfburn/xfburn-burn-data-composition-progress-dialog.c:98

[Xfce4-commits] r22906 - xfcalendar/trunk/src

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 19:04:35 + (Sun, 27 Aug 2006)
New Revision: 22906

Modified:
   xfcalendar/trunk/src/appointment.c
   xfcalendar/trunk/src/appointment.h
   xfcalendar/trunk/src/event-list.c
   xfcalendar/trunk/src/ical-code.c
   xfcalendar/trunk/src/ical-code.h
Log:
Added complex recurring. Now it is possible to recur based on weekday and 
interval.


Modified: xfcalendar/trunk/src/appointment.c
===
--- xfcalendar/trunk/src/appointment.c  2006-08-27 14:15:30 UTC (rev 22905)
+++ xfcalendar/trunk/src/appointment.c  2006-08-27 19:04:35 UTC (rev 22906)
@@ -211,7 +211,7 @@
 void
 set_repeat_sensitivity(appt_win *apptw)
 {
-gint freq;
+gint freq, i;
 
 freq = gtk_combo_box_get_active((GtkComboBox *)apptw-appRecur_freq_cb);
 if (freq == XFICAL_FREQ_NONE) {
@@ -221,6 +221,13 @@
 gtk_widget_set_sensitive(apptw-appRecur_count_label, FALSE);
 gtk_widget_set_sensitive(apptw-appRecur_until_rb, FALSE);
 gtk_widget_set_sensitive(apptw-appRecur_until_button, FALSE);
+for (i=0; i = 6; i++) {
+gtk_widget_set_sensitive(apptw-appRecur_byday_cb[i], FALSE);
+gtk_widget_set_sensitive(apptw-appRecur_byday_spin[i], FALSE);
+}
+gtk_widget_set_sensitive(apptw-appRecur_int_spin, FALSE);
+gtk_widget_set_sensitive(apptw-appRecur_int_spin_label1, FALSE);
+gtk_widget_set_sensitive(apptw-appRecur_int_spin_label2, FALSE);
 }
 else {
 gtk_widget_set_sensitive(apptw-appRecur_limit_rb, TRUE);
@@ -236,12 +243,28 @@
 }
 gtk_widget_set_sensitive(apptw-appRecur_until_rb, TRUE);
 if (gtk_toggle_button_get_active(
-GTK_TOGGLE_BUTTON(apptw-appRecur_until_rb))) {
+GTK_TOGGLE_BUTTON(apptw-appRecur_until_rb))) {
 gtk_widget_set_sensitive(apptw-appRecur_until_button, TRUE);
 }
 else {
 gtk_widget_set_sensitive(apptw-appRecur_until_button, FALSE);
 }
+for (i=0; i = 6; i++) {
+gtk_widget_set_sensitive(apptw-appRecur_byday_cb[i], TRUE);
+}
+if (freq == XFICAL_FREQ_MONTHLY || freq == XFICAL_FREQ_YEARLY) {
+for (i=0; i = 6; i++) {
+gtk_widget_set_sensitive(apptw-appRecur_byday_spin[i], TRUE);
+}
+}
+else {
+for (i=0; i = 6; i++) {
+gtk_widget_set_sensitive(apptw-appRecur_byday_spin[i], FALSE);
+}
+}
+gtk_widget_set_sensitive(apptw-appRecur_int_spin, TRUE);
+gtk_widget_set_sensitive(apptw-appRecur_int_spin_label1, TRUE);
+gtk_widget_set_sensitive(apptw-appRecur_int_spin_label2, TRUE);
 }
 }
 
@@ -282,6 +305,32 @@
 }
 
 void
+app_recur_feature_checkbutton_clicked_cb(GtkCheckButton *checkbutton
+, gpointer user_data)
+{
+appt_win *apptw=(appt_win *)user_data;
+
+mark_appointment_changed((appt_win *)user_data);
+if (gtk_toggle_button_get_active(
+GTK_TOGGLE_BUTTON(apptw-appRecur_feature_normal_rb))) {
+gtk_widget_hide(apptw-appRecur_int_label);
+gtk_widget_hide(apptw-appRecur_int_hbox);
+gtk_widget_hide(apptw-appRecur_byday_label);
+gtk_widget_hide(apptw-appRecur_byday_hbox);
+gtk_widget_hide(apptw-appRecur_byday_spin_label);
+gtk_widget_hide(apptw-appRecur_byday_spin_hbox);
+}
+else {
+gtk_widget_show(apptw-appRecur_int_label);
+gtk_widget_show(apptw-appRecur_int_hbox);
+gtk_widget_show(apptw-appRecur_byday_label);
+gtk_widget_show(apptw-appRecur_byday_hbox);
+gtk_widget_show(apptw-appRecur_byday_spin_label);
+gtk_widget_show(apptw-appRecur_byday_spin_hbox);
+}
+}
+
+void
 app_checkbutton_clicked_cb(GtkCheckButton *checkbutton, gpointer user_data)
 {
 mark_appointment_changed((appt_win *)user_data);
@@ -447,6 +496,7 @@
 const char *time_format=%H:%M;
 struct tm current_t;
 gchar starttime[6], endtime[6];
+gint i;
 
 /*Get the title */
 appt-title = g_strdup(gtk_entry_get_text(
@@ -534,6 +584,10 @@
 appt-freq = gtk_combo_box_get_active(
 (GtkComboBox *)apptw-appRecur_freq_cb);
 
+/* Get the recurrence interval */
+appt-interval = gtk_spin_button_get_value_as_int(
+GTK_SPIN_BUTTON(apptw-appRecur_int_spin));
+
 /* Get the recurrence ending */
 if (gtk_toggle_button_get_active(
 GTK_TOGGLE_BUTTON(apptw-appRecur_limit_rb))) {
@@ -562,6 +616,15 @@
 else
 g_warning(fill_appt_from_apptw: coding error, illegal recurrence);
 
+/* Get the recurrence weekdays */
+for (i=0; i = 6; i++) {
+appt-recur_byday[i] = gtk_toggle_button_get_active(
+GTK_TOGGLE_BUTTON(apptw-appRecur_byday_cb[i]));
+/* Get the recurrence weekday selection for month/yearly case */
+appt-recur_byday_cnt[i] = gtk_spin_button_get_value_as_int(
+

[Xfce4-commits] r22907 - xfcalendar/trunk/src

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 19:18:01 + (Sun, 27 Aug 2006)
New Revision: 22907

Modified:
   xfcalendar/trunk/src/appointment.c
Log:
minor visual tuning to recurrence weekdays.


Modified: xfcalendar/trunk/src/appointment.c
===
--- xfcalendar/trunk/src/appointment.c  2006-08-27 19:04:35 UTC (rev 22906)
+++ xfcalendar/trunk/src/appointment.c  2006-08-27 19:18:01 UTC (rev 22907)
@@ -1718,12 +1718,12 @@
 , (GtkAttachOptions) (0));
 
 apptw-appRecur_byday_label = gtk_label_new(_(Weekdays));
-apptw-appRecur_byday_hbox = gtk_hbox_new(FALSE, 0);
+apptw-appRecur_byday_hbox = gtk_hbox_new(FALSE, 5);
 for (i=0; i = 6; i++) {
 apptw-appRecur_byday_cb[i] = 
 gtk_check_button_new_with_mnemonic(weekday_array[i]);
 gtk_box_pack_start(GTK_BOX(apptw-appRecur_byday_hbox)
-, apptw-appRecur_byday_cb[i], FALSE, FALSE, i ? 5 : 0);
+, apptw-appRecur_byday_cb[i], FALSE, FALSE, 0);
 }
 xfcalendar_table_add_row(apptw-appTableRecur
 , apptw-appRecur_byday_label, apptw-appRecur_byday_hbox, row++
@@ -1731,12 +1731,12 @@
 , (GtkAttachOptions) (0));
 
 apptw-appRecur_byday_spin_label = gtk_label_new(_(Which day));
-apptw-appRecur_byday_spin_hbox = gtk_hbox_new(FALSE, 0);
+apptw-appRecur_byday_spin_hbox = gtk_hbox_new(FALSE, 2);
 for (i=0; i = 6; i++) {
 apptw-appRecur_byday_spin[i] = 
 gtk_spin_button_new_with_range(-9, 9, 1);
 gtk_box_pack_start(GTK_BOX(apptw-appRecur_byday_spin_hbox)
-, apptw-appRecur_byday_spin[i], FALSE, FALSE, i ? 2 : 0);
+, apptw-appRecur_byday_spin[i], FALSE, FALSE, 0);
 gtk_tooltips_set_tip(apptw-appTooltips, apptw-appRecur_byday_spin[i]
 , _(Specify which weekday for monthly and yearly events.\n 
For example:\n Every second Wednesday each month:\n\tFrequency = 
Monthly,\n\tWeekdays = cross only Wednesday,\n\tWhich day = select 2 from the 
number below Wednesday)
 , NULL);

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22908 - xfcalendar/trunk/src

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 19:31:19 + (Sun, 27 Aug 2006)
New Revision: 22908

Modified:
   xfcalendar/trunk/src/appointment.c
Log:
another fix for formatting. now it should be fine.


Modified: xfcalendar/trunk/src/appointment.c
===
--- xfcalendar/trunk/src/appointment.c  2006-08-27 19:18:01 UTC (rev 22907)
+++ xfcalendar/trunk/src/appointment.c  2006-08-27 19:31:19 UTC (rev 22908)
@@ -1718,7 +1718,7 @@
 , (GtkAttachOptions) (0));
 
 apptw-appRecur_byday_label = gtk_label_new(_(Weekdays));
-apptw-appRecur_byday_hbox = gtk_hbox_new(FALSE, 5);
+apptw-appRecur_byday_hbox = gtk_hbox_new(TRUE, 0);
 for (i=0; i = 6; i++) {
 apptw-appRecur_byday_cb[i] = 
 gtk_check_button_new_with_mnemonic(weekday_array[i]);
@@ -1731,7 +1731,7 @@
 , (GtkAttachOptions) (0));
 
 apptw-appRecur_byday_spin_label = gtk_label_new(_(Which day));
-apptw-appRecur_byday_spin_hbox = gtk_hbox_new(FALSE, 2);
+apptw-appRecur_byday_spin_hbox = gtk_hbox_new(TRUE, 0);
 for (i=0; i = 6; i++) {
 apptw-appRecur_byday_spin[i] = 
 gtk_spin_button_new_with_range(-9, 9, 1);

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22909 - xfcalendar/trunk/src

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 19:57:14 + (Sun, 27 Aug 2006)
New Revision: 22909

Modified:
   xfcalendar/trunk/src/reminder.c
   xfcalendar/trunk/src/reminder.h
   xfcalendar/trunk/src/xfce_trayicon.c
Log:
added two minor enhancements into reminder:
1) wait until audio alarm has ended before starting next repeat sound
2) show active alarm list in trayicon tooltip


Modified: xfcalendar/trunk/src/reminder.c
===
--- xfcalendar/trunk/src/reminder.c 2006-08-27 19:31:19 UTC (rev 22908)
+++ xfcalendar/trunk/src/reminder.c 2006-08-27 19:57:14 UTC (rev 22909)
@@ -1,7 +1,7 @@
 /* reminder.c
  *
- * (C) 2003-2005 Mickaël Graf
- * (C) 2005  Juha Kautto 
+ * (C) 2003-2006 Mickaël Graf
+ * (C) 2005-2006 Juha Kautto 
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -21,6 +21,9 @@
 #ifdef HAVE_CONFIG_H
 #  include config.h
 #endif
+#ifdef HAVE_SYS_WAIT_H
+#include sys/wait.h
+#endif
 
 #include sys/types.h
 #include sys/stat.h
@@ -29,6 +32,8 @@
 #include stdio.h
 #include time.h
 
+#include glib.h
+#include glib/gprintf.h
 #include gdk/gdkkeysyms.h
 #include gtk/gtk.h
 #include libxfce4util/libxfce4util.h
@@ -47,7 +52,6 @@
 extern GList *alarm_list;
 extern XfceTrayIcon *trayIcon;
 
-
 static gchar *play_cmd = NULL;
 
 void set_play_command(gchar *cmd)
@@ -57,6 +61,48 @@
 play_cmd = g_strdup(cmd);
 }
 
+static void
+child_setup_async(gpointer user_data)
+{
+#if defined(HAVE_SETSID)  !defined(G_OS_WIN32)
+setsid();
+#endif
+}
+
+static void
+child_watch_cb(GPid pid, gint status, gpointer data)
+{
+gboolean *sound_active = (gboolean *)data;
+
+waitpid(pid, NULL, 0);
+g_spawn_close_pid(pid);
+*sound_active = FALSE;
+}
+
+gboolean 
+orage_exec(const char *cmd, gboolean *sound_active, GError **error)
+{
+char **argv;
+gboolean success;
+int spawn_flags = G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD;
+GPid pid;
+
+if (!g_shell_parse_argv(cmd, NULL, argv, error)) 
+return FALSE;
+
+if (!argv || !argv[0])
+return FALSE;
+
+success = g_spawn_async(NULL, argv, NULL, spawn_flags
+, child_setup_async, NULL, pid, error);
+if (success)
+*sound_active = TRUE;
+g_child_watch_add(pid, child_watch_cb, sound_active);
+g_strfreev(argv);
+
+return success;
+}
+
 gboolean
 orage_sound_alarm(gpointer data)
 {
@@ -68,7 +114,14 @@
 
 /* note: -1 loops forever */
 if (audio_alarm-cnt != 0) {
+/*
 status = xfce_exec(audio_alarm-play_cmd, FALSE, FALSE, error);
+*/
+if (audio_alarm-sound_active) {
+return(TRUE);
+}
+status = orage_exec(audio_alarm-play_cmd, audio_alarm-sound_active
+, error);
 if (!status) {
 g_warning(reminder: play failed (%si), audio_alarm-play_cmd);
 audio_alarm-cnt = 0; /* one warning is enough */
@@ -98,6 +151,7 @@
 audio_alarm =  g_new(xfce_audio_alarm_type, 1);
 audio_alarm-play_cmd = g_strconcat(play_cmd,  \, alarm-sound-str, 
\, NULL);
 audio_alarm-delay = alarm-repeat_delay;
+audio_alarm-sound_active = FALSE;
 if ((audio_alarm-cnt = alarm-repeat_cnt) == 0) {
 audio_alarm-cnt++;
 audio_alarm-wReminder = NULL;
@@ -249,6 +303,44 @@
   gtk_widget_show(wReminder);
 }
 
+void
+build_tray_tooltip()
+{
+gint alarm_cnt=0;
+gint tooltip_alarm_limit=5;
+gint dd, hh, min;
+GString *tooltip=NULL;
+GList *alarm_l;
+alarm_struct *cur_alarm;
+/* GtkTooltipsData *cur_tooltip; */
+ 
+tooltip = g_string_new(_(Next active alarms:));
+alarm_l = alarm_list;
+for (alarm_l = g_list_first(alarm_l);
+ alarm_l != NULL  (alarm_cnt  tooltip_alarm_limit);
+ alarm_l = g_list_next(alarm_l)) {
+cur_alarm = (alarm_struct *)alarm_l-data;
+if (xfical_duration(cur_alarm-alarm_time-str, dd, hh, min)) {
+g_string_append_printf(tooltip, 
+_(\n%02d d %02d h %02d min to: %s),
+dd, hh, min, cur_alarm-title-str);
+alarm_cnt++;
+}
+}
+if (alarm_cnt == 0)
+g_string_append_printf(tooltip, _(\nNo active alarms found));
+
+/* would this check save CPU or not??
+cur_tooltip = gtk_tooltips_data_get(trayIcon-tray);
+if (cur_tooltip == NULL) 
+|| (strcmp(tooltip-str, cur_tooltip-tip_text) != 0) {
+xfce_tray_icon_set_tooltip(trayIcon, tooltip-str, NULL);
+}
+*/
+xfce_tray_icon_set_tooltip(trayIcon, tooltip-str, NULL);
+g_string_free(tooltip, TRUE);
+}
+
 gboolean
 orage_alarm_clock(gpointer user_data)
 {
@@ -276,13 +368,15 @@
  selected_day == previous_day) {
 /* previous day was indeed selected, 
keep it current automatically */
-xfcalendar_select_date(GTK_CALENDAR (xfcal-mCalendar), 

[Xfce4-commits] r22910 - xfcalendar/trunk/sounds

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 20:02:22 + (Sun, 27 Aug 2006)
New Revision: 22910

Modified:
   xfcalendar/trunk/sounds/Makefile.am
Log:
Added few more sounds
Made every effort to make sure those are licensefree.


Modified: xfcalendar/trunk/sounds/Makefile.am
===
--- xfcalendar/trunk/sounds/Makefile.am 2006-08-27 19:57:14 UTC (rev 22909)
+++ xfcalendar/trunk/sounds/Makefile.am 2006-08-27 20:02:22 UTC (rev 22910)
@@ -2,4 +2,10 @@
 soundsdir=$(datadir)/$(PACKAGE)/sounds
 sounds_DATA=\
  KDE_Beep_Digital_1.ogg \
- KDE_Beep_Digital_2.ogg
+ KDE_Beep_Digital_2.ogg \
+ Boiling.wav \
+ Knock.wav \
+ Phone.wav \
+ Spo.wav \
+ Tear.wav \
+ Wall_c.wav

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] r22911 - xfcalendar/trunk/sounds

2006-08-27 Thread Juha Kautto
Author: juha
Date: 2006-08-27 20:03:55 + (Sun, 27 Aug 2006)
New Revision: 22911

Added:
   xfcalendar/trunk/sounds/Boiling.wav
   xfcalendar/trunk/sounds/Knock.wav
   xfcalendar/trunk/sounds/Phone.wav
   xfcalendar/trunk/sounds/Spo.wav
   xfcalendar/trunk/sounds/Tear.wav
   xfcalendar/trunk/sounds/Wall_c.wav
Log:
need to add those sound files also.


Added: xfcalendar/trunk/sounds/Boiling.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Boiling.wav
___
Name: svn:mime-type
   + application/octet-stream

Added: xfcalendar/trunk/sounds/Knock.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Knock.wav
___
Name: svn:mime-type
   + application/octet-stream

Added: xfcalendar/trunk/sounds/Phone.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Phone.wav
___
Name: svn:mime-type
   + application/octet-stream

Added: xfcalendar/trunk/sounds/Spo.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Spo.wav
___
Name: svn:mime-type
   + application/octet-stream

Added: xfcalendar/trunk/sounds/Tear.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Tear.wav
___
Name: svn:mime-type
   + application/octet-stream

Added: xfcalendar/trunk/sounds/Wall_c.wav
===
(Binary files differ)


Property changes on: xfcalendar/trunk/sounds/Wall_c.wav
___
Name: svn:mime-type
   + application/octet-stream

___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits