From e62619554adc0caa28bc549721727c71ed651153 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 27 Jun 2003 08:59:35 +0000 Subject: Fixes #44719 2003-06-25 Rodrigo Moya Fixes #44719 * gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog): use gtk_window_set_icon_from_file to set the window's icon and implemented the code to make the window sticky with GTK 2.x API. svn path=/trunk/; revision=21559 --- calendar/gui/alarm-notify/alarm-notify-dialog.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'calendar/gui/alarm-notify/alarm-notify-dialog.c') diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c index f128701708..203fa39cb4 100644 --- a/calendar/gui/alarm-notify/alarm-notify-dialog.c +++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c @@ -396,11 +396,8 @@ alarm_notify_dialog (time_t trigger, time_t occur_start, time_t occur_end, if (!GTK_WIDGET_REALIZED (an->dialog)) gtk_widget_realize (an->dialog); -#if 0 - gnome_win_hints_set_state (an->dialog, WIN_STATE_STICKY); - gnome_win_hints_set_layer (an->dialog, WIN_LAYER_ONTOP); - gnome_window_icon_set_from_file (GTK_WINDOW (an->dialog), EVOLUTION_IMAGESDIR "/alarm.png"); -#endif + gtk_window_stick (GTK_WINDOW (an->dialog)); + gtk_window_set_icon_from_file (GTK_WINDOW (an->dialog), EVOLUTION_IMAGESDIR "/alarm.png", NULL); gtk_widget_show (an->dialog); return an; -- cgit v1.2.3