Mercurial > audlegacy-plugins
comparison src/timidity/interface.c @ 1882:eed7c270e8dd
Fix MILLIONS of Makefiles.
| author | Jonathan Schleifer <js@h3c.de> |
|---|---|
| date | Wed, 26 Sep 2007 14:53:37 +0200 |
| parents | src/timidity/src/interface.c@d447ee6c8bc0 |
| children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
| 1881:8bdede3414cd | 1882:eed7c270e8dd |
|---|---|
| 1 /* | |
| 2 * DO NOT EDIT THIS FILE - it is generated by Glade. | |
| 3 */ | |
| 4 | |
| 5 #include <config.h> | |
| 6 | |
| 7 #include <sys/types.h> | |
| 8 #include <sys/stat.h> | |
| 9 #include <unistd.h> | |
| 10 #include <string.h> | |
| 11 | |
| 12 #include <glib.h> | |
| 13 #include <gdk/gdkkeysyms.h> | |
| 14 #include <gtk/gtk.h> | |
| 15 | |
| 16 #include <audacious/i18n.h> | |
| 17 | |
| 18 #include "callbacks.h" | |
| 19 #include "interface.h" | |
| 20 #include "interface.h" | |
| 21 | |
| 22 GtkWidget* | |
| 23 create_xmmstimid_conf_wnd (void) | |
| 24 { | |
| 25 GtkWidget *xmmstimid_conf_wnd; | |
| 26 GtkWidget *vbox4; | |
| 27 GtkWidget *table1; | |
| 28 GtkWidget *frame1; | |
| 29 GtkWidget *vbox1; | |
| 30 GSList *rate_group = NULL; | |
| 31 GtkWidget *rate_11000; | |
| 32 GtkWidget *rate_22000; | |
| 33 GtkWidget *rate_44100; | |
| 34 GtkWidget *frame2; | |
| 35 GtkWidget *vbox2; | |
| 36 GSList *bits_group = NULL; | |
| 37 GtkWidget *bits_8; | |
| 38 GtkWidget *bits_16; | |
| 39 GtkWidget *frame3; | |
| 40 GtkWidget *vbox3; | |
| 41 GSList *channels_group = NULL; | |
| 42 GtkWidget *channels_1; | |
| 43 GtkWidget *channels_2; | |
| 44 GtkWidget *frame4; | |
| 45 GtkWidget *vbox5; | |
| 46 GtkWidget *config_file; | |
| 47 GtkWidget *hseparator1; | |
| 48 GtkWidget *hbuttonbox1; | |
| 49 GtkWidget *conf_ok; | |
| 50 GtkWidget *button2; | |
| 51 | |
| 52 xmmstimid_conf_wnd = gtk_window_new (GTK_WINDOW_TOPLEVEL); | |
| 53 g_object_set_data (G_OBJECT (xmmstimid_conf_wnd), "xmmstimid_conf_wnd", xmmstimid_conf_wnd); | |
| 54 gtk_window_set_title (GTK_WINDOW (xmmstimid_conf_wnd), _("TiMidity Configuration")); | |
| 55 gtk_window_set_position (GTK_WINDOW (xmmstimid_conf_wnd), GTK_WIN_POS_MOUSE); | |
| 56 | |
| 57 vbox4 = gtk_vbox_new (FALSE, 0); | |
| 58 gtk_widget_ref (vbox4); | |
| 59 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "vbox4", vbox4, | |
| 60 (GtkDestroyNotify) gtk_widget_unref); | |
| 61 gtk_widget_show (vbox4); | |
| 62 gtk_container_add (GTK_CONTAINER (xmmstimid_conf_wnd), vbox4); | |
| 63 | |
| 64 table1 = gtk_table_new (3, 2, FALSE); | |
| 65 gtk_widget_ref (table1); | |
| 66 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "table1", table1, | |
| 67 (GtkDestroyNotify) gtk_widget_unref); | |
| 68 gtk_widget_show (table1); | |
| 69 gtk_box_pack_start (GTK_BOX (vbox4), table1, TRUE, TRUE, 0); | |
| 70 gtk_container_set_border_width (GTK_CONTAINER (table1), 10); | |
| 71 gtk_table_set_row_spacings (GTK_TABLE (table1), 5); | |
| 72 gtk_table_set_col_spacings (GTK_TABLE (table1), 5); | |
| 73 | |
| 74 frame1 = gtk_frame_new (_("Sampling Rate")); | |
| 75 gtk_widget_ref (frame1); | |
| 76 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "frame1", frame1, | |
| 77 (GtkDestroyNotify) gtk_widget_unref); | |
| 78 gtk_widget_show (frame1); | |
| 79 gtk_table_attach (GTK_TABLE (table1), frame1, 0, 1, 1, 2, | |
| 80 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), | |
| 81 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
| 82 | |
| 83 vbox1 = gtk_vbox_new (FALSE, 0); | |
| 84 gtk_widget_ref (vbox1); | |
| 85 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "vbox1", vbox1, | |
| 86 (GtkDestroyNotify) gtk_widget_unref); | |
| 87 gtk_widget_show (vbox1); | |
| 88 gtk_container_add (GTK_CONTAINER (frame1), vbox1); | |
| 89 gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5); | |
| 90 | |
| 91 rate_11000 = gtk_radio_button_new_with_label (rate_group, _("11000 Hz")); | |
| 92 rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_11000)); | |
| 93 gtk_widget_ref (rate_11000); | |
| 94 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "rate_11000", rate_11000, | |
| 95 (GtkDestroyNotify) gtk_widget_unref); | |
| 96 gtk_widget_show (rate_11000); | |
| 97 gtk_box_pack_start (GTK_BOX (vbox1), rate_11000, FALSE, FALSE, 0); | |
| 98 | |
| 99 rate_22000 = gtk_radio_button_new_with_label (rate_group, _("22000 Hz")); | |
| 100 rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_22000)); | |
| 101 gtk_widget_ref (rate_22000); | |
| 102 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "rate_22000", rate_22000, | |
| 103 (GtkDestroyNotify) gtk_widget_unref); | |
| 104 gtk_widget_show (rate_22000); | |
| 105 gtk_box_pack_start (GTK_BOX (vbox1), rate_22000, FALSE, FALSE, 0); | |
| 106 | |
| 107 rate_44100 = gtk_radio_button_new_with_label (rate_group, _("44100 Hz")); | |
| 108 rate_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rate_44100)); | |
| 109 gtk_widget_ref (rate_44100); | |
| 110 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "rate_44100", rate_44100, | |
| 111 (GtkDestroyNotify) gtk_widget_unref); | |
| 112 gtk_widget_show (rate_44100); | |
| 113 gtk_box_pack_start (GTK_BOX (vbox1), rate_44100, FALSE, FALSE, 0); | |
| 114 | |
| 115 frame2 = gtk_frame_new (_("Sample Width")); | |
| 116 gtk_widget_ref (frame2); | |
| 117 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "frame2", frame2, | |
| 118 (GtkDestroyNotify) gtk_widget_unref); | |
| 119 gtk_widget_show (frame2); | |
| 120 gtk_table_attach (GTK_TABLE (table1), frame2, 1, 2, 1, 2, | |
| 121 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), | |
| 122 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
| 123 | |
| 124 vbox2 = gtk_vbox_new (FALSE, 0); | |
| 125 gtk_widget_ref (vbox2); | |
| 126 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "vbox2", vbox2, | |
| 127 (GtkDestroyNotify) gtk_widget_unref); | |
| 128 gtk_widget_show (vbox2); | |
| 129 gtk_container_add (GTK_CONTAINER (frame2), vbox2); | |
| 130 gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5); | |
| 131 | |
| 132 bits_8 = gtk_radio_button_new_with_label (bits_group, _("8 bit")); | |
| 133 bits_group = gtk_radio_button_group (GTK_RADIO_BUTTON (bits_8)); | |
| 134 gtk_widget_ref (bits_8); | |
| 135 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "bits_8", bits_8, | |
| 136 (GtkDestroyNotify) gtk_widget_unref); | |
| 137 gtk_widget_show (bits_8); | |
| 138 gtk_box_pack_start (GTK_BOX (vbox2), bits_8, FALSE, FALSE, 0); | |
| 139 | |
| 140 bits_16 = gtk_radio_button_new_with_label (bits_group, _("16 bit")); | |
| 141 bits_group = gtk_radio_button_group (GTK_RADIO_BUTTON (bits_16)); | |
| 142 gtk_widget_ref (bits_16); | |
| 143 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "bits_16", bits_16, | |
| 144 (GtkDestroyNotify) gtk_widget_unref); | |
| 145 gtk_widget_show (bits_16); | |
| 146 gtk_box_pack_start (GTK_BOX (vbox2), bits_16, FALSE, FALSE, 0); | |
| 147 | |
| 148 frame3 = gtk_frame_new (_("Channels")); | |
| 149 gtk_widget_ref (frame3); | |
| 150 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "frame3", frame3, | |
| 151 (GtkDestroyNotify) gtk_widget_unref); | |
| 152 gtk_widget_show (frame3); | |
| 153 gtk_table_attach (GTK_TABLE (table1), frame3, 0, 1, 2, 3, | |
| 154 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), | |
| 155 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
| 156 | |
| 157 vbox3 = gtk_vbox_new (FALSE, 0); | |
| 158 gtk_widget_ref (vbox3); | |
| 159 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "vbox3", vbox3, | |
| 160 (GtkDestroyNotify) gtk_widget_unref); | |
| 161 gtk_widget_show (vbox3); | |
| 162 gtk_container_add (GTK_CONTAINER (frame3), vbox3); | |
| 163 gtk_container_set_border_width (GTK_CONTAINER (vbox3), 5); | |
| 164 | |
| 165 channels_1 = gtk_radio_button_new_with_label (channels_group, _("Mono")); | |
| 166 channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (channels_1)); | |
| 167 gtk_widget_ref (channels_1); | |
| 168 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "channels_1", channels_1, | |
| 169 (GtkDestroyNotify) gtk_widget_unref); | |
| 170 gtk_widget_show (channels_1); | |
| 171 gtk_box_pack_start (GTK_BOX (vbox3), channels_1, FALSE, FALSE, 0); | |
| 172 | |
| 173 channels_2 = gtk_radio_button_new_with_label (channels_group, _("Stereo")); | |
| 174 channels_group = gtk_radio_button_group (GTK_RADIO_BUTTON (channels_2)); | |
| 175 gtk_widget_ref (channels_2); | |
| 176 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "channels_2", channels_2, | |
| 177 (GtkDestroyNotify) gtk_widget_unref); | |
| 178 gtk_widget_show (channels_2); | |
| 179 gtk_box_pack_start (GTK_BOX (vbox3), channels_2, FALSE, FALSE, 0); | |
| 180 | |
| 181 frame4 = gtk_frame_new (_("TiMidity Configuration File")); | |
| 182 gtk_widget_ref (frame4); | |
| 183 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "frame4", frame4, | |
| 184 (GtkDestroyNotify) gtk_widget_unref); | |
| 185 gtk_widget_show (frame4); | |
| 186 gtk_table_attach (GTK_TABLE (table1), frame4, 0, 2, 0, 1, | |
| 187 (GtkAttachOptions) (GTK_FILL), | |
| 188 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); | |
| 189 | |
| 190 vbox5 = gtk_vbox_new (FALSE, 0); | |
| 191 gtk_widget_ref (vbox5); | |
| 192 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "vbox5", vbox5, | |
| 193 (GtkDestroyNotify) gtk_widget_unref); | |
| 194 gtk_widget_show (vbox5); | |
| 195 gtk_container_add (GTK_CONTAINER (frame4), vbox5); | |
| 196 gtk_container_set_border_width (GTK_CONTAINER (vbox5), 5); | |
| 197 | |
| 198 config_file = gtk_entry_new (); | |
| 199 gtk_widget_ref (config_file); | |
| 200 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "config_file", config_file, | |
| 201 (GtkDestroyNotify) gtk_widget_unref); | |
| 202 gtk_widget_show (config_file); | |
| 203 gtk_box_pack_start (GTK_BOX (vbox5), config_file, TRUE, TRUE, 0); | |
| 204 | |
| 205 hseparator1 = gtk_hseparator_new (); | |
| 206 gtk_widget_ref (hseparator1); | |
| 207 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "hseparator1", hseparator1, | |
| 208 (GtkDestroyNotify) gtk_widget_unref); | |
| 209 gtk_widget_show (hseparator1); | |
| 210 gtk_box_pack_start (GTK_BOX (vbox4), hseparator1, TRUE, TRUE, 0); | |
| 211 | |
| 212 hbuttonbox1 = gtk_hbutton_box_new (); | |
| 213 gtk_widget_ref (hbuttonbox1); | |
| 214 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "hbuttonbox1", hbuttonbox1, | |
| 215 (GtkDestroyNotify) gtk_widget_unref); | |
| 216 gtk_widget_show (hbuttonbox1); | |
| 217 gtk_box_pack_start (GTK_BOX (vbox4), hbuttonbox1, TRUE, TRUE, 0); | |
| 218 gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 5); | |
| 219 gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END); | |
| 220 gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox1), 10); | |
| 221 | |
| 222 conf_ok = gtk_button_new_with_label (_("Ok")); | |
| 223 gtk_widget_ref (conf_ok); | |
| 224 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "conf_ok", conf_ok, | |
| 225 (GtkDestroyNotify) gtk_widget_unref); | |
| 226 gtk_widget_show (conf_ok); | |
| 227 gtk_container_add (GTK_CONTAINER (hbuttonbox1), conf_ok); | |
| 228 GTK_WIDGET_SET_FLAGS (conf_ok, GTK_CAN_DEFAULT); | |
| 229 | |
| 230 button2 = gtk_button_new_with_label (_("Cancel")); | |
| 231 gtk_widget_ref (button2); | |
| 232 g_object_set_data_full (G_OBJECT (xmmstimid_conf_wnd), "button2", button2, | |
| 233 (GtkDestroyNotify) gtk_widget_unref); | |
| 234 gtk_widget_show (button2); | |
| 235 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2); | |
| 236 GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT); | |
| 237 | |
| 238 g_signal_connect_swapped (G_OBJECT (button2), "clicked", | |
| 239 G_CALLBACK (gtk_widget_hide), | |
| 240 GTK_OBJECT (xmmstimid_conf_wnd)); | |
| 241 | |
| 242 gtk_widget_grab_focus (conf_ok); | |
| 243 gtk_widget_grab_default (conf_ok); | |
| 244 return xmmstimid_conf_wnd; | |
| 245 } |
