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
441
Issues
441
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
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
b7cb31db
Commit
b7cb31db
authored
Jan 18, 2000
by
John Sullivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change window title when location changes.
parent
3a5a36ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
0 deletions
+76
-0
ChangeLog-20000414
ChangeLog-20000414
+8
-0
src/nautilus-window-manage-views.c
src/nautilus-window-manage-views.c
+34
-0
src/ntl-window-msgs.c
src/ntl-window-msgs.c
+34
-0
No files found.
ChangeLog-20000414
View file @
b7cb31db
2000-01-18 John Sullivan <sullivan@eazel.com>
* src/ntl-window-msgs.c:
(nautilus_window_refresh_title): Sets the window title to
Nautilus: x, where x is short name of current location.
(nautilus_window_change_location_internal): Call
nautilus_window_refresh_title.
2000-01-18 John Sullivan <sullivan@eazel.com>
* src/file-manager/fm-directory-view.c:
...
...
src/nautilus-window-manage-views.c
View file @
b7cb31db
...
...
@@ -77,6 +77,7 @@ static NautilusView *nautilus_window_load_content_view(NautilusWindow *window,
static
void
nautilus_window_switch_to_new_views
(
NautilusWindow
*
window
);
static
void
nautilus_window_revert_to_old_views
(
NautilusWindow
*
window
);
static
void
nautilus_window_free_load_info
(
NautilusWindow
*
window
);
static
void
nautilus_window_refresh_title
(
NautilusWindow
*
window
);
static
void
Nautilus_SelectionInfo__copy
(
Nautilus_SelectionInfo
*
dest_si
,
Nautilus_SelectionInfo
*
src_si
)
...
...
@@ -368,6 +369,8 @@ nautilus_window_change_location_internal(NautilusWindow *window, Nautilus_Naviga
explorer_location_bar_set_uri_string
(
EXPLORER_LOCATION_BAR
(
window
->
ent_uri
),
loci
->
requested_uri
);
nautilus_window_refresh_title
(
window
);
}
static
void
...
...
@@ -512,6 +515,37 @@ nautilus_window_load_meta_view(NautilusWindow *window,
}
}
static
void
nautilus_window_refresh_title
(
NautilusWindow
*
window
)
{
GnomeVFSURI
*
vfs_uri
;
g_return_if_fail
(
NAUTILUS_IS_WINDOW
(
window
));
vfs_uri
=
gnome_vfs_uri_new
(
nautilus_window_get_requested_uri
(
window
));
if
(
vfs_uri
==
NULL
)
{
gtk_window_set_title
(
GTK_WINDOW
(
window
),
_
(
"Nautilus"
));
}
else
{
gchar
*
short_name
;
gchar
*
new_title
;
short_name
=
gnome_vfs_uri_extract_short_name
(
vfs_uri
);
gnome_vfs_uri_unref
(
vfs_uri
);
g_assert
(
short_name
!=
NULL
);
new_title
=
g_strdup_printf
(
_
(
"Nautilus: %s"
),
short_name
);
gtk_window_set_title
(
GTK_WINDOW
(
window
),
new_title
);
g_free
(
new_title
);
g_free
(
short_name
);
}
}
/* This is called when we have decided we can actually change to the new location. */
static
void
nautilus_window_switch_to_new_views
(
NautilusWindow
*
window
)
...
...
src/ntl-window-msgs.c
View file @
b7cb31db
...
...
@@ -77,6 +77,7 @@ static NautilusView *nautilus_window_load_content_view(NautilusWindow *window,
static
void
nautilus_window_switch_to_new_views
(
NautilusWindow
*
window
);
static
void
nautilus_window_revert_to_old_views
(
NautilusWindow
*
window
);
static
void
nautilus_window_free_load_info
(
NautilusWindow
*
window
);
static
void
nautilus_window_refresh_title
(
NautilusWindow
*
window
);
static
void
Nautilus_SelectionInfo__copy
(
Nautilus_SelectionInfo
*
dest_si
,
Nautilus_SelectionInfo
*
src_si
)
...
...
@@ -368,6 +369,8 @@ nautilus_window_change_location_internal(NautilusWindow *window, Nautilus_Naviga
explorer_location_bar_set_uri_string
(
EXPLORER_LOCATION_BAR
(
window
->
ent_uri
),
loci
->
requested_uri
);
nautilus_window_refresh_title
(
window
);
}
static
void
...
...
@@ -512,6 +515,37 @@ nautilus_window_load_meta_view(NautilusWindow *window,
}
}
static
void
nautilus_window_refresh_title
(
NautilusWindow
*
window
)
{
GnomeVFSURI
*
vfs_uri
;
g_return_if_fail
(
NAUTILUS_IS_WINDOW
(
window
));
vfs_uri
=
gnome_vfs_uri_new
(
nautilus_window_get_requested_uri
(
window
));
if
(
vfs_uri
==
NULL
)
{
gtk_window_set_title
(
GTK_WINDOW
(
window
),
_
(
"Nautilus"
));
}
else
{
gchar
*
short_name
;
gchar
*
new_title
;
short_name
=
gnome_vfs_uri_extract_short_name
(
vfs_uri
);
gnome_vfs_uri_unref
(
vfs_uri
);
g_assert
(
short_name
!=
NULL
);
new_title
=
g_strdup_printf
(
_
(
"Nautilus: %s"
),
short_name
);
gtk_window_set_title
(
GTK_WINDOW
(
window
),
new_title
);
g_free
(
new_title
);
g_free
(
short_name
);
}
}
/* This is called when we have decided we can actually change to the new location. */
static
void
nautilus_window_switch_to_new_views
(
NautilusWindow
*
window
)
...
...
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