[nautilus-actions] Update NactIEnvironmentTab to new preference names
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Update NactIEnvironmentTab to new preference names
- Date: Wed, 19 Jan 2011 21:52:30 +0000 (UTC)
commit 0c089c7d51407c9f4450a63d197c6c98595ea194
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Jan 12 23:16:37 2011 +0100
Update NactIEnvironmentTab to new preference names
ChangeLog | 3 ++-
src/nact/nact-ienvironment-tab.c | 15 +++++++++++----
2 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ada3283..2820ff3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,7 +31,8 @@
2011-01-12 Pierre Wieser <pwieser trychlos org>
- * src/nact/nact-icommand-tab.c: Update to new preferences.
+ * src/nact/nact-icommand-tab.c:
+ * src/nact/nact-ienvironment-tab.c: Update to new preferences.
* README-GCONF:
* src/core/na-settings.c:
diff --git a/src/nact/nact-ienvironment-tab.c b/src/nact/nact-ienvironment-tab.c
index e907cab..2abcbf5 100644
--- a/src/nact/nact-ienvironment-tab.c
+++ b/src/nact/nact-ienvironment-tab.c
@@ -96,6 +96,13 @@ static EnvStruct st_envs[] = {
{ NULL }
};
+/* preferences
+ */
+#define IPREFS_SHOW_IF_RUNNING_WSP "environment-show-if-running-wsp"
+#define IPREFS_SHOW_IF_RUNNING_URI "environment-show-if-running-last-folder-uri"
+#define IPREFS_TRY_EXEC_WSP "environment-try-exec-wsp"
+#define IPREFS_TRY_EXEC_URI "environment-try-exec-last-folder-uri"
+
static gboolean st_initialized = FALSE;
static gboolean st_finalized = FALSE;
static gboolean st_on_selection_change = FALSE;
@@ -749,8 +756,8 @@ on_try_exec_browse( GtkButton *button, NactIEnvironmentTab *instance )
nact_gtk_utils_select_file(
BASE_WINDOW( instance ),
- _( "Choosing an executable" ), "ienvironment-try-exec-dialog",
- entry, "ienvironment-try-exec-uri", "file:///bin" );
+ _( "Choosing an executable" ), IPREFS_TRY_EXEC_WSP,
+ entry, IPREFS_TRY_EXEC_URI, "file:///bin" );
}
static void
@@ -807,8 +814,8 @@ on_show_if_running_browse( GtkButton *button, NactIEnvironmentTab *instance )
nact_gtk_utils_select_file(
BASE_WINDOW( instance ),
- _( "Choosing an executable" ), "ienvironment-show-if-running-dialog",
- entry, "ienvironment-show-if-running-uri", "file:///bin" );
+ _( "Choosing an executable" ), IPREFS_SHOW_IF_RUNNING_WSP,
+ entry, IPREFS_SHOW_IF_RUNNING_URI, "file:///bin" );
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]