summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2004-04-09 18:57:58 +0000
committerDave Camp <campd@src.gnome.org>2004-04-09 18:57:58 +0000
commite728d4410c200e7ffa04da23fd2422d21436fa68 (patch)
tree0275ef4dc60feb98c93379adca61618b864d043b /src
parentb9d6317165b7ba4936a1b134d04e38ff7efac569 (diff)
downloadnautilus-e728d4410c200e7ffa04da23fd2422d21436fa68.tar.gz
Use nautilus_window_close() to close the window, fixes #139072
2004-04-09 Dave Camp <dave@ximian.com> * src/nautilus-window-manage-views.c: (new_window_show_callback), (open_location): Use nautilus_window_close() to close the window, fixes #139072
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-window-manage-views.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index a487a812d..7591b8b6c 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -648,7 +648,7 @@ new_window_show_callback (GtkWidget *widget,
window = NAUTILUS_WINDOW (user_data);
- gtk_widget_destroy (GTK_WIDGET (window));
+ nautilus_window_close (window);
g_signal_handlers_disconnect_by_func (widget,
G_CALLBACK (new_window_show_callback),
@@ -719,7 +719,7 @@ open_location (NautilusWindow *window,
if ((flags & Nautilus_ViewFrame_OPEN_FLAG_CLOSE_BEHIND) != 0) {
if (NAUTILUS_IS_SPATIAL_WINDOW (window) && !NAUTILUS_IS_DESKTOP_WINDOW (window)) {
if (GTK_WIDGET_VISIBLE (target_window)) {
- gtk_widget_destroy (GTK_WIDGET (window));
+ nautilus_window_close (window);
} else {
g_signal_connect_object (target_window,
"show",