diff options
| author | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-17 17:32:35 +0300 |
|---|---|---|
| committer | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-17 17:32:35 +0300 |
| commit | a96eefdf0f10a9a051e65f6e88a24dc3abe40fc5 (patch) | |
| tree | c12847ff994c574a588f7b79a5720f322b9133ef /plugins/dfxvideo | |
| parent | aa295feb0d95d75f10f4ac097fdb1139428e1220 (diff) | |
| download | pcsxr-a96eefdf0f10a9a051e65f6e88a24dc3abe40fc5.tar.gz | |
* Bring pluing Linux(gtk) interfaces up to date.
Diffstat (limited to 'plugins/dfxvideo')
| -rwxr-xr-x | plugins/dfxvideo/Makefile.am | 26 | ||||
| -rw-r--r--[-rwxr-xr-x] | plugins/dfxvideo/gpucfg-0.1df/dfxvideo.ui | 280 | ||||
| -rwxr-xr-x | plugins/dfxvideo/gpucfg-0.1df/main.c | 3 |
3 files changed, 141 insertions, 168 deletions
diff --git a/plugins/dfxvideo/Makefile.am b/plugins/dfxvideo/Makefile.am index 3036da5f..86e8ef3a 100755 --- a/plugins/dfxvideo/Makefile.am +++ b/plugins/dfxvideo/Makefile.am @@ -26,9 +26,29 @@ libDFXVideo_la_LDFLAGS = -module -avoid-version libDFXVideo_la_LIBADD = -lX11 -lXv -lXext -lm bin_PROGRAMS = cfgDFXVideo -cfgDFXVideo_SOURCES = gpucfg-0.1df/main.c +cfgDFXVideo_SOURCES = gpucfg-0.1df/main.c GtkResources.c GtkResources.h cfgDFXVideo_LDADD = $(GTK3_LIBS) -lXext -glade_DATA = gpucfg-0.1df/dfxvideo.ui -gladedir = $(datadir)/psemu/ +# gresource.xml is dynamically generated in CMake. Mirror that here in a static way. +define gresource_xml = +<?xml version="1.0" encoding="UTF-8"?> +<gresources> + <gresource prefix="/org/pcsxr/dfxvideo"> + <file>dfxvideo.ui</file> + </gresource> +</gresources> +endef + +dfxvideo.gresource.xml: + $(file >$@,$(gresource_xml)) +dfxvideo_gresource: dfxvideo.gresource.xml + $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/gpucfg-0.1df --generate-dependencies $(srcdir)/$<) +GtkResources.c: dfxvideo.gresource.xml $(dfxvideo_gresource) + $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/gpucfg-0.1df --generate-source --c-name dfxvideo $< +GtkResources.h: dfxvideo.gresource.xml $(dfxvideo_gresource) + $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/gpucfg-0.1df --generate-header --c-name dfxvideo $< + + +#glade_DATA = gpucfg-0.1df/dfxvideo.ui +#gladedir = $(datadir)/psemu/ EXTRA_DIST = $(glade_DATA) diff --git a/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.ui b/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.ui index 6acee0d6..54633d89 100755..100644 --- a/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.ui +++ b/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.ui @@ -1,6 +1,85 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.19.0 --> <interface> - <!-- interface-requires gtk+ 3.0 --> + <requires lib="gtk+" version="3.0"/> + <object class="GtkListStore" id="liststoreDither"> + <columns> + <!-- column-name Item --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">0: Off (fastest)</col> + </row> + <row> + <col id="0" translatable="yes">1: Game dependant</col> + </row> + <row> + <col id="0" translatable="yes">2: Always</col> + </row> + </data> + </object> + <object class="GtkListStore" id="liststoreRes"> + <columns> + <!-- column-name Item --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">320x240</col> + </row> + <row> + <col id="0" translatable="yes">640x480</col> + </row> + <row> + <col id="0" translatable="yes">800x600</col> + </row> + <row> + <col id="0" translatable="yes">1024x768</col> + </row> + <row> + <col id="0" translatable="yes">1152x864</col> + </row> + <row> + <col id="0" translatable="yes">1280x1024</col> + </row> + <row> + <col id="0" translatable="yes">1600x1200</col> + </row> + </data> + </object> + <object class="GtkListStore" id="liststoreStretching"> + <columns> + <!-- column-name Item --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">0: None</col> + </row> + <row> + <col id="0" translatable="yes">1: 2xSai</col> + </row> + <row> + <col id="0" translatable="yes">2: 2xSuperSai</col> + </row> + <row> + <col id="0" translatable="yes">3: SuperEagle</col> + </row> + <row> + <col id="0" translatable="yes">4: Scale2x</col> + </row> + <row> + <col id="0" translatable="yes">5: Scale3x</col> + </row> + <row> + <col id="0" translatable="yes">6: HQ2X</col> + </row> + <row> + <col id="0" translatable="yes">7: HQ3X</col> + </row> + </data> + </object> <object class="GtkWindow" id="CfgWnd"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -12,9 +91,10 @@ <property name="type_hint">dialog</property> <signal name="destroy" handler="on_CfgWnd_destroy" swapped="no"/> <child> - <object class="GtkVBox" id="vbox1"> + <object class="GtkBox" id="vbox1"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="orientation">vertical</property> <property name="spacing">6</property> <child> <object class="GtkFrame" id="frame1"> @@ -30,55 +110,50 @@ <property name="left_padding">5</property> <property name="right_padding">5</property> <child> - <object class="GtkVBox" id="vbox7"> + <object class="GtkBox" id="vbox7"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="orientation">vertical</property> <child> - <object class="GtkTable" id="table1"> + <object class="GtkGrid" id="table1"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="n_rows">3</property> - <property name="n_columns">2</property> - <property name="column_spacing">30</property> <property name="row_spacing">6</property> + <property name="column_homogeneous">True</property> <child> <object class="GtkLabel" id="label14"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes">Initial Window Size:</property> + <property name="xalign">0</property> </object> <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> + <property name="left_attach">0</property> + <property name="top_attach">0</property> </packing> </child> <child> <object class="GtkLabel" id="label15"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes">Stretching:</property> + <property name="xalign">0</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> <object class="GtkLabel" id="label16"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes">Dithering:</property> + <property name="xalign">0</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -96,11 +171,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options">GTK_FILL</property> </packing> </child> <child> @@ -118,15 +189,11 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options">GTK_FILL</property> </packing> </child> <child> - <object class="GtkHBox" id="hbox2"> + <object class="GtkBox" id="hbox2"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="spacing">10</property> @@ -170,7 +237,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> + <property name="top_attach">0</property> </packing> </child> </object> @@ -181,7 +248,7 @@ </packing> </child> <child> - <object class="GtkHBox" id="hbox1"> + <object class="GtkBox" id="hbox1"> <property name="visible">True</property> <property name="can_focus">False</property> <child> @@ -232,9 +299,10 @@ <property name="left_padding">5</property> <property name="right_padding">5</property> <child> - <object class="GtkVBox" id="vbox3"> + <object class="GtkBox" id="vbox3"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="orientation">vertical</property> <child> <object class="GtkCheckButton" id="checkShowFPS"> <property name="label" translatable="yes">Show FPS</property> @@ -270,10 +338,9 @@ </packing> </child> <child> - <object class="GtkTable" id="table2"> + <object class="GtkGrid" id="table2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="n_columns">3</property> <property name="column_spacing">12</property> <child> <object class="GtkCheckButton" id="checkSetFPS"> @@ -287,8 +354,8 @@ <property name="draw_indicator">True</property> </object> <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> + <property name="left_attach">0</property> + <property name="top_attach">0</property> </packing> </child> <child> @@ -300,9 +367,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="x_options"></property> - <property name="y_options"></property> + <property name="top_attach">0</property> </packing> </child> <child> @@ -319,7 +384,7 @@ </object> <packing> <property name="left_attach">2</property> - <property name="right_attach">3</property> + <property name="top_attach">0</property> </packing> </child> </object> @@ -354,9 +419,10 @@ <property name="left_padding">5</property> <property name="right_padding">5</property> <child> - <object class="GtkVBox" id="vbox4"> + <object class="GtkBox" id="vbox4"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="orientation">vertical</property> <child> <object class="GtkCheckButton" id="checkUseFixes"> <property name="label" translatable="yes">Use game fixes</property> @@ -379,15 +445,11 @@ <property name="can_focus">False</property> <property name="left_padding">19</property> <child> - <object class="GtkTable" id="table_fixes"> + <object class="GtkGrid" id="table_fixes"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="n_rows">6</property> - <property name="n_columns">2</property> <property name="column_spacing">16</property> - <child> - <placeholder/> - </child> + <property name="column_homogeneous">True</property> <child> <object class="GtkCheckButton" id="checkFix5"> <property name="label" translatable="yes">Disable CPU Saving</property> @@ -400,10 +462,8 @@ <property name="draw_indicator">True</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">4</property> - <property name="bottom_attach">5</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -418,8 +478,8 @@ <property name="draw_indicator">True</property> </object> <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> + <property name="left_attach">0</property> + <property name="top_attach">0</property> </packing> </child> <child> @@ -434,10 +494,8 @@ <property name="draw_indicator">True</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">5</property> - <property name="bottom_attach">6</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -452,10 +510,8 @@ <property name="draw_indicator">True</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -470,10 +526,8 @@ <property name="draw_indicator">True</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -488,10 +542,8 @@ <property name="draw_indicator">True</property> </object> <packing> + <property name="left_attach">0</property> <property name="top_attach">3</property> - <property name="bottom_attach">4</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -508,9 +560,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> + <property name="top_attach">0</property> </packing> </child> <child> @@ -527,11 +577,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -548,11 +594,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -569,11 +611,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">3</property> - <property name="bottom_attach">4</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -590,11 +628,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">4</property> - <property name="bottom_attach">5</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> <child> @@ -611,11 +645,7 @@ </object> <packing> <property name="left_attach">1</property> - <property name="right_attach">2</property> <property name="top_attach">5</property> - <property name="bottom_attach">6</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> </packing> </child> </object> @@ -639,7 +669,7 @@ </packing> </child> <child> - <object class="GtkHButtonBox" id="hbuttonbox1"> + <object class="GtkButtonBox" id="hbuttonbox1"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="spacing">12</property> @@ -669,82 +699,4 @@ </object> </child> </object> - <object class="GtkListStore" id="liststoreDither"> - <columns> - <!-- column-name Item --> - <column type="gchararray"/> - </columns> - <data> - <row> - <col id="0" translatable="yes">0: Off (fastest)</col> - </row> - <row> - <col id="0" translatable="yes">1: Game dependant</col> - </row> - <row> - <col id="0" translatable="yes">2: Always</col> - </row> - </data> - </object> - <object class="GtkListStore" id="liststoreRes"> - <columns> - <!-- column-name Item --> - <column type="gchararray"/> - </columns> - <data> - <row> - <col id="0" translatable="yes">320x240</col> - </row> - <row> - <col id="0" translatable="yes">640x480</col> - </row> - <row> - <col id="0" translatable="yes">800x600</col> - </row> - <row> - <col id="0" translatable="yes">1024x768</col> - </row> - <row> - <col id="0" translatable="yes">1152x864</col> - </row> - <row> - <col id="0" translatable="yes">1280x1024</col> - </row> - <row> - <col id="0" translatable="yes">1600x1200</col> - </row> - </data> - </object> - <object class="GtkListStore" id="liststoreStretching"> - <columns> - <!-- column-name Item --> - <column type="gchararray"/> - </columns> - <data> - <row> - <col id="0" translatable="yes">0: None</col> - </row> - <row> - <col id="0" translatable="yes">1: 2xSai</col> - </row> - <row> - <col id="0" translatable="yes">2: 2xSuperSai</col> - </row> - <row> - <col id="0" translatable="yes">3: SuperEagle</col> - </row> - <row> - <col id="0" translatable="yes">4: Scale2x</col> - </row> - <row> - <col id="0" translatable="yes">5: Scale3x</col> - </row> - <row> - <col id="0" translatable="yes">6: HQ2X</col> - </row> - <row> - <col id="0" translatable="yes">7: HQ3X</col> - </row> - </data> - </object> </interface> diff --git a/plugins/dfxvideo/gpucfg-0.1df/main.c b/plugins/dfxvideo/gpucfg-0.1df/main.c index 805495e6..ef44ed1c 100755 --- a/plugins/dfxvideo/gpucfg-0.1df/main.c +++ b/plugins/dfxvideo/gpucfg-0.1df/main.c @@ -135,6 +135,7 @@ main (int argc, char *argv[]) if (strcmp(argv[1], "about") == 0) { const char *authors[]= {"Pete Bernert and the P.E.Op.S. team", "Ryan Schultz", "Andrew Burton", NULL}; widget = gtk_about_dialog_new (); + gtk_about_dialog_set_logo_icon_name (GTK_ABOUT_DIALOG(widget), "help-about"); gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (widget), "P.E.Op.S PCSXR Video Plugin"); gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (widget), "1.17"); gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (widget), authors); @@ -151,7 +152,7 @@ main (int argc, char *argv[]) else { builder = gtk_builder_new(); - if (!gtk_builder_add_from_file(builder, DATADIR "dfxvideo.ui", NULL)) { + if (!gtk_builder_add_from_resource(builder, "/org/pcsxr/dfxvideo/dfxvideo.ui", NULL)) { g_warning("We could not load the interface!"); return -1; } |
