Codebase list gpaste / 10509c5
Update upstream source from tag 'upstream/3.36.0' Update to upstream version '3.36.0' with Debian dir 5d641daab52d0cf9a966df7c40dadfca05b0a48c Jérémy Lal 4 years ago
25 changed file(s) with 119 addition(s) and 93 deletion(s). Raw diff Collapse all Expand all
0 NEW in 3.36.0 (08/03/2020)
1 =============
2
3 - Update to gnome-shell 3.36.0
4
05 NEW in 3.34.1 (09/10/2019)
16 =============
27
3838
3939 You can see everything I'll post about GPaste [there](https://www.imagination-land.org/tags/GPaste.html).
4040
41 Latest release for GNOME 3.34 is: [GPaste 3.34.1](https://www.imagination-land.org/posts/2019-10-09-gpaste-3.34.1-released.html).
41 Latest release for GNOME 3.36 is: [GPaste 3.36.0](https://www.imagination-land.org/posts/2020-03-08-gpaste-3.36.0-released.html).
4242
43 Direct link to download: <https://www.imagination-land.org/files/gpaste/gpaste-3.34.1.tar.xz>
43 Direct link to download: <https://www.imagination-land.org/files/gpaste/gpaste-3.36.0.tar.xz>
11 ##
22 ## Copyright (c) 2010-2018, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
33
4 m4_define([gpaste_version], [3.34.1])
4 m4_define([gpaste_version], [3.36.0])
55
66 # Update gpaste_lt_version before each release (and only then)
77 # The format is C:R:A (current revision age)
88 # - If any interface has been added, ‘C:R:A’ becomes ‘C+1:0:A+1’.
99 # - If any interface has been removed or modified, ‘C:R:A’ becomes ‘C+1:0:0’.
1010 # - Otherwise, ‘C:R:A’ becomes ‘C:R+1:A’.
11 m4_define([gpaste_lt_version], [12:3:1])
11 m4_define([gpaste_lt_version], [12:4:1])
1212
1313 # Build system requirements
1414 m4_define([autoconf_required], [2.69])
156156
157157 AS_IF([test x${enable_gnome_shell_extension} = xyes], [
158158 AS_IF([test x${enable_introspection} != xyes], [AC_MSG_ERROR([*** Introspection support is required to run the gnome-shell extension])])
159 PKG_CHECK_MODULES(JS_EXTENSION, [mutter-clutter-5 gjs-1.0 >= gjs_required])
159 PKG_CHECK_MODULES(JS_EXTENSION, [mutter-clutter-6 gjs-1.0 >= gjs_required])
160160 ])
161161
162162 AS_IF([test x${enable_x_keybinder} = xyes], [
11 input: 'org.gnome.GPaste.Ui.systemd.in',
22 configuration: conf,
33 output: 'org.gnome.GPaste.Ui.service',
4 install: get_option('systemd'),
5 install_dir: userunit_dir,
46 )
57
68 configure_file(
79 input: 'org.gnome.GPaste.systemd.in',
810 configuration: conf,
911 output: 'org.gnome.GPaste.service',
10 )
12 install: get_option('systemd'),
13 install_dir: userunit_dir,
14 )
00 project('GPaste',
11 'c',
2 version: '3.34.1',
2 version: '3.36.0',
33 meson_version: '>=0.46.0',
44 )
55
66 apiversion = '1.0'
7 gpaste_soversion = '11.0.3'
7 gpaste_soversion = '11.1.4'
88
99 glib_req='>=2.58.0'
1010 gdk_pixbuf_req='>=2.38.0'
1111 gjs_req='>=1.54.0'
1212 gtk3_req='>=3.24.0'
13 mutter_clutter_req='>=3.30.0'
13 mutter_clutter_req='>=3.36.0'
1414
1515 appstream_dep = dependency('appstream-glib')
1616 gdk_dep = dependency('gdk-3.0', version: gtk3_req)
3636 libgpaste_deps = [ gdk_dep, gdk_pixbuf_dep, glib_dep, gtk_dep ]
3737
3838 if get_option('introspection')
39 mutter_clutter_dep = dependency('mutter-clutter-5', version: mutter_clutter_req)
39 mutter_clutter_dep = dependency('mutter-clutter-6', version: mutter_clutter_req)
4040 gjs_dep = dependency('gjs-1.0', version: gjs_req)
4141 endif
4242
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2014-03-27 21:03+0100\n"
1111 "Last-Translator: Christian Kluge <frakturfreak@gmail.com>\n"
1212 "Language-Team: \n"
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2011-11-20 16:30+0100\n"
1111 "Last-Translator: Antonio Trujillo <lunatc@gmail.com>\n"
1212 "Language-Team: Spanish\n"
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2011-01-25 16:05+0100\n"
1111 "Last-Translator: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>\n"
1212 "Language-Team: French\n"
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2017-03-17 17:38+0100\n"
1111 "Last-Translator: Heimen Stoffels <vistausss@outlook.com>\n"
1212 "Language-Team: Vistaus <vistausss@outlook.com>\n"
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2015-10-10 20:03-0300\n"
1111 "Last-Translator: Elder Marco <eldermarco@gmail.com>\n"
1212 "Language-Team: \n"
66 msgstr ""
77 "Project-Id-Version: GPaste\n"
88 "Report-Msgid-Bugs-To: Marc-Antoine@Perennou.com\n"
9 "POT-Creation-Date: 2019-10-09 10:05+0200\n"
9 "POT-Creation-Date: 2020-03-08 15:21+0100\n"
1010 "PO-Revision-Date: 2018-01-06 08:14+0100\n"
1111 "Last-Translator: Åke Engelbrektson <eson@svenskasprakfiler.se>\n"
1212 "Language-Team: Svenska Språkfiler <contactform@svenskasprakfiler.se>\n"
1414 $(NULL)
1515 bindings_GPaste_1_0_gir_CFLAGS = \
1616 $(AM_CPPFLAGS) \
17 -fvisibility=default \
1718 $(NULL)
1819 bindings_GPaste_1_0_gir_LIBS = $(libgpaste_la_file)
1920 bindings_GPaste_1_0_gir_EXPORT_PACKAGES = libgpaste
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { St } = imports.gi;
6 const { GObject, St } = imports.gi;
77
8 var GPasteAboutItem = class {
9 constructor(client, menu) {
10 this.actor = new St.Button({
8 var GPasteAboutItem = GObject.registerClass(
9 class GPasteAboutItem extends St.Button {
10 _init(client, menu) {
11 super._init({
12 x_expand: true,
13 x_align: St.Align.MIDDLE,
1114 reactive: true,
1215 can_focus: true,
1316 track_hover: true,
1417 style_class: 'system-menu-action'
1518 });
1619
17 this.actor.child = new St.Icon({ icon_name: 'dialog-information-symbolic' });
20 this.child = new St.Icon({ icon_name: 'dialog-information-symbolic' });
1821
19 this.actor.connect('clicked', function() {
22 this.connect('clicked', function() {
2023 menu.itemActivated();
2124 client.about(null);
2225 });
2326 }
24 };
27 });
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { Clutter, St } = imports.gi;
6 const { Clutter, GObject, St } = imports.gi;
77
8 var GPasteDeleteButton = class {
9 constructor(client, index) {
10 this.actor = new St.Button();
8 var GPasteDeleteButton = GObject.registerClass(
9 class GPasteDeleteButton extends St.Button {
10 _init(client, index) {
11 super._init();
1112
12 this.actor.child = new St.Icon({
13 this.child = new St.Icon({
1314 icon_name: 'edit-delete-symbolic',
1415 style_class: 'popup-menu-icon'
1516 });
1718 this._client = client;
1819 this.setIndex(index);
1920
20 this.actor.connect('clicked', this._onClick.bind(this));
21 this.connect('clicked', this._onClick.bind(this));
2122 }
2223
2324 setIndex(index) {
2829 this._client.delete(this._index, null);
2930 return Clutter.EVENT_STOP;
3031 }
31 };
32 });
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { St } = imports.gi;
6 const { GObject, St } = imports.gi;
77
88 const ExtensionUtils = imports.misc.extensionUtils;
99 const Me = ExtensionUtils.getCurrentExtension();
1010
1111 const DeleteButton = Me.imports.deleteButton;
1212
13 var GPasteDeleteItemPart = class {
14 constructor(client, index) {
15 this.actor = new St.Bin({ x_align: St.Align.END });
13 var GPasteDeleteItemPart = GObject.registerClass(
14 class GPasteDeleteItemPart extends St.Bin {
15 _init(client, index) {
16 super._init({ x_align: St.Align.END });
1617 this._deleteButton = new DeleteButton.GPasteDeleteButton(client, index);
17 this.actor.child = this._deleteButton.actor;
18 this.child = this._deleteButton;
1819 }
1920
2021 setIndex(index) {
2122 this._deleteButton.setIndex(index);
2223 }
23 };
24 });
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { GLib, GPaste, St } = imports.gi;
6 const { GLib, GObject, GPaste, St } = imports.gi;
77
8 var GPasteEmptyHistoryItem = class {
9 constructor(client, settings, menu) {
10 this.actor = new St.Button({
8 var GPasteEmptyHistoryItem = GObject.registerClass(
9 class GPasteEmptyHistoryItem extends St.Button {
10 _init(client, settings, menu) {
11 super._init({
12 x_expand: true,
13 x_align: St.Align.MIDDLE,
1114 reactive: true,
1215 can_focus: true,
1316 track_hover: true,
1417 style_class: 'system-menu-action'
1518 });
1619
17 this.actor.child = new St.Icon({ icon_name: 'edit-clear-all-symbolic' });
20 this.child = new St.Icon({ icon_name: 'edit-clear-all-symbolic' });
1821
19 this.actor.connect('clicked', function() {
22 this.connect('clicked', function() {
2023 menu.itemActivated();
2124 client.get_history_name((client, result) => {
2225 const name = client.get_history_name_finish(result);
2528 });
2629 });
2730 }
28 };
31 });
88 const PanelMenu = imports.ui.panelMenu;
99 const PopupMenu = imports.ui.popupMenu;
1010
11 const { Clutter, GObject, GLib, GPaste } = imports.gi;
11 const { Clutter, GObject, GLib, GPaste, St } = imports.gi;
1212
1313 const _ = Gettext.domain('GPaste').gettext;
1414
3131 super._init(0.0, "GPaste");
3232
3333 this._statusIcon = new StatusIcon.GPasteStatusIcon();
34 this.add_child(this._statusIcon.actor);
34 this.add_child(this._statusIcon);
3535
3636 this._settings = new GPaste.Settings();
3737
6363 reactive: false,
6464 can_focus: false
6565 });
66 this._actions._ornamentLabel.set_x_expand(true);
6667
6768 this._addToPostHeader(this._dummyHistoryItem);
6869 this._addToPreFooter(new PopupMenu.PopupSeparatorMenuItem());
8081 this._addToHeader(this._searchItem);
8182 this._addToHeader(this._pageSwitcher);
8283
83 this._actions.add(this._uiItem.actor, { expand: true, x_fill: false });
84 this._actions.add(this._emptyHistoryItem.actor, { expand: true, x_fill: false });
85 this._actions.add(this._aboutItem.actor, { expand: true, x_fill: false });
84 this._actions.add_child(this._uiItem);
85 this._actions.add_child(this._emptyHistoryItem);
86 this._actions.add_child(this._aboutItem);
8687
8788 this._settingsMaxSizeChangedId = this._settings.connect('changed::max-displayed-history-size', this._resetMaxDisplayedSize.bind(this));
8889 this._resetMaxDisplayedSize();
283284 _updateVisibility(empty, search) {
284285 if (!empty) {
285286 this._dummyHistoryItem.hide();
286 this._emptyHistoryItem.actor.show();
287 this._emptyHistoryItem.show();
287288 this._searchItem.show();
288289 } else if (this._hasSearch()) {
289290 this._dummyHistoryItem.showNoResult();
290 this._emptyHistoryItem.actor.hide();
291 this._emptyHistoryItem.hide();
291292 this._searchItem.show();
292293 } else {
293294 this._dummyHistoryItem.showEmpty();
294 this._emptyHistoryItem.actor.hide();
295 this._emptyHistoryItem.hide();
295296 this._searchItem.hide();
296297 }
297298 }
1616 class GPasteItem extends PopupMenu.PopupMenuItem {
1717 _init(client, size, index) {
1818 super._init("");
19 this.label.set_x_expand(true);
1920
2021 this._client = client;
2122
3031 this.connect('key-press-event', this._onKeyPressed.bind(this));
3132
3233 this._deleteItem = new DeleteItemPart.GPasteDeleteItemPart(client, index);
33 this.add(this._deleteItem.actor, { expand: true, x_align: St.Align.END });
34 this.add_child(this._deleteItem);
3435
3536 this.label.clutter_text.ellipsize = Pango.EllipsizeMode.END;
3637 this.setTextSize(size);
00 {
11 "shell-version": [
2 "3.34"
2 "3.36"
33 ],
44 "uuid": "GPaste@gnome-shell-extensions.gnome.org",
55 "name": "GPaste",
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { St } = imports.gi;
6 const { GObject, St } = imports.gi;
77
8 const Signals = imports.signals;
9
10 var GPastePageItem = class {
11 constructor(page) {
12 this.actor = new St.Button({
8 var GPastePageItem = GObject.registerClass({
9 Signals: {
10 'switch': { param_types: [GObject.TYPE_UINT64] },
11 },
12 }, class GPastePageItem extends St.Button {
13 _init(page) {
14 super._init({
15 label: '' + page,
16 x_align: St.Align.MIDDLE,
1317 reactive: true,
1418 can_focus: false,
1519 track_hover: true,
16 style_class: 'calendar-day-base'
20 style_class: 'calendar-day-base calendar-day'
1721 });
18
19 this.actor.child = new St.Label({ text: '' + page });
2022
2123 this._page = page;
2224
23 this.actor.connect('clicked', () => {
25 this.connect('clicked', () => {
2426 this.emit('switch', this._page);
2527 });
2628 }
2729
2830 setActive(active) {
2931 if (active) {
30 this.actor.add_style_pseudo_class('active');
31 this.actor.set_style("font-weight: bold;");
32 this.add_style_pseudo_class('selected');
3233 } else {
33 this.actor.remove_style_pseudo_class('active');
34 this.actor.set_style(null);
34 this.remove_style_pseudo_class('selected');
3535 }
3636 }
37
38 destroy() {
39 this.actor.destroy();
40 }
41 };
42 Signals.addSignalMethods(GPastePageItem.prototype);
37 });
2121 }, class GPastePageSwitcher extends PopupMenu.PopupBaseMenuItem {
2222 _init() {
2323 super._init({
24 style_class: 'calendar',
2425 reactive: false,
2526 can_focus: false
2627 });
27
28 this._box = new St.BoxLayout();
29 this.add(this._box, { expand: true, x_fill: false, can_focus: false, reactive: false });
28 this._ornamentLabel.set_x_expand(true);
29 // Use to center everything because of ornamentLabel
30 this._dummyLabel = new St.Label({ text: '', x_expand: true });
31 this.add_child(this._dummyLabel);
3032
3133 this._active = -1;
3234 this._maxDisplayedSize = -1;
6264 _addPage() {
6365 let sw = new PageItem.GPastePageItem(this._pages.length + 1);
6466 this._pages.push(sw);
65 this._box.add(sw.actor, { expand: true, x_fill: false, x_align: St.Align.MIDDLE });
67 this.remove_child(this._dummyLabel);
68 this.add_child(sw);
69 this.add_child(this._dummyLabel);
6670
6771 sw.connect('switch', (sw, page) => {
6872 this._switch(page);
2727 reactive: true,
2828 can_focus: true
2929 });
30 this.add(this._entry, { expand: true });
30 this.add_child(this._entry);
3131
3232 this._entry.set_primary_icon(new St.Icon({
3333 style_class:'search-entry-icon',
55
66 const PopupMenu = imports.ui.popupMenu;
77
8 const { St } = imports.gi;
8 const { GObject, St } = imports.gi;
99
10 var GPasteStatusIcon = class {
11 constructor() {
12 this.actor = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
10 var GPasteStatusIcon = GObject.registerClass(
11 class GPasteStatusIcon extends St.BoxLayout {
12 _init() {
13 super._init({ style_class: 'panel-status-menu-box' });
1314
14 this.actor.add_child(new St.Icon({
15 this.add_child(new St.Icon({
1516 icon_name: 'edit-paste-symbolic',
1617 style_class: 'system-status-icon'
1718 }));
1819
19 this.actor.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
20 this.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
2021 }
21 };
22 });
33 * Copyright (c) 2010-2019, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
44 */
55
6 const { GPaste, St } = imports.gi;
6 const { GObject, GPaste, St } = imports.gi;
77
8 var GPasteUiItem = class {
9 constructor(menu) {
10 this.actor = new St.Button({
8 var GPasteUiItem = GObject.registerClass(
9 class GPasteUiItem extends St.Button {
10 _init(menu) {
11 super._init({
12 x_expand: true,
13 x_align: St.Align.MIDDLE,
1114 reactive: true,
1215 can_focus: true,
1316 track_hover: true,
1417 style_class: 'system-menu-action'
1518 });
1619
17 this.actor.child = new St.Icon({ icon_name: 'go-home-symbolic' });
20 this.child = new St.Icon({ icon_name: 'go-home-symbolic' });
1821
19 this.actor.connect('clicked', function() {
22 this.connect('clicked', function() {
2023 menu.itemActivated();
2124 GPaste.util_spawn('Ui');
2225 });
2326 }
24 };
27 });
140140 'util',
141141 )
142142
143 libgpaste_symbols_file = meson.current_source_dir() / 'libgpaste.sym'
144
143145 libgpaste = library(
144146 'gpaste',
145147 sources: libgpaste_sources,
147149 dependencies: libgpaste_deps,
148150 install: true,
149151 install_dir: get_option('libdir'),
150 include_directories : libgpaste_inc,
152 include_directories : libgpaste_inc,
153 link_args: ['-Wl,--version-script=' + libgpaste_symbols_file],
151154 )
152155
153156 libgpaste_internal_dep = declare_dependency(