Nobody said anything, so I'm committing these initstatus changes

This commit is contained in:
Elliot Lee 1998-01-20 00:12:21 +00:00
parent ef0cf0af95
commit 401e04f469
25 changed files with 613 additions and 206 deletions

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -53,12 +53,14 @@
#include "tools.h"
#include "undo.h"
#include "xcf.h"
#include <gtk/gtk.h>
/* Function prototype for affirmation dialog when exiting application */
static void app_exit_finish (void);
static void really_quit_dialog (void);
static Argument* quit_invoker (Argument *args);
static void make_initialization_status_window(void);
static void destroy_initialization_status_window(void);
static ProcArg quit_args[] =
@ -104,6 +106,97 @@ gimp_init (int gimp_argc,
batch_init ();
}
static GtkWidget *win_initstatus = NULL;
static GtkWidget *label1 = NULL;
static GtkWidget *label2 = NULL;
static GtkWidget *pbar = NULL;
static gint idle_tag = -1;
static void
destroy_initialization_status_window(void)
{
if(win_initstatus)
{
gtk_widget_destroy(win_initstatus);
win_initstatus = label1 = label2 = pbar = NULL;
gtk_idle_remove(idle_tag);
}
}
static void my_idle_proc(void)
{
/* Do nothing. This is needed to stop the GIMP
from blocking in gtk_main_iteration() */
}
static void
make_initialization_status_window(void)
{
if(no_interface == FALSE)
{
GtkWidget *vbox;
win_initstatus = gtk_window_new(GTK_WINDOW_DIALOG);
gtk_window_set_title(GTK_WINDOW(win_initstatus),
"GIMP Startup");
vbox = gtk_vbox_new(TRUE, 5);
gtk_container_add(GTK_CONTAINER(win_initstatus), vbox);
label1 = gtk_label_new("");
gtk_box_pack_start_defaults(GTK_BOX(vbox), label1);
label2 = gtk_label_new("");
gtk_box_pack_start_defaults(GTK_BOX(vbox), label2);
pbar = gtk_progress_bar_new();
gtk_box_pack_start_defaults(GTK_BOX(vbox), pbar);
gtk_widget_show(vbox);
gtk_widget_show(label1);
gtk_widget_show(label2);
gtk_widget_show(pbar);
gtk_window_position(GTK_WINDOW(win_initstatus),
GTK_WIN_POS_CENTER);
gtk_widget_show(win_initstatus);
}
}
void
app_init_update_status(char *label1val,
char *label2val,
float pct_progress)
{
if(no_interface == FALSE
&& win_initstatus)
{
GdkRectangle area = {0, 0, -1, -1};
if(label1val
&& strcmp(label1val, GTK_LABEL(label1)->label))
{
gtk_label_set(GTK_LABEL(label1), label1val);
}
if(label2val
&& strcmp(label2val, GTK_LABEL(label2)->label))
{
gtk_label_set(GTK_LABEL(label2), label2val);
}
if(pct_progress >= 0
&& GTK_PROGRESS_BAR(pbar)->percentage != pct_progress)
{
gtk_progress_bar_update(GTK_PROGRESS_BAR(pbar), pct_progress);
}
gtk_widget_draw(win_initstatus, &area);
idle_tag = gtk_idle_add(my_idle_proc, NULL);
gtk_main_iteration();
gtk_idle_remove(idle_tag);
}
}
/* #define RESET_BAR() app_init_update_status("", "", 0) */
#define RESET_BAR()
void
app_init ()
{
@ -111,13 +204,17 @@ app_init ()
char *gimp_dir;
char *path;
make_initialization_status_window();
/*
* Initialize the procedural database
* We need to do this first because any of the init
* procedures might install or query it as needed.
*/
procedural_db_init ();
RESET_BAR();
internal_procs_init ();
RESET_BAR();
procedural_db_register (&quit_proc);
gimp_dir = gimp_directory ();
@ -125,20 +222,30 @@ app_init ()
{
sprintf (filename, "%s/gtkrc", gimp_dir);
g_print ("parsing \"%s\"\n", filename);
app_init_update_status("Resource configuration", filename, -1);
gtk_rc_parse (filename);
}
RESET_BAR();
file_ops_pre_init (); /* pre-initialize the file types */
RESET_BAR();
xcf_init (); /* initialize the xcf file format routines */
RESET_BAR();
parse_gimprc (); /* parse the local GIMP configuration file */
if (no_data == FALSE)
{
RESET_BAR();
brushes_init (); /* initialize the list of gimp brushes */
RESET_BAR();
patterns_init (); /* initialize the list of gimp patterns */
RESET_BAR();
palettes_init (); /* initialize the list of gimp palettes */
RESET_BAR();
gradients_init (); /* initialize the list of gimp gradients */
}
RESET_BAR();
plug_in_init (); /* initialize the plug in structures */
RESET_BAR();
file_ops_post_init (); /* post-initialize the file types */
/* Add the swap file */
@ -149,6 +256,8 @@ app_init ()
tile_swap_add (path, NULL, NULL);
g_free (path);
destroy_initialization_status_window();
/* Things to do only if there is an interface */
if (no_interface == FALSE)
{
@ -166,6 +275,7 @@ app_init ()
get_active_brush ();
get_active_pattern ();
paint_funcs_setup ();
}
static void

View File

@ -22,5 +22,6 @@
void gimp_init (int, char **);
void app_init (void);
void app_exit (int);
void app_init_update_status(char *label1val, char *label2val, float pct_progress);
#endif /* APP_PROCS_H */

View File

@ -22,6 +22,7 @@
#include <errno.h>
#include <sys/stat.h>
#include "app_procs.h"
#include "appenv.h"
#include "errors.h"
#include "fileops.h"
@ -291,11 +292,15 @@ parse_gimprc ()
add_gimp_directory_token (gimp_dir);
sprintf (libfilename, "%s/gimprc", DATADIR);
app_init_update_status("Resource configuration", libfilename, -1);
parse_gimprc_file (libfilename);
sprintf (filename, "%s/gimprc", gimp_dir);
if (strcmp (filename, libfilename) != 0)
parse_gimprc_file (filename);
{
app_init_update_status(NULL, filename, -1);
parse_gimprc_file (filename);
}
}
void

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -19,6 +19,7 @@
#include <stdio.h>
#include <string.h>
#include "appenv.h"
#include "app_procs.h"
#include "airbrush.h"
#include "blend.h"
#include "bucket_fill.h"
@ -74,242 +75,290 @@
void
internal_procs_init ()
{
gfloat pcount = 0;
/* grep -c procedural_db_register internal_procs.c */
gfloat total_pcount = 204;
app_init_update_status("Internal Procedures", "Tool procedures",
pcount/total_pcount);
/* Tool procedures */
procedural_db_register (&airbrush_proc);
procedural_db_register (&blend_proc);
procedural_db_register (&bucket_fill_proc);
procedural_db_register (&by_color_select_proc);
procedural_db_register (&clone_proc);
procedural_db_register (&color_picker_proc);
procedural_db_register (&convolve_proc);
procedural_db_register (&crop_proc);
procedural_db_register (&ellipse_select_proc);
procedural_db_register (&eraser_proc);
procedural_db_register (&flip_proc);
procedural_db_register (&free_select_proc);
procedural_db_register (&fuzzy_select_proc);
procedural_db_register (&paintbrush_proc);
procedural_db_register (&pencil_proc);
procedural_db_register (&perspective_proc);
procedural_db_register (&rect_select_proc);
procedural_db_register (&rotate_proc);
procedural_db_register (&scale_proc);
procedural_db_register (&shear_proc);
procedural_db_register (&text_tool_proc);
procedural_db_register (&text_tool_get_extents_proc);
procedural_db_register (&airbrush_proc); pcount++;
procedural_db_register (&blend_proc); pcount++;
procedural_db_register (&bucket_fill_proc); pcount++;
procedural_db_register (&by_color_select_proc); pcount++;
procedural_db_register (&clone_proc); pcount++;
procedural_db_register (&color_picker_proc); pcount++;
procedural_db_register (&convolve_proc); pcount++;
procedural_db_register (&crop_proc); pcount++;
procedural_db_register (&ellipse_select_proc); pcount++;
procedural_db_register (&eraser_proc); pcount++;
procedural_db_register (&flip_proc); pcount++;
procedural_db_register (&free_select_proc); pcount++;
procedural_db_register (&fuzzy_select_proc); pcount++;
procedural_db_register (&paintbrush_proc); pcount++;
procedural_db_register (&pencil_proc); pcount++;
procedural_db_register (&perspective_proc); pcount++;
procedural_db_register (&rect_select_proc); pcount++;
procedural_db_register (&rotate_proc); pcount++;
procedural_db_register (&scale_proc); pcount++;
procedural_db_register (&shear_proc); pcount++;
procedural_db_register (&text_tool_proc); pcount++;
procedural_db_register (&text_tool_get_extents_proc); pcount++;
app_init_update_status(NULL, "GDisplay procedures",
pcount/total_pcount);
/* GDisplay procedures */
procedural_db_register (&gdisplay_new_proc);
procedural_db_register (&gdisplay_delete_proc);
procedural_db_register (&gdisplays_flush_proc);
procedural_db_register (&gdisplay_new_proc); pcount++;
procedural_db_register (&gdisplay_delete_proc); pcount++;
procedural_db_register (&gdisplays_flush_proc); pcount++;
app_init_update_status(NULL, "Edit procedures",
pcount/total_pcount);
/* Edit procedures */
procedural_db_register (&edit_cut_proc);
procedural_db_register (&edit_copy_proc);
procedural_db_register (&edit_paste_proc);
procedural_db_register (&edit_clear_proc);
procedural_db_register (&edit_fill_proc);
procedural_db_register (&edit_stroke_proc);
procedural_db_register (&edit_cut_proc); pcount++;
procedural_db_register (&edit_copy_proc); pcount++;
procedural_db_register (&edit_paste_proc); pcount++;
procedural_db_register (&edit_clear_proc); pcount++;
procedural_db_register (&edit_fill_proc); pcount++;
procedural_db_register (&edit_stroke_proc); pcount++;
app_init_update_status(NULL, "GImage procedures",
pcount/total_pcount);
/* GImage procedures */
procedural_db_register (&gimage_list_images_proc);
procedural_db_register (&gimage_new_proc);
procedural_db_register (&gimage_resize_proc);
procedural_db_register (&gimage_scale_proc);
procedural_db_register (&gimage_delete_proc);
procedural_db_register (&gimage_free_shadow_proc);
procedural_db_register (&gimage_get_layers_proc);
procedural_db_register (&gimage_get_channels_proc);
procedural_db_register (&gimage_get_active_layer_proc);
procedural_db_register (&gimage_get_active_channel_proc);
procedural_db_register (&gimage_get_selection_proc);
procedural_db_register (&gimage_get_component_active_proc);
procedural_db_register (&gimage_get_component_visible_proc);
procedural_db_register (&gimage_set_active_layer_proc);
procedural_db_register (&gimage_set_active_channel_proc);
procedural_db_register (&gimage_unset_active_channel_proc);
procedural_db_register (&gimage_set_component_active_proc);
procedural_db_register (&gimage_set_component_visible_proc);
procedural_db_register (&gimage_pick_correlate_layer_proc);
procedural_db_register (&gimage_raise_layer_proc);
procedural_db_register (&gimage_lower_layer_proc);
procedural_db_register (&gimage_merge_visible_layers_proc);
procedural_db_register (&gimage_flatten_proc);
procedural_db_register (&gimage_add_layer_proc);
procedural_db_register (&gimage_remove_layer_proc);
procedural_db_register (&gimage_add_layer_mask_proc);
procedural_db_register (&gimage_remove_layer_mask_proc);
procedural_db_register (&gimage_raise_channel_proc);
procedural_db_register (&gimage_lower_channel_proc);
procedural_db_register (&gimage_add_channel_proc);
procedural_db_register (&gimage_remove_channel_proc);
procedural_db_register (&gimage_active_drawable_proc);
procedural_db_register (&gimage_base_type_proc);
procedural_db_register (&gimage_get_filename_proc);
procedural_db_register (&gimage_set_filename_proc);
procedural_db_register (&gimage_width_proc);
procedural_db_register (&gimage_height_proc);
procedural_db_register (&gimage_get_cmap_proc);
procedural_db_register (&gimage_set_cmap_proc);
procedural_db_register (&gimage_enable_undo_proc);
procedural_db_register (&gimage_disable_undo_proc);
procedural_db_register (&gimage_clean_all_proc);
procedural_db_register (&gimage_floating_sel_proc);
procedural_db_register (&gimage_list_images_proc); pcount++;
procedural_db_register (&gimage_new_proc); pcount++;
procedural_db_register (&gimage_resize_proc); pcount++;
procedural_db_register (&gimage_scale_proc); pcount++;
procedural_db_register (&gimage_delete_proc); pcount++;
procedural_db_register (&gimage_free_shadow_proc); pcount++;
procedural_db_register (&gimage_get_layers_proc); pcount++;
procedural_db_register (&gimage_get_channels_proc); pcount++;
procedural_db_register (&gimage_get_active_layer_proc); pcount++;
procedural_db_register (&gimage_get_active_channel_proc); pcount++;
procedural_db_register (&gimage_get_selection_proc); pcount++;
procedural_db_register (&gimage_get_component_active_proc); pcount++;
procedural_db_register (&gimage_get_component_visible_proc); pcount++;
procedural_db_register (&gimage_set_active_layer_proc); pcount++;
procedural_db_register (&gimage_set_active_channel_proc); pcount++;
procedural_db_register (&gimage_unset_active_channel_proc); pcount++;
procedural_db_register (&gimage_set_component_active_proc); pcount++;
procedural_db_register (&gimage_set_component_visible_proc); pcount++;
procedural_db_register (&gimage_pick_correlate_layer_proc); pcount++;
procedural_db_register (&gimage_raise_layer_proc); pcount++;
procedural_db_register (&gimage_lower_layer_proc); pcount++;
procedural_db_register (&gimage_merge_visible_layers_proc); pcount++;
procedural_db_register (&gimage_flatten_proc); pcount++;
procedural_db_register (&gimage_add_layer_proc); pcount++;
procedural_db_register (&gimage_remove_layer_proc); pcount++;
procedural_db_register (&gimage_add_layer_mask_proc); pcount++;
procedural_db_register (&gimage_remove_layer_mask_proc); pcount++;
procedural_db_register (&gimage_raise_channel_proc); pcount++;
procedural_db_register (&gimage_lower_channel_proc); pcount++;
procedural_db_register (&gimage_add_channel_proc); pcount++;
procedural_db_register (&gimage_remove_channel_proc); pcount++;
procedural_db_register (&gimage_active_drawable_proc); pcount++;
procedural_db_register (&gimage_base_type_proc); pcount++;
procedural_db_register (&gimage_get_filename_proc); pcount++;
procedural_db_register (&gimage_set_filename_proc); pcount++;
procedural_db_register (&gimage_width_proc); pcount++;
procedural_db_register (&gimage_height_proc); pcount++;
procedural_db_register (&gimage_get_cmap_proc); pcount++;
procedural_db_register (&gimage_set_cmap_proc); pcount++;
procedural_db_register (&gimage_enable_undo_proc); pcount++;
procedural_db_register (&gimage_disable_undo_proc); pcount++;
procedural_db_register (&gimage_clean_all_proc); pcount++;
procedural_db_register (&gimage_floating_sel_proc); pcount++;
app_init_update_status(NULL, "GImage mask procedures",
pcount/total_pcount);
/* GImage mask procedures */
procedural_db_register (&gimage_mask_bounds_proc);
procedural_db_register (&gimage_mask_value_proc);
procedural_db_register (&gimage_mask_is_empty_proc);
procedural_db_register (&gimage_mask_translate_proc);
procedural_db_register (&gimage_mask_float_proc);
procedural_db_register (&gimage_mask_clear_proc);
procedural_db_register (&gimage_mask_invert_proc);
procedural_db_register (&gimage_mask_sharpen_proc);
procedural_db_register (&gimage_mask_all_proc);
procedural_db_register (&gimage_mask_none_proc);
procedural_db_register (&gimage_mask_feather_proc);
procedural_db_register (&gimage_mask_border_proc);
procedural_db_register (&gimage_mask_grow_proc);
procedural_db_register (&gimage_mask_shrink_proc);
procedural_db_register (&gimage_mask_layer_alpha_proc);
procedural_db_register (&gimage_mask_load_proc);
procedural_db_register (&gimage_mask_save_proc);
procedural_db_register (&gimage_mask_bounds_proc); pcount++;
procedural_db_register (&gimage_mask_value_proc); pcount++;
procedural_db_register (&gimage_mask_is_empty_proc); pcount++;
procedural_db_register (&gimage_mask_translate_proc); pcount++;
procedural_db_register (&gimage_mask_float_proc); pcount++;
procedural_db_register (&gimage_mask_clear_proc); pcount++;
procedural_db_register (&gimage_mask_invert_proc); pcount++;
procedural_db_register (&gimage_mask_sharpen_proc); pcount++;
procedural_db_register (&gimage_mask_all_proc); pcount++;
procedural_db_register (&gimage_mask_none_proc); pcount++;
procedural_db_register (&gimage_mask_feather_proc); pcount++;
procedural_db_register (&gimage_mask_border_proc); pcount++;
procedural_db_register (&gimage_mask_grow_proc); pcount++;
procedural_db_register (&gimage_mask_shrink_proc); pcount++;
procedural_db_register (&gimage_mask_layer_alpha_proc); pcount++;
procedural_db_register (&gimage_mask_load_proc); pcount++;
procedural_db_register (&gimage_mask_save_proc); pcount++;
app_init_update_status(NULL, "Layer procedures",
pcount/total_pcount);
/* Layer procedures */
procedural_db_register (&layer_new_proc);
procedural_db_register (&layer_copy_proc);
procedural_db_register (&layer_create_mask_proc);
procedural_db_register (&layer_scale_proc);
procedural_db_register (&layer_resize_proc);
procedural_db_register (&layer_delete_proc);
procedural_db_register (&layer_translate_proc);
procedural_db_register (&layer_add_alpha_proc);
procedural_db_register (&layer_get_name_proc);
procedural_db_register (&layer_set_name_proc);
procedural_db_register (&layer_get_visible_proc);
procedural_db_register (&layer_set_visible_proc);
procedural_db_register (&layer_get_preserve_trans_proc);
procedural_db_register (&layer_set_preserve_trans_proc);
procedural_db_register (&layer_get_apply_mask_proc);
procedural_db_register (&layer_set_apply_mask_proc);
procedural_db_register (&layer_get_show_mask_proc);
procedural_db_register (&layer_set_show_mask_proc);
procedural_db_register (&layer_get_edit_mask_proc);
procedural_db_register (&layer_set_edit_mask_proc);
procedural_db_register (&layer_get_opacity_proc);
procedural_db_register (&layer_set_opacity_proc);
procedural_db_register (&layer_get_mode_proc);
procedural_db_register (&layer_set_mode_proc);
procedural_db_register (&layer_set_offsets_proc);
procedural_db_register (&layer_mask_proc);
procedural_db_register (&layer_is_floating_sel_proc);
procedural_db_register (&layer_new_proc); pcount++;
procedural_db_register (&layer_copy_proc); pcount++;
procedural_db_register (&layer_create_mask_proc); pcount++;
procedural_db_register (&layer_scale_proc); pcount++;
procedural_db_register (&layer_resize_proc); pcount++;
procedural_db_register (&layer_delete_proc); pcount++;
procedural_db_register (&layer_translate_proc); pcount++;
procedural_db_register (&layer_add_alpha_proc); pcount++;
procedural_db_register (&layer_get_name_proc); pcount++;
procedural_db_register (&layer_set_name_proc); pcount++;
procedural_db_register (&layer_get_visible_proc); pcount++;
procedural_db_register (&layer_set_visible_proc); pcount++;
procedural_db_register (&layer_get_preserve_trans_proc); pcount++;
procedural_db_register (&layer_set_preserve_trans_proc); pcount++;
procedural_db_register (&layer_get_apply_mask_proc); pcount++;
procedural_db_register (&layer_set_apply_mask_proc); pcount++;
procedural_db_register (&layer_get_show_mask_proc); pcount++;
procedural_db_register (&layer_set_show_mask_proc); pcount++;
procedural_db_register (&layer_get_edit_mask_proc); pcount++;
procedural_db_register (&layer_set_edit_mask_proc); pcount++;
procedural_db_register (&layer_get_opacity_proc); pcount++;
procedural_db_register (&layer_set_opacity_proc); pcount++;
procedural_db_register (&layer_get_mode_proc); pcount++;
procedural_db_register (&layer_set_mode_proc); pcount++;
procedural_db_register (&layer_set_offsets_proc); pcount++;
procedural_db_register (&layer_mask_proc); pcount++;
procedural_db_register (&layer_is_floating_sel_proc); pcount++;
app_init_update_status(NULL, "Channel procedures",
pcount/total_pcount);
/* Channel procedures */
procedural_db_register (&channel_new_proc);
procedural_db_register (&channel_copy_proc);
procedural_db_register (&channel_delete_proc);
procedural_db_register (&channel_get_name_proc);
procedural_db_register (&channel_set_name_proc);
procedural_db_register (&channel_get_visible_proc);
procedural_db_register (&channel_set_visible_proc);
procedural_db_register (&channel_get_show_masked_proc);
procedural_db_register (&channel_set_show_masked_proc);
procedural_db_register (&channel_get_opacity_proc);
procedural_db_register (&channel_set_opacity_proc);
procedural_db_register (&channel_get_color_proc);
procedural_db_register (&channel_set_color_proc);
procedural_db_register (&channel_new_proc); pcount++;
procedural_db_register (&channel_copy_proc); pcount++;
procedural_db_register (&channel_delete_proc); pcount++;
procedural_db_register (&channel_get_name_proc); pcount++;
procedural_db_register (&channel_set_name_proc); pcount++;
procedural_db_register (&channel_get_visible_proc); pcount++;
procedural_db_register (&channel_set_visible_proc); pcount++;
procedural_db_register (&channel_get_show_masked_proc); pcount++;
procedural_db_register (&channel_set_show_masked_proc); pcount++;
procedural_db_register (&channel_get_opacity_proc); pcount++;
procedural_db_register (&channel_set_opacity_proc); pcount++;
procedural_db_register (&channel_get_color_proc); pcount++;
procedural_db_register (&channel_set_color_proc); pcount++;
app_init_update_status(NULL, "Drawable procedures",
pcount/total_pcount);
/* Drawable procedures */
procedural_db_register (&drawable_merge_shadow_proc);
procedural_db_register (&drawable_fill_proc);
procedural_db_register (&drawable_update_proc);
procedural_db_register (&drawable_mask_bounds_proc);
procedural_db_register (&drawable_gimage_proc);
procedural_db_register (&drawable_type_proc);
procedural_db_register (&drawable_has_alpha_proc);
procedural_db_register (&drawable_type_with_alpha_proc);
procedural_db_register (&drawable_color_proc);
procedural_db_register (&drawable_gray_proc);
procedural_db_register (&drawable_indexed_proc);
procedural_db_register (&drawable_bytes_proc);
procedural_db_register (&drawable_width_proc);
procedural_db_register (&drawable_height_proc);
procedural_db_register (&drawable_offsets_proc);
procedural_db_register (&drawable_layer_proc);
procedural_db_register (&drawable_layer_mask_proc);
procedural_db_register (&drawable_channel_proc);
procedural_db_register (&drawable_set_pixel_proc);
procedural_db_register (&drawable_get_pixel_proc);
procedural_db_register (&drawable_merge_shadow_proc); pcount++;
procedural_db_register (&drawable_fill_proc); pcount++;
procedural_db_register (&drawable_update_proc); pcount++;
procedural_db_register (&drawable_mask_bounds_proc); pcount++;
procedural_db_register (&drawable_gimage_proc); pcount++;
procedural_db_register (&drawable_type_proc); pcount++;
procedural_db_register (&drawable_has_alpha_proc); pcount++;
procedural_db_register (&drawable_type_with_alpha_proc); pcount++;
procedural_db_register (&drawable_color_proc); pcount++;
procedural_db_register (&drawable_gray_proc); pcount++;
procedural_db_register (&drawable_indexed_proc); pcount++;
procedural_db_register (&drawable_bytes_proc); pcount++;
procedural_db_register (&drawable_width_proc); pcount++;
procedural_db_register (&drawable_height_proc); pcount++;
procedural_db_register (&drawable_offsets_proc); pcount++;
procedural_db_register (&drawable_layer_proc); pcount++;
procedural_db_register (&drawable_layer_mask_proc); pcount++;
procedural_db_register (&drawable_channel_proc); pcount++;
procedural_db_register (&drawable_set_pixel_proc); pcount++;
procedural_db_register (&drawable_get_pixel_proc); pcount++;
app_init_update_status(NULL, "Floating selections",
pcount/total_pcount);
/* Floating Selections */
procedural_db_register (&floating_sel_remove_proc);
procedural_db_register (&floating_sel_anchor_proc);
procedural_db_register (&floating_sel_to_layer_proc);
procedural_db_register (&floating_sel_remove_proc); pcount++;
procedural_db_register (&floating_sel_anchor_proc); pcount++;
procedural_db_register (&floating_sel_to_layer_proc); pcount++;
app_init_update_status(NULL, "Undo",
pcount/total_pcount);
/* Undo */
procedural_db_register (&undo_push_group_start_proc);
procedural_db_register (&undo_push_group_end_proc);
procedural_db_register (&undo_push_group_start_proc); pcount++;
procedural_db_register (&undo_push_group_end_proc); pcount++;
app_init_update_status(NULL, "Palette",
pcount/total_pcount);
/* Palette */
procedural_db_register (&palette_get_foreground_proc);
procedural_db_register (&palette_get_background_proc);
procedural_db_register (&palette_set_foreground_proc);
procedural_db_register (&palette_set_background_proc);
procedural_db_register (&palette_get_foreground_proc); pcount++;
procedural_db_register (&palette_get_background_proc); pcount++;
procedural_db_register (&palette_set_foreground_proc); pcount++;
procedural_db_register (&palette_set_background_proc); pcount++;
app_init_update_status(NULL, "Interface procedures",
pcount/total_pcount);
/* Interface procs */
procedural_db_register (&brushes_get_brush_proc);
procedural_db_register (&brushes_refresh_brush_proc);
procedural_db_register (&brushes_set_brush_proc);
procedural_db_register (&brushes_get_opacity_proc);
procedural_db_register (&brushes_set_opacity_proc);
procedural_db_register (&brushes_get_spacing_proc);
procedural_db_register (&brushes_set_spacing_proc);
procedural_db_register (&brushes_get_paint_mode_proc);
procedural_db_register (&brushes_set_paint_mode_proc);
procedural_db_register (&brushes_list_proc);
procedural_db_register (&patterns_get_pattern_proc);
procedural_db_register (&patterns_set_pattern_proc);
procedural_db_register (&patterns_list_proc);
procedural_db_register (&brushes_get_brush_proc); pcount++;
procedural_db_register (&brushes_refresh_brush_proc); pcount++;
procedural_db_register (&brushes_set_brush_proc); pcount++;
procedural_db_register (&brushes_get_opacity_proc); pcount++;
procedural_db_register (&brushes_set_opacity_proc); pcount++;
procedural_db_register (&brushes_get_spacing_proc); pcount++;
procedural_db_register (&brushes_set_spacing_proc); pcount++;
procedural_db_register (&brushes_get_paint_mode_proc); pcount++;
procedural_db_register (&brushes_set_paint_mode_proc); pcount++;
procedural_db_register (&brushes_list_proc); pcount++;
procedural_db_register (&patterns_get_pattern_proc); pcount++;
procedural_db_register (&patterns_set_pattern_proc); pcount++;
procedural_db_register (&patterns_list_proc); pcount++;
procedural_db_register (&gradients_get_list_proc);
procedural_db_register (&gradients_get_active_proc);
procedural_db_register (&gradients_set_active_proc);
procedural_db_register (&gradients_sample_uniform_proc);
procedural_db_register (&gradients_sample_custom_proc);
procedural_db_register (&gradients_get_list_proc); pcount++;
procedural_db_register (&gradients_get_active_proc); pcount++;
procedural_db_register (&gradients_set_active_proc); pcount++;
procedural_db_register (&gradients_sample_uniform_proc); pcount++;
procedural_db_register (&gradients_sample_custom_proc); pcount++;
app_init_update_status(NULL, "Image procedures",
pcount/total_pcount);
/* Image procedures */
procedural_db_register (&desaturate_proc);
procedural_db_register (&equalize_proc);
procedural_db_register (&invert_proc);
procedural_db_register (&desaturate_proc); pcount++;
procedural_db_register (&equalize_proc); pcount++;
procedural_db_register (&invert_proc); pcount++;
procedural_db_register (&brightness_contrast_proc);
procedural_db_register (&curves_spline_proc);
procedural_db_register (&curves_explicit_proc);
procedural_db_register (&color_balance_proc);
procedural_db_register (&histogram_proc);
procedural_db_register (&hue_saturation_proc);
procedural_db_register (&levels_proc);
procedural_db_register (&posterize_proc);
procedural_db_register (&threshold_proc);
procedural_db_register (&brightness_contrast_proc); pcount++;
procedural_db_register (&curves_spline_proc); pcount++;
procedural_db_register (&curves_explicit_proc); pcount++;
procedural_db_register (&color_balance_proc); pcount++;
procedural_db_register (&histogram_proc); pcount++;
procedural_db_register (&hue_saturation_proc); pcount++;
procedural_db_register (&levels_proc); pcount++;
procedural_db_register (&posterize_proc); pcount++;
procedural_db_register (&threshold_proc); pcount++;
procedural_db_register (&convert_rgb_proc);
procedural_db_register (&convert_grayscale_proc);
procedural_db_register (&convert_indexed_proc);
procedural_db_register (&convert_indexed_palette_proc);
procedural_db_register (&convert_rgb_proc); pcount++;
procedural_db_register (&convert_grayscale_proc); pcount++;
procedural_db_register (&convert_indexed_proc); pcount++;
procedural_db_register (&convert_indexed_palette_proc); pcount++;
app_init_update_status(NULL, "Channel ops",
pcount/total_pcount);
/* Channel Ops procedures */
procedural_db_register (&channel_ops_duplicate_proc);
procedural_db_register (&channel_ops_offset_proc);
procedural_db_register (&channel_ops_duplicate_proc); pcount++;
procedural_db_register (&channel_ops_offset_proc); pcount++;
/* Gimprc procedures */
procedural_db_register (&gimprc_query_proc);
procedural_db_register (&gimprc_query_proc); pcount++;
app_init_update_status(NULL, "Procedural database",
pcount/total_pcount);
/* Procedural Database */
procedural_db_register (&procedural_db_dump_proc);
procedural_db_register (&procedural_db_query_proc);
procedural_db_register (&procedural_db_proc_info_proc);
procedural_db_register (&procedural_db_proc_arg_proc);
procedural_db_register (&procedural_db_proc_val_proc);
procedural_db_register (&procedural_db_get_data_proc);
procedural_db_register (&procedural_db_set_data_proc);
procedural_db_register (&procedural_db_dump_proc); pcount++;
procedural_db_register (&procedural_db_query_proc); pcount++;
procedural_db_register (&procedural_db_proc_info_proc); pcount++;
procedural_db_register (&procedural_db_proc_arg_proc); pcount++;
procedural_db_register (&procedural_db_proc_val_proc); pcount++;
procedural_db_register (&procedural_db_get_data_proc); pcount++;
procedural_db_register (&procedural_db_set_data_proc); pcount++;
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -34,6 +34,7 @@
#include "libgimp/gimpprotocol.h"
#include "libgimp/gimpwire.h"
#include "app_procs.h"
#include "appenv.h"
#include "drawable.h"
#include "datafiles.h"
@ -191,6 +192,7 @@ plug_in_init ()
GSList *tmp, *tmp2;
PlugInDef *plug_in_def;
PlugInProcDef *proc_def;
gfloat nplugins, nth;
/* initialize the progress init and update procedure db calls. */
procedural_db_register (&progress_init_proc);
@ -233,12 +235,16 @@ plug_in_init ()
/* read the pluginrc file for cached data */
sprintf (filename, "%s/pluginrc", gimp_directory ());
app_init_update_status("Resource configuration", filename, -1);
parse_gimprc_file (filename);
/* query any plug-ins that have changed since we last wrote out
* the pluginrc file.
*/
tmp = plug_in_defs;
app_init_update_status("Plug-ins", "", 0);
nplugins = g_slist_length(tmp);
nth = 0;
while (tmp)
{
plug_in_def = tmp->data;
@ -250,6 +256,8 @@ plug_in_init ()
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
plug_in_query (plug_in_def->prog, plug_in_def);
}
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
nth++;
}
/* insert the proc defs */
@ -294,6 +302,8 @@ plug_in_init ()
/* run the available extensions */
tmp = proc_defs;
g_print ("Starting extensions: ");
app_init_update_status("Extensions", "", 0);
nplugins = g_slist_length(tmp); nth = 0;
while (tmp)
{
proc_def = tmp->data;
@ -304,6 +314,8 @@ plug_in_init ()
(proc_def->db_info.proc_type == PDB_EXTENSION))
{
g_print ("%s ", proc_def->db_info.name);
app_init_update_status(NULL, proc_def->db_info.name,
nth/nplugins);
plug_in_run (&proc_def->db_info, NULL, FALSE, TRUE);
}
}

View File

@ -22,6 +22,7 @@
#include <sys/types.h>
#include <regex.h>
#include "appenv.h"
#include "app_procs.h"
#include "general.h"
#include "gdisplay.h"
#include "plug_in.h"
@ -481,6 +482,7 @@ ProcRecord procedural_db_query_proc =
void
procedural_db_init ()
{
app_init_update_status("Procedural Database", NULL, -1);
if (!procedural_ht)
procedural_ht = g_hash_table_new (procedural_db_hash_func,
procedural_db_compare_func);