Commit 0ea0f386 authored by Alexandru Băluț's avatar Alexandru Băluț

data: Add xges icon

Fixes #1171
parent 1d0ace49
......@@ -6,3 +6,8 @@ foreach size: sizes
endforeach
install_data('hicolor/symbolic/apps/org.pitivi.Pitivi-symbolic.svg', install_dir: join_paths(themedir, 'symbolic/apps'))
app_icon_sizes = ['16x16', '24x24', '32x32', '48x48', '512x512']
foreach size: app_icon_sizes
install_data(join_paths('hicolor', size, 'mimetypes/text-x-xges.png'), install_dir: join_paths(themedir, join_paths(size, 'mimetypes')))
endforeach
......@@ -11,11 +11,14 @@ custom_target('org.pitivi.Pitivi.desktop',
input : 'org.pitivi.Pitivi.desktop.in',
command : [intltool_merge, '--desktop-style', podir, '@INPUT@', '@OUTPUT@'],
install : true,
install_dir : get_option('datadir') + '/applications')
install_dir : join_paths(get_option('datadir'), 'applications'))
custom_target('org.pitivi.Pitivi.appdata.xml',
output : 'org.pitivi.Pitivi.appdata.xml',
input : 'org.pitivi.Pitivi.appdata.xml.in',
command : [intltool_merge, '--xml-style', podir, '@INPUT@', '@OUTPUT@'],
install : true,
install_dir : get_option('datadir') + '/appdata')
install_dir : join_paths(get_option('datadir'), 'appdata'))
install_data('org.pitivi.Pitivi-mime.xml',
install_dir : join_paths(get_option('datadir'), 'mime/packages'))
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="text/x-xptv">
<comment>Pitivi video project (legacy)</comment>
<glob pattern="*.xptv"/>
<generic-icon name="text-x-xges"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;pitivi"/>
</magic>
</mime-type>
<mime-type type="text/x-xges">
<comment>Pitivi/GES video project</comment>
<glob pattern="*.xges"/>
<generic-icon name="text-x-xges"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;ges"/>
</magic>
</mime-type>
</mime-info>
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="text/x-xptv">
<sub-class-of type="text/plain"/>
<comment>Legacy Pitivi project file</comment>
<glob pattern="*.xptv"/>
<magic priority="50">
<match value="&lt;pitivi" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="text/x-xges">
<sub-class-of type="text/plain"/>
<comment>GStreamer Editing Services project file</comment>
<glob pattern="*.xges"/>
<magic priority="50">
<match value="&lt;ges" type="string" offset="0"/>
</magic>
</mime-type>
</mime-info>
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
# [encoding: UTF-8]
data/org.pitivi.Pitivi-mime.xml
data/org.pitivi.Pitivi.appdata.xml.in
data/org.pitivi.Pitivi.desktop.in
[type: gettext/glade]data/ui/alignmentprogress.ui
......
  • data/org.pitivi.Pitivi-mime.xml is now in po/POTFILES.in, but I think you need to mark the <comment> tags with _ to get it extracted by intltool.

  • Thanks for pointing out. We'll invest in getting rid of intltool instead, we have an issue filed already.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment