From 6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 1 Oct 2001 19:35:19 +0000 Subject: Set the window state to sticky. Thanks to Peter Teichman for the 2001-10-01 Federico Mena Quintero * gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog): Set the window state to sticky. Thanks to Peter Teichman for the suggestion. svn path=/trunk/; revision=13275 --- calendar/ChangeLog | 6 ++++++ calendar/gui/alarm-notify/alarm-notify-dialog.c | 6 ++++++ 2 files changed, 12 insertions(+) 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 + + * 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 * 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 #include #include +#include #include #include #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; } -- cgit v1.2.3