Author: juha
Date: 2007-01-25 22:10:17 +0000 (Thu, 25 Jan 2007)
New Revision: 24759

Modified:
   xfcalendar/trunk/configure.in.in
   xfcalendar/trunk/src/appointment.c
Log:
fix bug 2811.
change field before save so that spin buttons activate always.


Modified: xfcalendar/trunk/configure.in.in
===================================================================
--- xfcalendar/trunk/configure.in.in    2007-01-25 21:24:11 UTC (rev 24758)
+++ xfcalendar/trunk/configure.in.in    2007-01-25 22:10:17 UTC (rev 24759)
@@ -11,7 +11,7 @@
 dnl Version information
 m4_define([orage_version_major], [4])
 m4_define([orage_version_minor], [4])
-m4_define([orage_version_micro], [0])
+m4_define([orage_version_micro], [1])
 m4_define([orage_version_nano], [])  dnl leave this empty to have no nano 
version
 m4_define([orage_version_tag], [])
 m4_define([orage_version], 
[orage_version_major().orage_version_minor().orage_version_micro()ifelse(orage_version_nano(),
 [], [], [.orage_version_nano()])orage_version_tag()])

Modified: xfcalendar/trunk/src/appointment.c
===================================================================
--- xfcalendar/trunk/src/appointment.c  2007-01-25 21:24:11 UTC (rev 24758)
+++ xfcalendar/trunk/src/appointment.c  2007-01-25 22:10:17 UTC (rev 24759)
@@ -508,6 +508,18 @@
     gchar starttime[6], endtime[6];
     gint i;
 
+    /* Next line is fix for bug 2811.
+     * We need to make sure spin buttons do not have values which are not
+     * yet updated = visible.
+     * gtk_spin_button_update call would do it, but it seems to cause
+     * crash if done in on_app_spin_button_changed_cb and here we should
+     * either do it for all spin fields, which takes too many lines of code.
+     * if (GTK_WIDGET_HAS_FOCUS(apptw->StartTime_spin_hh))
+     *      gtk_spin_button_update;
+     * So we just change the focus field and then spin button value gets set.
+     * It would be nice to not to have to change the field though.
+     */
+    gtk_widget_grab_focus(apptw->appTitle_entry);
     /*Get the title */
     appt->title = g_strdup(gtk_entry_get_text(
             (GtkEntry *)apptw->appTitle_entry));

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

Reply via email to