mirror of https://github.com/PCSX2/pcsx2.git
220 lines
8.0 KiB
C
220 lines
8.0 KiB
C
|
/*
|
||
|
* DO NOT EDIT THIS FILE - it is generated by Glade.
|
||
|
*/
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
# include <config.h>
|
||
|
#endif
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <unistd.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
#include <gdk/gdkkeysyms.h>
|
||
|
#include <gtk/gtk.h>
|
||
|
|
||
|
#include "callbacks.h"
|
||
|
#include "interface.h"
|
||
|
#include "support.h"
|
||
|
|
||
|
GtkWidget*
|
||
|
create_Config (void)
|
||
|
{
|
||
|
GtkWidget *Config;
|
||
|
GtkWidget *vbox1;
|
||
|
GtkWidget *frame2;
|
||
|
GtkWidget *hbox1;
|
||
|
GtkWidget *label4;
|
||
|
GtkWidget *GtkCombo_Eth;
|
||
|
GtkWidget *combo_entry1;
|
||
|
GtkWidget *frame3;
|
||
|
GtkWidget *hbox2;
|
||
|
GtkWidget *label5;
|
||
|
GtkWidget *GtkCombo_Hdd;
|
||
|
GtkWidget *entry1;
|
||
|
GtkWidget *hbuttonbox1;
|
||
|
GtkWidget *button1;
|
||
|
GtkWidget *button2;
|
||
|
|
||
|
Config = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||
|
gtk_object_set_data (GTK_OBJECT (Config), "Config", Config);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (Config), 5);
|
||
|
gtk_window_set_title (GTK_WINDOW (Config), "DEV9config");
|
||
|
gtk_window_set_position (GTK_WINDOW (Config), GTK_WIN_POS_CENTER);
|
||
|
|
||
|
vbox1 = gtk_vbox_new (FALSE, 5);
|
||
|
gtk_widget_ref (vbox1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "vbox1", vbox1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (vbox1);
|
||
|
gtk_container_add (GTK_CONTAINER (Config), vbox1);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5);
|
||
|
|
||
|
frame2 = gtk_frame_new ("Ethernet");
|
||
|
gtk_widget_ref (frame2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "frame2", frame2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (frame2);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox1), frame2, TRUE, TRUE, 0);
|
||
|
|
||
|
hbox1 = gtk_hbox_new (TRUE, 5);
|
||
|
gtk_widget_ref (hbox1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "hbox1", hbox1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (hbox1);
|
||
|
gtk_container_add (GTK_CONTAINER (frame2), hbox1);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5);
|
||
|
|
||
|
label4 = gtk_label_new ("Device:");
|
||
|
gtk_widget_ref (label4);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "label4", label4,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (label4);
|
||
|
gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0);
|
||
|
|
||
|
GtkCombo_Eth = gtk_combo_new ();
|
||
|
gtk_widget_ref (GtkCombo_Eth);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "GtkCombo_Eth", GtkCombo_Eth,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (GtkCombo_Eth);
|
||
|
gtk_box_pack_start (GTK_BOX (hbox1), GtkCombo_Eth, FALSE, FALSE, 0);
|
||
|
gtk_widget_set_usize (GtkCombo_Eth, 130, -2);
|
||
|
|
||
|
combo_entry1 = GTK_COMBO (GtkCombo_Eth)->entry;
|
||
|
gtk_widget_ref (combo_entry1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "combo_entry1", combo_entry1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (combo_entry1);
|
||
|
|
||
|
frame3 = gtk_frame_new ("Hdd");
|
||
|
gtk_widget_ref (frame3);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "frame3", frame3,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (frame3);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox1), frame3, TRUE, TRUE, 0);
|
||
|
|
||
|
hbox2 = gtk_hbox_new (TRUE, 5);
|
||
|
gtk_widget_ref (hbox2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "hbox2", hbox2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (hbox2);
|
||
|
gtk_container_add (GTK_CONTAINER (frame3), hbox2);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (hbox2), 5);
|
||
|
|
||
|
label5 = gtk_label_new ("Device:");
|
||
|
gtk_widget_ref (label5);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "label5", label5,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (label5);
|
||
|
gtk_box_pack_start (GTK_BOX (hbox2), label5, FALSE, FALSE, 0);
|
||
|
|
||
|
GtkCombo_Hdd = gtk_combo_new ();
|
||
|
gtk_widget_ref (GtkCombo_Hdd);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "GtkCombo_Hdd", GtkCombo_Hdd,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (GtkCombo_Hdd);
|
||
|
gtk_box_pack_start (GTK_BOX (hbox2), GtkCombo_Hdd, FALSE, FALSE, 0);
|
||
|
gtk_widget_set_usize (GtkCombo_Hdd, 130, -2);
|
||
|
|
||
|
entry1 = GTK_COMBO (GtkCombo_Hdd)->entry;
|
||
|
gtk_widget_ref (entry1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "entry1", entry1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (entry1);
|
||
|
|
||
|
hbuttonbox1 = gtk_hbutton_box_new ();
|
||
|
gtk_widget_ref (hbuttonbox1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "hbuttonbox1", hbuttonbox1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (hbuttonbox1);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, TRUE, TRUE, 0);
|
||
|
|
||
|
button1 = gtk_button_new_with_label ("Ok");
|
||
|
gtk_widget_ref (button1);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "button1", button1,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (button1);
|
||
|
gtk_container_add (GTK_CONTAINER (hbuttonbox1), button1);
|
||
|
GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
|
||
|
|
||
|
button2 = gtk_button_new_with_label ("Cancel");
|
||
|
gtk_widget_ref (button2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (Config), "button2", button2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (button2);
|
||
|
gtk_container_add (GTK_CONTAINER (hbuttonbox1), button2);
|
||
|
GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
|
||
|
|
||
|
gtk_signal_connect (GTK_OBJECT (button1), "clicked",
|
||
|
GTK_SIGNAL_FUNC (OnConf_Ok),
|
||
|
NULL);
|
||
|
gtk_signal_connect (GTK_OBJECT (button2), "clicked",
|
||
|
GTK_SIGNAL_FUNC (OnConf_Cancel),
|
||
|
NULL);
|
||
|
|
||
|
return Config;
|
||
|
}
|
||
|
|
||
|
GtkWidget*
|
||
|
create_About (void)
|
||
|
{
|
||
|
GtkWidget *About;
|
||
|
GtkWidget *vbox2;
|
||
|
GtkWidget *label2;
|
||
|
GtkWidget *label3;
|
||
|
GtkWidget *hbuttonbox2;
|
||
|
GtkWidget *button3;
|
||
|
|
||
|
About = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||
|
gtk_object_set_data (GTK_OBJECT (About), "About", About);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (About), 5);
|
||
|
gtk_window_set_title (GTK_WINDOW (About), "DEV9about");
|
||
|
gtk_window_set_position (GTK_WINDOW (About), GTK_WIN_POS_CENTER);
|
||
|
|
||
|
vbox2 = gtk_vbox_new (FALSE, 5);
|
||
|
gtk_widget_ref (vbox2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (About), "vbox2", vbox2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (vbox2);
|
||
|
gtk_container_add (GTK_CONTAINER (About), vbox2);
|
||
|
gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5);
|
||
|
|
||
|
label2 = gtk_label_new ("DEV9linuz Driver");
|
||
|
gtk_widget_ref (label2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (About), "label2", label2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (label2);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox2), label2, FALSE, FALSE, 0);
|
||
|
|
||
|
label3 = gtk_label_new ("Author: linuzappz <linuzappz@hotmail.com>");
|
||
|
gtk_widget_ref (label3);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (About), "label3", label3,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (label3);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox2), label3, FALSE, FALSE, 0);
|
||
|
gtk_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_LEFT);
|
||
|
|
||
|
hbuttonbox2 = gtk_hbutton_box_new ();
|
||
|
gtk_widget_ref (hbuttonbox2);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (About), "hbuttonbox2", hbuttonbox2,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (hbuttonbox2);
|
||
|
gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox2, TRUE, TRUE, 0);
|
||
|
|
||
|
button3 = gtk_button_new_with_label ("Ok");
|
||
|
gtk_widget_ref (button3);
|
||
|
gtk_object_set_data_full (GTK_OBJECT (About), "button3", button3,
|
||
|
(GtkDestroyNotify) gtk_widget_unref);
|
||
|
gtk_widget_show (button3);
|
||
|
gtk_container_add (GTK_CONTAINER (hbuttonbox2), button3);
|
||
|
GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
|
||
|
|
||
|
gtk_signal_connect (GTK_OBJECT (button3), "clicked",
|
||
|
GTK_SIGNAL_FUNC (OnAbout_Ok),
|
||
|
NULL);
|
||
|
|
||
|
return About;
|
||
|
}
|
||
|
|