From 735297df13cb2ef3279b7c3aed870f5c05f7e550 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 4 Nov 2002 18:32:55 +0000 Subject: Pass TRUE for arg allow_creation to e_shell_folder_selection_dialog_new(). * e-shell-folder-commands.c (e_shell_command_copy_folder): Pass TRUE for arg allow_creation to e_shell_folder_selection_dialog_new(). (e_shell_command_move_folder): Likewise. * e-shell-view-menu.c (command_goto_folder): Likewise. (command_new_shortcut): Likewise. * e-shell.c (impl_Shell_selectUserFolder): Likewise. * e-shell-folder-selection-dialog.c (e_shell_folder_selection_dialog_set_allow_creation): Removed. (e_shell_folder_selection_dialog_get_allow_creation): Removed. (e_shell_folder_selection_dialog_new): New arg allow_creation. (e_shell_folder_selection_dialog_construct): Likewise. Also, do set priv->shell. * e-shell-folder-selection-dialog.h, e-shell-folder-selection-dialog.c: Port to GtkDialog. svn path=/trunk/; revision=18533 --- shell/e-shell-folder-selection-dialog.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'shell/e-shell-folder-selection-dialog.h') diff --git a/shell/e-shell-folder-selection-dialog.h b/shell/e-shell-folder-selection-dialog.h index 30575d12cd..05b1e46281 100644 --- a/shell/e-shell-folder-selection-dialog.h +++ b/shell/e-shell-folder-selection-dialog.h @@ -23,7 +23,7 @@ #ifndef E_SHELL_FOLDER_SELECTION_DIALOG_H #define E_SHELL_FOLDER_SELECTION_DIALOG_H -#include +#include #include "e-shell.h" @@ -44,13 +44,13 @@ typedef struct _EShellFolderSelectionDialogPrivate EShellFolderSelectionDialogPr typedef struct _EShellFolderSelectionDialogClass EShellFolderSelectionDialogClass; struct _EShellFolderSelectionDialog { - GnomeDialog parent; + GtkDialog parent; EShellFolderSelectionDialogPrivate *priv; }; struct _EShellFolderSelectionDialogClass { - GnomeDialogClass parent_class; + GtkDialogClass parent_class; void (* folder_selected) (EShellFolderSelectionDialog *folder_selection_dialog, const char *path); @@ -64,16 +64,14 @@ void e_shell_folder_selection_dialog_construct (EShellFolderSele const char *title, const char *caption, const char *default_uri, - const char *allowed_types[]); + const char *allowed_types[], + gboolean allow_creation); GtkWidget *e_shell_folder_selection_dialog_new (EShell *shell, const char *title, const char *caption, const char *default_uri, - const char *allowed_types[]); - -void e_shell_folder_selection_dialog_set_allow_creation (EShellFolderSelectionDialog *folder_selection_dialog, - gboolean allow_creation); -gboolean e_shell_folder_selection_dialog_get_allow_creation (EShellFolderSelectionDialog *folder_selection_dialog); + const char *allowed_types[], + gboolean allow_creation); const char *e_shell_folder_selection_dialog_get_selected_path (EShellFolderSelectionDialog *folder_selection_dialog); -- cgit v1.2.3