unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e236f6a2e123729117527f37e152ff1dbcf0c74e 1333 bytes (raw)
name: gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
From d9db29db567012b7c72e85e1be1fbf55fcc9b667 Mon Sep 17 00:00:00 2001
From: Niels De Graef <nielsdegraef@gmail.com>
Date: Sat, 11 May 2019 09:02:34 +0200
Subject: [PATCH] gkr: Use 0 on empty flags

A Flags-type variable without any flag set can be replaced with 0, so
this is a safe thing to do. It also prevents us from having to deal with
the accidental API break in libsecret (see
https://gitlab.gnome.org/GNOME/libsecret/merge_requests/19)
---
 gkr/gkr-keyring-add.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gkr/gkr-keyring-add.vala b/gkr/gkr-keyring-add.vala
index 4e92a520..f60c9a22 100644
--- a/gkr/gkr-keyring-add.vala
+++ b/gkr/gkr-keyring-add.vala
@@ -41,8 +41,7 @@ public class Seahorse.Gkr.KeyringAdd : Gtk.Dialog {
 
         var cancellable = Dialog.begin_request(this);
         var service = Backend.instance().service;
-        Secret.Collection.create.begin(service, this.name_entry.text, null,
-                                       Secret.CollectionCreateFlags.COLLECTION_CREATE_NONE,
+        Secret.Collection.create.begin(service, this.name_entry.text, null, 0,
                                        cancellable, (obj, res) => {
             /* Clear the operation without cancelling it since it is complete */
             Dialog.complete_request(this, false);
-- 
2.23.0


debug log:

solving e236f6a2e1 ...
found e236f6a2e1 in https://yhetil.org/guix-patches/20191021192050.0a3eed23@gmail.com/ ||
	https://yhetil.org/guix-patches/20191021172512.2f21d05f@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/20191021192050.0a3eed23@gmail.com/
diff --git a/gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch b/gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch
new file mode 100644
index 0000000000..e236f6a2e1

1:25: trailing whitespace.
 
1:34: trailing whitespace.
-- 
Checking patch gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch...
1:36: new blank line at EOF.
+
Applied patch gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/20191021172512.2f21d05f@gmail.com/ for e236f6a2e1
index at:
100644 e236f6a2e123729117527f37e152ff1dbcf0c74e	gnu/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).