Creating the user's gimp directory may take some time on NFS, so users may

2000-04-18  Michael Natterer  <mitch@gimp.org>

        * app/user_install.c: Creating the user's gimp directory may take
        some time on NFS, so users may be tempted to press the "Continue"
        button again.
        Inform the user that this step may take some time and set the
        "Continue" and "Cancel" buttons insensitive until finished.
This commit is contained in:
Michael Natterer 2000-04-18 15:04:30 +00:00 committed by Michael Natterer
parent a7446a475e
commit d03906ed9e
4 changed files with 155 additions and 99 deletions

View file

@ -1,3 +1,11 @@
2000-04-18 Michael Natterer <mitch@gimp.org>
* app/user_install.c: Creating the user's gimp directory may take
some time on NFS, so users may be tempted to press the "Continue"
button again.
Inform the user that this step may take some time and set the
"Continue" and "Cancel" buttons insensitive until finished.
2000-04-18 Sven Neumann <sven@gimp.org>
* INSTALL: we require gtk+-1.2.6 and we would like to have the

View file

@ -125,6 +125,7 @@ static GtkWidget *tuning_page = NULL;
static GtkWidget *resolution_page = NULL;
static GtkWidget *continue_button = NULL;
static GtkWidget *cancel_button = NULL;
static GtkStyle *title_style = NULL;
@ -350,8 +351,22 @@ user_install_continue_callback (GtkWidget *widget,
break;
case 1:
if (!user_install_run ())
/* Creatring the directories can take some time on NFS, so inform
* the user and set the buttons insensitive
*/
gtk_widget_set_sensitive (continue_button, FALSE);
gtk_widget_set_sensitive (cancel_button, FALSE);
gtk_label_set_text (GTK_LABEL (footer_label),
_("Please wait while your personal\n"
"GIMP directory is being created..."));
while (gtk_events_pending ())
gtk_main_iteration ();
if (user_install_run ())
gtk_widget_set_sensitive (continue_button, TRUE);
gtk_widget_set_sensitive (cancel_button, TRUE);
break;
case 2:
@ -531,7 +546,7 @@ user_install_dialog_create (UserInstallCallback callback)
_("Continue"), user_install_continue_callback,
callback, NULL, &continue_button, TRUE, FALSE,
_("Cancel"), user_install_cancel_callback,
callback, 1, NULL, FALSE, TRUE,
callback, 1, &cancel_button, FALSE, TRUE,
NULL);
@ -668,7 +683,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Welcome to\n"
"The GIMP User Installation"),
_("Click \"Continue\" to enter the GIMP user installation."));
_("Click \"Continue\" to enter "
"the GIMP user installation."));
add_label (GTK_BOX (page),
_("The GIMP - GNU Image Manipulation Program\n"
@ -717,7 +733,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Personal GIMP Directory"),
_("Click \"Continue\" to create your personal GIMP directory."));
_("Click \"Continue\" to create "
"your personal GIMP directory."));
hbox = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (page), hbox, FALSE, FALSE, 0);
@ -1490,5 +1507,4 @@ user_install_resolution_done (void)
g_list_free (update);
g_list_free (remove);
}

View file

@ -125,6 +125,7 @@ static GtkWidget *tuning_page = NULL;
static GtkWidget *resolution_page = NULL;
static GtkWidget *continue_button = NULL;
static GtkWidget *cancel_button = NULL;
static GtkStyle *title_style = NULL;
@ -350,8 +351,22 @@ user_install_continue_callback (GtkWidget *widget,
break;
case 1:
if (!user_install_run ())
/* Creatring the directories can take some time on NFS, so inform
* the user and set the buttons insensitive
*/
gtk_widget_set_sensitive (continue_button, FALSE);
gtk_widget_set_sensitive (cancel_button, FALSE);
gtk_label_set_text (GTK_LABEL (footer_label),
_("Please wait while your personal\n"
"GIMP directory is being created..."));
while (gtk_events_pending ())
gtk_main_iteration ();
if (user_install_run ())
gtk_widget_set_sensitive (continue_button, TRUE);
gtk_widget_set_sensitive (cancel_button, TRUE);
break;
case 2:
@ -531,7 +546,7 @@ user_install_dialog_create (UserInstallCallback callback)
_("Continue"), user_install_continue_callback,
callback, NULL, &continue_button, TRUE, FALSE,
_("Cancel"), user_install_cancel_callback,
callback, 1, NULL, FALSE, TRUE,
callback, 1, &cancel_button, FALSE, TRUE,
NULL);
@ -668,7 +683,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Welcome to\n"
"The GIMP User Installation"),
_("Click \"Continue\" to enter the GIMP user installation."));
_("Click \"Continue\" to enter "
"the GIMP user installation."));
add_label (GTK_BOX (page),
_("The GIMP - GNU Image Manipulation Program\n"
@ -717,7 +733,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Personal GIMP Directory"),
_("Click \"Continue\" to create your personal GIMP directory."));
_("Click \"Continue\" to create "
"your personal GIMP directory."));
hbox = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (page), hbox, FALSE, FALSE, 0);
@ -1490,5 +1507,4 @@ user_install_resolution_done (void)
g_list_free (update);
g_list_free (remove);
}

View file

@ -125,6 +125,7 @@ static GtkWidget *tuning_page = NULL;
static GtkWidget *resolution_page = NULL;
static GtkWidget *continue_button = NULL;
static GtkWidget *cancel_button = NULL;
static GtkStyle *title_style = NULL;
@ -350,8 +351,22 @@ user_install_continue_callback (GtkWidget *widget,
break;
case 1:
if (!user_install_run ())
/* Creatring the directories can take some time on NFS, so inform
* the user and set the buttons insensitive
*/
gtk_widget_set_sensitive (continue_button, FALSE);
gtk_widget_set_sensitive (cancel_button, FALSE);
gtk_label_set_text (GTK_LABEL (footer_label),
_("Please wait while your personal\n"
"GIMP directory is being created..."));
while (gtk_events_pending ())
gtk_main_iteration ();
if (user_install_run ())
gtk_widget_set_sensitive (continue_button, TRUE);
gtk_widget_set_sensitive (cancel_button, TRUE);
break;
case 2:
@ -531,7 +546,7 @@ user_install_dialog_create (UserInstallCallback callback)
_("Continue"), user_install_continue_callback,
callback, NULL, &continue_button, TRUE, FALSE,
_("Cancel"), user_install_cancel_callback,
callback, 1, NULL, FALSE, TRUE,
callback, 1, &cancel_button, FALSE, TRUE,
NULL);
@ -668,7 +683,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Welcome to\n"
"The GIMP User Installation"),
_("Click \"Continue\" to enter the GIMP user installation."));
_("Click \"Continue\" to enter "
"the GIMP user installation."));
add_label (GTK_BOX (page),
_("The GIMP - GNU Image Manipulation Program\n"
@ -717,7 +733,8 @@ user_install_dialog_create (UserInstallCallback callback)
page = user_install_notebook_append_page (GTK_NOTEBOOK (notebook),
_("Personal GIMP Directory"),
_("Click \"Continue\" to create your personal GIMP directory."));
_("Click \"Continue\" to create "
"your personal GIMP directory."));
hbox = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (page), hbox, FALSE, FALSE, 0);
@ -1490,5 +1507,4 @@ user_install_resolution_done (void)
g_list_free (update);
g_list_free (remove);
}