Fixed the progressbar warnings and the image id in layers&channels.

--Sven
This commit is contained in:
Sven Neumann 1998-08-11 20:45:57 +00:00
parent af24ad3806
commit 007d7f0adb
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Tue Aug 11 22:41:20 MEST 1998 Sven Neumann <sven@gimp.org>
* app/app_procs.c
* app/layers_dialog.c: Fixed the progressbar warnings and the
image id in the layers-n-channels dialog.
Tue Aug 11 21:14:40 MEST 1998 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c: Added an about-dialog that

View File

@ -425,13 +425,13 @@ app_init_update_status(char *label1val,
}
gtk_label_set(GTK_LABEL(label2), label2val);
}
if(pct_progress >= 0 &&
gtk_progress_get_current_percentage(pbar) != pct_progress)
if (pct_progress >= 0.0 && pct_progress <= 1.0 &&
gtk_progress_get_current_percentage (&(GTK_PROGRESS_BAR (pbar)->progress)) != pct_progress)
/*
GTK_PROGRESS_BAR(pbar)->percentage != pct_progress)
*/
{
gtk_progress_bar_update(GTK_PROGRESS_BAR(pbar), pct_progress);
gtk_progress_bar_update (GTK_PROGRESS_BAR (pbar), pct_progress);
}
gtk_widget_draw(win_initstatus, &area);
idle_tag = gtk_idle_add((GtkFunction) gtk_true, NULL);

View File

@ -782,7 +782,7 @@ create_image_menu_cb (gpointer im, gpointer d)
image_name = prune_filename (gimage_filename (gimage));
menu_item_label = (char *) g_malloc (strlen (image_name) + 15);
sprintf (menu_item_label, "%s-%p", image_name, gimage);
sprintf (menu_item_label, "%s-%d", image_name, pdb_image_to_id (gimage));
menu_item = gtk_menu_item_new_with_label (menu_item_label);
gtk_signal_connect (GTK_OBJECT (menu_item), "activate",
(GtkSignalFunc) data->callback,

View File

@ -782,7 +782,7 @@ create_image_menu_cb (gpointer im, gpointer d)
image_name = prune_filename (gimage_filename (gimage));
menu_item_label = (char *) g_malloc (strlen (image_name) + 15);
sprintf (menu_item_label, "%s-%p", image_name, gimage);
sprintf (menu_item_label, "%s-%d", image_name, pdb_image_to_id (gimage));
menu_item = gtk_menu_item_new_with_label (menu_item_label);
gtk_signal_connect (GTK_OBJECT (menu_item), "activate",
(GtkSignalFunc) data->callback,