[polari] connections: Simplify details dialog a bit
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] connections: Simplify details dialog a bit
- Date: Fri, 5 Feb 2016 21:19:41 +0000 (UTC)
commit 24c562b6b217efffe57dd2eac5c88fb392793e84
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 3 20:03:02 2016 +0100
connections: Simplify details dialog a bit
Since the connections dialog was removed, it is only used to edit an
existing connection, never to create a new one.
src/connections.js | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 3537cdc..4394fce 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -207,9 +207,7 @@ const ConnectionDetailsDialog = new Lang.Class({
Name: 'ConnectionDetailsDialog',
_init: function(account) {
- let title = account ? _("Edit Connection")
- : _("New Connection");
- this.widget = new Gtk.Dialog({ title: title,
+ this.widget = new Gtk.Dialog({ title: _("Edit Connection"),
modal: true,
destroy_with_parent: true,
use_header_bar: true });
@@ -224,8 +222,7 @@ const ConnectionDetailsDialog = new Lang.Class({
this.widget.add_button(_("_Cancel"), Gtk.ResponseType.CANCEL);
- let confirmLabel = account ? _("A_pply") : _("Cr_eate");
- this._confirmButton = this.widget.add_button(confirmLabel,
+ this._confirmButton = this.widget.add_button(_("A_pply"),
Gtk.ResponseType.OK);
this._confirmButton.get_style_context().add_class('suggested-action');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]