[nautilus-actions] NactIEnvironmentTab: remove no more used default value
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactIEnvironmentTab: remove no more used default value
- Date: Wed, 19 Jan 2011 21:53:56 +0000 (UTC)
commit db9ba09619aa1e29d04804bacddb37219485d524
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Jan 14 17:40:29 2011 +0100
NactIEnvironmentTab: remove no more used default value
ChangeLog | 3 +++
src/nact/nact-icommand-tab.c | 10 ++--------
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2fc893e..a43e870 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,9 @@
* src/utils/nautilus-actions-run.c:
* src/utils/nautilus-actions-schemas.c: Add locale.h include.
+ * src/nact/nact-icommand-tab.c (on_wdir_browse):
+ Remove no more used default value.
+
* src/nact/nact-icon-chooser.c
(fillup_icons_by_path, on_path_selection_changed): Store last folder uri.
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 96de907..b05d9ee 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -587,7 +587,6 @@ on_wdir_browse( GtkButton *button, NactICommandTab *instance )
{
GtkWidget *wdir_entry;
NAObjectProfile *profile;
- gchar *default_value;
g_object_get(
G_OBJECT( instance ),
@@ -595,15 +594,10 @@ on_wdir_browse( GtkButton *button, NactICommandTab *instance )
NULL );
if( profile ){
- default_value = na_factory_object_get_default( NA_IFACTORY_OBJECT( profile ), NAFO_DATA_WORKING_DIR );
wdir_entry = base_window_get_widget( BASE_WINDOW( instance ), "WorkingDirectoryEntry" );
-
nact_gtk_utils_select_dir(
- BASE_WINDOW( instance ),
- _( "Choosing a working directory" ), NA_IPREFS_WORKING_DIR_WSP,
- wdir_entry, NA_IPREFS_WORKING_DIR_URI );
-
- g_free( default_value );
+ BASE_WINDOW( instance ), _( "Choosing a working directory" ),
+ NA_IPREFS_WORKING_DIR_WSP, wdir_entry, NA_IPREFS_WORKING_DIR_URI );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]