/[pcsx2_0.9.7]/trunk/plugins/GSnull/Linux/interface.c
ViewVC logotype

Contents of /trunk/plugins/GSnull/Linux/interface.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 11 months ago) by william
File MIME type: text/plain
File size: 8426 byte(s)
committing r3113 initial commit again...
1 /*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5 #ifdef HAVE_CONFIG_H
6 # include <config.h>
7 #endif
8
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <unistd.h>
12 #include <string.h>
13 #include <stdio.h>
14
15 #include <gdk/gdkkeysyms.h>
16 #include <gtk/gtk.h>
17
18 #include "callbacks.h"
19 #include "interface.h"
20 #include "support.h"
21
22 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
23 g_object_set_data_full (G_OBJECT (component), name, \
24 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
25
26 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
27 g_object_set_data (G_OBJECT (component), name, widget)
28
29 GtkWidget*
30 create_Config (void)
31 {
32 GtkWidget *Config;
33 GtkWidget *vbox1;
34 GtkWidget *frame2;
35 GtkWidget *hbox1;
36 GtkWidget *label4;
37 GtkWidget *GtkCombo_Eth;
38 GList *GtkCombo_Eth_items = NULL;
39 GtkWidget *combo_entry1;
40 GtkWidget *label1;
41 GtkWidget *frame3;
42 GtkWidget *hbox2;
43 GtkWidget *label5;
44 GtkWidget *GtkCombo_Hdd;
45 GList *GtkCombo_Hdd_items = NULL;
46 GtkWidget *entry1;
47 GtkWidget *label15;
48 GtkWidget *hbuttonbox1;
49 GtkWidget *button1;
50 GtkWidget *button2;
51
52 Config = gtk_window_new (GTK_WINDOW_TOPLEVEL);
53 gtk_widget_set_name (Config, "Config");
54 gtk_container_set_border_width (GTK_CONTAINER (Config), 5);
55 gtk_window_set_title (GTK_WINDOW (Config), _("DEV9config"));
56
57 vbox1 = gtk_vbox_new (FALSE, 5);
58 gtk_widget_set_name (vbox1, "vbox1");
59 gtk_widget_show (vbox1);
60 gtk_container_add (GTK_CONTAINER (Config), vbox1);
61 gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5);
62
63 frame2 = gtk_frame_new (NULL);
64 gtk_widget_set_name (frame2, "frame2");
65 gtk_widget_show (frame2);
66 gtk_box_pack_start (GTK_BOX (vbox1), frame2, TRUE, TRUE, 0);
67
68 hbox1 = gtk_hbox_new (TRUE, 5);
69 gtk_widget_set_name (hbox1, "hbox1");
70 gtk_widget_show (hbox1);
71 gtk_container_add (GTK_CONTAINER (frame2), hbox1);
72 gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5);
73
74 label4 = gtk_label_new (_("Device:"));
75 gtk_widget_set_name (label4, "label4");
76 gtk_widget_show (label4);
77 gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0);
78 gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_CENTER);
79
80 GtkCombo_Eth = gtk_combo_new ();
81 g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Eth)->popwin),
82 "GladeParentKey", GtkCombo_Eth);
83 gtk_widget_set_name (GtkCombo_Eth, "GtkCombo_Eth");
84 gtk_widget_show (GtkCombo_Eth);
85 gtk_box_pack_start (GTK_BOX (hbox1), GtkCombo_Eth, FALSE, FALSE, 0);
86 GtkCombo_Eth_items = g_list_append (GtkCombo_Eth_items, (gpointer) "");
87 gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Eth), GtkCombo_Eth_items);
88 g_list_free (GtkCombo_Eth_items);
89
90 combo_entry1 = GTK_COMBO (GtkCombo_Eth)->entry;
91 gtk_widget_set_name (combo_entry1, "combo_entry1");
92 gtk_widget_show (combo_entry1);
93
94 label1 = gtk_label_new (_("Ethernet"));
95 gtk_widget_set_name (label1, "label1");
96 gtk_widget_show (label1);
97 gtk_frame_set_label_widget (GTK_FRAME (frame2), label1);
98
99 frame3 = gtk_frame_new (NULL);
100 gtk_widget_set_name (frame3, "frame3");
101 gtk_widget_show (frame3);
102 gtk_box_pack_start (GTK_BOX (vbox1), frame3, TRUE, TRUE, 0);
103
104 hbox2 = gtk_hbox_new (TRUE, 5);
105 gtk_widget_set_name (hbox2, "hbox2");
106 gtk_widget_show (hbox2);
107 gtk_container_add (GTK_CONTAINER (frame3), hbox2);
108 gtk_container_set_border_width (GTK_CONTAINER (hbox2), 5);
109
110 label5 = gtk_label_new (_("Device:"));
111 gtk_widget_set_name (label5, "label5");
112 gtk_widget_show (label5);
113 gtk_box_pack_start (GTK_BOX (hbox2), label5, FALSE, FALSE, 0);
114 gtk_label_set_justify (GTK_LABEL (label5), GTK_JUSTIFY_CENTER);
115
116 GtkCombo_Hdd = gtk_combo_new ();
117 g_object_set_data (G_OBJECT (GTK_COMBO (GtkCombo_Hdd)->popwin),
118 "GladeParentKey", GtkCombo_Hdd);
119 gtk_widget_set_name (GtkCombo_Hdd, "GtkCombo_Hdd");
120 gtk_widget_show (GtkCombo_Hdd);
121 gtk_box_pack_start (GTK_BOX (hbox2), GtkCombo_Hdd, FALSE, FALSE, 0);
122 GtkCombo_Hdd_items = g_list_append (GtkCombo_Hdd_items, (gpointer) "");
123 gtk_combo_set_popdown_strings (GTK_COMBO (GtkCombo_Hdd), GtkCombo_Hdd_items);
124 g_list_free (GtkCombo_Hdd_items);
125
126 entry1 = GTK_COMBO (GtkCombo_Hdd)->entry;
127 gtk_widget_set_name (entry1, "entry1");
128 gtk_widget_show (entry1);
129
130 label15 = gtk_label_new (_("Hdd"));
131 gtk_widget_set_name (label15, "label15");
132 gtk_widget_show (label15);
133 gtk_frame_set_label_widget (GTK_FRAME (frame3), label15);
134
135 hbuttonbox1 = gtk_hbutton_box_new ();
136 gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
137 gtk_widget_show (hbuttonbox1);
138 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, TRUE, TRUE, 0);
139 gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);
140
141 button1 = gtk_button_new_with_mnemonic (_("Ok"));
142 gtk_widget_set_name (button1, "button1");
143 gtk_widget_show (button1);
144 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button1);
145 GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
146
147 button2 = gtk_button_new_with_mnemonic (_("Cancel"));
148 gtk_widget_set_name (button2, "button2");
149 gtk_widget_show (button2);
150 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
151 GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
152
153 g_signal_connect ((gpointer) button1, "clicked",
154 G_CALLBACK (OnConf_Ok),
155 NULL);
156 g_signal_connect ((gpointer) button2, "clicked",
157 G_CALLBACK (OnConf_Cancel),
158 NULL);
159
160 /* Store pointers to all widgets, for use by lookup_widget(). */
161 GLADE_HOOKUP_OBJECT_NO_REF (Config, Config, "Config");
162 GLADE_HOOKUP_OBJECT (Config, vbox1, "vbox1");
163 GLADE_HOOKUP_OBJECT (Config, frame2, "frame2");
164 GLADE_HOOKUP_OBJECT (Config, hbox1, "hbox1");
165 GLADE_HOOKUP_OBJECT (Config, label4, "label4");
166 GLADE_HOOKUP_OBJECT (Config, GtkCombo_Eth, "GtkCombo_Eth");
167 GLADE_HOOKUP_OBJECT (Config, combo_entry1, "combo_entry1");
168 GLADE_HOOKUP_OBJECT (Config, label1, "label1");
169 GLADE_HOOKUP_OBJECT (Config, frame3, "frame3");
170 GLADE_HOOKUP_OBJECT (Config, hbox2, "hbox2");
171 GLADE_HOOKUP_OBJECT (Config, label5, "label5");
172 GLADE_HOOKUP_OBJECT (Config, GtkCombo_Hdd, "GtkCombo_Hdd");
173 GLADE_HOOKUP_OBJECT (Config, entry1, "entry1");
174 GLADE_HOOKUP_OBJECT (Config, label15, "label15");
175 GLADE_HOOKUP_OBJECT (Config, hbuttonbox1, "hbuttonbox1");
176 GLADE_HOOKUP_OBJECT (Config, button1, "button1");
177 GLADE_HOOKUP_OBJECT (Config, button2, "button2");
178
179 return Config;
180 }
181
182 GtkWidget*
183 create_About (void)
184 {
185 GtkWidget *About;
186 GtkWidget *vbox2;
187 GtkWidget *label2;
188 GtkWidget *label3;
189 GtkWidget *hbuttonbox2;
190 GtkWidget *button3;
191
192 About = gtk_window_new (GTK_WINDOW_TOPLEVEL);
193 gtk_widget_set_name (About, "About");
194 gtk_container_set_border_width (GTK_CONTAINER (About), 5);
195 gtk_window_set_title (GTK_WINDOW (About), _("DEV9about"));
196
197 vbox2 = gtk_vbox_new (FALSE, 5);
198 gtk_widget_set_name (vbox2, "vbox2");
199 gtk_widget_show (vbox2);
200 gtk_container_add (GTK_CONTAINER (About), vbox2);
201 gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5);
202
203 label2 = gtk_label_new (_("FireWire Driver"));
204 gtk_widget_set_name (label2, "label2");
205 gtk_widget_show (label2);
206 gtk_box_pack_start (GTK_BOX (vbox2), label2, FALSE, FALSE, 0);
207 gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_CENTER);
208
209 label3 = gtk_label_new (_("Author: linuzappz <linuzappz@hotmail.com>"));
210 gtk_widget_set_name (label3, "label3");
211 gtk_widget_show (label3);
212 gtk_box_pack_start (GTK_BOX (vbox2), label3, FALSE, FALSE, 0);
213
214 hbuttonbox2 = gtk_hbutton_box_new ();
215 gtk_widget_set_name (hbuttonbox2, "hbuttonbox2");
216 gtk_widget_show (hbuttonbox2);
217 gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox2, TRUE, TRUE, 0);
218 gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 30);
219
220 button3 = gtk_button_new_with_mnemonic (_("Ok"));
221 gtk_widget_set_name (button3, "button3");
222 gtk_widget_show (button3);
223 gtk_container_add (GTK_CONTAINER (hbuttonbox2), button3);
224 GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
225
226 g_signal_connect ((gpointer) button3, "clicked",
227 G_CALLBACK (OnAbout_Ok),
228 NULL);
229
230 /* Store pointers to all widgets, for use by lookup_widget(). */
231 GLADE_HOOKUP_OBJECT_NO_REF (About, About, "About");
232 GLADE_HOOKUP_OBJECT (About, vbox2, "vbox2");
233 GLADE_HOOKUP_OBJECT (About, label2, "label2");
234 GLADE_HOOKUP_OBJECT (About, label3, "label3");
235 GLADE_HOOKUP_OBJECT (About, hbuttonbox2, "hbuttonbox2");
236 GLADE_HOOKUP_OBJECT (About, button3, "button3");
237
238 return About;
239 }
240

  ViewVC Help
Powered by ViewVC 1.1.22