[nautilus-actions] Implement NactIEnvironmentTab page
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Implement NactIEnvironmentTab page
- Date: Thu, 17 Jun 2010 23:51:32 +0000 (UTC)
commit 2160c041725acaba540b6895865a870b1e17f6af
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jun 17 18:44:47 2010 +0200
Implement NactIEnvironmentTab page
ChangeLog | 4 ++++
src/nact/nact-icommand-tab.c | 6 ++----
src/nact/nact-ienvironment-tab.c | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cf0a0be..01141ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-17 Pierre Wieser <pwieser trychlos org>
+
+ * src/nact/nact-ienvironment-tab.c: Implement NactIEnvironmentTab page.
+
2010-06-16 Pierre Wieser <pwieser trychlos org>
* src/nact/nact-gtk-utils.c:
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 1a66155..3e3732b 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -631,10 +631,8 @@ on_wdir_changed( GtkEntry *entry, NactICommandTab *instance )
TAB_UPDATABLE_PROP_SELECTED_PROFILE, &profile,
NULL );
- if( profile ){
- na_object_set_working_dir( profile, gtk_entry_get_text( entry ));
- g_signal_emit_by_name( G_OBJECT( instance ), TAB_UPDATABLE_SIGNAL_ITEM_UPDATED, profile, FALSE );
- }
+ na_object_set_working_dir( profile, gtk_entry_get_text( entry ));
+ g_signal_emit_by_name( G_OBJECT( instance ), TAB_UPDATABLE_SIGNAL_ITEM_UPDATED, profile, FALSE );
}
}
diff --git a/src/nact/nact-ienvironment-tab.c b/src/nact/nact-ienvironment-tab.c
index 0e9ae68..38d0d95 100644
--- a/src/nact/nact-ienvironment-tab.c
+++ b/src/nact/nact-ienvironment-tab.c
@@ -728,26 +728,60 @@ on_try_exec_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
static void
on_try_exec_browse( GtkButton *button, NactIEnvironmentTab *instance )
{
+ GtkWidget *entry;
+
+ entry = base_window_get_widget( BASE_WINDOW( instance ), "TryExecEntry" );
+
+ nact_gtk_utils_select_file(
+ BASE_WINDOW( instance ),
+ _( "Choosing an executable" ), "ienvironment-try-exec-dialog",
+ entry, "ienvironment-try-exec-uri", "file:///bin" );
}
static void
on_show_if_registered_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
{
+ NAIContext *context;
+ const gchar *text;
+
+ context = nact_main_tab_get_context( NACT_MAIN_WINDOW( instance ), NULL );
+ text = gtk_entry_get_text( entry );
+ na_object_set_show_if_registered( context, text );
}
static void
on_show_if_true_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
{
+ NAIContext *context;
+ const gchar *text;
+
+ context = nact_main_tab_get_context( NACT_MAIN_WINDOW( instance ), NULL );
+ text = gtk_entry_get_text( entry );
+ na_object_set_show_if_true( context, text );
}
static void
on_show_if_running_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
{
+ NAIContext *context;
+ const gchar *text;
+
+ context = nact_main_tab_get_context( NACT_MAIN_WINDOW( instance ), NULL );
+ text = gtk_entry_get_text( entry );
+ na_object_set_show_if_running( context, text );
}
static void
on_show_if_running_browse( GtkButton *button, NactIEnvironmentTab *instance )
{
+ GtkWidget *entry;
+
+ entry = base_window_get_widget( BASE_WINDOW( instance ), "ShowIfRunningEntry" );
+
+ nact_gtk_utils_select_file(
+ BASE_WINDOW( instance ),
+ _( "Choosing an executable" ), "ienvironment-show-if-running-dialog",
+ entry, "ienvironment-show-if-running-uri", "file:///bin" );
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]