Compare commits

..

1 Commits

Author SHA1 Message Date
e7a502e5c3 wip: Port extensions app/portal to GTK4 2020-08-01 04:00:16 +02:00
87 changed files with 2560 additions and 4232 deletions

View File

@ -9,6 +9,7 @@ stages:
variables:
BUNDLE: "extensions-git.flatpak"
JS_LOG: "js-report.txt"
POT_LOG: "pot-update.txt"
.only_default: &only_default
only:
@ -66,7 +67,6 @@ no_template_check:
build:
image: registry.gitlab.gnome.org/gnome/mutter/master:v4
stage: build
needs: []
before_script:
- .gitlab-ci/checkout-mutter.sh
- meson mutter mutter/build --prefix=/usr -Dtests=false
@ -85,7 +85,6 @@ build:
test:
image: registry.gitlab.gnome.org/gnome/mutter/master:v4
stage: test
needs: ["build"]
variables:
XDG_RUNTIME_DIR: "$CI_PROJECT_DIR/runtime-dir"
NO_AT_BRIDGE: "1"
@ -100,9 +99,24 @@ test:
- build/meson-logs/testlog.txt
when: on_failure
test-pot:
image: registry.gitlab.gnome.org/gnome/mutter/master:v4
stage: test
before_script:
- ninja -C mutter/build install
script:
# Check that pot files are generated correctly:
# https://savannah.gnu.org/bugs/?50920#comment5
- ninja -C build gnome-shell-pot 2>&1 | awk '
BEGIN { start=0; }
start==1 { print $0; }
/gnome-shell-pot/ { start=1; }
' | tee $POT_LOG
- (! grep -q . $POT_LOG)
<<: *only_default
flatpak:
stage: build
needs: []
variables:
SUBPROJECT: "subprojects/extensions-app"
# Your manifest path

32
NEWS
View File

@ -1,35 +1,3 @@
3.37.90
=======
* Fix extension updates when many extensions are installed [Jeremias; !1363]
* Fix missing icons in on-screen keyboard [Emre; #2631, #3007]
* Fix delay when showing calendar events [Sebastian; #2992]
* Allow rearranging items in app picker [Georges; !1284]
* Fix top bar navigation when NumLock is active [Olivier; #550]
* Delay login animation until wallpaper has loaded [Michael; #734996]
* Reset auth prompt on login screen on VT switch before fade in [Ray; #2997]
* Move screencasting into a separate service [Jonas Å.; !1372]
* Replace loaded terms with more descriptive one [Olivier; !1393]
* Add "Boot Options" support to restart dialog [Hans; !199]
* Move "Restart" into a separate menu item/dialog [Florian; #2202]
* Default to not installing updates on low battery [Michael; #2717]
* Misc. bug fixes and cleanups [Florian, Daniel V., Georges, Jonas Å.,
Daniel G., Carlos, Benjamin, Piotr, Andre, Jonas D., Andy; !1357, !1356,
#2969, #2969, !1358, !1371, #3005, !1380, #3022, !1381, !895, !1387, !1386,
!1385, #3037, !1389, !1390, !1391, !1383, !1399, #2983, !1403]
Contributors:
Jonas Ådahl, Benjamin Berg, Michael Catanzaro, Piotr Drąg, Jonas Dreßler,
Olivier Fourdan, Carlos Garnacho, Hans de Goede, Andy Holmes,
Sebastian Keller, Andre Moreira Magalhaes, Daniel García Moreno,
Florian Müllner, Georges Basile Stavracas Neto, Jeremias Ortega, Ray Strode,
Emre Uyguroglu, Daniel van Vugt
Translators:
Tim Sabsch [de], Boyuan Yang [zh_CN], Fabio Tomat [fur],
Efstathios Iosifidis [el], Rafael Fontenelle [pt_BR], Yuri Chornoivan [uk],
Daniel Șerbănescu [ro], Jordi Mas [ca], Daniel Mustieles [es],
Emin Tufan Çetin [tr], Asier Sarasua Garmendia [eu]
3.37.3
======
* Refactor and clean up window picker

View File

@ -20,12 +20,6 @@
<method name="ListSessions">
<arg name="sessions" type="a(susso)" direction="out"/>
</method>
<method name="CanRebootToBootLoaderMenu">
<arg type="s" direction="out"/>
</method>
<method name="SetRebootToBootLoaderMenu">
<arg type="t" direction="in"/>
</method>
<signal name="PrepareForSleep">
<arg type="b" direction="out"/>
</signal>

View File

@ -232,9 +232,7 @@
color: $fg_color;
font-feature-settings: "tnum";
@include fontsize($base_font_size);
&:ltr { text-align: right; }
&:rtl { text-align: left; }
text-align: right;
}
// timezone offset label

View File

@ -138,10 +138,11 @@
.user-widget.horizontal .user-widget-label {
@include fontsize($base_font_size + 2);
font-weight: bold;
text-align: left;
padding-left: 15px;
&:ltr { padding-left: 14px; text-align: left; }
&:rtl { padding-right: 14px; text-align: right; }
&:ltr { padding-left: 14px; }
&:rtl { padding-right: 14px; }
}
.user-widget.vertical .user-widget-label {

View File

@ -71,11 +71,9 @@
> .event-time {
color: transparentize($fg_color, 0.5);
@include fontsize($base_font_size - 2);
text-align: right;
/* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
padding-bottom: 0.13em;
&:ltr { text-align: right };
&:rtl { text-align: left };
}
}

View File

@ -76,10 +76,8 @@ $popover_arrow_height: 12px;
// container for radio and check boxes
.popup-menu-ornament {
text-align: right;
width: 1.2em;
&:ltr { text-align: right };
&:rtl { text-align: left };
}
// separator

View File

@ -1,2 +1,6 @@
.expander-frame > * { border-top-width: 0; }
.expander-toolbar { border: 0 solid @borders; border-top-width: 1px; }
.expander-toolbar {
border: 0 solid @borders;
border-top-width: 1px;
padding: 3px;
}

View File

@ -128,7 +128,7 @@ var ExtensionsService = class extends ServiceImplementation {
externalWindow = Shew.ExternalWindow.new_from_handle(parentWindow);
if (externalWindow)
externalWindow.set_parent_of(window.window);
externalWindow.set_parent_of(window.get_surface());
if (options.modal)
window.modal = options.modal.get_boolean();
@ -156,7 +156,6 @@ var ExtensionPrefsDialog = GObject.registerClass({
GTypeName: 'ExtensionPrefsDialog',
Template: 'resource:///org/gnome/Shell/Extensions/ui/extension-prefs-dialog.ui',
InternalChildren: [
'headerBar',
'stack',
'expander',
'expanderArrow',
@ -165,24 +164,24 @@ var ExtensionPrefsDialog = GObject.registerClass({
],
}, class ExtensionPrefsDialog extends Gtk.Window {
_init(extension) {
super._init();
super._init({
title: extension.metadata.name,
});
this._uuid = extension.uuid;
this._url = extension.metadata.url || '';
this._headerBar.title = extension.metadata.name;
this._actionGroup = new Gio.SimpleActionGroup();
this.insert_action_group('win', this._actionGroup);
this._initActions();
this._addCustomStylesheet();
this._gesture = new Gtk.GestureMultiPress({
widget: this._expander,
this._gesture = new Gtk.GestureClick({
button: 0,
exclusive: true,
});
this._expander.add_controller(this._gesture);
this._gesture.connect('released', (gesture, nPress) => {
if (nPress === 1)
@ -205,7 +204,7 @@ var ExtensionPrefsDialog = GObject.registerClass({
prefsModule.init(extension.metadata);
const widget = prefsModule.buildPrefsWidget();
this._stack.add(widget);
this._stack.add_named(widget, 'prefs');
this._stack.visible_child = widget;
} catch (e) {
this._setError(e);
@ -267,7 +266,7 @@ var ExtensionPrefsDialog = GObject.registerClass({
} catch (e) {
logError(e, 'Failed to add application style');
}
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(),
provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
}

View File

@ -1,7 +1,7 @@
/* exported main */
imports.gi.versions.Gdk = '3.0';
imports.gi.versions.Gtk = '3.0';
imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0';
const { Gtk } = imports.gi;
const pkg = imports.package;
@ -10,7 +10,7 @@ const { DBusService } = imports.dbusService;
const { ExtensionsService } = imports.extensionsService;
function main() {
Gtk.init(null);
Gtk.init();
pkg.initFormat();
const service = new DBusService(

View File

@ -1,38 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<template class="ExtensionPrefsDialog" parent="GtkWindow">
<property name="default_width">600</property>
<property name="default_height">400</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerBar">
<property name="visible">True</property>
<property name="show_close_button">True</property>
<object class="GtkHeaderBar">
<property name="show-title-buttons">True</property>
</object>
</child>
<child>
<object class="GtkStack" id="stack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="hscrollbar_policy">never</property>
<property name="propagate_natural_height">True</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="margin">100</property>
<property name="margin_bottom">60</property>
<property name="margin-start">100</property>
<property name="margin-end">100</property>
<property name="margin-top">100</property>
<property name="margin-bottom">60</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Somethings gone wrong</property>
<attributes>
<attribute name="scale" value="1.44"/> <!-- x-large -->
@ -44,44 +38,33 @@
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Were very sorry, but theres been a problem: the settings for this extension cant be displayed. We recommend that you report the issue to the extension authors.</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="margin_top">12</property>
<property name="margin-top">12</property>
<child>
<object class="GtkFrame" id="expander">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkEventBox">
<property name="visible">True</property>
<object class="GtkBox">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="spacing">6</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="margin">12</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="expanderArrow">
<property name="visible">True</property>
<property name="icon_name">pan-end-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Technical Details</property>
</object>
</child>
<object class="GtkImage" id="expanderArrow">
<property name="icon_name">pan-end-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Technical Details</property>
</object>
</child>
</object>
@ -90,22 +73,16 @@
</child>
<child>
<object class="GtkRevealer" id="revealer">
<property name="visible">True</property>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="shadow_type">in</property>
<style>
<class name="expander-frame"/>
</style>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkTextView" id="errorView">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="monospace">True</property>
<property name="editable">False</property>
<property name="wrap_mode">word</property>
@ -116,63 +93,34 @@
</object>
</child>
<child>
<object class="GtkToolbar">
<property name="visible">True</property>
<object class="GtkBox">
<style>
<class name="expander-toolbar"/>
</style>
<child>
<object class="GtkToolItem">
<property name="visible">True</property>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="action_name">win.copy-error</property>
<style>
<class name="flat"/>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">edit-copy-symbolic</property>
</object>
</child>
</object>
</child>
<object class="GtkButton">
<property name="receives_default">True</property>
<property name="action_name">win.copy-error</property>
<property name="has-frame">False</property>
<property name="icon-name">edit-copy-symbolic</property>
</object>
</child>
<child>
<object class="GtkSeparatorToolItem">
<property name="visible">True</property>
<property name="draw">False</property>
<object class="GtkLabel">
<property name="hexpand">True</property>
</object>
<packing>
<property name="expand">True</property>
</packing>
</child>
<child>
<object class="GtkToolItem">
<property name="visible">True</property>
<child>
<object class="GtkButton" id="homeButton">
<property name="visible"
bind-source="homeButton"
bind-property="sensitive"
bind-flags="sync-create"/>
<property name="label" translatable="yes">Homepage</property>
<property name="tooltip_text" translatable="yes">Visit extension homepage</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="action_name">win.show-url</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<object class="GtkButton" id="homeButton">
<property name="visible"
bind-source="homeButton"
bind-property="sensitive"
bind-flags="sync-create"/>
<property name="label" translatable="yes">Homepage</property>
<property name="tooltip_text" translatable="yes">Visit extension homepage</property>
<property name="receives_default">True</property>
<property name="has-frame">False</property>
<property name="action_name">win.show-url</property>
</object>
</child>
</object>

View File

@ -224,7 +224,7 @@ var Recorder = class {
video/x-raw,max-framerate=${framerate}/1 !
videoconvert !
${this._pipelineString} !
filesink location="${this._filePath}"`;
filesink location=${this._filePath}`;
fullPipeline = this._substituteThreadCount(fullPipeline);
this._pipeline = Gst.parse_launch_full(fullPipeline,

View File

@ -32,7 +32,6 @@
<file>misc/util.js</file>
<file>misc/weather.js</file>
<file>perf/basic.js</file>
<file>perf/core.js</file>
<file>perf/hwtest.js</file>

View File

@ -3,7 +3,7 @@ const { Gio, GLib, Meta, Shell, St } = imports.gi;
const INTROSPECT_SCHEMA = 'org.gnome.shell';
const INTROSPECT_KEY = 'introspect';
const APP_ALLOWLIST = ['org.freedesktop.impl.portal.desktop.gtk'];
const APP_WHITELIST = ['org.freedesktop.impl.portal.desktop.gtk'];
const INTROSPECT_DBUS_API_VERSION = 3;
@ -46,13 +46,13 @@ var IntrospectService = class {
this._syncRunningApplications();
this._allowlistMap = new Map();
APP_ALLOWLIST.forEach(appName => {
this._whitelistMap = new Map();
APP_WHITELIST.forEach(appName => {
Gio.DBus.watch_name(Gio.BusType.SESSION,
appName,
Gio.BusNameWatcherFlags.NONE,
(conn, name, owner) => this._allowlistMap.set(name, owner),
(conn, name) => this._allowlistMap.delete(name));
(conn, name, owner) => this._whitelistMap.set(name, owner),
(conn, name) => this._whitelistMap.delete(name));
});
this._settings = St.Settings.get();
@ -74,8 +74,8 @@ var IntrospectService = class {
return this._introspectSettings.get_boolean(INTROSPECT_KEY);
}
_isSenderAllowed(sender) {
return [...this._allowlistMap.values()].includes(sender);
_isSenderWhitelisted(sender) {
return [...this._whitelistMap.values()].includes(sender);
}
_getSandboxedAppId(app) {
@ -138,7 +138,7 @@ var IntrospectService = class {
if (this._isIntrospectEnabled())
return true;
if (this._isSenderAllowed(invocation.get_sender()))
if (this._isSenderWhitelisted(invocation.get_sender()))
return true;
return false;

View File

@ -158,23 +158,6 @@ var LoginManagerSystemd = class {
});
}
canRebootToBootLoaderMenu(asyncCallback) {
this._proxy.CanRebootToBootLoaderMenuRemote((result, error) => {
if (error) {
asyncCallback(false, false);
} else {
const needsAuth = result[0] === 'challenge';
const canRebootToBootLoaderMenu = needsAuth || result[0] === 'yes';
asyncCallback(canRebootToBootLoaderMenu, needsAuth);
}
});
}
setRebootToBootLoaderMenu() {
/* Parameter is timeout in usec, show to menu for 60 seconds */
this._proxy.SetRebootToBootLoaderMenuRemote(60000000);
}
listSessions(asyncCallback) {
this._proxy.ListSessionsRemote((result, error) => {
if (error)
@ -220,13 +203,6 @@ var LoginManagerDummy = class {
asyncCallback(false, false);
}
canRebootToBootLoaderMenu(asyncCallback) {
asyncCallback(false, false);
}
setRebootToBootLoaderMenu() {
}
listSessions(asyncCallback) {
asyncCallback([]);
}

View File

@ -121,10 +121,10 @@ var ParentalControlsManager = GObject.registerClass({
// Calculate whether the given app (a Gio.DesktopAppInfo) should be shown
// on the desktop, in search results, etc. The app should be shown if:
// - The .desktop file doesnt say it should be hidden.
// - The executable from the .desktop files Exec line isnt denied in
// - The executable from the .desktop files Exec line isnt blacklisted in
// the users parental controls.
// - None of the flatpak app IDs from the X-Flatpak and the
// X-Flatpak-RenamedFrom lines are denied in the users parental
// X-Flatpak-RenamedFrom lines are blacklisted in the users parental
// controls.
shouldShowApp(appInfo) {
// Quick decision?

View File

@ -21,7 +21,6 @@ const SENSOR_OBJECT_PATH = '/net/hadess/SensorProxy';
const SensorProxyInterface = loadInterfaceXML('net.hadess.SensorProxy');
const POWER_OFF_ACTION_ID = 'power-off';
const RESTART_ACTION_ID = 'restart';
const LOCK_SCREEN_ACTION_ID = 'lock-screen';
const LOGOUT_ACTION_ID = 'logout';
const SUSPEND_ACTION_ID = 'suspend';
@ -41,38 +40,41 @@ function getDefault() {
const SystemActions = GObject.registerClass({
Properties: {
'can-power-off': GObject.ParamSpec.boolean(
'can-power-off', 'can-power-off', 'can-power-off',
GObject.ParamFlags.READABLE,
false),
'can-restart': GObject.ParamSpec.boolean(
'can-restart', 'can-restart', 'can-restart',
GObject.ParamFlags.READABLE,
false),
'can-suspend': GObject.ParamSpec.boolean(
'can-suspend', 'can-suspend', 'can-suspend',
GObject.ParamFlags.READABLE,
false),
'can-lock-screen': GObject.ParamSpec.boolean(
'can-lock-screen', 'can-lock-screen', 'can-lock-screen',
GObject.ParamFlags.READABLE,
false),
'can-switch-user': GObject.ParamSpec.boolean(
'can-switch-user', 'can-switch-user', 'can-switch-user',
GObject.ParamFlags.READABLE,
false),
'can-logout': GObject.ParamSpec.boolean(
'can-logout', 'can-logout', 'can-logout',
GObject.ParamFlags.READABLE,
false),
'can-lock-orientation': GObject.ParamSpec.boolean(
'can-lock-orientation', 'can-lock-orientation', 'can-lock-orientation',
GObject.ParamFlags.READABLE,
false),
'orientation-lock-icon': GObject.ParamSpec.string(
'orientation-lock-icon', 'orientation-lock-icon', 'orientation-lock-icon',
GObject.ParamFlags.READWRITE,
null),
'can-power-off': GObject.ParamSpec.boolean('can-power-off',
'can-power-off',
'can-power-off',
GObject.ParamFlags.READABLE,
false),
'can-suspend': GObject.ParamSpec.boolean('can-suspend',
'can-suspend',
'can-suspend',
GObject.ParamFlags.READABLE,
false),
'can-lock-screen': GObject.ParamSpec.boolean('can-lock-screen',
'can-lock-screen',
'can-lock-screen',
GObject.ParamFlags.READABLE,
false),
'can-switch-user': GObject.ParamSpec.boolean('can-switch-user',
'can-switch-user',
'can-switch-user',
GObject.ParamFlags.READABLE,
false),
'can-logout': GObject.ParamSpec.boolean('can-logout',
'can-logout',
'can-logout',
GObject.ParamFlags.READABLE,
false),
'can-lock-orientation': GObject.ParamSpec.boolean('can-lock-orientation',
'can-lock-orientation',
'can-lock-orientation',
GObject.ParamFlags.READABLE,
false),
'orientation-lock-icon': GObject.ParamSpec.string('orientation-lock-icon',
'orientation-lock-icon',
'orientation-lock-icon',
GObject.ParamFlags.READWRITE,
null),
},
}, class SystemActions extends GObject.Object {
_init() {
@ -91,15 +93,7 @@ const SystemActions = GObject.registerClass({
name: C_("search-result", "Power Off"),
iconName: 'system-shutdown-symbolic',
// Translators: A list of keywords that match the power-off action, separated by semicolons
keywords: tokenizeKeywords(_('power off;shutdown;halt;stop')),
available: false,
});
this._actions.set(RESTART_ACTION_ID, {
// Translators: The name of the restart action in search
name: C_('search-result', 'Restart'),
iconName: 'system-reboot-symbolic',
// Translators: A list of keywords that match the restart action, separated by semicolons
keywords: tokenizeKeywords(_('reboot;restart;')),
keywords: tokenizeKeywords(_('power off;shutdown;reboot;restart;halt;stop')),
available: false,
});
this._actions.set(LOCK_SCREEN_ACTION_ID, {
@ -209,11 +203,6 @@ const SystemActions = GObject.registerClass({
return this._actions.get(POWER_OFF_ACTION_ID).available;
}
// eslint-disable-next-line camelcase
get can_restart() {
return this._actions.get(RESTART_ACTION_ID).available;
}
// eslint-disable-next-line camelcase
get can_suspend() {
return this._actions.get(SUSPEND_ACTION_ID).available;
@ -317,9 +306,6 @@ const SystemActions = GObject.registerClass({
case POWER_OFF_ACTION_ID:
this.activatePowerOff();
break;
case RESTART_ACTION_ID:
this.activateRestart();
break;
case LOCK_SCREEN_ACTION_ID:
this.activateLockScreen();
break;
@ -361,9 +347,6 @@ const SystemActions = GObject.registerClass({
this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
this._actions.get(POWER_OFF_ACTION_ID).available = this._canHavePowerOff && !disabled;
this.notify('can-power-off');
this._actions.get(RESTART_ACTION_ID).available = this._canHavePowerOff && !disabled;
this.notify('can-restart');
}
_updateHaveSuspend() {
@ -462,13 +445,6 @@ const SystemActions = GObject.registerClass({
this._session.ShutdownRemote(0);
}
activateRestart() {
if (!this._actions.get(RESTART_ACTION_ID).available)
throw new Error('The restart action is not available!');
this._session.RebootRemote();
}
activateSuspend() {
if (!this._actions.get(SUSPEND_ACTION_ID).available)
throw new Error('The suspend action is not available!');

View File

@ -1,146 +0,0 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported run, finish, script_topBarNavDone, script_notificationShowDone,
script_notificationCloseDone, script_overviewShowDone,
script_applicationsShowStart, script_applicationsShowDone, METRICS,
*/
/* eslint camelcase: ["error", { properties: "never", allow: ["^script_"] }] */
const { St } = imports.gi;
const Main = imports.ui.main;
const MessageTray = imports.ui.messageTray;
const Scripting = imports.ui.scripting;
// This script tests the most important (basic) functionality of the shell.
var METRICS = {};
async function run() {
/* eslint-disable no-await-in-loop */
Scripting.defineScriptEvent('topBarNavStart', 'Starting to navigate the top bar');
Scripting.defineScriptEvent('topBarNavDone', 'Done navigating the top bar');
Scripting.defineScriptEvent('notificationShowStart', 'Showing a notification');
Scripting.defineScriptEvent('notificationShowDone', 'Done showing a notification');
Scripting.defineScriptEvent('notificationCloseStart', 'Closing a notification');
Scripting.defineScriptEvent('notificationCloseDone', 'Done closing a notification');
Scripting.defineScriptEvent('overviewShowStart', 'Starting to show the overview');
Scripting.defineScriptEvent('overviewShowDone', 'Overview finished showing');
Scripting.defineScriptEvent('applicationsShowStart', 'Starting to switch to applications view');
Scripting.defineScriptEvent('applicationsShowDone', 'Done switching to applications view');
Main.overview.connect('shown',
() => Scripting.scriptEvent('overviewShowDone'));
await Scripting.sleep(1000);
// navigate through top bar
Scripting.scriptEvent('topBarNavStart');
Main.panel.statusArea.aggregateMenu.menu.open();
await Scripting.sleep(400);
const { menuManager } = Main.panel;
while (menuManager.activeMenu &&
Main.panel.navigate_focus(menuManager.activeMenu.sourceActor,
St.DirectionType.TAB_BACKWARD, false))
await Scripting.sleep(400);
Scripting.scriptEvent('topBarNavDone');
await Scripting.sleep(1000);
// notification
const source = new MessageTray.SystemNotificationSource();
Main.messageTray.add(source);
Scripting.scriptEvent('notificationShowStart');
source.connect('notification-show',
() => Scripting.scriptEvent('notificationShowDone'));
const notification = new MessageTray.Notification(source,
'A test notification');
source.showNotification(notification);
await Scripting.sleep(400);
Main.panel.statusArea.dateMenu.menu.open();
await Scripting.sleep(400);
Scripting.scriptEvent('notificationCloseStart');
notification.connect('destroy',
() => Scripting.scriptEvent('notificationCloseDone'));
notification.destroy();
await Scripting.sleep(400);
Main.panel.statusArea.dateMenu.menu.close();
await Scripting.waitLeisure();
await Scripting.sleep(1000);
// overview (window picker)
Scripting.scriptEvent('overviewShowStart');
Main.overview.show();
await Scripting.waitLeisure();
Main.overview.hide();
await Scripting.waitLeisure();
await Scripting.sleep(1000);
// overview (app picker)
Main.overview.show();
await Scripting.waitLeisure();
Scripting.scriptEvent('applicationsShowStart');
// eslint-disable-next-line require-atomic-updates
Main.overview.dash.showAppsButton.checked = true;
await Scripting.waitLeisure();
Scripting.scriptEvent('applicationsShowDone');
// eslint-disable-next-line require-atomic-updates
Main.overview.dash.showAppsButton.checked = false;
await Scripting.waitLeisure();
Main.overview.hide();
await Scripting.waitLeisure();
/* eslint-enable no-await-in-loop */
}
let topBarNav = false;
let notificationShown = false;
let notificationClosed = false;
let windowPickerShown = false;
let appPickerShown = false;
function script_topBarNavDone() {
topBarNav = true;
}
function script_notificationShowDone() {
notificationShown = true;
}
function script_notificationCloseDone() {
notificationClosed = true;
}
function script_overviewShowDone() {
windowPickerShown = true;
}
function script_applicationsShowDone() {
appPickerShown = true;
}
function finish() {
if (!topBarNav)
throw new Error('Failed to navigate top bar');
if (!notificationShown)
throw new Error('Failed to show notification');
if (!notificationClosed)
throw new Error('Failed to close notification');
if (!windowPickerShown)
throw new Error('Failed to show window picker');
if (!appPickerShown)
throw new Error('Failed to show app picker');
}

View File

@ -70,8 +70,7 @@ let WINDOW_CONFIGS = [
{ width: 640, height: 480, alpha: true, maximized: false, count: 10, metric: 'overviewFps10Alpha' },
];
async function run() {
/* eslint-disable no-await-in-loop */
function *run() {
Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");
Scripting.defineScriptEvent("afterShowHide", "After a show/hide cycle for the overview");
@ -85,7 +84,7 @@ async function run() {
Scripting.scriptEvent('overviewShowDone');
});
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
for (let i = 0; i < 2 * WINDOW_CONFIGS.length; i++) {
// We go to the overview twice for each configuration; the first time
@ -93,50 +92,49 @@ async function run() {
// a clean set of numbers.
if ((i % 2) == 0) {
let config = WINDOW_CONFIGS[i / 2];
await Scripting.destroyTestWindows();
yield Scripting.destroyTestWindows();
for (let k = 0; k < config.count; k++) {
await Scripting.createTestWindow({ width: config.width,
yield Scripting.createTestWindow({ width: config.width,
height: config.height,
alpha: config.alpha,
maximized: config.maximized });
}
await Scripting.waitTestWindows();
await Scripting.sleep(1000);
await Scripting.waitLeisure();
yield Scripting.waitTestWindows();
yield Scripting.sleep(1000);
yield Scripting.waitLeisure();
}
Scripting.scriptEvent('overviewShowStart');
Main.overview.show();
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
Main.overview.hide();
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
System.gc();
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.collectStatistics();
Scripting.scriptEvent('afterShowHide');
}
await Scripting.destroyTestWindows();
await Scripting.sleep(1000);
yield Scripting.destroyTestWindows();
yield Scripting.sleep(1000);
Main.overview.show();
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
for (let i = 0; i < 2; i++) {
Scripting.scriptEvent('applicationsShowStart');
// eslint-disable-next-line require-atomic-updates
Main.overview.dash.showAppsButton.checked = true;
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
Scripting.scriptEvent('applicationsShowDone');
// eslint-disable-next-line require-atomic-updates
Main.overview.dash.showAppsButton.checked = false;
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
}
/* eslint-enable no-await-in-loop */
}
let showingOverview = false;

View File

@ -94,8 +94,7 @@ function extractBootTimestamp() {
return result;
}
async function run() {
/* eslint-disable no-await-in-loop */
function *run() {
Scripting.defineScriptEvent("desktopShown", "Finished initial animation");
Scripting.defineScriptEvent("overviewShowStart", "Starting to show the overview");
Scripting.defineScriptEvent("overviewShowDone", "Overview finished showing");
@ -111,7 +110,7 @@ async function run() {
Scripting.defineScriptEvent("geditLaunch", "gedit application launch");
Scripting.defineScriptEvent("geditFirstFrame", "first frame of gedit window drawn");
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
Scripting.scriptEvent('desktopShown');
let interfaceSettings = new Gio.Settings({
@ -121,22 +120,22 @@ async function run() {
Scripting.scriptEvent('overviewShowStart');
Main.overview.show();
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
Scripting.scriptEvent('overviewShowDone');
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.scriptEvent('applicationsShowStart');
// eslint-disable-next-line require-atomic-updates
Main.overview.dash.showAppsButton.checked = true;
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
Scripting.scriptEvent('applicationsShowDone');
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Main.overview.hide();
await Scripting.waitLeisure();
yield Scripting.waitLeisure();
// --------------------- //
// Tests of redraw speed //
@ -146,46 +145,46 @@ async function run() {
global.frame_finish_timestamp = true;
for (let k = 0; k < 5; k++)
await Scripting.createTestWindow({ maximized: true });
await Scripting.waitTestWindows();
yield Scripting.createTestWindow({ maximized: true });
yield Scripting.waitTestWindows();
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.scriptEvent('mainViewDrawStart');
await waitAndDraw(1000);
yield waitAndDraw(1000);
Scripting.scriptEvent('mainViewDrawDone');
Main.overview.show();
Scripting.waitLeisure();
await Scripting.sleep(1500);
yield Scripting.sleep(1500);
Scripting.scriptEvent('overviewDrawStart');
await waitAndDraw(1000);
yield waitAndDraw(1000);
Scripting.scriptEvent('overviewDrawDone');
await Scripting.destroyTestWindows();
yield Scripting.destroyTestWindows();
Main.overview.hide();
await Scripting.createTestWindow({ maximized: true,
yield Scripting.createTestWindow({ maximized: true,
redraws: true });
await Scripting.waitTestWindows();
yield Scripting.waitTestWindows();
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.scriptEvent('redrawTestStart');
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.scriptEvent('redrawTestDone');
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
Scripting.scriptEvent('collectTimings');
await Scripting.destroyTestWindows();
yield Scripting.destroyTestWindows();
global.frame_timestamps = false;
global.frame_finish_timestamp = false;
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
let appSys = Shell.AppSystem.get_default();
let app = appSys.lookup_app('org.gnome.gedit.desktop');
@ -198,22 +197,21 @@ async function run() {
throw new Error('gedit was already running');
while (windows.length == 0) {
await waitSignal(global.display, 'window-created');
yield waitSignal(global.display, 'window-created');
windows = app.get_windows();
}
let actor = windows[0].get_compositor_private();
await waitSignal(actor, 'first-frame');
yield waitSignal(actor, 'first-frame');
Scripting.scriptEvent('geditFirstFrame');
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
windows[0].delete(global.get_current_time());
await Scripting.sleep(1000);
yield Scripting.sleep(1000);
interfaceSettings.set_boolean('enable-animations', true);
/* eslint-enable no-await-in-loop */
}
let overviewShowStart;

View File

@ -1541,7 +1541,7 @@ class AppViewItem extends St.Button {
return false;
if (this._withinLeeways(x))
return false;
return DND.DragMotionResult.CONTINUE;
return true;
}

View File

@ -18,7 +18,7 @@
*/
const { AccountsService, Clutter, Gio,
GLib, GObject, Pango, Polkit, Shell, St, UPowerGlib: UPower } = imports.gi;
GLib, GObject, Pango, Polkit, Shell, St } = imports.gi;
const CheckBox = imports.ui.checkBox;
const Dialog = imports.ui.dialog;
@ -31,30 +31,24 @@ const { loadInterfaceXML } = imports.misc.fileUtils;
const _ITEM_ICON_SIZE = 64;
const LOW_BATTERY_THRESHOLD = 30;
const EndSessionDialogIface = loadInterfaceXML('org.gnome.SessionManager.EndSessionDialog');
const logoutDialogContent = {
subjectWithUser: C_("title", "Log Out %s"),
subject: C_("title", "Log Out"),
descriptionWithUser(user, seconds) {
return ngettext(
'%s will be logged out automatically in %d second.',
'%s will be logged out automatically in %d seconds.',
seconds).format(user, seconds);
return ngettext("%s will be logged out automatically in %d second.",
"%s will be logged out automatically in %d seconds.",
seconds).format(user, seconds);
},
description(seconds) {
return ngettext(
'You will be logged out automatically in %d second.',
'You will be logged out automatically in %d seconds.',
seconds).format(seconds);
return ngettext("You will be logged out automatically in %d second.",
"You will be logged out automatically in %d seconds.",
seconds).format(seconds);
},
showBatteryWarning: false,
confirmButtons: [{
signal: 'ConfirmedLogout',
label: C_('button', 'Log Out'),
}],
confirmButtons: [{ signal: 'ConfirmedLogout',
label: C_("button", "Log Out") }],
showOtherSessions: false,
};
@ -62,36 +56,30 @@ const shutdownDialogContent = {
subject: C_("title", "Power Off"),
subjectWithUpdates: C_("title", "Install Updates & Power Off"),
description(seconds) {
return ngettext(
'The system will power off automatically in %d second.',
'The system will power off automatically in %d seconds.',
seconds).format(seconds);
return ngettext("The system will power off automatically in %d second.",
"The system will power off automatically in %d seconds.",
seconds).format(seconds);
},
checkBoxText: C_("checkbox", "Install pending software updates"),
showBatteryWarning: true,
confirmButtons: [{
signal: 'ConfirmedShutdown',
label: C_('button', 'Power Off'),
}],
confirmButtons: [{ signal: 'ConfirmedReboot',
label: C_("button", "Restart") },
{ signal: 'ConfirmedShutdown',
label: C_("button", "Power Off") }],
iconName: 'system-shutdown-symbolic',
showOtherSessions: true,
};
const restartDialogContent = {
subject: C_("title", "Restart"),
subjectWithUpdates: C_('title', 'Install Updates & Restart'),
description(seconds) {
return ngettext(
'The system will restart automatically in %d second.',
'The system will restart automatically in %d seconds.',
seconds).format(seconds);
return ngettext("The system will restart automatically in %d second.",
"The system will restart automatically in %d seconds.",
seconds).format(seconds);
},
checkBoxText: C_('checkbox', 'Install pending software updates'),
showBatteryWarning: true,
confirmButtons: [{
signal: 'ConfirmedReboot',
label: C_('button', 'Restart'),
}],
showBatteryWarning: false,
confirmButtons: [{ signal: 'ConfirmedReboot',
label: C_("button", "Restart") }],
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};
@ -100,16 +88,13 @@ const restartUpdateDialogContent = {
subject: C_("title", "Restart & Install Updates"),
description(seconds) {
return ngettext(
'The system will automatically restart and install updates in %d second.',
'The system will automatically restart and install updates in %d seconds.',
seconds).format(seconds);
return ngettext("The system will automatically restart and install updates in %d second.",
"The system will automatically restart and install updates in %d seconds.",
seconds).format(seconds);
},
showBatteryWarning: true,
confirmButtons: [{
signal: 'ConfirmedReboot',
label: C_('button', 'Restart &amp; Install'),
}],
confirmButtons: [{ signal: 'ConfirmedReboot',
label: C_("button", "Restart &amp; Install") }],
unusedFutureButtonForTranslation: C_("button", "Install &amp; Power Off"),
unusedFutureCheckBoxForTranslation: C_("checkbox", "Power off after updates are installed"),
iconName: 'view-refresh-symbolic',
@ -127,10 +112,8 @@ const restartUpgradeDialogContent = {
},
disableTimer: true,
showBatteryWarning: false,
confirmButtons: [{
signal: 'ConfirmedReboot',
label: C_('button', 'Restart &amp; Install'),
}],
confirmButtons: [{ signal: 'ConfirmedReboot',
label: C_("button", "Restart &amp; Install") }],
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};
@ -159,7 +142,7 @@ const LogindSession = Gio.DBusProxy.makeProxyWrapper(LogindSessionIface);
const PkOfflineIface = loadInterfaceXML('org.freedesktop.PackageKit.Offline');
const PkOfflineProxy = Gio.DBusProxy.makeProxyWrapper(PkOfflineIface);
const UPowerIface = loadInterfaceXML('org.freedesktop.UPower.Device');
const UPowerIface = loadInterfaceXML('org.freedesktop.UPower');
const UPowerProxy = Gio.DBusProxy.makeProxyWrapper(UPowerIface);
function findAppFromInhibitor(inhibitor) {
@ -230,11 +213,6 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
destroyOnClose: false });
this._loginManager = LoginManager.getLoginManager();
this._loginManager.canRebootToBootLoaderMenu(
(canRebootToBootLoaderMenu, unusedNeedsAuth) => {
this._canRebootToBootLoaderMenu = canRebootToBootLoaderMenu;
});
this._userManager = AccountsService.UserManager.get_default();
this._user = this._userManager.get_user(GLib.get_user_name());
this._updatesPermission = null;
@ -246,7 +224,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
this._powerProxy = new UPowerProxy(Gio.DBus.system,
'org.freedesktop.UPower',
'/org/freedesktop/UPower/devices/DisplayDevice',
'/org/freedesktop/UPower',
(proxy, error) => {
if (error) {
log(error.message);
@ -261,9 +239,6 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
this._totalSecondsToStayOpen = 0;
this._applications = [];
this._sessions = [];
this._capturedEventId = 0;
this._rebootButton = null;
this._rebootButtonAlt = null;
this.connect('destroy',
this._onDestroy.bind(this));
@ -281,7 +256,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
this._batteryWarning = new St.Label({
style_class: 'end-session-dialog-battery-warning',
text: _('Low battery power: please plug in before installing updates.'),
text: _('Running on battery power: Please plug in before installing updates.'),
});
this._batteryWarning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._batteryWarning.clutter_text.line_wrap = true;
@ -331,32 +306,6 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
this._user.disconnect(this._userChangedId);
}
_isDischargingBattery() {
return this._powerProxy.IsPresent &&
this._powerProxy.State !== UPower.DeviceState.CHARGING &&
this._powerProxy.State !== UPower.DeviceState.FULLY_CHARGED;
}
_isBatteryLow() {
return this._isDischargingBattery() && this._powerProxy.Percentage < LOW_BATTERY_THRESHOLD;
}
_shouldShowLowBatteryWarning(dialogContent) {
if (!dialogContent.showBatteryWarning)
return false;
if (!this._isBatteryLow())
return false;
if (this._checkBox.checked)
return true;
// Show the warning if updates have already been triggered, but
// the user doesn't have enough permissions to cancel them.
let updatesAllowed = this._updatesPermission && this._updatesPermission.allowed;
return this._updateInfo.UpdatePrepared && this._updateInfo.UpdateTriggered && !updatesAllowed;
}
_sync() {
let open = this.state == ModalDialog.State.OPENING || this.state == ModalDialog.State.OPENED;
if (!open)
@ -370,7 +319,10 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
if (dialogContent.subjectWithUpdates && this._checkBox.checked)
subject = dialogContent.subjectWithUpdates;
this._batteryWarning.visible = this._shouldShowLowBatteryWarning(dialogContent);
if (dialogContent.showBatteryWarning) {
this._batteryWarning.visible =
this._powerProxy.OnBattery && this._checkBox.checked;
}
let description;
let displayTime = _roundSecondsToInterval(this._totalSecondsToStayOpen,
@ -411,38 +363,16 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
this._sessionSection.visible = hasSessions;
}
_onCapturedEvent(actor, event) {
let altEnabled = false;
let type = event.type();
if (type !== Clutter.EventType.KEY_PRESS && type !== Clutter.EventType.KEY_RELEASE)
return Clutter.EVENT_PROPAGATE;
let key = event.get_key_symbol();
if (key !== Clutter.KEY_Alt_L && key !== Clutter.KEY_Alt_R)
return Clutter.EVENT_PROPAGATE;
if (type === Clutter.EventType.KEY_PRESS)
altEnabled = true;
this._rebootButton.visible = !altEnabled;
this._rebootButtonAlt.visible = altEnabled;
return Clutter.EVENT_PROPAGATE;
}
_updateButtons() {
this.clearButtons();
this.addButton({ action: this.cancel.bind(this),
label: _("Cancel"),
key: Clutter.KEY_Escape });
let dialogContent = DialogContent[this._type];
let buttons = [{ action: this.cancel.bind(this),
label: _("Cancel"),
key: Clutter.KEY_Escape }];
for (let i = 0; i < dialogContent.confirmButtons.length; i++) {
let signal = dialogContent.confirmButtons[i].signal;
let label = dialogContent.confirmButtons[i].label;
let button = this.addButton({
buttons.push({
action: () => {
this.close(true);
let signalId = this.connect('closed', () => {
@ -452,34 +382,9 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
},
label,
});
// Add Alt "Boot Options" option to the Reboot button
if (this._canRebootToBootLoaderMenu && signal === 'ConfirmedReboot') {
this._rebootButton = button;
this._rebootButtonAlt = this.addButton({
action: () => {
this.close(true);
let signalId = this.connect('closed', () => {
this.disconnect(signalId);
this._confirmRebootToBootLoaderMenu();
});
},
label: C_('button', 'Boot Options'),
});
this._rebootButtonAlt.visible = false;
this._capturedEventId = global.stage.connect('captured-event',
this._onCapturedEvent.bind(this));
}
}
}
_stopAltCapture() {
if (this._capturedEventId > 0) {
global.stage.disconnect(this._capturedEventId);
this._capturedEventId = 0;
}
this._rebootButton = null;
this._rebootButtonAlt = null;
this.setButtons(buttons);
}
close(skipSignal) {
@ -491,21 +396,14 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
cancel() {
this._stopTimer();
this._stopAltCapture();
this._dbusImpl.emit_signal('Canceled', null);
this.close();
}
_confirmRebootToBootLoaderMenu() {
this._loginManager.setRebootToBootLoaderMenu();
this._confirm('ConfirmedReboot');
}
_confirm(signal) {
let callback = () => {
this._fadeOutDialog();
this._stopTimer();
this._stopAltCapture();
this._dbusImpl.emit_signal(signal, null);
};
@ -773,17 +671,19 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
if (dialogContent.showOtherSessions)
this._loadSessions();
let updateTriggered = this._updateInfo.UpdateTriggered;
let updatePrepared = this._updateInfo.UpdatePrepared;
let updatesAllowed = this._updatesPermission && this._updatesPermission.allowed;
_setCheckBoxLabel(this._checkBox, dialogContent.checkBoxText || '');
this._checkBox.visible = dialogContent.checkBoxText && this._updateInfo.UpdatePrepared && updatesAllowed;
this._checkBox.visible = dialogContent.checkBoxText && updatePrepared && updatesAllowed;
this._checkBox.checked = this._checkBox.visible;
if (this._type === DialogType.UPGRADE_RESTART)
this._checkBox.checked = this._checkBox.visible && this._updateInfo.UpdateTriggered && !this._isDischargingBattery();
else
this._checkBox.checked = this._checkBox.visible && !this._isBatteryLow();
this._batteryWarning.visible = this._shouldShowLowBatteryWarning(dialogContent);
// We show the warning either together with the checkbox, or when
// updates have already been triggered, but the user doesn't have
// enough permissions to cancel them.
this._batteryWarning.visible = dialogContent.showBatteryWarning &&
(this._checkBox.visible || updatePrepared && updateTriggered && !updatesAllowed);
this._updateButtons();

View File

@ -134,14 +134,7 @@ function _easeActor(actor, params) {
actor.set_easing_mode(params.mode);
delete params.mode;
const prepare = () => {
Meta.disable_unredirect_for_display(global.display);
global.begin_work();
};
const cleanup = () => {
Meta.enable_unredirect_for_display(global.display);
global.end_work();
};
let cleanup = () => Meta.enable_unredirect_for_display(global.display);
let callback = _makeEaseCallback(params, cleanup);
// cancel overwritten transitions
@ -156,9 +149,9 @@ function _easeActor(actor, params) {
.find(t => t !== null);
if (transition && transition.delay)
transition.connect('started', () => prepare());
transition.connect('started', () => Meta.disable_unredirect_for_display(global.display));
else
prepare();
Meta.disable_unredirect_for_display(global.display);
if (transition) {
transition.set({ repeatCount, autoReverse });
@ -198,14 +191,7 @@ function _easeActorProperty(actor, propName, target, params) {
if (actor instanceof Clutter.Actor && !actor.mapped)
duration = 0;
const prepare = () => {
Meta.disable_unredirect_for_display(global.display);
global.begin_work();
};
const cleanup = () => {
Meta.enable_unredirect_for_display(global.display);
global.end_work();
};
let cleanup = () => Meta.enable_unredirect_for_display(global.display);
let callback = _makeEaseCallback(params, cleanup);
// cancel overwritten transition
@ -217,7 +203,7 @@ function _easeActorProperty(actor, propName, target, params) {
if (!isReversed)
obj[prop] = target;
prepare();
Meta.disable_unredirect_for_display(global.display);
callback(true);
return;
@ -236,9 +222,9 @@ function _easeActorProperty(actor, propName, target, params) {
transition.set_to(target);
if (transition.delay)
transition.connect('started', () => prepare());
transition.connect('started', () => Meta.disable_unredirect_for_display(global.display));
else
prepare();
Meta.disable_unredirect_for_display(global.display);
transition.connect('stopped', (t, finished) => callback(finished));
}

View File

@ -7,7 +7,7 @@ const PermissionStore = imports.misc.permissionStore;
const WAYLAND_KEYBINDINGS_SCHEMA = 'org.gnome.mutter.wayland.keybindings';
const APP_ALLOWLIST = ['gnome-control-center.desktop'];
const APP_WHITELIST = ['gnome-control-center.desktop'];
const APP_PERMISSIONS_TABLE = 'gnome';
const APP_PERMISSIONS_ID = 'shortcuts-inhibitor';
const GRANTED = 'GRANTED';
@ -118,7 +118,7 @@ var InhibitShortcutsDialog = GObject.registerClass({
}
vfunc_show() {
if (this._app && APP_ALLOWLIST.includes(this._app.get_id())) {
if (this._app && APP_WHITELIST.includes(this._app.get_id())) {
this._emitResponse(DialogResponse.ALLOW);
return;
}

View File

@ -1091,8 +1091,8 @@ var Keypad = GObject.registerClass({
{ label: '8', keyval: Clutter.KEY_8, left: 1, top: 2 },
{ label: '9', keyval: Clutter.KEY_9, left: 2, top: 2 },
{ label: '0', keyval: Clutter.KEY_0, left: 1, top: 3 },
{ keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic', left: 3, top: 0 },
{ keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic', left: 3, top: 1, height: 2 },
{ label: '⌫', keyval: Clutter.KEY_BackSpace, left: 3, top: 0 },
{ keyval: Clutter.KEY_Return, extraClassName: 'enter-key', left: 3, top: 1, height: 2 },
];
super._init({
@ -1109,7 +1109,7 @@ var Keypad = GObject.registerClass({
for (let i = 0; i < keys.length; i++) {
let cur = keys[i];
let key = new Key(cur.label || "", [], cur.icon);
let key = new Key(cur.label || "", []);
if (keys[i].extraClassName)
key.keyButton.add_style_class_name(cur.extraClassName);

View File

@ -21,13 +21,16 @@ const { loadInterfaceXML } = imports.misc.fileUtils;
// When scripting an automated test we want to make a series of calls
// in a linear fashion, but we also want to be able to let the main
// loop run so actions can finish. For this reason we write the script
// as an async function that uses await when it wants to let the main
// as a generator function that yields when it want to let the main
// loop run.
//
// await Scripting.sleep(1000);
// yield Scripting.sleep(1000);
// main.overview.show();
// await Scripting.waitLeisure();
// yield Scripting.waitLeisure();
//
// While it isn't important to the person writing the script, the actual
// yielded result is a function that the caller uses to provide the
// callback for resuming the script.
/**
* sleep:
@ -282,11 +285,13 @@ function _collect(scriptModule, outputFile) {
}
async function _runPerfScript(scriptModule, outputFile) {
try {
await scriptModule.run();
} catch (err) {
log(`Script failed: ${err}\n${err.stack}`);
Meta.exit(Meta.ExitCode.ERROR);
for (let step of scriptModule.run()) {
try {
await step; // eslint-disable-line no-await-in-loop
} catch (err) {
log(`Script failed: ${err}\n${err.stack}`);
Meta.exit(Meta.ExitCode.ERROR);
}
}
try {

View File

@ -113,10 +113,10 @@ function _loadMode(file, info) {
}
_modes[modeName] = {};
const excludedProps = ['unlockDialog'];
let propBlacklist = ['unlockDialog'];
for (let prop in _modes[DEFAULT_MODE]) {
if (newMode[prop] !== undefined &&
!excludedProps.includes(prop))
!propBlacklist.includes(prop))
_modes[modeName][prop] = newMode[prop];
}
_modes[modeName]['isPrimary'] = true;

View File

@ -15,7 +15,6 @@ const Util = imports.misc.util;
const { loadInterfaceXML } = imports.misc.fileUtils;
Gio._promisify(Gio.DBusConnection.prototype, 'call', 'call_finish');
Gio._promisify(NM.Client, 'new_async', 'new_finish');
Gio._promisify(NM.Client.prototype,
'check_connectivity_async', 'check_connectivity_finish');
@ -83,30 +82,6 @@ function ensureActiveConnectionProps(active) {
}
}
function launchSettingsPanel(panel, ...args) {
const param = new GLib.Variant('(sav)',
[panel, args.map(s => new GLib.Variant('s', s))]);
const platformData = {
'desktop-startup-id': new GLib.Variant('s',
'_TIME%s'.format(global.get_current_time())),
};
try {
Gio.DBus.session.call(
'org.gnome.ControlCenter',
'/org/gnome/ControlCenter',
'org.freedesktop.Application',
'ActivateAction',
new GLib.Variant('(sava{sv})',
['launch-panel', [param], platformData]),
null,
Gio.DBusCallFlags.NONE,
-1,
null);
} catch (e) {
log('Failed to launch Settings panel: %s'.format(e.message));
}
}
var NMConnectionItem = class {
constructor(section, connection) {
this._section = section;
@ -564,7 +539,8 @@ var NMDeviceModem = class extends NMConnectionDevice {
}
_autoConnect() {
launchSettingsPanel('network', 'connect-3g', this._device.get_path());
Util.spawn(['gnome-control-center', 'network',
'connect-3g', this._device.get_path()]);
}
destroy() {
@ -955,8 +931,8 @@ class NMWirelessDialog extends ModalDialog.ModalDialog {
(accessPoints[0]._secType == NMAccessPointSecurity.WPA_ENT)) {
// 802.1x-enabled APs require further configuration, so they're
// handled in gnome-control-center
launchSettingsPanel('wifi', 'connect-8021x-wifi',
this._device.get_path(), accessPoints[0].get_path());
Util.spawn(['gnome-control-center', 'wifi', 'connect-8021x-wifi',
this._device.get_path(), accessPoints[0].get_path()]);
} else {
let connection = new NM.SimpleConnection();
this._client.add_and_activate_connection_async(connection, this._device, accessPoints[0].get_path(), null, null);

View File

@ -86,8 +86,6 @@ class Indicator extends PanelMenu.SystemIndicator {
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
this._sessionUpdated();
this._sync();
}
_sessionUpdated() {

View File

@ -27,8 +27,6 @@ class Indicator extends PanelMenu.SystemIndicator {
() => this._updateSessionSubMenu());
this._powerOffItem.connect('notify::visible',
() => this._updateSessionSubMenu());
this._restartItem.connect('notify::visible',
() => this._updateSessionSubMenu());
// Whether shutdown is available or not depends on both lockdown
// settings (disable-log-out) and Polkit policy - the latter doesn't
// notify, so we update the menu item each time the menu opens or
@ -54,7 +52,6 @@ class Indicator extends PanelMenu.SystemIndicator {
this._loginScreenItem.visible ||
this._logoutItem.visible ||
this._suspendItem.visible ||
this._restartItem.visible ||
this._powerOffItem.visible;
}
@ -73,8 +70,9 @@ class Indicator extends PanelMenu.SystemIndicator {
this.menu.addMenuItem(item);
this._orientationLockItem = item;
this._systemActions.bind_property('can-lock-orientation',
this._orientationLockItem, 'visible',
bindFlags);
this._orientationLockItem,
'visible',
bindFlags);
this._systemActions.connect('notify::orientation-lock-icon', () => {
let iconName = this._systemActions.orientation_lock_icon;
let labelText = this._systemActions.getName("lock-orientation");
@ -86,8 +84,8 @@ class Indicator extends PanelMenu.SystemIndicator {
let app = this._settingsApp = Shell.AppSystem.get_default().lookup_app(
'gnome-control-center.desktop');
if (app) {
const [icon] = app.app_info.get_icon().names;
const name = app.app_info.get_name();
let [icon, name] = [app.app_info.get_icon().names[0],
app.get_name()];
item = new PopupMenu.PopupImageMenuItem(name, icon);
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
@ -109,49 +107,15 @@ class Indicator extends PanelMenu.SystemIndicator {
this.menu.addMenuItem(item);
this._lockScreenItem = item;
this._systemActions.bind_property('can-lock-screen',
this._lockScreenItem, 'visible',
bindFlags);
this._lockScreenItem,
'visible',
bindFlags);
this._sessionSubMenu = new PopupMenu.PopupSubMenuMenuItem(
_('Power Off / Log Out'), true);
this._sessionSubMenu.icon.icon_name = 'system-shutdown-symbolic';
item = new PopupMenu.PopupMenuItem(_('Suspend'));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activateSuspend();
});
this._sessionSubMenu.menu.addMenuItem(item);
this._suspendItem = item;
this._systemActions.bind_property('can-suspend',
this._suspendItem, 'visible',
bindFlags);
item = new PopupMenu.PopupMenuItem(_('Restart…'));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activateRestart();
});
this._sessionSubMenu.menu.addMenuItem(item);
this._restartItem = item;
this._systemActions.bind_property('can-restart',
this._restartItem, 'visible',
bindFlags);
item = new PopupMenu.PopupMenuItem(_('Power Off…'));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activatePowerOff();
});
this._sessionSubMenu.menu.addMenuItem(item);
this._powerOffItem = item;
this._systemActions.bind_property('can-power-off',
this._powerOffItem, 'visible',
bindFlags);
this._sessionSubMenu.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
item = new PopupMenu.PopupMenuItem(_('Log Out'));
item = new PopupMenu.PopupMenuItem(_("Log Out"));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activateLogout();
@ -159,10 +123,11 @@ class Indicator extends PanelMenu.SystemIndicator {
this._sessionSubMenu.menu.addMenuItem(item);
this._logoutItem = item;
this._systemActions.bind_property('can-logout',
this._logoutItem, 'visible',
bindFlags);
this._logoutItem,
'visible',
bindFlags);
item = new PopupMenu.PopupMenuItem(_('Switch User…'));
item = new PopupMenu.PopupMenuItem(_("Switch User…"));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activateSwitchUser();
@ -170,8 +135,35 @@ class Indicator extends PanelMenu.SystemIndicator {
this._sessionSubMenu.menu.addMenuItem(item);
this._loginScreenItem = item;
this._systemActions.bind_property('can-switch-user',
this._loginScreenItem, 'visible',
bindFlags);
this._loginScreenItem,
'visible',
bindFlags);
this._sessionSubMenu.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
item = new PopupMenu.PopupMenuItem(_("Suspend"));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activateSuspend();
});
this._sessionSubMenu.menu.addMenuItem(item);
this._suspendItem = item;
this._systemActions.bind_property('can-suspend',
this._suspendItem,
'visible',
bindFlags);
item = new PopupMenu.PopupMenuItem(_("Power Off…"));
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
this._systemActions.activatePowerOff();
});
this._sessionSubMenu.menu.addMenuItem(item);
this._powerOffItem = item;
this._systemActions.bind_property('can-power-off',
this._powerOffItem,
'visible',
bindFlags);
this.menu.addMenuItem(this._sessionSubMenu);
}

View File

@ -1,5 +1,5 @@
project('gnome-shell', 'c',
version: '3.37.90',
version: '3.37.3',
meson_version: '>= 0.53.0',
license: 'GPLv2+'
)
@ -25,7 +25,7 @@ gio_req = '>= 2.56.0'
gi_req = '>= 1.49.1'
gjs_req = '>= 1.65.1'
gtk_req = '>= 3.15.0'
mutter_req = '>= 3.37.90'
mutter_req = '>= 3.37.3'
polkit_req = '>= 0.100'
schemas_req = '>= 3.33.1'
startup_req = '>= 0.11'

View File

@ -1,3 +1 @@
data/org.gnome.Shell@wayland.service.in
data/org.gnome.Shell@x11.service.in
subprojects/extensions-tool/src/templates/indicator/extension.js

296
po/ca.po
View File

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: HEAD\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
"POT-Creation-Date: 2020-08-10 23:58+0000\n"
"POT-Creation-Date: 2020-07-22 01:49+0000\n"
"PO-Revision-Date: 2020-05-15 20:39+0200\n"
"Last-Translator: Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>\n"
"Language-Team: Catalan <tradgnome@softcatala.org>\n"
@ -182,8 +182,8 @@ msgstr ""
msgid ""
"Whether to remember password for mounting encrypted or remote filesystems"
msgstr ""
"Si s'han de recordar les contrasenyes dels punts de muntatge xifrat o els "
"sistemes de fitxers remots"
"Si s'han de recordar les contrasenyes dels punts de muntatge xifrat o "
"els sistemes de fitxers remots"
#: data/org.gnome.shell.gschema.xml.in:87
msgid ""
@ -192,9 +192,9 @@ msgid ""
"“Remember Password” checkbox will be present. This key sets the default "
"state of the checkbox."
msgstr ""
"El GNOME Shell us demanarà la contrasenya quan es munti un dispositiu xifrat"
" o un sistema de fitxers remot. Si es pot desar la contrasenya per a "
"utilitzar-la en el futur, es mostrarà la casella de selecció «Recorda la "
"El GNOME Shell us demanarà la contrasenya quan es munti un dispositiu "
"xifrat o un sistema de fitxers remot. Si es pot desar la contrasenya per "
"a utilitzar-la en el futur, es mostrarà la casella de selecció «Recorda la "
"contrasenya». Aquesta clau estableix el valor per defecte d'aquesta casella "
"de selecció."
@ -454,9 +454,9 @@ msgstr "Visiteu la pàgina d'inici de l'extensió"
#: js/gdm/authPrompt.js:135 js/ui/audioDeviceSelection.js:57
#: js/ui/components/networkAgent.js:110 js/ui/components/polkitAgent.js:139
#: js/ui/endSessionDialog.js:438 js/ui/extensionDownloader.js:183
#: js/ui/endSessionDialog.js:369 js/ui/extensionDownloader.js:183
#: js/ui/shellMountOperation.js:376 js/ui/shellMountOperation.js:386
#: js/ui/status/network.js:940 subprojects/extensions-app/js/main.js:149
#: js/ui/status/network.js:916 subprojects/extensions-app/js/main.js:149
msgid "Cancel"
msgstr "Cancel·la"
@ -492,7 +492,7 @@ msgstr "(p. ex. l'usuari o %s)"
msgid "Username"
msgstr "Nom d'usuari"
#: js/gdm/loginDialog.js:1253
#: js/gdm/loginDialog.js:1254
msgid "Login Window"
msgstr "Finestra d'entrada"
@ -510,89 +510,77 @@ msgid "(or swipe finger)"
msgstr "(o passeu el dit)"
#. Translators: The name of the power-off action in search
#: js/misc/systemActions.js:91
#: js/misc/systemActions.js:93
msgctxt "search-result"
msgid "Power Off"
msgstr "Apaga"
#. Translators: A list of keywords that match the power-off action, separated
#. by semicolons
#: js/misc/systemActions.js:94
msgid "power off;shutdown;halt;stop"
#: js/misc/systemActions.js:96
msgid "power off;shutdown;reboot;restart;halt;stop"
msgstr "apaga;atura;reinicia"
#. Translators: The name of the restart action in search
#: js/misc/systemActions.js:99
msgctxt "search-result"
msgid "Restart"
msgstr "Reinicia"
#. Translators: A list of keywords that match the restart action, separated by
#. semicolons
#: js/misc/systemActions.js:102
msgid "reboot;restart;"
msgstr "reinicia;reinici;"
#. Translators: The name of the lock screen action in search
#: js/misc/systemActions.js:107
#: js/misc/systemActions.js:101
msgctxt "search-result"
msgid "Lock Screen"
msgstr "Bloqueja la pantalla"
#. Translators: A list of keywords that match the lock screen action,
#. separated by semicolons
#: js/misc/systemActions.js:110
#: js/misc/systemActions.js:104
msgid "lock screen"
msgstr "bloca la pantalla"
#. Translators: The name of the logout action in search
#: js/misc/systemActions.js:115
#: js/misc/systemActions.js:109
msgctxt "search-result"
msgid "Log Out"
msgstr "Surt"
#. Translators: A list of keywords that match the logout action, separated by
#. semicolons
#: js/misc/systemActions.js:118
#: js/misc/systemActions.js:112
msgid "logout;log out;sign off"
msgstr "desconnecta;sortida;surt"
#. Translators: The name of the suspend action in search
#: js/misc/systemActions.js:123
#: js/misc/systemActions.js:117
msgctxt "search-result"
msgid "Suspend"
msgstr "Atura temporalment"
#. Translators: A list of keywords that match the suspend action, separated by
#. semicolons
#: js/misc/systemActions.js:126
#: js/misc/systemActions.js:120
msgid "suspend;sleep"
msgstr "atura temporalment;dorm"
#. Translators: The name of the switch user action in search
#: js/misc/systemActions.js:131
#: js/misc/systemActions.js:125
msgctxt "search-result"
msgid "Switch User"
msgstr "Canvia d'usuari"
#. Translators: A list of keywords that match the switch user action,
#. separated by semicolons
#: js/misc/systemActions.js:134
#: js/misc/systemActions.js:128
msgid "switch user"
msgstr "canvia d'usuari"
#. Translators: A list of keywords that match the lock orientation action,
#. separated by semicolons
#: js/misc/systemActions.js:141
#: js/misc/systemActions.js:135
msgid "lock orientation;unlock orientation;screen;rotation"
msgstr "bloqueja l'orientació;desbloqueja l'orientació;pantalla;rotació"
#: js/misc/systemActions.js:266
#: js/misc/systemActions.js:255
msgctxt "search-result"
msgid "Unlock Screen Rotation"
msgstr "Desbloqueja la rotació de la pantalla"
#: js/misc/systemActions.js:267
#: js/misc/systemActions.js:256
msgctxt "search-result"
msgid "Lock Screen Rotation"
msgstr "Bloqueja la rotació de la pantalla"
@ -763,31 +751,31 @@ msgid "Unnamed Folder"
msgstr "Carpeta sense nom"
#. Translators: This is the heading of a list of open windows
#: js/ui/appDisplay.js:2762 js/ui/panel.js:75
#: js/ui/appDisplay.js:2767 js/ui/panel.js:75
msgid "Open Windows"
msgstr "Obre finestres"
#: js/ui/appDisplay.js:2781 js/ui/panel.js:82
#: js/ui/appDisplay.js:2786 js/ui/panel.js:82
msgid "New Window"
msgstr "Finestra nova"
#: js/ui/appDisplay.js:2797
#: js/ui/appDisplay.js:2802
msgid "Launch using Integrated Graphics Card"
msgstr "Inicia usant una targeta gràfica integrada"
#: js/ui/appDisplay.js:2798
#: js/ui/appDisplay.js:2803
msgid "Launch using Discrete Graphics Card"
msgstr "Inicia usant una targeta gràfica discreta"
#: js/ui/appDisplay.js:2826 js/ui/dash.js:239
#: js/ui/appDisplay.js:2831 js/ui/dash.js:239
msgid "Remove from Favorites"
msgstr "Suprimeix dels preferits"
#: js/ui/appDisplay.js:2832
#: js/ui/appDisplay.js:2837
msgid "Add to Favorites"
msgstr "Afegeix als preferits"
#: js/ui/appDisplay.js:2842 js/ui/panel.js:93
#: js/ui/appDisplay.js:2847 js/ui/panel.js:93
msgid "Show Details"
msgstr "Mostra els detalls"
@ -986,8 +974,8 @@ msgid ""
msgstr ""
"També us podeu connectar prement el botó «WPS» del vostre encaminador."
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:252
#: js/ui/status/network.js:343 js/ui/status/network.js:943
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:227
#: js/ui/status/network.js:318 js/ui/status/network.js:919
msgid "Connect"
msgstr "Connecta"
@ -1052,7 +1040,7 @@ msgstr "PIN"
msgid "A password is required to connect to “%s”."
msgstr "Cal introduir una contrasenya per a connectar-vos a «%s»."
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1718
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1694
msgid "Network Manager"
msgstr "Gestor de connexions de xarxa"
@ -1178,91 +1166,86 @@ msgstr "El temps"
msgid "Select weather location…"
msgstr "Trieu una ubicació pel temps…"
#: js/ui/endSessionDialog.js:39
#: js/ui/endSessionDialog.js:37
#, javascript-format
msgctxt "title"
msgid "Log Out %s"
msgstr "Sortida %s"
#: js/ui/endSessionDialog.js:40
#: js/ui/endSessionDialog.js:38
msgctxt "title"
msgid "Log Out"
msgstr "Sortida"
#: js/ui/endSessionDialog.js:43
#: js/ui/endSessionDialog.js:40
#, javascript-format
msgid "%s will be logged out automatically in %d second."
msgid_plural "%s will be logged out automatically in %d seconds."
msgstr[0] "%s sortirà de la sessió automàticament d'aquí %d segon."
msgstr[1] "%s sortirà de la sessió automàticament d'aquí %d segons."
#: js/ui/endSessionDialog.js:49
#: js/ui/endSessionDialog.js:45
#, javascript-format
msgid "You will be logged out automatically in %d second."
msgid_plural "You will be logged out automatically in %d seconds."
msgstr[0] "Sortireu automàticament d'aquí %d segon."
msgstr[1] "Sortireu automàticament d'aquí %d segons."
#: js/ui/endSessionDialog.js:56
#: js/ui/endSessionDialog.js:51
msgctxt "button"
msgid "Log Out"
msgstr "Surt"
#: js/ui/endSessionDialog.js:62
#: js/ui/endSessionDialog.js:56
msgctxt "title"
msgid "Power Off"
msgstr "Apagada"
#: js/ui/endSessionDialog.js:63
#: js/ui/endSessionDialog.js:57
msgctxt "title"
msgid "Install Updates & Power Off"
msgstr "Instal·la les actualitzacions i apaga"
#: js/ui/endSessionDialog.js:66
#: js/ui/endSessionDialog.js:59
#, javascript-format
msgid "The system will power off automatically in %d second."
msgid_plural "The system will power off automatically in %d seconds."
msgstr[0] "S'apagarà l'ordinador automàticament d'aquí %d segon."
msgstr[1] "S'apagarà l'ordinador automàticament d'aquí %d segons."
#: js/ui/endSessionDialog.js:70 js/ui/endSessionDialog.js:89
#: js/ui/endSessionDialog.js:63
msgctxt "checkbox"
msgid "Install pending software updates"
msgstr "Instal·la les actualitzacions pendents"
#: js/ui/endSessionDialog.js:74
#: js/ui/endSessionDialog.js:66 js/ui/endSessionDialog.js:82
msgctxt "button"
msgid "Restart"
msgstr "Reinicia"
#: js/ui/endSessionDialog.js:68
msgctxt "button"
msgid "Power Off"
msgstr "Apaga"
#: js/ui/endSessionDialog.js:81
#: js/ui/endSessionDialog.js:74
msgctxt "title"
msgid "Restart"
msgstr "Reinici"
#: js/ui/endSessionDialog.js:82
msgctxt "title"
msgid "Install Updates & Restart"
msgstr "Instal·la les actualitzacions i reinicia"
#: js/ui/endSessionDialog.js:85
#: js/ui/endSessionDialog.js:76
#, javascript-format
msgid "The system will restart automatically in %d second."
msgid_plural "The system will restart automatically in %d seconds."
msgstr[0] "Es reiniciarà l'ordinador automàticament d'aquí %d segon."
msgstr[1] "Es reiniciarà l'ordinador automàticament d'aquí %d segons."
#: js/ui/endSessionDialog.js:93
msgctxt "button"
msgid "Restart"
msgstr "Reinicia"
#: js/ui/endSessionDialog.js:101
#: js/ui/endSessionDialog.js:89
msgctxt "title"
msgid "Restart & Install Updates"
msgstr "Reinicia i instal·la les actualitzacions"
#: js/ui/endSessionDialog.js:104
#: js/ui/endSessionDialog.js:91
#, javascript-format
msgid ""
"The system will automatically restart and install updates in %d second."
@ -1275,22 +1258,22 @@ msgstr[1] ""
"Es reiniciarà l'ordinador automàticament i s'instal·laran les "
"actualitzacions d'aquí %d segons."
#: js/ui/endSessionDialog.js:111 js/ui/endSessionDialog.js:132
#: js/ui/endSessionDialog.js:97 js/ui/endSessionDialog.js:116
msgctxt "button"
msgid "Restart &amp; Install"
msgstr "Reinicia i instal·la"
#: js/ui/endSessionDialog.js:113
#: js/ui/endSessionDialog.js:98
msgctxt "button"
msgid "Install &amp; Power Off"
msgstr "Instal·la i apaga"
#: js/ui/endSessionDialog.js:114
#: js/ui/endSessionDialog.js:99
msgctxt "checkbox"
msgid "Power off after updates are installed"
msgstr "Apaga després d'instal·lar les actualitzacions"
#: js/ui/endSessionDialog.js:121
#: js/ui/endSessionDialog.js:106
msgctxt "title"
msgid "Restart & Install Upgrade"
msgstr "Reinicia i instal·la l'actualització"
@ -1298,7 +1281,7 @@ msgstr "Reinicia i instal·la l'actualització"
#. Translators: This is the text displayed for system upgrades in the
#. shut down dialog. First %s gets replaced with the distro name and
#. second %s with the distro version to upgrade to
#: js/ui/endSessionDialog.js:126
#: js/ui/endSessionDialog.js:111
#, javascript-format
msgid ""
"%s %s will be installed after restart. Upgrade installation can take a long "
@ -1308,35 +1291,30 @@ msgstr ""
"instal·lació pot trigar força temps. Assegureu-vos que heu fet còpia de "
"seguretat i que l'ordinador està connectat al corrent."
#: js/ui/endSessionDialog.js:284
msgid "Low battery power: please plug in before installing updates."
#: js/ui/endSessionDialog.js:259
msgid "Running on battery power: Please plug in before installing updates."
msgstr ""
"Hi ha poca bateria. Connecteu l'ordinador a la xarxa elèctrica abans "
"d'instal·lar les actualitzacions."
"S'està utilitzant la bateria. Connecteu l'ordinador a la xarxa elèctrica "
"abans d'instal·lar les actualitzacions."
#: js/ui/endSessionDialog.js:293
#: js/ui/endSessionDialog.js:268
msgid "Some applications are busy or have unsaved work"
msgstr ""
"Hi ha algunes aplicacions que estan ocupades o que tenen documents sense "
"desar"
#: js/ui/endSessionDialog.js:298
#: js/ui/endSessionDialog.js:273
msgid "Other users are logged in"
msgstr "Altres usuaris tenen la sessió oberta"
#: js/ui/endSessionDialog.js:467
msgctxt "button"
msgid "Boot Options"
msgstr "Opcions d'arrencada"
#. Translators: Remote here refers to a remote session, like a ssh login
#: js/ui/endSessionDialog.js:685
#: js/ui/endSessionDialog.js:583
#, javascript-format
msgid "%s (remote)"
msgstr "%s (remot)"
#. Translators: Console here refers to a tty like a VT console
#: js/ui/endSessionDialog.js:688
#: js/ui/endSessionDialog.js:586
#, javascript-format
msgid "%s (console)"
msgstr "%s (consola)"
@ -1441,15 +1419,15 @@ msgid "Leave On"
msgstr "Deixa-ho actiu"
#: js/ui/kbdA11yDialog.js:55 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:1315
#: js/ui/status/network.js:1291
msgid "Turn On"
msgstr "Activa"
#: js/ui/kbdA11yDialog.js:63 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:160 js/ui/status/network.js:344
#: js/ui/status/network.js:1315 js/ui/status/network.js:1427
#: js/ui/status/network.js:135 js/ui/status/network.js:319
#: js/ui/status/network.js:1291 js/ui/status/network.js:1403
#: js/ui/status/nightLight.js:41 js/ui/status/rfkill.js:81
#: js/ui/status/rfkill.js:110
#: js/ui/status/rfkill.js:108
msgid "Turn Off"
msgstr "Desactiva"
@ -1510,11 +1488,11 @@ msgstr "Mostra el codi font"
msgid "Web Page"
msgstr "Pàgina web"
#: js/ui/main.js:294
#: js/ui/main.js:297
msgid "Logged in as a privileged user"
msgstr "Sessió iniciada com a usuari privilegiat"
#: js/ui/main.js:295
#: js/ui/main.js:298
msgid ""
"Running a session as a privileged user should be avoided for security "
"reasons. If possible, you should log in as a normal user."
@ -1522,11 +1500,11 @@ msgstr ""
"Cal evitar iniciar sessions com a usuari privilegiat per raons de seguretat."
" Si és possible, entreu com a un usuari normal."
#: js/ui/main.js:334
#: js/ui/main.js:337
msgid "Screen Lock disabled"
msgstr "La pantalla de bloqueig està inhabilitada"
#: js/ui/main.js:335
#: js/ui/main.js:338
msgid "Screen Locking requires the GNOME display manager."
msgstr "El bloqueig de pantalla requereix el gestor de pantalla del GNOME."
@ -1619,7 +1597,7 @@ msgctxt "System menu in the top bar"
msgid "System"
msgstr "Sistema"
#: js/ui/panel.js:825
#: js/ui/panel.js:827
msgid "Top Bar"
msgstr "Barra superior"
@ -1794,7 +1772,7 @@ msgstr "Text gran"
msgid "Bluetooth"
msgstr "Bluetooth"
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:619
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:595
msgid "Bluetooth Settings"
msgstr "Paràmetres del Bluetooth"
@ -1878,19 +1856,19 @@ msgstr ""
"Podeu canviar la configuració de l'accés a la ubicació sempre que vulgueu "
"des de la configuració de la privacitat."
#: js/ui/status/network.js:71
#: js/ui/status/network.js:70
msgid "<unknown>"
msgstr "<desconegut>"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:449 js/ui/status/network.js:1344
#: js/ui/status/network.js:424 js/ui/status/network.js:1320
#, javascript-format
msgid "%s Off"
msgstr "%s apagat"
#. Translators: %s is a network identifier
# N.T.: p. ex. Connectat amb fil
#: js/ui/status/network.js:452
#: js/ui/status/network.js:427
#, javascript-format
msgid "%s Connected"
msgstr "Connectat %s"
@ -1899,26 +1877,26 @@ msgstr "Connectat %s"
#. are not
#. under NetworkManager's control (and thus cannot be used in the menu);
#. %s is a network identifier
#: js/ui/status/network.js:457
#: js/ui/status/network.js:432
#, javascript-format
msgid "%s Unmanaged"
msgstr "%s no gestionat"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:460
#: js/ui/status/network.js:435
#, javascript-format
msgid "%s Disconnecting"
msgstr "%s s'està desconnectant"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:467 js/ui/status/network.js:1336
#: js/ui/status/network.js:442 js/ui/status/network.js:1312
#, javascript-format
msgid "%s Connecting"
msgstr "%s s'està connectant"
#. Translators: this is for network connections that require some kind of key
#. or password; %s is a network identifier
#: js/ui/status/network.js:470
#: js/ui/status/network.js:445
#, javascript-format
msgid "%s Requires Authentication"
msgstr "%s requereix autenticació"
@ -1926,7 +1904,7 @@ msgstr "%s requereix autenticació"
#. Translators: this is for devices that require some kind of firmware or
#. kernel
#. module, which is missing; %s is a network identifier
#: js/ui/status/network.js:478
#: js/ui/status/network.js:453
#, javascript-format
msgid "Firmware Missing For %s"
msgstr "Manca el microprogramari per %s"
@ -1934,159 +1912,159 @@ msgstr "Manca el microprogramari per %s"
#. Translators: this is for a network device that cannot be activated (for
#. example it
#. is disabled by rfkill, or it has no coverage; %s is a network identifier
#: js/ui/status/network.js:482
#: js/ui/status/network.js:457
#, javascript-format
msgid "%s Unavailable"
msgstr "%s no disponible"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:485
#: js/ui/status/network.js:460
#, javascript-format
msgid "%s Connection Failed"
msgstr "%s ha fallat la connexió"
#: js/ui/status/network.js:497
#: js/ui/status/network.js:472
msgid "Wired Settings"
msgstr "Paràmetres de la xarxa amb fil"
#: js/ui/status/network.js:540
#: js/ui/status/network.js:515
msgid "Mobile Broadband Settings"
msgstr "Configuració de la xarxa de banda ampla mòbil"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:586 js/ui/status/network.js:1341
#: js/ui/status/network.js:562 js/ui/status/network.js:1317
#, javascript-format
msgid "%s Hardware Disabled"
msgstr "%s maquinari inhabilitat"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode); %s is a network identifier
#: js/ui/status/network.js:590
#: js/ui/status/network.js:566
#, javascript-format
msgid "%s Disabled"
msgstr "%s Inhabilitat"
#: js/ui/status/network.js:631
#: js/ui/status/network.js:607
msgid "Connect to Internet"
msgstr "Connecta a Internet"
#: js/ui/status/network.js:835
#: js/ui/status/network.js:811
msgid "Airplane Mode is On"
msgstr "El mode d'avió és actiu"
#: js/ui/status/network.js:836
#: js/ui/status/network.js:812
msgid "Wi-Fi is disabled when airplane mode is on."
msgstr "Quan el mode d'avió és actiu es desactiva la xarxa sense fil."
#: js/ui/status/network.js:837
#: js/ui/status/network.js:813
msgid "Turn Off Airplane Mode"
msgstr "Desactiva el mode d'avió"
#: js/ui/status/network.js:846
#: js/ui/status/network.js:822
msgid "Wi-Fi is Off"
msgstr "La xarxa sense fil està desactivada"
#: js/ui/status/network.js:847
#: js/ui/status/network.js:823
msgid "Wi-Fi needs to be turned on in order to connect to a network."
msgstr ""
"S'ha d'activar la xarxa sense fil per a poder-se connectar a una xarxa."
#: js/ui/status/network.js:848
#: js/ui/status/network.js:824
msgid "Turn On Wi-Fi"
msgstr "Activa la xarxa sense fil"
#: js/ui/status/network.js:873
#: js/ui/status/network.js:849
msgid "Wi-Fi Networks"
msgstr "Xarxes sense fil"
#: js/ui/status/network.js:875
#: js/ui/status/network.js:851
msgid "Select a network"
msgstr "Trieu una xarxa"
#: js/ui/status/network.js:907
#: js/ui/status/network.js:883
msgid "No Networks"
msgstr "Cap xarxa"
#: js/ui/status/network.js:928 js/ui/status/rfkill.js:108
#: js/ui/status/network.js:904 js/ui/status/rfkill.js:106
msgid "Use hardware switch to turn off"
msgstr "Utilitza l'interruptor de maquinari per a desactivar-la"
#: js/ui/status/network.js:1205
#: js/ui/status/network.js:1181
msgid "Select Network"
msgstr "Trieu una xarxa"
#: js/ui/status/network.js:1211
#: js/ui/status/network.js:1187
msgid "Wi-Fi Settings"
msgstr "Paràmetres de la xarxa sense fil"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1332
#: js/ui/status/network.js:1308
#, javascript-format
msgid "%s Hotspot Active"
msgstr "Hostpot %s actiu"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1347
#: js/ui/status/network.js:1323
#, javascript-format
msgid "%s Not Connected"
msgstr "%s no està connectat"
#: js/ui/status/network.js:1444
#: js/ui/status/network.js:1420
msgid "connecting…"
msgstr "s'està connectant..."
#. Translators: this is for network connections that require some kind of key
#. or password
#: js/ui/status/network.js:1447
#: js/ui/status/network.js:1423
msgid "authentication required"
msgstr "cal autenticació"
#: js/ui/status/network.js:1449
#: js/ui/status/network.js:1425
msgid "connection failed"
msgstr "ha fallat la connexió"
#: js/ui/status/network.js:1500
#: js/ui/status/network.js:1476
msgid "VPN Settings"
msgstr "Paràmetres de la VPN"
#: js/ui/status/network.js:1517
#: js/ui/status/network.js:1493
msgid "VPN"
msgstr "VPN"
#: js/ui/status/network.js:1527
#: js/ui/status/network.js:1503
msgid "VPN Off"
msgstr "VPN apagada"
#: js/ui/status/network.js:1588 js/ui/status/rfkill.js:84
#: js/ui/status/network.js:1564 js/ui/status/rfkill.js:84
msgid "Network Settings"
msgstr "Paràmetres de xarxa"
#: js/ui/status/network.js:1617
#: js/ui/status/network.js:1593
#, javascript-format
msgid "%s Wired Connection"
msgid_plural "%s Wired Connections"
msgstr[0] "%s connexió amb fil"
msgstr[1] "%s connexions amb fil"
#: js/ui/status/network.js:1621
#: js/ui/status/network.js:1597
#, javascript-format
msgid "%s Wi-Fi Connection"
msgid_plural "%s Wi-Fi Connections"
msgstr[0] "%s connexió Wifi"
msgstr[1] "%s connexions Wifi"
#: js/ui/status/network.js:1625
#: js/ui/status/network.js:1601
#, javascript-format
msgid "%s Modem Connection"
msgid_plural "%s Modem Connections"
msgstr[0] "%s connexió mòdem"
msgstr[1] "%s connexions mòdem"
#: js/ui/status/network.js:1759
#: js/ui/status/network.js:1735
msgid "Connection failed"
msgstr "Ha fallat la connexió"
#: js/ui/status/network.js:1760
#: js/ui/status/network.js:1736
msgid "Activation of network connection failed"
msgstr "Ha fallat l'activació de la connexió de xarxa"
@ -2141,11 +2119,11 @@ msgstr "%d%02d per a completar la càrrega (%d %%)"
msgid "%d%%"
msgstr "%d%%"
#: js/ui/status/remoteAccess.js:45
#: js/ui/status/remoteAccess.js:43
msgid "Screen is Being Shared"
msgstr "Es comparteix la pantalla"
#: js/ui/status/remoteAccess.js:47
#: js/ui/status/remoteAccess.js:45
msgid "Turn off"
msgstr "Desactiva"
@ -2156,34 +2134,30 @@ msgstr "Desactiva"
msgid "Airplane Mode On"
msgstr "El mode d'avió és actiu"
#: js/ui/status/system.js:104
#: js/ui/status/system.js:102
msgid "Lock"
msgstr "Bloqueja"
#: js/ui/status/system.js:116
#: js/ui/status/system.js:115
msgid "Power Off / Log Out"
msgstr "Apaga / Surt"
#: js/ui/status/system.js:119
msgid "Suspend"
msgstr "Atura temporalment"
#: js/ui/status/system.js:130
msgid "Restart…"
msgstr "S'està reiniciant…"
#: js/ui/status/system.js:141
msgid "Power Off…"
msgstr "Atura…"
#: js/ui/status/system.js:154
#: js/ui/status/system.js:118
msgid "Log Out"
msgstr "Surt"
#: js/ui/status/system.js:165
#: js/ui/status/system.js:130
msgid "Switch User…"
msgstr "Canvia d'usuari…"
#: js/ui/status/system.js:144
msgid "Suspend"
msgstr "Atura temporalment"
#: js/ui/status/system.js:156
msgid "Power Off…"
msgstr "Atura…"
#: js/ui/status/thunderbolt.js:263
msgid "Thunderbolt"
msgstr "Thunderbolt"
@ -2288,21 +2262,21 @@ msgid "“%s” is ready"
msgstr "«%s» ja està a punt"
#. Translators: This string should be shorter than 30 characters
#: js/ui/windowManager.js:60
#: js/ui/windowManager.js:55
msgid "Keep these display settings?"
msgstr "Mantenir aquesta configuració de la pantalla?"
#. Translators: this and the following message should be limited in length,
#. to avoid ellipsizing the labels.
#: js/ui/windowManager.js:69
#: js/ui/windowManager.js:64
msgid "Revert Settings"
msgstr "Descarta els canvis"
#: js/ui/windowManager.js:72
#: js/ui/windowManager.js:67
msgid "Keep Changes"
msgstr "Mantén els canvis"
#: js/ui/windowManager.js:91
#: js/ui/windowManager.js:86
#, javascript-format
msgid "Settings changes will revert in %d second"
msgid_plural "Settings changes will revert in %d seconds"
@ -2311,7 +2285,7 @@ msgstr[1] "Es descartaran els canvis d'aquí %d segons"
#. Translators: This represents the size of a window. The first number is
#. * the width of the window and the second is the height.
#: js/ui/windowManager.js:551
#: js/ui/windowManager.js:546
#, javascript-format
msgid "%d × %d"
msgstr "%d × %d"

295
po/es.po
View File

@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell.master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
"POT-Creation-Date: 2020-08-10 23:58+0000\n"
"PO-Revision-Date: 2020-08-13 10:39+0200\n"
"POT-Creation-Date: 2020-07-27 06:59+0000\n"
"PO-Revision-Date: 2020-07-29 09:47+0200\n"
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n"
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
"Language: es_ES\n"
@ -446,9 +446,9 @@ msgstr "Visitar la página web de la extensión"
#: js/gdm/authPrompt.js:135 js/ui/audioDeviceSelection.js:57
#: js/ui/components/networkAgent.js:110 js/ui/components/polkitAgent.js:139
#: js/ui/endSessionDialog.js:438 js/ui/extensionDownloader.js:183
#: js/ui/endSessionDialog.js:369 js/ui/extensionDownloader.js:183
#: js/ui/shellMountOperation.js:376 js/ui/shellMountOperation.js:386
#: js/ui/status/network.js:940 subprojects/extensions-app/js/main.js:149
#: js/ui/status/network.js:916 subprojects/extensions-app/js/main.js:149
msgid "Cancel"
msgstr "Cancelar"
@ -484,7 +484,7 @@ msgstr "(ej., usuario o %s)"
msgid "Username"
msgstr "Nombre de usuario"
#: js/gdm/loginDialog.js:1253
#: js/gdm/loginDialog.js:1254
msgid "Login Window"
msgstr "Ventana de inicio de sesión"
@ -502,84 +502,71 @@ msgid "(or swipe finger)"
msgstr "(o pase el dedo)"
#. Translators: The name of the power-off action in search
#: js/misc/systemActions.js:91
#: js/misc/systemActions.js:93
msgctxt "search-result"
msgid "Power Off"
msgstr "Apagar"
#. Translators: A list of keywords that match the power-off action, separated by semicolons
#: js/misc/systemActions.js:94
#| msgid "power off;shutdown;reboot;restart;halt;stop"
msgid "power off;shutdown;halt;stop"
#: js/misc/systemActions.js:96
msgid "power off;shutdown;reboot;restart;halt;stop"
msgstr "apagar;apagado;reinicio;reiniciar;detener;parar"
#. Translators: The name of the restart action in search
#: js/misc/systemActions.js:99
#| msgid "Restart"
msgctxt "search-result"
msgid "Restart"
msgstr "Reiniciar"
#. Translators: A list of keywords that match the restart action, separated by semicolons
#: js/misc/systemActions.js:102
msgid "reboot;restart;"
msgstr "reiniciar;rebotar;"
#. Translators: The name of the lock screen action in search
#: js/misc/systemActions.js:107
#: js/misc/systemActions.js:101
msgctxt "search-result"
msgid "Lock Screen"
msgstr "Bloquear la pantalla"
#. Translators: A list of keywords that match the lock screen action, separated by semicolons
#: js/misc/systemActions.js:110
#: js/misc/systemActions.js:104
msgid "lock screen"
msgstr "bloquear;pantalla"
#. Translators: The name of the logout action in search
#: js/misc/systemActions.js:115
#: js/misc/systemActions.js:109
msgctxt "search-result"
msgid "Log Out"
msgstr "Cerrar la sesión"
#. Translators: A list of keywords that match the logout action, separated by semicolons
#: js/misc/systemActions.js:118
#: js/misc/systemActions.js:112
msgid "logout;log out;sign off"
msgstr "cerrar;sesión;salir"
#. Translators: The name of the suspend action in search
#: js/misc/systemActions.js:123
#: js/misc/systemActions.js:117
msgctxt "search-result"
msgid "Suspend"
msgstr "Suspender"
#. Translators: A list of keywords that match the suspend action, separated by semicolons
#: js/misc/systemActions.js:126
#: js/misc/systemActions.js:120
msgid "suspend;sleep"
msgstr "suspender;dormir"
#. Translators: The name of the switch user action in search
#: js/misc/systemActions.js:131
#: js/misc/systemActions.js:125
msgctxt "search-result"
msgid "Switch User"
msgstr "Cambiar de usuario"
#. Translators: A list of keywords that match the switch user action, separated by semicolons
#: js/misc/systemActions.js:134
#: js/misc/systemActions.js:128
msgid "switch user"
msgstr "cambiar;usuario"
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
#: js/misc/systemActions.js:141
#: js/misc/systemActions.js:135
msgid "lock orientation;unlock orientation;screen;rotation"
msgstr "bloquear orientación;desbloquear orientación;pantalla;rotación"
#: js/misc/systemActions.js:266
#: js/misc/systemActions.js:255
msgctxt "search-result"
msgid "Unlock Screen Rotation"
msgstr "Desbloquear la rotación de la pantalla"
#: js/misc/systemActions.js:267
#: js/misc/systemActions.js:256
msgctxt "search-result"
msgid "Lock Screen Rotation"
msgstr "Bloquear la rotación de la pantalla"
@ -749,31 +736,31 @@ msgid "Unnamed Folder"
msgstr "Carpeta sin nombre"
#. Translators: This is the heading of a list of open windows
#: js/ui/appDisplay.js:2762 js/ui/panel.js:75
#: js/ui/appDisplay.js:2767 js/ui/panel.js:75
msgid "Open Windows"
msgstr "Ventanas abiertas"
#: js/ui/appDisplay.js:2781 js/ui/panel.js:82
#: js/ui/appDisplay.js:2786 js/ui/panel.js:82
msgid "New Window"
msgstr "Ventana nueva"
#: js/ui/appDisplay.js:2797
#: js/ui/appDisplay.js:2802
msgid "Launch using Integrated Graphics Card"
msgstr "Lanzar usando la tarjeta gráfica integrada"
#: js/ui/appDisplay.js:2798
#: js/ui/appDisplay.js:2803
msgid "Launch using Discrete Graphics Card"
msgstr "Lanzar usando la tarjeta gráfica discreta"
#: js/ui/appDisplay.js:2826 js/ui/dash.js:239
#: js/ui/appDisplay.js:2831 js/ui/dash.js:239
msgid "Remove from Favorites"
msgstr "Quitar de los favoritos"
#: js/ui/appDisplay.js:2832
#: js/ui/appDisplay.js:2837
msgid "Add to Favorites"
msgstr "Añadir a los favoritos"
#: js/ui/appDisplay.js:2842 js/ui/panel.js:93
#: js/ui/appDisplay.js:2847 js/ui/panel.js:93
msgid "Show Details"
msgstr "Mostrar detalles"
@ -973,8 +960,8 @@ msgid ""
msgstr ""
"Alternativamente puede conectarse pulsando el botón «WPS» de su router."
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:252
#: js/ui/status/network.js:343 js/ui/status/network.js:943
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:227
#: js/ui/status/network.js:318 js/ui/status/network.js:919
msgid "Connect"
msgstr "Conectar"
@ -1039,7 +1026,7 @@ msgstr "PIN"
msgid "A password is required to connect to “%s”."
msgstr "Se requiere una contraseña para conectarse a «%s»."
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1718
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1694
msgid "Network Manager"
msgstr "Gestor de la red"
@ -1165,94 +1152,86 @@ msgstr "Meteorología"
msgid "Select weather location…"
msgstr "Seleccionar ubicación meteorológica…"
#: js/ui/endSessionDialog.js:39
#: js/ui/endSessionDialog.js:37
#, javascript-format
msgctxt "title"
msgid "Log Out %s"
msgstr "Cerrar la sesión %s"
#: js/ui/endSessionDialog.js:40
#: js/ui/endSessionDialog.js:38
msgctxt "title"
msgid "Log Out"
msgstr "Cerrar la sesión"
#: js/ui/endSessionDialog.js:43
#: js/ui/endSessionDialog.js:40
#, javascript-format
msgid "%s will be logged out automatically in %d second."
msgid_plural "%s will be logged out automatically in %d seconds."
msgstr[0] "se cerrará automáticamente la sesión de %s en %d segundo."
msgstr[1] "se cerrará automáticamente la sesión de %s en %d segundos."
#: js/ui/endSessionDialog.js:49
#: js/ui/endSessionDialog.js:45
#, javascript-format
msgid "You will be logged out automatically in %d second."
msgid_plural "You will be logged out automatically in %d seconds."
msgstr[0] "Su sesión se cerrará automáticamente en %d segundo."
msgstr[1] "Su sesión se cerrará automáticamente en %d segundos."
#: js/ui/endSessionDialog.js:56
#: js/ui/endSessionDialog.js:51
msgctxt "button"
msgid "Log Out"
msgstr "Cerrar la sesión"
#: js/ui/endSessionDialog.js:62
#: js/ui/endSessionDialog.js:56
msgctxt "title"
msgid "Power Off"
msgstr "Apagar"
#: js/ui/endSessionDialog.js:63
#: js/ui/endSessionDialog.js:57
msgctxt "title"
msgid "Install Updates & Power Off"
msgstr "Instalar actualizaciones y apagar"
#: js/ui/endSessionDialog.js:66
#: js/ui/endSessionDialog.js:59
#, javascript-format
msgid "The system will power off automatically in %d second."
msgid_plural "The system will power off automatically in %d seconds."
msgstr[0] "El sistema se apagará automáticamente en %d segundo."
msgstr[1] "El sistema se apagará automáticamente en %d segundos."
#: js/ui/endSessionDialog.js:70 js/ui/endSessionDialog.js:89
#: js/ui/endSessionDialog.js:63
msgctxt "checkbox"
msgid "Install pending software updates"
msgstr "Instalar las actualizaciones de software pendientes"
#: js/ui/endSessionDialog.js:74
#: js/ui/endSessionDialog.js:66 js/ui/endSessionDialog.js:82
msgctxt "button"
msgid "Restart"
msgstr "Reiniciar"
#: js/ui/endSessionDialog.js:68
msgctxt "button"
msgid "Power Off"
msgstr "Apagar"
#: js/ui/endSessionDialog.js:81
#: js/ui/endSessionDialog.js:74
msgctxt "title"
msgid "Restart"
msgstr "Reiniciar"
#: js/ui/endSessionDialog.js:82
#, fuzzy
#| msgctxt "title"
#| msgid "Install Updates & Power Off"
msgctxt "title"
msgid "Install Updates & Restart"
msgstr "Instalar actualizaciones y apagar"
#: js/ui/endSessionDialog.js:85
#: js/ui/endSessionDialog.js:76
#, javascript-format
msgid "The system will restart automatically in %d second."
msgid_plural "The system will restart automatically in %d seconds."
msgstr[0] "El sistema se reiniciará automáticamente en %d segundo."
msgstr[1] "El sistema se reiniciará automáticamente en %d segundos."
#: js/ui/endSessionDialog.js:93
msgctxt "button"
msgid "Restart"
msgstr "Reiniciar"
#: js/ui/endSessionDialog.js:101
#: js/ui/endSessionDialog.js:89
msgctxt "title"
msgid "Restart & Install Updates"
msgstr "Reiniciar e instalar actualizaciones"
#: js/ui/endSessionDialog.js:104
#: js/ui/endSessionDialog.js:91
#, javascript-format
msgid "The system will automatically restart and install updates in %d second."
msgid_plural ""
@ -1264,22 +1243,22 @@ msgstr[1] ""
"El sistema se reiniciará automáticamente e instalará las actualizaciones en "
"%d segundos."
#: js/ui/endSessionDialog.js:111 js/ui/endSessionDialog.js:132
#: js/ui/endSessionDialog.js:97 js/ui/endSessionDialog.js:116
msgctxt "button"
msgid "Restart &amp; Install"
msgstr "Reiniciar e instalar"
#: js/ui/endSessionDialog.js:113
#: js/ui/endSessionDialog.js:98
msgctxt "button"
msgid "Install &amp; Power Off"
msgstr "Instalar y apagar"
#: js/ui/endSessionDialog.js:114
#: js/ui/endSessionDialog.js:99
msgctxt "checkbox"
msgid "Power off after updates are installed"
msgstr "Apagar después de instalar las actualizaciones"
#: js/ui/endSessionDialog.js:121
#: js/ui/endSessionDialog.js:106
msgctxt "title"
msgid "Restart & Install Upgrade"
msgstr "Reiniciar e instalar actualizaciones"
@ -1287,7 +1266,7 @@ msgstr "Reiniciar e instalar actualizaciones"
#. Translators: This is the text displayed for system upgrades in the
#. shut down dialog. First %s gets replaced with the distro name and
#. second %s with the distro version to upgrade to
#: js/ui/endSessionDialog.js:126
#: js/ui/endSessionDialog.js:111
#, javascript-format
msgid ""
"%s %s will be installed after restart. Upgrade installation can take a long "
@ -1297,34 +1276,27 @@ msgstr ""
"puede tardar mucho tiempo: asegúrese de que tiene una copia de respaldo y de "
"que el equipo está enchufado."
#: js/ui/endSessionDialog.js:284
#, fuzzy
#| msgid "Running on battery power: Please plug in before installing updates."
msgid "Low battery power: please plug in before installing updates."
#: js/ui/endSessionDialog.js:259
msgid "Running on battery power: Please plug in before installing updates."
msgstr ""
"Funcionando con batería: conéctese antes de instalar las actualizaciones."
#: js/ui/endSessionDialog.js:293
#: js/ui/endSessionDialog.js:268
msgid "Some applications are busy or have unsaved work"
msgstr "Algunas aplicaciones están ocupadas o tienen trabajo sin guardar"
#: js/ui/endSessionDialog.js:298
#: js/ui/endSessionDialog.js:273
msgid "Other users are logged in"
msgstr "Hay otros usuarios con la sesión iniciada"
#: js/ui/endSessionDialog.js:467
msgctxt "button"
msgid "Boot Options"
msgstr ""
#. Translators: Remote here refers to a remote session, like a ssh login
#: js/ui/endSessionDialog.js:685
#: js/ui/endSessionDialog.js:583
#, javascript-format
msgid "%s (remote)"
msgstr "%s (remoto)"
#. Translators: Console here refers to a tty like a VT console
#: js/ui/endSessionDialog.js:688
#: js/ui/endSessionDialog.js:586
#, javascript-format
msgid "%s (console)"
msgstr "%s (consola)"
@ -1427,15 +1399,15 @@ msgid "Leave On"
msgstr "Dejar activada"
#: js/ui/kbdA11yDialog.js:55 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:1315
#: js/ui/status/network.js:1291
msgid "Turn On"
msgstr "Encendido"
#: js/ui/kbdA11yDialog.js:63 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:160 js/ui/status/network.js:344
#: js/ui/status/network.js:1315 js/ui/status/network.js:1427
#: js/ui/status/network.js:135 js/ui/status/network.js:319
#: js/ui/status/network.js:1291 js/ui/status/network.js:1403
#: js/ui/status/nightLight.js:41 js/ui/status/rfkill.js:81
#: js/ui/status/rfkill.js:110
#: js/ui/status/rfkill.js:108
msgid "Turn Off"
msgstr "Apagar"
@ -1496,11 +1468,11 @@ msgstr "Ver fuente"
msgid "Web Page"
msgstr "Página web"
#: js/ui/main.js:294
#: js/ui/main.js:297
msgid "Logged in as a privileged user"
msgstr "Sesión iniciada como usuario con privilegios"
#: js/ui/main.js:295
#: js/ui/main.js:298
msgid ""
"Running a session as a privileged user should be avoided for security "
"reasons. If possible, you should log in as a normal user."
@ -1508,11 +1480,11 @@ msgstr ""
"Se debe evitar ejecutar una sesión como usuario con privilegios por motivos "
"de seguridad. Si es posible, inicie sesión como un usuario normal."
#: js/ui/main.js:334
#: js/ui/main.js:337
msgid "Screen Lock disabled"
msgstr "Pantalla de bloqueo desactivada"
#: js/ui/main.js:335
#: js/ui/main.js:338
msgid "Screen Locking requires the GNOME display manager."
msgstr "La pantalla de bloqueo necesita el gestor de pantallas de GNOME."
@ -1605,7 +1577,7 @@ msgctxt "System menu in the top bar"
msgid "System"
msgstr "Sistema"
#: js/ui/panel.js:825
#: js/ui/panel.js:827
msgid "Top Bar"
msgstr "Barra superior"
@ -1782,7 +1754,7 @@ msgstr "Texto grande"
msgid "Bluetooth"
msgstr "Bluetooth"
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:619
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:595
msgid "Bluetooth Settings"
msgstr "Configuración de Bluetooth"
@ -1866,18 +1838,18 @@ msgstr ""
"Los servicios de ubicación se pueden cambiar en cualquier momento desde la "
"configuración de privacidad."
#: js/ui/status/network.js:71
#: js/ui/status/network.js:70
msgid "<unknown>"
msgstr "<desconocido>"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:449 js/ui/status/network.js:1344
#: js/ui/status/network.js:424 js/ui/status/network.js:1320
#, javascript-format
msgid "%s Off"
msgstr "%s apagada"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:452
#: js/ui/status/network.js:427
#, javascript-format
msgid "%s Connected"
msgstr "%s conectada"
@ -1885,189 +1857,189 @@ msgstr "%s conectada"
#. Translators: this is for network devices that are physically present but are not
#. under NetworkManager's control (and thus cannot be used in the menu);
#. %s is a network identifier
#: js/ui/status/network.js:457
#: js/ui/status/network.js:432
#, javascript-format
msgid "%s Unmanaged"
msgstr "%s sin gestionar"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:460
#: js/ui/status/network.js:435
#, javascript-format
msgid "%s Disconnecting"
msgstr "Desconectando %s"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:467 js/ui/status/network.js:1336
#: js/ui/status/network.js:442 js/ui/status/network.js:1312
#, javascript-format
msgid "%s Connecting"
msgstr "Conectando %s"
#. Translators: this is for network connections that require some kind of key or password; %s is a network identifier
#: js/ui/status/network.js:470
#: js/ui/status/network.js:445
#, javascript-format
msgid "%s Requires Authentication"
msgstr "%s requiere autenticación"
#. Translators: this is for devices that require some kind of firmware or kernel
#. module, which is missing; %s is a network identifier
#: js/ui/status/network.js:478
#: js/ui/status/network.js:453
#, javascript-format
msgid "Firmware Missing For %s"
msgstr "Falta el «firmware» para %s"
#. Translators: this is for a network device that cannot be activated (for example it
#. is disabled by rfkill, or it has no coverage; %s is a network identifier
#: js/ui/status/network.js:482
#: js/ui/status/network.js:457
#, javascript-format
msgid "%s Unavailable"
msgstr "%s no disponible"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:485
#: js/ui/status/network.js:460
#, javascript-format
msgid "%s Connection Failed"
msgstr "Falló la conexión %s"
#: js/ui/status/network.js:497
#: js/ui/status/network.js:472
msgid "Wired Settings"
msgstr "Configuración de red cableada"
#: js/ui/status/network.js:540
#: js/ui/status/network.js:515
msgid "Mobile Broadband Settings"
msgstr "Configuración de banda ancha móvil"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:586 js/ui/status/network.js:1341
#: js/ui/status/network.js:562 js/ui/status/network.js:1317
#, javascript-format
msgid "%s Hardware Disabled"
msgstr "Hardware %s desactivado"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode); %s is a network identifier
#: js/ui/status/network.js:590
#: js/ui/status/network.js:566
#, javascript-format
msgid "%s Disabled"
msgstr "%s desactivado"
#: js/ui/status/network.js:631
#: js/ui/status/network.js:607
msgid "Connect to Internet"
msgstr "Conectar a Internet"
#: js/ui/status/network.js:835
#: js/ui/status/network.js:811
msgid "Airplane Mode is On"
msgstr "El modo avión está activado"
#: js/ui/status/network.js:836
#: js/ui/status/network.js:812
msgid "Wi-Fi is disabled when airplane mode is on."
msgstr "La Wi-Fi se desactiva cuando se activa el modo avión."
#: js/ui/status/network.js:837
#: js/ui/status/network.js:813
msgid "Turn Off Airplane Mode"
msgstr "Apagar el modo avión"
#: js/ui/status/network.js:846
#: js/ui/status/network.js:822
msgid "Wi-Fi is Off"
msgstr "La Wi-Fi está desactivada"
#: js/ui/status/network.js:847
#: js/ui/status/network.js:823
msgid "Wi-Fi needs to be turned on in order to connect to a network."
msgstr "Se debe activar la Wi-Fi para poder conectarse a la red."
#: js/ui/status/network.js:848
#: js/ui/status/network.js:824
msgid "Turn On Wi-Fi"
msgstr "Activar la Wi-Fi"
#: js/ui/status/network.js:873
#: js/ui/status/network.js:849
msgid "Wi-Fi Networks"
msgstr "Redes Wi-Fi"
#: js/ui/status/network.js:875
#: js/ui/status/network.js:851
msgid "Select a network"
msgstr "Seleccionar una red"
#: js/ui/status/network.js:907
#: js/ui/status/network.js:883
msgid "No Networks"
msgstr "No hay redes"
#: js/ui/status/network.js:928 js/ui/status/rfkill.js:108
#: js/ui/status/network.js:904 js/ui/status/rfkill.js:106
msgid "Use hardware switch to turn off"
msgstr "Usar el interruptor hardware para apagar"
#: js/ui/status/network.js:1205
#: js/ui/status/network.js:1181
msgid "Select Network"
msgstr "Seleccionar red"
#: js/ui/status/network.js:1211
#: js/ui/status/network.js:1187
msgid "Wi-Fi Settings"
msgstr "Configuración de Wi-Fi"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1332
#: js/ui/status/network.js:1308
#, javascript-format
msgid "%s Hotspot Active"
msgstr "Punto de acceso %s activo"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1347
#: js/ui/status/network.js:1323
#, javascript-format
msgid "%s Not Connected"
msgstr "%s no conectado"
#: js/ui/status/network.js:1444
#: js/ui/status/network.js:1420
msgid "connecting…"
msgstr "conectando…"
#. Translators: this is for network connections that require some kind of key or password
#: js/ui/status/network.js:1447
#: js/ui/status/network.js:1423
msgid "authentication required"
msgstr "se necesita autenticación"
#: js/ui/status/network.js:1449
#: js/ui/status/network.js:1425
msgid "connection failed"
msgstr "falló la conexión"
#: js/ui/status/network.js:1500
#: js/ui/status/network.js:1476
msgid "VPN Settings"
msgstr "Configuración de VPN"
#: js/ui/status/network.js:1517
#: js/ui/status/network.js:1493
msgid "VPN"
msgstr "VPN"
#: js/ui/status/network.js:1527
#: js/ui/status/network.js:1503
msgid "VPN Off"
msgstr "VPN apagada"
#: js/ui/status/network.js:1588 js/ui/status/rfkill.js:84
#: js/ui/status/network.js:1564 js/ui/status/rfkill.js:84
msgid "Network Settings"
msgstr "Configuración de la red"
#: js/ui/status/network.js:1617
#: js/ui/status/network.js:1593
#, javascript-format
msgid "%s Wired Connection"
msgid_plural "%s Wired Connections"
msgstr[0] "%s conexión cableada"
msgstr[1] "%s conexiones cableadas"
#: js/ui/status/network.js:1621
#: js/ui/status/network.js:1597
#, javascript-format
msgid "%s Wi-Fi Connection"
msgid_plural "%s Wi-Fi Connections"
msgstr[0] "%s conexión inalámbrica"
msgstr[1] "%s conexiones inalámbricas"
#: js/ui/status/network.js:1625
#: js/ui/status/network.js:1601
#, javascript-format
msgid "%s Modem Connection"
msgid_plural "%s Modem Connections"
msgstr[0] "%s conexión por módem"
msgstr[1] "%s conexiones por módem"
#: js/ui/status/network.js:1759
#: js/ui/status/network.js:1735
msgid "Connection failed"
msgstr "Falló la conexión"
#: js/ui/status/network.js:1760
#: js/ui/status/network.js:1736
msgid "Activation of network connection failed"
msgstr "Falló la activación de la conexión de red"
@ -2122,11 +2094,11 @@ msgstr "%d%02d para la carga completa (%d%%)"
msgid "%d%%"
msgstr "%d%%"
#: js/ui/status/remoteAccess.js:45
#: js/ui/status/remoteAccess.js:43
msgid "Screen is Being Shared"
msgstr "Se está compartiendo la pantalla"
#: js/ui/status/remoteAccess.js:47
#: js/ui/status/remoteAccess.js:45
msgid "Turn off"
msgstr "Apagar"
@ -2137,36 +2109,30 @@ msgstr "Apagar"
msgid "Airplane Mode On"
msgstr "Modo avión activado"
#: js/ui/status/system.js:104
#: js/ui/status/system.js:102
msgid "Lock"
msgstr "Bloquear"
#: js/ui/status/system.js:116
#: js/ui/status/system.js:115
msgid "Power Off / Log Out"
msgstr "Apagar / cerrar sesión"
#: js/ui/status/system.js:119
msgid "Suspend"
msgstr "Suspender"
#: js/ui/status/system.js:130
#, fuzzy
#| msgid "Restarting…"
msgid "Restart…"
msgstr "Reiniciando…"
#: js/ui/status/system.js:141
msgid "Power Off…"
msgstr "Apagar…"
#: js/ui/status/system.js:154
#: js/ui/status/system.js:118
msgid "Log Out"
msgstr "Cerrar la sesión"
#: js/ui/status/system.js:165
#: js/ui/status/system.js:130
msgid "Switch User…"
msgstr "Cambiar de usuario…"
#: js/ui/status/system.js:144
msgid "Suspend"
msgstr "Suspender"
#: js/ui/status/system.js:156
msgid "Power Off…"
msgstr "Apagar…"
#: js/ui/status/thunderbolt.js:263
msgid "Thunderbolt"
msgstr "Thunderbolt"
@ -2274,22 +2240,22 @@ msgid "“%s” is ready"
msgstr "«%s» está preparado"
#. Translators: This string should be shorter than 30 characters
#: js/ui/windowManager.js:60
#: js/ui/windowManager.js:55
msgid "Keep these display settings?"
msgstr "¿Quiere mantener esta configuración de la pantalla?"
#. Translators: this and the following message should be limited in length,
#. to avoid ellipsizing the labels.
#.
#: js/ui/windowManager.js:69
#: js/ui/windowManager.js:64
msgid "Revert Settings"
msgstr "Revertir configuración"
#: js/ui/windowManager.js:72
#: js/ui/windowManager.js:67
msgid "Keep Changes"
msgstr "Mantener cambios"
#: js/ui/windowManager.js:91
#: js/ui/windowManager.js:86
#, javascript-format
msgid "Settings changes will revert in %d second"
msgid_plural "Settings changes will revert in %d seconds"
@ -2298,7 +2264,7 @@ msgstr[1] "La configuración se revertirá en %d segundos"
#. Translators: This represents the size of a window. The first number is
#. * the width of the window and the second is the height.
#: js/ui/windowManager.js:551
#: js/ui/windowManager.js:546
#, javascript-format
msgid "%d × %d"
msgstr "%d × %d"
@ -3596,6 +3562,9 @@ msgstr "Sonidos del sistema"
#~ msgid "Power"
#~ msgstr "Energía"
#~ msgid "Restart"
#~ msgstr "Reiniciar"
#~ msgid "Volume, network, battery"
#~ msgstr "Volumen, red, batería"

743
po/eu.po

File diff suppressed because it is too large Load Diff

1280
po/gl.po

File diff suppressed because it is too large Load Diff

View File

@ -24,8 +24,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
"POT-Creation-Date: 2020-08-10 08:53+0000\n"
"PO-Revision-Date: 2020-08-10 08:51-0300\n"
"POT-Creation-Date: 2020-07-18 13:44+0000\n"
"PO-Revision-Date: 2020-07-19 09:46-0300\n"
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
"Language: pt_BR\n"
@ -237,109 +237,92 @@ msgstr ""
"Habilita uma API de D-Bus que permite introspectar o estado do aplicativo do "
"shell."
#: data/org.gnome.shell.gschema.xml.in:114
msgid "Layout of the app picker"
msgstr "Layout do seletor de aplicativo"
#: data/org.gnome.shell.gschema.xml.in:115
msgid ""
"Layout of the app picker. Each entry in the array is a page. Pages are "
"stored in the order they appear in GNOME Shell. Each page contains an "
"“application id” → 'data' pair. Currently, the following values are stored "
"as 'data': • “position”: the position of the application icon in the page"
msgstr ""
"Layout do seletor de aplicativo. Cada entrada na matriz é uma página. As "
"páginas são armazenadas na ordem em que aparecem no GNOME Shell. Cada página "
"contém um par “id do aplicativo” → “dados”. Atualmente, os seguintes valores "
"são armazenados como “dados”: • “posição”: a posição do ícone do aplicativo "
"na página"
#: data/org.gnome.shell.gschema.xml.in:130
#: data/org.gnome.shell.gschema.xml.in:119
msgid "Keybinding to open the application menu"
msgstr "Atalho de teclado para abrir um menu de aplicativo"
#: data/org.gnome.shell.gschema.xml.in:131
#: data/org.gnome.shell.gschema.xml.in:120
msgid "Keybinding to open the application menu."
msgstr "Atalho de teclado para abrir um menu de aplicativo."
#: data/org.gnome.shell.gschema.xml.in:137
#: data/org.gnome.shell.gschema.xml.in:126
msgid "Keybinding to open the “Show Applications” view"
msgstr "Atalho de teclado para abrir a visualização “Mostrar aplicativos”"
#: data/org.gnome.shell.gschema.xml.in:138
#: data/org.gnome.shell.gschema.xml.in:127
msgid ""
"Keybinding to open the “Show Applications” view of the Activities Overview."
msgstr ""
"Atalho de teclado para abrir a visualização “Mostrar aplicativos” do "
"panorama de atividades."
#: data/org.gnome.shell.gschema.xml.in:145
#: data/org.gnome.shell.gschema.xml.in:134
msgid "Keybinding to open the overview"
msgstr "Atalho de teclado para abrir o panorama"
#: data/org.gnome.shell.gschema.xml.in:146
#: data/org.gnome.shell.gschema.xml.in:135
msgid "Keybinding to open the Activities Overview."
msgstr "Atalho de teclado para abrir o panorama de atividades."
#: data/org.gnome.shell.gschema.xml.in:152
#: data/org.gnome.shell.gschema.xml.in:141
msgid "Keybinding to toggle the visibility of the notification list"
msgstr "Atalho de teclado para alternar a visibilidade da lista de notificação"
#: data/org.gnome.shell.gschema.xml.in:153
#: data/org.gnome.shell.gschema.xml.in:142
msgid "Keybinding to toggle the visibility of the notification list."
msgstr ""
"Atalho de teclado para alternar a visibilidade da lista de notificação."
#: data/org.gnome.shell.gschema.xml.in:159
#: data/org.gnome.shell.gschema.xml.in:148
msgid "Keybinding to focus the active notification"
msgstr "Atalho de teclado para ativar a notificação ativa"
#: data/org.gnome.shell.gschema.xml.in:160
#: data/org.gnome.shell.gschema.xml.in:149
msgid "Keybinding to focus the active notification."
msgstr "Atalho de teclado para ativar a notificação ativa."
#: data/org.gnome.shell.gschema.xml.in:166
#: data/org.gnome.shell.gschema.xml.in:155
msgid "Switch to application 1"
msgstr "Alternar para o aplicativo 1"
#: data/org.gnome.shell.gschema.xml.in:170
#: data/org.gnome.shell.gschema.xml.in:159
msgid "Switch to application 2"
msgstr "Alternar para o aplicativo 2"
#: data/org.gnome.shell.gschema.xml.in:174
#: data/org.gnome.shell.gschema.xml.in:163
msgid "Switch to application 3"
msgstr "Alternar para o aplicativo 3"
#: data/org.gnome.shell.gschema.xml.in:178
#: data/org.gnome.shell.gschema.xml.in:167
msgid "Switch to application 4"
msgstr "Alternar para o aplicativo 4"
#: data/org.gnome.shell.gschema.xml.in:182
#: data/org.gnome.shell.gschema.xml.in:171
msgid "Switch to application 5"
msgstr "Alternar para o aplicativo 5"
#: data/org.gnome.shell.gschema.xml.in:186
#: data/org.gnome.shell.gschema.xml.in:175
msgid "Switch to application 6"
msgstr "Alternar para o aplicativo 6"
#: data/org.gnome.shell.gschema.xml.in:190
#: data/org.gnome.shell.gschema.xml.in:179
msgid "Switch to application 7"
msgstr "Alternar para o aplicativo 7"
#: data/org.gnome.shell.gschema.xml.in:194
#: data/org.gnome.shell.gschema.xml.in:183
msgid "Switch to application 8"
msgstr "Alternar para o aplicativo 8"
#: data/org.gnome.shell.gschema.xml.in:198
#: data/org.gnome.shell.gschema.xml.in:187
msgid "Switch to application 9"
msgstr "Alternar para o aplicativo 9"
#: data/org.gnome.shell.gschema.xml.in:207
#: data/org.gnome.shell.gschema.xml.in:234
#: data/org.gnome.shell.gschema.xml.in:196
#: data/org.gnome.shell.gschema.xml.in:223
msgid "Limit switcher to current workspace."
msgstr "Limitar o alternador ao espaço de trabalho atual."
#: data/org.gnome.shell.gschema.xml.in:208
#: data/org.gnome.shell.gschema.xml.in:197
msgid ""
"If true, only applications that have windows on the current workspace are "
"shown in the switcher. Otherwise, all applications are included."
@ -348,11 +331,11 @@ msgstr ""
"janelas no espaço de trabalho atual. Caso contrário, todos os aplicativos "
"serão incluídos."
#: data/org.gnome.shell.gschema.xml.in:225
#: data/org.gnome.shell.gschema.xml.in:214
msgid "The application icon mode."
msgstr "O modo ícone do aplicativo."
#: data/org.gnome.shell.gschema.xml.in:226
#: data/org.gnome.shell.gschema.xml.in:215
msgid ""
"Configures how the windows are shown in the switcher. Valid possibilities "
"are “thumbnail-only” (shows a thumbnail of the window), “app-icon-"
@ -362,7 +345,7 @@ msgstr ""
"válidas são “thumbnail-only” (mostra uma miniatura da janela), “app-icon-"
"only” (mostra apenas o ícone do aplicativo) ou “both”."
#: data/org.gnome.shell.gschema.xml.in:235
#: data/org.gnome.shell.gschema.xml.in:224
msgid ""
"If true, only windows from the current workspace are shown in the switcher. "
"Otherwise, all windows are included."
@ -370,58 +353,58 @@ msgstr ""
"Se verdadeiro, o alternador mostrará somente as janelas do espaço de "
"trabalho atual. Caso contrário, todos as janelas serão incluídas."
#: data/org.gnome.shell.gschema.xml.in:245
#: data/org.gnome.shell.gschema.xml.in:234
msgid "Locations"
msgstr "Localizações"
#: data/org.gnome.shell.gschema.xml.in:246
#: data/org.gnome.shell.gschema.xml.in:235
msgid "The locations to show in world clocks"
msgstr "As localizações para mostrar nos relógios mundiais"
#: data/org.gnome.shell.gschema.xml.in:256
#: data/org.gnome.shell.gschema.xml.in:245
msgid "Automatic location"
msgstr "Localização automática"
#: data/org.gnome.shell.gschema.xml.in:257
#: data/org.gnome.shell.gschema.xml.in:246
msgid "Whether to fetch the current location or not"
msgstr "Se deve-se obter a localização atual ou não"
#: data/org.gnome.shell.gschema.xml.in:264
#: data/org.gnome.shell.gschema.xml.in:253
msgid "Location"
msgstr "Localização"
#: data/org.gnome.shell.gschema.xml.in:265
#: data/org.gnome.shell.gschema.xml.in:254
msgid "The location for which to show a forecast"
msgstr "A localização para a qual deve-se mostrar uma previsão do tempo"
#: data/org.gnome.shell.gschema.xml.in:277
#: data/org.gnome.shell.gschema.xml.in:266
msgid "Attach modal dialog to the parent window"
msgstr "Anexar diálogo modal à janela pai"
#: data/org.gnome.shell.gschema.xml.in:278
#: data/org.gnome.shell.gschema.xml.in:287
#: data/org.gnome.shell.gschema.xml.in:295
#: data/org.gnome.shell.gschema.xml.in:303
#: data/org.gnome.shell.gschema.xml.in:311
#: data/org.gnome.shell.gschema.xml.in:267
#: data/org.gnome.shell.gschema.xml.in:276
#: data/org.gnome.shell.gschema.xml.in:284
#: data/org.gnome.shell.gschema.xml.in:292
#: data/org.gnome.shell.gschema.xml.in:300
msgid ""
"This key overrides the key in org.gnome.mutter when running GNOME Shell."
msgstr ""
"Esta chave sobrescreve a chave em org.gnome.mutter ao executar o GNOME Shell."
#: data/org.gnome.shell.gschema.xml.in:286
#: data/org.gnome.shell.gschema.xml.in:275
msgid "Enable edge tiling when dropping windows on screen edges"
msgstr ""
"Habilitar contorno ladrilhado ao arrastar janelas sobre as bordas da tela"
#: data/org.gnome.shell.gschema.xml.in:294
#: data/org.gnome.shell.gschema.xml.in:283
msgid "Workspaces are managed dynamically"
msgstr "Espaços de trabalho são gerenciados dinamicamente"
#: data/org.gnome.shell.gschema.xml.in:302
#: data/org.gnome.shell.gschema.xml.in:291
msgid "Workspaces only on primary monitor"
msgstr "Espaços de trabalho apenas no monitor primário"
#: data/org.gnome.shell.gschema.xml.in:310
#: data/org.gnome.shell.gschema.xml.in:299
msgid "Delay focus changes in mouse mode until the pointer stops moving"
msgstr "Atrasar foco altera o modo do mouse até o ponteiro parar de mover"
@ -458,9 +441,9 @@ msgstr "Visita a página web da extensão"
#: js/gdm/authPrompt.js:135 js/ui/audioDeviceSelection.js:57
#: js/ui/components/networkAgent.js:110 js/ui/components/polkitAgent.js:139
#: js/ui/endSessionDialog.js:398 js/ui/extensionDownloader.js:183
#: js/ui/endSessionDialog.js:369 js/ui/extensionDownloader.js:183
#: js/ui/shellMountOperation.js:376 js/ui/shellMountOperation.js:386
#: js/ui/status/network.js:940 subprojects/extensions-app/js/main.js:149
#: js/ui/status/network.js:916 subprojects/extensions-app/js/main.js:149
msgid "Cancel"
msgstr "Cancelar"
@ -496,7 +479,7 @@ msgstr "(ex.: usuário ou %s)"
msgid "Username"
msgstr "Nome de usuário"
#: js/gdm/loginDialog.js:1253
#: js/gdm/loginDialog.js:1254
msgid "Login Window"
msgstr "Janela de sessão"
@ -744,36 +727,38 @@ msgstr "Negar acesso"
msgid "Grant Access"
msgstr "Conceder acesso"
#: js/ui/appDisplay.js:1297
#: js/ui/appDisplay.js:903
msgid "Unnamed Folder"
msgstr "Pasta sem nome"
#. Translators: This is the heading of a list of open windows
#: js/ui/appDisplay.js:2762 js/ui/panel.js:75
#: js/ui/appDisplay.js:2225 js/ui/panel.js:75
msgid "Open Windows"
msgstr "Janelas abertas"
#: js/ui/appDisplay.js:2781 js/ui/panel.js:82
#: js/ui/appDisplay.js:2244 js/ui/panel.js:82
msgid "New Window"
msgstr "Nova janela"
#: js/ui/appDisplay.js:2797
#: js/ui/appDisplay.js:2260
#| msgid "Launch using Dedicated Graphics Card"
msgid "Launch using Integrated Graphics Card"
msgstr "Iniciar usando placa de vídeo integrada"
#: js/ui/appDisplay.js:2798
#: js/ui/appDisplay.js:2261
#| msgid "Launch using Dedicated Graphics Card"
msgid "Launch using Discrete Graphics Card"
msgstr "Iniciar usando placa de vídeo dedicada"
#: js/ui/appDisplay.js:2826 js/ui/dash.js:239
#: js/ui/appDisplay.js:2289 js/ui/dash.js:239
msgid "Remove from Favorites"
msgstr "Remover dos favoritos"
#: js/ui/appDisplay.js:2832
#: js/ui/appDisplay.js:2295
msgid "Add to Favorites"
msgstr "Adicionar aos favoritos"
#: js/ui/appDisplay.js:2842 js/ui/panel.js:93
#: js/ui/appDisplay.js:2305 js/ui/panel.js:93
msgid "Show Details"
msgstr "Mostrar detalhes"
@ -974,8 +959,8 @@ msgstr ""
"Alternativamente, você pode conectar pressionando o botão “WPS” em seu "
"roteador."
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:252
#: js/ui/status/network.js:343 js/ui/status/network.js:943
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:227
#: js/ui/status/network.js:318 js/ui/status/network.js:919
msgid "Connect"
msgstr "Conectar"
@ -1040,7 +1025,7 @@ msgstr "PIN"
msgid "A password is required to connect to “%s”."
msgstr "Uma senha é necessária para se conectar a “%s”."
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1718
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1694
msgid "Network Manager"
msgstr "Gerenciador de rede"
@ -1108,12 +1093,14 @@ msgstr "%A, %e de %B de %Y"
#. Translators: Shown on calendar heading when selected day occurs on current year
#: js/ui/dateMenu.js:151
#| msgid "%B %-d %Y"
msgctxt "calendar heading"
msgid "%B %-d"
msgstr "%-d de %B"
#. Translators: Shown on calendar heading when selected day occurs on different year
#: js/ui/dateMenu.js:154
#| msgid "%B %-d %Y"
msgctxt "calendar heading"
msgid "%B %-d %Y"
msgstr "%-d de %B de %Y"
@ -1163,6 +1150,7 @@ msgid "Weather"
msgstr "Meteorologia"
#: js/ui/dateMenu.js:653
#| msgid "Select a location…"
msgid "Select weather location…"
msgstr "Selecione uma localização meteorológica…"
@ -1290,32 +1278,27 @@ msgstr ""
"pode levar um longo tempo: certifique-se de que fez cópia de segurança (back "
"up) e que o computador esteja ligado na tomada."
#: js/ui/endSessionDialog.js:267
#: js/ui/endSessionDialog.js:259
msgid "Running on battery power: Please plug in before installing updates."
msgstr ""
"Funcionando na bateria: conecte na tomada antes de instalar atualizações."
#: js/ui/endSessionDialog.js:276
#: js/ui/endSessionDialog.js:268
msgid "Some applications are busy or have unsaved work"
msgstr "Alguns aplicativos estão ocupados ou possuem trabalhos não salvos"
#: js/ui/endSessionDialog.js:281
#: js/ui/endSessionDialog.js:273
msgid "Other users are logged in"
msgstr "Outros usuários estão com sessão aberta"
#: js/ui/endSessionDialog.js:427
msgctxt "button"
msgid "Boot Options"
msgstr "Opções de inicialização"
#. Translators: Remote here refers to a remote session, like a ssh login
#: js/ui/endSessionDialog.js:645
#: js/ui/endSessionDialog.js:583
#, javascript-format
msgid "%s (remote)"
msgstr "%s (remoto)"
#. Translators: Console here refers to a tty like a VT console
#: js/ui/endSessionDialog.js:648
#: js/ui/endSessionDialog.js:586
#, javascript-format
msgid "%s (console)"
msgstr "%s (console)"
@ -1418,15 +1401,15 @@ msgid "Leave On"
msgstr "Deixar ativado"
#: js/ui/kbdA11yDialog.js:55 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:1315
#: js/ui/status/network.js:1291
msgid "Turn On"
msgstr "Ligar"
#: js/ui/kbdA11yDialog.js:63 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:160 js/ui/status/network.js:344
#: js/ui/status/network.js:1315 js/ui/status/network.js:1427
#: js/ui/status/network.js:135 js/ui/status/network.js:319
#: js/ui/status/network.js:1291 js/ui/status/network.js:1403
#: js/ui/status/nightLight.js:41 js/ui/status/rfkill.js:81
#: js/ui/status/rfkill.js:110
#: js/ui/status/rfkill.js:108
msgid "Turn Off"
msgstr "Desligar"
@ -1487,11 +1470,11 @@ msgstr "Ver fonte"
msgid "Web Page"
msgstr "Página web"
#: js/ui/main.js:294
#: js/ui/main.js:297
msgid "Logged in as a privileged user"
msgstr "Sessão aberta como um usuário privilegiado"
#: js/ui/main.js:295
#: js/ui/main.js:298
msgid ""
"Running a session as a privileged user should be avoided for security "
"reasons. If possible, you should log in as a normal user."
@ -1499,11 +1482,11 @@ msgstr ""
"Usar uma sessão como um usuário privilegiado deve ser evitado por motivos de "
"segurança. Se possível, você deve abrir uma sessão como um usuário normal."
#: js/ui/main.js:334
#: js/ui/main.js:337
msgid "Screen Lock disabled"
msgstr "Bloqueio de tela desabilitado"
#: js/ui/main.js:335
#: js/ui/main.js:338
msgid "Screen Locking requires the GNOME display manager."
msgstr "O bloqueio de tela requer o gerenciador de exibição do GNOME."
@ -1596,7 +1579,7 @@ msgctxt "System menu in the top bar"
msgid "System"
msgstr "Sistema"
#: js/ui/panel.js:825
#: js/ui/panel.js:827
msgid "Top Bar"
msgstr "Barra superior"
@ -1773,15 +1756,17 @@ msgstr "Texto grande"
msgid "Bluetooth"
msgstr "Bluetooth"
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:619
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:595
msgid "Bluetooth Settings"
msgstr "Configurações de Bluetooth"
#: js/ui/status/bluetooth.js:152
#| msgid "Bluetooth"
msgid "Bluetooth Off"
msgstr "Bluetooth desligado"
#: js/ui/status/bluetooth.js:154
#| msgid "Bluetooth"
msgid "Bluetooth On"
msgstr "Bluetooth ligado"
@ -1857,18 +1842,18 @@ msgstr ""
"Acesso a localização pode ser alterado a qualquer momento nas configurações "
"de privacidade."
#: js/ui/status/network.js:71
#: js/ui/status/network.js:70
msgid "<unknown>"
msgstr "<desconhecido>"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:449 js/ui/status/network.js:1344
#: js/ui/status/network.js:424 js/ui/status/network.js:1320
#, javascript-format
msgid "%s Off"
msgstr "%s desligada"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:452
#: js/ui/status/network.js:427
#, javascript-format
msgid "%s Connected"
msgstr "Conectado à %s"
@ -1877,189 +1862,189 @@ msgstr "Conectado à %s"
#. Translators: this is for network devices that are physically present but are not
#. under NetworkManager's control (and thus cannot be used in the menu);
#. %s is a network identifier
#: js/ui/status/network.js:457
#: js/ui/status/network.js:432
#, javascript-format
msgid "%s Unmanaged"
msgstr "%s não é gerenciável"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:460
#: js/ui/status/network.js:435
#, javascript-format
msgid "%s Disconnecting"
msgstr "Desconectando de %s"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:467 js/ui/status/network.js:1336
#: js/ui/status/network.js:442 js/ui/status/network.js:1312
#, javascript-format
msgid "%s Connecting"
msgstr "Conectando à %s"
#. Translators: this is for network connections that require some kind of key or password; %s is a network identifier
#: js/ui/status/network.js:470
#: js/ui/status/network.js:445
#, javascript-format
msgid "%s Requires Authentication"
msgstr "%s requer autenticação"
#. Translators: this is for devices that require some kind of firmware or kernel
#. module, which is missing; %s is a network identifier
#: js/ui/status/network.js:478
#: js/ui/status/network.js:453
#, javascript-format
msgid "Firmware Missing For %s"
msgstr "Firmware em falta para %s"
#. Translators: this is for a network device that cannot be activated (for example it
#. is disabled by rfkill, or it has no coverage; %s is a network identifier
#: js/ui/status/network.js:482
#: js/ui/status/network.js:457
#, javascript-format
msgid "%s Unavailable"
msgstr "%s está indisponível"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:485
#: js/ui/status/network.js:460
#, javascript-format
msgid "%s Connection Failed"
msgstr "Falha na conexão de %s"
#: js/ui/status/network.js:497
#: js/ui/status/network.js:472
msgid "Wired Settings"
msgstr "Configurações da rede cabeada"
#: js/ui/status/network.js:540
#: js/ui/status/network.js:515
msgid "Mobile Broadband Settings"
msgstr "Configurações de banda larga móvel"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:586 js/ui/status/network.js:1341
#: js/ui/status/network.js:562 js/ui/status/network.js:1317
#, javascript-format
msgid "%s Hardware Disabled"
msgstr "Hardware de %s desabilitado"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode); %s is a network identifier
#: js/ui/status/network.js:590
#: js/ui/status/network.js:566
#, javascript-format
msgid "%s Disabled"
msgstr "%s está desabilitado"
#: js/ui/status/network.js:631
#: js/ui/status/network.js:607
msgid "Connect to Internet"
msgstr "Conectar à Internet"
#: js/ui/status/network.js:835
#: js/ui/status/network.js:811
msgid "Airplane Mode is On"
msgstr "Modo avião ligado"
#: js/ui/status/network.js:836
#: js/ui/status/network.js:812
msgid "Wi-Fi is disabled when airplane mode is on."
msgstr "O Wi-Fi é desabilitado quando o modo avião está ligado."
#: js/ui/status/network.js:837
#: js/ui/status/network.js:813
msgid "Turn Off Airplane Mode"
msgstr "Desligar modo avião"
#: js/ui/status/network.js:846
#: js/ui/status/network.js:822
msgid "Wi-Fi is Off"
msgstr "Wi-Fi desligado"
#: js/ui/status/network.js:847
#: js/ui/status/network.js:823
msgid "Wi-Fi needs to be turned on in order to connect to a network."
msgstr "O Wi-Fi precisa ser ligado a fim de conectar-se a uma rede."
#: js/ui/status/network.js:848
#: js/ui/status/network.js:824
msgid "Turn On Wi-Fi"
msgstr "Ligar Wi-Fi"
#: js/ui/status/network.js:873
#: js/ui/status/network.js:849
msgid "Wi-Fi Networks"
msgstr "Redes Wi-Fi"
#: js/ui/status/network.js:875
#: js/ui/status/network.js:851
msgid "Select a network"
msgstr "Selecione uma rede"
#: js/ui/status/network.js:907
#: js/ui/status/network.js:883
msgid "No Networks"
msgstr "Nenhuma rede"
#: js/ui/status/network.js:928 js/ui/status/rfkill.js:108
#: js/ui/status/network.js:904 js/ui/status/rfkill.js:106
msgid "Use hardware switch to turn off"
msgstr "Usar alternador de hardware para desligar"
#: js/ui/status/network.js:1205
#: js/ui/status/network.js:1181
msgid "Select Network"
msgstr "Selecione a rede"
#: js/ui/status/network.js:1211
#: js/ui/status/network.js:1187
msgid "Wi-Fi Settings"
msgstr "Configurações de Wi-Fi"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1332
#: js/ui/status/network.js:1308
#, javascript-format
msgid "%s Hotspot Active"
msgstr "Ponto de acesso %s está ativo"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1347
#: js/ui/status/network.js:1323
#, javascript-format
msgid "%s Not Connected"
msgstr "%s não está conectado"
#: js/ui/status/network.js:1444
#: js/ui/status/network.js:1420
msgid "connecting…"
msgstr "conectando…"
#. Translators: this is for network connections that require some kind of key or password
#: js/ui/status/network.js:1447
#: js/ui/status/network.js:1423
msgid "authentication required"
msgstr "autenticação necessária"
#: js/ui/status/network.js:1449
#: js/ui/status/network.js:1425
msgid "connection failed"
msgstr "conexão falhou"
#: js/ui/status/network.js:1500
#: js/ui/status/network.js:1476
msgid "VPN Settings"
msgstr "Configurações de VPN"
#: js/ui/status/network.js:1517
#: js/ui/status/network.js:1493
msgid "VPN"
msgstr "VPN"
#: js/ui/status/network.js:1527
#: js/ui/status/network.js:1503
msgid "VPN Off"
msgstr "VPN desligada"
#: js/ui/status/network.js:1588 js/ui/status/rfkill.js:84
#: js/ui/status/network.js:1564 js/ui/status/rfkill.js:84
msgid "Network Settings"
msgstr "Configurações de rede"
#: js/ui/status/network.js:1617
#: js/ui/status/network.js:1593
#, javascript-format
msgid "%s Wired Connection"
msgid_plural "%s Wired Connections"
msgstr[0] "%s conexão cabeada"
msgstr[1] "%s conexões cabeadas"
#: js/ui/status/network.js:1621
#: js/ui/status/network.js:1597
#, javascript-format
msgid "%s Wi-Fi Connection"
msgid_plural "%s Wi-Fi Connections"
msgstr[0] "%s conexão Wi-Fi"
msgstr[1] "%s conexões Wi-Fi"
#: js/ui/status/network.js:1625
#: js/ui/status/network.js:1601
#, javascript-format
msgid "%s Modem Connection"
msgid_plural "%s Modem Connections"
msgstr[0] "%s conexão por modem"
msgstr[1] "%s conexões por modems"
#: js/ui/status/network.js:1759
#: js/ui/status/network.js:1735
msgid "Connection failed"
msgstr "Falha de conexão"
#: js/ui/status/network.js:1760
#: js/ui/status/network.js:1736
msgid "Activation of network connection failed"
msgstr "Falha ao ativar a conexão da rede"
@ -2114,11 +2099,11 @@ msgstr "%d:%02d até completar (%d%%)"
msgid "%d%%"
msgstr "%d%%"
#: js/ui/status/remoteAccess.js:45
#: js/ui/status/remoteAccess.js:43
msgid "Screen is Being Shared"
msgstr "A tela está sendo compartilhada"
#: js/ui/status/remoteAccess.js:47
#: js/ui/status/remoteAccess.js:45
msgid "Turn off"
msgstr "Desativar"
@ -2263,22 +2248,22 @@ msgstr "“%s” está pronto"
# Título de janela de confirmação; Se grande demais, pode ser exibida com "..."
# Vide: https://bugzilla.gnome.org/show_bug.cgi?id=786331
#. Translators: This string should be shorter than 30 characters
#: js/ui/windowManager.js:60
#: js/ui/windowManager.js:55
msgid "Keep these display settings?"
msgstr "Manter essas configurações da tela?"
#. Translators: this and the following message should be limited in length,
#. to avoid ellipsizing the labels.
#.
#: js/ui/windowManager.js:69
#: js/ui/windowManager.js:64
msgid "Revert Settings"
msgstr "Reverter configurações"
#: js/ui/windowManager.js:72
#: js/ui/windowManager.js:67
msgid "Keep Changes"
msgstr "Manter alterações"
#: js/ui/windowManager.js:91
#: js/ui/windowManager.js:86
#, javascript-format
msgid "Settings changes will revert in %d second"
msgid_plural "Settings changes will revert in %d seconds"
@ -2287,7 +2272,7 @@ msgstr[1] "Alterações nas configurações serão revertidas em %d segundos"
#. Translators: This represents the size of a window. The first number is
#. * the width of the window and the second is the height.
#: js/ui/windowManager.js:551
#: js/ui/windowManager.js:546
#, javascript-format
msgid "%d × %d"
msgstr "%d × %d"
@ -2465,6 +2450,7 @@ msgid "The extension is incompatible with the current GNOME version"
msgstr "A extensão é incompatível com a versão atual do GNOME"
#: subprojects/extensions-app/js/main.js:464
#| msgid "Show extension info"
msgid "The extension had an error"
msgstr "A extensão apresentou um erro"
@ -2621,6 +2607,7 @@ msgid "TEMPLATE"
msgstr "MODELO"
#: subprojects/extensions-tool/src/command-create.c:447
#| msgid "The user-visible name of the new extension"
msgid "The template to use for the new extension"
msgstr "O modelo para usar para a nova extensão"
@ -2797,6 +2784,7 @@ msgstr "Mais de um diretório fonte especificado"
#: subprojects/extensions-tool/src/command-prefs.c:47
#, c-format
#| msgid "Show extensions with preferences"
msgid "Extension “%s” doesn't have preferences\n"
msgstr "A extensão “%s” não tem preferências\n"
@ -2809,11 +2797,13 @@ msgid "Reset an extension"
msgstr "Redefine uma extensão"
#: subprojects/extensions-tool/src/command-uninstall.c:49
#| msgid "List installed extensions"
msgid "Cannot uninstall system extensions\n"
msgstr "Não é possível desinstalar as extensões do sistema\n"
#: subprojects/extensions-tool/src/command-uninstall.c:64
#, c-format
#| msgid "Failed to launch “%s”"
msgid "Failed to uninstall “%s”\n"
msgstr "Falha ao desinstalar “%s”\n"
@ -2926,6 +2916,7 @@ msgid "Plain"
msgstr "Em branco"
#: subprojects/extensions-tool/src/templates/00-plain.desktop.in:5
#| msgid "Reset extension"
msgid "An empty extension"
msgstr "Uma extensão vazia"

289
po/tr.po
View File

@ -17,8 +17,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
"POT-Creation-Date: 2020-08-10 15:40+0000\n"
"PO-Revision-Date: 2020-08-11 01:10+0300\n"
"POT-Creation-Date: 2020-07-29 07:55+0000\n"
"PO-Revision-Date: 2020-07-30 00:49+0300\n"
"Last-Translator: Emin Tufan Çetin <etcetin@gmail.com>\n"
"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
"Language: tr\n"
@ -26,7 +26,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 2.4\n"
"X-Generator: Poedit 2.3\n"
"X-Project-Style: gnome\n"
#: data/50-gnome-shell-system.xml:6
@ -236,10 +236,10 @@ msgid ""
"“application id” → 'data' pair. Currently, the following values are stored "
"as 'data': • “position”: the position of the application icon in the page"
msgstr ""
"Uygulama seçicinin düzeni. Dizideki her girdi bir sayfadır. Sayfalar GNOME "
"Kabuğunda göründüğü sırayla depolanır. Her sayfa bir “application id” "
"'data' çifti içerir. Şimdilik şu değerler 'data' olarak depolanır: "
"“position”: sayfadaki uygulama simgesinin konumu"
"Uygulama seçicinin düzeni. Dizideki her girdi bir sayfadır. Sayfalar "
"GNOME Kabuğunda göründüğü sırayla depolanır. Her sayfa bir “application id” "
"'data' çifti içerir. Şimdilik şu değerler 'data' olarak depolanır: "
"“position”: sayfadaki uygulama simgesinin konumu"
#: data/org.gnome.shell.gschema.xml.in:130
msgid "Keybinding to open the application menu"
@ -446,9 +446,9 @@ msgstr "Uzantı ana sayfasını ziyaret et"
#: js/gdm/authPrompt.js:135 js/ui/audioDeviceSelection.js:57
#: js/ui/components/networkAgent.js:110 js/ui/components/polkitAgent.js:139
#: js/ui/endSessionDialog.js:413 js/ui/extensionDownloader.js:183
#: js/ui/endSessionDialog.js:369 js/ui/extensionDownloader.js:183
#: js/ui/shellMountOperation.js:376 js/ui/shellMountOperation.js:386
#: js/ui/status/network.js:940 subprojects/extensions-app/js/main.js:149
#: js/ui/status/network.js:916 subprojects/extensions-app/js/main.js:149
msgid "Cancel"
msgstr "İptal"
@ -502,82 +502,71 @@ msgid "(or swipe finger)"
msgstr "(ya da parmak izi okut)"
#. Translators: The name of the power-off action in search
#: js/misc/systemActions.js:91
#: js/misc/systemActions.js:93
msgctxt "search-result"
msgid "Power Off"
msgstr "Bilgisayarı Kapat"
#. Translators: A list of keywords that match the power-off action, separated by semicolons
#: js/misc/systemActions.js:94
msgid "power off;shutdown;halt;stop"
msgstr "gücü kapat;bilgisayarı kapat;duraklat;durdur"
#. Translators: The name of the restart action in search
#: js/misc/systemActions.js:99
msgctxt "search-result"
msgid "Restart"
msgstr "Yeniden Başlat"
#. Translators: A list of keywords that match the restart action, separated by semicolons
#: js/misc/systemActions.js:102
msgid "reboot;restart;"
msgstr "yeniden önyükle;yeniden başlat;"
#: js/misc/systemActions.js:96
msgid "power off;shutdown;reboot;restart;halt;stop"
msgstr "gücü kapat;bilgisayarı kapat;yeniden başlat;duraklat;durdur"
#. Translators: The name of the lock screen action in search
#: js/misc/systemActions.js:107
#: js/misc/systemActions.js:101
msgctxt "search-result"
msgid "Lock Screen"
msgstr "Ekranı Kilitle"
#. Translators: A list of keywords that match the lock screen action, separated by semicolons
#: js/misc/systemActions.js:110
#: js/misc/systemActions.js:104
msgid "lock screen"
msgstr "ekranı kilitle"
#. Translators: The name of the logout action in search
#: js/misc/systemActions.js:115
#: js/misc/systemActions.js:109
msgctxt "search-result"
msgid "Log Out"
msgstr "Oturumu Kapat"
#. Translators: A list of keywords that match the logout action, separated by semicolons
#: js/misc/systemActions.js:118
#: js/misc/systemActions.js:112
msgid "logout;log out;sign off"
msgstr "çıkış;oturumu kapat;çıkış yap"
#. Translators: The name of the suspend action in search
#: js/misc/systemActions.js:123
#: js/misc/systemActions.js:117
msgctxt "search-result"
msgid "Suspend"
msgstr "Bilgisayarı beklet"
#. Translators: A list of keywords that match the suspend action, separated by semicolons
#: js/misc/systemActions.js:126
#: js/misc/systemActions.js:120
msgid "suspend;sleep"
msgstr "beklet;uyku;duraklat"
#. Translators: The name of the switch user action in search
#: js/misc/systemActions.js:131
#: js/misc/systemActions.js:125
msgctxt "search-result"
msgid "Switch User"
msgstr "Kullanıcı Değiştir"
#. Translators: A list of keywords that match the switch user action, separated by semicolons
#: js/misc/systemActions.js:134
#: js/misc/systemActions.js:128
msgid "switch user"
msgstr "kullanıcı değiştir"
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
#: js/misc/systemActions.js:141
#: js/misc/systemActions.js:135
msgid "lock orientation;unlock orientation;screen;rotation"
msgstr "yönelimi kilitle;yönelim kilidini kaldır;ekran;döndürme"
#: js/misc/systemActions.js:266
#: js/misc/systemActions.js:255
msgctxt "search-result"
msgid "Unlock Screen Rotation"
msgstr "Ekran Döndürme Kilidini Kaldır"
#: js/misc/systemActions.js:267
#: js/misc/systemActions.js:256
msgctxt "search-result"
msgid "Lock Screen Rotation"
msgstr "Ekran Döndürmeyi Kilitle"
@ -742,31 +731,31 @@ msgid "Unnamed Folder"
msgstr "Adsız Klasör"
#. Translators: This is the heading of a list of open windows
#: js/ui/appDisplay.js:2762 js/ui/panel.js:75
#: js/ui/appDisplay.js:2767 js/ui/panel.js:75
msgid "Open Windows"
msgstr "Açık Pencereler"
#: js/ui/appDisplay.js:2781 js/ui/panel.js:82
#: js/ui/appDisplay.js:2786 js/ui/panel.js:82
msgid "New Window"
msgstr "Yeni Pencere"
#: js/ui/appDisplay.js:2797
#: js/ui/appDisplay.js:2802
msgid "Launch using Integrated Graphics Card"
msgstr "Tümleşik Ekran Kartıyla Başlat"
#: js/ui/appDisplay.js:2798
#: js/ui/appDisplay.js:2803
msgid "Launch using Discrete Graphics Card"
msgstr "Ayrık Ekran Kartıyla Başlat"
#: js/ui/appDisplay.js:2826 js/ui/dash.js:239
#: js/ui/appDisplay.js:2831 js/ui/dash.js:239
msgid "Remove from Favorites"
msgstr "Sık Kullanılanlardan Çıkar"
#: js/ui/appDisplay.js:2832
#: js/ui/appDisplay.js:2837
msgid "Add to Favorites"
msgstr "Sık Kullanılanlara Ekle"
#: js/ui/appDisplay.js:2842 js/ui/panel.js:93
#: js/ui/appDisplay.js:2847 js/ui/panel.js:93
msgid "Show Details"
msgstr "Ayrıntıları Göster"
@ -967,8 +956,8 @@ msgstr ""
"Diğer seçenek olarak, yönlendiricinizde “WPS” düğmesini kullanarak "
"bağlayabilirsiniz."
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:252
#: js/ui/status/network.js:343 js/ui/status/network.js:943
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:227
#: js/ui/status/network.js:318 js/ui/status/network.js:919
msgid "Connect"
msgstr "Bağlan"
@ -1032,7 +1021,7 @@ msgstr "PIN"
msgid "A password is required to connect to “%s”."
msgstr "“%s”e bağlanmak için parola gerekli."
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1718
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1694
msgid "Network Manager"
msgstr "Ağ Yöneticisi"
@ -1169,76 +1158,71 @@ msgctxt "title"
msgid "Log Out"
msgstr "Oturumu Kapat"
#: js/ui/endSessionDialog.js:41
#: js/ui/endSessionDialog.js:40
#, javascript-format
msgid "%s will be logged out automatically in %d second."
msgid_plural "%s will be logged out automatically in %d seconds."
msgstr[0] "%s oturumu %d saniye içinde kendiliğinden kapatılacak."
#: js/ui/endSessionDialog.js:47
#: js/ui/endSessionDialog.js:45
#, javascript-format
msgid "You will be logged out automatically in %d second."
msgid_plural "You will be logged out automatically in %d seconds."
msgstr[0] "%d saniye içinde oturumunuz kendiliğinden kapatılacak."
#: js/ui/endSessionDialog.js:54
#: js/ui/endSessionDialog.js:51
msgctxt "button"
msgid "Log Out"
msgstr "Çıkış"
#: js/ui/endSessionDialog.js:60
#: js/ui/endSessionDialog.js:56
msgctxt "title"
msgid "Power Off"
msgstr "Bilgisayarı Kapat"
#: js/ui/endSessionDialog.js:61
#: js/ui/endSessionDialog.js:57
msgctxt "title"
msgid "Install Updates & Power Off"
msgstr "Güncelleştirmeleri Kur ve Kapat"
#: js/ui/endSessionDialog.js:64
#: js/ui/endSessionDialog.js:59
#, javascript-format
msgid "The system will power off automatically in %d second."
msgid_plural "The system will power off automatically in %d seconds."
msgstr[0] "Sistem %d saniye içinde kendiliğinden kapanacak."
#: js/ui/endSessionDialog.js:68 js/ui/endSessionDialog.js:87
#: js/ui/endSessionDialog.js:63
msgctxt "checkbox"
msgid "Install pending software updates"
msgstr "Beklemede olan yazılım güncelleştirmelerini kur"
#: js/ui/endSessionDialog.js:72
#: js/ui/endSessionDialog.js:66 js/ui/endSessionDialog.js:82
msgctxt "button"
msgid "Restart"
msgstr "Yeniden Başlat"
#: js/ui/endSessionDialog.js:68
msgctxt "button"
msgid "Power Off"
msgstr "Kapat"
#: js/ui/endSessionDialog.js:79
#: js/ui/endSessionDialog.js:74
msgctxt "title"
msgid "Restart"
msgstr "Bilgisayarı Yeniden Başlat"
#: js/ui/endSessionDialog.js:80
msgctxt "title"
msgid "Install Updates & Restart"
msgstr "Güncelleştirmeleri Kur ve Yeniden Başlat"
#: js/ui/endSessionDialog.js:83
#: js/ui/endSessionDialog.js:76
#, javascript-format
msgid "The system will restart automatically in %d second."
msgid_plural "The system will restart automatically in %d seconds."
msgstr[0] "Sistem %d saniye içinde kendiliğinden yeniden başlayacak."
#: js/ui/endSessionDialog.js:91
msgctxt "button"
msgid "Restart"
msgstr "Yeniden Başlat"
#: js/ui/endSessionDialog.js:99
#: js/ui/endSessionDialog.js:89
msgctxt "title"
msgid "Restart & Install Updates"
msgstr "Yeniden Başlat ve Güncelleştirmeleri Kur"
#: js/ui/endSessionDialog.js:102
#: js/ui/endSessionDialog.js:91
#, javascript-format
msgid "The system will automatically restart and install updates in %d second."
msgid_plural ""
@ -1247,22 +1231,22 @@ msgstr[0] ""
"Sistem %d saniye içinde kendiliğinden yeniden başlayacak ve "
"güncelleştirmeleri kuracak."
#: js/ui/endSessionDialog.js:109 js/ui/endSessionDialog.js:130
#: js/ui/endSessionDialog.js:97 js/ui/endSessionDialog.js:116
msgctxt "button"
msgid "Restart &amp; Install"
msgstr "Yeniden Başlat ve Kur"
#: js/ui/endSessionDialog.js:111
#: js/ui/endSessionDialog.js:98
msgctxt "button"
msgid "Install &amp; Power Off"
msgstr "Kur ve Kapat"
#: js/ui/endSessionDialog.js:112
#: js/ui/endSessionDialog.js:99
msgctxt "checkbox"
msgid "Power off after updates are installed"
msgstr "Güncelleştirmeler kurulduktan sonra kapat"
#: js/ui/endSessionDialog.js:119
#: js/ui/endSessionDialog.js:106
msgctxt "title"
msgid "Restart & Install Upgrade"
msgstr "Yeniden Başlat ve Yükseltmeyi Kur"
@ -1270,7 +1254,7 @@ msgstr "Yeniden Başlat ve Yükseltmeyi Kur"
#. Translators: This is the text displayed for system upgrades in the
#. shut down dialog. First %s gets replaced with the distro name and
#. second %s with the distro version to upgrade to
#: js/ui/endSessionDialog.js:124
#: js/ui/endSessionDialog.js:111
#, javascript-format
msgid ""
"%s %s will be installed after restart. Upgrade installation can take a long "
@ -1280,32 +1264,27 @@ msgstr ""
"uzun sürebilir: verilerinizi yedeklediğinizden ve bilgisayarınızın prize "
"takılı olduğundan emin olun."
#: js/ui/endSessionDialog.js:282
#: js/ui/endSessionDialog.js:259
msgid "Running on battery power: Please plug in before installing updates."
msgstr ""
"Pil gücünde çalışıyor: lütfen güncelleştirmeleri kurmadan önce fişi takın."
#: js/ui/endSessionDialog.js:291
#: js/ui/endSessionDialog.js:268
msgid "Some applications are busy or have unsaved work"
msgstr "Bazı uygulamalar meşgul ya da kaydedilmemiş verisi var"
#: js/ui/endSessionDialog.js:296
#: js/ui/endSessionDialog.js:273
msgid "Other users are logged in"
msgstr "Diğer kullanıcılar oturum açmış"
#: js/ui/endSessionDialog.js:442
msgctxt "button"
msgid "Boot Options"
msgstr "Önyükleme Seçenekleri"
#. Translators: Remote here refers to a remote session, like a ssh login
#: js/ui/endSessionDialog.js:660
#: js/ui/endSessionDialog.js:583
#, javascript-format
msgid "%s (remote)"
msgstr "%s (uzak)"
#. Translators: Console here refers to a tty like a VT console
#: js/ui/endSessionDialog.js:663
#: js/ui/endSessionDialog.js:586
#, javascript-format
msgid "%s (console)"
msgstr "%s (uçbirim)"
@ -1321,7 +1300,7 @@ msgstr "Uzantı Yükle"
#: js/ui/extensionDownloader.js:194
#, javascript-format
msgid "Download and install “%s” from extensions.gnome.org?"
msgstr "“%s” uzantısı extensions.gnome.org üstünden indirilip kurulsun mu?"
msgstr "extensions.gnome.org üstünden “%s” uzantısı indirilip kurulsun mu?"
#: js/ui/extensionSystem.js:252
msgid "Extension Updates Available"
@ -1405,15 +1384,15 @@ msgid "Leave On"
msgstr "Açık Bırak"
#: js/ui/kbdA11yDialog.js:55 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:1315
#: js/ui/status/network.js:1291
msgid "Turn On"
msgstr "Aç"
#: js/ui/kbdA11yDialog.js:63 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:160 js/ui/status/network.js:344
#: js/ui/status/network.js:1315 js/ui/status/network.js:1427
#: js/ui/status/network.js:135 js/ui/status/network.js:319
#: js/ui/status/network.js:1291 js/ui/status/network.js:1403
#: js/ui/status/nightLight.js:41 js/ui/status/rfkill.js:81
#: js/ui/status/rfkill.js:110
#: js/ui/status/rfkill.js:108
msgid "Turn Off"
msgstr "Kapat"
@ -1474,11 +1453,11 @@ msgstr "Kaynağı Görüntüle"
msgid "Web Page"
msgstr "Web Sayfası"
#: js/ui/main.js:294
#: js/ui/main.js:297
msgid "Logged in as a privileged user"
msgstr "Yetkili kullanıcı olarak oturum açılmış"
#: js/ui/main.js:295
#: js/ui/main.js:298
msgid ""
"Running a session as a privileged user should be avoided for security "
"reasons. If possible, you should log in as a normal user."
@ -1486,11 +1465,11 @@ msgstr ""
"Oturumu öncelikli kullanıcı olarak çalıştırmaktan güvenlik nedeniyle "
"kaçınılmalıdır. Eğer olasıysa sıradan kullanıcı olarak giriş yapmalısınız."
#: js/ui/main.js:334
#: js/ui/main.js:337
msgid "Screen Lock disabled"
msgstr "Ekran Kilidi devre dışı"
#: js/ui/main.js:335
#: js/ui/main.js:338
msgid "Screen Locking requires the GNOME display manager."
msgstr "Ekran Kilitleme, GNOME ekran yöneticisi gerektirir."
@ -1583,7 +1562,7 @@ msgctxt "System menu in the top bar"
msgid "System"
msgstr "Sistem"
#: js/ui/panel.js:825
#: js/ui/panel.js:827
msgid "Top Bar"
msgstr "Tepe Çubuğu"
@ -1759,7 +1738,7 @@ msgstr "Büyük Yazı"
msgid "Bluetooth"
msgstr "Bluetooth"
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:619
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:595
msgid "Bluetooth Settings"
msgstr "Bluetooth Ayarları"
@ -1841,18 +1820,18 @@ msgstr "%s uygulaması konumunuza erişmek istiyor"
msgid "Location access can be changed at any time from the privacy settings."
msgstr "Konum erişimi, gizlilik ayarlarından her zaman değiştirilebilir."
#: js/ui/status/network.js:71
#: js/ui/status/network.js:70
msgid "<unknown>"
msgstr "<bilinmeyen>"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:449 js/ui/status/network.js:1344
#: js/ui/status/network.js:424 js/ui/status/network.js:1320
#, javascript-format
msgid "%s Off"
msgstr "%s Kapalı"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:452
#: js/ui/status/network.js:427
#, javascript-format
msgid "%s Connected"
msgstr "%s Bağlandı"
@ -1860,186 +1839,186 @@ msgstr "%s Bağlandı"
#. Translators: this is for network devices that are physically present but are not
#. under NetworkManager's control (and thus cannot be used in the menu);
#. %s is a network identifier
#: js/ui/status/network.js:457
#: js/ui/status/network.js:432
#, javascript-format
msgid "%s Unmanaged"
msgstr "%s Yönetilmiyor"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:460
#: js/ui/status/network.js:435
#, javascript-format
msgid "%s Disconnecting"
msgstr "%s Bağlantısı Kesiliyor"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:467 js/ui/status/network.js:1336
#: js/ui/status/network.js:442 js/ui/status/network.js:1312
#, javascript-format
msgid "%s Connecting"
msgstr "%s Bağlanıyor"
#. Translators: this is for network connections that require some kind of key or password; %s is a network identifier
#: js/ui/status/network.js:470
#: js/ui/status/network.js:445
#, javascript-format
msgid "%s Requires Authentication"
msgstr "%s Kimlik Doğrulaması Gerektiriyor"
#. Translators: this is for devices that require some kind of firmware or kernel
#. module, which is missing; %s is a network identifier
#: js/ui/status/network.js:478
#: js/ui/status/network.js:453
#, javascript-format
msgid "Firmware Missing For %s"
msgstr "%s İçin Ürün Bilgisi Eksik"
#. Translators: this is for a network device that cannot be activated (for example it
#. is disabled by rfkill, or it has no coverage; %s is a network identifier
#: js/ui/status/network.js:482
#: js/ui/status/network.js:457
#, javascript-format
msgid "%s Unavailable"
msgstr "%s Kullanılamaz"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:485
#: js/ui/status/network.js:460
#, javascript-format
msgid "%s Connection Failed"
msgstr "%s Bağlantısı Başarısız Oldu"
#: js/ui/status/network.js:497
#: js/ui/status/network.js:472
msgid "Wired Settings"
msgstr "Kablolu Ağ Ayarları"
#: js/ui/status/network.js:540
#: js/ui/status/network.js:515
msgid "Mobile Broadband Settings"
msgstr "Mobil Geniş Bant Ayarları"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:586 js/ui/status/network.js:1341
#: js/ui/status/network.js:562 js/ui/status/network.js:1317
#, javascript-format
msgid "%s Hardware Disabled"
msgstr "%s Donanımı Devre Dışı"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode); %s is a network identifier
#: js/ui/status/network.js:590
#: js/ui/status/network.js:566
#, javascript-format
msgid "%s Disabled"
msgstr "%s Devre Dışı"
#: js/ui/status/network.js:631
#: js/ui/status/network.js:607
msgid "Connect to Internet"
msgstr "İnternete Bağlan"
#: js/ui/status/network.js:835
#: js/ui/status/network.js:811
msgid "Airplane Mode is On"
msgstr "Uçak Kipi Açık"
#: js/ui/status/network.js:836
#: js/ui/status/network.js:812
msgid "Wi-Fi is disabled when airplane mode is on."
msgstr "Uçak kipi açıldığında kablosuz ağ devre dışı kalır."
#: js/ui/status/network.js:837
#: js/ui/status/network.js:813
msgid "Turn Off Airplane Mode"
msgstr "Uçak Kipini Kapat"
#: js/ui/status/network.js:846
#: js/ui/status/network.js:822
msgid "Wi-Fi is Off"
msgstr "Kablosuz Ağ Kapalı"
#: js/ui/status/network.js:847
#: js/ui/status/network.js:823
msgid "Wi-Fi needs to be turned on in order to connect to a network."
msgstr "Ağa bağlanmak için kablosuz ağın açık olması gerekir."
#: js/ui/status/network.js:848
#: js/ui/status/network.js:824
msgid "Turn On Wi-Fi"
msgstr "Kablosuz Ağı Aç"
#: js/ui/status/network.js:873
#: js/ui/status/network.js:849
msgid "Wi-Fi Networks"
msgstr "Kablosuz Ağlar"
#: js/ui/status/network.js:875
#: js/ui/status/network.js:851
msgid "Select a network"
msgstr "Ağ seç"
#: js/ui/status/network.js:907
#: js/ui/status/network.js:883
msgid "No Networks"
msgstr "Ağ Yok"
#: js/ui/status/network.js:928 js/ui/status/rfkill.js:108
#: js/ui/status/network.js:904 js/ui/status/rfkill.js:106
msgid "Use hardware switch to turn off"
msgstr "Kapatmak için donanım anahtarını kullan"
#: js/ui/status/network.js:1205
#: js/ui/status/network.js:1181
msgid "Select Network"
msgstr "Ağ Seç"
#: js/ui/status/network.js:1211
#: js/ui/status/network.js:1187
msgid "Wi-Fi Settings"
msgstr "Kablosuz Ağ Ayarları"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1332
#: js/ui/status/network.js:1308
#, javascript-format
msgid "%s Hotspot Active"
msgstr "%s Erişim Noktası Etkin"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1347
#: js/ui/status/network.js:1323
#, javascript-format
msgid "%s Not Connected"
msgstr "%s Bağlı Değil"
#: js/ui/status/network.js:1444
#: js/ui/status/network.js:1420
msgid "connecting…"
msgstr "bağlanıyor…"
#. Translators: this is for network connections that require some kind of key or password
#: js/ui/status/network.js:1447
#: js/ui/status/network.js:1423
msgid "authentication required"
msgstr "kimlik doğrulaması gerekli"
#: js/ui/status/network.js:1449
#: js/ui/status/network.js:1425
msgid "connection failed"
msgstr "bağlantı başarısız"
#: js/ui/status/network.js:1500
#: js/ui/status/network.js:1476
msgid "VPN Settings"
msgstr "VPN Ayarları"
#: js/ui/status/network.js:1517
#: js/ui/status/network.js:1493
msgid "VPN"
msgstr "VPN"
#: js/ui/status/network.js:1527
#: js/ui/status/network.js:1503
msgid "VPN Off"
msgstr "VPN Kapalı"
#: js/ui/status/network.js:1588 js/ui/status/rfkill.js:84
#: js/ui/status/network.js:1564 js/ui/status/rfkill.js:84
msgid "Network Settings"
msgstr "Ağ Ayarları"
#: js/ui/status/network.js:1617
#: js/ui/status/network.js:1593
#, javascript-format
msgid "%s Wired Connection"
msgid_plural "%s Wired Connections"
msgstr[0] "%s Kablolu Bağlantı"
#: js/ui/status/network.js:1621
#: js/ui/status/network.js:1597
#, javascript-format
msgid "%s Wi-Fi Connection"
msgid_plural "%s Wi-Fi Connections"
msgstr[0] "%s Kablosuz Ağ Bağlantısı"
#: js/ui/status/network.js:1625
#: js/ui/status/network.js:1601
#, javascript-format
msgid "%s Modem Connection"
msgid_plural "%s Modem Connections"
msgstr[0] "%s Modem Bağlantısı"
#: js/ui/status/network.js:1759
#: js/ui/status/network.js:1735
msgid "Connection failed"
msgstr "Bağlantı başarısız oldu"
#: js/ui/status/network.js:1760
#: js/ui/status/network.js:1736
msgid "Activation of network connection failed"
msgstr "Ağ bağlantısının etkinleştirilmesi başarısız oldu"
@ -2094,11 +2073,11 @@ msgstr "Tümüyle Dolmasına %d.%02d Kaldı (%% %d)"
msgid "%d%%"
msgstr "%d%%"
#: js/ui/status/remoteAccess.js:45
#: js/ui/status/remoteAccess.js:43
msgid "Screen is Being Shared"
msgstr "Ekran Paylaşılıyor"
#: js/ui/status/remoteAccess.js:47
#: js/ui/status/remoteAccess.js:45
msgid "Turn off"
msgstr "Kapat"
@ -2109,34 +2088,30 @@ msgstr "Kapat"
msgid "Airplane Mode On"
msgstr "Uçak Kipi Açık"
#: js/ui/status/system.js:104
#: js/ui/status/system.js:102
msgid "Lock"
msgstr "Kilitle"
#: js/ui/status/system.js:116
#: js/ui/status/system.js:115
msgid "Power Off / Log Out"
msgstr "Gücü Kapat / Oturumu Kapat"
#: js/ui/status/system.js:119
msgid "Suspend"
msgstr "Beklet"
#: js/ui/status/system.js:130
msgid "Restart…"
msgstr "Yeniden Başlat…"
#: js/ui/status/system.js:141
msgid "Power Off…"
msgstr "Gücü Kapat…"
#: js/ui/status/system.js:154
#: js/ui/status/system.js:118
msgid "Log Out"
msgstr "Oturumu Kapat"
#: js/ui/status/system.js:165
#: js/ui/status/system.js:130
msgid "Switch User…"
msgstr "Kullanıcı Değiştir…"
#: js/ui/status/system.js:144
msgid "Suspend"
msgstr "Beklet"
#: js/ui/status/system.js:156
msgid "Power Off…"
msgstr "Gücü Kapat…"
#: js/ui/status/thunderbolt.js:263
msgid "Thunderbolt"
msgstr "Thunderbolt"
@ -2244,22 +2219,22 @@ msgid "“%s” is ready"
msgstr "“%s” hazır"
#. Translators: This string should be shorter than 30 characters
#: js/ui/windowManager.js:60
#: js/ui/windowManager.js:55
msgid "Keep these display settings?"
msgstr "Bu görüntü ayarları saklansın mı?"
#. Translators: this and the following message should be limited in length,
#. to avoid ellipsizing the labels.
#.
#: js/ui/windowManager.js:69
#: js/ui/windowManager.js:64
msgid "Revert Settings"
msgstr "Ayarları Eski Haline Getir"
#: js/ui/windowManager.js:72
#: js/ui/windowManager.js:67
msgid "Keep Changes"
msgstr "Değişiklikleri Sakla"
#: js/ui/windowManager.js:91
#: js/ui/windowManager.js:86
#, javascript-format
msgid "Settings changes will revert in %d second"
msgid_plural "Settings changes will revert in %d seconds"
@ -2267,7 +2242,7 @@ msgstr[0] "Ayarlardaki değişiklikler %d saniye içinde eski haline döndürül
#. Translators: This represents the size of a window. The first number is
#. * the width of the window and the second is the height.
#: js/ui/windowManager.js:551
#: js/ui/windowManager.js:546
#, javascript-format
msgid "%d × %d"
msgstr "%d × %d"

300
po/uk.po
View File

@ -10,8 +10,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnome-shell master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/gnome-shell/issues\n"
"POT-Creation-Date: 2020-08-10 23:58+0000\n"
"PO-Revision-Date: 2020-08-11 09:23+0300\n"
"POT-Creation-Date: 2020-07-20 16:18+0000\n"
"PO-Revision-Date: 2020-07-21 08:42+0300\n"
"Last-Translator: Yuri Chornoivan <yurchor@ukr.net>\n"
"Language-Team: Ukrainian <kde-i18n-uk@kde.org>\n"
"Language: uk\n"
@ -227,11 +227,11 @@ msgid ""
"“application id” → 'data' pair. Currently, the following values are stored "
"as 'data': • “position”: the position of the application icon in the page"
msgstr ""
"Компонування засобу вибору програм. Кожен запис у цьому масиві є сторінкою. "
"Сторінки зберігаються у порядку, у якому їх буде показано у GNOME Shell. "
"Кожна сторінка містить пану записів “ідентифікатор програми” → 'дані'. У "
"поточній версії як 'дані' може бути збережено такі значення: • “позиція”: "
"позиція піктограми програми на сторінці"
"Компонування засобу вибору програм. Кожен запис у цьому масиві є сторінкою."
" Сторінки зберігаються у порядку, у якому їх буде показано у GNOME Shell."
" Кожна сторінка містить пану записів “ідентифікатор програми” → 'дані'. У"
" поточній версії як 'дані' може бути збережено такі значення: • “позиція”:"
" позиція піктограми програми на сторінці"
#: data/org.gnome.shell.gschema.xml.in:130
msgid "Keybinding to open the application menu"
@ -431,9 +431,9 @@ msgstr "Відвідати сторінку розширення"
#: js/gdm/authPrompt.js:135 js/ui/audioDeviceSelection.js:57
#: js/ui/components/networkAgent.js:110 js/ui/components/polkitAgent.js:139
#: js/ui/endSessionDialog.js:438 js/ui/extensionDownloader.js:183
#: js/ui/endSessionDialog.js:369 js/ui/extensionDownloader.js:183
#: js/ui/shellMountOperation.js:376 js/ui/shellMountOperation.js:386
#: js/ui/status/network.js:940 subprojects/extensions-app/js/main.js:149
#: js/ui/status/network.js:916 subprojects/extensions-app/js/main.js:149
msgid "Cancel"
msgstr "Скасувати"
@ -469,7 +469,7 @@ msgstr "(наприклад, користувач або %s)"
msgid "Username"
msgstr "Користувач"
#: js/gdm/loginDialog.js:1253
#: js/gdm/loginDialog.js:1254
msgid "Login Window"
msgstr "Вікно входу"
@ -487,84 +487,73 @@ msgid "(or swipe finger)"
msgstr "(або проведіть пальцем)"
#. Translators: The name of the power-off action in search
#: js/misc/systemActions.js:91
#: js/misc/systemActions.js:93
msgctxt "search-result"
msgid "Power Off"
msgstr "Вимкнути"
#. Translators: A list of keywords that match the power-off action, separated by semicolons
#: js/misc/systemActions.js:94
msgid "power off;shutdown;halt;stop"
msgstr "вимкнути;перезавантажити;зупинити;power off;shutdown;halt;stop"
#. Translators: The name of the restart action in search
#: js/misc/systemActions.js:99
msgctxt "search-result"
msgid "Restart"
msgstr "Перезапустити"
#. Translators: A list of keywords that match the restart action, separated by semicolons
#: js/misc/systemActions.js:102
msgid "reboot;restart;"
msgstr "reboot;restart;перезавантаження;перезапуск;"
#: js/misc/systemActions.js:96
msgid "power off;shutdown;reboot;restart;halt;stop"
msgstr "вимкнути;перезавантажити;power off;shutdown;reboot;restart;halt;stop"
#. Translators: The name of the lock screen action in search
#: js/misc/systemActions.js:107
#: js/misc/systemActions.js:101
msgctxt "search-result"
msgid "Lock Screen"
msgstr "Заблокувати екран"
#. Translators: A list of keywords that match the lock screen action, separated by semicolons
#: js/misc/systemActions.js:110
#: js/misc/systemActions.js:104
msgid "lock screen"
msgstr "заблокувати екран;lock screen"
#. Translators: The name of the logout action in search
#: js/misc/systemActions.js:115
#: js/misc/systemActions.js:109
msgctxt "search-result"
msgid "Log Out"
msgstr "Вийти"
#. Translators: A list of keywords that match the logout action, separated by semicolons
#: js/misc/systemActions.js:118
#: js/misc/systemActions.js:112
msgid "logout;log out;sign off"
msgstr "вийти;завершити роботу;logout;log out;sign off"
#. Translators: The name of the suspend action in search
#: js/misc/systemActions.js:123
#: js/misc/systemActions.js:117
msgctxt "search-result"
msgid "Suspend"
msgstr "Призупинити"
#. Translators: A list of keywords that match the suspend action, separated by semicolons
#: js/misc/systemActions.js:126
#: js/misc/systemActions.js:120
msgid "suspend;sleep"
msgstr "призупинити;сон;suspend;sleep"
#. Translators: The name of the switch user action in search
#: js/misc/systemActions.js:131
#: js/misc/systemActions.js:125
msgctxt "search-result"
msgid "Switch User"
msgstr "Змінити користувача"
#. Translators: A list of keywords that match the switch user action, separated by semicolons
#: js/misc/systemActions.js:134
#: js/misc/systemActions.js:128
msgid "switch user"
msgstr "змінити користувача;перемкнути;switch user"
#. Translators: A list of keywords that match the lock orientation action, separated by semicolons
#: js/misc/systemActions.js:141
#: js/misc/systemActions.js:135
msgid "lock orientation;unlock orientation;screen;rotation"
msgstr ""
"заблокувати орієнтацію;розблокувати орієнтацію;екран;обертання;lock "
"orientation;unlock orientation;screen;rotation"
#: js/misc/systemActions.js:266
#: js/misc/systemActions.js:255
msgctxt "search-result"
msgid "Unlock Screen Rotation"
msgstr "Розблокувати обертання екрана"
#: js/misc/systemActions.js:267
#: js/misc/systemActions.js:256
msgctxt "search-result"
msgid "Lock Screen Rotation"
msgstr "Заблокувати обертання екрана"
@ -746,31 +735,31 @@ msgid "Unnamed Folder"
msgstr "Неназвана тека"
#. Translators: This is the heading of a list of open windows
#: js/ui/appDisplay.js:2762 js/ui/panel.js:75
#: js/ui/appDisplay.js:2767 js/ui/panel.js:75
msgid "Open Windows"
msgstr "Відкрити вікна"
#: js/ui/appDisplay.js:2781 js/ui/panel.js:82
#: js/ui/appDisplay.js:2786 js/ui/panel.js:82
msgid "New Window"
msgstr "Нове вікно"
#: js/ui/appDisplay.js:2797
#: js/ui/appDisplay.js:2802
msgid "Launch using Integrated Graphics Card"
msgstr "Запустити через інтегровану графічну плату"
#: js/ui/appDisplay.js:2798
#: js/ui/appDisplay.js:2803
msgid "Launch using Discrete Graphics Card"
msgstr "Запустити через дискретну графічну плату"
#: js/ui/appDisplay.js:2826 js/ui/dash.js:239
#: js/ui/appDisplay.js:2831 js/ui/dash.js:239
msgid "Remove from Favorites"
msgstr "Вилучити з улюбленого"
#: js/ui/appDisplay.js:2832
#: js/ui/appDisplay.js:2837
msgid "Add to Favorites"
msgstr "Додати до улюбленого"
#: js/ui/appDisplay.js:2842 js/ui/panel.js:93
#: js/ui/appDisplay.js:2847 js/ui/panel.js:93
msgid "Show Details"
msgstr "Показати подробиці"
@ -969,8 +958,8 @@ msgid ""
msgstr ""
"Також можете під'єднатися, натиснувши кнопку «WPS» на вашому маршрутизаторі."
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:252
#: js/ui/status/network.js:343 js/ui/status/network.js:943
#: js/ui/components/networkAgent.js:104 js/ui/status/network.js:227
#: js/ui/status/network.js:318 js/ui/status/network.js:919
msgid "Connect"
msgstr "З'єднатись"
@ -1033,7 +1022,7 @@ msgstr "Пін-код"
msgid "A password is required to connect to “%s”."
msgstr "Пароль потрібен для з'єднання з «%s»."
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1718
#: js/ui/components/networkAgent.js:669 js/ui/status/network.js:1694
msgid "Network Manager"
msgstr "Керування мережею"
@ -1159,18 +1148,18 @@ msgstr "Погода"
msgid "Select weather location…"
msgstr "Виберіть місцевість для погоди…"
#: js/ui/endSessionDialog.js:39
#: js/ui/endSessionDialog.js:37
#, javascript-format
msgctxt "title"
msgid "Log Out %s"
msgstr "Завершити сеанс %s"
#: js/ui/endSessionDialog.js:40
#: js/ui/endSessionDialog.js:38
msgctxt "title"
msgid "Log Out"
msgstr "Завершити сеанс"
#: js/ui/endSessionDialog.js:43
#: js/ui/endSessionDialog.js:40
#, javascript-format
msgid "%s will be logged out automatically in %d second."
msgid_plural "%s will be logged out automatically in %d seconds."
@ -1179,7 +1168,7 @@ msgstr[1] "%s вийде автоматично через %d секунди."
msgstr[2] "%s вийде автоматично через %d секунд."
msgstr[3] "%s вийде автоматично через %d секунду."
#: js/ui/endSessionDialog.js:49
#: js/ui/endSessionDialog.js:45
#, javascript-format
msgid "You will be logged out automatically in %d second."
msgid_plural "You will be logged out automatically in %d seconds."
@ -1188,22 +1177,22 @@ msgstr[1] "Вихід автоматично через %d секунди."
msgstr[2] "Вихід автоматично через %d секунд."
msgstr[3] "Вихід автоматично через %d секунду."
#: js/ui/endSessionDialog.js:56
#: js/ui/endSessionDialog.js:51
msgctxt "button"
msgid "Log Out"
msgstr "Вийти"
#: js/ui/endSessionDialog.js:62
#: js/ui/endSessionDialog.js:56
msgctxt "title"
msgid "Power Off"
msgstr "Вимкнути"
#: js/ui/endSessionDialog.js:63
#: js/ui/endSessionDialog.js:57
msgctxt "title"
msgid "Install Updates & Power Off"
msgstr "Установити оновлення і вимкнути"
#: js/ui/endSessionDialog.js:66
#: js/ui/endSessionDialog.js:59
#, javascript-format
msgid "The system will power off automatically in %d second."
msgid_plural "The system will power off automatically in %d seconds."
@ -1212,27 +1201,27 @@ msgstr[1] "Система автоматично вимкнеться через
msgstr[2] "Система автоматично вимкнеться через %d секунд."
msgstr[3] "Система автоматично вимкнеться через %d секунду."
#: js/ui/endSessionDialog.js:70 js/ui/endSessionDialog.js:89
#: js/ui/endSessionDialog.js:63
msgctxt "checkbox"
msgid "Install pending software updates"
msgstr "Установити оновлення, які в черзі"
#: js/ui/endSessionDialog.js:74
#: js/ui/endSessionDialog.js:66 js/ui/endSessionDialog.js:82
msgctxt "button"
msgid "Restart"
msgstr "Перезапустити"
#: js/ui/endSessionDialog.js:68
msgctxt "button"
msgid "Power Off"
msgstr "Вимкнути"
#: js/ui/endSessionDialog.js:81
#: js/ui/endSessionDialog.js:74
msgctxt "title"
msgid "Restart"
msgstr "Перезапустити"
#: js/ui/endSessionDialog.js:82
msgctxt "title"
msgid "Install Updates & Restart"
msgstr "Установити оновлення і перезапустити"
#: js/ui/endSessionDialog.js:85
#: js/ui/endSessionDialog.js:76
#, javascript-format
msgid "The system will restart automatically in %d second."
msgid_plural "The system will restart automatically in %d seconds."
@ -1241,17 +1230,12 @@ msgstr[1] "Система автоматично перезапуститься
msgstr[2] "Система автоматично перезапуститься через %d секунд."
msgstr[3] "Система автоматично перезапуститься через %d секунду."
#: js/ui/endSessionDialog.js:93
msgctxt "button"
msgid "Restart"
msgstr "Перезапустити"
#: js/ui/endSessionDialog.js:101
#: js/ui/endSessionDialog.js:89
msgctxt "title"
msgid "Restart & Install Updates"
msgstr "Перезапустити і встановити оновлення"
#: js/ui/endSessionDialog.js:104
#: js/ui/endSessionDialog.js:91
#, javascript-format
msgid "The system will automatically restart and install updates in %d second."
msgid_plural ""
@ -1265,22 +1249,22 @@ msgstr[2] ""
msgstr[3] ""
"Система автоматично перезапуститься та встановить оновлення через %d секунду."
#: js/ui/endSessionDialog.js:111 js/ui/endSessionDialog.js:132
#: js/ui/endSessionDialog.js:97 js/ui/endSessionDialog.js:116
msgctxt "button"
msgid "Restart &amp; Install"
msgstr "Перезапустити та встановити"
#: js/ui/endSessionDialog.js:113
#: js/ui/endSessionDialog.js:98
msgctxt "button"
msgid "Install &amp; Power Off"
msgstr "Установити та вимкнути"
#: js/ui/endSessionDialog.js:114
#: js/ui/endSessionDialog.js:99
msgctxt "checkbox"
msgid "Power off after updates are installed"
msgstr "Вимкнути після встановлення оновлень"
#: js/ui/endSessionDialog.js:121
#: js/ui/endSessionDialog.js:106
msgctxt "title"
msgid "Restart & Install Upgrade"
msgstr "Перезапустити і встановити оновлення"
@ -1288,7 +1272,7 @@ msgstr "Перезапустити і встановити оновлення"
#. Translators: This is the text displayed for system upgrades in the
#. shut down dialog. First %s gets replaced with the distro name and
#. second %s with the distro version to upgrade to
#: js/ui/endSessionDialog.js:126
#: js/ui/endSessionDialog.js:111
#, javascript-format
msgid ""
"%s %s will be installed after restart. Upgrade installation can take a long "
@ -1298,34 +1282,28 @@ msgstr ""
"переконайтесь, що ви зробили резервні копії та комп'ютер під'єднано до "
"живлення."
#: js/ui/endSessionDialog.js:284
#| msgid "Running on battery power: Please plug in before installing updates."
msgid "Low battery power: please plug in before installing updates."
#: js/ui/endSessionDialog.js:259
msgid "Running on battery power: Please plug in before installing updates."
msgstr ""
"Низький рівень заряду батареї: під'єднайте до живлення перед установленням"
" оновлень."
"Працює від заряду батареї: під'єднайте до живлення перед установленням "
"оновлень."
#: js/ui/endSessionDialog.js:293
#: js/ui/endSessionDialog.js:268
msgid "Some applications are busy or have unsaved work"
msgstr "Деякі програми зайняті або мають незбережені дані"
#: js/ui/endSessionDialog.js:298
#: js/ui/endSessionDialog.js:273
msgid "Other users are logged in"
msgstr "Є інші користувачі з активним сеансом"
#: js/ui/endSessionDialog.js:467
msgctxt "button"
msgid "Boot Options"
msgstr "Параметри завантаження"
#. Translators: Remote here refers to a remote session, like a ssh login
#: js/ui/endSessionDialog.js:685
#: js/ui/endSessionDialog.js:583
#, javascript-format
msgid "%s (remote)"
msgstr "%s (віддалено)"
#. Translators: Console here refers to a tty like a VT console
#: js/ui/endSessionDialog.js:688
#: js/ui/endSessionDialog.js:586
#, javascript-format
msgid "%s (console)"
msgstr "%s (консоль)"
@ -1425,15 +1403,15 @@ msgid "Leave On"
msgstr "Залишити"
#: js/ui/kbdA11yDialog.js:55 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:1315
#: js/ui/status/network.js:1291
msgid "Turn On"
msgstr "Увімкнути"
#: js/ui/kbdA11yDialog.js:63 js/ui/status/bluetooth.js:156
#: js/ui/status/network.js:160 js/ui/status/network.js:344
#: js/ui/status/network.js:1315 js/ui/status/network.js:1427
#: js/ui/status/network.js:135 js/ui/status/network.js:319
#: js/ui/status/network.js:1291 js/ui/status/network.js:1403
#: js/ui/status/nightLight.js:41 js/ui/status/rfkill.js:81
#: js/ui/status/rfkill.js:110
#: js/ui/status/rfkill.js:108
msgid "Turn Off"
msgstr "Вимкнути"
@ -1494,11 +1472,11 @@ msgstr "Переглянути джерело"
msgid "Web Page"
msgstr "Веб-сторінка"
#: js/ui/main.js:294
#: js/ui/main.js:297
msgid "Logged in as a privileged user"
msgstr "Увійшов як наділений користувач"
#: js/ui/main.js:295
#: js/ui/main.js:298
msgid ""
"Running a session as a privileged user should be avoided for security "
"reasons. If possible, you should log in as a normal user."
@ -1506,11 +1484,11 @@ msgstr ""
"З міркувань безпеки слід уникати сеансів з наділеними правами. Користуйтесь "
"звичайним сеансом."
#: js/ui/main.js:334
#: js/ui/main.js:337
msgid "Screen Lock disabled"
msgstr "Блокування екрана вимкнено"
#: js/ui/main.js:335
#: js/ui/main.js:338
msgid "Screen Locking requires the GNOME display manager."
msgstr "Блокування екрана потребує керування входом GNOME."
@ -1603,7 +1581,7 @@ msgctxt "System menu in the top bar"
msgid "System"
msgstr "Система"
#: js/ui/panel.js:825
#: js/ui/panel.js:827
msgid "Top Bar"
msgstr "Верхня панель"
@ -1780,7 +1758,7 @@ msgstr "Більший текст"
msgid "Bluetooth"
msgstr "Bluetooth"
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:619
#: js/ui/status/bluetooth.js:49 js/ui/status/network.js:595
msgid "Bluetooth Settings"
msgstr "Параметри Bluetooth"
@ -1864,18 +1842,18 @@ msgstr ""
"Доступ до місця перебування можна змінити в будь-яку мить у параметрах "
"конфіденційності."
#: js/ui/status/network.js:71
#: js/ui/status/network.js:70
msgid "<unknown>"
msgstr "<невідомо>"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:449 js/ui/status/network.js:1344
#: js/ui/status/network.js:424 js/ui/status/network.js:1320
#, javascript-format
msgid "%s Off"
msgstr "%s вимкнено"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:452
#: js/ui/status/network.js:427
#, javascript-format
msgid "%s Connected"
msgstr "%s під'єднано"
@ -1883,164 +1861,164 @@ msgstr "%s під'єднано"
#. Translators: this is for network devices that are physically present but are not
#. under NetworkManager's control (and thus cannot be used in the menu);
#. %s is a network identifier
#: js/ui/status/network.js:457
#: js/ui/status/network.js:432
#, javascript-format
msgid "%s Unmanaged"
msgstr "%s нескеровано"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:460
#: js/ui/status/network.js:435
#, javascript-format
msgid "%s Disconnecting"
msgstr "%s від'єднується"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:467 js/ui/status/network.js:1336
#: js/ui/status/network.js:442 js/ui/status/network.js:1312
#, javascript-format
msgid "%s Connecting"
msgstr "%s під'єднується"
#. Translators: this is for network connections that require some kind of key or password; %s is a network identifier
#: js/ui/status/network.js:470
#: js/ui/status/network.js:445
#, javascript-format
msgid "%s Requires Authentication"
msgstr "%s вимагає засвідчення"
#. Translators: this is for devices that require some kind of firmware or kernel
#. module, which is missing; %s is a network identifier
#: js/ui/status/network.js:478
#: js/ui/status/network.js:453
#, javascript-format
msgid "Firmware Missing For %s"
msgstr "Бракує мікропрограми для %s"
#. Translators: this is for a network device that cannot be activated (for example it
#. is disabled by rfkill, or it has no coverage; %s is a network identifier
#: js/ui/status/network.js:482
#: js/ui/status/network.js:457
#, javascript-format
msgid "%s Unavailable"
msgstr "%s недоступний"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:485
#: js/ui/status/network.js:460
#, javascript-format
msgid "%s Connection Failed"
msgstr "%s під'єднано невдало"
#: js/ui/status/network.js:497
#: js/ui/status/network.js:472
msgid "Wired Settings"
msgstr "Параметри мережі"
#: js/ui/status/network.js:540
#: js/ui/status/network.js:515
msgid "Mobile Broadband Settings"
msgstr "параметри мобільної радіомережі"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:586 js/ui/status/network.js:1341
#: js/ui/status/network.js:562 js/ui/status/network.js:1317
#, javascript-format
msgid "%s Hardware Disabled"
msgstr "%s вимкнено апаратно"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode); %s is a network identifier
#: js/ui/status/network.js:590
#: js/ui/status/network.js:566
#, javascript-format
msgid "%s Disabled"
msgstr "%s вимкнено"
#: js/ui/status/network.js:631
#: js/ui/status/network.js:607
msgid "Connect to Internet"
msgstr "Під'єднатись до інтернету"
#: js/ui/status/network.js:835
#: js/ui/status/network.js:811
msgid "Airplane Mode is On"
msgstr "Режим «у літаку» ввімкнено"
#: js/ui/status/network.js:836
#: js/ui/status/network.js:812
msgid "Wi-Fi is disabled when airplane mode is on."
msgstr "Wi-Fi вимкнено, коли режим «у літаку» ввімкнено."
#: js/ui/status/network.js:837
#: js/ui/status/network.js:813
msgid "Turn Off Airplane Mode"
msgstr "Вимкнути режим «у літаку»"
#: js/ui/status/network.js:846
#: js/ui/status/network.js:822
msgid "Wi-Fi is Off"
msgstr "Wi-Fi вимкнено"
#: js/ui/status/network.js:847
#: js/ui/status/network.js:823
msgid "Wi-Fi needs to be turned on in order to connect to a network."
msgstr "Wi-Fi потрібно ввімкнути, щоб з'єднатись з мережею."
#: js/ui/status/network.js:848
#: js/ui/status/network.js:824
msgid "Turn On Wi-Fi"
msgstr "Увімкнути Wi-Fi"
#: js/ui/status/network.js:873
#: js/ui/status/network.js:849
msgid "Wi-Fi Networks"
msgstr "Мережі Wi-Fi"
#: js/ui/status/network.js:875
#: js/ui/status/network.js:851
msgid "Select a network"
msgstr "Вибрати мережу"
#: js/ui/status/network.js:907
#: js/ui/status/network.js:883
msgid "No Networks"
msgstr "Немає мереж"
#: js/ui/status/network.js:928 js/ui/status/rfkill.js:108
#: js/ui/status/network.js:904 js/ui/status/rfkill.js:106
msgid "Use hardware switch to turn off"
msgstr "Натисніть апаратну кнопку, щоб вимкнути"
#: js/ui/status/network.js:1205
#: js/ui/status/network.js:1181
msgid "Select Network"
msgstr "Виберіть мережу"
#: js/ui/status/network.js:1211
#: js/ui/status/network.js:1187
msgid "Wi-Fi Settings"
msgstr "Параметри Wi-Fi"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1332
#: js/ui/status/network.js:1308
#, javascript-format
msgid "%s Hotspot Active"
msgstr "%s точка доступу"
#. Translators: %s is a network identifier
#: js/ui/status/network.js:1347
#: js/ui/status/network.js:1323
#, javascript-format
msgid "%s Not Connected"
msgstr "%s не під'єднано"
#: js/ui/status/network.js:1444
#: js/ui/status/network.js:1420
msgid "connecting…"
msgstr "З'єднання…"
#. Translators: this is for network connections that require some kind of key or password
#: js/ui/status/network.js:1447
#: js/ui/status/network.js:1423
msgid "authentication required"
msgstr "Потрібна аутентифікація"
#: js/ui/status/network.js:1449
#: js/ui/status/network.js:1425
msgid "connection failed"
msgstr "не вдалось з'єднатись"
#: js/ui/status/network.js:1500
#: js/ui/status/network.js:1476
msgid "VPN Settings"
msgstr "Параметри VPN"
#: js/ui/status/network.js:1517
#: js/ui/status/network.js:1493
msgid "VPN"
msgstr "VPN"
#: js/ui/status/network.js:1527
#: js/ui/status/network.js:1503
msgid "VPN Off"
msgstr "VPN вимкнено"
#: js/ui/status/network.js:1588 js/ui/status/rfkill.js:84
#: js/ui/status/network.js:1564 js/ui/status/rfkill.js:84
msgid "Network Settings"
msgstr "Налаштування мережі"
#: js/ui/status/network.js:1617
#: js/ui/status/network.js:1593
#, javascript-format
msgid "%s Wired Connection"
msgid_plural "%s Wired Connections"
@ -2049,7 +2027,7 @@ msgstr[1] "%s з'єднання через дріт"
msgstr[2] "%s з'єднань через дріт"
msgstr[3] "%s з'єднання через дріт"
#: js/ui/status/network.js:1621
#: js/ui/status/network.js:1597
#, javascript-format
msgid "%s Wi-Fi Connection"
msgid_plural "%s Wi-Fi Connections"
@ -2058,7 +2036,7 @@ msgstr[1] "%s з'єднання через Wi-Fi"
msgstr[2] "%s з'єднань через Wi-Fi"
msgstr[3] "%s з'єднання через Wi-Fi"
#: js/ui/status/network.js:1625
#: js/ui/status/network.js:1601
#, javascript-format
msgid "%s Modem Connection"
msgid_plural "%s Modem Connections"
@ -2067,11 +2045,11 @@ msgstr[1] "%s з'єднання через модем"
msgstr[2] "%s з'єднань через модем"
msgstr[3] "%s з'єднання через модем"
#: js/ui/status/network.js:1759
#: js/ui/status/network.js:1735
msgid "Connection failed"
msgstr "Не вдалось з'єднатись"
#: js/ui/status/network.js:1760
#: js/ui/status/network.js:1736
msgid "Activation of network connection failed"
msgstr "Не вдалось увімкнути мережеве з'єднання"
@ -2126,11 +2104,11 @@ msgstr "Зарядиться через %d%02d (%d%%)"
msgid "%d%%"
msgstr "%d%%"
#: js/ui/status/remoteAccess.js:45
#: js/ui/status/remoteAccess.js:43
msgid "Screen is Being Shared"
msgstr "Екран у спільному доступі"
#: js/ui/status/remoteAccess.js:47
#: js/ui/status/remoteAccess.js:45
msgid "Turn off"
msgstr "Вимкнути"
@ -2141,34 +2119,30 @@ msgstr "Вимкнути"
msgid "Airplane Mode On"
msgstr "Режим «у літаку» ввімкнено"
#: js/ui/status/system.js:104
#: js/ui/status/system.js:102
msgid "Lock"
msgstr "Заблокувати"
#: js/ui/status/system.js:116
#: js/ui/status/system.js:115
msgid "Power Off / Log Out"
msgstr "Вимкнути / Вийти"
#: js/ui/status/system.js:119
msgid "Suspend"
msgstr "Призупинити"
#: js/ui/status/system.js:130
msgid "Restart…"
msgstr "Перезапуск…"
#: js/ui/status/system.js:141
msgid "Power Off…"
msgstr "Вимкнути…"
#: js/ui/status/system.js:154
#: js/ui/status/system.js:118
msgid "Log Out"
msgstr "Вийти"
#: js/ui/status/system.js:165
#: js/ui/status/system.js:130
msgid "Switch User…"
msgstr "Змінити користувача…"
#: js/ui/status/system.js:144
msgid "Suspend"
msgstr "Призупинити"
#: js/ui/status/system.js:156
msgid "Power Off…"
msgstr "Вимкнути…"
#: js/ui/status/thunderbolt.js:263
msgid "Thunderbolt"
msgstr "Thunderbolt"
@ -2275,22 +2249,22 @@ msgid "“%s” is ready"
msgstr "«%s» готовий"
#. Translators: This string should be shorter than 30 characters
#: js/ui/windowManager.js:60
#: js/ui/windowManager.js:55
msgid "Keep these display settings?"
msgstr "Зберегти ці параметри екрана?"
#. Translators: this and the following message should be limited in length,
#. to avoid ellipsizing the labels.
#.
#: js/ui/windowManager.js:69
#: js/ui/windowManager.js:64
msgid "Revert Settings"
msgstr "Повернути параметри"
#: js/ui/windowManager.js:72
#: js/ui/windowManager.js:67
msgid "Keep Changes"
msgstr "Зберегти зміни"
#: js/ui/windowManager.js:91
#: js/ui/windowManager.js:86
#, javascript-format
msgid "Settings changes will revert in %d second"
msgid_plural "Settings changes will revert in %d seconds"
@ -2301,7 +2275,7 @@ msgstr[3] "Зміни параметрів буде повернуто чере
#. Translators: This represents the size of a window. The first number is
#. * the width of the window and the second is the height.
#: js/ui/windowManager.js:551
#: js/ui/windowManager.js:546
#, javascript-format
msgid "%d × %d"
msgstr "%d × %d"

View File

@ -51,8 +51,6 @@ def start_shell(perf_output=None):
args.append('--nested')
else:
args.append('--display-server')
elif options.x11:
args.append('--x11')
return subprocess.Popen(args, env=env)
@ -297,8 +295,6 @@ parser.add_option("-w", "--wayland", action="store_true",
help="Run as a Wayland compositor")
parser.add_option("-n", "--nested", action="store_true",
help="Run as a Wayland nested compositor")
parser.add_option("-x", "--x11", action="store_true",
help="Run as an X11 compositor")
options, args = parser.parse_args()

View File

@ -1361,15 +1361,9 @@ shell_global_get_pointer (ShellGlobal *global,
{
ClutterModifierType raw_mods;
MetaCursorTracker *tracker;
graphene_point_t point;
tracker = meta_cursor_tracker_get_for_display (global->meta_display);
meta_cursor_tracker_get_pointer (tracker, &point, &raw_mods);
if (x)
*x = point.x;
if (y)
*y = point.y;
meta_cursor_tracker_get_pointer (tracker, x, y, &raw_mods);
*mods = raw_mods & CLUTTER_MODIFIER_MASK;
}

View File

@ -12,12 +12,6 @@
#include "shell-screenshot.h"
#include "shell-util.h"
typedef enum _ShellScreenshotFlag
{
SHELL_SCREENSHOT_FLAG_NONE,
SHELL_SCREENSHOT_FLAG_INCLUDE_CURSOR,
} ShellScreenshotFlag;
typedef struct _ShellScreenshotPrivate ShellScreenshotPrivate;
struct _ShellScreenshot
@ -38,6 +32,7 @@ struct _ShellScreenshotPrivate
cairo_surface_t *image;
cairo_rectangle_int_t screenshot_area;
gboolean include_cursor;
gboolean include_frame;
};
@ -50,6 +45,10 @@ typedef enum
G_DEFINE_TYPE_WITH_PRIVATE (ShellScreenshot, shell_screenshot, G_TYPE_OBJECT);
static void
grab_screenshot (ClutterActor *stage,
GTask *result);
static void
shell_screenshot_class_init (ShellScreenshotClass *screenshot_class)
{
@ -78,6 +77,8 @@ on_screenshot_written (GObject *source,
g_clear_pointer (&priv->image, cairo_surface_destroy);
g_clear_object (&priv->stream);
g_clear_pointer (&priv->datetime, g_date_time_unref);
meta_enable_unredirect_for_display (shell_global_get_display (priv->global));
}
static void
@ -120,49 +121,63 @@ write_screenshot_thread (GTask *result,
}
static void
do_grab_screenshot (ShellScreenshot *screenshot,
int x,
int y,
int width,
int height,
ShellScreenshotFlag flags)
do_grab_screenshot (ShellScreenshot *screenshot,
ClutterStage *stage,
int x,
int y,
int width,
int height)
{
ShellScreenshotPrivate *priv = screenshot->priv;
ClutterStage *stage = shell_global_get_stage (priv->global);
cairo_rectangle_int_t screenshot_rect = { x, y, width, height };
int image_width;
int image_height;
float scale;
cairo_surface_t *image;
ClutterPaintFlag paint_flags = CLUTTER_PAINT_FLAG_NONE;
g_autoptr (GError) error = NULL;
ClutterCapture *captures;
int n_captures;
int i;
clutter_stage_get_capture_final_size (stage, &screenshot_rect,
&image_width,
&image_height,
&scale);
image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
image_width, image_height);
if (!clutter_stage_capture (stage, FALSE,
&screenshot_rect,
&captures,
&n_captures))
return;
if (flags & SHELL_SCREENSHOT_FLAG_INCLUDE_CURSOR)
paint_flags |= CLUTTER_PAINT_FLAG_FORCE_CURSORS;
if (n_captures == 1)
priv->image = cairo_surface_reference (captures[0].image);
else
paint_flags |= CLUTTER_PAINT_FLAG_NO_CURSORS;
if (!clutter_stage_paint_to_buffer (stage, &screenshot_rect, scale,
cairo_image_surface_get_data (image),
cairo_image_surface_get_stride (image),
CLUTTER_CAIRO_FORMAT_ARGB32,
paint_flags,
&error))
{
cairo_surface_destroy (image);
g_warning ("Failed to take screenshot: %s", error->message);
return;
float target_scale;
clutter_stage_get_capture_final_size (stage, &screenshot_rect,
&width, &height, &target_scale);
priv->image = shell_util_composite_capture_images (captures,
n_captures,
x, y,
width, height,
target_scale);
}
priv->image = image;
priv->datetime = g_date_time_new_now_local ();
for (i = 0; i < n_captures; i++)
cairo_surface_destroy (captures[i].image);
g_free (captures);
}
static gboolean
should_draw_cursor_image (ShellScreenshotMode mode)
{
if (mode == SHELL_SCREENSHOT_WINDOW || !meta_is_wayland_compositor ())
{
StSettings *settings = st_settings_get ();
gboolean magnifier_active = FALSE;
g_object_get (settings, "magnifier-active", &magnifier_active, NULL);
if (!magnifier_active)
return TRUE;
}
return FALSE;
}
static void
@ -181,7 +196,6 @@ draw_cursor_image (cairo_surface_t *surface,
int x, y;
int xhot, yhot;
double xscale, yscale;
graphene_point_t point;
display = shell_global_get_display (shell_global_get ());
tracker = meta_cursor_tracker_get_for_display (display);
@ -191,11 +205,9 @@ draw_cursor_image (cairo_surface_t *surface,
return;
screenshot_region = cairo_region_create_rectangle (&area);
meta_cursor_tracker_get_pointer (tracker, &point, NULL);
x = point.x;
y = point.y;
meta_cursor_tracker_get_pointer (tracker, &x, &y, NULL);
if (!cairo_region_contains_point (screenshot_region, point.x, point.y))
if (!cairo_region_contains_point (screenshot_region, x, y))
{
cairo_region_destroy (screenshot_region);
return;
@ -244,37 +256,116 @@ draw_cursor_image (cairo_surface_t *surface,
}
static void
grab_screenshot (ShellScreenshot *screenshot,
ShellScreenshotFlag flags,
GTask *result)
on_paint (ClutterActor *actor,
ClutterPaintContext *paint_context,
GTask *result)
{
grab_screenshot (actor, result);
}
static void
on_actors_painted (ClutterActor *actor,
GTask *result)
{
grab_screenshot (actor, result);
}
static void
grab_screenshot (ClutterActor *stage,
GTask *result)
{
ShellScreenshotPrivate *priv = screenshot->priv;
MetaDisplay *display;
int width, height;
ShellScreenshot *screenshot = g_task_get_source_object (result);
ShellScreenshotPrivate *priv = screenshot->priv;
GTask *task;
display = shell_global_get_display (priv->global);
meta_display_get_size (display, &width, &height);
do_grab_screenshot (screenshot,
0, 0, width, height,
flags);
do_grab_screenshot (screenshot, CLUTTER_STAGE (stage), 0, 0, width, height);
if (meta_display_get_n_monitors (display) > 1)
{
cairo_region_t *screen_region = cairo_region_create ();
cairo_region_t *stage_region;
MetaRectangle monitor_rect;
cairo_rectangle_int_t stage_rect;
int i;
cairo_t *cr;
for (i = meta_display_get_n_monitors (display) - 1; i >= 0; i--)
{
meta_display_get_monitor_geometry (display, i, &monitor_rect);
cairo_region_union_rectangle (screen_region,
(const cairo_rectangle_int_t *) &monitor_rect);
}
stage_rect.x = 0;
stage_rect.y = 0;
stage_rect.width = width;
stage_rect.height = height;
stage_region = cairo_region_create_rectangle ((const cairo_rectangle_int_t *) &stage_rect);
cairo_region_xor (stage_region, screen_region);
cairo_region_destroy (screen_region);
cr = cairo_create (priv->image);
for (i = 0; i < cairo_region_num_rectangles (stage_region); i++)
{
cairo_rectangle_int_t rect;
cairo_region_get_rectangle (stage_region, i, &rect);
cairo_rectangle (cr, (double) rect.x, (double) rect.y, (double) rect.width, (double) rect.height);
cairo_fill (cr);
}
cairo_destroy (cr);
cairo_region_destroy (stage_region);
}
priv->screenshot_area.x = 0;
priv->screenshot_area.y = 0;
priv->screenshot_area.width = width;
priv->screenshot_area.height = height;
if (priv->include_cursor)
draw_cursor_image (priv->image, priv->screenshot_area);
g_signal_handlers_disconnect_by_func (stage, on_paint, result);
g_signal_handlers_disconnect_by_func (stage, on_actors_painted, result);
task = g_task_new (screenshot, NULL, on_screenshot_written, result);
g_task_run_in_thread (task, write_screenshot_thread);
g_object_unref (task);
}
static void
grab_window_screenshot (ShellScreenshot *screenshot,
ShellScreenshotFlag flags,
GTask *result)
grab_area_screenshot (ClutterActor *stage,
GTask *result)
{
ShellScreenshot *screenshot = g_task_get_source_object (result);
ShellScreenshotPrivate *priv = screenshot->priv;
GTask *task;
do_grab_screenshot (screenshot,
CLUTTER_STAGE (stage),
priv->screenshot_area.x,
priv->screenshot_area.y,
priv->screenshot_area.width,
priv->screenshot_area.height);
g_signal_handlers_disconnect_by_func (stage, grab_area_screenshot, result);
task = g_task_new (screenshot, NULL, on_screenshot_written, result);
g_task_run_in_thread (task, write_screenshot_thread);
g_object_unref (task);
}
static void
grab_window_screenshot (ClutterActor *stage,
GTask *result)
{
ShellScreenshot *screenshot = g_task_get_source_object (result);
ShellScreenshotPrivate *priv = screenshot->priv;
GTask *task;
MetaDisplay *display = shell_global_get_display (priv->global);
@ -297,7 +388,7 @@ grab_window_screenshot (ShellScreenshot *screenshot,
NULL);
priv->datetime = g_date_time_new_now_local ();
if (flags & SHELL_SCREENSHOT_FLAG_INCLUDE_CURSOR)
if (priv->include_cursor)
{
if (meta_window_get_client_type (window) == META_WINDOW_CLIENT_TYPE_WAYLAND)
{
@ -310,11 +401,33 @@ grab_window_screenshot (ShellScreenshot *screenshot,
draw_cursor_image (priv->image, priv->screenshot_area);
}
g_signal_handlers_disconnect_by_func (stage, grab_window_screenshot, result);
task = g_task_new (screenshot, NULL, on_screenshot_written, result);
g_task_run_in_thread (task, write_screenshot_thread);
g_object_unref (task);
}
static void
grab_pixel (ClutterActor *stage,
GTask *result)
{
ShellScreenshot *screenshot = g_task_get_source_object (result);
ShellScreenshotPrivate *priv = screenshot->priv;
do_grab_screenshot (screenshot,
CLUTTER_STAGE (stage),
priv->screenshot_area.x,
priv->screenshot_area.y,
1,
1);
meta_enable_unredirect_for_display (shell_global_get_display (priv->global));
g_signal_handlers_disconnect_by_func (stage, grab_pixel, result);
g_task_return_boolean (result, TRUE);
g_object_unref (result);
}
static gboolean
finish_screenshot (ShellScreenshot *screenshot,
GAsyncResult *result,
@ -352,9 +465,10 @@ shell_screenshot_screenshot (ShellScreenshot *screenshot,
GAsyncReadyCallback callback,
gpointer user_data)
{
ClutterActor *stage;
ShellScreenshotPrivate *priv;
gboolean use_paint_signal = FALSE;
GTask *result;
ShellScreenshotFlag flags;
g_return_if_fail (SHELL_IS_SCREENSHOT (screenshot));
g_return_if_fail (G_IS_OUTPUT_STREAM (stream));
@ -378,12 +492,34 @@ shell_screenshot_screenshot (ShellScreenshot *screenshot,
g_task_set_source_tag (result, shell_screenshot_screenshot);
priv->stream = g_object_ref (stream);
priv->include_cursor = FALSE;
stage = CLUTTER_ACTOR (shell_global_get_stage (priv->global));
meta_disable_unredirect_for_display (shell_global_get_display (priv->global));
flags = SHELL_SCREENSHOT_FLAG_NONE;
if (include_cursor)
flags |= SHELL_SCREENSHOT_FLAG_INCLUDE_CURSOR;
{
if (should_draw_cursor_image (SHELL_SCREENSHOT_SCREEN))
priv->include_cursor = TRUE;
else
use_paint_signal = TRUE;
}
grab_screenshot (screenshot, flags, result);
if (use_paint_signal)
{
g_signal_connect_after (stage, "paint",
G_CALLBACK (on_paint),
result);
}
else
{
g_signal_connect_after (stage, "actors-painted",
G_CALLBACK (on_actors_painted),
result);
}
clutter_actor_queue_redraw (stage);
}
/**
@ -439,9 +575,9 @@ shell_screenshot_screenshot_area (ShellScreenshot *screenshot,
GAsyncReadyCallback callback,
gpointer user_data)
{
ClutterActor *stage;
ShellScreenshotPrivate *priv;
GTask *result;
g_autoptr (GTask) task = NULL;
g_return_if_fail (SHELL_IS_SCREENSHOT (screenshot));
g_return_if_fail (G_IS_OUTPUT_STREAM (stream));
@ -470,15 +606,13 @@ shell_screenshot_screenshot_area (ShellScreenshot *screenshot,
priv->screenshot_area.width = width;
priv->screenshot_area.height = height;
do_grab_screenshot (screenshot,
priv->screenshot_area.x,
priv->screenshot_area.y,
priv->screenshot_area.width,
priv->screenshot_area.height,
SHELL_SCREENSHOT_FLAG_NONE);
stage = CLUTTER_ACTOR (shell_global_get_stage (priv->global));
task = g_task_new (screenshot, NULL, on_screenshot_written, result);
g_task_run_in_thread (task, write_screenshot_thread);
meta_disable_unredirect_for_display (shell_global_get_display (shell_global_get ()));
g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_area_screenshot), result);
clutter_actor_queue_redraw (stage);
}
/**
@ -532,6 +666,7 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot,
{
ShellScreenshotPrivate *priv;
MetaDisplay *display;
ClutterActor *stage;
MetaWindow *window;
GTask *result;
@ -560,8 +695,16 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot,
priv->stream = g_object_ref (stream);
priv->include_frame = include_frame;
priv->include_cursor = include_cursor &&
should_draw_cursor_image (SHELL_SCREENSHOT_WINDOW);
grab_window_screenshot (screenshot, include_cursor, result);
stage = CLUTTER_ACTOR (shell_global_get_stage (priv->global));
meta_disable_unredirect_for_display (shell_global_get_display (shell_global_get ()));
g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_window_screenshot), result);
clutter_actor_queue_redraw (stage);
}
/**
@ -610,7 +753,9 @@ shell_screenshot_pick_color (ShellScreenshot *screenshot,
gpointer user_data)
{
ShellScreenshotPrivate *priv;
g_autoptr (GTask) result = NULL;
MetaDisplay *display;
ClutterActor *stage;
GTask *result;
g_return_if_fail (SHELL_IS_SCREENSHOT (screenshot));
@ -624,14 +769,14 @@ shell_screenshot_pick_color (ShellScreenshot *screenshot,
priv->screenshot_area.width = 1;
priv->screenshot_area.height = 1;
do_grab_screenshot (screenshot,
priv->screenshot_area.x,
priv->screenshot_area.y,
1,
1,
SHELL_SCREENSHOT_FLAG_NONE);
display = shell_global_get_display (priv->global);
stage = CLUTTER_ACTOR (shell_global_get_stage (priv->global));
g_task_return_boolean (result, TRUE);
meta_disable_unredirect_for_display (display);
g_signal_connect_after (stage, "actors-painted", G_CALLBACK (grab_pixel), result);
clutter_actor_queue_redraw (stage);
}
#if G_BYTE_ORDER == G_LITTLE_ENDIAN

View File

@ -136,8 +136,6 @@ struct _CRParserPriv {
#define CHARS_TAB_SIZE 12
#define RECURSIVE_CALLERS_LIMIT 100
/**
* IS_NUM:
*@a_char: the char to test.
@ -345,11 +343,9 @@ static enum CRStatus cr_parser_parse_selector_core (CRParser * a_this);
static enum CRStatus cr_parser_parse_declaration_core (CRParser * a_this);
static enum CRStatus cr_parser_parse_any_core (CRParser * a_this,
guint n_calls);
static enum CRStatus cr_parser_parse_any_core (CRParser * a_this);
static enum CRStatus cr_parser_parse_block_core (CRParser * a_this,
guint n_calls);
static enum CRStatus cr_parser_parse_block_core (CRParser * a_this);
static enum CRStatus cr_parser_parse_value_core (CRParser * a_this);
@ -787,7 +783,7 @@ cr_parser_parse_atrule_core (CRParser * a_this)
cr_parser_try_to_skip_spaces_and_comments (a_this);
do {
status = cr_parser_parse_any_core (a_this, 0);
status = cr_parser_parse_any_core (a_this);
} while (status == CR_OK);
status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr,
@ -798,7 +794,7 @@ cr_parser_parse_atrule_core (CRParser * a_this)
cr_tknzr_unget_token (PRIVATE (a_this)->tknzr,
token);
token = NULL;
status = cr_parser_parse_block_core (a_this, 0);
status = cr_parser_parse_block_core (a_this);
CHECK_PARSING_STATUS (status,
FALSE);
goto done;
@ -933,11 +929,11 @@ cr_parser_parse_selector_core (CRParser * a_this)
RECORD_INITIAL_POS (a_this, &init_pos);
status = cr_parser_parse_any_core (a_this, 0);
status = cr_parser_parse_any_core (a_this);
CHECK_PARSING_STATUS (status, FALSE);
do {
status = cr_parser_parse_any_core (a_this, 0);
status = cr_parser_parse_any_core (a_this);
} while (status == CR_OK);
@ -959,12 +955,10 @@ cr_parser_parse_selector_core (CRParser * a_this)
*in chapter 4.1 of the css2 spec.
*block ::= '{' S* [ any | block | ATKEYWORD S* | ';' ]* '}' S*;
*@param a_this the current instance of #CRParser.
*@param n_calls used to limit recursion depth
*FIXME: code this function.
*/
static enum CRStatus
cr_parser_parse_block_core (CRParser * a_this,
guint n_calls)
cr_parser_parse_block_core (CRParser * a_this)
{
CRToken *token = NULL;
CRInputPos init_pos;
@ -972,9 +966,6 @@ cr_parser_parse_block_core (CRParser * a_this,
g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
if (n_calls > RECURSIVE_CALLERS_LIMIT)
return CR_ERROR;
RECORD_INITIAL_POS (a_this, &init_pos);
status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token);
@ -1004,13 +995,13 @@ cr_parser_parse_block_core (CRParser * a_this,
} else if (token->type == CBO_TK) {
cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
token = NULL;
status = cr_parser_parse_block_core (a_this, n_calls + 1);
status = cr_parser_parse_block_core (a_this);
CHECK_PARSING_STATUS (status, FALSE);
goto parse_block_content;
} else {
cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token);
token = NULL;
status = cr_parser_parse_any_core (a_this, n_calls + 1);
status = cr_parser_parse_any_core (a_this);
CHECK_PARSING_STATUS (status, FALSE);
goto parse_block_content;
}
@ -1117,7 +1108,7 @@ cr_parser_parse_value_core (CRParser * a_this)
status = cr_tknzr_unget_token (PRIVATE (a_this)->tknzr,
token);
token = NULL;
status = cr_parser_parse_block_core (a_this, 0);
status = cr_parser_parse_block_core (a_this);
CHECK_PARSING_STATUS (status, FALSE);
ref++;
goto continue_parsing;
@ -1131,7 +1122,7 @@ cr_parser_parse_value_core (CRParser * a_this)
status = cr_tknzr_unget_token (PRIVATE (a_this)->tknzr,
token);
token = NULL;
status = cr_parser_parse_any_core (a_this, 0);
status = cr_parser_parse_any_core (a_this);
if (status == CR_OK) {
ref++;
goto continue_parsing;
@ -1170,12 +1161,10 @@ cr_parser_parse_value_core (CRParser * a_this)
* | FUNCTION | DASHMATCH | '(' any* ')' | '[' any* ']' ] S*;
*
*@param a_this the current instance of #CRParser.
*@param n_calls used to limit recursion depth
*@return CR_OK upon successfull completion, an error code otherwise.
*/
static enum CRStatus
cr_parser_parse_any_core (CRParser * a_this,
guint n_calls)
cr_parser_parse_any_core (CRParser * a_this)
{
CRToken *token1 = NULL,
*token2 = NULL;
@ -1184,9 +1173,6 @@ cr_parser_parse_any_core (CRParser * a_this,
g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR);
if (n_calls > RECURSIVE_CALLERS_LIMIT)
return CR_ERROR;
RECORD_INITIAL_POS (a_this, &init_pos);
status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token1);
@ -1225,7 +1211,7 @@ cr_parser_parse_any_core (CRParser * a_this,
*We consider parameter as being an "any*" production.
*/
do {
status = cr_parser_parse_any_core (a_this, n_calls + 1);
status = cr_parser_parse_any_core (a_this);
} while (status == CR_OK);
ENSURE_PARSING_COND (status == CR_PARSING_ERROR);
@ -1250,7 +1236,7 @@ cr_parser_parse_any_core (CRParser * a_this,
}
do {
status = cr_parser_parse_any_core (a_this, n_calls + 1);
status = cr_parser_parse_any_core (a_this);
} while (status == CR_OK);
ENSURE_PARSING_COND (status == CR_PARSING_ERROR);
@ -1278,7 +1264,7 @@ cr_parser_parse_any_core (CRParser * a_this,
}
do {
status = cr_parser_parse_any_core (a_this, n_calls + 1);
status = cr_parser_parse_any_core (a_this);
} while (status == CR_OK);
ENSURE_PARSING_COND (status == CR_PARSING_ERROR);

View File

@ -279,23 +279,11 @@ st_adjustment_class_init (StAdjustmentClass *klass)
object_class->set_property = st_adjustment_set_property;
object_class->dispose = st_adjustment_dispose;
/**
* StAdjustment:actor:
*
* If the adjustment is used as #ClutterAnimatable for a
* #ClutterPropertyTransition, this property is used to determine which
* monitor should drive the animation.
*/
props[PROP_ACTOR] =
g_param_spec_object ("actor", "Actor", "Actor",
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE);
/**
* StAdjustment:lower:
*
* The minimum value of the adjustment.
*/
props[PROP_LOWER] =
g_param_spec_double ("lower", "Lower", "Lower bound",
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
@ -303,14 +291,6 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY);
/**
* StAdjustment:upper:
*
* The maximum value of the adjustment.
*
* Note that values will be restricted by `upper - page-size` if
* #StAdjustment:page-size is non-zero.
*/
props[PROP_UPPER] =
g_param_spec_double ("upper", "Upper", "Upper bound",
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
@ -318,11 +298,6 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY);
/**
* StAdjustment:value:
*
* The value of the adjustment.
*/
props[PROP_VALUE] =
g_param_spec_double ("value", "Value", "Current value",
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
@ -330,11 +305,6 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY);
/**
* StAdjustment:step-increment:
*
* The step increment of the adjustment.
*/
props[PROP_STEP_INC] =
g_param_spec_double ("step-increment", "Step Increment", "Step increment",
0.0, G_MAXDOUBLE, 0.0,
@ -342,11 +312,6 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY);
/**
* StAdjustment:page-increment:
*
* The page increment of the adjustment.
*/
props[PROP_PAGE_INC] =
g_param_spec_double ("page-increment", "Page Increment", "Page increment",
0.0, G_MAXDOUBLE, 0.0,
@ -354,14 +319,6 @@ st_adjustment_class_init (StAdjustmentClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_EXPLICIT_NOTIFY);
/**
* StAdjustment:page-size:
*
* The page size of the adjustment.
*
* Note that the page-size is irrelevant and should be set to zero if the
* adjustment is used for a simple scalar value.
*/
props[PROP_PAGE_SIZE] =
g_param_spec_double ("page-size", "Page Size", "Page size",
0.0, G_MAXDOUBLE, 0.0,
@ -393,20 +350,6 @@ st_adjustment_init (StAdjustment *self)
priv->is_constructing = TRUE;
}
/**
* st_adjustment_new:
* @actor: (nullable): a #ClutterActor
* @value: the initial value
* @lower: the minimum value
* @upper: the maximum value
* @step_increment: the step increment
* @page_increment: the page increment
* @page_size: the page size
*
* Creates a new #StAdjustment
*
* Returns: a new #StAdjustment
*/
StAdjustment *
st_adjustment_new (ClutterActor *actor,
gdouble value,
@ -427,14 +370,6 @@ st_adjustment_new (ClutterActor *actor,
NULL);
}
/**
* st_adjustment_get_value:
* @adjustment: a #StAdjustment
*
* Gets the current value of the adjustment. See st_adjustment_set_value().
*
* Returns: The current value of the adjustment
*/
gdouble
st_adjustment_get_value (StAdjustment *adjustment)
{
@ -443,14 +378,6 @@ st_adjustment_get_value (StAdjustment *adjustment)
return ((StAdjustmentPrivate *)st_adjustment_get_instance_private (adjustment))->value;
}
/**
* st_adjustment_set_value:
* @adjustment: a #StAdjustment
* @value: the new value
*
* Sets the #StAdjustment value. The value is clamped to lie between
* #StAdjustment:lower and #StAdjustment:upper - #StAdjustment:page-size.
*/
void
st_adjustment_set_value (StAdjustment *adjustment,
gdouble value)
@ -477,15 +404,6 @@ st_adjustment_set_value (StAdjustment *adjustment,
}
}
/**
* st_adjustment_clamp_page:
* @adjustment: a #StAdjustment
* @lower: the lower value
* @upper: the upper value
*
* Set #StAdjustment:value to a value clamped between @lower and @upper. The
* clamping described by st_adjustment_set_value() still applies.
*/
void
st_adjustment_clamp_page (StAdjustment *adjustment,
gdouble lower,
@ -519,23 +437,6 @@ st_adjustment_clamp_page (StAdjustment *adjustment,
g_object_notify_by_pspec (G_OBJECT (adjustment), props[PROP_VALUE]);
}
/**
* st_adjustment_set_lower:
* @adjustment: a #StAdjustment
* @lower: the new minimum value
*
* Sets the minimum value of the adjustment.
*
* When setting multiple adjustment properties via their individual
* setters, multiple #GObject::notify and #StAdjustment::changed
* signals will be emitted. However, its possible to compress the
* #GObject::notify signals into one by calling
* g_object_freeze_notify() and g_object_thaw_notify() around the
* calls to the individual setters.
*
* Alternatively, using st_adjustment_set_values() will compress both
* #GObject::notify and #StAdjustment::changed emissions.
*/
static gboolean
st_adjustment_set_lower (StAdjustment *adjustment,
gdouble lower)
@ -560,21 +461,6 @@ st_adjustment_set_lower (StAdjustment *adjustment,
return FALSE;
}
/**
* st_adjustment_set_upper:
* @adjustment: a #StAdjustment
* @upper: the new maximum value
*
* Sets the maximum value of the adjustment.
*
* Note that values will be restricted by `upper - page-size`
* if the page-size property is nonzero.
*
* See st_adjustment_set_lower() about how to compress multiple
* signal emissions when setting multiple adjustment properties.
*
* Returns: %TRUE if the value was changed
*/
static gboolean
st_adjustment_set_upper (StAdjustment *adjustment,
gdouble upper)
@ -599,18 +485,6 @@ st_adjustment_set_upper (StAdjustment *adjustment,
return FALSE;
}
/**
* st_adjustment_set_step_increment:
* @adjustment: a #StAdjustment
* @step: the new step increment
*
* Sets the step increment of the adjustment.
*
* See st_adjustment_set_lower() about how to compress multiple
* signal emissions when setting multiple adjustment properties.
*
* Returns: %TRUE if the value was changed
*/
static gboolean
st_adjustment_set_step_increment (StAdjustment *adjustment,
gdouble step)
@ -631,18 +505,6 @@ st_adjustment_set_step_increment (StAdjustment *adjustment,
return FALSE;
}
/**
* st_adjustment_set_page_increment:
* @adjustment: a #StAdjustment
* @page: the new page increment
*
* Sets the page increment of the adjustment.
*
* See st_adjustment_set_lower() about how to compress multiple
* signal emissions when setting multiple adjustment properties.
*
* Returns: %TRUE if the value was changed
*/
static gboolean
st_adjustment_set_page_increment (StAdjustment *adjustment,
gdouble page)
@ -663,18 +525,6 @@ st_adjustment_set_page_increment (StAdjustment *adjustment,
return FALSE;
}
/**
* st_adjustment_set_page_size:
* @adjustment: a #StAdjustment
* @size: the new page size
*
* Sets the page size of the adjustment.
*
* See st_adjustment_set_lower() about how to compress multiple
* signal emissions when setting multiple adjustment properties.
*
* Returns: %TRUE if the value was changed
*/
static gboolean
st_adjustment_set_page_size (StAdjustment *adjustment,
gdouble size)
@ -699,23 +549,6 @@ st_adjustment_set_page_size (StAdjustment *adjustment,
return FALSE;
}
/**
* st_adjustment_set_values:
* @adjustment: a #StAdjustment
* @value: the new value
* @lower: the new minimum value
* @upper: the new maximum value
* @step_increment: the new step increment
* @page_increment: the new page increment
* @page_size: the new page size
*
* Sets all properties of the adjustment at once.
*
* Use this function to avoid multiple emissions of the #GObject::notify and
* #StAdjustment::changed signals. See st_adjustment_set_lower() for an
* alternative way of compressing multiple emissions of #GObject::notify into
* one.
*/
void
st_adjustment_set_values (StAdjustment *adjustment,
gdouble value,
@ -760,12 +593,12 @@ st_adjustment_set_values (StAdjustment *adjustment,
/**
* st_adjustment_get_values:
* @adjustment: an #StAdjustment
* @value: (out) (optional): the current value
* @lower: (out) (optional): the lower bound
* @upper: (out) (optional): the upper bound
* @step_increment: (out) (optional): the step increment
* @page_increment: (out) (optional): the page increment
* @page_size: (out) (optional): the page size
* @value: (out): the current value
* @lower: (out): the lower bound
* @upper: (out): the upper bound
* @step_increment: (out): the step increment
* @page_increment: (out): the page increment
* @page_size: (out): the page size
*
* Gets all of @adjustment's values at once.
*/
@ -889,13 +722,7 @@ on_transition_stopped (ClutterTransition *transition,
/**
* st_adjustment_get_transition:
* @adjustment: a #StAdjustment
* @name: a transition name
*
* Get the #ClutterTransition for @name previously added with
* st_adjustment_add_transition() or %NULL if not found.
*
* Returns: (transfer none) (nullable): a #ClutterTransition
* Returns: (transfer none) (nullable):
*/
ClutterTransition *
st_adjustment_get_transition (StAdjustment *adjustment,
@ -918,15 +745,6 @@ st_adjustment_get_transition (StAdjustment *adjustment,
return clos->transition;
}
/**
* st_adjustment_add_transition:
* @adjustment: a #StAdjustment
* @name: a unique name for the transition
* @transtion: a #ClutterTransition
*
* Add a #ClutterTransition for the adjustment. If the transiton stops, it will
* be automatically removed if #ClutterTransition:remove-on-complete is %TRUE.
*/
void
st_adjustment_add_transition (StAdjustment *adjustment,
const char *name,
@ -967,14 +785,6 @@ st_adjustment_add_transition (StAdjustment *adjustment,
clutter_timeline_start (CLUTTER_TIMELINE (transition));
}
/**
* st_adjusmtent_remove_transition:
* @adjusment: a #StAdjustment
* @name: the name of the transition to remove
*
* Remove a #ClutterTransition previously added by st_adjustment_add_transtion()
* with @name.
*/
void
st_adjustment_remove_transition (StAdjustment *adjustment,
const char *name)

View File

@ -327,7 +327,7 @@ st_bin_init (StBin *bin)
*
* Creates a new #StBin, a simple container for one child.
*
* Returns: the newly created #StBin actor
* Return value: the newly created #StBin actor
*/
StWidget *
st_bin_new (void)
@ -378,9 +378,9 @@ st_bin_set_child (StBin *bin,
* st_bin_get_child:
* @bin: a #StBin
*
* Gets the #ClutterActor child for @bin.
* Retrieves a pointer to the child of @bin.
*
* Returns: (transfer none) (nullable): a #ClutterActor, or %NULL
* Return value: (transfer none): a #ClutterActor, or %NULL
*/
ClutterActor *
st_bin_get_child (StBin *bin)

View File

@ -66,19 +66,6 @@ st_border_image_init (StBorderImage *image)
{
}
/**
* st_border_image_new:
* @file: a #GFile
* @border_top: the top border
* @border_right: the right border
* @border_bottom: the bottom border
* @border_left: the left border
* @scale_factor: the scale factor
*
* Creates a new #StBorderImage.
*
* Returns: a new #StBorderImage.
*/
StBorderImage *
st_border_image_new (GFile *file,
int border_top,
@ -103,11 +90,9 @@ st_border_image_new (GFile *file,
/**
* st_border_image_get_file:
* @image: a #StBorderImage
* @image: a #StBorder_Image
*
* Get the #GFile for @image.
*
* Returns: (transfer none): a #GFile
* Returns: (transfer none): the #GFile for the #StBorder_Image
*/
GFile *
st_border_image_get_file (StBorderImage *image)
@ -117,17 +102,6 @@ st_border_image_get_file (StBorderImage *image)
return image->file;
}
/**
* st_border_image_get_border:
* @image: a #StBorderImage
* @border_top: (out) (optional): the top border
* @border_right: (out) (optional): the right border
* @border_bottom: (out) (optional): the bottom border
* @border_left: (out) (optional): the left border
*
* Get the border widths for @image, taking into account the scale factor
* provided at construction.
*/
void
st_border_image_get_borders (StBorderImage *image,
int *border_top,
@ -149,12 +123,12 @@ st_border_image_get_borders (StBorderImage *image,
/**
* st_border_image_equal:
* @image: a #StBorderImage
* @other: a different #StBorderImage
* @image: a #StBorder_Image
* @other: a different #StBorder_Image
*
* Check if two #StBorderImage objects are identical.
* Check if two border_image objects are identical.
*
* Returns: %TRUE if the two border image objects are identical
* Return value: %TRUE if the two border image objects are identical
*/
gboolean
st_border_image_equal (StBorderImage *image,

View File

@ -181,8 +181,8 @@ st_box_layout_class_init (StBoxLayoutClass *klass)
/**
* StBoxLayout:vertical:
*
* A convenience property for the #ClutterBoxLayout:vertical property of the
* internal layout for #StBoxLayout.
* A convenience property for getting the #ClutterBoxLayout:vertical
* property of the layout for #StBoxLayout.
*/
pspec = g_param_spec_boolean ("vertical",
"Vertical",
@ -195,8 +195,8 @@ st_box_layout_class_init (StBoxLayoutClass *klass)
/**
* StBoxLayout:pack-start:
*
* A convenience property for the #ClutterBoxLayout:pack-start property of the
* internal layout for #StBoxLayout.
* A convenience property for getting the #ClutterBoxLayout:pack-start
* property of the layout for #StBoxLayout.
*/
pspec = g_param_spec_boolean ("pack-start",
"Pack Start",

View File

@ -484,11 +484,6 @@ st_button_class_init (StButtonClass *klass)
widget_class->style_changed = st_button_style_changed;
widget_class->get_accessible_type = st_button_accessible_get_type;
/**
* StButton:label:
*
* The label of the #StButton.
*/
props[PROP_LABEL] =
g_param_spec_string ("label",
"Label",
@ -496,11 +491,6 @@ st_button_class_init (StButtonClass *klass)
NULL,
ST_PARAM_READWRITE);
/**
* StButton:button-mask:
*
* Which buttons will trigger the #StButton::clicked signal.
*/
props[PROP_BUTTON_MASK] =
g_param_spec_flags ("button-mask",
"Button mask",
@ -508,11 +498,6 @@ st_button_class_init (StButtonClass *klass)
ST_TYPE_BUTTON_MASK, ST_BUTTON_ONE,
ST_PARAM_READWRITE);
/**
* StButton:toggle-mode:
*
* Whether the #StButton is operating in toggle mode (on/off).
*/
props[PROP_TOGGLE_MODE] =
g_param_spec_boolean ("toggle-mode",
"Toggle Mode",
@ -520,15 +505,6 @@ st_button_class_init (StButtonClass *klass)
FALSE,
ST_PARAM_READWRITE);
/**
* StButton:checked:
*
* If #StButton:toggle-mode is %TRUE, indicates if the #StButton is toggled
* "on" or "off".
*
* When the value is %TRUE, the #StButton will have the `checked` CSS
* pseudo-class set.
*/
props[PROP_CHECKED] =
g_param_spec_boolean ("checked",
"Checked",
@ -536,12 +512,6 @@ st_button_class_init (StButtonClass *klass)
FALSE,
ST_PARAM_READWRITE);
/**
* StButton:pressed:
*
* In contrast to #StButton:checked, this property indicates whether the
* #StButton is being actively pressed, rather than just in the "on" state.
*/
props[PROP_PRESSED] =
g_param_spec_boolean ("pressed",
"Pressed",
@ -613,10 +583,9 @@ st_button_new_with_label (const gchar *text)
* st_button_get_label:
* @button: a #StButton
*
* Get the text displayed on the button. If the label is empty, an empty string
* will be returned instead of %NULL.
* Get the text displayed on the button
*
* Returns: (transfer none): the text for the button
* Returns: the text for the button. This must not be freed by the application
*/
const gchar *
st_button_get_label (StButton *button)
@ -629,9 +598,9 @@ st_button_get_label (StButton *button)
/**
* st_button_set_label:
* @button: a #Stbutton
* @text: (nullable): text to set the label to
* @text: text to set the label to
*
* Sets the text displayed on the button.
* Sets the text displayed on the button
*/
void
st_button_set_label (StButton *button,
@ -757,7 +726,7 @@ st_button_set_toggle_mode (StButton *button,
* st_button_get_checked:
* @button: a #StButton
*
* Get the #StButton:checked property of a #StButton that is in toggle mode.
* Get the state of the button that is in toggle mode.
*
* Returns: %TRUE if the button is checked, or %FALSE if not
*/
@ -774,8 +743,8 @@ st_button_get_checked (StButton *button)
* @button: a #Stbutton
* @checked: %TRUE or %FALSE
*
* Set the #StButton:checked property of the button. This is only really useful
* if the button has #StButton:toggle-mode property set to %TRUE.
* Sets the pressed state of the button. This is only really useful if the
* button has #toggle-mode mode set to %TRUE.
*/
void
st_button_set_checked (StButton *button,
@ -804,9 +773,9 @@ st_button_set_checked (StButton *button,
* @button: an #StButton
*
* If this widget is holding a pointer grab, this function will
* will ungrab it, and reset the #StButton:pressed state. The effect is
* will ungrab it, and reset the pressed state. The effect is
* similar to if the user had released the mouse button, but without
* emitting the #StButton::clicked signal.
* emitting the clicked signal.
*
* This function is useful if for example you want to do something
* after the user is holding the mouse button for a given period of

View File

@ -63,7 +63,7 @@ void st_button_fake_release (StButton *button);
* @ST_BUTTON_TWO: button 2 (middle)
* @ST_BUTTON_THREE: button 3 (right)
*
* A mask representing which mouse buttons an #StButton responds to.
* A mask representing which mouse buttons an StButton responds to.
*/
typedef enum {
ST_BUTTON_ONE = (1 << 0),

View File

@ -195,6 +195,7 @@ st_clipboard_get_mimetypes (StClipboard *clipboard,
*
* Request the data from the clipboard in text form. @callback is executed
* when the data is retreived.
*
*/
void
st_clipboard_get_text (StClipboard *clipboard,
@ -243,6 +244,7 @@ st_clipboard_get_text (StClipboard *clipboard,
*
* Request the data from the clipboard in #GBytes form. @callback is executed
* when the data is retrieved.
*
*/
void
st_clipboard_get_content (StClipboard *clipboard,
@ -285,9 +287,7 @@ st_clipboard_get_content (StClipboard *clipboard,
* @mimetype: content mimetype
* @bytes: content data
*
* Sets the clipboard content to @bytes.
*
* @mimetype is a semi-colon separated list of mime-type strings.
* Sets the clipboard content.
**/
void
st_clipboard_set_content (StClipboard *clipboard,
@ -334,13 +334,6 @@ st_clipboard_set_text (StClipboard *clipboard,
g_bytes_unref (bytes);
}
/**
* st_clipboard_set_selection: (skip)
*
* Sets the #MetaSelection of the default #StClipboard.
*
* This function is called during the initialization of GNOME Shell.
*/
void
st_clipboard_set_selection (MetaSelection *selection)
{

View File

@ -150,8 +150,8 @@ st_drawing_area_init (StDrawingArea *area)
* st_drawing_area_queue_repaint:
* @area: the #StDrawingArea
*
* Will cause the actor to emit a #StDrawingArea::repaint signal before it is
* next drawn to the scene. Useful if some parameters for the area being
* Will cause the actor to emit a ::repaint signal before it is next
* drawn to the scene. Useful if some parameters for the area being
* drawn other than the size or style have changed. Note that
* clutter_actor_queue_redraw() will simply result in the same
* contents being drawn to the scene again.
@ -169,26 +169,9 @@ st_drawing_area_queue_repaint (StDrawingArea *area)
* @area: the #StDrawingArea
*
* Gets the Cairo context to paint to. This function must only be called
* from a signal hander or virtual function for the #StDrawingArea::repaint
* signal.
* from a signal hander for the ::repaint signal.
*
* JavaScript code must call the special dispose function before returning from
* the signal handler or virtual function to avoid leaking memory:
*
* |[<!-- language="JavaScript" -->
* function onRepaint(area) {
* let cr = area.get_context();
*
* // Draw to the context
*
* cr.$dispose();
* }
*
* let area = new St.DrawingArea();
* area.connect('repaint', onRepaint);
* ]|
*
* Returns: (transfer none): the Cairo context for the paint operation
* Return Value: (transfer none): the Cairo context for the paint operation
*/
cairo_t *
st_drawing_area_get_context (StDrawingArea *area)
@ -206,12 +189,12 @@ st_drawing_area_get_context (StDrawingArea *area)
/**
* st_drawing_area_get_surface_size:
* @area: the #StDrawingArea
* @width: (out) (optional): location to store the width of the painted area
* @height: (out) (optional): location to store the height of the painted area
* @width: (out): location to store the width of the painted area
* @height: (out): location to store the height of the painted area
*
* Gets the size of the cairo surface being painted to, which is equal
* to the size of the content area of the widget. This function must
* only be called from a signal hander for the #StDrawingArea::repaint signal.
* only be called from a signal hander for the ::repaint signal.
*/
void
st_drawing_area_get_surface_size (StDrawingArea *area,

View File

@ -29,9 +29,14 @@
* applications to set further properties.
*
* #StEntry supports the following pseudo style states:
*
* - `focus`: the widget has focus
* - `indeterminate`: the widget is showing the hint text or actor
* <itemizedlist>
* <listitem>
* <para>focus: the widget has focus</para>
* </listitem>
* <listitem>
* <para>indeterminate: the widget is showing the hint text or actor</para>
* </listitem>
* </itemizedlist>
*/
#ifdef HAVE_CONFIG_H
@ -892,11 +897,6 @@ st_entry_class_init (StEntryClass *klass)
widget_class->navigate_focus = st_entry_navigate_focus;
widget_class->get_accessible_type = st_entry_accessible_get_type;
/**
* StEntry:clutter-text:
*
* The internal #ClutterText actor supporting the #StEntry.
*/
props[PROP_CLUTTER_TEXT] =
g_param_spec_object ("clutter-text",
"Clutter Text",
@ -904,11 +904,6 @@ st_entry_class_init (StEntryClass *klass)
CLUTTER_TYPE_TEXT,
ST_PARAM_READABLE);
/**
* StEntry:primary-icon:
*
* The #ClutterActor acting as the primary icon at the start of the #StEntry.
*/
props[PROP_PRIMARY_ICON] =
g_param_spec_object ("primary-icon",
"Primary Icon",
@ -916,11 +911,6 @@ st_entry_class_init (StEntryClass *klass)
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE);
/**
* StEntry:secondary-icon:
*
* The #ClutterActor acting as the secondary icon at the end of the #StEntry.
*/
props[PROP_SECONDARY_ICON] =
g_param_spec_object ("secondary-icon",
"Secondary Icon",
@ -928,12 +918,6 @@ st_entry_class_init (StEntryClass *klass)
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE);
/**
* StEntry:hint-text:
*
* The text to display when the entry is empty and unfocused. Setting this
* will replace the actor of #StEntry::hint-actor.
*/
props[PROP_HINT_TEXT] =
g_param_spec_string ("hint-text",
"Hint Text",
@ -942,12 +926,6 @@ st_entry_class_init (StEntryClass *klass)
NULL,
ST_PARAM_READWRITE);
/**
* StEntry:hint-actor:
*
* A #ClutterActor to display when the entry is empty and unfocused. Setting
* this will replace the actor displaying #StEntry:hint-text.
*/
props[PROP_HINT_ACTOR] =
g_param_spec_object ("hint-actor",
"Hint Actor",
@ -956,11 +934,6 @@ st_entry_class_init (StEntryClass *klass)
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE);
/**
* StEntry:text:
*
* The current text value of the #StEntry.
*/
props[PROP_TEXT] =
g_param_spec_string ("text",
"Text",
@ -968,12 +941,6 @@ st_entry_class_init (StEntryClass *klass)
NULL,
ST_PARAM_READWRITE);
/**
* StEntry:input-purpose:
*
* The #ClutterInputContentPurpose that helps on-screen keyboards and similar
* input methods to decide which keys should be presented to the user.
*/
props[PROP_INPUT_PURPOSE] =
g_param_spec_enum ("input-purpose",
"Purpose",
@ -982,13 +949,6 @@ st_entry_class_init (StEntryClass *klass)
CLUTTER_INPUT_CONTENT_PURPOSE_NORMAL,
ST_PARAM_READWRITE);
/**
* StEntry:input-hints:
*
* The #ClutterInputContentHintFlags providing additional hints (beyond
* #StEntry:input-purpose) that allow input methods to fine-tune their
* behaviour.
*/
props[PROP_INPUT_HINTS] =
g_param_spec_flags ("input-hints",
"hints",
@ -1004,7 +964,8 @@ st_entry_class_init (StEntryClass *klass)
* StEntry::primary-icon-clicked:
* @self: the #StEntry
*
* Emitted when the primary icon is clicked.
*
* Emitted when the primary icon is clicked
*/
entry_signals[PRIMARY_ICON_CLICKED] =
g_signal_new ("primary-icon-clicked",
@ -1013,12 +974,11 @@ st_entry_class_init (StEntryClass *klass)
G_STRUCT_OFFSET (StEntryClass, primary_icon_clicked),
NULL, NULL, NULL,
G_TYPE_NONE, 0);
/**
* StEntry::secondary-icon-clicked:
* @self: the #StEntry
*
* Emitted when the secondary icon is clicked.
* Emitted when the secondary icon is clicked
*/
entry_signals[SECONDARY_ICON_CLICKED] =
g_signal_new ("secondary-icon-clicked",
@ -1080,9 +1040,9 @@ st_entry_init (StEntry *entry)
/**
* st_entry_new:
* @text: (nullable): text to set the entry to
* @text: text to set the entry to
*
* Create a new #StEntry with the specified text.
* Create a new #StEntry with the specified entry
*
* Returns: a new #StEntry
*/
@ -1103,10 +1063,9 @@ st_entry_new (const gchar *text)
* st_entry_get_text:
* @entry: a #StEntry
*
* Get the text displayed on the entry. If @entry is empty, an empty string will
* be returned instead of %NULL.
* Get the text displayed on the entry
*
* Returns: (transfer none): the text for the entry
* Returns: the text for the entry. This must not be freed by the application
*/
const gchar *
st_entry_get_text (StEntry *entry)
@ -1125,8 +1084,7 @@ st_entry_get_text (StEntry *entry)
* @entry: a #StEntry
* @text: (nullable): text to set the entry to
*
* Sets the text displayed on the entry. If @text is %NULL, the #ClutterText
* will instead be set to an empty string.
* Sets the text displayed on the entry
*/
void
st_entry_set_text (StEntry *entry,
@ -1148,9 +1106,10 @@ st_entry_set_text (StEntry *entry,
* st_entry_get_clutter_text:
* @entry: a #StEntry
*
* Retrieve the internal #ClutterText so that extra parameters can be set.
* Retrieve the internal #ClutterText so that extra parameters can be set
*
* Returns: (transfer none): the #ClutterText used by @entry
* Returns: (transfer none): the #ClutterText used by #StEntry. The entry is
* owned by the #StEntry and should not be unref'ed by the application.
*/
ClutterActor*
st_entry_get_clutter_text (StEntry *entry)
@ -1166,8 +1125,8 @@ st_entry_get_clutter_text (StEntry *entry)
* @text: (nullable): text to set as the entry hint
*
* Sets the text to display when the entry is empty and unfocused. When the
* entry is displaying the hint, it has a pseudo class of `indeterminate`.
* A value of %NULL unsets the hint.
* entry is displaying the hint, it has a pseudo class of "indeterminate".
* A value of NULL unsets the hint.
*/
void
st_entry_set_hint_text (StEntry *entry,
@ -1187,13 +1146,10 @@ st_entry_set_hint_text (StEntry *entry,
* st_entry_get_hint_text:
* @entry: a #StEntry
*
* Gets the text that is displayed when the entry is empty and unfocused or
* %NULL if the #StEntry:hint-actor was set to an actor that is not a #StLabel.
* Gets the text that is displayed when the entry is empty and unfocused
*
* Unlike st_entry_get_text() this function may return %NULL if
* #StEntry:hint-actor is not a #StLabel.
*
* Returns: (nullable) (transfer none): the current value of the hint property
* Returns: the current value of the hint property. This string is owned by the
* #StEntry and should not be freed or modified.
*/
const gchar *
st_entry_get_hint_text (StEntry *entry)
@ -1244,8 +1200,6 @@ st_entry_set_input_purpose (StEntry *entry,
* @entry: a #StEntry
*
* Gets the value of the #StEntry:input-purpose property.
*
* Returns: the input purpose of the entry
*/
ClutterInputContentPurpose
st_entry_get_input_purpose (StEntry *entry)
@ -1291,8 +1245,6 @@ st_entry_set_input_hints (StEntry *entry,
* @entry: a #StEntry
*
* Gets the value of the #StEntry:input-hints property.
*
* Returns: the input hints for the entry
*/
ClutterInputContentHintFlags
st_entry_get_input_hints (StEntry *entry)
@ -1353,7 +1305,7 @@ _st_entry_set_icon (StEntry *entry,
* @entry: a #StEntry
* @icon: (nullable): a #ClutterActor
*
* Set the primary icon of the entry to @icon.
* Set the primary icon of the entry to @icon
*/
void
st_entry_set_primary_icon (StEntry *entry,
@ -1372,9 +1324,7 @@ st_entry_set_primary_icon (StEntry *entry,
* st_entry_get_primary_icon:
* @entry: a #StEntry
*
* Get the value of the #StEntry:primary-icon property.
*
* Returns: (nullable) (transfer none): a #ClutterActor
* Returns: (transfer none): a #ClutterActor
*/
ClutterActor *
st_entry_get_primary_icon (StEntry *entry)
@ -1392,7 +1342,7 @@ st_entry_get_primary_icon (StEntry *entry)
* @entry: a #StEntry
* @icon: (nullable): an #ClutterActor
*
* Set the secondary icon of the entry to @icon.
* Set the secondary icon of the entry to @icon
*/
void
st_entry_set_secondary_icon (StEntry *entry,
@ -1411,9 +1361,7 @@ st_entry_set_secondary_icon (StEntry *entry,
* st_entry_get_secondary_icon:
* @entry: a #StEntry
*
* Get the value of the #StEntry:secondary-icon property.
*
* Returns: (nullable) (transfer none): a #ClutterActor
* Returns: (transfer none): a #ClutterActor
*/
ClutterActor *
st_entry_get_secondary_icon (StEntry *entry)
@ -1429,9 +1377,9 @@ st_entry_get_secondary_icon (StEntry *entry)
/**
* st_entry_set_hint_actor:
* @entry: a #StEntry
* @hint_actor: (nullable): a #ClutterActor
* @hint_actor: (allow-none): a #ClutterActor
*
* Set the hint actor of the entry to @hint_actor.
* Set the hint actor of the entry to @hint_actor
*/
void
st_entry_set_hint_actor (StEntry *entry,
@ -1464,9 +1412,7 @@ st_entry_set_hint_actor (StEntry *entry,
* st_entry_get_hint_actor:
* @entry: a #StEntry
*
* Get the value of the #StEntry:hint-actor property.
*
* Returns: (nullable) (transfer none): a #ClutterActor
* Returns: (transfer none): a #ClutterActor
*/
ClutterActor *
st_entry_get_hint_actor (StEntry *entry)

View File

@ -133,7 +133,7 @@ st_focus_manager_stage_event (ClutterActor *stage,
*
* Gets the #StFocusManager for @stage, creating it if necessary.
*
* Returns: (transfer none): the focus manager for @stage
* Return value: (transfer none): the focus manager for @stage
*/
StFocusManager *
st_focus_manager_get_for_stage (ClutterStage *stage)
@ -215,7 +215,7 @@ st_focus_manager_remove_group (StFocusManager *manager,
* Checks if @widget is inside a focus group, and if so, returns
* the root of that group.
*
* Returns: (transfer none): the focus group root, or %NULL if
* Return value: (transfer none): the focus group root, or %NULL if
* @widget is not in a focus group
*/
StWidget *

View File

@ -72,7 +72,7 @@ st_generic_accessible_class_init (StGenericAccessibleClass *klass)
* @self. Right now we only care about doubles, so the value is
* directly returned by the signal.
*
* Returns: value of the current element.
* Return value: value of the current element.
*/
st_generic_accessible_signals[GET_CURRENT_VALUE] =
g_signal_new ("get-current-value",
@ -90,7 +90,7 @@ st_generic_accessible_class_init (StGenericAccessibleClass *klass)
* @self. Right now we only care about doubles, so the value is
* directly returned by the signal.
*
* Returns: maximum value of the accessible.
* Return value: maximum value of the accessible.
*/
st_generic_accessible_signals[GET_MAXIMUM_VALUE] =
g_signal_new ("get-maximum-value",
@ -108,7 +108,7 @@ st_generic_accessible_class_init (StGenericAccessibleClass *klass)
* @self. Right now we only care about doubles, so the value is
* directly returned by the signal.
*
* Returns: minimum value of the accessible.
* Return value: minimum value of the accessible.
*/
st_generic_accessible_signals[GET_MINIMUM_VALUE] =
g_signal_new ("get-minimum-value",
@ -126,7 +126,7 @@ st_generic_accessible_class_init (StGenericAccessibleClass *klass)
* @self. Right now we only care about doubles, so the value is
* directly returned by the signal.
*
* Returns: value of the current element.
* Return value: value of the current element.
*/
st_generic_accessible_signals[GET_MINIMUM_INCREMENT] =
g_signal_new ("get-minimum-increment",
@ -221,16 +221,6 @@ atk_value_iface_init (AtkValueIface *iface)
iface->set_current_value = st_generic_accessible_set_current_value;
}
/**
* st_generic_accessible_new_for_actor:
* @actor: a #Clutter Actor
*
* Create a new #StGenericAccessible for @actor.
*
* This is useful only for custom widgets that need a proxy for #AtkObject.
*
* Returns: (transfer full): a new #AtkObject
*/
AtkObject*
st_generic_accessible_new_for_actor (ClutterActor *actor)
{

View File

@ -26,7 +26,7 @@
*
* Creates a new #StIconColors. All colors are initialized to transparent black.
*
* Returns: a newly created #StIconColors. Free with st_icon_colors_unref()
* Return value: a newly created #StIconColors. Free with st_icon_colors_unref()
*/
StIconColors *
st_icon_colors_new (void)
@ -107,8 +107,6 @@ st_icon_colors_copy (StIconColors *colors)
* @colors: a #StIconColors
* @other: another #StIconColors
*
* Check if two #StIconColors objects are identical.
*
* Returns: %TRUE if the #StIconColors are equal
*/
gboolean

View File

@ -255,11 +255,6 @@ st_icon_class_init (StIconClass *klass)
widget_class->style_changed = st_icon_style_changed;
actor_class->resource_scale_changed = st_icon_resource_scale_changed;
/**
* StIcon:gicon:
*
* The #GIcon being displayed by this #StIcon.
*/
props[PROP_GICON] =
g_param_spec_object ("gicon",
"GIcon",
@ -267,11 +262,6 @@ st_icon_class_init (StIconClass *klass)
G_TYPE_ICON,
ST_PARAM_READWRITE);
/**
* StIcon:fallback-gicon:
*
* The fallback #GIcon to display if #StIcon:gicon fails to load.
*/
props[PROP_FALLBACK_GICON] =
g_param_spec_object ("fallback-gicon",
"Fallback GIcon",
@ -279,11 +269,6 @@ st_icon_class_init (StIconClass *klass)
G_TYPE_ICON,
ST_PARAM_READWRITE);
/**
* StIcon:icon-name:
*
* The name of the icon if the icon being displayed is a #GThemedIcon.
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon name",
@ -291,12 +276,6 @@ st_icon_class_init (StIconClass *klass)
NULL,
ST_PARAM_READWRITE);
/**
* StIcon:icon-size:
*
* The size of the icon, if greater than `0`. Other the icon sise is derived
* from the current style.
*/
props[PROP_ICON_SIZE] =
g_param_spec_int ("icon-size",
"Icon size",
@ -304,12 +283,6 @@ st_icon_class_init (StIconClass *klass)
-1, G_MAXINT, -1,
ST_PARAM_READWRITE);
/**
* StIcon:fallback-icon-name:
*
* The fallback icon name of the #StIcon. See st_icon_set_fallback_icon_name()
* for details.
*/
props[PROP_FALLBACK_ICON_NAME] =
g_param_spec_string ("fallback-icon-name",
"Fallback icon name",
@ -551,7 +524,7 @@ st_icon_update_icon_size (StIcon *icon)
/**
* st_icon_new:
*
* Create a newly allocated #StIcon.
* Create a newly allocated #StIcon
*
* Returns: A newly allocated #StIcon
*/
@ -565,10 +538,10 @@ st_icon_new (void)
* st_icon_get_icon_name:
* @icon: an #StIcon
*
* This is a convenience method to get the icon name of the current icon, if it
* is currenyly a #GThemedIcon, or %NULL otherwise.
* This is a convenience method to get the icon name of the #GThemedIcon that
* is currently set.
*
* Returns: (transfer none) (nullable): The name of the icon or %NULL
* Returns: (transfer none): The name of the icon or %NULL if no icon is set
*/
const gchar *
st_icon_get_icon_name (StIcon *icon)
@ -619,7 +592,7 @@ st_icon_set_icon_name (StIcon *icon,
*
* Gets the current #GIcon in use.
*
* Returns: (nullable) (transfer none): The current #GIcon, if set, otherwise %NULL
* Returns: (transfer none): The current #GIcon, if set, otherwise %NULL
*/
GIcon *
st_icon_get_gicon (StIcon *icon)

View File

@ -329,10 +329,7 @@ g_loadable_icon_interface_init (GLoadableIconIface *iface)
*
* Creates a new #StImageContent, a simple content for sized images.
*
* See #ClutterImage for setting the actual image to display or #StIcon for
* displaying icons.
*
* Returns: (transfer full): the newly created #StImageContent content
* Return value: (transfer full): the newly created #StImageContent content
* Use g_object_unref() when done.
*/
ClutterContent *

View File

@ -274,11 +274,6 @@ st_label_class_init (StLabelClass *klass)
widget_class->style_changed = st_label_style_changed;
widget_class->get_accessible_type = st_label_accessible_get_type;
/**
* StLabel:clutter-text:
*
* The internal #ClutterText actor supporting the label
*/
props[PROP_CLUTTER_TEXT] =
g_param_spec_object ("clutter-text",
"Clutter Text",
@ -286,11 +281,6 @@ st_label_class_init (StLabelClass *klass)
CLUTTER_TYPE_TEXT,
ST_PARAM_READABLE);
/**
* StLabel:text:
*
* The current text being display in the #StLabel.
*/
props[PROP_TEXT] =
g_param_spec_string ("text",
"Text",
@ -324,9 +314,9 @@ st_label_init (StLabel *label)
/**
* st_label_new:
* @text: (nullable): text to set the label to
* @text: text to set the label to
*
* Create a new #StLabel with the label specified by @text.
* Create a new #StLabel with the specified label
*
* Returns: a new #StLabel
*/
@ -345,10 +335,9 @@ st_label_new (const gchar *text)
* st_label_get_text:
* @label: a #StLabel
*
* Get the text displayed on the label.
* Get the text displayed on the label
*
* Returns: (transfer none): the text for the label. This must not be freed by
* the application
* Returns: the text for the label. This must not be freed by the application
*/
const gchar *
st_label_get_text (StLabel *label)
@ -361,9 +350,9 @@ st_label_get_text (StLabel *label)
/**
* st_label_set_text:
* @label: a #StLabel
* @text: (nullable): text to set the label to
* @text: text to set the label to
*
* Sets the text displayed by the label.
* Sets the text displayed on the label
*/
void
st_label_set_text (StLabel *label,
@ -393,11 +382,10 @@ st_label_set_text (StLabel *label,
* st_label_get_clutter_text:
* @label: a #StLabel
*
* Retrieve the internal #ClutterText used by @label so that extra parameters
* can be set.
* Retrieve the internal #ClutterText so that extra parameters can be set
*
* Returns: (transfer none): the #ClutterText used by #StLabel. The actor
* is owned by the #StLabel and should not be destroyed by the application.
* Returns: (transfer none): ethe #ClutterText used by #StLabel. The label
* is owned by the #StLabel and should not be unref'ed by the application.
*/
ClutterActor*
st_label_get_clutter_text (StLabel *label)

View File

@ -133,23 +133,12 @@ st_password_entry_class_init (StPasswordEntryClass *klass)
st_entry_class->secondary_icon_clicked = st_password_entry_secondary_icon_clicked;
/**
* StPasswordEntry:password-visible:
*
* Whether the text in the entry is masked for privacy.
*/
props[PROP_PASSWORD_VISIBLE] = g_param_spec_boolean ("password-visible",
"Password visible",
"Whether the text in the entry is masked or not",
"Whether to text in the entry is masked or not",
FALSE,
ST_PARAM_READWRITE);
/**
* StPasswordEntry:show-peek-icon:
*
* Whether to display an icon button to toggle the masking enabled by the
* #StPasswordEntry:password-visible property.
*/
props[PROP_SHOW_PEEK_ICON] = g_param_spec_boolean ("show-peek-icon",
"Show peek icon",
"Whether to show the password peek icon",
@ -213,15 +202,12 @@ st_password_entry_new (void)
/**
* st_password_entry_set_show_peek_icon:
* @entry: a #StPasswordEntry
* @value: %TRUE to show the peek-icon in the entry
* @value: #TRUE to show the peek-icon in the entry, #FALSE otherwise
*
* Sets whether to show or hide the peek-icon in the password entry. If %TRUE,
* a icon button for temporarily unmasking the password will be shown at the
* end of the entry.
* Sets whether to show or hide the peek-icon in the password entry.
*/
void
st_password_entry_set_show_peek_icon (StPasswordEntry *entry,
gboolean value)
st_password_entry_set_show_peek_icon (StPasswordEntry *entry, gboolean value)
{
StPasswordEntryPrivate *priv;
@ -245,8 +231,6 @@ st_password_entry_set_show_peek_icon (StPasswordEntry *entry,
* @entry: a #StPasswordEntry
*
* Gets whether peek-icon is shown or hidden in the password entry.
*
* Returns: %TRUE if visible
*/
gboolean
st_password_entry_get_show_peek_icon (StPasswordEntry *entry)
@ -262,13 +246,12 @@ st_password_entry_get_show_peek_icon (StPasswordEntry *entry)
/**
* st_password_entry_set_password_visible:
* @entry: a #StPasswordEntry
* @value: %TRUE to show the password in the entry, #FALSE otherwise
* @value: #TRUE to show the password in the entry, #FALSE otherwise
*
* Sets whether to show or hide text in the password entry.
*/
void
st_password_entry_set_password_visible (StPasswordEntry *entry,
gboolean value)
st_password_entry_set_password_visible (StPasswordEntry *entry, gboolean value)
{
StPasswordEntryPrivate *priv;
ClutterActor *clutter_text;
@ -301,8 +284,6 @@ st_password_entry_set_password_visible (StPasswordEntry *entry,
* @entry: a #StPasswordEntry
*
* Gets whether the text is masked in the password entry.
*
* Returns: %TRUE if visible
*/
gboolean
st_password_entry_get_password_visible (StPasswordEntry *entry)

View File

@ -508,8 +508,6 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0);
clutter_actor_get_position (actor, &x, &y);
x *= resource_scale;
y *= resource_scale;
cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
cogl_framebuffer_translate (fb, -x, -y, 0);

View File

@ -538,21 +538,11 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
widget_class->style_changed = st_scroll_bar_style_changed;
/**
* StScrollBar:adjustment:
*
* The #StAdjustment controlling the #StScrollBar.
*/
props[PROP_ADJUSTMENT] =
g_param_spec_object ("adjustment", "Adjustment", "The adjustment",
ST_TYPE_ADJUSTMENT,
ST_PARAM_READWRITE);
/**
* StScrollBar:vertical:
*
* Whether the #StScrollBar is vertical. If %FALSE it is horizontal.
*/
props[PROP_VERTICAL] =
g_param_spec_boolean ("vertical",
"Vertical Orientation",
@ -562,13 +552,6 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
g_object_class_install_properties (object_class, N_PROPS, props);
/**
* StScrollBar::scroll-start:
* @bar: a #StScrollBar
*
* Emitted when the #StScrollBar begins scrolling.
*/
signals[SCROLL_START] =
g_signal_new ("scroll-start",
G_TYPE_FROM_CLASS (klass),
@ -577,12 +560,6 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
NULL, NULL, NULL,
G_TYPE_NONE, 0);
/**
* StScrollBar::scroll-stop:
* @bar: a #StScrollBar
*
* Emitted when the #StScrollBar finishes scrolling.
*/
signals[SCROLL_STOP] =
g_signal_new ("scroll-stop",
G_TYPE_FROM_CLASS (klass),
@ -1005,9 +982,10 @@ st_scroll_bar_set_adjustment (StScrollBar *bar,
* st_scroll_bar_get_adjustment:
* @bar: a #StScrollbar
*
* Gets the #StAdjustment that controls the current position of @bar.
* Gets the adjustment object that stores the current position
* of the scrollbar.
*
* Returns: (transfer none): an #StAdjustment
* Return value: (transfer none): the adjustment
*/
StAdjustment *
st_scroll_bar_get_adjustment (StScrollBar *bar)

View File

@ -389,12 +389,6 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
offscreen_class->create_texture = st_scroll_view_fade_create_texture;
offscreen_class->paint_target = st_scroll_view_fade_paint_target;
/**
* StScrollViewFade:vfade-offset:
*
* The height of area which is faded at the top and bottom edges of the
* #StScrollViewFade.
*/
props[PROP_VFADE_OFFSET] =
g_param_spec_float ("vfade-offset",
"Vertical Fade Offset",
@ -402,12 +396,6 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
0.f, G_MAXFLOAT, DEFAULT_FADE_OFFSET,
ST_PARAM_READWRITE);
/**
* StScrollViewFade:hfade-offset:
*
* The height of area which is faded at the left and right edges of the
* #StScrollViewFade.
*/
props[PROP_HFADE_OFFSET] =
g_param_spec_float ("hfade-offset",
"Horizontal Fade Offset",
@ -415,11 +403,6 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
0.f, G_MAXFLOAT, DEFAULT_FADE_OFFSET,
ST_PARAM_READWRITE);
/**
* StScrollViewFade:fade-edges:
*
* Whether the faded area should extend to the edges of the #StScrollViewFade.
*/
props[PROP_FADE_EDGES] =
g_param_spec_boolean ("fade-edges",
"Fade Edges",
@ -437,13 +420,6 @@ st_scroll_view_fade_init (StScrollViewFade *self)
self->hfade_offset = DEFAULT_FADE_OFFSET;
}
/**
* st_scroll_view_fade_new:
*
* Create a new #StScrollViewFade.
*
* Returns: (transfer full): a new #StScrollViewFade
*/
ClutterEffect *
st_scroll_view_fade_new (void)
{

View File

@ -172,8 +172,8 @@ st_scroll_view_get_property (GObject *object,
*/
void
st_scroll_view_update_fade_effect (StScrollView *scroll,
float vfade_offset,
float hfade_offset)
float vfade_offset,
float hfade_offset)
{
StScrollViewPrivate *priv = ST_SCROLL_VIEW (scroll)->priv;
@ -830,11 +830,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
widget_class->style_changed = st_scroll_view_style_changed;
/**
* StScrollView:hscroll:
*
* The horizontal #StScrollBar for the #StScrollView.
*/
props[PROP_HSCROLL] =
g_param_spec_object ("hscroll",
"StScrollBar",
@ -842,11 +837,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE);
/**
* StScrollView:vscroll:
*
* The vertical #StScrollBar for the #StScrollView.
*/
props[PROP_VSCROLL] =
g_param_spec_object ("vscroll",
"StScrollBar",
@ -854,11 +844,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE);
/**
* StScrollView:vscrollbar-policy:
*
* The #StPolicyType for when to show the vertical #StScrollBar.
*/
props[PROP_VSCROLLBAR_POLICY] =
g_param_spec_enum ("vscrollbar-policy",
"Vertical Scrollbar Policy",
@ -867,11 +852,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
ST_POLICY_AUTOMATIC,
ST_PARAM_READWRITE);
/**
* StScrollView:hscrollbar-policy:
*
* The #StPolicyType for when to show the horizontal #StScrollBar.
*/
props[PROP_HSCROLLBAR_POLICY] =
g_param_spec_enum ("hscrollbar-policy",
"Horizontal Scrollbar Policy",
@ -880,11 +860,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
ST_POLICY_AUTOMATIC,
ST_PARAM_READWRITE);
/**
* StScrollView:hscrollbar-visible:
*
* Whether the horizontal #StScrollBar is visible.
*/
props[PROP_HSCROLLBAR_VISIBLE] =
g_param_spec_boolean ("hscrollbar-visible",
"Horizontal Scrollbar Visibility",
@ -892,11 +867,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
TRUE,
ST_PARAM_READABLE);
/**
* StScrollView:vscrollbar-visible:
*
* Whether the vertical #StScrollBar is visible.
*/
props[PROP_VSCROLLBAR_VISIBLE] =
g_param_spec_boolean ("vscrollbar-visible",
"Vertical Scrollbar Visibility",
@ -904,11 +874,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
TRUE,
ST_PARAM_READABLE);
/**
* StScrollView:enable-mouse-scrolling:
*
* Whether to enable automatic mouse wheel scrolling.
*/
props[PROP_MOUSE_SCROLL] =
g_param_spec_boolean ("enable-mouse-scrolling",
"Enable Mouse Scrolling",
@ -916,11 +881,6 @@ st_scroll_view_class_init (StScrollViewClass *klass)
TRUE,
ST_PARAM_READWRITE);
/**
* StScrollView:overlay-scrollbars:
*
* Whether scrollbars are painted on top of the content.
*/
props[PROP_OVERLAY_SCROLLBARS] =
g_param_spec_boolean ("overlay-scrollbars",
"Use Overlay Scrollbars",
@ -1035,13 +995,6 @@ clutter_container_iface_init (ClutterContainerIface *iface)
iface->remove = st_scroll_view_remove;
}
/**
* st_scroll_view_new:
*
* Create a new #StScrollView.
*
* Returns: (transfer full): a new #StScrollView
*/
StWidget *
st_scroll_view_new (void)
{
@ -1052,9 +1005,9 @@ st_scroll_view_new (void)
* st_scroll_view_get_hscroll_bar:
* @scroll: a #StScrollView
*
* Gets the horizontal #StScrollBar of the #StScrollView.
* Gets the horizontal scrollbar of the scrollbiew
*
* Returns: (transfer none): the horizontal scrollbar
* Return value: (transfer none): the horizontal #StScrollBar
*/
ClutterActor *
st_scroll_view_get_hscroll_bar (StScrollView *scroll)
@ -1068,9 +1021,9 @@ st_scroll_view_get_hscroll_bar (StScrollView *scroll)
* st_scroll_view_get_vscroll_bar:
* @scroll: a #StScrollView
*
* Gets the vertical scrollbar of the #StScrollView.
* Gets the vertical scrollbar of the scrollbiew
*
* Returns: (transfer none): the vertical #StScrollBar
* Return value: (transfer none): the vertical #StScrollBar
*/
ClutterActor *
st_scroll_view_get_vscroll_bar (StScrollView *scroll)
@ -1080,14 +1033,6 @@ st_scroll_view_get_vscroll_bar (StScrollView *scroll)
return scroll->priv->vscroll;
}
/**
* st_scroll_view_get_column_size:
* @scroll: a #StScrollView
*
* Get the step increment of the horizontal plane.
*
* Returns: the horizontal step increment
*/
gfloat
st_scroll_view_get_column_size (StScrollView *scroll)
{
@ -1102,13 +1047,6 @@ st_scroll_view_get_column_size (StScrollView *scroll)
return column_size;
}
/**
* st_scroll_view_set_column_size:
* @scroll: a #StScrollView
* @column_size: horizontal step increment
*
* Set the step increment of the horizontal plane to @column_size.
*/
void
st_scroll_view_set_column_size (StScrollView *scroll,
gfloat column_size)
@ -1131,14 +1069,6 @@ st_scroll_view_set_column_size (StScrollView *scroll,
}
}
/**
* st_scroll_view_get_row_size:
* @scroll: a #StScrollView
*
* Get the step increment of the vertical plane.
*
* Returns: the vertical step increment
*/
gfloat
st_scroll_view_get_row_size (StScrollView *scroll)
{
@ -1153,13 +1083,6 @@ st_scroll_view_get_row_size (StScrollView *scroll)
return row_size;
}
/**
* st_scroll_view_set_row_size:
* @scroll: a #StScrollView
* @row_size: vertical step increment
*
* Set the step increment of the vertical plane to @row_size.
*/
void
st_scroll_view_set_row_size (StScrollView *scroll,
gfloat row_size)
@ -1182,13 +1105,6 @@ st_scroll_view_set_row_size (StScrollView *scroll,
}
}
/**
* st_scroll_view_set_mouse_scrolling:
* @scroll: a #StScrollView
* @enabled: %TRUE or %FALSE
*
* Sets automatic mouse wheel scrolling to enabled or disabled.
*/
void
st_scroll_view_set_mouse_scrolling (StScrollView *scroll,
gboolean enabled)
@ -1209,14 +1125,6 @@ st_scroll_view_set_mouse_scrolling (StScrollView *scroll,
}
}
/**
* st_scroll_view_get_mouse_scrolling:
* @scroll: a #StScrollView
*
* Get whether automatic mouse wheel scrolling is enabled or disabled.
*
* Returns: %TRUE if enabled, %FALSE otherwise
*/
gboolean
st_scroll_view_get_mouse_scrolling (StScrollView *scroll)
{
@ -1259,9 +1167,7 @@ st_scroll_view_set_overlay_scrollbars (StScrollView *scroll,
* st_scroll_view_get_overlay_scrollbars:
* @scroll: A #StScrollView
*
* Gets whether scrollbars are painted on top of the content.
*
* Returns: %TRUE if enabled, %FALSE otherwise
* Gets the value set by st_scroll_view_set_overlay_scrollbars().
*/
gboolean
st_scroll_view_get_overlay_scrollbars (StScrollView *scroll)

View File

@ -86,40 +86,6 @@ st_scrollable_default_init (StScrollableInterface *g_iface)
if (!initialized)
{
/**
* StScrollable:hadjustment:
*
* The horizontal #StAdjustment used by the #StScrollable.
*
* Implementations should override this property to provide read-write
* access to the #StAdjustment.
*
* JavaScript code may override this as demonstrated below:
*
* |[<!-- language="JavaScript" -->
* var MyScrollable = GObject.registerClass({
* Properties: {
* 'hadjustment': GObject.ParamSpec.override(
* 'hadjustment',
* St.Scrollable
* )
* }
* }, class MyScrollable extends St.Scrollable {
*
* get hadjustment() {
* return this._hadjustment || null;
* }
*
* set hadjustment(adjustment) {
* if (this.hadjustment === adjustment)
* return;
*
* this._hadjustment = adjustment;
* this.notify('hadjustment');
* }
* });
* ]|
*/
g_object_interface_install_property (g_iface,
g_param_spec_object ("hadjustment",
"StAdjustment",
@ -127,17 +93,6 @@ st_scrollable_default_init (StScrollableInterface *g_iface)
ST_TYPE_ADJUSTMENT,
ST_PARAM_READWRITE));
/**
* StScrollable:vadjustment:
*
* The vertical #StAdjustment used by the #StScrollable.
*
* Implementations should override this property to provide read-write
* access to the #StAdjustment.
*
* See #StScrollable:hadjustment for an example of how to override this
* property in JavaScript code.
*/
g_object_interface_install_property (g_iface,
g_param_spec_object ("vadjustment",
"StAdjustment",
@ -149,18 +104,6 @@ st_scrollable_default_init (StScrollableInterface *g_iface)
}
}
/**
* st_scrollable_set_adjustments:
* @scrollable: a #StScrollable
* @hadjustment: the horizontal #StAdjustment
* @vadjustment: the vertical #StAdjustment
*
* This method should be implemented by classes implementing the #StScrollable
* interface.
*
* JavaScript code should do this by overriding the `vfunc_set_adjustments()`
* method.
*/
void
st_scrollable_set_adjustments (StScrollable *scrollable,
StAdjustment *hadjustment,
@ -173,17 +116,11 @@ st_scrollable_set_adjustments (StScrollable *scrollable,
/**
* st_scroll_bar_get_adjustments:
* @hadjustment: (transfer none) (out) (optional): location to store the horizontal adjustment, or %NULL
* @vadjustment: (transfer none) (out) (optional): location to store the vertical adjustment, or %NULL
* @hadjustment: (transfer none) (out) (optional) (nullable): location to store the horizontal adjustment, or %NULL
* @vadjustment: (transfer none) (out) (optional) (nullable): location to store the vertical adjustment, or %NULL
*
* Gets the adjustment objects that store the offsets of the scrollable widget
* into its possible scrolling area.
*
* This method should be implemented by classes implementing the #StScrollable
* interface.
*
* JavaScript code should do this by overriding the `vfunc_get_adjustments()`
* method.
*/
void
st_scrollable_get_adjustments (StScrollable *scrollable,

View File

@ -199,89 +199,41 @@ st_settings_class_init (StSettingsClass *klass)
object_class->set_property = st_settings_set_property;
object_class->get_property = st_settings_get_property;
/**
* StSettings:enable-animations:
*
* Whether animations are enabled.
*/
props[PROP_ENABLE_ANIMATIONS] = g_param_spec_boolean ("enable-animations",
"Enable animations",
"Enable animations",
TRUE,
ST_PARAM_READABLE);
/**
* StSettings:primary-paste:
*
* Whether pasting from the `PRIMARY` selection is supported (eg. middle-click
* paste).
*/
props[PROP_PRIMARY_PASTE] = g_param_spec_boolean ("primary-paste",
"Primary paste",
"Primary paste",
TRUE,
ST_PARAM_READABLE);
/**
* StSettings:drag-threshold:
*
* The threshold before a drag operation begins.
*/
props[PROP_DRAG_THRESHOLD] = g_param_spec_int ("drag-threshold",
"Drag threshold",
"Drag threshold",
0, G_MAXINT, 8,
ST_PARAM_READABLE);
/**
* StSettings:font-name:
*
* The current font name.
*/
props[PROP_FONT_NAME] = g_param_spec_string ("font-name",
"font name",
"font name",
"",
ST_PARAM_READABLE);
/**
* StSettings:gtk-theme:
*
* The current GTK theme.
*/
props[PROP_GTK_THEME] = g_param_spec_string ("gtk-theme",
"GTK Theme",
"GTK Theme",
"GTK+ Theme",
"GTK+ Theme",
"",
ST_PARAM_READABLE);
/**
* StSettings:gtk-icon-theme:
*
* The current GTK icon theme
*/
props[PROP_GTK_ICON_THEME] = g_param_spec_string ("gtk-icon-theme",
"GTK Icon Theme",
"GTK Icon Theme",
"GTK+ Icon Theme",
"GTK+ Icon Theme",
"",
ST_PARAM_READABLE);
/**
* StSettings:magnifier-active:
*
* Whether the accessibility magnifier is active.
*/
props[PROP_MAGNIFIER_ACTIVE] = g_param_spec_boolean("magnifier-active",
"Magnifier is active",
"Whether the a11y magnifier is active",
"Weather the a11y magnifier is active",
FALSE,
ST_PARAM_READABLE);
/**
* StSettings:slow-down-factor:
*
* The slow-down factor applied to all animation durations.
*/
props[PROP_SLOW_DOWN_FACTOR] = g_param_spec_double("slow-down-factor",
"Slow down factor",
"Factor applied to all animation durations",
@ -386,9 +338,9 @@ st_settings_init (StSettings *settings)
/**
* st_settings_get:
*
* Gets the global #StSettings object.
* Gets the #StSettings
*
* Returns: (transfer none): the global #StSettings object
* Returns: (transfer none): a settings object
**/
StSettings *
st_settings_get (void)

View File

@ -117,7 +117,7 @@ st_shadow_unref (StShadow *shadow)
* compare non-identically if they differ only by floating point rounding
* errors.
*
* Returns: %TRUE if the two shadows are identical
* Return value: %TRUE if the two shadows are identical
*/
gboolean
st_shadow_equal (StShadow *shadow,
@ -216,13 +216,6 @@ st_shadow_helper_new (StShadow *shadow)
return helper;
}
/**
* st_shadow_helper_update:
* @helper: a #StShadowHelper
* @source: a #ClutterActor
*
* Update @helper from @source.
*/
void
st_shadow_helper_update (StShadowHelper *helper,
ClutterActor *source)

View File

@ -100,12 +100,6 @@ st_texture_cache_class_init (StTextureCacheClass *klass)
gobject_class->dispose = st_texture_cache_dispose;
gobject_class->finalize = st_texture_cache_finalize;
/**
* StTextureCache::icon-theme-changed:
* @self: a #StTextureCache
*
* Emitted when the icon theme is changed.
*/
signals[ICON_THEME_CHANGED] =
g_signal_new ("icon-theme-changed",
G_TYPE_FROM_CLASS (klass),
@ -114,13 +108,6 @@ st_texture_cache_class_init (StTextureCacheClass *klass)
NULL, NULL, NULL,
G_TYPE_NONE, 0);
/**
* StTextureCache::texture-file-changed:
* @self: a #StTextureCache
* @file: a #GFile
*
* Emitted when the source file of a texture is changed.
*/
signals[TEXTURE_FILE_CHANGED] =
g_signal_new ("texture-file-changed",
G_TYPE_FROM_CLASS (klass),
@ -812,7 +799,7 @@ st_texture_cache_free_bind (gpointer data)
/**
* st_texture_cache_bind_cairo_surface_property:
* @cache: A #StTextureCache
* @cache:
* @object: A #GObject with a property @property_name of type #cairo_surface_t
* @property_name: Name of a property
*
@ -823,7 +810,7 @@ st_texture_cache_free_bind (gpointer data)
* If the source object is destroyed, the texture will continue to show the last
* value of the property.
*
* Returns: (transfer none): A new #GIcon
* Return value: (transfer none): A new #GIcon
*/
GIcon *
st_texture_cache_bind_cairo_surface_property (StTextureCache *cache,
@ -892,7 +879,7 @@ st_texture_cache_load (StTextureCache *cache,
/**
* ensure_request:
* @cache: A #StTextureCache
* @cache:
* @key: A cache key
* @policy: Cache policy
* @request: (out): If no request is outstanding, one will be created and returned here
@ -945,8 +932,8 @@ ensure_request (StTextureCache *cache,
/**
* st_texture_cache_load_gicon:
* @cache: A #StTextureCache
* @theme_node: (nullable): The #StThemeNode to use for colors, or %NULL
* @cache: The texture cache instance
* @theme_node: (nullable): The #StThemeNode to use for colors, or NULL
* if the icon must not be recolored
* @icon: the #GIcon to load
* @size: Size of themed
@ -957,7 +944,7 @@ ensure_request (StTextureCache *cache,
* icon isn't loaded already, the texture will be filled
* asynchronously.
*
* Returns: (transfer none) (nullable): A new #ClutterActor for the icon, or %NULL if not found
* Return Value: (transfer none): A new #ClutterActor for the icon, or %NULL if not found
*/
ClutterActor *
st_texture_cache_load_gicon (StTextureCache *cache,
@ -1384,7 +1371,7 @@ st_texture_cache_load_sliced_image (StTextureCache *cache,
/**
* st_texture_cache_load_file_async:
* @cache: A #StTextureCache
* @cache: The texture cache instance
* @file: a #GFile of the image file from which to create a pixbuf
* @available_width: available width for the image, can be -1 if not limited
* @available_height: available height for the image, can be -1 if not limited
@ -1395,7 +1382,7 @@ st_texture_cache_load_sliced_image (StTextureCache *cache,
* size of zero. At some later point, either the image will be loaded successfully
* and at that point size will be negotiated, or upon an error, no image will be set.
*
* Returns: (transfer none): A new #ClutterActor with no image loaded initially.
* Return value: (transfer none): A new #ClutterActor with no image loaded initially.
*/
ClutterActor *
st_texture_cache_load_file_async (StTextureCache *cache,
@ -1625,7 +1612,7 @@ static StTextureCache *instance = NULL;
/**
* st_texture_cache_get_default:
*
* Returns: (transfer none): The global texture cache
* Return value: (transfer none): The global texture cache
*/
StTextureCache*
st_texture_cache_get_default (void)
@ -1635,13 +1622,6 @@ st_texture_cache_get_default (void)
return instance;
}
/**
* st_texture_cache_rescan_icon_theme:
*
* Rescan the current icon theme, if necessary.
*
* Returns: %TRUE if the icon theme has changed and needed to be reloaded.
*/
gboolean
st_texture_cache_rescan_icon_theme (StTextureCache *cache)
{

View File

@ -118,23 +118,16 @@ st_theme_context_class_init (StThemeContextClass *klass)
/**
* StThemeContext:scale-factor:
*
* The scaling factor used for HiDPI scaling.
* The scaling factor used or high dpi scaling.
*/
g_object_class_install_property (object_class,
PROP_SCALE_FACTOR,
g_param_spec_int ("scale-factor",
"Scale factor",
"Integer scale factor used for HiDPI scaling",
"Integer scale factor used for high dpi scaling",
0, G_MAXINT, 1,
ST_PARAM_READWRITE));
/**
* StThemeContext::changed:
* @self: a #StThemeContext
*
* Emitted when the icon theme, font, resolution, scale factor or the current
* theme's custom stylesheets change.
*/
signals[CHANGED] =
g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
@ -221,8 +214,6 @@ st_theme_context_get_property (GObject *object,
* This can be useful in testing scenarios, or if using StThemeContext
* with something other than #ClutterActor objects, but you generally
* should use st_theme_context_get_for_stage() instead.
*
* Returns: (transfer full): a new #StThemeContext
*/
StThemeContext *
st_theme_context_new (void)
@ -305,7 +296,7 @@ on_icon_theme_changed (StTextureCache *cache,
*
* Gets a singleton theme context associated with the stage.
*
* Returns: (transfer none): the singleton theme context for the stage
* Return value: (transfer none): the singleton theme context for the stage
*/
StThemeContext *
st_theme_context_get_for_stage (ClutterStage *stage)
@ -329,7 +320,6 @@ st_theme_context_get_for_stage (ClutterStage *stage)
/**
* st_theme_context_set_theme:
* @context: a #StThemeContext
* @theme: a #StTheme
*
* Sets the default set of theme stylesheets for the context. This theme will
* be used for the root node and for nodes descending from it, unless some other
@ -368,7 +358,7 @@ st_theme_context_set_theme (StThemeContext *context,
*
* Gets the default theme for the context. See st_theme_context_set_theme()
*
* Returns: (transfer none): the default theme for the context
* Return value: (transfer none): the default theme for the context
*/
StTheme *
st_theme_context_get_theme (StThemeContext *context)
@ -386,7 +376,7 @@ st_theme_context_get_theme (StThemeContext *context)
* Sets the default font for the theme context. This is the font that
* is inherited by the root node of the tree of theme nodes. If the
* font is not overriden, then this font will be used. If the font is
* partially modified (for example, with 'font-size: 110%'), then that
* partially modified (for example, with 'font-size: 110%', then that
* modification is based on this font.
*/
void
@ -411,7 +401,7 @@ st_theme_context_set_font (StThemeContext *context,
*
* Gets the default font for the theme context. See st_theme_context_set_font().
*
* Returns: the default font for the theme context.
* Return value: the default font for the theme context.
*/
const PangoFontDescription *
st_theme_context_get_font (StThemeContext *context)
@ -429,7 +419,7 @@ st_theme_context_get_font (StThemeContext *context)
* context. For the node tree associated with a stage, this node represents
* styles applied to the stage itself.
*
* Returns: (transfer none): the root node of the context's style tree
* Return value: (transfer none): the root node of the context's style tree
*/
StThemeNode *
st_theme_context_get_root_node (StThemeContext *context)
@ -449,7 +439,7 @@ st_theme_context_get_root_node (StThemeContext *context)
* Return an existing node matching @node, or if that isn't possible,
* @node itself.
*
* Returns: (transfer none): a node with the same properties as @node
* Return value: (transfer none): a node with the same properties as @node
*/
StThemeNode *
st_theme_context_intern_node (StThemeContext *context,
@ -471,7 +461,7 @@ st_theme_context_intern_node (StThemeContext *context,
*
* Return the current scale factor of @context.
*
* Returns: an integer scale factor
* Return value: a scale factor
*/
int
st_theme_context_get_scale_factor (StThemeContext *context)

View File

@ -180,11 +180,11 @@ split_on_whitespace (const gchar *s)
* @pseudo_class: (nullable): a whitespace-separated list of pseudo-classes
* (like 'hover' or 'visited') to match CSS rules against
*
* Creates a new #StThemeNode. Once created, a node is immutable. If any
* Creates a new #StThemeNode. Once created, a node is immutable. Of any
* of the attributes of the node (like the @element_class) change the node
* and its child nodes must be destroyed and recreated.
*
* Returns: (transfer full): a new #StThemeNode
* Return value: (transfer full): the theme node
*/
StThemeNode *
st_theme_node_new (StThemeContext *context,
@ -229,8 +229,8 @@ st_theme_node_new (StThemeContext *context,
*
* Gets the parent themed element node.
*
* Returns: (nullable) (transfer none): the parent #StThemeNode, or %NULL if
* this is the root node of the tree of theme elements.
* Return value: (transfer none): the parent #StThemeNode, or %NULL if this
* is the root node of the tree of theme elements.
*/
StThemeNode *
st_theme_node_get_parent (StThemeNode *node)
@ -246,7 +246,7 @@ st_theme_node_get_parent (StThemeNode *node)
*
* Gets the theme stylesheet set that styles this node
*
* Returns: (transfer none): the theme stylesheet set
* Return value: (transfer none): the theme stylesheet set
*/
StTheme *
st_theme_node_get_theme (StThemeNode *node)
@ -256,14 +256,6 @@ st_theme_node_get_theme (StThemeNode *node)
return node->theme;
}
/**
* st_theme_node_get_element_type:
* @node: a #StThemeNode
*
* Get the element #GType for @node.
*
* Returns: the element type
*/
GType
st_theme_node_get_element_type (StThemeNode *node)
{
@ -272,14 +264,6 @@ st_theme_node_get_element_type (StThemeNode *node)
return node->element_type;
}
/**
* st_theme_node_get_element_id:
* @node: a #StThemeNode
*
* Get the unqiue element ID for @node.
*
* Returns: (transfer none): the element's ID
*/
const char *
st_theme_node_get_element_id (StThemeNode *node)
{
@ -290,9 +274,6 @@ st_theme_node_get_element_id (StThemeNode *node)
/**
* st_theme_node_get_element_classes:
* @node: a #StThemeNode
*
* Get the list of element classes for @node.
*
* Returns: (transfer none): the element's classes
*/
@ -306,9 +287,6 @@ st_theme_node_get_element_classes (StThemeNode *node)
/**
* st_theme_node_get_pseudo_classes:
* @node: a #StThemeNode
*
* Get the list of pseudo-classes for @node (eg. `:focused`).
*
* Returns: (transfer none): the element's pseudo-classes
*/
@ -329,13 +307,21 @@ st_theme_node_get_pseudo_classes (StThemeNode *node)
* the same CSS rules and have the same style properties. However, two
* nodes that have ended up with identical style properties do not
* necessarily compare equal.
*
* In detail, @node_a and @node_b are considered equal if and only if:
*
* - they share the same #StTheme and #StThemeContext
* - they have the same parent
* - they have the same element type
* - their id, class, pseudo-class and inline-style match
* In detail, @node_a and @node_b are considered equal iff
* <itemizedlist>
* <listitem>
* <para>they share the same #StTheme and #StThemeContext</para>
* </listitem>
* <listitem>
* <para>they have the same parent</para>
* </listitem>
* <listitem>
* <para>they have the same element type</para>
* </listitem>
* <listitem>
* <para>their id, class, pseudo-class and inline-style match</para>
* </listitem>
* </itemizedlist>
*
* Returns: %TRUE if @node_a equals @node_b
*/
@ -397,14 +383,6 @@ st_theme_node_equal (StThemeNode *node_a, StThemeNode *node_b)
return TRUE;
}
/**
* st_theme_node_hash:
* @node: a #StThemeNode
*
* Converts @node to a hash value.
*
* Returns: a hash value corresponding to @node
*/
guint
st_theme_node_hash (StThemeNode *node)
{
@ -659,7 +637,7 @@ get_color_from_term (StThemeNode *node,
*
* See also st_theme_node_get_color(), which provides a simpler API.
*
* Returns: %TRUE if the property was found in the properties for this
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.)
*/
gboolean
@ -749,7 +727,7 @@ st_theme_node_get_color (StThemeNode *node,
*
* See also st_theme_node_get_double(), which provides a simpler API.
*
* Returns: %TRUE if the property was found in the properties for this
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.)
*/
gboolean
@ -802,7 +780,7 @@ st_theme_node_lookup_double (StThemeNode *node,
* Generically looks up a property containing a single time value,
* which is converted to milliseconds.
*
* Returns: %TRUE if the property was found in the properties for this
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.)
*/
gboolean
@ -859,7 +837,7 @@ st_theme_node_lookup_time (StThemeNode *node,
* and lets you handle the case where the theme does not specify the
* indicated value.
*
* Returns: the value found. If @property_name is not
* Return value: the value found. If @property_name is not
* found, a warning will be logged and 0 will be returned.
*/
gdouble
@ -894,7 +872,7 @@ st_theme_node_get_double (StThemeNode *node,
*
* See also st_theme_node_get_url(), which provides a simpler API.
*
* Returns: %TRUE if the property was found in the properties for this
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.)
*/
gboolean
@ -950,7 +928,7 @@ st_theme_node_lookup_url (StThemeNode *node,
* and lets you handle the case where the theme does not specify the
* indicated value.
*
* Returns: (nullable) (transfer full): the newly allocated value if found.
* Returns: (transfer full): the newly allocated value if found.
* If @property_name is not found, a warning will be logged and %NULL
* will be returned.
*/
@ -1191,7 +1169,7 @@ get_length_internal (StThemeNode *node,
*
* See also st_theme_node_get_length(), which provides a simpler API.
*
* Returns: %TRUE if the property was found in the properties for this
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.)
*/
gboolean
@ -1226,10 +1204,9 @@ st_theme_node_lookup_length (StThemeNode *node,
* this does not print a warning if the property is not found; it just
* returns 0.
*
* See also st_theme_node_lookup_length(), which provides more options. The
* returned value is in physical pixels, as opposed to logical pixels.
* See also st_theme_node_lookup_length(), which provides more options.
*
* Returns: the length, in pixels, or 0 if the property was not found.
* Return value: the length, in pixels, or 0 if the property was not found.
*/
gdouble
st_theme_node_get_length (StThemeNode *node,
@ -1830,15 +1807,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node)
node->height = node->min_height;
}
/**
* st_theme_node_get_border_width:
* @node: a #StThemeNode
* @side: a #StCorner
*
* Get the border width for @node on @side, in physical pixels.
*
* Returns: the border width in physical pixels
*/
int
st_theme_node_get_border_width (StThemeNode *node,
StSide side)
@ -1851,15 +1819,6 @@ st_theme_node_get_border_width (StThemeNode *node,
return node->border_width[side];
}
/**
* st_theme_node_get_border_radius:
* @node: a #StThemeNode
* @corner: a #StCorner
*
* Get the border radius for @node at @corner, in physical pixels.
*
* Returns: the border radius in physical pixels
*/
int
st_theme_node_get_border_radius (StThemeNode *node,
StCorner corner)
@ -1872,14 +1831,6 @@ st_theme_node_get_border_radius (StThemeNode *node,
return node->border_radius[corner];
}
/**
* st_theme_node_get_outline_width:
* @node: a #StThemeNode
*
* Get the width of the outline for @node, in physical pixels.
*
* Returns: the width in physical pixels
*/
int
st_theme_node_get_outline_width (StThemeNode *node)
{
@ -1908,14 +1859,6 @@ st_theme_node_get_outline_color (StThemeNode *node,
*color = node->outline_color;
}
/**
* st_theme_node_get_width:
* @node: a #StThemeNode
*
* Get the width for @node, in physical pixels.
*
* Returns: the width in physical pixels
*/
int
st_theme_node_get_width (StThemeNode *node)
{
@ -1925,14 +1868,6 @@ st_theme_node_get_width (StThemeNode *node)
return node->width;
}
/**
* st_theme_node_get_height:
* @node: a #StThemeNode
*
* Get the height for @node, in physical pixels.
*
* Returns: the height in physical pixels
*/
int
st_theme_node_get_height (StThemeNode *node)
{
@ -1942,14 +1877,6 @@ st_theme_node_get_height (StThemeNode *node)
return node->height;
}
/**
* st_theme_node_get_min_width:
* @node: a #StThemeNode
*
* Get the minimum width for @node, in physical pixels.
*
* Returns: the minimum width in physical pixels
*/
int
st_theme_node_get_min_width (StThemeNode *node)
{
@ -1959,14 +1886,6 @@ st_theme_node_get_min_width (StThemeNode *node)
return node->min_width;
}
/**
* st_theme_node_get_min_height:
* @node: a #StThemeNode
*
* Get the minimum height for @node, in physical pixels.
*
* Returns: the minimum height in physical pixels
*/
int
st_theme_node_get_min_height (StThemeNode *node)
{
@ -1976,14 +1895,6 @@ st_theme_node_get_min_height (StThemeNode *node)
return node->min_height;
}
/**
* st_theme_node_get_max_width:
* @node: a #StThemeNode
*
* Get the maximum width for @node, in physical pixels.
*
* Returns: the maximum width in physical pixels
*/
int
st_theme_node_get_max_width (StThemeNode *node)
{
@ -1993,14 +1904,6 @@ st_theme_node_get_max_width (StThemeNode *node)
return node->max_width;
}
/**
* st_theme_node_get_max_height:
* @node: a #StThemeNode
*
* Get the maximum height for @node, in physical pixels.
*
* Returns: the maximum height in physical pixels
*/
int
st_theme_node_get_max_height (StThemeNode *node)
{
@ -2367,16 +2270,6 @@ st_theme_node_get_border_color (StThemeNode *node,
*color = node->border_color[side];
}
/**
* st_theme_node_get_padding:
* @node: a #StThemeNode
* @side: a #StSide
*
* Get the padding for @node on @side, in physical pixels. This corresponds to
* the CSS properties such as `padding-top`.
*
* Returns: the padding size in physical pixels
*/
double
st_theme_node_get_padding (StThemeNode *node,
StSide side)
@ -2389,16 +2282,6 @@ st_theme_node_get_padding (StThemeNode *node,
return node->padding[side];
}
/**
* st_theme_node_get_margin:
* @node: a #StThemeNode
* @side: a #StSide
*
* Get the margin for @node on @side, in physical pixels. This corresponds to
* the CSS properties such as `margin-top`.
*
* Returns: the margin size in physical pixels
*/
double
st_theme_node_get_margin (StThemeNode *node,
StSide side)
@ -2443,15 +2326,6 @@ st_theme_node_get_transition_duration (StThemeNode *node)
return factor * node->transition_duration;
}
/**
* st_theme_node_get_icon_style:
* @node: a #StThemeNode
*
* Get the icon style for @node (eg. symbolic, regular). This corresponds to the
* special `-st-icon-style` CSS property.
*
* Returns: the icon style for @node
*/
StIconStyle
st_theme_node_get_icon_style (StThemeNode *node)
{
@ -2494,14 +2368,6 @@ st_theme_node_get_icon_style (StThemeNode *node)
return ST_ICON_STYLE_REQUESTED;
}
/**
* st_theme_node_get_text_decoration
* @node: a #StThemeNode
*
* Get the text decoration for @node (eg. underline, line-through, etc).
*
* Returns: the text decoration for @node
*/
StTextDecoration
st_theme_node_get_text_decoration (StThemeNode *node)
{
@ -2569,14 +2435,6 @@ st_theme_node_get_text_decoration (StThemeNode *node)
return 0;
}
/**
* st_theme_node_get_text_align:
* @node: a #StThemeNode
*
* Get the text alignment of @node.
*
* Returns: the alignment of text for @node
*/
StTextAlign
st_theme_node_get_text_align(StThemeNode *node)
{
@ -2628,9 +2486,9 @@ st_theme_node_get_text_align(StThemeNode *node)
* st_theme_node_get_letter_spacing:
* @node: a #StThemeNode
*
* Gets the value for the letter-spacing style property, in physical pixels.
* Gets the value for the letter-spacing style property, in pixels.
*
* Returns: the value of the letter-spacing property, if
* Return value: the value of the letter-spacing property, if
* found, or zero if such property has not been found.
*/
gdouble
@ -2905,14 +2763,6 @@ font_variant_from_term (CRTerm *term,
return TRUE;
}
/**
* st_theme_node_get_font:
* @node: a #StThemeNode
*
* Get the current font of @node as a #PangoFontDescription
*
* Returns: (transfer none): the current font
*/
const PangoFontDescription *
st_theme_node_get_font (StThemeNode *node)
{
@ -3106,14 +2956,6 @@ st_theme_node_get_font (StThemeNode *node)
return node->font_desc;
}
/**
* st_theme_node_get_font_features:
* @node: a #StThemeNode
*
* Get the CSS font-features for @node.
*
* Returns: (transfer full): font-features as a string
*/
gchar *
st_theme_node_get_font_features (StThemeNode *node)
{
@ -3153,7 +2995,7 @@ st_theme_node_get_font_features (StThemeNode *node)
*
* Gets the value for the border-image style property
*
* Returns: (transfer none): the border image, or %NULL
* Return value: (transfer none): the border image, or %NULL
* if there is no border image.
*/
StBorderImage *
@ -3290,9 +3132,10 @@ st_theme_node_get_border_image (StThemeNode *node)
* st_theme_node_get_horizontal_padding:
* @node: a #StThemeNode
*
* Gets the total horizonal padding (left + right padding), in physical pixels.
* Gets the total horizonal padding (left + right padding)
*
* Returns: the total horizonal padding in physical pixels
* Return value: the total horizonal padding
* in pixels
*/
double
st_theme_node_get_horizontal_padding (StThemeNode *node)
@ -3308,9 +3151,10 @@ st_theme_node_get_horizontal_padding (StThemeNode *node)
* st_theme_node_get_vertical_padding:
* @node: a #StThemeNode
*
* Gets the total vertical padding (top + bottom padding), in physical pixels.
* Gets the total vertical padding (top + bottom padding)
*
* Returns: the total vertical padding in physical pixels
* Return value: the total vertical padding
* in pixels
*/
double
st_theme_node_get_vertical_padding (StThemeNode *node)
@ -3473,9 +3317,9 @@ parse_shadow_property (StThemeNode *node,
*
* See also st_theme_node_get_shadow(), which provides a simpler API.
*
* Returns: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.), %FALSE
* if the property was not found, or was explicitly set to 'none'.
* Return value: %TRUE if the property was found in the properties for this
* theme node (or in the properties of parent nodes when inheriting.), %FALSE
* if the property was not found, or was explicitly set to 'none'.
*/
gboolean
st_theme_node_lookup_shadow (StThemeNode *node,
@ -3558,8 +3402,7 @@ st_theme_node_lookup_shadow (StThemeNode *node,
*
* See also st_theme_node_lookup_shadow (), which provides more options.
*
* Returns: (nullable) (transfer full): the shadow, or %NULL if the property was
* not found.
* Return value: (transfer full): the shadow, or %NULL if the property was not found.
*/
StShadow *
st_theme_node_get_shadow (StThemeNode *node,
@ -3579,7 +3422,7 @@ st_theme_node_get_shadow (StThemeNode *node,
*
* Gets the value for the box-shadow style property
*
* Returns: (nullable) (transfer none): the node's shadow, or %NULL
* Return value: (transfer none): the node's shadow, or %NULL
* if node has no shadow
*/
StShadow *
@ -3612,8 +3455,8 @@ st_theme_node_get_box_shadow (StThemeNode *node)
*
* Gets the value for the -st-background-image-shadow style property
*
* Returns: (nullable) (transfer none): the node's background image shadow, or
* %NULL if node has no such shadow
* Return value: (transfer none): the node's background image shadow, or %NULL
* if node has no such shadow
*/
StShadow *
st_theme_node_get_background_image_shadow (StThemeNode *node)
@ -3653,7 +3496,7 @@ st_theme_node_get_background_image_shadow (StThemeNode *node)
*
* Gets the value for the text-shadow style property
*
* Returns: (nullable) (transfer none): the node's text-shadow, or %NULL
* Return value: (transfer none): the node's text-shadow, or %NULL
* if node has no text-shadow
*/
StShadow *
@ -3699,7 +3542,7 @@ st_theme_node_get_text_shadow (StThemeNode *node)
* Gets the colors that should be used for colorizing symbolic icons according
* the style of this node.
*
* Returns: (transfer none): the icon colors to use for this theme node
* Return value: (transfer none): the icon colors to use for this theme node
*/
StIconColors *
st_theme_node_get_icon_colors (StThemeNode *node)
@ -4098,8 +3941,6 @@ st_theme_node_get_paint_box (StThemeNode *node,
* Tests if two theme nodes have the same borders and padding; this can be
* used to optimize having to relayout when the style applied to a Clutter
* actor changes colors without changing the geometry.
*
* Returns: %TRUE if equal, %FALSE otherwise
*/
gboolean
st_theme_node_geometry_equal (StThemeNode *node,
@ -4147,7 +3988,7 @@ st_theme_node_geometry_equal (StThemeNode *node,
* for @other. Note that in some cases this function may return %TRUE even
* if there is no visible difference in the painting.
*
* Returns: %TRUE if the two theme nodes paint identically. %FALSE if the
* Return value: %TRUE if the two theme nodes paint identically. %FALSE if the
* two nodes potentially paint differently.
*/
gboolean
@ -4236,15 +4077,6 @@ st_theme_node_paint_equal (StThemeNode *node,
return TRUE;
}
/**
* st_theme_node_to_string:
* @node: a #StThemeNode
*
* Serialize @node to a string of its #GType name, CSS ID, classes and
* pseudo-classes.
*
* Returns: the serialized theme node
*/
gchar *
st_theme_node_to_string (StThemeNode *node)
{

View File

@ -43,11 +43,6 @@ G_BEGIN_DECLS
* accessors for standard CSS properties that add caching and handling of various
* details of the CSS specification. #StThemeNode also has convenience functions to help
* in implementing a #ClutterActor with borders and padding.
*
* Note that pixel measurements take the #StThemeContext:scale-factor into
* account so all values are in physical pixels, as opposed to logical pixels.
* Physical pixels correspond to actor sizes, not necessarily to pixels on
* display devices (eg. when `scale-monitor-framebuffer` is enabled).
*/
typedef struct _StTheme StTheme;
@ -56,15 +51,6 @@ typedef struct _StThemeContext StThemeContext;
#define ST_TYPE_THEME_NODE (st_theme_node_get_type ())
G_DECLARE_FINAL_TYPE (StThemeNode, st_theme_node, ST, THEME_NODE, GObject)
/**
* StSide:
* @ST_SIDE_TOP: The top side.
* @ST_SIDE_RIGHT: The right side.
* @ST_SIDE_BOTTOM: The bottom side.
* @ST_SIDE_LEFT: The left side.
*
* Used to target a particular side of a #StThemeNode element.
*/
typedef enum {
ST_SIDE_TOP,
ST_SIDE_RIGHT,
@ -72,15 +58,6 @@ typedef enum {
ST_SIDE_LEFT
} StSide;
/**
* StCorner:
* @ST_CORNER_TOPLEFT: The top-right corner.
* @ST_CORNER_TOPRIGHT: The top-right corner.
* @ST_CORNER_BOTTOMRIGHT: The bottom-right corner.
* @ST_CORNER_BOTTOMLEFT: The bottom-left corner.
*
* Used to target a particular corner of a #StThemeNode element.
*/
typedef enum {
ST_CORNER_TOPLEFT,
ST_CORNER_TOPRIGHT,
@ -89,18 +66,6 @@ typedef enum {
} StCorner;
/* These are the CSS values; that doesn't mean we have to implement blink... */
/**
* StTextDecoration:
* @ST_TEXT_DECORATION_: Text is underlined
* @ST_TEXT_DECORATION_OVERLINE: Text is overlined
* @ST_TEXT_DECORATION_LINE_THROUGH: Text is striked out
* @ST_TEXT_DECORATION_BLINK: Text blinks
*
* Flags used to determine the decoration of text.
*
* Not that neither %ST_TEXT_DECORATION_OVERLINE or %ST_TEXT_DECORATION_BLINK
* are implemented, currently.
*/
typedef enum {
ST_TEXT_DECORATION_UNDERLINE = 1 << 0,
ST_TEXT_DECORATION_OVERLINE = 1 << 1,
@ -108,15 +73,6 @@ typedef enum {
ST_TEXT_DECORATION_BLINK = 1 << 3
} StTextDecoration;
/**
* StTextAlign:
* @ST_TEXT_ALIGN_LEFT: Text is aligned at the beginning of the label.
* @ST_TEXT_ALIGN_CENTER: Text is aligned in the middle of the label.
* @ST_TEXT_ALIGN_RIGHT: Text is aligned at the end of the label.
* @ST_GRADIENT_JUSTIFY: Text is justified in the label.
*
* Used to align text in a label.
*/
typedef enum {
ST_TEXT_ALIGN_LEFT = PANGO_ALIGN_LEFT,
ST_TEXT_ALIGN_CENTER = PANGO_ALIGN_CENTER,
@ -124,15 +80,6 @@ typedef enum {
ST_TEXT_ALIGN_JUSTIFY
} StTextAlign;
/**
* StGradientType:
* @ST_GRADIENT_NONE: No gradient.
* @ST_GRADIENT_VERTICAL: A vertical gradient.
* @ST_GRADIENT_HORIZONTAL: A horizontal gradient.
* @ST_GRADIENT_RADIAL: Lookup the style requested in the icon name.
*
* Used to specify options when rendering gradients.
*/
typedef enum {
ST_GRADIENT_NONE,
ST_GRADIENT_VERTICAL,
@ -140,16 +87,6 @@ typedef enum {
ST_GRADIENT_RADIAL
} StGradientType;
/**
* StIconStyle:
* @ST_ICON_STYLE_REQUESTED: Lookup the style requested in the icon name.
* @ST_ICON_STYLE_REGULAR: Try to always load regular icons, even when symbolic
* icon names are given.
* @ST_ICON_STYLE_SYMBOLIC: Try to always load symbolic icons, even when regular
* icon names are given.
*
* Used to specify options when looking up icons.
*/
typedef enum {
ST_ICON_STYLE_REQUESTED,
ST_ICON_STYLE_REGULAR,

View File

@ -250,16 +250,6 @@ insert_stylesheet (StTheme *theme,
g_hash_table_insert (theme->files_by_stylesheet, stylesheet, file);
}
/**
* st_theme_load_stylesheet:
* @theme: a #StTheme
* @file: a #GFile
* @error: (optional): a #GError
*
* Load the stylesheet associated with @file.
*
* Returns: %TRUE if successful
*/
gboolean
st_theme_load_stylesheet (StTheme *theme,
GFile *file,
@ -281,14 +271,6 @@ st_theme_load_stylesheet (StTheme *theme,
return TRUE;
}
/**
* st_theme_unload_stylesheet:
* @theme: a #StTheme
* @file: a #GFile
*
* Unload the stylesheet associated with @file. If @file was not loaded this
* function does nothing.
*/
void
st_theme_unload_stylesheet (StTheme *theme,
GFile *file)
@ -319,8 +301,6 @@ st_theme_unload_stylesheet (StTheme *theme,
* st_theme_get_custom_stylesheets:
* @theme: an #StTheme
*
* Get a list of the stylesheet files loaded with st_theme_load_stylesheet().
*
* Returns: (transfer full) (element-type GFile): the list of stylesheet files
* that were loaded with st_theme_load_stylesheet()
*/
@ -481,7 +461,7 @@ st_theme_get_property (GObject *object,
* @default_stylesheet: The lowest priority stylesheet, representing global default styling;
* this is associated with the CSS "user agent" stylesheet, may be %NULL
*
* Returns: the newly created theme object
* Return value: the newly created theme object
**/
StTheme *
st_theme_new (GFile *application_stylesheet,

View File

@ -562,7 +562,7 @@ get_root_theme_node (ClutterStage *stage)
* Note: it is a fatal error to call this on a widget that is
* not been added to a stage.
*
* Returns: (transfer none): the theme node for the widget.
* Return value: (transfer none): the theme node for the widget.
* This is owned by the widget. When attributes of the widget
* or the environment that affect the styling change (for example
* the style_class property of the widget), it will be recreated,
@ -653,7 +653,7 @@ st_widget_get_theme_node (StWidget *widget)
* node hasn't been computed. If %NULL is returned, then ::style-changed
* will be reliably emitted before the widget is allocated or painted.
*
* Returns: (transfer none): the theme node for the widget.
* Return value: (transfer none): the theme node for the widget.
* This is owned by the widget. When attributes of the widget
* or the environment that affect the styling change (for example
* the style_class property of the widget), it will be recreated,
@ -949,7 +949,7 @@ st_widget_class_init (StWidgetClass *klass)
ST_PARAM_READWRITE);
/**
* StWidget:label-actor:
* ClutterActor:label-actor:
*
* An actor that labels this widget.
*/
@ -1006,7 +1006,8 @@ st_widget_class_init (StWidgetClass *klass)
* StWidget::popup-menu:
* @widget: the #StWidget
*
* Emitted when the user has requested a context menu (eg, via a keybinding)
* Emitted when the user has requested a context menu (eg, via a
* keybinding)
*/
signals[POPUP_MENU] =
g_signal_new ("popup-menu",
@ -1387,8 +1388,8 @@ st_widget_set_style (StWidget *actor,
*
* Get the current inline style string. See st_widget_set_style().
*
* Returns: (transfer none) (nullable): The inline style string, or %NULL. The
* string is owned by the #StWidget and should not be modified or freed.
* Returns: The inline style string, or %NULL. The string is owned by the
* #StWidget and should not be modified or freed.
*/
const gchar*
st_widget_get_style (StWidget *actor)
@ -1744,8 +1745,8 @@ st_widget_recompute_style (StWidget *widget,
* st_widget_ensure_style:
* @widget: A #StWidget
*
* Ensures that @widget has read its style information and propagated any
* changes to its children.
* Ensures that @widget has read its style information.
*
*/
void
st_widget_ensure_style (StWidget *widget)
@ -1807,7 +1808,7 @@ st_widget_set_track_hover (StWidget *widget,
* st_widget_get_track_hover:
* @widget: A #StWidget
*
* Returns the current value of the #StWidget:track-hover property. See
* Returns the current value of the track-hover property. See
* st_widget_set_track_hover() for more information.
*
* Returns: current value of track-hover on @widget
@ -1941,7 +1942,7 @@ st_widget_get_can_focus (StWidget *widget)
* st_widget_popup_menu:
* @self: A #StWidget
*
* Asks the widget to pop-up a context menu by emitting #StWidget::popup-menu.
* Asks the widget to pop-up a context menu.
*/
void
st_widget_popup_menu (StWidget *self)
@ -2228,7 +2229,7 @@ st_widget_real_navigate_focus (StWidget *widget,
* time, using a %NULL @from, which should cause it to reset the focus
* to the first available widget in the given direction.
*
* Returns: %TRUE if clutter_actor_grab_key_focus() has been
* Return value: %TRUE if clutter_actor_grab_key_focus() has been
* called on an actor. %FALSE if not.
*/
gboolean
@ -2274,7 +2275,7 @@ append_actor_text (GString *desc,
* includes the class name and actor name (if any), plus if @actor
* is an #StWidget, its style class and pseudo class names.
*
* Returns: the debug name.
* Return value: the debug name.
*/
char *
st_describe_actor (ClutterActor *actor)
@ -2349,7 +2350,7 @@ st_describe_actor (ClutterActor *actor)
*
* Gets the label that identifies @widget if it is defined
*
* Returns: (transfer none): the label that identifies the widget
* Return value: (transfer none): the label that identifies the widget
*/
ClutterActor *
st_widget_get_label_actor (StWidget *widget)
@ -2432,7 +2433,7 @@ st_widget_set_accessible_name (StWidget *widget,
* Gets the accessible name for this widget. See
* st_widget_set_accessible_name() for more information.
*
* Returns: a character string representing the accessible name
* Return value: a character string representing the accessible name
* of the widget.
*/
const gchar *
@ -2487,7 +2488,7 @@ st_widget_set_accessible_role (StWidget *widget,
* Gets the #AtkRole for this widget. See
* st_widget_set_accessible_role() for more information.
*
* Returns: accessible #AtkRole for this widget
* Return value: accessible #AtkRole for this widget
*/
AtkRole
st_widget_get_accessible_role (StWidget *widget)

View File

@ -38,17 +38,6 @@ G_BEGIN_DECLS
#define ST_TYPE_WIDGET (st_widget_get_type ())
G_DECLARE_DERIVABLE_TYPE (StWidget, st_widget, ST, WIDGET, ClutterActor)
/**
* StDirectionType:
* @ST_DIR_TAB_FORWARD: Move forward.
* @ST_DIR_TAB_BACKWARD: Move backward.
* @ST_DIR_UP: Move up.
* @ST_DIR_DOWN: Move down.
* @ST_DIR_LEFT: Move left.
* @ST_DIR_RIGHT: Move right.
*
* Enumeration for focus direction.
*/
typedef enum
{
ST_DIR_TAB_FORWARD,

View File

@ -26,7 +26,6 @@
#include <math.h>
#include <string.h>
#include <meta/main.h>
#include <meta/meta-backend.h>
static ClutterActor *stage;
static StThemeNode *root;
@ -534,7 +533,6 @@ test_inline_style (void)
int
main (int argc, char **argv)
{
MetaBackend *backend;
StTheme *theme;
StThemeContext *context;
PangoFontDescription *font_desc;
@ -558,8 +556,7 @@ main (int argc, char **argv)
theme = st_theme_new (file, NULL, NULL);
g_object_unref (file);
backend = meta_get_backend ();
stage = meta_backend_get_stage (backend);
stage = clutter_stage_new ();
context = st_theme_context_get_for_stage (CLUTTER_STAGE (stage));
st_theme_context_set_theme (context, theme);

View File

@ -39,7 +39,6 @@
</description>
<releases>
<release version="3.37.90" date="2020-08-11"/>
<release version="3.37.3" date="2020-07-07"/>
<release version="3.37.2" date="2020-06-02"/>
<release version="3.37.1" date="2020-04-29"/>

View File

@ -1,23 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<template class="ExtensionRow" parent="GtkListBoxRow">
<property name="visible">True</property>
<property name="activatable">False</property>
<child>
<object class="GtkGrid">
<property name="visible">True</property>
<property name="margin">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="nameLabel">
<property name="visible">True</property>
</object>
<object class="GtkLabel" id="nameLabel"/>
</child>
<child>
<object class="GtkImage" id="errorIcon">
<property name="no_show_all">True</property>
<property name="visible">False</property>
<property name="icon_name">dialog-error-symbolic</property>
<style>
<class name="error"/>>
@ -26,86 +24,61 @@
</child>
<child>
<object class="GtkImage" id="updatesIcon">
<property name="no_show_all">True</property>
<property name="visible">False</property>
<property name="icon_name">software-update-available-symbolic</property>
<style>
<class name="warning"/>>
<class name="warning"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="hexpand">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="prefsButton">
<property name="no_show_all">True</property>
<property name="visible"
bind-source="prefsButton"
<property name="visible" bind-source="prefsButton"
bind-property="sensitive"
bind-flags="sync-create"/>
<property name="can_focus">True</property>
<property name="icon_name">emblem-system-symbolic</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="action-name">row.show-prefs</property>
<style>
<class name="circular"/>>
<class name="image-button"/>>
<class name="circular"/>
</style>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">emblem-system-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="switch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="valign">center</property>
<property name="action-name">row.enabled</property>
</object>
</child>
<child>
<object class="GtkSeparator">
<property name="visible">True</property>
</object>
<object class="GtkSeparator"/>
</child>
<child>
<child>
<object class="GtkButton" id="revealButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="has-frame">False</property>
<property name="icon_name">pan-end-symbolic</property>
<style>
<class name="details-button"/>
<class name="image-button"/>
<class name="flat"/>
</style>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">pan-end-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="revealer">
<property name="visible">True</property>
<child>
<object class="GtkGrid">
<property name="visible">True</property>
<property name="margin_top">12</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Description</property>
<property name="xalign">0</property>
<style>
@ -115,7 +88,6 @@
</child>
<child>
<object class="GtkLabel" id="descriptionLabel">
<property name="visible">True</property>
<property name="ellipsize">end</property>
<property name="max_width_chars">60</property>
<property name="xalign">0</property>
@ -128,27 +100,26 @@
bind-source="versionLabel"
bind-property="visible"
bind-flags="sync-create"/>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">Version</property>
<property name="xalign">0</property>
<style>
<class name="dim-label"/>
</style>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</layout>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="versionLabel">
<property name="no_show_all">True</property>
<property name="visible">False</property>
<property name="xalign">0</property>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</layout>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel">
@ -156,27 +127,26 @@
bind-source="authorLabel"
bind-property="visible"
bind-flags="sync-create"/>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">Author</property>
<property name="xalign">0</property>
<style>
<class name="dim-label"/>
</style>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
</layout>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="authorLabel">
<property name="no_show_all">True</property>
<property name="visible">False</property>
<property name="xalign">0</property>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
</layout>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel">
@ -184,44 +154,42 @@
bind-source="errorLabel"
bind-property="visible"
bind-flags="sync-create"/>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">Error</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<style>
<class name="dim-label"/>
</style>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
</layout>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="errorLabel">
<property name="no_show_all">True</property>
<property name="visible">False</property>
<property name="selectable">True</property>
<property name="wrap">True</property>
<property name="max_width_chars">60</property>
<property name="xalign">0</property>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
</layout>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="label" translatable="yes">Website</property>
<property name="action_name">row.show-url</property>
<property name="valign">end</property>
<property name="margin-top">12</property>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">4</property>
</layout>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">4</property>
</packing>
</child>
<child>
<object class="GtkButton" id="removeButton">
@ -229,7 +197,6 @@
bind-source="removeButton"
bind-property="sensitive"
bind-flags="sync-create"/>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">Remove…</property>
<property name="action_name">row.uninstall</property>
<property name="hexpand">True</property>
@ -238,20 +205,20 @@
<style>
<class name="destructive-action"/>
</style>
<layout>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
</layout>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
</packing>
</child>
</object>
</child>
<layout>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="column-span">8</property>
</layout>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">8</property>
</packing>
</child>
</object>
</child>

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<menu id="primary-menu">
@ -17,13 +16,14 @@
<object class="GtkPopover" id="infoPopover">
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="margin">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">To find and add extensions, visit &lt;a href="https://extensions.gnome.org"&gt;extensions.gnome.org&lt;/a&gt;.</property>
<property name="use_markup">True</property>
<property name="xalign">0</property>
@ -31,7 +31,6 @@
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Warning</property>
<property name="xalign">0</property>
<property name="margin_top">6</property>
@ -42,7 +41,6 @@
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Extensions can cause system issues, including performance problems. If you encounter problems with your system, it is recommended to disable all extensions.</property>
<property name="wrap">True</property>
<property name="max_width_chars">40</property>
@ -55,207 +53,190 @@
<template class="ExtensionsWindow" parent="GtkApplicationWindow">
<property name="default_width">800</property>
<property name="default_height">500</property>
<property name="title" translatable="yes">Extensions</property>
<child type="titlebar">
<object class="GtkHeaderBar">
<property name="visible">True</property>
<property name="title" translatable="yes">Extensions</property>
<property name="show_close_button">True</property>
<property name="show-title-buttons">True</property>
<child>
<object class="GtkMenuButton">
<property name="visible">True</property>
<property name="popover">infoPopover</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">dialog-information-symbolic</property>
</object>
</child>
<property name="icon_name">dialog-information-symbolic</property>
</object>
</child>
<child>
<child type="end">
<object class="GtkMenuButton" id="menuButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="menu_model">primary-menu</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">open-menu-symbolic</property>
</object>
</child>
<property name="icon_name">open-menu-symbolic</property>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<child type="end">
<object class="GtkSwitch">
<property name="visible">True</property>
<property name="action-name">win.user-extensions-enabled</property>
<property name="valign">center</property>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="mainStack">
<property name="visible">True</property>
<property name="transition_type">crossfade</property>
<property name="vexpand">True</property>
<child>
<object class="GtkScrolledWindow" id="scrolledWindow">
<property name="visible">True</property>
<property name="hscrollbar_policy">never</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<object class="GtkStackPage">
<property name="name">main</property>
<property name="child">
<object class="GtkScrolledWindow" id="scrolledWindow">
<property name="hscrollbar_policy">never</property>
<child>
<object class="GtkBox" id="mainBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="halign">center</property>
<property name="margin">36</property>
<property name="spacing">12</property>
<object class="GtkViewport">
<property name="scroll-to-focus">True</property>
<child>
<object class="GtkLabel">
<property name="visible"
bind-source="userList"
bind-property="visible"
bind-flags="sync-create"/>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Manually Installed</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkListBox" id="userList">
<property name="visible">True</property>
<property name="selection_mode">none</property>
<property name="margin_bottom">24</property>
<style>
<class name="frame"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible"
bind-source="systemList"
bind-property="visible"
bind-flags="sync-create"/>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Built-In</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkListBox" id="systemList">
<property name="visible">True</property>
<property name="selection_mode">none</property>
<style>
<class name="frame"/>
</style>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="halign">center</property>
<property name="margin-start">36</property>
<property name="margin-end">36</property>
<property name="margin-top">36</property>
<property name="margin-bottom">36</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel">
<property name="visible"
bind-source="userList"
bind-property="visible"
bind-flags="sync-create"/>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Manually Installed</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkListBox" id="userList">
<property name="selection_mode">none</property>
<property name="show_separators">True</property>
<property name="margin_bottom">24</property>
<style>
<class name="frame"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible"
bind-source="systemList"
bind-property="visible"
bind-flags="sync-create"/>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Built-In</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkListBox" id="systemList">
<property name="selection_mode">none</property>
<property name="show_separators">True</property>
<style>
<class name="frame"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</property>
</object>
<packing>
<property name="name">main</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="margin">32</property>
<property name="spacing">6</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="pixel_size">96</property>
<property name="icon_name">org.gnome.Extensions-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">No Installed Extensions</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="1.44"/>
</attributes>
</object>
</child>
</object>
<packing>
<object class="GtkStackPage">
<property name="name">placeholder</property>
</packing>
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="margin-start">32</property>
<property name="margin-end">32</property>
<property name="margin-top">32</property>
<property name="margin-bottom">32</property>
<property name="spacing">6</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="pixel_size">96</property>
<property name="icon_name">org.gnome.Extensions-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">No Installed Extensions</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="1.44"/>
</attributes>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="margin_left">100</property>
<property name="margin_right">100</property>
<property name="margin_top">100</property>
<property name="margin_bottom">60</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Somethings gone wrong</property>
<attributes>
<attribute name="scale" value="1.44"/>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Were very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again.</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
<packing>
<object class="GtkStackPage">
<property name="name">noshell</property>
</packing>
<property name="child">
<object class="GtkBox">
<property name="margin-start">100</property>
<property name="margin-end">100</property>
<property name="margin_top">100</property>
<property name="margin_bottom">60</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Somethings gone wrong</property>
<attributes>
<attribute name="scale" value="1.44"/>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Were very sorry, but it was not possible to get the list of installed extensions. Make sure you are logged into GNOME and try again.</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkActionBar" id="updatesBar">
<property name="no_show_all">True</property>
<property name="revealed">False</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="pixel-size">24</property>
<property name="margin">6</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="icon_name">software-update-available-symbolic</property>
<style>
<class name="warning"/>
@ -264,11 +245,9 @@
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Extension Updates Ready</property>
<attributes>
@ -278,16 +257,14 @@
</child>
<child>
<object class="GtkLabel" id="updatesLabel">
<property name="visible">True</property>
<property name="halign">start</property>
</object>
</child>
</object>
</child>
<child>
<child type="end">
<object class="GtkButton">
<property name="label" translatable="yes">Log Out…</property>
<property name="visible">True</property>
<property name="valign">center</property>
<property name="action-name">win.logout</property>
<property name="receives_default">True</property>
@ -295,9 +272,6 @@
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
</object>
</child>

View File

@ -1,6 +1,6 @@
/* exported main */
imports.gi.versions.Gdk = '3.0';
imports.gi.versions.Gtk = '3.0';
imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0';
const Gettext = imports.gettext;
const Package = imports.package;
@ -63,7 +63,7 @@ class Application extends Gtk.Application {
} catch (e) {
logError(e, 'Failed to add application style');
}
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),
Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(),
provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
@ -80,7 +80,6 @@ var ExtensionsWindow = GObject.registerClass({
InternalChildren: [
'userList',
'systemList',
'mainBox',
'mainStack',
'scrolledWindow',
'updatesBar',
@ -95,8 +94,6 @@ var ExtensionsWindow = GObject.registerClass({
this._exporter = new Shew.WindowExporter({ window: this });
this._exportedHandle = '';
this._mainBox.set_focus_vadjustment(this._scrolledWindow.vadjustment);
let action;
action = new Gio.SimpleAction({ name: 'show-about' });
action.connect('activate', this._showAbout.bind(this));
@ -117,10 +114,7 @@ var ExtensionsWindow = GObject.registerClass({
this.add_action(action);
this._userList.set_sort_func(this._sortList.bind(this));
this._userList.set_header_func(this._updateHeader.bind(this));
this._systemList.set_sort_func(this._sortList.bind(this));
this._systemList.set_header_func(this._updateHeader.bind(this));
this._shellProxy.connectSignal('ExtensionStateChanged',
this._onExtensionStateChanged.bind(this));
@ -209,18 +203,10 @@ var ExtensionsWindow = GObject.registerClass({
return row1.name.localeCompare(row2.name);
}
_updateHeader(row, before) {
if (!before || row.get_header())
return;
let sep = new Gtk.Separator({ orientation: Gtk.Orientation.HORIZONTAL });
row.set_header(sep);
}
_findExtensionRow(uuid) {
return [
...this._userList.get_children(),
...this._systemList.get_children(),
...this._userList,
...this._systemList,
].find(c => c.uuid === uuid);
}
@ -240,13 +226,13 @@ var ExtensionsWindow = GObject.registerClass({
// and reset the variable to null so that we create a new row
// below and add it to the appropriate list
if (row && row.type !== extension.type) {
row.destroy();
row.get_parent().remove(row);
row = null;
}
if (row) {
if (extension.state === ExtensionState.UNINSTALLED)
row.destroy();
row.get_parent().remove(row);
} else {
this._addExtensionRow(extension);
}
@ -276,12 +262,11 @@ var ExtensionsWindow = GObject.registerClass({
_addExtensionRow(extension) {
let row = new ExtensionRow(extension);
row.show_all();
if (row.type === ExtensionType.PER_USER)
this._userList.add(row);
this._userList.insert(row, -1);
else
this._systemList.add(row);
this._systemList.insert(row, -1);
}
_queueUpdatesCheck() {
@ -298,8 +283,8 @@ var ExtensionsWindow = GObject.registerClass({
}
_syncListVisibility() {
this._userList.visible = this._userList.get_children().length > 0;
this._systemList.visible = this._systemList.get_children().length > 0;
this._userList.visible = this._userList.get_first_child() !== null;
this._systemList.visible = this._systemList.get_first_child() !== null;
if (this._userList.visible || this._systemList.visible)
this._mainStack.visible_child_name = 'main';
@ -308,13 +293,13 @@ var ExtensionsWindow = GObject.registerClass({
}
_checkUpdates() {
let nUpdates = this._userList.get_children().filter(c => c.hasUpdate).length;
let nUpdates = [...this._userList].filter(c => c.hasUpdate).length;
this._updatesLabel.label = Gettext.ngettext(
'%d extension will be updated on next login.',
'%d extensions will be updated on next login.',
nUpdates).format(nUpdates);
this._updatesBar.visible = nUpdates > 0;
this._updatesBar.revealed = nUpdates > 0;
}
_extensionsLoaded() {
@ -354,7 +339,7 @@ var ExtensionRow = GObject.registerClass({
name: 'show-prefs',
enabled: this.hasPrefs,
});
action.connect('activate', () => this.get_toplevel().openPrefs(this.uuid));
action.connect('activate', () => this.get_root().openPrefs(this.uuid));
this._actionGroup.add_action(action);
action = new Gio.SimpleAction({
@ -371,7 +356,7 @@ var ExtensionRow = GObject.registerClass({
name: 'uninstall',
enabled: this.type === ExtensionType.PER_USER,
});
action.connect('activate', () => this.get_toplevel().uninstall(this.uuid));
action.connect('activate', () => this.get_root().uninstall(this.uuid));
this._actionGroup.add_action(action);
action = new Gio.SimpleAction({

View File

@ -1,5 +1,5 @@
project('gnome-extensions-app',
version: '3.37.90',
version: '3.37.3',
meson_version: '>= 0.53.0',
license: 'GPLv2+'
)

View File

@ -1,5 +1,5 @@
project('gnome-extensions-tool', 'c',
version: '3.37.90',
version: '3.37.3',
meson_version: '>= 0.53.0',
license: 'GPLv2+'
)

View File

@ -1,5 +1,5 @@
project('shew', 'c',
version: '3.37.90',
version: '3.37.3',
meson_version: '>= 0.53.0',
license: 'LGPLv2+',
)
@ -22,6 +22,7 @@ pkglibdir = join_paths(get_option('libdir'), package_name)
girdir = join_paths(pkgdatadir, 'gir-1.0')
typelibdir = join_paths(pkglibdir, 'girepository-1.0')
gtk_dep = dependency('gtk+-3.0')
gtk_dep = dependency('gtk4')
x11_dep = dependency('x11', required: false)
subdir('src')

View File

@ -12,7 +12,7 @@ shew_sources = [
libshew = library(full_name,
sources: shew_sources,
dependencies: [gtk_dep],
dependencies: [gtk_dep, x11_dep],
install_dir: pkglibdir,
install: true,
)
@ -21,7 +21,7 @@ libshew_gir = gnome.generate_gir(libshew,
sources: shew_sources + shew_public_headers,
nsversion: api_version,
namespace: 'Shew',
includes: ['Gdk-3.0', 'Gtk-3.0'],
includes: ['Gdk-4.0', 'Gtk-4.0'],
extra_args: ['--quiet'],
install_dir_gir: girdir,
install_dir_typelib: typelibdir,

View File

@ -21,7 +21,7 @@
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_WAYLAND
#include <gdk/gdkwayland.h>
#include <gdk/wayland/gdkwayland.h>
#endif
#include "shew-external-window-wayland.h"
@ -77,14 +77,14 @@ shew_external_window_wayland_new (const char *handle_str)
static void
shew_external_window_wayland_set_parent_of (ShewExternalWindow *external_window,
GdkWindow *child_window)
GdkSurface *child_surface)
{
ShewExternalWindowWayland *external_window_wayland =
SHEW_EXTERNAL_WINDOW_WAYLAND (external_window);
char *handle_str = external_window_wayland->handle_str;
#ifdef GDK_WINDOWING_WAYLAND
if (!gdk_wayland_window_set_transient_for_exported (child_window, handle_str))
if (!gdk_wayland_surface_set_transient_for_exported (GDK_WAYLAND_SURFACE (child_surface), handle_str))
g_warning ("Failed to set portal window transient for external parent");
#endif
}

View File

@ -21,7 +21,8 @@
#include <errno.h>
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#include <gdk/x11/gdkx.h>
#include <X11/Xlib.h>
#endif
#include <stdlib.h>
@ -33,7 +34,7 @@ struct _ShewExternalWindowX11
{
ShewExternalWindow parent;
GdkWindow *foreign_gdk_window;
int foreign_xid;
};
G_DEFINE_TYPE (ShewExternalWindowX11, shew_external_window_x11,
@ -54,13 +55,29 @@ get_x11_display (void)
return x11_display;
}
static gboolean
check_foreign_xid (GdkDisplay *display,
int xid)
{
gboolean result = FALSE;
#ifdef GDK_WINDOWING_X11
XWindowAttributes attrs;
gdk_x11_display_error_trap_push (display);
result = XGetWindowAttributes (GDK_DISPLAY_XDISPLAY (display), xid, &attrs);
if (gdk_x11_display_error_trap_pop (display) || !result)
return FALSE;
#endif
return result;
}
ShewExternalWindowX11 *
shew_external_window_x11_new (const char *handle_str)
{
ShewExternalWindowX11 *external_window_x11;
GdkDisplay *display;
int xid;
GdkWindow *foreign_gdk_window = NULL;
display = get_x11_display ();
if (!display)
@ -77,43 +94,32 @@ shew_external_window_x11_new (const char *handle_str)
return NULL;
}
#ifdef GDK_WINDOWING_X11
foreign_gdk_window = gdk_x11_window_foreign_new_for_display (display, xid);
#endif
if (!foreign_gdk_window)
if (!check_foreign_xid (display, xid))
{
g_warning ("Failed to create foreign window for XID %d", xid);
g_warning ("Failed to find foreign window for XID %d", xid);
return NULL;
}
external_window_x11 = g_object_new (SHEW_TYPE_EXTERNAL_WINDOW_X11,
"display", display,
NULL);
external_window_x11->foreign_gdk_window = foreign_gdk_window;
external_window_x11->foreign_xid = xid;
return external_window_x11;
}
static void
shew_external_window_x11_set_parent_of (ShewExternalWindow *external_window,
GdkWindow *child_window)
GdkSurface *child_surface)
{
ShewExternalWindowX11 *external_window_x11 =
SHEW_EXTERNAL_WINDOW_X11 (external_window);
gdk_window_set_transient_for (child_window,
external_window_x11->foreign_gdk_window);
}
static void
shew_external_window_x11_dispose (GObject *object)
{
ShewExternalWindowX11 *external_window_x11 = SHEW_EXTERNAL_WINDOW_X11 (object);
g_clear_object (&external_window_x11->foreign_gdk_window);
G_OBJECT_CLASS (shew_external_window_x11_parent_class)->dispose (object);
#ifdef GDK_WINDOWING_X11
XSetTransientForHint (GDK_SURFACE_XDISPLAY (child_surface),
GDK_SURFACE_XID (child_surface),
external_window_x11->foreign_xid);
#endif
}
static void
@ -124,10 +130,7 @@ shew_external_window_x11_init (ShewExternalWindowX11 *external_window_x11)
static void
shew_external_window_x11_class_init (ShewExternalWindowX11Class *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
ShewExternalWindowClass *external_window_class = SHEW_EXTERNAL_WINDOW_CLASS (klass);
object_class->dispose = shew_external_window_x11_dispose;
external_window_class->set_parent_of = shew_external_window_x11_set_parent_of;
}

View File

@ -75,10 +75,10 @@ shew_external_window_new_from_handle (const char *handle_str)
void
shew_external_window_set_parent_of (ShewExternalWindow *external_window,
GdkWindow *child_window)
GdkSurface *child_surface)
{
SHEW_EXTERNAL_WINDOW_GET_CLASS (external_window)->set_parent_of (external_window,
child_window);
child_surface);
}
/**

View File

@ -32,12 +32,12 @@ struct _ShewExternalWindowClass
GObjectClass parent_class;
void (*set_parent_of) (ShewExternalWindow *external_window,
GdkWindow *child_window);
GdkSurface *child_surface);
};
ShewExternalWindow *shew_external_window_new_from_handle (const char *handle_str);
void shew_external_window_set_parent_of (ShewExternalWindow *external_window,
GdkWindow *child_window);
GdkSurface *child_surface);
GdkDisplay *shew_external_window_get_display (ShewExternalWindow *external_window);

View File

@ -21,10 +21,10 @@
#include "shew-window-exporter.h"
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#include <gdk/x11/gdkx.h>
#endif
#ifdef GDK_WINDOWING_WAYLAND
#include <gdk/gdkwayland.h>
#include <gdk/wayland/gdkwayland.h>
#endif
struct _ShewWindowExporter
@ -53,7 +53,7 @@ shew_window_exporter_new (GtkWindow *window)
#ifdef GDK_WINDOWING_WAYLAND
static void
wayland_window_exported (GdkWindow *window,
wayland_window_exported (GdkSurface *surface,
const char *handle,
gpointer user_data)
{
@ -90,8 +90,8 @@ shew_window_exporter_export (ShewWindowExporter *exporter,
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (widget)))
{
GdkWindow *w = gtk_widget_get_window (widget);
guint32 xid = (guint32) gdk_x11_window_get_xid (w);
GdkSurface *s = gtk_native_get_surface (GTK_NATIVE (widget));
guint32 xid = (guint32) gdk_x11_surface_get_xid (s);
g_task_return_pointer (task, g_strdup_printf ("x11:%x", xid), g_free);
}
@ -100,9 +100,9 @@ shew_window_exporter_export (ShewWindowExporter *exporter,
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
{
GdkWindow *w = gtk_widget_get_window (widget);
gdk_wayland_window_export_handle (w, wayland_window_exported,
g_steal_pointer (&task), NULL);
GdkSurface *s = gtk_native_get_surface (GTK_NATIVE (widget));
gdk_wayland_surface_export_handle (s, wayland_window_exported,
g_steal_pointer (&task), NULL);
}
#endif
@ -136,8 +136,8 @@ shew_window_exporter_unexport (ShewWindowExporter *exporter)
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
{
GdkWindow *w = gtk_widget_get_window (widget);
gdk_wayland_window_unexport_handle (w);
GdkSurface *s = gtk_native_get_surface (GTK_NATIVE (widget));
gdk_wayland_surface_unexport_handle (s);
}
#endif
}