diff options
author | Larry Ewing <lewing@ximian.com> | 2003-02-08 09:20:31 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-02-08 09:20:31 +0800 |
commit | 5d961e94b2009211f6e7069ee80c7bd448556446 (patch) | |
tree | 883dfd7010e23f0dada9215950f9d0de159d7c36 /shell | |
parent | 19043324eec8bab62d4cfd69ff78b11335ddebb4 (diff) | |
download | gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar.gz gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar.bz2 gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar.lz gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar.xz gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.tar.zst gsoc2013-evolution-5d961e94b2009211f6e7069ee80c7bd448556446.zip |
add an activate handler that returns a response OK if the OK response
2003-02-07 Larry Ewing <lewing@ximian.com>
* e-shell-folder-creation-dialog.c
(folder_name_entry_activate_cb): add an activate handler that
returns a response OK if the OK response would be active.
svn path=/trunk/; revision=19852
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell-folder-creation-dialog.c | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 65b3c7d818..94260f2f35 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2003-02-07 Larry Ewing <lewing@ximian.com> + + * e-shell-folder-creation-dialog.c + (folder_name_entry_activate_cb): add an activate handler that + returns a response OK if the OK response would be active. + 2003-02-06 Dan Winship <danw@ximian.com> * evolution-test-component.c (main): s/PACKAGE/GETTEXT_PACKAGE/ in diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c index fc409e9194..617a6dd936 100644 --- a/shell/e-shell-folder-creation-dialog.c +++ b/shell/e-shell-folder-creation-dialog.c @@ -232,6 +232,22 @@ dialog_destroy_notify (void *data, } static void +folder_name_entry_activate_cb (GtkEntry *entry, + void *data) +{ + DialogData *dialog_data; + const char *parent_path; + + dialog_data = (DialogData *) data; + + parent_path = e_storage_set_view_get_current_folder (E_STORAGE_SET_VIEW (dialog_data->storage_set_view)); + + if (parent_path != NULL + && GTK_ENTRY (dialog_data->folder_name_entry)->text_length > 0) + gtk_dialog_response (GTK_DIALOG (dialog_data->dialog), GTK_RESPONSE_OK); +} + +static void folder_name_entry_changed_cb (GtkEditable *editable, void *data) { @@ -541,6 +557,9 @@ e_shell_show_folder_creation_dialog (EShell *shell, g_signal_connect (dialog_data->folder_name_entry, "changed", G_CALLBACK (folder_name_entry_changed_cb), dialog_data); + g_signal_connect (dialog_data->folder_name_entry, "activate", + G_CALLBACK (folder_name_entry_activate_cb), dialog_data); + g_signal_connect (dialog_data->storage_set_view, "folder_selected", G_CALLBACK (storage_set_view_folder_selected_cb), dialog_data); |