Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Files
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
430
Issues
430
List
Boards
Labels
Service Desk
Milestones
Merge Requests
25
Merge Requests
25
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
Files
Commits
b4d114b9
Commit
b4d114b9
authored
Dec 31, 1999
by
John Sullivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create directory for bookmarks if necessary.
parent
d9326fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
ChangeLog-20000414
ChangeLog-20000414
+7
-0
src/nautilus-bookmarklist.c
src/nautilus-bookmarklist.c
+11
-6
No files found.
ChangeLog-20000414
View file @
b4d114b9
1999-12-30 John Sullivan <sullivan@eazel.com>
* src/nautilus_bookmarklist.c: (nautilus_bookmarklist_get_file_path):
Create directory that contains bookmarks file if it's not already
there. Saving bookmarks would have failed (silently) for anyone
who didn't already have a ~/.gnomad directory without this change.
1999-12-30 John Sullivan <sullivan@eazel.com>
Made NautilusBookmark use gchar * instead of GString
...
...
src/nautilus-bookmarklist.c
View file @
b4d114b9
...
...
@@ -47,6 +47,8 @@ static void nautilus_bookmarklist_save_file (NautilusBookmarklist *bookmar
static
GtkObjectClass
*
parent_class
=
NULL
;
static
guint
bookmarklist_signals
[
LAST_SIGNAL
]
=
{
0
};
const
unsigned
default_gnomad_directory_mode
=
0755
;
/* GtkObject methods. */
...
...
@@ -246,12 +248,15 @@ nautilus_bookmarklist_get_file_path (NautilusBookmarklist *bookmarks)
static
gchar
*
file_path
=
NULL
;
if
(
file_path
==
NULL
)
{
/* FIXME: directory shouldn't be hardwired here;
* file name is debatable.
*/
file_path
=
g_strconcat
(
g_get_home_dir
(),
G_DIR_SEPARATOR_S
,
".gnomad"
,
file_path
=
g_strconcat
(
g_get_home_dir
(),
G_DIR_SEPARATOR_S
,
".gnomad"
,
NULL
);
/* FIXME: make and use covers for these file-manipulation routines */
if
(
access
(
file_path
,
R_OK
)
!=
0
)
{
mkdir
(
file_path
,
default_gnomad_directory_mode
);
}
file_path
=
g_strconcat
(
file_path
,
G_DIR_SEPARATOR_S
,
"bookmarks.xml"
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment