Commit e881a24d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

show progress while loading the help index.

2008-06-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/help.c (load_help_idle): show progress while
	loading the help index.

svn path=/trunk/; revision=25910
parent d7d7181b
2008-06-10 Sven Neumann <sven@gimp.org>
* plug-ins/help/help.c (load_help_idle): show progress while
loading the help index.
2008-06-10 Sven Neumann <sven@gimp.org>
* app/config/gimpguiconfig.c (DEFAULT_WEB_BROWSER): reverted
change for bug #522483. 'xdg-open' doesn't do the right thing for
file:/// URIs.
file: URIs.
2008-06-10 Sven Neumann <sven@gimp.org>
......
......@@ -71,6 +71,8 @@ static void load_help (const gchar *procedure,
const gchar *help_id);
static gboolean load_help_idle (gpointer data);
static GimpHelpProgress * load_help_progress_new (void);
/* local variables */
......@@ -263,13 +265,14 @@ load_help_idle (gpointer data)
if (domain)
{
GList *locales;
gchar *full_uri;
gboolean fatal_error;
GimpHelpProgress *progress = load_help_progress_new ();
GList *locales;
gchar *full_uri;
gboolean fatal_error;
locales = gimp_help_parse_locales (idle_help->help_locales);
full_uri = gimp_help_domain_map (domain, locales, idle_help->help_id,
NULL, NULL, &fatal_error);
progress, NULL, &fatal_error);
g_list_foreach (locales, (GFunc) g_free, NULL);
g_list_free (locales);
......@@ -297,6 +300,8 @@ load_help_idle (gpointer data)
{
g_main_loop_quit (main_loop);
}
gimp_help_progress_free (progress);
}
g_free (idle_help->procedure);
......@@ -308,3 +313,37 @@ load_help_idle (gpointer data)
return FALSE;
}
static void
load_help_progress_start (const gchar *message,
gboolean cancelable,
gpointer user_data)
{
gimp_progress_init (message);
}
static void
load_help_progress_update (gdouble value,
gpointer user_data)
{
gimp_progress_update (value);
}
static void
load_help_progress_end (gpointer user_data)
{
gimp_progress_end ();
}
static GimpHelpProgress *
load_help_progress_new (void)
{
static const GimpHelpProgressVTable vtable =
{
load_help_progress_start,
load_help_progress_end,
load_help_progress_update
};
return gimp_help_progress_new (&vtable, NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment