nautilus r14120 - in branches/multiview: . src
- From: cneumair svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14120 - in branches/multiview: . src
- Date: Thu, 1 May 2008 12:13:22 +0100 (BST)
Author: cneumair
Date: Thu May 1 11:13:22 2008
New Revision: 14120
URL: http://svn.gnome.org/viewvc/nautilus?rev=14120&view=rev
Log:
2008-05-01 Christian Neumair <cneumair gnome org>
* src/nautilus-navigation-window-slot.c
(nautilus_navigation_window_slot_active),
(nautilus_navigation_window_slot_dispose),
(nautilus_navigation_window_slot_class_init):
* src/nautilus-window-slot.c (nautilus_window_slot_init),
(nautilus_window_slot_class_init), (nautilus_window_slot_dispose):
Use dispose instead of finalize. Only load toolbar items on slot
activation if we have a viewed file. Set default title to "Loading...".
Modified:
branches/multiview/ChangeLog
branches/multiview/src/nautilus-navigation-window-slot.c
branches/multiview/src/nautilus-window-slot.c
Modified: branches/multiview/src/nautilus-navigation-window-slot.c
==============================================================================
--- branches/multiview/src/nautilus-navigation-window-slot.c (original)
+++ branches/multiview/src/nautilus-navigation-window-slot.c Thu May 1 11:13:22 2008
@@ -70,7 +70,9 @@
EEL_CALL_PARENT (NAUTILUS_WINDOW_SLOT_CLASS, active, (slot));
- nautilus_navigation_window_load_extension_toolbar_items (window);
+ if (slot->viewed_file != NULL) {
+ nautilus_navigation_window_load_extension_toolbar_items (window);
+ }
}
static NautilusWindowSlot *
@@ -112,7 +114,7 @@
}
static void
-nautilus_navigation_window_slot_finalize (GObject *object)
+nautilus_navigation_window_slot_dispose (GObject *object)
{
NautilusNavigationWindowSlot *slot;
@@ -121,7 +123,7 @@
nautilus_navigation_window_slot_clear_forward_list (slot);
nautilus_navigation_window_slot_clear_back_list (slot);
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
@@ -135,5 +137,5 @@
NAUTILUS_WINDOW_SLOT_CLASS (class)->active = nautilus_navigation_window_slot_active;
NAUTILUS_WINDOW_SLOT_CLASS (class)->get_close_successor = nautilus_navigation_window_slot_get_close_successor;
- G_OBJECT_CLASS (class)->finalize = nautilus_navigation_window_slot_finalize;
+ G_OBJECT_CLASS (class)->dispose = nautilus_navigation_window_slot_dispose;
}
Modified: branches/multiview/src/nautilus-window-slot.c
==============================================================================
--- branches/multiview/src/nautilus-window-slot.c (original)
+++ branches/multiview/src/nautilus-window-slot.c Thu May 1 11:13:22 2008
@@ -34,7 +34,7 @@
static void nautilus_window_slot_init (NautilusWindowSlot *slot);
static void nautilus_window_slot_class_init (NautilusWindowSlotClass *class);
-static void nautilus_window_slot_finalize (GObject *object);
+static void nautilus_window_slot_dispose (GObject *object);
static void nautilus_window_slot_info_iface_init (NautilusWindowSlotInfoIface *iface);
@@ -128,6 +128,8 @@
slot->view_box = gtk_vbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (content_box), slot->view_box, TRUE, TRUE, 0);
gtk_widget_show (slot->view_box);
+
+ slot->title = g_strdup (_("Loading..."));
}
static NautilusWindowSlot *
@@ -143,7 +145,7 @@
class->inactive = real_inactive;
class->get_close_successor = real_get_close_successor;
- G_OBJECT_CLASS (class)->finalize = nautilus_window_slot_finalize;
+ G_OBJECT_CLASS (class)->dispose = nautilus_window_slot_dispose;
}
static int
@@ -346,7 +348,7 @@
static void
-nautilus_window_slot_finalize (GObject *object)
+nautilus_window_slot_dispose (GObject *object)
{
NautilusWindowSlot *slot;
GtkWidget *widget;
@@ -363,13 +365,17 @@
* It was already here before the slot move, though */
g_object_ref (slot->location);
}
+
eel_g_list_free_deep (slot->pending_selection);
+ slot->pending_selection = NULL;
if (slot->current_location_bookmark != NULL) {
g_object_unref (slot->current_location_bookmark);
+ slot->current_location_bookmark = NULL;
}
if (slot->last_location_bookmark != NULL) {
g_object_unref (slot->last_location_bookmark);
+ slot->last_location_bookmark = NULL;
}
if (slot->find_mount_cancellable != NULL) {
@@ -392,8 +398,9 @@
}
g_free (slot->title);
+ slot->title = NULL;
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]