Commit fb1e132b authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Instead of calling gtk_widget_draw() (which was happening before the

Sun Aug 30 16:45:05 1998  Owen Taylor  <otaylor@gtk.org>

	* app/app_procs.c (app_init_update_status): Instead
	of calling gtk_widget_draw() (which was happening before
	the labels got re-size-allocated), just update the
	event loop so the idle resize/redraw gets run.
parent 3e6b1c68
Sun Aug 30 16:45:05 1998 Owen Taylor <otaylor@gtk.org>
* app/app_procs.c (app_init_update_status): Instead
of calling gtk_widget_draw() (which was happening before
the labels got re-size-allocated), just update the
event loop so the idle resize/redraw gets run.
Sat Aug 29 15:32:32 PDT 1998 Manish Singh <yosh@gimp.org>
* libgimp/gimp.c
......
......@@ -317,7 +317,6 @@ 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)
......@@ -329,7 +328,6 @@ destroy_initialization_status_window(void)
gdk_pixmap_unref(logo_pixmap);
win_initstatus = label1 = label2 = pbar = logo_area = NULL;
logo_pixmap = NULL;
gtk_idle_remove(idle_tag);
}
}
......@@ -433,10 +431,12 @@ app_init_update_status(char *label1val,
{
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);
gtk_main_iteration();
gtk_idle_remove(idle_tag);
while (gtk_events_pending())
gtk_main_iteration();
/* We sync here to make sure things get drawn before continuing,
* is the improved look worth the time? I'm not sure...
*/
gdk_flush();
}
}
......
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