aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 227971c4ab..4569385566 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-01 Federico Mena Quintero <federico@ximian.com>
+
+ * gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog):
+ Set the window state to sticky. Thanks to Peter Teichman for the
+ suggestion.
+
2001-10-01 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c (local_record_from_comp):
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c
index 2a11026f23..665419241f 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.c
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c
@@ -27,6 +27,7 @@
#include <gtk/gtkwindow.h>
#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
+#include <libgnomeui/gnome-winhints.h>
#include <glade/glade.h>
#include <gal/widgets/e-unicode.h>
#include "alarm-notify-dialog.h"
@@ -301,6 +302,11 @@ alarm_notify_dialog (time_t trigger, time_t occur_start, time_t occur_end,
/* Run! */
+ if (!GTK_WIDGET_REALIZED (an->dialog))
+ gtk_widget_realize (an->dialog);
+
+ gnome_win_hints_set_state (an->dialog, WIN_STATE_STICKY);
+
gtk_widget_show (an->dialog);
return TRUE;
}