diff options
author | Stefan Walter <stefw@src.gnome.org> | 2008-11-04 13:14:39 +0000 |
---|---|---|
committer | Stefan Walter <stefw@src.gnome.org> | 2008-11-04 13:14:39 +0000 |
commit | e6d8191513b7cf11212eae4c997c099c683aa33e (patch) | |
tree | 0f91790bc0d0f09bb5872dd4bb22abdd174b73b0 /tool | |
parent | 13d8981a311f3860969feea7994c09ca306d603b (diff) | |
download | gnome-keyring-e6d8191513b7cf11212eae4c997c099c683aa33e.tar.gz |
Remove usage of deprecated gtk stuff.
* configure.in:
* tool/gkr-tool-import.c: Remove usage of deprecated gtk stuff.
svn path=/trunk/; revision=1363
Diffstat (limited to 'tool')
-rw-r--r-- | tool/gkr-tool-import.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/gkr-tool-import.c b/tool/gkr-tool-import.c index 41bc7c71..1976767a 100644 --- a/tool/gkr-tool-import.c +++ b/tool/gkr-tool-import.c @@ -140,6 +140,7 @@ import_from_file (GP11Session *session, const gchar *filename) GError *err = NULL; GP11Object *import; GP11Attributes *attrs; + gchar *basename; gchar *data; gsize n_data; @@ -155,7 +156,9 @@ import_from_file (GP11Session *session, const gchar *filename) gp11_attributes_add_boolean (attrs, CKA_TOKEN, FALSE); gp11_attributes_add_ulong (attrs, CKA_CLASS, CKO_GNOME_IMPORT); gp11_attributes_add_boolean (attrs, CKA_GNOME_IMPORT_TOKEN, TRUE); - gp11_attributes_add_string (attrs, CKA_GNOME_IMPORT_LABEL, g_basename (filename)); + basename = g_path_get_basename (filename); + gp11_attributes_add_string (attrs, CKA_GNOME_IMPORT_LABEL, basename); + g_free (basename); import = gp11_session_create_object_full (session, attrs, NULL, &err); gp11_attributes_unref (attrs); |