Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
Files
Commits
0e731404
Commit
0e731404
authored
Feb 17, 2011
by
Cosimo Cecchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: assume all windows are navigation windows
parent
b6b63e35
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
63 deletions
+40
-63
src/nautilus-application.c
src/nautilus-application.c
+3
-10
src/nautilus-bookmarks-window.c
src/nautilus-bookmarks-window.c
+0
-7
src/nautilus-window-manage-views.c
src/nautilus-window-manage-views.c
+25
-30
src/nautilus-window-pane.c
src/nautilus-window-pane.c
+1
-3
src/nautilus-window.c
src/nautilus-window.c
+11
-13
No files found.
src/nautilus-application.c
View file @
0e731404
...
...
@@ -717,21 +717,15 @@ nautilus_application_close_all_navigation_windows (NautilusApplication *self)
NautilusWindow
*
window
;
window
=
NAUTILUS_WINDOW
(
l
->
data
);
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
window
))
{
gtk_widget_hide
(
GTK_WIDGET
(
window
));
}
}
for
(
l
=
list_copy
;
l
!=
NULL
;
l
=
l
->
next
)
{
NautilusWindow
*
window
;
window
=
NAUTILUS_WINDOW
(
l
->
data
);
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
window
))
{
nautilus_window_close
(
window
);
}
}
g_list_free
(
list_copy
);
}
...
...
@@ -791,8 +785,7 @@ another_navigation_window_already_showing (NautilusApplication *application,
list
=
gtk_application_get_windows
(
GTK_APPLICATION
(
application
));
for
(
item
=
list
;
item
!=
NULL
;
item
=
item
->
next
)
{
if
(
item
->
data
!=
the_window
&&
NAUTILUS_IS_NAVIGATION_WINDOW
(
item
->
data
))
{
if
(
item
->
data
!=
the_window
)
{
return
TRUE
;
}
}
...
...
src/nautilus-bookmarks-window.c
View file @
0e731404
...
...
@@ -63,7 +63,6 @@ static int button_pressed_signal_id;
static
int
key_pressed_signal_id
;
static
int
jump_button_signal_id
;
static
NautilusApplication
*
application
;
static
gboolean
parent_is_browser_window
;
/* forward declarations */
static
guint
get_selected_row
(
void
);
...
...
@@ -266,12 +265,6 @@ create_bookmarks_window (NautilusBookmarkList *list, GObject *undo_manager_sourc
application
=
nautilus_application_dup_singleton
();
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
undo_manager_source
))
{
parent_is_browser_window
=
TRUE
;
}
else
{
parent_is_browser_window
=
FALSE
;
}
set_up_close_accelerator
(
window
);
nautilus_undo_share_undo_manager
(
G_OBJECT
(
window
),
undo_manager_source
);
...
...
src/nautilus-window-manage-views.c
View file @
0e731404
...
...
@@ -324,6 +324,9 @@ viewed_file_changed_callback (NautilusFile *file,
* file was never seen in the first place.
*/
if
(
slot
->
viewed_file_seen
)
{
/* auto-show existing parent. */
GFile
*
go_to_file
,
*
parent
,
*
location
;
/* Detecting a file is gone may happen in the
* middle of a pending location change, we
* need to cancel it before closing the window
...
...
@@ -339,10 +342,6 @@ viewed_file_changed_callback (NautilusFile *file,
*/
end_location_change
(
slot
);
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
window
))
{
/* auto-show existing parent. */
GFile
*
go_to_file
,
*
parent
,
*
location
;
go_to_file
=
NULL
;
location
=
nautilus_file_get_location
(
file
);
parent
=
g_file_get_parent
(
location
);
...
...
@@ -368,9 +367,6 @@ viewed_file_changed_callback (NautilusFile *file,
}
else
{
nautilus_window_slot_go_home
(
slot
,
FALSE
);
}
}
else
{
nautilus_window_close
(
window
);
}
}
}
else
{
new_location
=
nautilus_file_get_location
(
file
);
...
...
@@ -512,8 +508,7 @@ nautilus_window_slot_open_location_full (NautilusWindowSlot *slot,
g_assert
(
target_window
!=
NULL
);
if
((
flags
&
NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB
)
!=
0
&&
NAUTILUS_IS_NAVIGATION_WINDOW
(
window
))
{
if
((
flags
&
NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB
)
!=
0
)
{
g_assert
(
target_window
==
window
);
slot_flags
=
0
;
...
...
src/nautilus-window-pane.c
View file @
0e731404
...
...
@@ -177,9 +177,7 @@ nautilus_window_pane_slot_close (NautilusWindowPane *pane,
nautilus_window_close_pane
(
pane
);
nautilus_window_set_active_pane
(
window
,
next_pane
);
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
window
))
{
nautilus_navigation_window_update_show_hide_menu_items
(
NAUTILUS_NAVIGATION_WINDOW
(
window
));
}
}
else
{
nautilus_window_close
(
window
);
}
...
...
src/nautilus-window.c
View file @
0e731404
...
...
@@ -1443,7 +1443,6 @@ nautilus_forget_history (void)
window_node
!=
NULL
;
window_node
=
window_node
->
next
)
{
if
(
NAUTILUS_IS_NAVIGATION_WINDOW
(
window_node
->
data
))
{
NautilusNavigationWindow
*
window
;
window
=
NAUTILUS_NAVIGATION_WINDOW
(
window_node
->
data
);
...
...
@@ -1461,7 +1460,6 @@ nautilus_forget_history (void)
nautilus_navigation_window_allow_back
(
window
,
FALSE
);
nautilus_navigation_window_allow_forward
(
window
,
FALSE
);
}
}
g_object_unref
(
app
);
}
...
...
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