mirror of https://github.com/GNOME/gimp.git
app/app_procs.c Changed progressbar updaters to work with new API. THIS
Mon Jul 20 11:07:32 EDT 1998 Matthew Wilson <msw@gimp.org> * app/app_procs.c * app/interface.c: Changed progressbar updaters to work with new API. THIS WILL NOT WORK WITH OLDER GTK+. SOMEONE NEEDS TO MAKE AN ENTRY IN gtkfeatures.h SO WE CAN #ifdef THIS. (I suppose I should... but what can I say - I'm lazy) --Matt
This commit is contained in:
parent
2f93825eb2
commit
bdfc4efe14
|
@ -1,3 +1,11 @@
|
|||
Mon Jul 20 11:07:32 EDT 1998 Matthew Wilson <msw@gimp.org>
|
||||
|
||||
* app/app_procs.c
|
||||
* app/interface.c: Changed progressbar updaters to work with
|
||||
new API. THIS WILL NOT WORK WITH OLDER GTK+. SOMEONE NEEDS
|
||||
TO MAKE AN ENTRY IN gtkfeatures.h SO WE CAN #ifdef THIS.
|
||||
(I suppose I should... but what can I say - I'm lazy)
|
||||
|
||||
Mon Jul 20 06:27:18 PDT 1998 Jay Cox <jaycox@earthlink.net>
|
||||
|
||||
* app/brush_select.c app/gimpbrush.c app/gimpbrush.h
|
||||
|
|
|
@ -424,8 +424,11 @@ app_init_update_status(char *label1val,
|
|||
}
|
||||
gtk_label_set(GTK_LABEL(label2), label2val);
|
||||
}
|
||||
if(pct_progress >= 0
|
||||
&& GTK_PROGRESS_BAR(pbar)->percentage != pct_progress)
|
||||
if(pct_progress >= 0 &&
|
||||
gtk_progress_get_current_percentage(pbar) != pct_progress)
|
||||
/*
|
||||
GTK_PROGRESS_BAR(pbar)->percentage != pct_progress)
|
||||
*/
|
||||
{
|
||||
gtk_progress_bar_update(GTK_PROGRESS_BAR(pbar), pct_progress);
|
||||
}
|
||||
|
|
|
@ -1047,7 +1047,11 @@ progress_step ()
|
|||
|
||||
if (GTK_WIDGET_VISIBLE (progress_area))
|
||||
{
|
||||
val = gtk_progress_get_current_percentage(GTK_PROGRESS(progress_area))
|
||||
+ 0.01;
|
||||
/*
|
||||
val = GTK_PROGRESS_BAR (progress_area)->percentage + 0.01;
|
||||
*/
|
||||
if (val > 1.0)
|
||||
val = 0.0;
|
||||
|
||||
|
|
|
@ -1047,7 +1047,11 @@ progress_step ()
|
|||
|
||||
if (GTK_WIDGET_VISIBLE (progress_area))
|
||||
{
|
||||
val = gtk_progress_get_current_percentage(GTK_PROGRESS(progress_area))
|
||||
+ 0.01;
|
||||
/*
|
||||
val = GTK_PROGRESS_BAR (progress_area)->percentage + 0.01;
|
||||
*/
|
||||
if (val > 1.0)
|
||||
val = 0.0;
|
||||
|
||||
|
|
|
@ -1047,7 +1047,11 @@ progress_step ()
|
|||
|
||||
if (GTK_WIDGET_VISIBLE (progress_area))
|
||||
{
|
||||
val = gtk_progress_get_current_percentage(GTK_PROGRESS(progress_area))
|
||||
+ 0.01;
|
||||
/*
|
||||
val = GTK_PROGRESS_BAR (progress_area)->percentage + 0.01;
|
||||
*/
|
||||
if (val > 1.0)
|
||||
val = 0.0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue