summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorAleksandr Mezin <mezin.alexander@gmail.com>2020-09-12 21:59:56 +0200
committerChristian Persch <chpe@src.gnome.org>2020-09-12 21:59:56 +0200
commit7927c771b9394eaaf88c0b1cd4d10c76086f352a (patch)
tree084fd6589a9d6b70bcaeb2c7d7c3b638b82b7e52 /bindings
parent51467c90cefc72efe5fbabb4350062f46d5ddf63 (diff)
downloadvte-7927c771b9394eaaf88c0b1cd4d10c76086f352a.tar.gz
build: Restore glade catalogue
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/281
Diffstat (limited to 'bindings')
-rw-r--r--bindings/glade/hicolor_actions_16x16_widget-vte-terminal.pngbin0 -> 644 bytes
-rw-r--r--bindings/glade/hicolor_actions_22x22_widget-vte-terminal.pngbin0 -> 901 bytes
-rw-r--r--bindings/glade/meson.build42
-rw-r--r--bindings/glade/vte.xml.in17
-rw-r--r--bindings/meson.build4
5 files changed, 63 insertions, 0 deletions
diff --git a/bindings/glade/hicolor_actions_16x16_widget-vte-terminal.png b/bindings/glade/hicolor_actions_16x16_widget-vte-terminal.png
new file mode 100644
index 00000000..e767bc68
--- /dev/null
+++ b/bindings/glade/hicolor_actions_16x16_widget-vte-terminal.png
Binary files differ
diff --git a/bindings/glade/hicolor_actions_22x22_widget-vte-terminal.png b/bindings/glade/hicolor_actions_22x22_widget-vte-terminal.png
new file mode 100644
index 00000000..94a41cf5
--- /dev/null
+++ b/bindings/glade/hicolor_actions_22x22_widget-vte-terminal.png
Binary files differ
diff --git a/bindings/glade/meson.build b/bindings/glade/meson.build
new file mode 100644
index 00000000..2d241101
--- /dev/null
+++ b/bindings/glade/meson.build
@@ -0,0 +1,42 @@
+# Copyright © 2020 Aleksandr Mezin
+# Copyright © 2020 Christian Persch
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or (at your
+# option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library. If not, see <https://www.gnu.org/licenses/>.
+
+gladedir = vte_datadir / 'glade'
+cataloguedir = gladedir / 'catalogs'
+pixmapdir = gladedir / 'pixmaps'
+
+catalog_conf = configuration_data()
+catalog_conf.set('VTE_API_VERSION', vte_gtk3_api_version)
+catalog_conf.set('VERSION', vte_version)
+
+configure_file(
+ input: 'vte.xml.in',
+ configuration: catalog_conf,
+ install_dir: cataloguedir,
+ output: vte_gtk3_api_name + '.xml',
+)
+
+install_data(
+ 'hicolor_actions_16x16_widget-vte-terminal.png',
+ install_dir: pixmapdir / 'hicolor' / '16x16' / 'actions',
+ rename: 'widget-vte-terminal.png',
+)
+
+install_data(
+ 'hicolor_actions_22x22_widget-vte-terminal.png',
+ install_dir: pixmapdir / 'hicolor' / '22x22' / 'actions',
+ rename: 'widget-vte-terminal.png',
+)
diff --git a/bindings/glade/vte.xml.in b/bindings/glade/vte.xml.in
new file mode 100644
index 00000000..b5000a26
--- /dev/null
+++ b/bindings/glade/vte.xml.in
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-catalog name="vte-@VTE_API_VERSION@"
+ version="@VERSION@"
+ library="vte-@VTE_API_VERSION@"
+ domain="vte-@VTE_API_VERSION@"
+ depends="gtk+"
+ book="vte"
+ supports="gtkbuilder">
+ <glade-widget-classes>
+ <glade-widget-class title="VTE Terminal" name="VteTerminal" generic-name="terminal" />
+ </glade-widget-classes>
+
+ <glade-widget-group name="vte-terminal" title="VTE Terminal">
+ <glade-widget-class-ref name="VteTerminal"/>
+ </glade-widget-group>
+
+</glade-catalog>
diff --git a/bindings/meson.build b/bindings/meson.build
index 76ee9b0b..3ca2142a 100644
--- a/bindings/meson.build
+++ b/bindings/meson.build
@@ -14,6 +14,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <https://www.gnu.org/licenses/>.
+if get_option('glade') and get_option('gtk3')
+ subdir('glade')
+endif
+
if get_option('gir') and (get_option('gtk3') or get_option('gtk4'))
subdir('gir')
endif