From 0e191c285677600f9852bff10e2bede5799883fa Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 29 Sep 2002 17:57:04 +0000 Subject: Petits changements ;-) --- PcsxSrc/Linux/GtkGui.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'PcsxSrc/Linux/GtkGui.c') diff --git a/PcsxSrc/Linux/GtkGui.c b/PcsxSrc/Linux/GtkGui.c index c3d8f4f..03ab7a1 100644 --- a/PcsxSrc/Linux/GtkGui.c +++ b/PcsxSrc/Linux/GtkGui.c @@ -64,6 +64,7 @@ void OnHelp_About(); GtkWidget *Window = NULL; GtkWidget *ConfDlg; +GtkWidget *DebugDlg; GtkWidget *AboutDlg; GtkWidget *FileSel; @@ -803,6 +804,9 @@ void OnCpu_Ok() { psxCpu->Reset(); } + Btn = lookup_widget(CpuDlg, "GtkCheckButton_CpuLog"); + Config.Log = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Btn)); + Btn = lookup_widget(CpuDlg, "GtkCheckButton_PsxOut"); Config.PsxOut = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Btn)); @@ -858,6 +862,9 @@ void OnConf_Cpu() { Btn = lookup_widget(CpuDlg, "GtkCheckButton_Cpu"); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.Cpu); + Btn = lookup_widget(CpuDlg, "GtkCheckButton_CpuLog"); + gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.Log); + Btn = lookup_widget(CpuDlg, "GtkCheckButton_PsxOut"); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(Btn), Config.PsxOut); @@ -1093,6 +1100,20 @@ void OnConf_Conf() { if (Window != NULL) gtk_widget_set_sensitive(Window, FALSE); gtk_main(); } + +void OnDebug() { + DebugDlg = create_DebugDlg(); + gtk_widget_show_all(DebugDlg); + + if (Window != NULL) gtk_widget_set_sensitive(Window, FALSE); + gtk_main(); +} + +void OnDebug_Ok() { + gtk_widget_destroy(DebugDlg); + if (Window != NULL) gtk_widget_set_sensitive(Window, TRUE); + gtk_main_quit(); +} void OnHelp_Help() { } -- cgit v1.2.3