annotate src/alarm/interface.c @ 946:2d06a4e9b032 trunk

[svn] - use a g_cond_wait() to ensure curl has started up before we try to read.
author nenolod
date Thu, 12 Apr 2007 13:22:28 -0700
parents 8b343e9684b5
children e3b27548e45f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1 /*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
3 */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
4
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
5 #ifdef HAVE_CONFIG_H
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
6 # include <config.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
7 #endif
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
8
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
9 #include <sys/types.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
10 #include <sys/stat.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
11 #include <unistd.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
12 #include <string.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
13
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
14 #include <gdk/gdkkeysyms.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
15 #include <gtk/gtk.h>
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
16
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
17 #include "callbacks.h"
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
18 #include "interface.h"
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
19 #include "support.h"
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
20
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
21 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
22 create_about_dialog (void)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
23 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
24 GtkWidget *about_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
25 GtkWidget *dialog_vbox2;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
26 GtkWidget *frame6;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
27 GtkWidget *label18;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
28 GtkWidget *dialog_action_area2;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
29 GtkWidget *close;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
30
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
31 about_dialog = gtk_dialog_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
32 gtk_widget_set_name (about_dialog, "about_dialog");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
33 gtk_object_set_data (GTK_OBJECT (about_dialog), "about_dialog", about_dialog);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
34 gtk_window_set_title (GTK_WINDOW (about_dialog), "About XMMS Alarm");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
35 /*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
36 * GTK2 hack
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
37 * GTK_WINDOW (about_dialog)->type = GTK_WINDOW_DIALOG;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
38 */
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
39 GTK_WINDOW (about_dialog)->type = GTK_WINDOW_TOPLEVEL;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
40 gtk_window_set_policy (GTK_WINDOW (about_dialog), FALSE, FALSE, TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
41
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
42 dialog_vbox2 = GTK_DIALOG (about_dialog)->vbox;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
43 gtk_widget_set_name (dialog_vbox2, "dialog_vbox2");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
44 gtk_object_set_data (GTK_OBJECT (about_dialog), "dialog_vbox2", dialog_vbox2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
45 gtk_widget_show (dialog_vbox2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
46
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
47 frame6 = gtk_frame_new ("XMMS Alarm");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
48 gtk_widget_set_name (frame6, "frame6");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
49 gtk_widget_ref (frame6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
50 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "frame6", frame6,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
51 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
52 gtk_widget_show (frame6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
53 gtk_box_pack_start (GTK_BOX (dialog_vbox2), frame6, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
54 gtk_container_set_border_width (GTK_CONTAINER (frame6), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
55
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
56 label18 = gtk_label_new ("An XMMS plugin which can be used\nto start playing at a certain time.\n\nSend all complaints to:\nAdam Feakin <adamf@snika.uklinux.net>\nDaniel Stodden <stodden@in.tum.de>\n\nhttp://www.snika.uklinux.net/xmms-alarm/");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
57 gtk_widget_set_name (label18, "label18");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
58 gtk_widget_ref (label18);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
59 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "label18", label18,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
60 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
61 gtk_widget_show (label18);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
62 gtk_container_add (GTK_CONTAINER (frame6), label18);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
63 gtk_misc_set_padding (GTK_MISC (label18), 10, 20);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
64
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
65 dialog_action_area2 = GTK_DIALOG (about_dialog)->action_area;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
66 gtk_widget_set_name (dialog_action_area2, "dialog_action_area2");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
67 gtk_object_set_data (GTK_OBJECT (about_dialog), "dialog_action_area2", dialog_action_area2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
68 gtk_widget_show (dialog_action_area2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
69 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area2), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
70
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
71 close = gtk_button_new_with_label ("Close");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
72 gtk_widget_set_name (close, "close");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
73 gtk_widget_ref (close);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
74 gtk_object_set_data_full (GTK_OBJECT (about_dialog), "close", close,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
75 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
76 gtk_widget_show (close);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
77 gtk_box_pack_start (GTK_BOX (dialog_action_area2), close, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
78 GTK_WIDGET_SET_FLAGS (close, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
79
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
80 gtk_signal_connect_object (GTK_OBJECT (close), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
81 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
82 GTK_OBJECT (about_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
83
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
84 gtk_widget_grab_focus (close);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
85 gtk_widget_grab_default (close);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
86 return about_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
87 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
88
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
89 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
90 create_alarm_dialog (void)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
91 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
92 GtkWidget *alarm_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
93 GtkWidget *dialog_vbox3;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
94 GtkWidget *label19;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
95 GtkWidget *dialog_action_area3;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
96 GtkWidget *button9;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
97
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
98 alarm_dialog = gtk_dialog_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
99 gtk_widget_set_name (alarm_dialog, "alarm_dialog");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
100 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "alarm_dialog", alarm_dialog);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
101 gtk_window_set_title (GTK_WINDOW (alarm_dialog), "Alarm");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
102 gtk_window_set_policy (GTK_WINDOW (alarm_dialog), FALSE, FALSE, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
103
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
104 dialog_vbox3 = GTK_DIALOG (alarm_dialog)->vbox;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
105 gtk_widget_set_name (dialog_vbox3, "dialog_vbox3");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
106 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "dialog_vbox3", dialog_vbox3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
107 gtk_widget_show (dialog_vbox3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
108
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
109 label19 = gtk_label_new ("This is your wakeup call.");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
110 gtk_widget_set_name (label19, "label19");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
111 gtk_widget_ref (label19);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
112 gtk_object_set_data_full (GTK_OBJECT (alarm_dialog), "label19", label19,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
113 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
114 gtk_widget_show (label19);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
115 gtk_box_pack_start (GTK_BOX (dialog_vbox3), label19, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
116 gtk_misc_set_padding (GTK_MISC (label19), 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
117
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
118 dialog_action_area3 = GTK_DIALOG (alarm_dialog)->action_area;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
119 gtk_widget_set_name (dialog_action_area3, "dialog_action_area3");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
120 gtk_object_set_data (GTK_OBJECT (alarm_dialog), "dialog_action_area3", dialog_action_area3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
121 gtk_widget_show (dialog_action_area3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
122 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area3), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
123
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
124 button9 = gtk_button_new_with_label ("OK");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
125 gtk_widget_set_name (button9, "button9");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
126 gtk_widget_ref (button9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
127 gtk_object_set_data_full (GTK_OBJECT (alarm_dialog), "button9", button9,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
128 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
129 gtk_widget_show (button9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
130 gtk_box_pack_start (GTK_BOX (dialog_action_area3), button9, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
131 GTK_WIDGET_SET_FLAGS (button9, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
132
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
133 gtk_signal_connect (GTK_OBJECT (button9), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
134 GTK_SIGNAL_FUNC (alarm_stop_cancel),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
135 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
136 gtk_signal_connect_object (GTK_OBJECT (button9), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
137 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
138 GTK_OBJECT (alarm_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
139
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
140 gtk_widget_grab_focus (button9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
141 gtk_widget_grab_default (button9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
142 return alarm_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
143 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
144
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
145 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
146 create_playlist_fileselection (void)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
147 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
148 GtkWidget *playlist_fileselection;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
149 GtkWidget *ok_button1;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
150 GtkWidget *cancel_button1;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
151
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
152 playlist_fileselection = gtk_file_selection_new ("Select Playlist");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
153 gtk_widget_set_name (playlist_fileselection, "playlist_fileselection");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
154 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "playlist_fileselection", playlist_fileselection);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
155 gtk_container_set_border_width (GTK_CONTAINER (playlist_fileselection), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
156 gtk_window_set_modal (GTK_WINDOW (playlist_fileselection), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
157
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
158 ok_button1 = GTK_FILE_SELECTION (playlist_fileselection)->ok_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
159 gtk_widget_set_name (ok_button1, "ok_button1");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
160 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "ok_button1", ok_button1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
161 gtk_widget_show (ok_button1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
162 GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
163
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
164 cancel_button1 = GTK_FILE_SELECTION (playlist_fileselection)->cancel_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
165 gtk_widget_set_name (cancel_button1, "cancel_button1");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
166 gtk_object_set_data (GTK_OBJECT (playlist_fileselection), "cancel_button1", cancel_button1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
167 gtk_widget_show (cancel_button1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
168 GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
169
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
170 gtk_signal_connect (GTK_OBJECT (ok_button1), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
171 GTK_SIGNAL_FUNC (alarm_store_playlistname),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
172 playlist_fileselection);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
173 gtk_signal_connect_object (GTK_OBJECT (ok_button1), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
174 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
175 GTK_OBJECT (playlist_fileselection));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
176 gtk_signal_connect_object (GTK_OBJECT (cancel_button1), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
177 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
178 GTK_OBJECT (playlist_fileselection));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
179
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
180 return playlist_fileselection;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
181 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
182
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
183 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
184 create_warning_dialog (void)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
185 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
186 GtkWidget *warning_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
187 GtkWidget *dialog_vbox4;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
188 GtkWidget *frame9;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
189 GtkWidget *label70;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
190 GtkWidget *dialog_action_area4;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
191 GtkWidget *button10;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
192
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
193 warning_dialog = gtk_dialog_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
194 gtk_widget_set_name (warning_dialog, "warning_dialog");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
195 gtk_object_set_data (GTK_OBJECT (warning_dialog), "warning_dialog", warning_dialog);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
196 gtk_window_set_title (GTK_WINDOW (warning_dialog), "Sorry");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
197 gtk_window_set_policy (GTK_WINDOW (warning_dialog), FALSE, FALSE, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
198
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
199 dialog_vbox4 = GTK_DIALOG (warning_dialog)->vbox;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
200 gtk_widget_set_name (dialog_vbox4, "dialog_vbox4");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
201 gtk_object_set_data (GTK_OBJECT (warning_dialog), "dialog_vbox4", dialog_vbox4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
202 gtk_widget_show (dialog_vbox4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
203
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
204 frame9 = gtk_frame_new ("Warning");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
205 gtk_widget_set_name (frame9, "frame9");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
206 gtk_widget_ref (frame9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
207 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "frame9", frame9,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
208 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
209 gtk_widget_show (frame9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
210 gtk_box_pack_start (GTK_BOX (dialog_vbox4), frame9, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
211 gtk_container_set_border_width (GTK_CONTAINER (frame9), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
212
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
213 label70 = gtk_label_new ("For safety reasons the \"quiet\" time must be at least 65 seconds longer than the fading time, it must also be more than 10 seconds. This basically means that there is a bug in the code and until I find a way of really fixing it this message will appear :)\n\nYour fading settings have NOT been saved\n\n--\nAdam");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
214 gtk_widget_set_name (label70, "label70");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
215 gtk_widget_ref (label70);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
216 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "label70", label70,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
217 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
218 gtk_widget_show (label70);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
219 gtk_container_add (GTK_CONTAINER (frame9), label70);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
220 gtk_label_set_line_wrap (GTK_LABEL (label70), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
221 gtk_misc_set_padding (GTK_MISC (label70), 10, 20);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
222
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
223 dialog_action_area4 = GTK_DIALOG (warning_dialog)->action_area;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
224 gtk_widget_set_name (dialog_action_area4, "dialog_action_area4");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
225 gtk_object_set_data (GTK_OBJECT (warning_dialog), "dialog_action_area4", dialog_action_area4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
226 gtk_widget_show (dialog_action_area4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
227 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area4), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
228
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
229 button10 = gtk_button_new_with_label ("Oh Well");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
230 gtk_widget_set_name (button10, "button10");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
231 gtk_widget_ref (button10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
232 gtk_object_set_data_full (GTK_OBJECT (warning_dialog), "button10", button10,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
233 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
234 gtk_widget_show (button10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
235 gtk_box_pack_start (GTK_BOX (dialog_action_area4), button10, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
236 GTK_WIDGET_SET_FLAGS (button10, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
237
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
238 gtk_signal_connect_object (GTK_OBJECT (button10), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
239 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
240 GTK_OBJECT (warning_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
241
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
242 gtk_widget_grab_focus (button10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
243 gtk_widget_grab_default (button10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
244 return warning_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
245 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
246
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
247 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
248 create_config_dialog (void)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
249 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
250 GtkWidget *config_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
251 GtkWidget *dialog_vbox5;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
252 GtkWidget *notebook1;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
253 GtkWidget *frame10;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
254 GtkWidget *table3;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
255 GtkWidget *hbox21;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
256 GtkObject *stop_h_spin_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
257 GtkWidget *stop_h_spin;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
258 GtkWidget *label75;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
259 GtkWidget *hbox22;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
260 GtkObject *alarm_h_spin_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
261 GtkWidget *alarm_h_spin;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
262 GtkWidget *label76;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
263 GtkWidget *hbox23;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
264 GtkObject *alarm_m_spin_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
265 GtkWidget *alarm_m_spin;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
266 GtkWidget *label77;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
267 GtkWidget *hbox24;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
268 GtkObject *stop_m_spin_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
269 GtkWidget *stop_m_spin;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
270 GtkWidget *label78;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
271 GtkWidget *stop_checkb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
272 GtkWidget *label79;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
273 GtkWidget *label80;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
274 GtkWidget *label71;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
275 GtkWidget *frame15;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
276 GtkWidget *table4;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
277 GtkWidget *hbox31;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
278 GtkWidget *mon_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
279 GtkObject *mon_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
280 GtkWidget *mon_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
281 GtkWidget *label89;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
282 GtkObject *mon_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
283 GtkWidget *mon_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
284 GtkWidget *hbox32;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
285 GtkWidget *tue_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
286 GtkObject *tue_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
287 GtkWidget *tue_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
288 GtkWidget *label90;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
289 GtkObject *tue_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
290 GtkWidget *tue_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
291 GtkWidget *hbox33;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
292 GtkWidget *wed_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
293 GtkObject *wed_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
294 GtkWidget *wed_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
295 GtkWidget *label91;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
296 GtkObject *wed_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
297 GtkWidget *wed_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
298 GtkWidget *hbox34;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
299 GtkWidget *thu_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
300 GtkObject *thu_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
301 GtkWidget *thu_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
302 GtkWidget *label92;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
303 GtkObject *thu_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
304 GtkWidget *thu_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
305 GtkWidget *hbox35;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
306 GtkWidget *fri_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
307 GtkObject *fri_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
308 GtkWidget *fri_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
309 GtkWidget *label93;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
310 GtkObject *fri_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
311 GtkWidget *fri_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
312 GtkWidget *hbox36;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
313 GtkWidget *sat_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
314 GtkObject *sat_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
315 GtkWidget *sat_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
316 GtkWidget *label94;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
317 GtkObject *sat_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
318 GtkWidget *sat_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
319 GtkWidget *hbox37;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
320 GtkWidget *sun_def;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
321 GtkObject *sun_h_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
322 GtkWidget *sun_h;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
323 GtkWidget *label95;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
324 GtkObject *sun_m_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
325 GtkWidget *sun_m;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
326 GtkWidget *label87;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
327 GtkWidget *label88;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
328 GtkWidget *tue_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
329 GtkWidget *wed_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
330 GtkWidget *thu_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
331 GtkWidget *fri_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
332 GtkWidget *sat_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
333 GtkWidget *sun_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
334 GtkWidget *mon_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
335 GtkWidget *label72;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
336 GtkWidget *vbox8;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
337 GtkWidget *frame11;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
338 GtkWidget *alignment10;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
339 GtkWidget *hbox25;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
340 GtkObject *fading_spin_adj;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
341 GtkWidget *fading_spin;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
342 GtkWidget *label81;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
343 GtkWidget *frame12;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
344 GtkWidget *vbox9;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
345 GtkWidget *alignment11;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
346 GtkWidget *current_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
347 GtkWidget *label82;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
348 GtkWidget *hbox26;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
349 GtkWidget *quiet_vol_scale;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
350 GtkWidget *label83;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
351 GtkWidget *hseparator2;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
352 GtkWidget *label84;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
353 GtkWidget *hbox27;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
354 GtkWidget *vol_scale;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
355 GtkWidget *label85;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
356 GtkWidget *label73;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
357 GtkWidget *vbox10;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
358 GtkWidget *frame13;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
359 GtkWidget *hbox28;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
360 GtkWidget *cmd_entry;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
361 GtkWidget *cmd_checkb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
362 GtkWidget *frame14;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
363 GtkWidget *hbox29;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
364 GtkWidget *playlist;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
365 GtkWidget *playlist_browse_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
366 GtkWidget *frame18;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
367 GtkWidget *hbox38;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
368 GtkWidget *reminder_cb;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
369 GtkWidget *reminder_text;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
370 GtkWidget *label74;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
371 GtkWidget *frame16;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
372 GtkWidget *scrolledwindow1;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
373 GtkWidget *text1;
134
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
374 GtkTextBuffer *text1buffer;
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
375 GtkTextIter iter;
121
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
376 GtkWidget *label86;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
377 GtkWidget *dialog_action_area5;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
378 GtkWidget *hbox20;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
379 GtkWidget *ok_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
380 GtkWidget *cancel_button;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
381 GtkTooltips *tooltips;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
382
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
383 tooltips = gtk_tooltips_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
384
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
385 config_dialog = gtk_dialog_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
386 gtk_widget_set_name (config_dialog, "config_dialog");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
387 gtk_object_set_data (GTK_OBJECT (config_dialog), "config_dialog", config_dialog);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
388 gtk_window_set_title (GTK_WINDOW (config_dialog), "Alarm Settings");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
389 gtk_window_set_policy (GTK_WINDOW (config_dialog), FALSE, FALSE, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
390
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
391 dialog_vbox5 = GTK_DIALOG (config_dialog)->vbox;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
392 gtk_widget_set_name (dialog_vbox5, "dialog_vbox5");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
393 gtk_object_set_data (GTK_OBJECT (config_dialog), "dialog_vbox5", dialog_vbox5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
394 gtk_widget_show (dialog_vbox5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
395
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
396 notebook1 = gtk_notebook_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
397 gtk_widget_set_name (notebook1, "notebook1");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
398 gtk_widget_ref (notebook1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
399 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "notebook1", notebook1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
400 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
401 gtk_widget_show (notebook1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
402 gtk_box_pack_start (GTK_BOX (dialog_vbox5), notebook1, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
403
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
404 frame10 = gtk_frame_new ("Time");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
405 gtk_widget_set_name (frame10, "frame10");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
406 gtk_widget_ref (frame10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
407 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame10", frame10,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
408 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
409 gtk_widget_show (frame10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
410 gtk_container_add (GTK_CONTAINER (notebook1), frame10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
411 gtk_container_set_border_width (GTK_CONTAINER (frame10), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
412
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
413 table3 = gtk_table_new (2, 3, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
414 gtk_widget_set_name (table3, "table3");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
415 gtk_widget_ref (table3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
416 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "table3", table3,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
417 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
418 gtk_widget_show (table3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
419 gtk_container_add (GTK_CONTAINER (frame10), table3);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
420 gtk_container_set_border_width (GTK_CONTAINER (table3), 8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
421 gtk_table_set_row_spacings (GTK_TABLE (table3), 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
422 gtk_table_set_col_spacings (GTK_TABLE (table3), 15);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
423
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
424 hbox21 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
425 gtk_widget_set_name (hbox21, "hbox21");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
426 gtk_widget_ref (hbox21);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
427 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox21", hbox21,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
428 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
429 gtk_widget_show (hbox21);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
430 gtk_table_attach (GTK_TABLE (table3), hbox21, 1, 2, 1, 2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
431 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
432 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
433
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
434 stop_h_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
435 stop_h_spin = gtk_spin_button_new (GTK_ADJUSTMENT (stop_h_spin_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
436 gtk_widget_set_name (stop_h_spin, "stop_h_spin");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
437 gtk_widget_ref (stop_h_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
438 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_h_spin", stop_h_spin,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
439 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
440 gtk_widget_show (stop_h_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
441 gtk_box_pack_start (GTK_BOX (hbox21), stop_h_spin, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
442 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (stop_h_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
443 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (stop_h_spin), GTK_UPDATE_IF_VALID);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
444
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
445 label75 = gtk_label_new ("hours");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
446 gtk_widget_set_name (label75, "label75");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
447 gtk_widget_ref (label75);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
448 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label75", label75,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
449 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
450 gtk_widget_show (label75);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
451 gtk_box_pack_start (GTK_BOX (hbox21), label75, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
452
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
453 hbox22 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
454 gtk_widget_set_name (hbox22, "hbox22");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
455 gtk_widget_ref (hbox22);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
456 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox22", hbox22,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
457 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
458 gtk_widget_show (hbox22);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
459 gtk_table_attach (GTK_TABLE (table3), hbox22, 1, 2, 0, 1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
460 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
461 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
462
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
463 alarm_h_spin_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
464 alarm_h_spin = gtk_spin_button_new (GTK_ADJUSTMENT (alarm_h_spin_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
465 gtk_widget_set_name (alarm_h_spin, "alarm_h_spin");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
466 gtk_widget_ref (alarm_h_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
467 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alarm_h_spin", alarm_h_spin,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
468 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
469 gtk_widget_show (alarm_h_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
470 gtk_box_pack_start (GTK_BOX (hbox22), alarm_h_spin, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
471 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (alarm_h_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
472 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (alarm_h_spin), GTK_UPDATE_IF_VALID);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
473 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (alarm_h_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
474
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
475 label76 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
476 gtk_widget_set_name (label76, "label76");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
477 gtk_widget_ref (label76);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
478 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label76", label76,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
479 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
480 gtk_widget_show (label76);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
481 gtk_box_pack_start (GTK_BOX (hbox22), label76, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
482 gtk_misc_set_padding (GTK_MISC (label76), 5, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
483
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
484 hbox23 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
485 gtk_widget_set_name (hbox23, "hbox23");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
486 gtk_widget_ref (hbox23);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
487 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox23", hbox23,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
488 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
489 gtk_widget_show (hbox23);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
490 gtk_table_attach (GTK_TABLE (table3), hbox23, 2, 3, 0, 1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
491 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
492 (GtkAttachOptions) (GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
493
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
494 alarm_m_spin_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
495 alarm_m_spin = gtk_spin_button_new (GTK_ADJUSTMENT (alarm_m_spin_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
496 gtk_widget_set_name (alarm_m_spin, "alarm_m_spin");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
497 gtk_widget_ref (alarm_m_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
498 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alarm_m_spin", alarm_m_spin,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
499 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
500 gtk_widget_show (alarm_m_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
501 gtk_box_pack_start (GTK_BOX (hbox23), alarm_m_spin, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
502 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (alarm_m_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
503 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (alarm_m_spin), GTK_UPDATE_IF_VALID);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
504 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (alarm_m_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
505
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
506 label77 = gtk_label_new ("h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
507 gtk_widget_set_name (label77, "label77");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
508 gtk_widget_ref (label77);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
509 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label77", label77,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
510 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
511 gtk_widget_show (label77);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
512 gtk_box_pack_start (GTK_BOX (hbox23), label77, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
513
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
514 hbox24 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
515 gtk_widget_set_name (hbox24, "hbox24");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
516 gtk_widget_ref (hbox24);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
517 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox24", hbox24,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
518 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
519 gtk_widget_show (hbox24);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
520 gtk_table_attach (GTK_TABLE (table3), hbox24, 2, 3, 1, 2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
521 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
522 (GtkAttachOptions) (GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
523
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
524 stop_m_spin_adj = gtk_adjustment_new (0, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
525 stop_m_spin = gtk_spin_button_new (GTK_ADJUSTMENT (stop_m_spin_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
526 gtk_widget_set_name (stop_m_spin, "stop_m_spin");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
527 gtk_widget_ref (stop_m_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
528 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_m_spin", stop_m_spin,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
529 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
530 gtk_widget_show (stop_m_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
531 gtk_box_pack_start (GTK_BOX (hbox24), stop_m_spin, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
532 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (stop_m_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
533 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (stop_m_spin), GTK_UPDATE_IF_VALID);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
534 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (stop_m_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
535
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
536 label78 = gtk_label_new ("minutes");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
537 gtk_widget_set_name (label78, "label78");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
538 gtk_widget_ref (label78);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
539 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label78", label78,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
540 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
541 gtk_widget_show (label78);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
542 gtk_box_pack_start (GTK_BOX (hbox24), label78, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
543
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
544 stop_checkb = gtk_check_button_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
545 gtk_widget_set_name (stop_checkb, "stop_checkb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
546 gtk_widget_ref (stop_checkb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
547 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "stop_checkb", stop_checkb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
548 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
549 gtk_widget_show (stop_checkb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
550 gtk_table_attach (GTK_TABLE (table3), stop_checkb, 0, 1, 1, 2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
551 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
552 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
553
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
554 label79 = gtk_label_new ("Quiet after:");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
555 gtk_widget_set_name (label79, "label79");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
556 gtk_widget_ref (label79);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
557 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label79", label79,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
558 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
559 gtk_widget_show (label79);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
560 gtk_container_add (GTK_CONTAINER (stop_checkb), label79);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
561 gtk_label_set_justify (GTK_LABEL (label79), GTK_JUSTIFY_LEFT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
562 gtk_misc_set_alignment (GTK_MISC (label79), 0, 0.5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
563
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
564 label80 = gtk_label_new ("Alarm at (default):");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
565 gtk_widget_set_name (label80, "label80");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
566 gtk_widget_ref (label80);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
567 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label80", label80,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
568 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
569 gtk_widget_show (label80);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
570 gtk_table_attach (GTK_TABLE (table3), label80, 0, 1, 0, 1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
571 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
572 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
573 gtk_label_set_justify (GTK_LABEL (label80), GTK_JUSTIFY_LEFT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
574 gtk_misc_set_alignment (GTK_MISC (label80), 0, 0.5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
575
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
576 label71 = gtk_label_new ("Time");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
577 gtk_widget_set_name (label71, "label71");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
578 gtk_widget_ref (label71);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
579 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label71", label71,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
580 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
581 gtk_widget_show (label71);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
582 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label71);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
583
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
584 frame15 = gtk_frame_new ("Choose the days for the alarm to come on");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
585 gtk_widget_set_name (frame15, "frame15");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
586 gtk_widget_ref (frame15);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
587 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame15", frame15,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
588 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
589 gtk_widget_show (frame15);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
590 gtk_container_add (GTK_CONTAINER (notebook1), frame15);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
591 gtk_container_set_border_width (GTK_CONTAINER (frame15), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
592
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
593 table4 = gtk_table_new (8, 2, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
594 gtk_widget_set_name (table4, "table4");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
595 gtk_widget_ref (table4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
596 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "table4", table4,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
597 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
598 gtk_widget_show (table4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
599 gtk_container_add (GTK_CONTAINER (frame15), table4);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
600 gtk_container_set_border_width (GTK_CONTAINER (table4), 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
601
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
602 hbox31 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
603 gtk_widget_set_name (hbox31, "hbox31");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
604 gtk_widget_ref (hbox31);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
605 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox31", hbox31,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
606 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
607 gtk_widget_show (hbox31);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
608 gtk_table_attach (GTK_TABLE (table4), hbox31, 1, 2, 1, 2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
609 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
610 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
611
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
612 mon_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
613 gtk_widget_set_name (mon_def, "mon_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
614 gtk_widget_ref (mon_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
615 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_def", mon_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
616 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
617 gtk_widget_show (mon_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
618 gtk_box_pack_start (GTK_BOX (hbox31), mon_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
619 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mon_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
620
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
621 mon_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
622 mon_h = gtk_spin_button_new (GTK_ADJUSTMENT (mon_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
623 gtk_widget_set_name (mon_h, "mon_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
624 gtk_widget_ref (mon_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
625 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_h", mon_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
626 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
627 gtk_widget_show (mon_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
628 gtk_box_pack_start (GTK_BOX (hbox31), mon_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
629 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (mon_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
630
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
631 label89 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
632 gtk_widget_set_name (label89, "label89");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
633 gtk_widget_ref (label89);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
634 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label89", label89,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
635 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
636 gtk_widget_show (label89);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
637 gtk_box_pack_start (GTK_BOX (hbox31), label89, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
638
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
639 mon_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
640 mon_m = gtk_spin_button_new (GTK_ADJUSTMENT (mon_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
641 gtk_widget_set_name (mon_m, "mon_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
642 gtk_widget_ref (mon_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
643 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_m", mon_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
644 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
645 gtk_widget_show (mon_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
646 gtk_box_pack_start (GTK_BOX (hbox31), mon_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
647 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (mon_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
648 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (mon_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
649
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
650 hbox32 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
651 gtk_widget_set_name (hbox32, "hbox32");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
652 gtk_widget_ref (hbox32);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
653 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox32", hbox32,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
654 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
655 gtk_widget_show (hbox32);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
656 gtk_table_attach (GTK_TABLE (table4), hbox32, 1, 2, 2, 3,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
657 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
658 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
659
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
660 tue_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
661 gtk_widget_set_name (tue_def, "tue_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
662 gtk_widget_ref (tue_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
663 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_def", tue_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
664 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
665 gtk_widget_show (tue_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
666 gtk_box_pack_start (GTK_BOX (hbox32), tue_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
667 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tue_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
668
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
669 tue_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
670 tue_h = gtk_spin_button_new (GTK_ADJUSTMENT (tue_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
671 gtk_widget_set_name (tue_h, "tue_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
672 gtk_widget_ref (tue_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
673 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_h", tue_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
674 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
675 gtk_widget_show (tue_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
676 gtk_box_pack_start (GTK_BOX (hbox32), tue_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
677 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tue_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
678
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
679 label90 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
680 gtk_widget_set_name (label90, "label90");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
681 gtk_widget_ref (label90);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
682 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label90", label90,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
683 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
684 gtk_widget_show (label90);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
685 gtk_box_pack_start (GTK_BOX (hbox32), label90, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
686
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
687 tue_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
688 tue_m = gtk_spin_button_new (GTK_ADJUSTMENT (tue_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
689 gtk_widget_set_name (tue_m, "tue_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
690 gtk_widget_ref (tue_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
691 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_m", tue_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
692 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
693 gtk_widget_show (tue_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
694 gtk_box_pack_start (GTK_BOX (hbox32), tue_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
695 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tue_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
696 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (tue_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
697
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
698 hbox33 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
699 gtk_widget_set_name (hbox33, "hbox33");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
700 gtk_widget_ref (hbox33);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
701 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox33", hbox33,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
702 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
703 gtk_widget_show (hbox33);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
704 gtk_table_attach (GTK_TABLE (table4), hbox33, 1, 2, 3, 4,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
705 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
706 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
707
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
708 wed_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
709 gtk_widget_set_name (wed_def, "wed_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
710 gtk_widget_ref (wed_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
711 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_def", wed_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
712 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
713 gtk_widget_show (wed_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
714 gtk_box_pack_start (GTK_BOX (hbox33), wed_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
715 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wed_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
716
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
717 wed_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
718 wed_h = gtk_spin_button_new (GTK_ADJUSTMENT (wed_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
719 gtk_widget_set_name (wed_h, "wed_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
720 gtk_widget_ref (wed_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
721 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_h", wed_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
722 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
723 gtk_widget_show (wed_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
724 gtk_box_pack_start (GTK_BOX (hbox33), wed_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
725 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wed_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
726
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
727 label91 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
728 gtk_widget_set_name (label91, "label91");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
729 gtk_widget_ref (label91);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
730 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label91", label91,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
731 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
732 gtk_widget_show (label91);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
733 gtk_box_pack_start (GTK_BOX (hbox33), label91, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
734
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
735 wed_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
736 wed_m = gtk_spin_button_new (GTK_ADJUSTMENT (wed_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
737 gtk_widget_set_name (wed_m, "wed_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
738 gtk_widget_ref (wed_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
739 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_m", wed_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
740 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
741 gtk_widget_show (wed_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
742 gtk_box_pack_start (GTK_BOX (hbox33), wed_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
743 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wed_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
744 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (wed_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
745
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
746 hbox34 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
747 gtk_widget_set_name (hbox34, "hbox34");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
748 gtk_widget_ref (hbox34);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
749 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox34", hbox34,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
750 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
751 gtk_widget_show (hbox34);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
752 gtk_table_attach (GTK_TABLE (table4), hbox34, 1, 2, 4, 5,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
753 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
754 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
755
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
756 thu_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
757 gtk_widget_set_name (thu_def, "thu_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
758 gtk_widget_ref (thu_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
759 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_def", thu_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
760 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
761 gtk_widget_show (thu_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
762 gtk_box_pack_start (GTK_BOX (hbox34), thu_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
763 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (thu_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
764
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
765 thu_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
766 thu_h = gtk_spin_button_new (GTK_ADJUSTMENT (thu_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
767 gtk_widget_set_name (thu_h, "thu_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
768 gtk_widget_ref (thu_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
769 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_h", thu_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
770 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
771 gtk_widget_show (thu_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
772 gtk_box_pack_start (GTK_BOX (hbox34), thu_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
773 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thu_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
774
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
775 label92 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
776 gtk_widget_set_name (label92, "label92");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
777 gtk_widget_ref (label92);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
778 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label92", label92,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
779 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
780 gtk_widget_show (label92);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
781 gtk_box_pack_start (GTK_BOX (hbox34), label92, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
782
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
783 thu_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
784 thu_m = gtk_spin_button_new (GTK_ADJUSTMENT (thu_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
785 gtk_widget_set_name (thu_m, "thu_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
786 gtk_widget_ref (thu_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
787 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_m", thu_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
788 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
789 gtk_widget_show (thu_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
790 gtk_box_pack_start (GTK_BOX (hbox34), thu_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
791 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thu_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
792 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (thu_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
793
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
794 hbox35 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
795 gtk_widget_set_name (hbox35, "hbox35");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
796 gtk_widget_ref (hbox35);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
797 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox35", hbox35,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
798 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
799 gtk_widget_show (hbox35);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
800 gtk_table_attach (GTK_TABLE (table4), hbox35, 1, 2, 5, 6,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
801 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
802 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
803
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
804 fri_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
805 gtk_widget_set_name (fri_def, "fri_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
806 gtk_widget_ref (fri_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
807 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_def", fri_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
808 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
809 gtk_widget_show (fri_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
810 gtk_box_pack_start (GTK_BOX (hbox35), fri_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
811 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fri_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
812
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
813 fri_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
814 fri_h = gtk_spin_button_new (GTK_ADJUSTMENT (fri_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
815 gtk_widget_set_name (fri_h, "fri_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
816 gtk_widget_ref (fri_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
817 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_h", fri_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
818 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
819 gtk_widget_show (fri_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
820 gtk_box_pack_start (GTK_BOX (hbox35), fri_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
821 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fri_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
822
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
823 label93 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
824 gtk_widget_set_name (label93, "label93");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
825 gtk_widget_ref (label93);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
826 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label93", label93,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
827 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
828 gtk_widget_show (label93);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
829 gtk_box_pack_start (GTK_BOX (hbox35), label93, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
830
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
831 fri_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
832 fri_m = gtk_spin_button_new (GTK_ADJUSTMENT (fri_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
833 gtk_widget_set_name (fri_m, "fri_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
834 gtk_widget_ref (fri_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
835 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_m", fri_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
836 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
837 gtk_widget_show (fri_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
838 gtk_box_pack_start (GTK_BOX (hbox35), fri_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
839 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fri_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
840 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (fri_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
841
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
842 hbox36 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
843 gtk_widget_set_name (hbox36, "hbox36");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
844 gtk_widget_ref (hbox36);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
845 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox36", hbox36,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
846 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
847 gtk_widget_show (hbox36);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
848 gtk_table_attach (GTK_TABLE (table4), hbox36, 1, 2, 6, 7,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
849 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
850 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
851
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
852 sat_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
853 gtk_widget_set_name (sat_def, "sat_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
854 gtk_widget_ref (sat_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
855 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_def", sat_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
856 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
857 gtk_widget_show (sat_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
858 gtk_box_pack_start (GTK_BOX (hbox36), sat_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
859 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sat_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
860
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
861 sat_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
862 sat_h = gtk_spin_button_new (GTK_ADJUSTMENT (sat_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
863 gtk_widget_set_name (sat_h, "sat_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
864 gtk_widget_ref (sat_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
865 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_h", sat_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
866 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
867 gtk_widget_show (sat_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
868 gtk_box_pack_start (GTK_BOX (hbox36), sat_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
869 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sat_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
870
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
871 label94 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
872 gtk_widget_set_name (label94, "label94");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
873 gtk_widget_ref (label94);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
874 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label94", label94,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
875 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
876 gtk_widget_show (label94);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
877 gtk_box_pack_start (GTK_BOX (hbox36), label94, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
878
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
879 sat_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
880 sat_m = gtk_spin_button_new (GTK_ADJUSTMENT (sat_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
881 gtk_widget_set_name (sat_m, "sat_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
882 gtk_widget_ref (sat_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
883 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_m", sat_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
884 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
885 gtk_widget_show (sat_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
886 gtk_box_pack_start (GTK_BOX (hbox36), sat_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
887 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sat_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
888 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (sat_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
889
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
890 hbox37 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
891 gtk_widget_set_name (hbox37, "hbox37");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
892 gtk_widget_ref (hbox37);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
893 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox37", hbox37,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
894 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
895 gtk_widget_show (hbox37);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
896 gtk_table_attach (GTK_TABLE (table4), hbox37, 1, 2, 7, 8,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
897 (GtkAttachOptions) (GTK_FILL),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
898 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
899
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
900 sun_def = gtk_check_button_new_with_label ("Default");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
901 gtk_widget_set_name (sun_def, "sun_def");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
902 gtk_widget_ref (sun_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
903 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_def", sun_def,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
904 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
905 gtk_widget_show (sun_def);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
906 gtk_box_pack_start (GTK_BOX (hbox37), sun_def, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
907 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sun_def), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
908
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
909 sun_h_adj = gtk_adjustment_new (6, 0, 23, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
910 sun_h = gtk_spin_button_new (GTK_ADJUSTMENT (sun_h_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
911 gtk_widget_set_name (sun_h, "sun_h");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
912 gtk_widget_ref (sun_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
913 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_h", sun_h,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
914 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
915 gtk_widget_show (sun_h);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
916 gtk_box_pack_start (GTK_BOX (hbox37), sun_h, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
917 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sun_h), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
918
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
919 label95 = gtk_label_new (":");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
920 gtk_widget_set_name (label95, "label95");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
921 gtk_widget_ref (label95);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
922 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label95", label95,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
923 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
924 gtk_widget_show (label95);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
925 gtk_box_pack_start (GTK_BOX (hbox37), label95, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
926
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
927 sun_m_adj = gtk_adjustment_new (30, 0, 59, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
928 sun_m = gtk_spin_button_new (GTK_ADJUSTMENT (sun_m_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
929 gtk_widget_set_name (sun_m, "sun_m");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
930 gtk_widget_ref (sun_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
931 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_m", sun_m,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
932 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
933 gtk_widget_show (sun_m);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
934 gtk_box_pack_start (GTK_BOX (hbox37), sun_m, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
935 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (sun_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
936 gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (sun_m), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
937
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
938 label87 = gtk_label_new ("Day");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
939 gtk_widget_set_name (label87, "label87");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
940 gtk_widget_ref (label87);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
941 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label87", label87,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
942 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
943 gtk_widget_show (label87);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
944 gtk_table_attach (GTK_TABLE (table4), label87, 0, 1, 0, 1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
945 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
946 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
947
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
948 label88 = gtk_label_new ("Time");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
949 gtk_widget_set_name (label88, "label88");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
950 gtk_widget_ref (label88);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
951 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label88", label88,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
952 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
953 gtk_widget_show (label88);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
954 gtk_table_attach (GTK_TABLE (table4), label88, 1, 2, 0, 1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
955 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
956 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
957
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
958 tue_cb = gtk_check_button_new_with_label ("Tuesday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
959 gtk_widget_set_name (tue_cb, "tue_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
960 gtk_widget_ref (tue_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
961 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "tue_cb", tue_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
962 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
963 gtk_widget_show (tue_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
964 gtk_table_attach (GTK_TABLE (table4), tue_cb, 0, 1, 2, 3,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
965 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
966 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
967 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tue_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
968
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
969 wed_cb = gtk_check_button_new_with_label ("Wednesday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
970 gtk_widget_set_name (wed_cb, "wed_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
971 gtk_widget_ref (wed_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
972 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "wed_cb", wed_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
973 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
974 gtk_widget_show (wed_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
975 gtk_table_attach (GTK_TABLE (table4), wed_cb, 0, 1, 3, 4,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
976 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
977 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
978 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wed_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
979
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
980 thu_cb = gtk_check_button_new_with_label ("Thursday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
981 gtk_widget_set_name (thu_cb, "thu_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
982 gtk_widget_ref (thu_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
983 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "thu_cb", thu_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
984 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
985 gtk_widget_show (thu_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
986 gtk_table_attach (GTK_TABLE (table4), thu_cb, 0, 1, 4, 5,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
987 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
988 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
989 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (thu_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
990
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
991 fri_cb = gtk_check_button_new_with_label ("Friday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
992 gtk_widget_set_name (fri_cb, "fri_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
993 gtk_widget_ref (fri_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
994 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fri_cb", fri_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
995 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
996 gtk_widget_show (fri_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
997 gtk_table_attach (GTK_TABLE (table4), fri_cb, 0, 1, 5, 6,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
998 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
999 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1000 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fri_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1001
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1002 sat_cb = gtk_check_button_new_with_label ("Saturday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1003 gtk_widget_set_name (sat_cb, "sat_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1004 gtk_widget_ref (sat_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1005 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sat_cb", sat_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1006 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1007 gtk_widget_show (sat_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1008 gtk_table_attach (GTK_TABLE (table4), sat_cb, 0, 1, 6, 7,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1009 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1010 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1011 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sat_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1012
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1013 sun_cb = gtk_check_button_new_with_label ("Sunday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1014 gtk_widget_set_name (sun_cb, "sun_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1015 gtk_widget_ref (sun_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1016 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "sun_cb", sun_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1017 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1018 gtk_widget_show (sun_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1019 gtk_table_attach (GTK_TABLE (table4), sun_cb, 0, 1, 7, 8,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1020 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1021 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1022
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1023 mon_cb = gtk_check_button_new_with_label ("Monday");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1024 gtk_widget_set_name (mon_cb, "mon_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1025 gtk_widget_ref (mon_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1026 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "mon_cb", mon_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1027 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1028 gtk_widget_show (mon_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1029 gtk_table_attach (GTK_TABLE (table4), mon_cb, 0, 1, 1, 2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1030 (GtkAttachOptions) (0),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1031 (GtkAttachOptions) (0), 0, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1032 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mon_cb), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1033
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1034 label72 = gtk_label_new ("Days");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1035 gtk_widget_set_name (label72, "label72");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1036 gtk_widget_ref (label72);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1037 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label72", label72,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1038 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1039 gtk_widget_show (label72);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1040 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label72);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1041
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1042 vbox8 = gtk_vbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1043 gtk_widget_set_name (vbox8, "vbox8");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1044 gtk_widget_ref (vbox8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1045 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox8", vbox8,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1046 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1047 gtk_widget_show (vbox8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1048 gtk_container_add (GTK_CONTAINER (notebook1), vbox8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1049
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1050 frame11 = gtk_frame_new ("Fading");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1051 gtk_widget_set_name (frame11, "frame11");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1052 gtk_widget_ref (frame11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1053 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame11", frame11,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1054 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1055 gtk_widget_show (frame11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1056 gtk_box_pack_start (GTK_BOX (vbox8), frame11, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1057 gtk_container_set_border_width (GTK_CONTAINER (frame11), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1058
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1059 alignment10 = gtk_alignment_new (0, 0.5, 0.1, 1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1060 gtk_widget_set_name (alignment10, "alignment10");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1061 gtk_widget_ref (alignment10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1062 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alignment10", alignment10,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1063 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1064 gtk_widget_show (alignment10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1065 gtk_container_add (GTK_CONTAINER (frame11), alignment10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1066 gtk_container_set_border_width (GTK_CONTAINER (alignment10), 8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1067
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1068 hbox25 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1069 gtk_widget_set_name (hbox25, "hbox25");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1070 gtk_widget_ref (hbox25);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1071 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox25", hbox25,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1072 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1073 gtk_widget_show (hbox25);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1074 gtk_container_add (GTK_CONTAINER (alignment10), hbox25);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1075
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1076 fading_spin_adj = gtk_adjustment_new (120, 0, 3600, 1, 10, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1077 fading_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fading_spin_adj), 1, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1078 gtk_widget_set_name (fading_spin, "fading_spin");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1079 gtk_widget_ref (fading_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1080 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "fading_spin", fading_spin,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1081 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1082 gtk_widget_show (fading_spin);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1083 gtk_box_pack_start (GTK_BOX (hbox25), fading_spin, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1084 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fading_spin), TRUE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1085 gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (fading_spin), GTK_UPDATE_IF_VALID);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1086
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1087 label81 = gtk_label_new ("seconds");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1088 gtk_widget_set_name (label81, "label81");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1089 gtk_widget_ref (label81);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1090 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label81", label81,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1091 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1092 gtk_widget_show (label81);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1093 gtk_box_pack_start (GTK_BOX (hbox25), label81, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1094
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1095 frame12 = gtk_frame_new ("Volume");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1096 gtk_widget_set_name (frame12, "frame12");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1097 gtk_widget_ref (frame12);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1098 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame12", frame12,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1099 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1100 gtk_widget_show (frame12);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1101 gtk_box_pack_start (GTK_BOX (vbox8), frame12, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1102 gtk_container_set_border_width (GTK_CONTAINER (frame12), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1103
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1104 vbox9 = gtk_vbox_new (FALSE, 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1105 gtk_widget_set_name (vbox9, "vbox9");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1106 gtk_widget_ref (vbox9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1107 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox9", vbox9,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1108 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1109 gtk_widget_show (vbox9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1110 gtk_container_add (GTK_CONTAINER (frame12), vbox9);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1111 gtk_container_set_border_width (GTK_CONTAINER (vbox9), 8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1112
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1113 alignment11 = gtk_alignment_new (1, 0.5, 0.1, 1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1114 gtk_widget_set_name (alignment11, "alignment11");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1115 gtk_widget_ref (alignment11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1116 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "alignment11", alignment11,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1117 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1118 gtk_widget_show (alignment11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1119 gtk_box_pack_end (GTK_BOX (vbox9), alignment11, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1120
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1121 current_button = gtk_button_new_with_label ("Current");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1122 gtk_widget_set_name (current_button, "current_button");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1123 gtk_widget_ref (current_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1124 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "current_button", current_button,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1125 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1126 gtk_widget_show (current_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1127 gtk_container_add (GTK_CONTAINER (alignment11), current_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1128 gtk_tooltips_set_tip (tooltips, current_button, "reset to current output volume", NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1129
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1130 label82 = gtk_label_new ("Start at");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1131 gtk_widget_set_name (label82, "label82");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1132 gtk_widget_ref (label82);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1133 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label82", label82,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1134 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1135 gtk_widget_show (label82);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1136 gtk_box_pack_start (GTK_BOX (vbox9), label82, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1137 gtk_label_set_justify (GTK_LABEL (label82), GTK_JUSTIFY_LEFT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1138 gtk_misc_set_alignment (GTK_MISC (label82), 7.45058e-09, 0.5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1139
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1140 hbox26 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1141 gtk_widget_set_name (hbox26, "hbox26");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1142 gtk_widget_ref (hbox26);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1143 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox26", hbox26,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1144 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1145 gtk_widget_show (hbox26);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1146 gtk_box_pack_start (GTK_BOX (vbox9), hbox26, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1147
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1148 quiet_vol_scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (20, 0, 100, 1, 5, 0)));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1149 gtk_widget_set_name (quiet_vol_scale, "quiet_vol_scale");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1150 gtk_widget_ref (quiet_vol_scale);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1151 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "quiet_vol_scale", quiet_vol_scale,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1152 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1153 gtk_widget_show (quiet_vol_scale);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1154 gtk_box_pack_start (GTK_BOX (hbox26), quiet_vol_scale, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1155 gtk_scale_set_value_pos (GTK_SCALE (quiet_vol_scale), GTK_POS_RIGHT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1156 gtk_scale_set_digits (GTK_SCALE (quiet_vol_scale), 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1157
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1158 label83 = gtk_label_new ("%");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1159 gtk_widget_set_name (label83, "label83");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1160 gtk_widget_ref (label83);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1161 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label83", label83,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1162 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1163 gtk_widget_show (label83);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1164 gtk_box_pack_start (GTK_BOX (hbox26), label83, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1165
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1166 hseparator2 = gtk_hseparator_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1167 gtk_widget_set_name (hseparator2, "hseparator2");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1168 gtk_widget_ref (hseparator2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1169 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hseparator2", hseparator2,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1170 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1171 gtk_widget_show (hseparator2);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1172 gtk_box_pack_start (GTK_BOX (vbox9), hseparator2, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1173
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1174 label84 = gtk_label_new ("Final");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1175 gtk_widget_set_name (label84, "label84");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1176 gtk_widget_ref (label84);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1177 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label84", label84,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1178 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1179 gtk_widget_show (label84);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1180 gtk_box_pack_start (GTK_BOX (vbox9), label84, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1181 gtk_label_set_justify (GTK_LABEL (label84), GTK_JUSTIFY_LEFT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1182 gtk_misc_set_alignment (GTK_MISC (label84), 0, 0.5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1183
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1184 hbox27 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1185 gtk_widget_set_name (hbox27, "hbox27");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1186 gtk_widget_ref (hbox27);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1187 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox27", hbox27,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1188 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1189 gtk_widget_show (hbox27);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1190 gtk_box_pack_start (GTK_BOX (vbox9), hbox27, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1191
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1192 vol_scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (80, 0, 100, 1, 5, 0)));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1193 gtk_widget_set_name (vol_scale, "vol_scale");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1194 gtk_widget_ref (vol_scale);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1195 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vol_scale", vol_scale,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1196 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1197 gtk_widget_show (vol_scale);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1198 gtk_box_pack_start (GTK_BOX (hbox27), vol_scale, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1199 gtk_scale_set_value_pos (GTK_SCALE (vol_scale), GTK_POS_RIGHT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1200 gtk_scale_set_digits (GTK_SCALE (vol_scale), 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1201
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1202 label85 = gtk_label_new ("%");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1203 gtk_widget_set_name (label85, "label85");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1204 gtk_widget_ref (label85);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1205 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label85", label85,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1206 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1207 gtk_widget_show (label85);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1208 gtk_box_pack_start (GTK_BOX (hbox27), label85, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1209 gtk_label_set_justify (GTK_LABEL (label85), GTK_JUSTIFY_FILL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1210
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1211 label73 = gtk_label_new ("Volume");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1212 gtk_widget_set_name (label73, "label73");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1213 gtk_widget_ref (label73);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1214 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label73", label73,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1215 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1216 gtk_widget_show (label73);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1217 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label73);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1218
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1219 vbox10 = gtk_vbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1220 gtk_widget_set_name (vbox10, "vbox10");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1221 gtk_widget_ref (vbox10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1222 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "vbox10", vbox10,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1223 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1224 gtk_widget_show (vbox10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1225 gtk_container_add (GTK_CONTAINER (notebook1), vbox10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1226
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1227 frame13 = gtk_frame_new ("Additional Command");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1228 gtk_widget_set_name (frame13, "frame13");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1229 gtk_widget_ref (frame13);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1230 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame13", frame13,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1231 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1232 gtk_widget_show (frame13);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1233 gtk_box_pack_start (GTK_BOX (vbox10), frame13, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1234 gtk_container_set_border_width (GTK_CONTAINER (frame13), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1235
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1236 hbox28 = gtk_hbox_new (FALSE, 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1237 gtk_widget_set_name (hbox28, "hbox28");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1238 gtk_widget_ref (hbox28);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1239 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox28", hbox28,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1240 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1241 gtk_widget_show (hbox28);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1242 gtk_container_add (GTK_CONTAINER (frame13), hbox28);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1243 gtk_container_set_border_width (GTK_CONTAINER (hbox28), 8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1244
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1245 cmd_entry = gtk_entry_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1246 gtk_widget_set_name (cmd_entry, "cmd_entry");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1247 gtk_widget_ref (cmd_entry);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1248 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cmd_entry", cmd_entry,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1249 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1250 gtk_widget_show (cmd_entry);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1251 gtk_box_pack_start (GTK_BOX (hbox28), cmd_entry, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1252
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1253 cmd_checkb = gtk_check_button_new_with_label ("enable");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1254 gtk_widget_set_name (cmd_checkb, "cmd_checkb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1255 gtk_widget_ref (cmd_checkb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1256 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cmd_checkb", cmd_checkb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1257 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1258 gtk_widget_show (cmd_checkb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1259 gtk_box_pack_start (GTK_BOX (hbox28), cmd_checkb, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1260
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1261 frame14 = gtk_frame_new ("Playlist (optional)");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1262 gtk_widget_set_name (frame14, "frame14");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1263 gtk_widget_ref (frame14);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1264 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame14", frame14,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1265 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1266 gtk_widget_show (frame14);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1267 gtk_box_pack_start (GTK_BOX (vbox10), frame14, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1268 gtk_container_set_border_width (GTK_CONTAINER (frame14), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1269
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1270 hbox29 = gtk_hbox_new (FALSE, 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1271 gtk_widget_set_name (hbox29, "hbox29");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1272 gtk_widget_ref (hbox29);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1273 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox29", hbox29,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1274 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1275 gtk_widget_show (hbox29);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1276 gtk_container_add (GTK_CONTAINER (frame14), hbox29);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1277 gtk_container_set_border_width (GTK_CONTAINER (hbox29), 8);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1278
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1279 playlist = gtk_entry_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1280 gtk_widget_set_name (playlist, "playlist");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1281 gtk_widget_ref (playlist);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1282 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "playlist", playlist,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1283 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1284 gtk_widget_show (playlist);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1285 gtk_box_pack_start (GTK_BOX (hbox29), playlist, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1286
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1287 playlist_browse_button = gtk_button_new_with_label ("Browse...");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1288 gtk_widget_set_name (playlist_browse_button, "playlist_browse_button");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1289 gtk_widget_ref (playlist_browse_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1290 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "playlist_browse_button", playlist_browse_button,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1291 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1292 gtk_widget_show (playlist_browse_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1293 gtk_box_pack_start (GTK_BOX (hbox29), playlist_browse_button, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1294
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1295 frame18 = gtk_frame_new ("Reminder");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1296 gtk_widget_set_name (frame18, "frame18");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1297 gtk_widget_ref (frame18);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1298 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame18", frame18,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1299 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1300 gtk_widget_show (frame18);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1301 gtk_box_pack_start (GTK_BOX (vbox10), frame18, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1302 gtk_container_set_border_width (GTK_CONTAINER (frame18), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1303
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1304 hbox38 = gtk_hbox_new (FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1305 gtk_widget_set_name (hbox38, "hbox38");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1306 gtk_widget_ref (hbox38);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1307 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox38", hbox38,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1308 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1309 gtk_widget_show (hbox38);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1310 gtk_container_add (GTK_CONTAINER (frame18), hbox38);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1311
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1312 reminder_cb = gtk_check_button_new_with_label ("Use reminder");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1313 gtk_widget_set_name (reminder_cb, "reminder_cb");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1314 gtk_widget_ref (reminder_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1315 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "reminder_cb", reminder_cb,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1316 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1317 gtk_widget_show (reminder_cb);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1318 gtk_box_pack_start (GTK_BOX (hbox38), reminder_cb, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1319
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1320 reminder_text = gtk_entry_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1321 gtk_widget_set_name (reminder_text, "reminder_text");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1322 gtk_widget_ref (reminder_text);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1323 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "reminder_text", reminder_text,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1324 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1325 gtk_widget_show (reminder_text);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1326 gtk_box_pack_start (GTK_BOX (hbox38), reminder_text, TRUE, TRUE, 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1327
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1328 label74 = gtk_label_new ("Options");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1329 gtk_widget_set_name (label74, "label74");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1330 gtk_widget_ref (label74);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1331 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label74", label74,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1332 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1333 gtk_widget_show (label74);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1334 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label74);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1335
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1336 frame16 = gtk_frame_new ("What do these options mean?");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1337 gtk_widget_set_name (frame16, "frame16");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1338 gtk_widget_ref (frame16);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1339 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "frame16", frame16,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1340 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1341 gtk_widget_show (frame16);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1342 gtk_container_add (GTK_CONTAINER (notebook1), frame16);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1343 gtk_container_set_border_width (GTK_CONTAINER (frame16), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1344
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1345 scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1346 gtk_widget_set_name (scrolledwindow1, "scrolledwindow1");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1347 gtk_widget_ref (scrolledwindow1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1348 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "scrolledwindow1", scrolledwindow1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1349 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1350 gtk_widget_show (scrolledwindow1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1351 gtk_container_add (GTK_CONTAINER (frame16), scrolledwindow1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1352 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1353
134
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
1354 text1 = gtk_text_view_new();
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
1355 text1buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (text1));
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
1356 gtk_text_buffer_get_iter_at_offset (text1buffer, &iter, 0);
121
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1357 gtk_widget_set_name (text1, "text1");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1358 gtk_widget_ref (text1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1359 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "text1", text1,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1360 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1361 gtk_widget_show (text1);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1362 gtk_container_add (GTK_CONTAINER (scrolledwindow1), text1);
134
8b343e9684b5 [svn] - fixes from Christian Birchinger <joker -at- gentoo.org>
nenolod
parents: 131
diff changeset
1363 gtk_text_buffer_insert (text1buffer, &iter,
121
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1364 "Time\n Alarm at: \n The time for the alarm to come on.\n\n Quiet After: \n Stop alarm after this amount of time.\n (if the wakeup dialog is not closed)\n\n\nDays\n Day:\n Select the days for the alarm to activate.\n\n Time:\n Choose the time for the alarm on each day,\n or select the toggle button to use the default\n time.\n\n\nVolume\n Fading: \n Fade the volume up to the chosen volume \n for this amount of time.\n\n Start at: \n Start fading from this volume.\n\n Final: \n The volume to stop fading at. If the fading\n time is 0 then set volume to this and start\n playing.\n\n\nOptions:\n Additional Command:\n Run this command at the alarm time.\n\n Playlist: \n Load this playlist for playing songs from \n (must have .m3u extension). If no playlist\n is given then the songs which are currently\n in the list will be used.\n The URL of an mp3/ogg stream can also be\n entered here, but loading of playlists from\n URLs is not currently supported by xmms.\n\n Reminder:\n Display a reminder when the alarm goes off,\n type the reminder in the box and turn on the\n toggle button if you want it to be shown.", 1143);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1365
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1366 label86 = gtk_label_new ("Help");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1367 gtk_widget_set_name (label86, "label86");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1368 gtk_widget_ref (label86);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1369 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "label86", label86,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1370 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1371 gtk_widget_show (label86);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1372 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 4), label86);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1373
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1374 dialog_action_area5 = GTK_DIALOG (config_dialog)->action_area;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1375 gtk_widget_set_name (dialog_action_area5, "dialog_action_area5");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1376 gtk_object_set_data (GTK_OBJECT (config_dialog), "dialog_action_area5", dialog_action_area5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1377 gtk_widget_show (dialog_action_area5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1378 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area5), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1379
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1380 hbox20 = gtk_hbox_new (TRUE, 5);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1381 gtk_widget_set_name (hbox20, "hbox20");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1382 gtk_widget_ref (hbox20);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1383 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "hbox20", hbox20,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1384 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1385 gtk_widget_show (hbox20);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1386 gtk_box_pack_start (GTK_BOX (dialog_action_area5), hbox20, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1387 gtk_container_set_border_width (GTK_CONTAINER (hbox20), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1388
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1389 ok_button = gtk_button_new_with_label ("OK");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1390 gtk_widget_set_name (ok_button, "ok_button");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1391 gtk_widget_ref (ok_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1392 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "ok_button", ok_button,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1393 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1394 gtk_widget_show (ok_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1395 gtk_box_pack_start (GTK_BOX (hbox20), ok_button, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1396 GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1397
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1398 cancel_button = gtk_button_new_with_label ("Cancel");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1399 gtk_widget_set_name (cancel_button, "cancel_button");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1400 gtk_widget_ref (cancel_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1401 gtk_object_set_data_full (GTK_OBJECT (config_dialog), "cancel_button", cancel_button,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1402 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1403 gtk_widget_show (cancel_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1404 gtk_box_pack_start (GTK_BOX (hbox20), cancel_button, FALSE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1405 GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1406
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1407 gtk_signal_connect (GTK_OBJECT (mon_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1408 GTK_SIGNAL_FUNC (on_mon_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1409 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1410 gtk_signal_connect (GTK_OBJECT (tue_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1411 GTK_SIGNAL_FUNC (on_tue_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1412 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1413 gtk_signal_connect (GTK_OBJECT (wed_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1414 GTK_SIGNAL_FUNC (on_wed_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1415 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1416 gtk_signal_connect (GTK_OBJECT (thu_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1417 GTK_SIGNAL_FUNC (on_thu_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1418 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1419 gtk_signal_connect (GTK_OBJECT (fri_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1420 GTK_SIGNAL_FUNC (on_fri_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1421 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1422 gtk_signal_connect (GTK_OBJECT (sat_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1423 GTK_SIGNAL_FUNC (on_sat_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1424 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1425 gtk_signal_connect (GTK_OBJECT (sun_def), "toggled",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1426 GTK_SIGNAL_FUNC (on_sun_def_toggled),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1427 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1428 gtk_signal_connect (GTK_OBJECT (current_button), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1429 GTK_SIGNAL_FUNC (alarm_current_volume),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1430 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1431 gtk_signal_connect (GTK_OBJECT (ok_button), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1432 GTK_SIGNAL_FUNC (alarm_save),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1433 NULL);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1434 gtk_signal_connect_object (GTK_OBJECT (ok_button), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1435 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1436 GTK_OBJECT (config_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1437 gtk_signal_connect_object (GTK_OBJECT (cancel_button), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1438 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1439 GTK_OBJECT (config_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1440
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1441 gtk_widget_grab_default (ok_button);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1442 gtk_object_set_data (GTK_OBJECT (config_dialog), "tooltips", tooltips);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1443
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1444 return config_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1445 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1446
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1447 GtkWidget*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1448 create_reminder_dialog (gchar *reminder_msg)
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1449 {
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1450 GtkWidget *reminder_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1451 GtkWidget *dialog_vbox6;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1452 GtkWidget *frame19;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1453 GtkWidget *reminder_entry;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1454 GtkWidget *dialog_action_area6;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1455 GtkWidget *button11;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1456
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1457 reminder_dialog = gtk_dialog_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1458 gtk_widget_set_name (reminder_dialog, "reminder_dialog");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1459 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "reminder_dialog", reminder_dialog);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1460 gtk_window_set_title (GTK_WINDOW (reminder_dialog), "Reminder");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1461 gtk_window_set_policy (GTK_WINDOW (reminder_dialog), TRUE, TRUE, FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1462
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1463 dialog_vbox6 = GTK_DIALOG (reminder_dialog)->vbox;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1464 gtk_widget_set_name (dialog_vbox6, "dialog_vbox6");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1465 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "dialog_vbox6", dialog_vbox6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1466 gtk_widget_show (dialog_vbox6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1467
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1468 frame19 = gtk_frame_new ("Your reminder for today is..");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1469 gtk_widget_set_name (frame19, "frame19");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1470 gtk_widget_ref (frame19);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1471 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "frame19", frame19,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1472 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1473 gtk_widget_show (frame19);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1474 gtk_box_pack_start (GTK_BOX (dialog_vbox6), frame19, TRUE, TRUE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1475 gtk_container_set_border_width (GTK_CONTAINER (frame19), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1476
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1477 reminder_entry = gtk_entry_new ();
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1478 gtk_widget_set_name (reminder_entry, "reminder_entry");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1479 gtk_widget_ref (reminder_entry);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1480 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "reminder_entry", reminder_entry,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1481 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1482 gtk_widget_show (reminder_entry);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1483 gtk_container_add (GTK_CONTAINER (frame19), reminder_entry);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1484 gtk_entry_set_editable (GTK_ENTRY (reminder_entry), FALSE);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1485 gtk_entry_set_text (GTK_ENTRY (reminder_entry), reminder_msg);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1486
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1487 dialog_action_area6 = GTK_DIALOG (reminder_dialog)->action_area;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1488 gtk_widget_set_name (dialog_action_area6, "dialog_action_area6");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1489 gtk_object_set_data (GTK_OBJECT (reminder_dialog), "dialog_action_area6", dialog_action_area6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1490 gtk_widget_show (dialog_action_area6);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1491 gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area6), 10);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1492
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1493 button11 = gtk_button_new_with_label ("Thankyou");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1494 gtk_widget_set_name (button11, "button11");
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1495 gtk_widget_ref (button11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1496 gtk_object_set_data_full (GTK_OBJECT (reminder_dialog), "button11", button11,
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1497 (GtkDestroyNotify) gtk_widget_unref);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1498 gtk_widget_show (button11);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1499 gtk_box_pack_start (GTK_BOX (dialog_action_area6), button11, FALSE, FALSE, 0);
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1500
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1501 gtk_signal_connect_object (GTK_OBJECT (button11), "clicked",
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1502 GTK_SIGNAL_FUNC (gtk_widget_destroy),
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1503 GTK_OBJECT(reminder_dialog));
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1504
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1505 return reminder_dialog;
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1506 }
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1507
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1508 /*
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1509 * vi:ai:expandtab:ts=2 sts=2 shiftwidth=2:nowrap:
b59bca84e3cd [svn] - add xmms-alarm port
nenolod
parents:
diff changeset
1510 */