[nautilus] spatial-window: don't hook to unrealize for saving geometry
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] spatial-window: don't hook to unrealize for saving geometry
- Date: Tue, 14 Dec 2010 10:46:39 +0000 (UTC)
commit c1d9376601223e5dcca0a4ee47e95a8b93841d68
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 14 11:44:13 2010 +0100
spatial-window: don't hook to unrealize for saving geometry
src/nautilus-spatial-window.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c
index f57d98d..1398540 100644
--- a/src/nautilus-spatial-window.c
+++ b/src/nautilus-spatial-window.c
@@ -135,16 +135,14 @@ nautilus_spatial_window_configure_event (GtkWidget *widget,
}
static void
-nautilus_spatial_window_unrealize (GtkWidget *widget)
+nautilus_spatial_window_destroy (GtkWidget *widget)
{
NautilusSpatialWindow *window;
NautilusWindowSlot *slot;
-
+
window = NAUTILUS_SPATIAL_WINDOW (widget);
slot = nautilus_window_get_active_slot (NAUTILUS_WINDOW (window));
- GTK_WIDGET_CLASS (nautilus_spatial_window_parent_class)->unrealize (widget);
-
if (window->details->save_geometry_timeout_id != 0) {
g_source_remove (window->details->save_geometry_timeout_id);
window->details->save_geometry_timeout_id = 0;
@@ -1046,6 +1044,9 @@ nautilus_spatial_window_init (NautilusSpatialWindow *window)
gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (menuitem), TRUE);
}
nautilus_window_set_active_pane (win, pane);
+
+ g_signal_connect (window, "destroy",
+ G_CALLBACK (nautilus_spatial_window_destroy), window);
}
static void
@@ -1070,7 +1071,6 @@ nautilus_spatial_window_class_init (NautilusSpatialWindowClass *klass)
wclass->show = nautilus_spatial_window_show;
wclass->configure_event = nautilus_spatial_window_configure_event;
- wclass->unrealize = nautilus_spatial_window_unrealize;
wclass->window_state_event = nautilus_spatial_window_state_event;
G_OBJECT_CLASS (klass)->finalize = nautilus_spatial_window_finalize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]