From b0b271274c98274d4c53608c856194270ae12d0f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 4 Sep 2020 08:26:04 +0100 Subject: Make GTK UI resources more consistent The GTK UI resources have to be different resources between major versions. When kept in one directory with slightly different filenames they were difficult to distinguish and resource definition was difficult to update. The resources for both gtk versions were stored in both builds resulting in unneccessary increased binary size. The new stratagy lists the UI files once in a single gresources file and only includes what is required. If a UI file is added it must be provided in both gtk2 and 3 or a build failure will occour rather than a runtime error. --- frontends/gtk/res/gtk3/warning.ui | 77 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 frontends/gtk/res/gtk3/warning.ui (limited to 'frontends/gtk/res/gtk3/warning.ui') diff --git a/frontends/gtk/res/gtk3/warning.ui b/frontends/gtk/res/gtk3/warning.ui new file mode 100644 index 000000000..e4fb4e662 --- /dev/null +++ b/frontends/gtk/res/gtk3/warning.ui @@ -0,0 +1,77 @@ + + + + + Warning from NetSurf + GTK_WIN_POS_CENTER + gtk-dialog-warning + GDK_WINDOW_TYPE_HINT_DIALOG + True + + + True + 2 + + + True + 3 + + + True + 12 + 6 + gtk-dialog-warning + + + False + False + + + + + True + Help help help! I'm being held prisoner by a bunch of RISC OS zealots! + True + + + 1 + 1 + + + + + + + True + + + False + 3 + 1 + + + + + True + GTK_BUTTONBOX_END + + + True + True + True + gtk-ok + True + + + + + + False + False + 2 + + + + + + -- cgit v1.2.3