[Xfce4-commits] r24045 - xfcalendar/trunk/src
Juha Kautto
juha at xfce.org
Mon Dec 4 20:10:36 CET 2006
Author: juha
Date: 2006-12-04 19:10:35 +0000 (Mon, 04 Dec 2006)
New Revision: 24045
Modified:
xfcalendar/trunk/src/appointment.c
Log:
added missing revert/duplicate menuitem sensitiviness settings.
Modified: xfcalendar/trunk/src/appointment.c
===================================================================
--- xfcalendar/trunk/src/appointment.c 2006-12-04 16:28:14 UTC (rev 24044)
+++ xfcalendar/trunk/src/appointment.c 2006-12-04 19:10:35 UTC (rev 24045)
@@ -135,6 +135,7 @@
if (!apptw->appointment_changed) {
apptw->appointment_changed = TRUE;
gtk_widget_set_sensitive(apptw->appRevert, TRUE);
+ gtk_widget_set_sensitive(apptw->appFileRevert_menuitem, TRUE);
}
}
@@ -144,6 +145,7 @@
if (apptw->appointment_changed) {
apptw->appointment_changed = FALSE;
gtk_widget_set_sensitive(apptw->appRevert, FALSE);
+ gtk_widget_set_sensitive(apptw->appFileRevert_menuitem, FALSE);
}
}
@@ -652,6 +654,8 @@
if (ok) {
apptw->appointment_add = FALSE;
gtk_widget_set_sensitive(apptw->appDuplicate, TRUE);
+ gtk_widget_set_sensitive(apptw->appFileDuplicate_menuitem
+ , TRUE);
g_message("Orage **: Added: %s", apptw->xf_uid);
}
else
@@ -1191,6 +1195,8 @@
/* we only want to enable duplication if we are working with an old
* existing app (=not adding new) */
gtk_widget_set_sensitive(apptw->appDuplicate, !apptw->appointment_add);
+ gtk_widget_set_sensitive(apptw->appFileDuplicate_menuitem
+ , !apptw->appointment_add);
/* window title */
gtk_window_set_title(GTK_WINDOW(apptw->appWindow)
More information about the Xfce4-commits
mailing list