[gnome-sudoku] Use a gresource alias for the print dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Use a gresource alias for the print dialog
- Date: Sun, 28 Dec 2014 16:48:54 +0000 (UTC)
commit 653fe254d20ef6359952f6253d58934154284369
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Dec 28 10:47:47 2014 -0600
Use a gresource alias for the print dialog
Not using one was an ugly workaround
src/gnome-sudoku.gresource.xml.in | 2 +-
src/print-dialog.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-sudoku.gresource.xml.in b/src/gnome-sudoku.gresource.xml.in
index fa8962c..47e0904 100644
--- a/src/gnome-sudoku.gresource.xml.in
+++ b/src/gnome-sudoku.gresource.xml.in
@@ -3,7 +3,7 @@
<gresource prefix="/org/gnome/sudoku/ui">
<file alias="gnome-sudoku.css">@top_srcdir@/data/gnome-sudoku.css</file>
<file preprocess="xml-stripblanks" alias="gnome-sudoku.ui">@top_srcdir@/data/gnome-sudoku.ui</file>
- <file preprocess="xml-stripblanks">@top_srcdir@/data/print-dialog.ui</file><!-- see print-dialog.vala,
no support for aliases for now -->
+ <file preprocess="xml-stripblanks" alias="print-dialog.ui">@top_srcdir@/data/print-dialog.ui</file>
</gresource>
<gresource prefix="/org/gnome/sudoku/gtk">
<file preprocess="xml-stripblanks" alias="menus.ui">@top_srcdir@/data/gnome-sudoku-menu.ui</file>
diff --git a/src/print-dialog.vala b/src/print-dialog.vala
index 6029452..19ee92b 100644
--- a/src/print-dialog.vala
+++ b/src/print-dialog.vala
@@ -19,7 +19,7 @@
* along with GNOME Sudoku. If not, see <http://www.gnu.org/licenses/>.
*/
-[GtkTemplate (ui = "/org/gnome/sudoku/ui/../data/print-dialog.ui")]
+[GtkTemplate (ui = "/org/gnome/sudoku/ui/print-dialog.ui")]
public class PrintDialog : Gtk.Dialog
{
private SudokuSaver saver;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]