diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-10-02 03:35:19 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-10-02 03:35:19 +0800 |
commit | 6b4869002b3cfac1fa5a6f14f1054aaf29c0ef2e (patch) | |
tree | 620b7f0bf1211728ec21979ada4516d4ae5c4024 | |
parent | f3730d9037ce7c958b964d84212fe9ac3699cedc (diff) | |
download | gsoc2013-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
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/alarm-notify/alarm-notify-dialog.c | 6 |
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; } |