[nautilus-actions] Enable the OK button as soon as required fields are filled
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions] Enable the OK button as soon as required fields are filled
- Date: Thu, 28 May 2009 17:48:09 -0400 (EDT)
commit be53c67642133df6dc0994ff112eaf3f969d9727
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu May 28 23:21:38 2009 +0200
Enable the OK button as soon as required fields are filled
---
ChangeLog | 3 +++
nact/nact-profile-editor.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5ee91ed..3046179 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,9 @@
* nact/nautilus-actions-config.glade:
Double-click on an action opens the editor.
+ * nact/nact-profile-editor.c:
+ Enable the OK button as soon as required fields are filled.
+
2009-05-25 Pierre Wieser <pwieser trychlos org>
* configure.ac:
diff --git a/nact/nact-profile-editor.c b/nact/nact-profile-editor.c
index 11d701c..8674b0a 100644
--- a/nact/nact-profile-editor.c
+++ b/nact/nact-profile-editor.c
@@ -667,10 +667,10 @@ open_profile_editor (NautilusActionsConfigAction *action, gchar* profile_name, N
gtk_tree_model_foreach (scheme_model, (GtkTreeModelForeachFunc) nact_reset_schemes_list, NULL);
g_slist_foreach (action_profile->schemes, (GFunc) nact_set_action_schemes, scheme_model);
- update_example_label ();
-
/* run the dialog */
gtk_dialog_set_response_sensitive (GTK_DIALOG (editor), GTK_RESPONSE_OK, FALSE);
+ profile_field_changed_cb( NULL, NULL );
+
switch (gtk_dialog_run (GTK_DIALOG (editor))) {
case GTK_RESPONSE_OK :
nautilus_actions_config_action_profile_set_path (action_profile, gtk_entry_get_text (GTK_ENTRY (command_path)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]