Various Linux cleanups to match recent Windows commits.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@391 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
arcum42 2008-12-04 21:47:57 +00:00 committed by Gregory Hainaut
parent 3696028dbe
commit 389d42d83b
3 changed files with 78 additions and 152 deletions

View File

@ -33,9 +33,9 @@ void StartGui() {
MainWindow = create_MainWindow();
if (SVN_REV != 0)
gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" "SVN_REV" Watermoose");
gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" "SVN_REV" Playground");
else
gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" Watermoose");
gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" Playground");
// status bar
pStatusBar = gtk_statusbar_new ();
@ -435,8 +435,6 @@ void OnCpu_Ok(GtkButton *button, gpointer user_data) {
newopts |= PCSX2_VU1REC;
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_MTGS"))))
newopts |= PCSX2_GSMULTITHREAD;
//if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_CpuDC"))))
// newopts |= PCSX2_DUALCORE;
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkRadioButton_LimitNormal"))))
newopts |= PCSX2_FRAMELIMIT_NORMAL;
else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkRadioButton_LimitLimit"))))
@ -483,7 +481,6 @@ void OnConf_Cpu(GtkMenuItem *menuitem, gpointer user_data)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_VU0rec")), !!CHECK_VU0REC);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_VU1rec")), !!CHECK_VU1REC);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_MTGS")), !!CHECK_MULTIGS);
//gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkCheckButton_CpuDC")), !!CHECK_DUALCORE);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkRadioButton_LimitNormal")), CHECK_FRAMELIMIT==PCSX2_FRAMELIMIT_NORMAL);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkRadioButton_LimitLimit")), CHECK_FRAMELIMIT==PCSX2_FRAMELIMIT_LIMIT);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(CpuDlg, "GtkRadioButton_LimitFS")), CHECK_FRAMELIMIT==PCSX2_FRAMELIMIT_SKIP);
@ -687,11 +684,9 @@ void on_Speed_Hacks(GtkMenuItem *menuitem, gpointer user_data)
gtk_combo_box_set_active(GTK_COMBO_BOX(lookup_widget(SpeedHacksDlg, "ComboFPUOverflow")), index);
set_checked(SpeedHacksDlg, "check_EE_Double_Sync", (Config.Hacks & FLAG_EE_2_SYNC));
set_checked(SpeedHacksDlg, "check_Tight_SPU_Sync", (Config.Hacks & FLAG_TIGHT_SPU_SYNC));
set_checked(SpeedHacksDlg, "check_Disable_Underflow", (Config.Hacks & FLAG_NO_UNDERFLOW));
set_checked(SpeedHacksDlg, "check_IOP_Double_Sync", (Config.Hacks & FLAG_IOP_2_SYNC));
set_checked(SpeedHacksDlg, "check_Triple_Sync",(Config.Hacks & FLAG_TRIPLE_SYNC));
//set_checked(SpeedHacksDlg, "check_EE_Fast_Branches", (Config.Hacks & FLAG_FAST_BRANCHES));
set_checked(SpeedHacksDlg, "check_Disable_VU_Flags", (Config.Hacks & FLAG_NO_VU_FLAGS));
set_checked(SpeedHacksDlg, "check_Disable_FPU_Flags", (Config.Hacks & FLAG_NO_FPU_FLAGS));
set_checked(SpeedHacksDlg, "check_ESC_Hack", (Config.Hacks & FLAG_ESC));
@ -721,7 +716,6 @@ void on_Speed_Hack_Normal(GtkButton *button, gpointer user_data)
gtk_combo_box_set_active(GTK_COMBO_BOX(lookup_widget(SpeedHacksDlg, "ComboVUOverflow")), 1);
gtk_combo_box_set_active(GTK_COMBO_BOX(lookup_widget(SpeedHacksDlg, "ComboFPUOverflow")), 1);
set_checked(SpeedHacksDlg, "check_Tight_SPU_Sync", FALSE);
set_checked(SpeedHacksDlg, "check_Disable_Underflow", FALSE);
set_checked(SpeedHacksDlg, "check_IOP_Double_Sync", FALSE);
set_checked(SpeedHacksDlg, "check_Triple_Sync", FALSE);
@ -736,7 +730,6 @@ void on_Speed_Hack_Speed(GtkButton *button, gpointer user_data)
gtk_combo_box_set_active(GTK_COMBO_BOX(lookup_widget(SpeedHacksDlg, "ComboVUOverflow")), 0);
gtk_combo_box_set_active(GTK_COMBO_BOX(lookup_widget(SpeedHacksDlg, "ComboFPUOverflow")), 0);
set_checked(SpeedHacksDlg, "check_Tight_SPU_Sync", FALSE);
set_checked(SpeedHacksDlg, "check_Disable_Underflow", TRUE);
set_checked(SpeedHacksDlg, "check_IOP_Double_Sync", TRUE);
set_checked(SpeedHacksDlg, "check_Triple_Sync", FALSE);
@ -763,7 +756,6 @@ void on_Speed_Hack_OK(GtkButton *button, gpointer user_data)
break;
}
Config.Hacks |= is_checked(SpeedHacksDlg, "check_Tight_SPU_Sync") ? FLAG_TIGHT_SPU_SYNC : 0;
Config.Hacks |= is_checked(SpeedHacksDlg, "check_Disable_Underflow") ? FLAG_NO_UNDERFLOW : 0;
Config.Hacks |= is_checked(SpeedHacksDlg, "check_IOP_Double_Sync") ? FLAG_IOP_2_SYNC : 0;
Config.Hacks |= is_checked(SpeedHacksDlg, "check_Triple_Sync") ? FLAG_TRIPLE_SYNC : 0;

View File

@ -321,7 +321,6 @@ create_SpeedHacksDlg (void)
GtkWidget *frame14;
GtkWidget *alignment9;
GtkWidget *vbox33;
GtkWidget *check_Tight_SPU_Sync;
GtkWidget *check_ESC_Hack;
GtkWidget *label47;
GtkWidget *dialog_action_area3;
@ -472,11 +471,6 @@ create_SpeedHacksDlg (void)
gtk_widget_show (vbox33);
gtk_container_add (GTK_CONTAINER (alignment9), vbox33);
check_Tight_SPU_Sync = gtk_check_button_new_with_mnemonic (_("Tighter SPU2 Sync (Try this if you have stuttering audio) - a bit slower."));
gtk_widget_show (check_Tight_SPU_Sync);
gtk_box_pack_start (GTK_BOX (vbox33), check_Tight_SPU_Sync, FALSE, FALSE, 0);
gtk_widget_set_sensitive (check_Tight_SPU_Sync, FALSE);
check_ESC_Hack = gtk_check_button_new_with_mnemonic (_("Escape Hack - Use Esc key to fully exit PCSX2."));
gtk_widget_show (check_ESC_Hack);
gtk_box_pack_start (GTK_BOX (vbox33), check_ESC_Hack, FALSE, FALSE, 0);
@ -563,7 +557,6 @@ create_SpeedHacksDlg (void)
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, frame14, "frame14");
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, alignment9, "alignment9");
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, vbox33, "vbox33");
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_Tight_SPU_Sync, "check_Tight_SPU_Sync");
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_ESC_Hack, "check_ESC_Hack");
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label47, "label47");
GLADE_HOOKUP_OBJECT_NO_REF (SpeedHacksDlg, dialog_action_area3, "dialog_action_area3");
@ -2455,13 +2448,11 @@ create_AboutDlg (void)
{
GtkWidget *AboutDlg;
GtkWidget *vbox2;
GtkWidget *hbox1;
GtkWidget *vbox4;
GtkWidget *GtkAbout_LabelVersion;
GtkWidget *frame1;
GtkWidget *vbox6;
GtkWidget *GtkAbout_LabelAuthors;
GtkWidget *pixmap1;
GtkWidget *frame2;
GtkWidget *vbox5;
GtkWidget *GtkAbout_LabelGreets;
@ -2476,13 +2467,9 @@ create_AboutDlg (void)
gtk_widget_show (vbox2);
gtk_container_add (GTK_CONTAINER (AboutDlg), vbox2);
hbox1 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox1);
gtk_box_pack_start (GTK_BOX (vbox2), hbox1, TRUE, TRUE, 0);
vbox4 = gtk_vbox_new (TRUE, 0);
vbox4 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox4);
gtk_box_pack_start (GTK_BOX (hbox1), vbox4, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox2), vbox4, TRUE, TRUE, 0);
GtkAbout_LabelVersion = gtk_label_new (_("PCSX2\n\nVersion x.x"));
gtk_widget_show (GtkAbout_LabelVersion);
@ -2503,10 +2490,7 @@ create_AboutDlg (void)
gtk_widget_show (GtkAbout_LabelAuthors);
gtk_box_pack_start (GTK_BOX (vbox6), GtkAbout_LabelAuthors, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (GtkAbout_LabelAuthors), GTK_JUSTIFY_CENTER);
pixmap1 = create_pixmap (AboutDlg, "pcsxAbout.xpm");
gtk_widget_show (pixmap1);
gtk_box_pack_start (GTK_BOX (hbox1), pixmap1, TRUE, TRUE, 0);
gtk_label_set_line_wrap (GTK_LABEL (GtkAbout_LabelAuthors), TRUE);
frame2 = gtk_frame_new (NULL);
gtk_widget_show (frame2);
@ -2520,12 +2504,13 @@ create_AboutDlg (void)
GtkAbout_LabelGreets = gtk_label_new (_("greets to..."));
gtk_widget_show (GtkAbout_LabelGreets);
gtk_box_pack_start (GTK_BOX (vbox5), GtkAbout_LabelGreets, TRUE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox5), GtkAbout_LabelGreets, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (GtkAbout_LabelGreets), GTK_JUSTIFY_CENTER);
gtk_label_set_line_wrap (GTK_LABEL (GtkAbout_LabelGreets), TRUE);
hbuttonbox1 = gtk_hbutton_box_new ();
gtk_widget_show (hbuttonbox1);
gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox1, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox1, FALSE, FALSE, 0);
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_EDGE);
GtkButton_Ok = gtk_button_new_from_stock ("gtk-ok");
@ -2540,13 +2525,11 @@ create_AboutDlg (void)
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (AboutDlg, AboutDlg, "AboutDlg");
GLADE_HOOKUP_OBJECT (AboutDlg, vbox2, "vbox2");
GLADE_HOOKUP_OBJECT (AboutDlg, hbox1, "hbox1");
GLADE_HOOKUP_OBJECT (AboutDlg, vbox4, "vbox4");
GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelVersion, "GtkAbout_LabelVersion");
GLADE_HOOKUP_OBJECT (AboutDlg, frame1, "frame1");
GLADE_HOOKUP_OBJECT (AboutDlg, vbox6, "vbox6");
GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelAuthors, "GtkAbout_LabelAuthors");
GLADE_HOOKUP_OBJECT (AboutDlg, pixmap1, "pixmap1");
GLADE_HOOKUP_OBJECT (AboutDlg, frame2, "frame2");
GLADE_HOOKUP_OBJECT (AboutDlg, vbox5, "vbox5");
GLADE_HOOKUP_OBJECT (AboutDlg, GtkAbout_LabelGreets, "GtkAbout_LabelGreets");
@ -2868,7 +2851,7 @@ create_MainWindow (void)
GtkMenuItem_Help_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_Help), GtkMenuItem_Help_menu);
GtkMenuItem_About = gtk_menu_item_new_with_mnemonic (_("&About..."));
GtkMenuItem_About = gtk_menu_item_new_with_mnemonic (_("About PCSX2 - Playground..."));
gtk_widget_show (GtkMenuItem_About);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_Help_menu), GtkMenuItem_About);
@ -3626,7 +3609,7 @@ create_CpuDlg (void)
gtk_frame_set_label_widget (GTK_FRAME (frame8), label35);
gtk_label_set_use_markup (GTK_LABEL (label35), TRUE);
GtkCheckButton_EERec = gtk_check_button_new_with_mnemonic (_("EERec - EE/IOP recompiler"));
GtkCheckButton_EERec = gtk_check_button_new_with_mnemonic (_("EERec - EE/IOP recompiler (Need MMX/SSE/SSE2)"));
gtk_widget_show (GtkCheckButton_EERec);
gtk_box_pack_start (GTK_BOX (vbox47), GtkCheckButton_EERec, FALSE, FALSE, 0);

View File

@ -1129,26 +1129,6 @@ Enabled (Helps SPS, Slow)</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="check_Tight_SPU_Sync">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Tighter SPU2 Sync (Try this if you have stuttering audio) - a bit slower.</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="check_ESC_Hack">
<property name="visible">True</property>
@ -4885,16 +4865,10 @@ Configure them here.&lt;/b&gt;</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="homogeneous">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
@ -4946,7 +4920,7 @@ Version x.x</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
@ -4980,29 +4954,6 @@ Version x.x</property>
</packing>
</child>
<child>
<widget class="GtkImage" id="pixmap1">
<property name="visible">True</property>
<property name="pixbuf">pcsxAbout.xpm</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="frame2">
<property name="border_width">5</property>
@ -5025,7 +4976,7 @@ Version x.x</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
@ -5038,7 +4989,7 @@ Version x.x</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
@ -5074,7 +5025,7 @@ Version x.x</property>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
@ -5584,7 +5535,7 @@ Version x.x</property>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_About">
<property name="visible">True</property>
<property name="label" translatable="yes">&amp;About...</property>
<property name="label" translatable="yes">About PCSX2 - Playground...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnHelp_About"/>
</widget>
@ -6917,7 +6868,7 @@ Version x.x</property>
<widget class="GtkCheckButton" id="GtkCheckButton_EERec">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">EERec - EE/IOP recompiler</property>
<property name="label" translatable="yes">EERec - EE/IOP recompiler (Need MMX/SSE/SSE2)</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>