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
443
Issues
443
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
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
8190453e
Commit
8190453e
authored
Jan 14, 2000
by
Darin Adler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use gnome_vfs_uri_extract_short_name.
parent
4a8e9978
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
84 deletions
+9
-84
ChangeLog-20000414
ChangeLog-20000414
+6
-0
src/nautilus-information-panel.c
src/nautilus-information-panel.c
+1
-28
src/nautilus-sidebar.c
src/nautilus-sidebar.c
+1
-28
src/ntl-index-panel.c
src/ntl-index-panel.c
+1
-28
No files found.
ChangeLog-20000414
View file @
8190453e
2000-01-14 Darin Adler <darin@eazel.com>
* src/ntl-index-panel.c: (nautilus_index_panel_set_up_label):
Changed code to use the new gnome_vfs_uri_extract_short_name
instead of its own private function.
2000-01-14 Darin Adler <darin@eazel.com>
First cut at some actual saving of metadata.
...
...
src/nautilus-information-panel.c
View file @
8190453e
...
...
@@ -298,33 +298,6 @@ GdkFont *select_font(const gchar *text_to_format, gint width, const gchar* font_
return
candidate_font
;
}
/* Workaround for gnome_vfs problem. */
static
char
*
nautilus_gnome_vfs_uri_extract_basename
(
GnomeVFSURI
*
uri
)
{
gchar
*
start
;
gchar
*
end
;
g_return_val_if_fail
(
uri
!=
NULL
,
NULL
);
g_assert
(
uri
->
text
!=
NULL
);
/* Skip any trailing directory separators. */
end
=
uri
->
text
+
strlen
(
uri
->
text
);
while
(
end
!=
uri
->
text
&&
end
[
-
1
]
==
G_DIR_SEPARATOR
)
--
end
;
/* Include all non-directory-separator characters. */
start
=
end
;
while
(
start
!=
uri
->
text
&&
start
[
-
1
]
!=
G_DIR_SEPARATOR
)
--
start
;
if
(
start
==
end
)
return
g_strdup
(
"/"
);
return
g_strndup
(
start
,
end
-
start
);
}
/* set up the label */
void
...
...
@@ -340,7 +313,7 @@ nautilus_index_panel_set_up_label (NautilusIndexPanel *index_panel, const gchar
if
(
vfs_uri
==
NULL
)
return
;
file_name
=
nautilus_gnome_vfs_uri_extract_base
name
(
vfs_uri
);
file_name
=
gnome_vfs_uri_extract_short_
name
(
vfs_uri
);
gnome_vfs_uri_unref
(
vfs_uri
);
if
(
file_name
==
NULL
)
...
...
src/nautilus-sidebar.c
View file @
8190453e
...
...
@@ -298,33 +298,6 @@ GdkFont *select_font(const gchar *text_to_format, gint width, const gchar* font_
return
candidate_font
;
}
/* Workaround for gnome_vfs problem. */
static
char
*
nautilus_gnome_vfs_uri_extract_basename
(
GnomeVFSURI
*
uri
)
{
gchar
*
start
;
gchar
*
end
;
g_return_val_if_fail
(
uri
!=
NULL
,
NULL
);
g_assert
(
uri
->
text
!=
NULL
);
/* Skip any trailing directory separators. */
end
=
uri
->
text
+
strlen
(
uri
->
text
);
while
(
end
!=
uri
->
text
&&
end
[
-
1
]
==
G_DIR_SEPARATOR
)
--
end
;
/* Include all non-directory-separator characters. */
start
=
end
;
while
(
start
!=
uri
->
text
&&
start
[
-
1
]
!=
G_DIR_SEPARATOR
)
--
start
;
if
(
start
==
end
)
return
g_strdup
(
"/"
);
return
g_strndup
(
start
,
end
-
start
);
}
/* set up the label */
void
...
...
@@ -340,7 +313,7 @@ nautilus_index_panel_set_up_label (NautilusIndexPanel *index_panel, const gchar
if
(
vfs_uri
==
NULL
)
return
;
file_name
=
nautilus_gnome_vfs_uri_extract_base
name
(
vfs_uri
);
file_name
=
gnome_vfs_uri_extract_short_
name
(
vfs_uri
);
gnome_vfs_uri_unref
(
vfs_uri
);
if
(
file_name
==
NULL
)
...
...
src/ntl-index-panel.c
View file @
8190453e
...
...
@@ -298,33 +298,6 @@ GdkFont *select_font(const gchar *text_to_format, gint width, const gchar* font_
return
candidate_font
;
}
/* Workaround for gnome_vfs problem. */
static
char
*
nautilus_gnome_vfs_uri_extract_basename
(
GnomeVFSURI
*
uri
)
{
gchar
*
start
;
gchar
*
end
;
g_return_val_if_fail
(
uri
!=
NULL
,
NULL
);
g_assert
(
uri
->
text
!=
NULL
);
/* Skip any trailing directory separators. */
end
=
uri
->
text
+
strlen
(
uri
->
text
);
while
(
end
!=
uri
->
text
&&
end
[
-
1
]
==
G_DIR_SEPARATOR
)
--
end
;
/* Include all non-directory-separator characters. */
start
=
end
;
while
(
start
!=
uri
->
text
&&
start
[
-
1
]
!=
G_DIR_SEPARATOR
)
--
start
;
if
(
start
==
end
)
return
g_strdup
(
"/"
);
return
g_strndup
(
start
,
end
-
start
);
}
/* set up the label */
void
...
...
@@ -340,7 +313,7 @@ nautilus_index_panel_set_up_label (NautilusIndexPanel *index_panel, const gchar
if
(
vfs_uri
==
NULL
)
return
;
file_name
=
nautilus_gnome_vfs_uri_extract_base
name
(
vfs_uri
);
file_name
=
gnome_vfs_uri_extract_short_
name
(
vfs_uri
);
gnome_vfs_uri_unref
(
vfs_uri
);
if
(
file_name
==
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