[seahorse] pgp: Fix indentation of previous commit.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] pgp: Fix indentation of previous commit.
- Date: Fri, 3 Aug 2018 00:44:52 +0000 (UTC)
commit 412dbf032e32c5faa6a5cb110513960ab36c1ec0
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri Aug 3 02:43:31 2018 +0200
pgp: Fix indentation of previous commit.
Seems my editor got confused somehow.
pgp/seahorse-gpgme-generate.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-generate.c b/pgp/seahorse-gpgme-generate.c
index 3060a11f..0e4ec23b 100644
--- a/pgp/seahorse-gpgme-generate.c
+++ b/pgp/seahorse-gpgme-generate.c
@@ -347,23 +347,23 @@ on_gpgme_generate_entry_changed (GtkEditable *editable,
SeahorseWidget *swidget = SEAHORSE_WIDGET (user_data);
GtkWidget *widget;
gchar *name;
- gboolean name_long_enough;
+ gboolean name_long_enough;
/* A 5 character name is required */
widget = seahorse_widget_get_widget (swidget, "name-entry");
g_return_if_fail (widget != NULL);
name = g_strdup (gtk_entry_get_text (GTK_ENTRY (widget)));
- name_long_enough = name && strlen (g_strstrip (name)) >= 5;
-
- /* If not, show the user and disable the create button */
- if (!name_long_enough) {
- g_object_set (widget,
- "secondary-icon-name", "dialog-warning-symbolic",
- "secondary-icon-tooltip-text", _("Name must be at least 5 characters long."),
- NULL);
- } else {
- g_object_set (widget, "secondary-icon-name", NULL, NULL);
- }
+ name_long_enough = name && strlen (g_strstrip (name)) >= 5;
+
+ /* If not, show the user and disable the create button */
+ if (!name_long_enough) {
+ g_object_set (widget,
+ "secondary-icon-name", "dialog-warning-symbolic",
+ "secondary-icon-tooltip-text", _("Name must be at least 5 characters long."),
+ NULL);
+ } else {
+ g_object_set (widget, "secondary-icon-name", NULL, NULL);
+ }
widget = seahorse_widget_get_widget (swidget, "ok");
g_return_if_fail (widget != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]