2009-02-09 21:15:56 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
2009-05-02 02:29:48 +00:00
|
|
|
#include <stdio.h>
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "callbacks.h"
|
|
|
|
#include "interface.h"
|
|
|
|
#include "support.h"
|
|
|
|
|
2009-05-02 02:29:48 +00:00
|
|
|
#define GLADE_HOOKUP_OBJECT(component,widget,name) \
|
|
|
|
g_object_set_data_full (G_OBJECT (component), name, \
|
|
|
|
gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
|
|
|
|
|
|
|
|
#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
|
|
|
|
g_object_set_data (G_OBJECT (component), name, widget)
|
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
GtkWidget*
|
|
|
|
create_Config (void)
|
|
|
|
{
|
|
|
|
GtkWidget *Config;
|
|
|
|
GtkWidget *vbox1;
|
|
|
|
GtkWidget *frame3;
|
2009-05-15 06:08:35 +00:00
|
|
|
GtkWidget *alignment1;
|
|
|
|
GtkWidget *check_logging;
|
2009-05-02 02:29:48 +00:00
|
|
|
GtkWidget *label15;
|
2009-05-15 06:08:35 +00:00
|
|
|
GtkWidget *hbuttonbox3;
|
|
|
|
GtkWidget *button4;
|
|
|
|
GtkWidget *button5;
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
Config = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (Config, "Config");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (Config), 5);
|
2009-05-15 06:08:35 +00:00
|
|
|
gtk_window_set_title (GTK_WINDOW (Config), _("USBconfig"));
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
vbox1 = gtk_vbox_new (FALSE, 5);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (vbox1, "vbox1");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (vbox1);
|
|
|
|
gtk_container_add (GTK_CONTAINER (Config), vbox1);
|
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (vbox1), 5);
|
|
|
|
|
2009-05-02 02:29:48 +00:00
|
|
|
frame3 = gtk_frame_new (NULL);
|
|
|
|
gtk_widget_set_name (frame3, "frame3");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (frame3);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox1), frame3, TRUE, TRUE, 0);
|
|
|
|
|
2009-05-15 06:08:35 +00:00
|
|
|
alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
|
|
|
|
gtk_widget_set_name (alignment1, "alignment1");
|
|
|
|
gtk_widget_show (alignment1);
|
|
|
|
gtk_container_add (GTK_CONTAINER (frame3), alignment1);
|
|
|
|
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0);
|
|
|
|
|
|
|
|
check_logging = gtk_check_button_new_with_mnemonic (_("Enable Logging"));
|
|
|
|
gtk_widget_set_name (check_logging, "check_logging");
|
|
|
|
gtk_widget_show (check_logging);
|
|
|
|
gtk_container_add (GTK_CONTAINER (alignment1), check_logging);
|
|
|
|
|
|
|
|
label15 = gtk_label_new (_("<b>Logging</b>"));
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (label15, "label15");
|
|
|
|
gtk_widget_show (label15);
|
|
|
|
gtk_frame_set_label_widget (GTK_FRAME (frame3), label15);
|
2009-05-15 06:08:35 +00:00
|
|
|
gtk_label_set_use_markup (GTK_LABEL (label15), TRUE);
|
|
|
|
|
|
|
|
hbuttonbox3 = gtk_hbutton_box_new ();
|
|
|
|
gtk_widget_set_name (hbuttonbox3, "hbuttonbox3");
|
|
|
|
gtk_widget_show (hbuttonbox3);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox3, TRUE, TRUE, 0);
|
|
|
|
gtk_box_set_spacing (GTK_BOX (hbuttonbox3), 30);
|
|
|
|
|
|
|
|
button4 = gtk_button_new_with_mnemonic (_("Ok"));
|
|
|
|
gtk_widget_set_name (button4, "button4");
|
|
|
|
gtk_widget_show (button4);
|
|
|
|
gtk_container_add (GTK_CONTAINER (hbuttonbox3), button4);
|
|
|
|
GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT);
|
|
|
|
|
|
|
|
button5 = gtk_button_new_with_mnemonic (_("Cancel"));
|
|
|
|
gtk_widget_set_name (button5, "button5");
|
|
|
|
gtk_widget_show (button5);
|
|
|
|
gtk_container_add (GTK_CONTAINER (hbuttonbox3), button5);
|
|
|
|
GTK_WIDGET_SET_FLAGS (button5, GTK_CAN_DEFAULT);
|
|
|
|
|
|
|
|
g_signal_connect ((gpointer) button4, "clicked",
|
2009-05-02 02:29:48 +00:00
|
|
|
G_CALLBACK (OnConf_Ok),
|
|
|
|
NULL);
|
2009-05-15 06:08:35 +00:00
|
|
|
g_signal_connect ((gpointer) button5, "clicked",
|
2009-05-02 02:29:48 +00:00
|
|
|
G_CALLBACK (OnConf_Cancel),
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
/* Store pointers to all widgets, for use by lookup_widget(). */
|
|
|
|
GLADE_HOOKUP_OBJECT_NO_REF (Config, Config, "Config");
|
|
|
|
GLADE_HOOKUP_OBJECT (Config, vbox1, "vbox1");
|
|
|
|
GLADE_HOOKUP_OBJECT (Config, frame3, "frame3");
|
2009-05-15 06:08:35 +00:00
|
|
|
GLADE_HOOKUP_OBJECT (Config, alignment1, "alignment1");
|
|
|
|
GLADE_HOOKUP_OBJECT (Config, check_logging, "check_logging");
|
2009-05-02 02:29:48 +00:00
|
|
|
GLADE_HOOKUP_OBJECT (Config, label15, "label15");
|
2009-05-15 06:08:35 +00:00
|
|
|
GLADE_HOOKUP_OBJECT (Config, hbuttonbox3, "hbuttonbox3");
|
|
|
|
GLADE_HOOKUP_OBJECT (Config, button4, "button4");
|
|
|
|
GLADE_HOOKUP_OBJECT (Config, button5, "button5");
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
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);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (About, "About");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (About), 5);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_window_set_title (GTK_WINDOW (About), _("DEV9about"));
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
vbox2 = gtk_vbox_new (FALSE, 5);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (vbox2, "vbox2");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (vbox2);
|
|
|
|
gtk_container_add (GTK_CONTAINER (About), vbox2);
|
|
|
|
gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5);
|
|
|
|
|
2009-05-15 06:08:35 +00:00
|
|
|
label2 = gtk_label_new (_("USB Null Driver"));
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (label2, "label2");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (label2);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox2), label2, FALSE, FALSE, 0);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_CENTER);
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2009-05-15 06:08:35 +00:00
|
|
|
label3 = gtk_label_new (_("Original Author: linuzappz <linuzappz@hotmail.com>\nRevised by arcum42@gmail.com."));
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (label3, "label3");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (label3);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox2), label3, FALSE, FALSE, 0);
|
|
|
|
|
|
|
|
hbuttonbox2 = gtk_hbutton_box_new ();
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_widget_set_name (hbuttonbox2, "hbuttonbox2");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (hbuttonbox2);
|
|
|
|
gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox2, TRUE, TRUE, 0);
|
2009-05-02 02:29:48 +00:00
|
|
|
gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 30);
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2009-05-02 02:29:48 +00:00
|
|
|
button3 = gtk_button_new_with_mnemonic (_("Ok"));
|
|
|
|
gtk_widget_set_name (button3, "button3");
|
2009-02-09 21:15:56 +00:00
|
|
|
gtk_widget_show (button3);
|
|
|
|
gtk_container_add (GTK_CONTAINER (hbuttonbox2), button3);
|
|
|
|
GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
|
|
|
|
|
2009-05-02 02:29:48 +00:00
|
|
|
g_signal_connect ((gpointer) button3, "clicked",
|
|
|
|
G_CALLBACK (OnAbout_Ok),
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
/* Store pointers to all widgets, for use by lookup_widget(). */
|
|
|
|
GLADE_HOOKUP_OBJECT_NO_REF (About, About, "About");
|
|
|
|
GLADE_HOOKUP_OBJECT (About, vbox2, "vbox2");
|
|
|
|
GLADE_HOOKUP_OBJECT (About, label2, "label2");
|
|
|
|
GLADE_HOOKUP_OBJECT (About, label3, "label3");
|
|
|
|
GLADE_HOOKUP_OBJECT (About, hbuttonbox2, "hbuttonbox2");
|
|
|
|
GLADE_HOOKUP_OBJECT (About, button3, "button3");
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
return About;
|
|
|
|
}
|
|
|
|
|