summaryrefslogtreecommitdiff
path: root/mate-screenshot/data
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-09-09 12:35:05 +0300
committermonsta <[email protected]>2015-09-09 12:35:05 +0300
commitaa3a853c9d06d0321e8924cbfbc42c8411f571f5 (patch)
tree7bca363d0bb67fddadbe6fd53e92c3b3db71db8d /mate-screenshot/data
parent0d36d61761a1d68839d61f521889dba3db7f514f (diff)
downloadmate-utils-aa3a853c9d06d0321e8924cbfbc42c8411f571f5.tar.bz2
mate-utils-aa3a853c9d06d0321e8924cbfbc42c8411f571f5.tar.xz
mate-screenshot: move stuff to data/ and src/ subdirs
Diffstat (limited to 'mate-screenshot/data')
-rw-r--r--mate-screenshot/data/Makefile.am40
-rw-r--r--mate-screenshot/data/mate-screenshot.158
-rw-r--r--mate-screenshot/data/mate-screenshot.appdata.xml.in27
-rw-r--r--mate-screenshot/data/mate-screenshot.convert6
-rw-r--r--mate-screenshot/data/mate-screenshot.desktop.in15
-rw-r--r--mate-screenshot/data/mate-screenshot.ui251
-rw-r--r--mate-screenshot/data/org.mate.screenshot.gschema.xml.in29
7 files changed, 426 insertions, 0 deletions
diff --git a/mate-screenshot/data/Makefile.am b/mate-screenshot/data/Makefile.am
new file mode 100644
index 00000000..b75f3162
--- /dev/null
+++ b/mate-screenshot/data/Makefile.am
@@ -0,0 +1,40 @@
+mate_screenshotdir = $(datadir)/applications
+mate_screenshot_in_files = mate-screenshot.desktop.in
+mate_screenshot_DATA = $(mate_screenshot_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+man_MANS = mate-screenshot.1
+
+uidir = $(datadir)/mate-screenshot
+ui_DATA = mate-screenshot.ui
+
+@INTLTOOL_XML_RULE@
+appdatadir = $(datadir)/appdata
+appdata_in_files = mate-screenshot.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
+gsettings_SCHEMAS = org.mate.screenshot.gschema.xml
+@GSETTINGS_RULES@
+
+convertdir = $(datadir)/MateConf/gsettings
+convert_DATA = mate-screenshot.convert
+
+EXTRA_DIST = \
+ $(appdata_in_files) \
+ $(mate_screenshot_in_files) \
+ $(man_MANS) \
+ $(ui_DATA) \
+ $(convert_DATA)
+
+CLEANFILES = \
+ $(gsettings_SCHEMAS) \
+ $(mate_screenshot_DATA) \
+ $(appdata_DATA)
+
+dist-hook:
+ cd $(distdir) ; rm -f $(CLEANFILES)
+
+install-exec-local:
+ rm -f $(DESTDIR)$(mandir)/man1/mate-panel-screenshot.1
+ ln -s mate-screenshot.1 $(DESTDIR)$(mandir)/man1/mate-panel-screenshot.1
+
diff --git a/mate-screenshot/data/mate-screenshot.1 b/mate-screenshot/data/mate-screenshot.1
new file mode 100644
index 00000000..8728c2dc
--- /dev/null
+++ b/mate-screenshot/data/mate-screenshot.1
@@ -0,0 +1,58 @@
+.TH "MATE-SCREENSHOT" "1" "June 28, 2009" "" ""
+.SH NAME
+mate-screenshot \- capture the screen, a window, or an user\-defined area and save the snapshot image to a file.
+.SH SYNOPSIS
+.sp
+\fBmate-screenshot\fR [ \fB\-w\fR ] [ \fB\-a\fR ] [ \fB\-b\fR ] [ \fB\-B\fR ] [ \fB\-d \fISECONDS\fB \fR ] [ \fB\-e \fIEFFECT\fB \fR ] [ \fB\-i\fR ] [ \fB\-\-display \fIDISPLAY\fB \fR ]
+.SH "DESCRIPTION"
+.PP
+\fBmate-screenshot\fR is a MATE utility for taking
+screenshots of the entire screen, a window or an user\-defined area of the screen, with optional beutifying
+border effects.
+.SH "OPTIONS"
+.TP
+\fB\-w, \-\-window\fR
+Grab the current active window instead of the entire
+screen.
+.TP
+\fB\-a, \-\-area\fR
+Grab an area of the screen instead of the entire screen.
+.TP
+\fB\-b, \-\-include-border\fR
+Include the window border within the screenshot.
+.TP
+\fB\-B, \-\-remove-border\fR
+Remove the window border from the screenshot.
+.TP
+\fB\-d, \-\-delay=\fISECONDS\fB,\fR
+Take the screenshot after the specified delay [in seconds].
+.TP
+\fB\-e, \-\-effect=\fIEFFECT\fB,\fR
+Add an effect to the outside of the screenshot border.
+\fIEFFECT\fR can be ``shadow''
+(adding drop shadow), ``border'' (adding rectangular
+space around the screenshot) or ``none'' (no effect).
+Default is ``none''.
+.TP
+\fB\-i, \-\-interactive\fR
+Interactively set options in a dialog.
+.TP
+\fB\-\-display=\fIDISPLAY\fB\fR
+X display to use.
+.TP
+\fB\-?, \-h, \-\-help\fR
+Show a summary of the available options.
+.PP
+In addition, the usual GTK+ and MATE command line options apply.
+See the output of \-\-help for details.
+.PP
+.SH "SEE ALSO"
+.PP
+mate-options(7), gtk-options(7)
+.SH "AUTHOR"
+.PP
+This manual page was written by Christian Marillat <[email protected]> for
+the Debian GNU/Linux system (but may be used by others).
+.PP
+Updated by Theppitak Karoonboonyanan
+<[email protected]>, Tom Feiner <[email protected]> and Cosimo Cecchi <[email protected]>
diff --git a/mate-screenshot/data/mate-screenshot.appdata.xml.in b/mate-screenshot/data/mate-screenshot.appdata.xml.in
new file mode 100644
index 00000000..9d1200c1
--- /dev/null
+++ b/mate-screenshot/data/mate-screenshot.appdata.xml.in
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 MATE team <[email protected]> -->
+<component type="desktop">
+ <id>mate-screenshot.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <name>MATE Screenshot</name>
+ <_summary>A screenshot utility for MATE Desktop</_summary>
+ <_description>
+ <p>
+ MATE Screenshot is a simple utility that lets you capture screenshots
+ of your desktop or of application windows. You can select to copy them
+ to the system clipboard or save them in Portable Network Graphics (.png)
+ image format.
+ </p>
+ </_description>
+ <screenshots>
+ <screenshot type="default">
+ <image width="800" height="450">
+ https://alexpl.fedorapeople.org/AppData/mate-screenshot/screens/mate-screenshot_01.png
+ </image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">http://www.mate-desktop.org</url>
+ <updatecontact>[email protected]</updatecontact>
+ <project_group>MATE</project_group>
+</component>
diff --git a/mate-screenshot/data/mate-screenshot.convert b/mate-screenshot/data/mate-screenshot.convert
new file mode 100644
index 00000000..741f7d44
--- /dev/null
+++ b/mate-screenshot/data/mate-screenshot.convert
@@ -0,0 +1,6 @@
+[org.mate.screenshot]
+delay = /apps/mate-screenshot/delay
+last-save-directory = /apps/mate-screenshot/last_save_directory
+include-border = /apps/mate-screenshot/include_border
+include-pointer = /apps/mate-screenshot/include_pointer
+border-effect = /apps/mate-screenshot/border_effect
diff --git a/mate-screenshot/data/mate-screenshot.desktop.in b/mate-screenshot/data/mate-screenshot.desktop.in
new file mode 100644
index 00000000..fedc1321
--- /dev/null
+++ b/mate-screenshot/data/mate-screenshot.desktop.in
@@ -0,0 +1,15 @@
+[Desktop Entry]
+_Name=Take Screenshot
+_Comment=Save images of your desktop or individual windows
+Exec=mate-screenshot --interactive
+Terminal=false
+Type=Application
+Icon=applets-screenshooter
+StartupNotify=true
+Categories=GTK;Utility;
+Keywords=MATE;screenshot;snapshot;desktop;window;image;
+OnlyShowIn=MATE;
+X-MATE-Bugzilla-Bugzilla=MATE
+X-MATE-Bugzilla-Product=mate-utils
+X-MATE-Bugzilla-Component=screenshot
+X-MATE-Bugzilla-OtherBinaries=mate-panel-screenshot
diff --git a/mate-screenshot/data/mate-screenshot.ui b/mate-screenshot/data/mate-screenshot.ui
new file mode 100644
index 00000000..80382ed4
--- /dev/null
+++ b/mate-screenshot/data/mate-screenshot.ui
@@ -0,0 +1,251 @@
+<?xml version="1.0"?>
+<!--*- mode: xml -*-->
+<interface>
+ <object class="GtkDialog" id="toplevel">
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">Save Screenshot</property>
+ <property name="type">GTK_WINDOW_TOPLEVEL</property>
+ <property name="window_position">GTK_WIN_POS_NONE</property>
+ <property name="modal">False</property>
+ <property name="resizable">False</property>
+ <property name="destroy_with_parent">False</property>
+ <property name="decorated">True</property>
+ <property name="skip_taskbar_hint">False</property>
+ <property name="skip_pager_hint">False</property>
+ <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+ <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+ <signal handler="on_toplevel_key_press_event" last_modification_time="Thu, 21 Oct 2004 13:29:25 GMT" name="key_press_event"/>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="dialog-vbox1">
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="dialog-action_area1">
+ <property name="visible">True</property>
+ <property name="layout_style">GTK_BUTTONBOX_END</property>
+ <child>
+ <object class="GtkButton" id="help_button">
+ <property name="visible">True</property>
+ <property name="can_default">True</property>
+ <property name="can_focus">True</property>
+ <property name="label">gtk-help</property>
+ <property name="use_stock">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="copy_button">
+ <property name="visible">True</property>
+ <property name="can_default">True</property>
+ <property name="can_focus">True</property>
+ <property name="use_underline">True</property>
+ <property name="label" translatable="yes">C_opy to Clipboard</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <accelerator key="C" modifiers="GDK_CONTROL_MASK" signal="activate"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="cancel_button">
+ <property name="visible">True</property>
+ <property name="can_default">True</property>
+ <property name="can_focus">True</property>
+ <property name="label">gtk-cancel</property>
+ <property name="use_stock">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="ok_button">
+ <property name="visible">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="can_focus">True</property>
+ <property name="label">gtk-save</property>
+ <property name="use_stock">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">GTK_PACK_END</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox3">
+ <property name="border_width">5</property>
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">18</property>
+ <child>
+ <object class="GtkHBox" id="hbox6">
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="xscale">0</property>
+ <property name="yscale">0</property>
+ <property name="top_padding">0</property>
+ <property name="bottom_padding">0</property>
+ <property name="left_padding">0</property>
+ <property name="right_padding">0</property>
+ <child>
+ <object class="GtkAspectFrame" id="aspect_frame">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="label_yalign">0</property>
+ <property name="shadow_type">GTK_SHADOW_IN</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="ratio">1</property>
+ <property name="obey_child">True</property>
+ <child>
+ <object class="GtkDrawingArea" id="preview_darea">
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkTable" id="table1">
+ <property name="visible">True</property>
+ <property name="n_rows">2</property>
+ <property name="n_columns">2</property>
+ <property name="homogeneous">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Name:</property>
+ <property name="use_underline">True</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ <property name="mnemonic_widget">filename_entry</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="right_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="bottom_attach">1</property>
+ <property name="x_options">fill</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label3">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Save in _folder:</property>
+ <property name="use_underline">True</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="right_attach">1</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">fill</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="filename_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="editable">True</property>
+ <property name="visibility">True</property>
+ <property name="max_length">0</property>
+ <property name="text" translatable="yes"/>
+ <property name="has_frame">True</property>
+ <property name="invisible_char" translatable="yes">*</property>
+ <property name="activates_default">True</property>
+ <property name="width_chars">32</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="bottom_attach">1</property>
+ <property name="y_options"/>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="file_chooser_box">
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">0</property>
+ <child>
+ <placeholder/>
+ </child>
+ </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">fill</property>
+ <property name="y_options">fill</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-11">help_button</action-widget>
+ <action-widget response="-6">cancel_button</action-widget>
+ <action-widget response="-5">ok_button</action-widget>
+ <action-widget response="1">copy_button</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/mate-screenshot/data/org.mate.screenshot.gschema.xml.in b/mate-screenshot/data/org.mate.screenshot.gschema.xml.in
new file mode 100644
index 00000000..c926d737
--- /dev/null
+++ b/mate-screenshot/data/org.mate.screenshot.gschema.xml.in
@@ -0,0 +1,29 @@
+<schemalist gettext-domain="mate-utils-2.0">
+ <schema id="org.mate.screenshot" path="/org/mate/screenshot/">
+ <key name="delay" type="i">
+ <default>0</default>
+ <summary>Screenshot delay</summary>
+ <description>The number of seconds to wait before taking the screenshot.</description>
+ </key>
+ <key name="last-save-directory" type="s">
+ <default>''</default>
+ <summary>Screenshot directory</summary>
+ <description>The directory the last screenshot was saved in.</description>
+ </key>
+ <key name="include-border" type="b">
+ <default>true</default>
+ <summary>Include Border</summary>
+ <description>Include the window manager border along with the screenshot</description>
+ </key>
+ <key name="include-pointer" type="b">
+ <default>true</default>
+ <summary>Include Pointer</summary>
+ <description>Include the pointer in the screenshot</description>
+ </key>
+ <key name="border-effect" type="s">
+ <default>'none'</default>
+ <summary>Border Effect</summary>
+ <description>Effect to add to the outside of a border. Possible values are "shadow", "none", and "border".</description>
+ </key>
+ </schema>
+</schemalist>