diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-29 09:53:03 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-29 09:53:03 +0000 |
| commit | 26144025a450ab2adf200e751ace02ff3dd6f565 (patch) | |
| tree | 1b1dc0223c32017c3d985f840f57e4587284463d /plugins/dfsound | |
| parent | 8f670bd1cb89e1e867b6e86208d670489f905429 (diff) | |
| download | pcsxr-26144025a450ab2adf200e751ace02ff3dd6f565.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@33750 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfsound')
| -rw-r--r-- | plugins/dfsound/spucfg-0.1df/dfsound.glade2 | 25 | ||||
| -rw-r--r-- | plugins/dfsound/spucfg-0.1df/main.c | 6 |
2 files changed, 25 insertions, 6 deletions
diff --git a/plugins/dfsound/spucfg-0.1df/dfsound.glade2 b/plugins/dfsound/spucfg-0.1df/dfsound.glade2 index 12d3e8ac..f50bb8bf 100644 --- a/plugins/dfsound/spucfg-0.1df/dfsound.glade2 +++ b/plugins/dfsound/spucfg-0.1df/dfsound.glade2 @@ -1,7 +1,7 @@ <?xml version="1.0"?> <glade-interface> - <!-- interface-requires gtk+ 2.6 --> - <!-- interface-naming-policy toplevel-contextual --> + <!-- interface-requires gtk+ 2.8 --> + <!-- interface-naming-policy project-wide --> <widget class="GtkWindow" id="CfgWnd"> <property name="visible">True</property> <property name="border_width">10</property> @@ -279,10 +279,25 @@ Cubic</property> <child> <widget class="GtkHButtonBox" id="hbuttonbox1"> <property name="visible">True</property> + <property name="spacing">12</property> <property name="layout_style">end</property> <child> - <widget class="GtkButton" id="btn_close"> - <property name="label">gtk-close</property> + <widget class="GtkButton" id="btn_cancel"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="use_stock">True</property> + </widget> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <widget class="GtkButton" id="btn_ok"> + <property name="label">gtk-ok</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> @@ -292,7 +307,7 @@ Cubic</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">0</property> + <property name="position">1</property> </packing> </child> </widget> diff --git a/plugins/dfsound/spucfg-0.1df/main.c b/plugins/dfsound/spucfg-0.1df/main.c index 8008e87d..1b910372 100644 --- a/plugins/dfsound/spucfg-0.1df/main.c +++ b/plugins/dfsound/spucfg-0.1df/main.c @@ -213,7 +213,11 @@ int main(int argc, char *argv[]) g_signal_connect_data(GTK_OBJECT(widget), "delete_event", GTK_SIGNAL_FUNC(on_config_clicked), NULL, NULL, G_CONNECT_AFTER); - widget = glade_xml_get_widget(xml, "btn_close"); + widget = glade_xml_get_widget(xml, "btn_cancel"); + g_signal_connect_data(GTK_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(on_config_clicked), NULL, NULL, G_CONNECT_AFTER); + + widget = glade_xml_get_widget(xml, "btn_ok"); g_signal_connect_data(GTK_OBJECT(widget), "clicked", GTK_SIGNAL_FUNC(SaveConfig), xml, NULL, G_CONNECT_AFTER); |
