Compare commits

..

1 Commits

Author SHA1 Message Date
832240a80b shell-global: import environment from $XDG_RUNTIME_DIR/gnome/environment
environment variables are normally propagated from parent to child, but
they're used to convey information that's typically scoped to the
session. gnome-shell needs to know about environment variables that
are set in the session after it's already been started.

gnome-session now exports its environment to
$XDG_RUNTIME_DIR/gnome/environment so that programs in the session can
pick up on the latest environment variables.

This commit changes gnome-shell to propagate the gnome-session's latest
environment when launching new children.
2015-09-16 21:14:48 -04:00
39 changed files with 3472 additions and 4038 deletions

8
NEWS
View File

@ -1,11 +1,3 @@
3.18.0
======
Translations:
Sendy Aditya Suryana [id], Kris Thomsen [da], Seán de Búrca [ga],
Andika Triwidada [id], Enrico Nicoletto [pt_BR], Anders Jonsson [sv],
Rūdolfs Mazurs [lv]
3.17.92 3.17.92
======= =======
* Fix race when loading multiple background animations [Josselin; #741453] * Fix race when loading multiple background animations [Josselin; #741453]

View File

@ -1,6 +1,5 @@
AC_PREREQ(2.63) AC_PREREQ(2.63)
AC_INIT([gnome-shell],[3.18.0],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell]) AC_INIT([gnome-shell],[3.17.92],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
AX_IS_RELEASE([git-directory])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/shell-global.c]) AC_CONFIG_SRCDIR([src/shell-global.c])
@ -77,7 +76,7 @@ AC_MSG_RESULT($enable_systemd)
CLUTTER_MIN_VERSION=1.21.5 CLUTTER_MIN_VERSION=1.21.5
GOBJECT_INTROSPECTION_MIN_VERSION=1.45.4 GOBJECT_INTROSPECTION_MIN_VERSION=1.45.4
GJS_MIN_VERSION=1.39.0 GJS_MIN_VERSION=1.39.0
MUTTER_MIN_VERSION=3.18.0 MUTTER_MIN_VERSION=3.17.92
GTK_MIN_VERSION=3.15.0 GTK_MIN_VERSION=3.15.0
GIO_MIN_VERSION=2.45.3 GIO_MIN_VERSION=2.45.3
LIBECAL_MIN_VERSION=3.5.3 LIBECAL_MIN_VERSION=3.5.3
@ -221,7 +220,7 @@ if test "$enable_man" != no; then
fi fi
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
AX_COMPILER_FLAGS() GNOME_COMPILE_WARNINGS([error])
case "$WARN_CFLAGS" in case "$WARN_CFLAGS" in
*-Werror*) *-Werror*)
WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations" WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations"
@ -270,7 +269,7 @@ Build configuration:
Prefix: ${prefix} Prefix: ${prefix}
Source code location: ${srcdir} Source code location: ${srcdir}
Compiler: ${CC} Compiler: ${CC}
Compiler Warnings: $ax_enable_compile_warnings Compiler Warnings: $enable_compile_warnings
Support for NetworkManager: $have_networkmanager Support for NetworkManager: $have_networkmanager
Support for GStreamer recording: $build_recorder Support for GStreamer recording: $build_recorder

View File

@ -1230,7 +1230,7 @@ const NotificationMessage = new Lang.Class({
this._closed = true; this._closed = true;
this.notification.destroy(MessageTray.NotificationDestroyedReason.DISMISSED); this.notification.destroy(MessageTray.NotificationDestroyedReason.DISMISSED);
})); }));
this._destroyId = notification.connect('destroy', Lang.bind(this, notification.connect('destroy', Lang.bind(this,
function() { function() {
if (!this._closed) if (!this._closed)
this.close(); this.close();
@ -1262,10 +1262,6 @@ const NotificationMessage = new Lang.Class({
if (this._updatedId) if (this._updatedId)
this.notification.disconnect(this._updatedId); this.notification.disconnect(this._updatedId);
this._updatedId = 0; this._updatedId = 0;
if (this._destroyId)
this.notification.disconnect(this._destroyId);
this._destroyId = 0;
} }
}); });

View File

@ -396,7 +396,6 @@ const PopupImageMenuItem = new Lang.Class({
this.actor.add_child(this.label); this.actor.add_child(this.label);
this._icon = new St.Icon({ style_class: 'popup-menu-icon' }); this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
this.actor.add_child(this._icon, { align: St.Align.END }); this.actor.add_child(this._icon, { align: St.Align.END });
this.actor.label_actor = this.label;
this.setIcon(iconName); this.setIcon(iconName);
}, },

530
po/ar.po

File diff suppressed because it is too large Load Diff

511
po/da.po

File diff suppressed because it is too large Load Diff

1703
po/ga.po

File diff suppressed because it is too large Load Diff

706
po/id.po

File diff suppressed because it is too large Load Diff

612
po/lv.po

File diff suppressed because it is too large Load Diff

View File

@ -20,9 +20,10 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell\n" "Project-Id-Version: gnome-shell\n"
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&keywords=I18N+L10N&component=general\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
"POT-Creation-Date: 2015-09-17 08:22+0000\n" "shell&keywords=I18N+L10N&component=general\n"
"PO-Revision-Date: 2015-09-18 15:33-0300\n" "POT-Creation-Date: 2015-08-10 20:07+0000\n"
"PO-Revision-Date: 2015-08-10 20:38-0300\n"
"Last-Translator: Enrico Nicoletto <liverig@gmail.com>\n" "Last-Translator: Enrico Nicoletto <liverig@gmail.com>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n" "Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
"Language: pt_BR\n" "Language: pt_BR\n"
@ -30,7 +31,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.7.3\n" "X-Generator: Poedit 1.6.4\n"
"X-Project-Style: gnome\n" "X-Project-Style: gnome\n"
#: ../data/50-gnome-shell-system.xml.in.h:1 #: ../data/50-gnome-shell-system.xml.in.h:1
@ -61,7 +62,8 @@ msgstr "Abre o menu do aplicativo"
msgid "GNOME Shell" msgid "GNOME Shell"
msgstr "GNOME Shell" msgstr "GNOME Shell"
#: ../data/gnome-shell.desktop.in.in.h:2 ../data/gnome-shell-wayland.desktop.in.in.h:2 #: ../data/gnome-shell.desktop.in.in.h:2
#: ../data/gnome-shell-wayland.desktop.in.in.h:2
msgid "Window management and application launching" msgid "Window management and application launching"
msgstr "Gerenciamento de janelas e lançador de aplicativos" msgstr "Gerenciamento de janelas e lançador de aplicativos"
@ -80,11 +82,17 @@ msgstr "GNOME Shell (compositor wayland)"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:1 #: ../data/org.gnome.shell.gschema.xml.in.in.h:1
msgid "Enable internal tools useful for developers and testers from Alt-F2" msgid "Enable internal tools useful for developers and testers from Alt-F2"
msgstr "Habilitar ferramentas internas úteis para desenvolvedores e testadores a partir do Alt-F2" msgstr ""
"Habilitar ferramentas internas úteis para desenvolvedores e testadores a "
"partir do Alt-F2"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:2 #: ../data/org.gnome.shell.gschema.xml.in.in.h:2
msgid "Allows access to internal debugging and monitoring tools using the Alt-F2 dialog." msgid ""
msgstr "Permite acesso a ferramentas internas de depuração e monitoramento usando o diálogo Alt-F2." "Allows access to internal debugging and monitoring tools using the Alt-F2 "
"dialog."
msgstr ""
"Permite acesso a ferramentas internas de depuração e monitoramento usando o "
"diálogo Alt-F2."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:3 #: ../data/org.gnome.shell.gschema.xml.in.in.h:3
msgid "UUIDs of extensions to enable" msgid "UUIDs of extensions to enable"
@ -92,13 +100,16 @@ msgstr "UUIDs das extensões para habilitar"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:4 #: ../data/org.gnome.shell.gschema.xml.in.in.h:4
msgid "" msgid ""
"GNOME Shell extensions have a UUID property; this key lists extensions which should be loaded. Any extension that wants " "GNOME Shell extensions have a UUID property; this key lists extensions which "
"to be loaded needs to be in this list. You can also manipulate this list with the EnableExtension and DisableExtension D-" "should be loaded. Any extension that wants to be loaded needs to be in this "
"Bus methods on org.gnome.Shell." "list. You can also manipulate this list with the EnableExtension and "
"DisableExtension D-Bus methods on org.gnome.Shell."
msgstr "" msgstr ""
"As extensões do GNOME Shell possuem uma propriedade UUID; esta chave lista as extensões que devem ser carregadas. " "As extensões do GNOME Shell possuem uma propriedade UUID; esta chave lista "
"Qualquer extensão que quiser ser carregada precisa estar nesta lista. Você também pode manipular esta lista com os " "as extensões que devem ser carregadas. Qualquer extensão que quiser ser "
"métodos do DBus EnableExtension e DisableExtensions em org.gnome.Shell." "carregada precisa estar nesta lista. Você também pode manipular esta lista "
"com os métodos do DBus EnableExtension e DisableExtensions em org.gnome."
"Shell."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:5 #: ../data/org.gnome.shell.gschema.xml.in.in.h:5
msgid "Disables the validation of extension version compatibility" msgid "Disables the validation of extension version compatibility"
@ -106,20 +117,27 @@ msgstr "Desabilita a validação de compatibilidade da versão da extensão"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:6 #: ../data/org.gnome.shell.gschema.xml.in.in.h:6
msgid "" msgid ""
"GNOME Shell will only load extensions that claim to support the current running version. Enabling this option will " "GNOME Shell will only load extensions that claim to support the current "
"disable this check and try to load all extensions regardless of the versions they claim to support." "running version. Enabling this option will disable this check and try to "
"load all extensions regardless of the versions they claim to support."
msgstr "" msgstr ""
"O GNOME Shell somente carregará extensões que declaram possuir suporte a versão atual em execução. Ao habilitar esta " "O GNOME Shell somente carregará extensões que declaram possuir suporte a "
"opção, esta verificação será desabilitada e haverá tentativas de carregar todas as extensões independente das versões " "versão atual em execução. Ao habilitar esta opção, esta verificação será "
"que estas declaram suportar." "desabilitada e haverá tentativas de carregar todas as extensões independente "
"das versões que estas declaram suportar."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:7 #: ../data/org.gnome.shell.gschema.xml.in.in.h:7
msgid "List of desktop file IDs for favorite applications" msgid "List of desktop file IDs for favorite applications"
msgstr "Lista dos IDs de arquivo de área de trabalho para os aplicativos favoritos" msgstr ""
"Lista dos IDs de arquivo de área de trabalho para os aplicativos favoritos"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:8 #: ../data/org.gnome.shell.gschema.xml.in.in.h:8
msgid "The applications corresponding to these identifiers will be displayed in the favorites area." msgid ""
msgstr "Os aplicativos correspondentes a estes identificadores serão exibidos na área de favoritos." "The applications corresponding to these identifiers will be displayed in the "
"favorites area."
msgstr ""
"Os aplicativos correspondentes a estes identificadores serão exibidos na "
"área de favoritos."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:9 #: ../data/org.gnome.shell.gschema.xml.in.in.h:9
msgid "App Picker View" msgid "App Picker View"
@ -127,7 +145,8 @@ msgstr "Visualização do seletor de aplicativos"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:10 #: ../data/org.gnome.shell.gschema.xml.in.in.h:10
msgid "Index of the currently selected view in the application picker." msgid "Index of the currently selected view in the application picker."
msgstr "Índice da visualização atualmente selecionada no seletor de aplicativos." msgstr ""
"Índice da visualização atualmente selecionada no seletor de aplicativos."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:11 #: ../data/org.gnome.shell.gschema.xml.in.in.h:11
msgid "History for command (Alt-F2) dialog" msgid "History for command (Alt-F2) dialog"
@ -143,23 +162,32 @@ msgid "Always show the 'Log out' menu item in the user menu."
msgstr "Sempre mostrar o item de menu \"Encerrar sessão\" no menu de usuário." msgstr "Sempre mostrar o item de menu \"Encerrar sessão\" no menu de usuário."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:15 #: ../data/org.gnome.shell.gschema.xml.in.in.h:15
msgid "This key overrides the automatic hiding of the 'Log out' menu item in single-user, single-session situations." msgid ""
"This key overrides the automatic hiding of the 'Log out' menu item in single-"
"user, single-session situations."
msgstr "" msgstr ""
"Essa chave sobrescreve a ocultação automática do item de menu \"Encerrar sessão\" quando houver somente um usuário, em " "Essa chave sobrescreve a ocultação automática do item de menu \"Encerrar "
"situações de somente uma sessão." "sessão\" quando houver somente um usuário, em situações de somente uma "
"sessão."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:16 #: ../data/org.gnome.shell.gschema.xml.in.in.h:16
msgid "Whether to remember password for mounting encrypted or remote filesystems" msgid ""
msgstr "Se lembra ou não as senhas para montar sistemas de arquivos criptografados ou remotos" "Whether to remember password for mounting encrypted or remote filesystems"
msgstr ""
"Se lembra ou não as senhas para montar sistemas de arquivos criptografados "
"ou remotos"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:17 #: ../data/org.gnome.shell.gschema.xml.in.in.h:17
msgid "" msgid ""
"The shell will request a password when an encrypted device or a remote filesystem is mounted. If the password can be " "The shell will request a password when an encrypted device or a remote "
"saved for future use a 'Remember Password' checkbox will be present. This key sets the default state of the checkbox." "filesystem is mounted. If the password can be saved for future use a "
"'Remember Password' checkbox will be present. This key sets the default "
"state of the checkbox."
msgstr "" msgstr ""
"O shell irá pedir uma senha quando um dispositivo criptografado ou um sistema de arquivo remoto for montado. Caso a " "O shell irá pedir uma senha quando um dispositivo criptografado ou um "
"senha possa ser salva para uso posterior, a caixa de seleção 'Lembrar senha' estará presente. Esta chave ajusta o estado " "sistema de arquivo remoto for montado. Caso a senha possa ser salva para uso "
"padrão da caixa de seleção." "posterior, a caixa de seleção 'Lembrar senha' estará presente. Esta chave "
"ajusta o estado padrão da caixa de seleção."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:18 #: ../data/org.gnome.shell.gschema.xml.in.in.h:18
msgid "Show the week date in the calendar" msgid "Show the week date in the calendar"
@ -182,8 +210,11 @@ msgid "Keybinding to open the \"Show Applications\" view"
msgstr "Atalho de teclado para abrir a visualização \"Mostrar aplicativos\"" msgstr "Atalho de teclado para abrir a visualização \"Mostrar aplicativos\""
#: ../data/org.gnome.shell.gschema.xml.in.in.h:23 #: ../data/org.gnome.shell.gschema.xml.in.in.h:23
msgid "Keybinding to open the \"Show Applications\" view of the Activities Overview." msgid ""
msgstr "Atalho de teclado para abrir a visualização \"Mostrar aplicativos\" do panorama de atividades." "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.in.h:24 #: ../data/org.gnome.shell.gschema.xml.in.in.h:24
msgid "Keybinding to open the overview" msgid "Keybinding to open the overview"
@ -199,7 +230,8 @@ msgstr "Atalho de teclado para alternar a visibilidade da lista de notificação
#: ../data/org.gnome.shell.gschema.xml.in.in.h:27 #: ../data/org.gnome.shell.gschema.xml.in.in.h:27
msgid "Keybinding to toggle the visibility of the notification list." msgid "Keybinding to toggle the visibility of the notification list."
msgstr "Atalho de teclado para alternar a visibilidade da lista de notificação." msgstr ""
"Atalho de teclado para alternar a visibilidade da lista de notificação."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:28 #: ../data/org.gnome.shell.gschema.xml.in.in.h:28
msgid "Keybinding to focus the active notification" msgid "Keybinding to focus the active notification"
@ -211,8 +243,11 @@ msgstr "Atalho de teclado para ativar a notificação ativa."
# Tween pode significar uma contração de Between ou se referir a um termo "in-between" usado em animação gráfica. -- Enrico # Tween pode significar uma contração de Between ou se referir a um termo "in-between" usado em animação gráfica. -- Enrico
#: ../data/org.gnome.shell.gschema.xml.in.in.h:30 #: ../data/org.gnome.shell.gschema.xml.in.in.h:30
msgid "Keybinding that pauses and resumes all running tweens, for debugging purposes" msgid ""
msgstr "Atalho de teclado que pausa e continua todos os intermediários em execução, a fim de depuração" "Keybinding that pauses and resumes all running tweens, for debugging purposes"
msgstr ""
"Atalho de teclado que pausa e continua todos os intermediários em execução, "
"a fim de depuração"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:31 #: ../data/org.gnome.shell.gschema.xml.in.in.h:31
msgid "Which keyboard to use" msgid "Which keyboard to use"
@ -228,11 +263,12 @@ msgstr "Limitar o alternador ao espaço de trabalho atual."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:34 #: ../data/org.gnome.shell.gschema.xml.in.in.h:34
msgid "" msgid ""
"If true, only applications that have windows on the current workspace are shown in the switcher. Otherwise, all " "If true, only applications that have windows on the current workspace are "
"applications are included." "shown in the switcher. Otherwise, all applications are included."
msgstr "" msgstr ""
"Se verdadeiro, o alternador mostrará somente os aplicativos que possuem janelas no espaço de trabalho atual. Caso " "Se verdadeiro, o alternador mostrará somente os aplicativos que possuem "
"contrário, todos os aplicativos serão incluídos." "janelas no espaço de trabalho atual. Caso contrário, todos os aplicativos "
"serão incluídos."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:35 #: ../data/org.gnome.shell.gschema.xml.in.in.h:35
msgid "The application icon mode." msgid "The application icon mode."
@ -240,29 +276,37 @@ msgstr "O modo ícone do aplicativo."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:36 #: ../data/org.gnome.shell.gschema.xml.in.in.h:36
msgid "" msgid ""
"Configures how the windows are shown in the switcher. Valid possibilities are 'thumbnail-only' (shows a thumbnail of the " "Configures how the windows are shown in the switcher. Valid possibilities "
"window), 'app-icon-only' (shows only the application icon) or 'both'." "are 'thumbnail-only' (shows a thumbnail of the window), 'app-icon-"
"only' (shows only the application icon) or 'both'."
msgstr "" msgstr ""
"Configura como as janelas são mostradas no alternador. As possibilidades válidas são 'thumbnail-only' (mostra uma " "Configura como as janelas são mostradas no alternador. As possibilidades "
"miniatura da janela), 'app-icon-only' (mostra apenas o ícone do aplicativo) ou 'both'." "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.in.h:37 #: ../data/org.gnome.shell.gschema.xml.in.in.h:37
msgid "If true, only windows from the current workspace are shown in the switcher. Otherwise, all windows are included." msgid ""
"If true, only windows from the current workspace are shown in the switcher. "
"Otherwise, all windows are included."
msgstr "" msgstr ""
"Se verdadeiro, o alternador mostrará somente as janelas do espaço de trabalho atual. Caso contrário, todos as janelas " "Se verdadeiro, o alternador mostrará somente as janelas do espaço de "
"serão incluídas." "trabalho atual. Caso contrário, todos as janelas serão incluídas."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:38 #: ../data/org.gnome.shell.gschema.xml.in.in.h:38
msgid "Attach modal dialog to the parent window" msgid "Attach modal dialog to the parent window"
msgstr "Anexar diálogo modal à janela pai" msgstr "Anexar diálogo modal à janela pai"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:39 #: ../data/org.gnome.shell.gschema.xml.in.in.h:39
msgid "This key overrides the key in org.gnome.mutter when running GNOME Shell." msgid ""
msgstr "Esta chave sobrescreve a chave em org.gnome.mutter ao executar o Shell do GNOME." "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 Shell do "
"GNOME."
#: ../data/org.gnome.shell.gschema.xml.in.in.h:40 #: ../data/org.gnome.shell.gschema.xml.in.in.h:40
msgid "Enable edge tiling when dropping windows on screen edges" msgid "Enable edge tiling when dropping windows on screen edges"
msgstr "Habilitar contorno ladrilhado ao arrastar janelas sobre as bordas da tela" msgstr ""
"Habilitar contorno ladrilhado ao arrastar janelas sobre as bordas da tela"
#: ../data/org.gnome.shell.gschema.xml.in.in.h:41 #: ../data/org.gnome.shell.gschema.xml.in.in.h:41
msgid "Workspaces are managed dynamically" msgid "Workspaces are managed dynamically"
@ -289,17 +333,20 @@ msgstr "Ocorreu um erro ao carregar o dialogo de preferências para %s:"
msgid "GNOME Shell Extensions" msgid "GNOME Shell Extensions"
msgstr "Extensões do Shell do GNOME" msgstr "Extensões do Shell do GNOME"
#: ../js/gdm/authPrompt.js:147 ../js/ui/components/networkAgent.js:145 ../js/ui/components/polkitAgent.js:179 #: ../js/gdm/authPrompt.js:147 ../js/ui/components/networkAgent.js:145
#: ../js/ui/endSessionDialog.js:452 ../js/ui/extensionDownloader.js:195 ../js/ui/shellMountOperation.js:399 #: ../js/ui/components/polkitAgent.js:179 ../js/ui/endSessionDialog.js:452
#: ../js/ui/extensionDownloader.js:195 ../js/ui/shellMountOperation.js:399
#: ../js/ui/status/network.js:916 #: ../js/ui/status/network.js:916
msgid "Cancel" msgid "Cancel"
msgstr "Cancelar" msgstr "Cancelar"
#: ../js/gdm/authPrompt.js:169 ../js/gdm/authPrompt.js:215 ../js/gdm/authPrompt.js:447 #: ../js/gdm/authPrompt.js:169 ../js/gdm/authPrompt.js:215
#: ../js/gdm/authPrompt.js:435
msgid "Next" msgid "Next"
msgstr "Próximo" msgstr "Próximo"
#: ../js/gdm/authPrompt.js:211 ../js/ui/shellMountOperation.js:403 ../js/ui/unlockDialog.js:59 #: ../js/gdm/authPrompt.js:211 ../js/ui/shellMountOperation.js:403
#: ../js/ui/unlockDialog.js:59
msgid "Unlock" msgid "Unlock"
msgstr "Desbloquear" msgstr "Desbloquear"
@ -316,16 +363,17 @@ msgstr "Escolher sessão"
msgid "Not listed?" msgid "Not listed?"
msgstr "Não está listado?" msgstr "Não está listado?"
#: ../js/gdm/loginDialog.js:850 #: ../js/gdm/loginDialog.js:847
#, javascript-format #, javascript-format
msgid "(e.g., user or %s)" msgid "(e.g., user or %s)"
msgstr "(ex.: usuário ou %s)" msgstr "(ex.: usuário ou %s)"
#: ../js/gdm/loginDialog.js:855 ../js/ui/components/networkAgent.js:271 ../js/ui/components/networkAgent.js:289 #: ../js/gdm/loginDialog.js:852 ../js/ui/components/networkAgent.js:271
#: ../js/ui/components/networkAgent.js:289
msgid "Username: " msgid "Username: "
msgstr "Nome de usuário: " msgstr "Nome de usuário: "
#: ../js/gdm/loginDialog.js:1184 #: ../js/gdm/loginDialog.js:1181
msgid "Login Window" msgid "Login Window"
msgstr "Janela de sessão" msgstr "Janela de sessão"
@ -464,7 +512,8 @@ msgstr "Alterar plano de fundo…"
msgid "Display Settings" msgid "Display Settings"
msgstr "Configurações de exibição" msgstr "Configurações de exibição"
#: ../js/ui/backgroundMenu.js:22 ../js/ui/panel.js:650 ../js/ui/status/system.js:366 #: ../js/ui/backgroundMenu.js:22 ../js/ui/panel.js:650
#: ../js/ui/status/system.js:357
msgid "Settings" msgid "Settings"
msgstr "Configurações" msgstr "Configurações"
@ -591,13 +640,16 @@ msgstr "Senha:"
msgid "Type again:" msgid "Type again:"
msgstr "Digite novamente:" msgstr "Digite novamente:"
#: ../js/ui/components/networkAgent.js:140 ../js/ui/status/network.js:269 ../js/ui/status/network.js:352 #: ../js/ui/components/networkAgent.js:140 ../js/ui/status/network.js:277
#: ../js/ui/status/network.js:919 #: ../js/ui/status/network.js:359 ../js/ui/status/network.js:919
msgid "Connect" msgid "Connect"
msgstr "Conectar" msgstr "Conectar"
#: ../js/ui/components/networkAgent.js:233 ../js/ui/components/networkAgent.js:245 ../js/ui/components/networkAgent.js:273 #: ../js/ui/components/networkAgent.js:233
#: ../js/ui/components/networkAgent.js:293 ../js/ui/components/networkAgent.js:303 #: ../js/ui/components/networkAgent.js:245
#: ../js/ui/components/networkAgent.js:273
#: ../js/ui/components/networkAgent.js:293
#: ../js/ui/components/networkAgent.js:303
msgid "Password: " msgid "Password: "
msgstr "Senha: " msgstr "Senha: "
@ -617,16 +669,23 @@ msgstr "Senha da chave privada: "
msgid "Service: " msgid "Service: "
msgstr "Serviço: " msgstr "Serviço: "
#: ../js/ui/components/networkAgent.js:320 ../js/ui/components/networkAgent.js:658 #: ../js/ui/components/networkAgent.js:320
#: ../js/ui/components/networkAgent.js:658
msgid "Authentication required by wireless network" msgid "Authentication required by wireless network"
msgstr "Autenticação requisitada pela rede sem fio" msgstr "Autenticação requisitada pela rede sem fio"
#: ../js/ui/components/networkAgent.js:321 ../js/ui/components/networkAgent.js:659 #: ../js/ui/components/networkAgent.js:321
#: ../js/ui/components/networkAgent.js:659
#, javascript-format #, javascript-format
msgid "Passwords or encryption keys are required to access the wireless network “%s”." msgid ""
msgstr "Senhas ou chaves criptografadas são necessárias para acessar a rede sem fio \"%s\"." "Passwords or encryption keys are required to access the wireless network "
"“%s”."
msgstr ""
"Senhas ou chaves criptografadas são necessárias para acessar a rede sem fio "
"\"%s\"."
#: ../js/ui/components/networkAgent.js:325 ../js/ui/components/networkAgent.js:662 #: ../js/ui/components/networkAgent.js:325
#: ../js/ui/components/networkAgent.js:662
msgid "Wired 802.1X authentication" msgid "Wired 802.1X authentication"
msgstr "Autenticação 802.1X cabeada" msgstr "Autenticação 802.1X cabeada"
@ -634,15 +693,18 @@ msgstr "Autenticação 802.1X cabeada"
msgid "Network name: " msgid "Network name: "
msgstr "Nome da rede: " msgstr "Nome da rede: "
#: ../js/ui/components/networkAgent.js:332 ../js/ui/components/networkAgent.js:666 #: ../js/ui/components/networkAgent.js:332
#: ../js/ui/components/networkAgent.js:666
msgid "DSL authentication" msgid "DSL authentication"
msgstr "Autenticação DSL" msgstr "Autenticação DSL"
#: ../js/ui/components/networkAgent.js:339 ../js/ui/components/networkAgent.js:672 #: ../js/ui/components/networkAgent.js:339
#: ../js/ui/components/networkAgent.js:672
msgid "PIN code required" msgid "PIN code required"
msgstr "Código PIN requisitado" msgstr "Código PIN requisitado"
#: ../js/ui/components/networkAgent.js:340 ../js/ui/components/networkAgent.js:673 #: ../js/ui/components/networkAgent.js:340
#: ../js/ui/components/networkAgent.js:673
msgid "PIN code is needed for the mobile broadband device" msgid "PIN code is needed for the mobile broadband device"
msgstr "O código PIN é necessário para o dispositivo móvel de banda larga" msgstr "O código PIN é necessário para o dispositivo móvel de banda larga"
@ -650,17 +712,20 @@ msgstr "O código PIN é necessário para o dispositivo móvel de banda larga"
msgid "PIN: " msgid "PIN: "
msgstr "PIN: " msgstr "PIN: "
#: ../js/ui/components/networkAgent.js:348 ../js/ui/components/networkAgent.js:679 #: ../js/ui/components/networkAgent.js:348
#: ../js/ui/components/networkAgent.js:679
msgid "Mobile broadband network password" msgid "Mobile broadband network password"
msgstr "Senha da rede de banda larga móvel" msgstr "Senha da rede de banda larga móvel"
#: ../js/ui/components/networkAgent.js:349 ../js/ui/components/networkAgent.js:663 ../js/ui/components/networkAgent.js:667 #: ../js/ui/components/networkAgent.js:349
#: ../js/ui/components/networkAgent.js:663
#: ../js/ui/components/networkAgent.js:667
#: ../js/ui/components/networkAgent.js:680 #: ../js/ui/components/networkAgent.js:680
#, javascript-format #, javascript-format
msgid "A password is required to connect to “%s”." msgid "A password is required to connect to “%s”."
msgstr "Uma senha é necessária para se conectar a \"%s\"" msgstr "Uma senha é necessária para se conectar a \"%s\""
#: ../js/ui/components/networkAgent.js:647 ../js/ui/status/network.js:1658 #: ../js/ui/components/networkAgent.js:647 ../js/ui/status/network.js:1654
msgid "Network Manager" msgid "Network Manager"
msgstr "Gerenciador de rede" msgstr "Gerenciador de rede"
@ -808,9 +873,14 @@ msgstr "Reiniciar & instalar atualizações"
#: ../js/ui/endSessionDialog.js:121 #: ../js/ui/endSessionDialog.js:121
#, javascript-format #, javascript-format
msgid "The system will automatically restart and install updates in %d second." msgid "The system will automatically restart and install updates in %d second."
msgid_plural "The system will automatically restart and install updates in %d seconds." msgid_plural ""
msgstr[0] "O sistema irá reiniciar e instalar atualizações automaticamente em %d segundo." "The system will automatically restart and install updates in %d seconds."
msgstr[1] "O sistema irá reiniciar e instalar atualizações automaticamente em %d segundos." msgstr[0] ""
"O sistema irá reiniciar e instalar atualizações automaticamente em %d "
"segundo."
msgstr[1] ""
"O sistema irá reiniciar e instalar atualizações automaticamente em %d "
"segundos."
#: ../js/ui/endSessionDialog.js:127 #: ../js/ui/endSessionDialog.js:127
msgctxt "button" msgctxt "button"
@ -829,7 +899,9 @@ msgstr "Desligar após atualizações serem instaladas"
#: ../js/ui/endSessionDialog.js:338 #: ../js/ui/endSessionDialog.js:338
msgid "Running on battery power: please plug in before installing updates." msgid "Running on battery power: please plug in before installing updates."
msgstr "Funcionando na bateria: por favor, conecte na tomada antes de instalar atualizações." msgstr ""
"Funcionando na bateria: por favor, conecte na tomada antes de instalar "
"atualizações."
#: ../js/ui/endSessionDialog.js:355 #: ../js/ui/endSessionDialog.js:355
msgid "Some applications are busy or have unsaved work." msgid "Some applications are busy or have unsaved work."
@ -891,13 +963,17 @@ msgstr "Ocultar erros"
msgid "Show Errors" msgid "Show Errors"
msgstr "Exibir erros" msgstr "Exibir erros"
#: ../js/ui/lookingGlass.js:716 #: ../js/ui/lookingGlass.js:716 ../js/ui/status/location.js:71
#: ../js/ui/status/location.js:176
msgid "Enabled" msgid "Enabled"
msgstr "Habilitado" msgstr "Habilitado"
#. Translators: this is for a network device that cannot be activated
#. because it's disabled by rfkill (airplane mode) */
#. translators: #. translators:
#. * The device has been disabled #. * The device has been disabled
#: ../js/ui/lookingGlass.js:719 ../src/gvc/gvc-mixer-control.c:1830 #: ../js/ui/lookingGlass.js:719 ../js/ui/status/location.js:179
#: ../js/ui/status/network.js:592 ../src/gvc/gvc-mixer-control.c:1830
msgid "Disabled" msgid "Disabled"
msgstr "Desabilitado" msgstr "Desabilitado"
@ -951,7 +1027,7 @@ msgstr "Sair"
msgid "Activities" msgid "Activities"
msgstr "Atividades" msgstr "Atividades"
#: ../js/ui/panel.js:754 #: ../js/ui/panel.js:755
msgid "Top Bar" msgid "Top Bar"
msgstr "Barra superior" msgstr "Barra superior"
@ -991,7 +1067,7 @@ msgid_plural "%d new notifications"
msgstr[0] "%d nova notificação" msgstr[0] "%d nova notificação"
msgstr[1] "%d novas notificações" msgstr[1] "%d novas notificações"
#: ../js/ui/screenShield.js:432 ../js/ui/status/system.js:374 #: ../js/ui/screenShield.js:432 ../js/ui/status/system.js:365
msgid "Lock" msgid "Lock"
msgstr "Bloquear" msgstr "Bloquear"
@ -1083,9 +1159,14 @@ msgstr "Alto contraste"
msgid "Large Text" msgid "Large Text"
msgstr "Texto grande" msgstr "Texto grande"
#: ../js/ui/status/bluetooth.js:51 ../js/ui/status/network.js:178 ../js/ui/status/network.js:353 #: ../js/ui/status/bluetooth.js:49
#: ../js/ui/status/network.js:1279 ../js/ui/status/network.js:1394 ../js/ui/status/rfkill.js:90 msgid "Bluetooth"
#: ../js/ui/status/rfkill.js:117 msgstr "Bluetooth"
#: ../js/ui/status/bluetooth.js:51 ../js/ui/status/network.js:178
#: ../js/ui/status/network.js:360 ../js/ui/status/network.js:1279
#: ../js/ui/status/network.js:1390 ../js/ui/status/rfkill.js:91
#: ../js/ui/status/rfkill.js:118
msgid "Turn Off" msgid "Turn Off"
msgstr "Desligar" msgstr "Desligar"
@ -1093,18 +1174,16 @@ msgstr "Desligar"
msgid "Bluetooth Settings" msgid "Bluetooth Settings"
msgstr "Configurações de Bluetooth" msgstr "Configurações de Bluetooth"
#. Translators: this is the number of connected bluetooth devices */ #: ../js/ui/status/bluetooth.js:104
#: ../js/ui/status/bluetooth.js:105
#, javascript-format #, javascript-format
msgid "%d Connected" msgid "%d Connected Device"
msgid_plural "%d Connected" msgid_plural "%d Connected Devices"
msgstr[0] "%d conectado" msgstr[0] "%d dispositivo conectado"
msgstr[1] "%d conectados" msgstr[1] "%d dispositivos conectados"
# Livre no sentido de disponível, ou seja, não estar em uso --Enrico #: ../js/ui/status/bluetooth.js:106 ../js/ui/status/network.js:1307
#: ../js/ui/status/bluetooth.js:107 msgid "Not Connected"
msgid "Not In Use" msgstr "Não conectado"
msgstr "Livre"
#: ../js/ui/status/brightness.js:44 #: ../js/ui/status/brightness.js:44
msgid "Brightness" msgid "Brightness"
@ -1114,11 +1193,11 @@ msgstr "Brilho"
msgid "Show Keyboard Layout" msgid "Show Keyboard Layout"
msgstr "Exibir disposição de teclado" msgstr "Exibir disposição de teclado"
#: ../js/ui/status/location.js:71 ../js/ui/status/location.js:177 #: ../js/ui/status/location.js:65
msgid "Location Enabled" msgid "Location"
msgstr "Localização habilitada" msgstr "Localização"
#: ../js/ui/status/location.js:72 ../js/ui/status/location.js:178 #: ../js/ui/status/location.js:72 ../js/ui/status/location.js:177
msgid "Disable" msgid "Disable"
msgstr "Desabilitar" msgstr "Desabilitar"
@ -1127,14 +1206,10 @@ msgid "Privacy Settings"
msgstr "Configurações de privacidade" msgstr "Configurações de privacidade"
#: ../js/ui/status/location.js:176 #: ../js/ui/status/location.js:176
msgid "Location In Use" msgid "In Use"
msgstr "Localização em uso" msgstr "Em uso"
#: ../js/ui/status/location.js:180 #: ../js/ui/status/location.js:180
msgid "Location Disabled"
msgstr "Localização desabilitada"
#: ../js/ui/status/location.js:181
msgid "Enable" msgid "Enable"
msgstr "Habilitar" msgstr "Habilitar"
@ -1142,85 +1217,62 @@ msgstr "Habilitar"
msgid "<unknown>" msgid "<unknown>"
msgstr "<desconhecido>" msgstr "<desconhecido>"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:457 ../js/ui/status/network.js:1305
#: ../js/ui/status/network.js:451 ../js/ui/status/network.js:1308 #: ../js/ui/status/network.js:1509
#, javascript-format msgid "Off"
msgid "%s Off" msgstr "Off"
msgstr "%s desligado"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:459
#: ../js/ui/status/network.js:454 msgid "Connected"
#, javascript-format msgstr "Conectado"
msgid "%s Connected"
msgstr "Conectado a %s"
# Não gerenciável para transmitir a idéia que o Networkmanager não consegue gerenciar o dispositivo --Enrico # Não gerenciável para transmitir a idéia que o Networkmanager não consegue gerenciar o dispositivo --Enrico
#. Translators: this is for network devices that are physically present but are not #. 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); #. under NetworkManager's control (and thus cannot be used in the menu) */
#. %s is a network identifier */ #: ../js/ui/status/network.js:463
#: ../js/ui/status/network.js:459 msgid "Unmanaged"
#, javascript-format msgstr "Não gerenciável"
msgid "%s Unmanaged"
msgstr "%s não é gerenciável"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:465
#: ../js/ui/status/network.js:462 msgid "Disconnecting"
#, javascript-format msgstr "Desconectando"
msgid "%s Disconnecting"
msgstr "Desconectando de %s"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:471 ../js/ui/status/network.js:1299
#: ../js/ui/status/network.js:469 ../js/ui/status/network.js:1300 msgid "Connecting"
#, javascript-format msgstr "Conectando"
msgid "%s Connecting"
msgstr "Conectando a %s"
#. Translators: this is for network connections that require some kind of key or password; %s is a network identifier */ #. Translators: this is for network connections that require some kind of key or password */
#: ../js/ui/status/network.js:472 #: ../js/ui/status/network.js:474
#, javascript-format msgid "Authentication required"
msgid "%s Requires Authentication" msgstr "Autenticação necessária"
msgstr "%s requer autenticação"
#. Translators: this is for devices that require some kind of firmware or kernel #. Translators: this is for devices that require some kind of firmware or kernel
#. module, which is missing; %s is a network identifier */ #. module, which is missing */
#: ../js/ui/status/network.js:480 #: ../js/ui/status/network.js:482
#, javascript-format msgid "Firmware missing"
msgid "Firmware Missing For %s" msgstr "Firmware em falta"
msgstr "Firmware em falta para %s"
#. Translators: this is for a network device that cannot be activated (for example it #. 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 */ #. is disabled by rfkill, or it has no coverage */
#: ../js/ui/status/network.js:484 #: ../js/ui/status/network.js:486
#, javascript-format msgid "Unavailable"
msgid "%s Unavailable" msgstr "Indisponível"
msgstr "%s está indisponível"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:488 ../js/ui/status/network.js:1693
#: ../js/ui/status/network.js:487 msgid "Connection failed"
#, javascript-format msgstr "Falha de conexão"
msgid "%s Connection Failed"
msgstr "Falha na conexão de %s"
#: ../js/ui/status/network.js:503 #: ../js/ui/status/network.js:504
msgid "Wired Settings" msgid "Wired Settings"
msgstr "Configurações da rede cabeada" msgstr "Configurações da rede cabeada"
#: ../js/ui/status/network.js:545 ../js/ui/status/network.js:624 #: ../js/ui/status/network.js:546 ../js/ui/status/network.js:624
msgid "Mobile Broadband Settings" msgid "Mobile Broadband Settings"
msgstr "Configurações de banda larga móvel" msgstr "Configurações de banda larga móvel"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:588 ../js/ui/status/network.js:1303
#: ../js/ui/status/network.js:588 ../js/ui/status/network.js:1305 msgid "Hardware Disabled"
#, javascript-format msgstr "Hardware desabilitado"
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:592
#, javascript-format
msgid "%s Disabled"
msgstr "%s está desabilitado"
#: ../js/ui/status/network.js:632 #: ../js/ui/status/network.js:632
msgid "Use as Internet connection" msgid "Use as Internet connection"
@ -1262,7 +1314,7 @@ msgstr "Selecione uma rede"
msgid "No Networks" msgid "No Networks"
msgstr "Nenhuma rede" msgstr "Nenhuma rede"
#: ../js/ui/status/network.js:904 ../js/ui/status/rfkill.js:115 #: ../js/ui/status/network.js:904 ../js/ui/status/rfkill.js:116
msgid "Use hardware switch to turn off" msgid "Use hardware switch to turn off"
msgstr "Usar alternador de hardware para desligar" msgstr "Usar alternador de hardware para desligar"
@ -1278,52 +1330,36 @@ msgstr "Configurações de Wi-Fi"
msgid "Turn On" msgid "Turn On"
msgstr "Ligar" msgstr "Ligar"
#. Translators: %s is a network identifier */
#: ../js/ui/status/network.js:1296 #: ../js/ui/status/network.js:1296
#, javascript-format msgid "Hotspot Active"
msgid "%s Hotspot Active" msgstr "Ponto de acesso ativo"
msgstr "Ponto de acesso %s está ativo"
#. Translators: %s is a network identifier */ #: ../js/ui/status/network.js:1407
#: ../js/ui/status/network.js:1311
#, javascript-format
msgid "%s Not Connected"
msgstr "%s não está conectado"
#: ../js/ui/status/network.js:1411
msgid "connecting..." msgid "connecting..."
msgstr "conectando..." msgstr "conectando..."
#. Translators: this is for network connections that require some kind of key or password */ #. Translators: this is for network connections that require some kind of key or password */
#: ../js/ui/status/network.js:1414 #: ../js/ui/status/network.js:1410
msgid "authentication required" msgid "authentication required"
msgstr "autenticação necessária" msgstr "autenticação necessária"
#: ../js/ui/status/network.js:1416 #: ../js/ui/status/network.js:1412
msgid "connection failed" msgid "connection failed"
msgstr "conexão falhou" msgstr "conexão falhou"
#: ../js/ui/status/network.js:1482 ../js/ui/status/rfkill.js:93 #: ../js/ui/status/network.js:1478 ../js/ui/status/rfkill.js:94
msgid "Network Settings" msgid "Network Settings"
msgstr "Configurações de rede" msgstr "Configurações de rede"
#: ../js/ui/status/network.js:1484 #: ../js/ui/status/network.js:1480
msgid "VPN Settings" msgid "VPN Settings"
msgstr "Configurações de VPN" msgstr "Configurações de VPN"
#: ../js/ui/status/network.js:1503 #: ../js/ui/status/network.js:1499
msgid "VPN" msgid "VPN"
msgstr "VPN" msgstr "VPN"
#: ../js/ui/status/network.js:1513 #: ../js/ui/status/network.js:1694
msgid "VPN Off"
msgstr "VPN desligada"
#: ../js/ui/status/network.js:1697
msgid "Connection failed"
msgstr "Falha de conexão"
#: ../js/ui/status/network.js:1698
msgid "Activation of network connection failed" msgid "Activation of network connection failed"
msgstr "Falha ao ativar a conexão da rede" msgstr "Falha ao ativar a conexão da rede"
@ -1349,31 +1385,41 @@ msgstr "%d:%02d restante(s) (%d%%)"
msgid "%d%02d Until Full (%d%%)" msgid "%d%02d Until Full (%d%%)"
msgstr "%d:%02d até completamente carregada (%d%%)" msgstr "%d:%02d até completamente carregada (%d%%)"
#: ../js/ui/status/rfkill.js:88 # UPS significa uninterruptible power supply, mas no Brasil vejo usando mais
msgid "Airplane Mode On" # "No-break", que é a mesma coisa, então optei pela segunda. -- Rafael Ferreira
msgstr "Modo avião ligado" #: ../js/ui/status/power.js:119
msgid "UPS"
msgstr "No-break"
#: ../js/ui/status/system.js:343 #: ../js/ui/status/power.js:121
msgid "Battery"
msgstr "Bateria"
#: ../js/ui/status/rfkill.js:88
msgid "Airplane Mode"
msgstr "Modo avião"
#: ../js/ui/status/rfkill.js:90
msgid "On"
msgstr "On"
#: ../js/ui/status/system.js:337
msgid "Switch User" msgid "Switch User"
msgstr "Alternar usuário" msgstr "Alternar usuário"
#: ../js/ui/status/system.js:348 #: ../js/ui/status/system.js:342
msgid "Log Out" msgid "Log Out"
msgstr "Encerrar sessão" msgstr "Encerrar sessão"
#: ../js/ui/status/system.js:353 #: ../js/ui/status/system.js:361
msgid "Account Settings"
msgstr "Configurações de conta"
#: ../js/ui/status/system.js:370
msgid "Orientation Lock" msgid "Orientation Lock"
msgstr "Bloqueio da orientação" msgstr "Bloqueio da orientação"
#: ../js/ui/status/system.js:378 #: ../js/ui/status/system.js:369
msgid "Suspend" msgid "Suspend"
msgstr "Suspender" msgstr "Suspender"
#: ../js/ui/status/system.js:381 #: ../js/ui/status/system.js:372
msgid "Power Off" msgid "Power Off"
msgstr "Desligar" msgstr "Desligar"
@ -1472,10 +1518,12 @@ msgid "Always on Visible Workspace"
msgstr "Sempre na área de trabalho visível" msgstr "Sempre na área de trabalho visível"
#: ../js/ui/windowMenu.js:105 #: ../js/ui/windowMenu.js:105
#| msgid "Move to Workspace Up"
msgid "Move to Workspace Left" msgid "Move to Workspace Left"
msgstr "Mover para a área de trabalho esquerda" msgstr "Mover para a área de trabalho esquerda"
#: ../js/ui/windowMenu.js:110 #: ../js/ui/windowMenu.js:110
#| msgid "Move to Workspace Up"
msgid "Move to Workspace Right" msgid "Move to Workspace Right"
msgstr "Mover para a área de trabalho direita" msgstr "Mover para a área de trabalho direita"
@ -1567,34 +1615,6 @@ msgstr "A senha não pode estar em branco"
msgid "Authentication dialog was dismissed by the user" msgid "Authentication dialog was dismissed by the user"
msgstr "O diálogo de autenticação foi descartado pelo usuário" msgstr "O diálogo de autenticação foi descartado pelo usuário"
#~ msgid "Bluetooth"
#~ msgstr "Bluetooth"
#~ msgid "%d Connected Device"
#~ msgid_plural "%d Connected Devices"
#~ msgstr[0] "%d dispositivo conectado"
#~ msgstr[1] "%d dispositivos conectados"
#~ msgid "Off"
#~ msgstr "Off"
#~ msgid "Authentication required"
#~ msgstr "Autenticação necessária"
# UPS significa uninterruptible power supply, mas no Brasil vejo usando mais
# "No-break", que é a mesma coisa, então optei pela segunda. -- Rafael Ferreira
#~ msgid "UPS"
#~ msgstr "No-break"
#~ msgid "Battery"
#~ msgstr "Bateria"
#~ msgid "Airplane Mode"
#~ msgstr "Modo avião"
#~ msgid "On"
#~ msgstr "On"
#~ msgctxt "event list time" #~ msgctxt "event list time"
#~ msgid "%H%M" #~ msgid "%H%M"
#~ msgstr "%H%M" #~ msgstr "%H%M"
@ -1693,8 +1713,10 @@ msgstr "O diálogo de autenticação foi descartado pelo usuário"
#~ msgid "This account is already connected to the server" #~ msgid "This account is already connected to the server"
#~ msgstr "Esta conta já está conectada ao servidor" #~ msgstr "Esta conta já está conectada ao servidor"
#~ msgid "Connection has been replaced by a new connection using the same resource" #~ msgid ""
#~ msgstr "A conexão foi substituída por uma nova conexão usando o mesmo recurso" #~ "Connection has been replaced by a new connection using the same resource"
#~ msgstr ""
#~ "A conexão foi substituída por uma nova conexão usando o mesmo recurso"
#~ msgid "The account already exists on the server" #~ msgid "The account already exists on the server"
#~ msgstr "A conta já existe no servidor" #~ msgstr "A conta já existe no servidor"
@ -1705,15 +1727,18 @@ msgstr "O diálogo de autenticação foi descartado pelo usuário"
#~ msgid "Certificate has been revoked" #~ msgid "Certificate has been revoked"
#~ msgstr "O certificado foi revogado" #~ msgstr "O certificado foi revogado"
#~ msgid "Certificate uses an insecure cipher algorithm or is cryptographically weak" #~ msgid ""
#~ msgstr "O certificado usa um algoritmo de cifragem inseguro ou é criptograficamente fraco" #~ "Certificate uses an insecure cipher algorithm or is cryptographically weak"
#~ msgstr ""
#~ "O certificado usa um algoritmo de cifragem inseguro ou é "
#~ "criptograficamente fraco"
#~ msgid "" #~ msgid ""
#~ "The length of the server certificate, or the depth of the server certificate chain, exceed the limits imposed by the " #~ "The length of the server certificate, or the depth of the server "
#~ "cryptography library" #~ "certificate chain, exceed the limits imposed by the cryptography library"
#~ msgstr "" #~ msgstr ""
#~ "O comprimento do certificado do servidor, ou a profundidade da cadeia do certificado excedeu os limites impostos pela " #~ "O comprimento do certificado do servidor, ou a profundidade da cadeia do "
#~ "biblioteca de criptografia" #~ "certificado excedeu os limites impostos pela biblioteca de criptografia"
#~ msgid "Internal error" #~ msgid "Internal error"
#~ msgstr "Erro interno" #~ msgstr "Erro interno"

731
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

462
po/sv.po

File diff suppressed because it is too large Load Diff

663
po/vi.po

File diff suppressed because it is too large Load Diff

View File

@ -176,15 +176,15 @@ gtk_menu_tracker_section_sync_separators (GtkMenuTrackerSection *section,
if (subsection) if (subsection)
{ {
gboolean section_could_have_separator; gboolean could_have_separator;
section_could_have_separator = (section->with_separators && n_items > 0) || subsection->separator_label; could_have_separator = (section->with_separators && n_items > 0) || subsection->separator_label;
/* Only pass the parent_model and parent_index in case they may be used to create the separator. */ /* Only pass the parent_model and parent_index in case they may be used to create the separator. */
n_items += gtk_menu_tracker_section_sync_separators (subsection, tracker, offset + n_items, n_items += gtk_menu_tracker_section_sync_separators (subsection, tracker, offset + n_items,
section_could_have_separator, could_have_separator,
section_could_have_separator ? section->model : NULL, could_have_separator ? section->model : NULL,
section_could_have_separator ? i : 0); could_have_separator ? i : 0);
} }
else else
n_items++; n_items++;
@ -197,11 +197,11 @@ gtk_menu_tracker_section_sync_separators (GtkMenuTrackerSection *section,
if (should_have_separator > section->has_separator) if (should_have_separator > section->has_separator)
{ {
/* Add a separator */ /* Add a separator */
GtkMenuTrackerItem *menuitem; GtkMenuTrackerItem *item;
menuitem = _gtk_menu_tracker_item_new (tracker->observable, parent_model, parent_index, NULL, TRUE); item = _gtk_menu_tracker_item_new (tracker->observable, parent_model, parent_index, NULL, TRUE);
(* tracker->insert_func) (menuitem, offset, tracker->user_data); (* tracker->insert_func) (item, offset, tracker->user_data);
g_object_unref (menuitem); g_object_unref (item);
section->has_separator = TRUE; section->has_separator = TRUE;
} }

Submodule src/gvc updated: 0a79019088...fac3a900e5

View File

@ -54,7 +54,7 @@ static void
shell_dbus_acquire_name (GDBusProxy *bus, shell_dbus_acquire_name (GDBusProxy *bus,
guint32 request_name_flags, guint32 request_name_flags,
guint32 *request_name_result, guint32 *request_name_result,
const gchar *name, gchar *name,
gboolean fatal) gboolean fatal)
{ {
GError *error = NULL; GError *error = NULL;
@ -68,26 +68,24 @@ shell_dbus_acquire_name (GDBusProxy *bus,
NULL, /* cancellable */ NULL, /* cancellable */
&error))) &error)))
{ {
g_printerr ("failed to acquire %s: %s\n", name, error ? error->message : ""); g_printerr ("failed to acquire %s: %s\n", name, error->message);
g_clear_error (&error);
if (!fatal) if (!fatal)
return; return;
exit (1); exit (1);
} }
g_variant_get (request_name_variant, "(u)", request_name_result); g_variant_get (request_name_variant, "(u)", request_name_result);
g_variant_unref (request_name_variant);
} }
static void static void
shell_dbus_acquire_names (GDBusProxy *bus, shell_dbus_acquire_names (GDBusProxy *bus,
guint32 request_name_flags, guint32 request_name_flags,
const gchar *name, gchar *name,
gboolean fatal, ...) G_GNUC_NULL_TERMINATED; gboolean fatal, ...) G_GNUC_NULL_TERMINATED;
static void static void
shell_dbus_acquire_names (GDBusProxy *bus, shell_dbus_acquire_names (GDBusProxy *bus,
guint32 request_name_flags, guint32 request_name_flags,
const gchar *name, gchar *name,
gboolean fatal, ...) gboolean fatal, ...)
{ {
va_list al; va_list al;
@ -132,12 +130,6 @@ shell_dbus_init (gboolean replace)
NULL, /* cancellable */ NULL, /* cancellable */
&error); &error);
if (!bus)
{
g_printerr ("Failed to get a session bus proxy: %s", error->message);
exit (1);
}
request_name_flags = G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT; request_name_flags = G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT;
if (replace) if (replace)
request_name_flags |= DBUS_NAME_FLAG_REPLACE_EXISTING; request_name_flags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
@ -462,7 +454,7 @@ main (int argc, char **argv)
/* Initialize the global object */ /* Initialize the global object */
if (session_mode == NULL) if (session_mode == NULL)
session_mode = is_gdm_mode ? (char *)"gdm" : (char *)"user"; session_mode = is_gdm_mode ? "gdm" : "user";
_shell_global_init ("session-mode", session_mode, NULL); _shell_global_init ("session-mode", session_mode, NULL);

View File

@ -182,7 +182,7 @@ shell_app_system_finalize (GObject *object)
* Return Value: (transfer none): The global #ShellAppSystem singleton * Return Value: (transfer none): The global #ShellAppSystem singleton
*/ */
ShellAppSystem * ShellAppSystem *
shell_app_system_get_default (void) shell_app_system_get_default ()
{ {
static ShellAppSystem *instance = NULL; static ShellAppSystem *instance = NULL;
@ -348,9 +348,6 @@ _shell_app_system_notify_app_state_changed (ShellAppSystem *self,
case SHELL_APP_STATE_STOPPED: case SHELL_APP_STATE_STOPPED:
g_hash_table_remove (self->priv->running_apps, app); g_hash_table_remove (self->priv->running_apps, app);
break; break;
default:
g_warn_if_reached();
break;
} }
g_signal_emit (self, signals[APP_STATE_CHANGED], 0, app); g_signal_emit (self, signals[APP_STATE_CHANGED], 0, app);
} }

View File

@ -996,7 +996,7 @@ on_enable_monitoring_key_changed (GSettings *settings,
* Return Value: (transfer none): The global #ShellAppUsage instance * Return Value: (transfer none): The global #ShellAppUsage instance
*/ */
ShellAppUsage * ShellAppUsage *
shell_app_usage_get_default (void) shell_app_usage_get_default ()
{ {
static ShellAppUsage *instance; static ShellAppUsage *instance;

View File

@ -491,9 +491,6 @@ shell_app_activate_full (ShellApp *app,
case SHELL_APP_STATE_RUNNING: case SHELL_APP_STATE_RUNNING:
shell_app_activate_window (app, NULL, timestamp); shell_app_activate_window (app, NULL, timestamp);
break; break;
default:
g_assert_not_reached();
break;
} }
} }
@ -702,7 +699,7 @@ static int
shell_app_get_last_user_time (ShellApp *app) shell_app_get_last_user_time (ShellApp *app)
{ {
GSList *iter; GSList *iter;
guint32 last_user_time; int last_user_time;
last_user_time = 0; last_user_time = 0;
@ -712,7 +709,7 @@ shell_app_get_last_user_time (ShellApp *app)
last_user_time = MAX (last_user_time, meta_window_get_user_time (iter->data)); last_user_time = MAX (last_user_time, meta_window_get_user_time (iter->data));
} }
return (int)last_user_time; return last_user_time;
} }
/** /**

View File

@ -1566,6 +1566,64 @@ shell_global_get_current_time (ShellGlobal *global)
return clutter_get_current_event_time (); return clutter_get_current_event_time ();
} }
static void
import_session_environment_to_app_launch_context (ShellGlobal *global,
GAppLaunchContext *context)
{
char *environment_dir, *environment_filename;
GMappedFile *environment_file;
environment_dir = g_build_filename (g_get_user_runtime_dir (), "gnome", NULL);
environment_filename = g_build_filename (environment_dir, "environment", NULL);
g_free (environment_dir);
environment_file = g_mapped_file_new (environment_filename, FALSE, NULL);
g_free (environment_filename);
if (environment_file != NULL)
{
GVariant *environment_variant;
const char **environment;
int i = 0;
gconstpointer environment_data;
gsize environment_size;
environment_data = g_mapped_file_get_contents (environment_file);
environment_size = g_mapped_file_get_length (environment_file);
environment_variant = g_variant_new_from_data (G_VARIANT_TYPE_BYTESTRING_ARRAY,
environment_data,
environment_size,
FALSE,
NULL,
NULL);
environment = g_variant_get_bytestring_array (environment_variant, NULL);
if (environment != NULL)
{
for (i = 0; environment[i] != NULL; i++)
{
char **entry;
const char *key;
const char *value;
entry = g_strsplit (environment[i], "=", 2);
key = entry[0];
value = entry[1];
if (value != NULL)
g_app_launch_context_setenv (context, key, value);
g_free (entry);
}
g_free (environment);
}
g_variant_unref (environment_variant);
}
g_mapped_file_unref (environment_file);
}
/** /**
* shell_global_create_app_launch_context: * shell_global_create_app_launch_context:
* @global: A #ShellGlobal * @global: A #ShellGlobal
@ -1586,6 +1644,8 @@ shell_global_create_app_launch_context (ShellGlobal *global,
context = gdk_display_get_app_launch_context (global->gdk_display); context = gdk_display_get_app_launch_context (global->gdk_display);
import_session_environment_to_app_launch_context (global, G_APP_LAUNCH_CONTEXT (context));
if (timestamp == 0) if (timestamp == 0)
timestamp = shell_global_get_current_time (global); timestamp = shell_global_get_current_time (global);
gdk_app_launch_context_set_timestamp (context, timestamp); gdk_app_launch_context_set_timestamp (context, timestamp);

View File

@ -68,6 +68,7 @@ shell_gtk_embed_window_created_cb (MetaDisplay *display,
{ {
ClutterActor *window_actor = ClutterActor *window_actor =
CLUTTER_ACTOR (meta_window_get_compositor_private (window)); CLUTTER_ACTOR (meta_window_get_compositor_private (window));
MetaDisplay *display = shell_global_get_display (shell_global_get ());
GCallback remove_cb = G_CALLBACK (shell_gtk_embed_remove_window_actor); GCallback remove_cb = G_CALLBACK (shell_gtk_embed_remove_window_actor);
cairo_region_t *empty_region; cairo_region_t *empty_region;

View File

@ -125,9 +125,8 @@ on_window_draw (GtkWidget *window,
WindowInfo *info) WindowInfo *info)
{ {
cairo_rectangle_int_t allocation; cairo_rectangle_int_t allocation;
double x_offset, y_offset;
gtk_widget_get_allocation (window, &allocation); gtk_widget_get_allocation (window, &allocation);
double x_offset, y_offset;
/* We draw an arbitrary pattern of red lines near the border of the /* We draw an arbitrary pattern of red lines near the border of the
* window to make it more clear than empty windows if something * window to make it more clear than empty windows if something

View File

@ -626,7 +626,7 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log)
{ {
gint64 event_time = get_time (); gint64 event_time = get_time ();
gint64 collection_time; gint64 collection_time;
guint i; int i;
if (!perf_log->enabled) if (!perf_log->enabled)
return; return;
@ -672,9 +672,6 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log)
statistic->recorded = TRUE; statistic->recorded = TRUE;
} }
break; break;
default:
g_warning ("Unsupported signature in event");
break;
} }
} }
@ -822,7 +819,7 @@ shell_perf_log_dump_events (ShellPerfLog *perf_log,
GError **error) GError **error)
{ {
GString *output; GString *output;
guint i; int i;
output = g_string_new (NULL); output = g_string_new (NULL);
g_string_append (output, "[ "); g_string_append (output, "[ ");

View File

@ -156,16 +156,16 @@ shell_recorder_src_send_event (GstElement * element, GstEvent * event)
ShellRecorderSrc *src = SHELL_RECORDER_SRC (element); ShellRecorderSrc *src = SHELL_RECORDER_SRC (element);
gboolean res; gboolean res;
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) switch (GST_EVENT_TYPE (event)) {
{ case GST_EVENT_EOS:
shell_recorder_src_close (src); shell_recorder_src_close (src);
gst_event_unref (event); gst_event_unref (event);
res = TRUE; res = TRUE;
} break;
else default:
{
res = GST_CALL_PARENT_WITH_DEFAULT (GST_ELEMENT_CLASS, send_event, (element, res = GST_CALL_PARENT_WITH_DEFAULT (GST_ELEMENT_CLASS, send_event, (element,
event), FALSE); event), FALSE);
break;
} }
return res; return res;
} }

View File

@ -1182,12 +1182,12 @@ recorder_pipeline_bus_watch (GstBus *bus,
{ {
RecorderPipeline *pipeline = data; RecorderPipeline *pipeline = data;
if (message->type == GST_MESSAGE_EOS) switch (message->type)
{ {
case GST_MESSAGE_EOS:
recorder_pipeline_closed (pipeline); recorder_pipeline_closed (pipeline);
return FALSE; /* remove watch */ return FALSE; /* remove watch */
} case GST_MESSAGE_ERROR:
else if (message->type == GST_MESSAGE_ERROR)
{ {
GError *error; GError *error;
@ -1197,6 +1197,9 @@ recorder_pipeline_bus_watch (GstBus *bus,
recorder_pipeline_closed (pipeline); recorder_pipeline_closed (pipeline);
return FALSE; /* remove watch */ return FALSE; /* remove watch */
} }
default:
break;
}
/* Leave the watch in place */ /* Leave the watch in place */
return TRUE; return TRUE;

View File

@ -84,7 +84,7 @@ shell_util_get_transformed_allocation (ClutterActor *actor,
*/ */
ClutterVertex v[4]; ClutterVertex v[4];
gfloat x_min, x_max, y_min, y_max; gfloat x_min, x_max, y_min, y_max;
guint i; gint i;
g_return_if_fail (CLUTTER_IS_ACTOR (actor)); g_return_if_fail (CLUTTER_IS_ACTOR (actor));
@ -165,7 +165,7 @@ shell_util_format_date (const char *format,
*/ */
/* Copied from gtkcalendar.c */ /* Copied from gtkcalendar.c */
int int
shell_util_get_week_start (void) shell_util_get_week_start ()
{ {
int week_start; int week_start;
#ifdef HAVE__NL_TIME_FIRST_WEEKDAY #ifdef HAVE__NL_TIME_FIRST_WEEKDAY

View File

@ -865,7 +865,7 @@ shell_startup_sequence_create_icon (ShellStartupSequence *sequence, guint size)
* Return Value: (transfer none): The global #ShellWindowTracker instance * Return Value: (transfer none): The global #ShellWindowTracker instance
*/ */
ShellWindowTracker * ShellWindowTracker *
shell_window_tracker_get_default (void) shell_window_tracker_get_default ()
{ {
static ShellWindowTracker *instance; static ShellWindowTracker *instance;

View File

@ -801,6 +801,9 @@ struct _StButtonAccessibleClass
StWidgetAccessibleClass parent_class; StWidgetAccessibleClass parent_class;
}; };
static void st_button_accessible_class_init (StButtonAccessibleClass *klass);
static void st_button_accessible_init (StButtonAccessible *button);
/* AtkObject */ /* AtkObject */
static void st_button_accessible_initialize (AtkObject *obj, static void st_button_accessible_initialize (AtkObject *obj,
gpointer data); gpointer data);

View File

@ -94,8 +94,8 @@ st_drawing_area_paint (ClutterActor *self)
} }
if (priv->texture != NULL && if (priv->texture != NULL &&
(width != (int)cogl_texture_get_width (priv->texture) || (width != cogl_texture_get_width (priv->texture) ||
height != (int)cogl_texture_get_height (priv->texture))) height != cogl_texture_get_height (priv->texture)))
{ {
cogl_object_unref (priv->texture); cogl_object_unref (priv->texture);
priv->texture = NULL; priv->texture = NULL;

View File

@ -408,6 +408,9 @@ struct _StLabelAccessibleClass
StWidgetAccessibleClass parent_class; StWidgetAccessibleClass parent_class;
}; };
static void st_label_accessible_class_init (StLabelAccessibleClass *klass);
static void st_label_accessible_init (StLabelAccessible *label);
/* AtkObject */ /* AtkObject */
static void st_label_accessible_initialize (AtkObject *obj, static void st_label_accessible_initialize (AtkObject *obj,
gpointer data); gpointer data);

View File

@ -211,7 +211,7 @@ calculate_gaussian_kernel (gdouble sigma,
{ {
gdouble *ret, sum; gdouble *ret, sum;
gdouble exp_divisor; gdouble exp_divisor;
guint half, i; gint half, i;
g_return_val_if_fail (sigma > 0, NULL); g_return_val_if_fail (sigma > 0, NULL);
@ -383,6 +383,9 @@ _st_create_shadow_pipeline (StShadow *shadow_spec,
if (G_UNLIKELY (shadow_pipeline_template == NULL)) if (G_UNLIKELY (shadow_pipeline_template == NULL))
{ {
CoglContext *ctx =
clutter_backend_get_cogl_context (clutter_get_default_backend ());
shadow_pipeline_template = cogl_pipeline_new (ctx); shadow_pipeline_template = cogl_pipeline_new (ctx);
/* We set up the pipeline to blend the shadow texture with the combine /* We set up the pipeline to blend the shadow texture with the combine

View File

@ -450,7 +450,6 @@ adjust_with_direction (StAdjustment *adj,
delta = 1.0; delta = 1.0;
break; break;
case CLUTTER_SCROLL_SMOOTH: case CLUTTER_SCROLL_SMOOTH:
default:
g_assert_not_reached (); g_assert_not_reached ();
break; break;
} }
@ -486,9 +485,6 @@ st_scroll_bar_scroll_event (ClutterActor *actor,
case CLUTTER_SCROLL_RIGHT: case CLUTTER_SCROLL_RIGHT:
adjust_with_direction (priv->adjustment, event->direction); adjust_with_direction (priv->adjustment, event->direction);
break; break;
default:
g_return_val_if_reached (FALSE);
break;
} }
return TRUE; return TRUE;

View File

@ -378,9 +378,6 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
* but that's not cleanly defined at the moment */ * but that's not cleanly defined at the moment */
min_width = 0; min_width = 0;
break; break;
default:
g_warn_if_reached();
break;
} }
switch (priv->vscrollbar_policy) switch (priv->vscrollbar_policy)
@ -399,9 +396,6 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
*/ */
account_for_vscrollbar = !priv->overlay_scrollbars; account_for_vscrollbar = !priv->overlay_scrollbars;
break; break;
default:
g_warn_if_reached();
break;
} }
if (account_for_vscrollbar) if (account_for_vscrollbar)
@ -458,9 +452,6 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
/* We've requested space for the scrollbar, subtract it back out */ /* We've requested space for the scrollbar, subtract it back out */
for_width -= sb_width; for_width -= sb_width;
break; break;
default:
g_warn_if_reached();
break;
} }
switch (priv->hscrollbar_policy) switch (priv->hscrollbar_policy)
@ -479,9 +470,6 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
*/ */
account_for_hscrollbar = !priv->overlay_scrollbars; account_for_hscrollbar = !priv->overlay_scrollbars;
break; break;
default:
g_warn_if_reached();
break;
} }
clutter_actor_get_preferred_height (priv->child, for_width, clutter_actor_get_preferred_height (priv->child, for_width,
@ -501,9 +489,6 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
* but that's not cleanly defined at the moment */ * but that's not cleanly defined at the moment */
min_height = 0; min_height = 0;
break; break;
default:
g_warn_if_reached();
break;
} }
if (account_for_hscrollbar) if (account_for_hscrollbar)
@ -774,9 +759,6 @@ st_scroll_view_scroll_event (ClutterActor *self,
case CLUTTER_SCROLL_RIGHT: case CLUTTER_SCROLL_RIGHT:
adjust_with_direction (priv->hadjustment, event->direction); adjust_with_direction (priv->hadjustment, event->direction);
break; break;
default:
g_warn_if_reached();
break;
} }
return TRUE; return TRUE;

View File

@ -335,9 +335,6 @@ st_theme_node_get_corner_border_widths (StThemeNode *node,
if (border_width_2) if (border_width_2)
*border_width_2 = node->border_width[ST_SIDE_LEFT]; *border_width_2 = node->border_width[ST_SIDE_LEFT];
break; break;
default:
g_assert_not_reached();
break;
} }
} }
@ -384,9 +381,6 @@ st_theme_node_lookup_corner (StThemeNode *node,
over (&node->border_color[ST_SIDE_BOTTOM], &corner.color, &corner.border_color_1); over (&node->border_color[ST_SIDE_BOTTOM], &corner.color, &corner.border_color_1);
over (&node->border_color[ST_SIDE_LEFT], &corner.color, &corner.border_color_2); over (&node->border_color[ST_SIDE_LEFT], &corner.color, &corner.border_color_2);
break; break;
default:
g_assert_not_reached();
break;
} }
if (corner.color.alpha == 0 && if (corner.color.alpha == 0 &&
@ -439,9 +433,6 @@ get_background_scale (StThemeNode *node,
else if (node->background_size_h > -1) else if (node->background_size_h > -1)
*scale_w = node->background_size_h / background_image_height; *scale_w = node->background_size_h / background_image_height;
break; break;
default:
g_assert_not_reached();
break;
} }
if (*scale_h < 0.0) if (*scale_h < 0.0)
*scale_h = *scale_w; *scale_h = *scale_w;
@ -969,7 +960,7 @@ st_theme_node_prerender_background (StThemeNode *node,
gboolean draw_background_image_shadow = FALSE; gboolean draw_background_image_shadow = FALSE;
gboolean has_visible_outline; gboolean has_visible_outline;
ClutterColor border_color; ClutterColor border_color;
guint border_width[4]; int border_width[4];
guint rowstride; guint rowstride;
guchar *data; guchar *data;
ClutterActorBox actor_box; ClutterActorBox actor_box;
@ -1307,15 +1298,15 @@ st_theme_node_load_border_image (StThemeNode *node)
if (node->border_slices_texture == COGL_INVALID_HANDLE) if (node->border_slices_texture == COGL_INVALID_HANDLE)
{ {
StBorderImage *border_image; StBorderImage *border_image;
GFile *file;
int scale_factor;
border_image = st_theme_node_get_border_image (node); border_image = st_theme_node_get_border_image (node);
if (border_image == NULL) if (border_image == NULL)
goto out; goto out;
GFile *file;
file = st_border_image_get_file (border_image); file = st_border_image_get_file (border_image);
int scale_factor;
g_object_get (node->context, "scale-factor", &scale_factor, NULL); g_object_get (node->context, "scale-factor", &scale_factor, NULL);
node->border_slices_texture = st_texture_cache_load_file_to_cogl_texture (st_texture_cache_get_default (), node->border_slices_texture = st_texture_cache_load_file_to_cogl_texture (st_texture_cache_get_default (),
@ -1359,12 +1350,12 @@ st_theme_node_load_background_image (StThemeNode *node)
{ {
GFile *background_image; GFile *background_image;
StShadow *background_image_shadow_spec; StShadow *background_image_shadow_spec;
int scale_factor;
background_image = st_theme_node_get_background_image (node); background_image = st_theme_node_get_background_image (node);
if (background_image == NULL) if (background_image == NULL)
goto out; goto out;
int scale_factor;
g_object_get (node->context, "scale-factor", &scale_factor, NULL); g_object_get (node->context, "scale-factor", &scale_factor, NULL);
background_image_shadow_spec = st_theme_node_get_background_image_shadow (node); background_image_shadow_spec = st_theme_node_get_background_image_shadow (node);
@ -1597,10 +1588,10 @@ st_theme_node_paint_borders (StThemeNodePaintState *state,
{ {
StThemeNode *node = state->node; StThemeNode *node = state->node;
float width, height; float width, height;
guint border_width[4]; int border_width[4];
guint border_radius[4]; guint border_radius[4];
guint max_border_radius = 0; int max_border_radius = 0;
guint max_width_radius[4]; int max_width_radius[4];
int corner_id, side_id; int corner_id, side_id;
ClutterColor border_color; ClutterColor border_color;
guint8 alpha; guint8 alpha;
@ -1729,9 +1720,6 @@ st_theme_node_paint_borders (StThemeNodePaintState *state,
max_width_radius[ST_CORNER_BOTTOMLEFT], height, max_width_radius[ST_CORNER_BOTTOMLEFT], height,
0, 0.5, 0.5, 1); 0, 0.5, 0.5, 1);
break; break;
default:
g_assert_not_reached();
break;
} }
} }
} }
@ -1826,9 +1814,6 @@ st_theme_node_paint_borders (StThemeNodePaintState *state,
verts[7] = height - border_width[ST_SIDE_BOTTOM]; verts[7] = height - border_width[ST_SIDE_BOTTOM];
} }
break; break;
default:
g_assert_not_reached();
break;
} }
cogl_rectangles (verts, n_rects); cogl_rectangles (verts, n_rects);
} }

View File

@ -30,6 +30,8 @@
#include "st-theme-context.h" #include "st-theme-context.h"
#include "st-theme-node-private.h" #include "st-theme-node-private.h"
static void st_theme_node_init (StThemeNode *node);
static void st_theme_node_class_init (StThemeNodeClass *klass);
static void st_theme_node_dispose (GObject *object); static void st_theme_node_dispose (GObject *object);
static void st_theme_node_finalize (GObject *object); static void st_theme_node_finalize (GObject *object);
@ -594,9 +596,6 @@ get_color_from_rgba_term (CRTerm *term,
case 3: case 3:
a = value; a = value;
break; break;
default:
g_assert_not_reached();
break;
} }
arg = arg->next; arg = arg->next;
@ -841,21 +840,26 @@ st_theme_node_lookup_time (StThemeNode *node,
if (strcmp (decl->property->stryng->str, property_name) == 0) if (strcmp (decl->property->stryng->str, property_name) == 0)
{ {
CRTerm *term = decl->value; CRTerm *term = decl->value;
int factor = 1;
if (term->type != TERM_NUMBER) if (term->type != TERM_NUMBER)
continue; continue;
if (term->content.num->type != NUM_TIME_S || switch (term->content.num->type)
term->content.num->type != NUM_TIME_MS) {
continue; case NUM_TIME_S:
*value = 1000 * term->content.num->val;
if (term->content.num->type == NUM_TIME_S)
factor = 1000;
*value = factor * term->content.num->val;
result = TRUE; result = TRUE;
break; break;
case NUM_TIME_MS:
*value = term->content.num->val;
result = TRUE;
break;
default:
;
}
if (result)
break;
} }
} }
@ -1105,7 +1109,6 @@ get_length_from_term (StThemeNode *node,
case NUM_FREQ_KHZ: case NUM_FREQ_KHZ:
case NUM_UNKNOWN_TYPE: case NUM_UNKNOWN_TYPE:
case NB_NUM_TYPE: case NB_NUM_TYPE:
default:
g_warning ("Ignoring invalid type of number of length property"); g_warning ("Ignoring invalid type of number of length property");
return VALUE_NOT_FOUND; return VALUE_NOT_FOUND;
} }
@ -3020,7 +3023,7 @@ st_theme_node_get_border_image (StThemeNode *node)
CRStyleSheet *base_stylesheet; CRStyleSheet *base_stylesheet;
int borders[4]; int borders[4];
int n_borders = 0; int n_borders = 0;
int j; int i;
const char *url; const char *url;
int border_top; int border_top;
@ -3050,7 +3053,7 @@ st_theme_node_get_border_image (StThemeNode *node)
/* Followed by 0 to 4 numbers or percentages. *Not lengths*. The interpretation /* Followed by 0 to 4 numbers or percentages. *Not lengths*. The interpretation
* of a number is supposed to be pixels if the image is pixel based, otherwise CSS pixels. * of a number is supposed to be pixels if the image is pixel based, otherwise CSS pixels.
*/ */
for (j = 0; j < 4; j++) for (i = 0; i < 4; i++)
{ {
if (term == NULL) if (term == NULL)
break; break;
@ -3254,9 +3257,6 @@ parse_shadow_property (StThemeNode *node,
"not allowed"); "not allowed");
*spread = value; *spread = value;
break; break;
default:
g_warning ("Ignoring excess values in shadow definition");
break;
} }
continue; continue;
} }
@ -3633,9 +3633,6 @@ st_theme_node_get_icon_colors (StThemeNode *node)
case SUCCESS: case SUCCESS:
node->icon_colors->success = color; node->icon_colors->success = color;
break; break;
default:
g_assert_not_reached();
break;
} }
} }
} }

View File

@ -615,9 +615,6 @@ additional_selector_matches_style (StTheme *a_this,
if (!pseudo_class_add_sel_matches_style (a_this, cur_add_sel, a_node)) if (!pseudo_class_add_sel_matches_style (a_this, cur_add_sel, a_node))
return FALSE; return FALSE;
break; break;
default:
g_warning ("Unhandled selector type %d", cur_add_sel->type);
return FALSE;
} }
} }
@ -912,10 +909,6 @@ add_matched_properties (StTheme *a_this,
} }
} }
break; break;
case AT_RULE_STMT:
case AT_PAGE_RULE_STMT:
case AT_CHARSET_RULE_STMT:
case AT_FONT_FACE_RULE_STMT:
default: default:
break; break;
} }

View File

@ -349,7 +349,7 @@ static void
st_widget_finalize (GObject *gobject) st_widget_finalize (GObject *gobject)
{ {
StWidgetPrivate *priv = ST_WIDGET (gobject)->priv; StWidgetPrivate *priv = ST_WIDGET (gobject)->priv;
guint i; int i;
g_free (priv->style_class); g_free (priv->style_class);
g_free (priv->pseudo_class); g_free (priv->pseudo_class);
@ -623,9 +623,9 @@ st_widget_get_theme_node (StWidget *widget)
* requiring separate style sheets. * requiring separate style sheets.
*/ */
if (clutter_actor_get_text_direction (CLUTTER_ACTOR (widget)) == CLUTTER_TEXT_DIRECTION_RTL) if (clutter_actor_get_text_direction (CLUTTER_ACTOR (widget)) == CLUTTER_TEXT_DIRECTION_RTL)
direction_pseudo_class = (char *)"rtl"; direction_pseudo_class = "rtl";
else else
direction_pseudo_class = (char *)"ltr"; direction_pseudo_class = "ltr";
if (priv->pseudo_class) if (priv->pseudo_class)
pseudo_class = g_strconcat(priv->pseudo_class, " ", pseudo_class = g_strconcat(priv->pseudo_class, " ",
@ -1495,7 +1495,7 @@ static void
st_widget_init (StWidget *actor) st_widget_init (StWidget *actor)
{ {
StWidgetPrivate *priv; StWidgetPrivate *priv;
guint i; int i;
actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor); actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor);
priv->transition_animation = NULL; priv->transition_animation = NULL;
@ -1849,8 +1849,6 @@ filter_by_position (GList *children,
continue; continue;
break; break;
case GTK_DIR_TAB_BACKWARD:
case GTK_DIR_TAB_FORWARD:
default: default:
g_return_val_if_reached (NULL); g_return_val_if_reached (NULL);
} }
@ -2016,8 +2014,6 @@ st_widget_real_navigate_focus (StWidget *widget,
case GTK_DIR_RIGHT: case GTK_DIR_RIGHT:
sort_box.x2 = sort_box.x1; sort_box.x2 = sort_box.x1;
break; break;
case GTK_DIR_TAB_FORWARD:
case GTK_DIR_TAB_BACKWARD:
default: default:
g_warn_if_reached (); g_warn_if_reached ();
} }
@ -2214,7 +2210,7 @@ st_set_slow_down_factor (gfloat factor)
* Returns: the global factor applied to all animation durations * Returns: the global factor applied to all animation durations
*/ */
gfloat gfloat
st_get_slow_down_factor (void) st_get_slow_down_factor ()
{ {
return st_slow_down_factor; return st_slow_down_factor;
} }
@ -2434,6 +2430,8 @@ st_widget_remove_accessible_state (StWidget *widget,
/* GObject */ /* GObject */
static void st_widget_accessible_class_init (StWidgetAccessibleClass *klass);
static void st_widget_accessible_init (StWidgetAccessible *widget);
static void st_widget_accessible_dispose (GObject *gobject); static void st_widget_accessible_dispose (GObject *gobject);
/* AtkObject */ /* AtkObject */

View File

@ -107,10 +107,8 @@ assert_foreground_color (StThemeNode *node,
guint32 expected) guint32 expected)
{ {
ClutterColor color; ClutterColor color;
guint32 value;
st_theme_node_get_foreground_color (node, &color); st_theme_node_get_foreground_color (node, &color);
value = clutter_color_to_pixel (&color); guint32 value = clutter_color_to_pixel (&color);
if (expected != value) if (expected != value)
{ {
@ -126,10 +124,8 @@ assert_background_color (StThemeNode *node,
guint32 expected) guint32 expected)
{ {
ClutterColor color; ClutterColor color;
guint32 value;
st_theme_node_get_background_color (node, &color); st_theme_node_get_background_color (node, &color);
value = clutter_color_to_pixel (&color); guint32 value = clutter_color_to_pixel (&color);
if (expected != value) if (expected != value)
{ {
@ -152,9 +148,9 @@ side_to_string (StSide side)
return "bottom"; return "bottom";
case ST_SIDE_LEFT: case ST_SIDE_LEFT:
return "left"; return "left";
default:
return "<unknown>";
} }
return "<unknown>";
} }
static void static void
@ -164,10 +160,8 @@ assert_border_color (StThemeNode *node,
guint32 expected) guint32 expected)
{ {
ClutterColor color; ClutterColor color;
guint32 value;
st_theme_node_get_border_color (node, side, &color); st_theme_node_get_border_color (node, side, &color);
value = clutter_color_to_pixel (&color); guint32 value = clutter_color_to_pixel (&color);
if (expected != value) if (expected != value)
{ {