[nautilus-actions] Reinitialize properties for current selection when reloading
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Reinitialize properties for current selection when reloading
- Date: Mon, 21 Dec 2009 20:47:16 +0000 (UTC)
commit fdc3d8b983a54df3bfebcd436e2713c6924f93f9
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Dec 21 21:47:13 2009 +0100
Reinitialize properties for current selection when reloading
ChangeLog | 5 +++++
TODO | 2 --
nautilus-actions/nact/nact-iactions-list.c | 1 +
nautilus-actions/nact/nact-main-window.c | 5 +++++
4 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9c12984..08b2b06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-12-21 Pierre Wieser <pwieser trychlos org>
+ Fix reload of items.
+
+ * nautilus-actions/nact/nact-main-window.c (reload):
+ Reinitialize the properties for current selection.
+
Fix the display of item's icon.
* nautilus-actions/nact/transparent.png: New file.
diff --git a/TODO b/TODO
index 548811b..5bf019d 100644
--- a/TODO
+++ b/TODO
@@ -113,5 +113,3 @@
and height is not ok
- desktop file is not deleted when the item is
-
-- crash on F5
diff --git a/nautilus-actions/nact/nact-iactions-list.c b/nautilus-actions/nact/nact-iactions-list.c
index 86f847e..92a4365 100644
--- a/nautilus-actions/nact/nact-iactions-list.c
+++ b/nautilus-actions/nact/nact-iactions-list.c
@@ -674,6 +674,7 @@ nact_iactions_list_fill( NactIActionsList *instance, GList *items )
g_list_free( ialid->modified_items );
ialid->modified_items = NULL;
+
ialid->selection_changed_send_allowed = TRUE;
g_signal_emit_by_name(
diff --git a/nautilus-actions/nact/nact-main-window.c b/nautilus-actions/nact/nact-main-window.c
index 0eed390..aaa1d18 100644
--- a/nautilus-actions/nact/nact-main-window.c
+++ b/nautilus-actions/nact/nact-main-window.c
@@ -1383,10 +1383,15 @@ reload( NactMainWindow *window )
if( !window->private->dispose_has_run ){
+ window->private->edited_item = NULL;
+ window->private->edited_profile = NULL;
+ window->private->selected_row = NULL;
+
application = NACT_APPLICATION( base_window_get_application( BASE_WINDOW( window )));
pivot = nact_application_get_pivot( application );
na_pivot_load_items( pivot );
nact_iactions_list_fill( NACT_IACTIONS_LIST( window ), na_pivot_get_items( pivot ));
+ nact_iactions_list_bis_select_first_row( NACT_IACTIONS_LIST( window ));
na_object_free_items_list( window->private->deleted );
window->private->deleted = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]