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

Contents of /trunk/plugins/PadNull/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: 5869 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 *frame3;
35 GtkWidget *alignment1;
36 GtkWidget *check_logging;
37 GtkWidget *label15;
38 GtkWidget *hbuttonbox1;
39 GtkWidget *button1;
40 GtkWidget *button2;
41
42 Config = gtk_window_new (GTK_WINDOW_TOPLEVEL);
43 gtk_widget_set_name (Config, "Config");
44 gtk_container_set_border_width (GTK_CONTAINER (Config), 5);
45 gtk_window_set_title (GTK_WINDOW (Config), _("Padconfig"));
46
47 vbox1 = gtk_vbox_new (FALSE, 5);
48 gtk_widget_set_name (vbox1, "vbox1");
49 gtk_widget_show (vbox1);
50 gtk_container_add (GTK_CONTAINER (Config), vbox1);
51 gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5);
52
53 frame3 = gtk_frame_new (NULL);
54 gtk_widget_set_name (frame3, "frame3");
55 gtk_widget_show (frame3);
56 gtk_box_pack_start (GTK_BOX (vbox1), frame3, TRUE, TRUE, 0);
57 gtk_frame_set_shadow_type (GTK_FRAME (frame3), GTK_SHADOW_NONE);
58
59 alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
60 gtk_widget_set_name (alignment1, "alignment1");
61 gtk_widget_show (alignment1);
62 gtk_container_add (GTK_CONTAINER (frame3), alignment1);
63 gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0);
64
65 check_logging = gtk_check_button_new_with_mnemonic (_("Enable Logging"));
66 gtk_widget_set_name (check_logging, "check_logging");
67 gtk_widget_show (check_logging);
68 gtk_container_add (GTK_CONTAINER (alignment1), check_logging);
69
70 label15 = gtk_label_new (_("<b>Logging</b>"));
71 gtk_widget_set_name (label15, "label15");
72 gtk_widget_show (label15);
73 gtk_frame_set_label_widget (GTK_FRAME (frame3), label15);
74 gtk_label_set_use_markup (GTK_LABEL (label15), TRUE);
75
76 hbuttonbox1 = gtk_hbutton_box_new ();
77 gtk_widget_set_name (hbuttonbox1, "hbuttonbox1");
78 gtk_widget_show (hbuttonbox1);
79 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, TRUE, TRUE, 0);
80 gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30);
81
82 button1 = gtk_button_new_with_mnemonic (_("Ok"));
83 gtk_widget_set_name (button1, "button1");
84 gtk_widget_show (button1);
85 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button1);
86 GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
87
88 button2 = gtk_button_new_with_mnemonic (_("Cancel"));
89 gtk_widget_set_name (button2, "button2");
90 gtk_widget_show (button2);
91 gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
92 GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
93
94 g_signal_connect ((gpointer) button1, "clicked",
95 G_CALLBACK (OnConf_Ok),
96 NULL);
97 g_signal_connect ((gpointer) button2, "clicked",
98 G_CALLBACK (OnConf_Cancel),
99 NULL);
100
101 /* Store pointers to all widgets, for use by lookup_widget(). */
102 GLADE_HOOKUP_OBJECT_NO_REF (Config, Config, "Config");
103 GLADE_HOOKUP_OBJECT (Config, vbox1, "vbox1");
104 GLADE_HOOKUP_OBJECT (Config, frame3, "frame3");
105 GLADE_HOOKUP_OBJECT (Config, alignment1, "alignment1");
106 GLADE_HOOKUP_OBJECT (Config, check_logging, "check_logging");
107 GLADE_HOOKUP_OBJECT (Config, label15, "label15");
108 GLADE_HOOKUP_OBJECT (Config, hbuttonbox1, "hbuttonbox1");
109 GLADE_HOOKUP_OBJECT (Config, button1, "button1");
110 GLADE_HOOKUP_OBJECT (Config, button2, "button2");
111
112 return Config;
113 }
114
115 GtkWidget*
116 create_About (void)
117 {
118 GtkWidget *About;
119 GtkWidget *vbox2;
120 GtkWidget *label2;
121 GtkWidget *label3;
122 GtkWidget *hbuttonbox2;
123 GtkWidget *button3;
124
125 About = gtk_window_new (GTK_WINDOW_TOPLEVEL);
126 gtk_widget_set_name (About, "About");
127 gtk_container_set_border_width (GTK_CONTAINER (About), 5);
128 gtk_window_set_title (GTK_WINDOW (About), _("FWabout"));
129
130 vbox2 = gtk_vbox_new (FALSE, 5);
131 gtk_widget_set_name (vbox2, "vbox2");
132 gtk_widget_show (vbox2);
133 gtk_container_add (GTK_CONTAINER (About), vbox2);
134 gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5);
135
136 label2 = gtk_label_new (_("PadNull Driver"));
137 gtk_widget_set_name (label2, "label2");
138 gtk_widget_show (label2);
139 gtk_box_pack_start (GTK_BOX (vbox2), label2, FALSE, FALSE, 0);
140 gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_CENTER);
141
142 label3 = gtk_label_new (_("Original Author: arcum42@gmail.com"));
143 gtk_widget_set_name (label3, "label3");
144 gtk_widget_show (label3);
145 gtk_box_pack_start (GTK_BOX (vbox2), label3, FALSE, FALSE, 0);
146
147 hbuttonbox2 = gtk_hbutton_box_new ();
148 gtk_widget_set_name (hbuttonbox2, "hbuttonbox2");
149 gtk_widget_show (hbuttonbox2);
150 gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox2, TRUE, TRUE, 0);
151 gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 30);
152
153 button3 = gtk_button_new_with_mnemonic (_("Ok"));
154 gtk_widget_set_name (button3, "button3");
155 gtk_widget_show (button3);
156 gtk_container_add (GTK_CONTAINER (hbuttonbox2), button3);
157 GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
158
159 g_signal_connect ((gpointer) button3, "clicked",
160 G_CALLBACK (OnAbout_Ok),
161 NULL);
162
163 /* Store pointers to all widgets, for use by lookup_widget(). */
164 GLADE_HOOKUP_OBJECT_NO_REF (About, About, "About");
165 GLADE_HOOKUP_OBJECT (About, vbox2, "vbox2");
166 GLADE_HOOKUP_OBJECT (About, label2, "label2");
167 GLADE_HOOKUP_OBJECT (About, label3, "label3");
168 GLADE_HOOKUP_OBJECT (About, hbuttonbox2, "hbuttonbox2");
169 GLADE_HOOKUP_OBJECT (About, button3, "button3");
170
171 return About;
172 }
173

  ViewVC Help
Powered by ViewVC 1.1.22