aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-02 03:35:19 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-02 03:35:19 +0800
commit6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e (patch)
tree620b7f0bf1211728ec21979ada4516d4ae5c4024 /calendar/gui
parentf3730d9037ce7c958b964d84212fe9ac3699cedc (diff)
downloadgsoc2013-evolution-6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e.tar.gz
gsoc2013-evolution-6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e.tar.zst
gsoc2013-evolution-6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e.zip
Set the window state to sticky. Thanks to Peter Teichman for the
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. svn path=/trunk/; revision=13275
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c6
1 files changed, 6 insertions, 0 deletions
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;
}