reverted idle handling change, exposed gtk label redraw bug which annoys

people

-Yosh
This commit is contained in:
Manish Singh 1998-05-17 21:05:24 +00:00
parent 9f452d5280
commit dabaf0c8e1
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Sun May 17 14:02:44 PDT 1998 Manish Singh <yosh@gimp.org>
* app/app_procs.c: reverted the splash screen idle loop changes
since they expose some weird GtkLabel redraw bugs
Sun May 17 00:15:40 PDT 1998 Manish Singh <yosh@gimp.org>
* Made 0.99.31 release

View File

@ -307,6 +307,7 @@ 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)
@ -315,6 +316,9 @@ destroy_initialization_status_window(void)
{
gtk_widget_destroy(win_initstatus);
gdk_pixmap_unref(logo_pixmap);
win_initstatus = label1 = label2 = pbar = logo_area = NULL;
logo_pixmap = NULL;
gtk_idle_remove(idle_tag);
}
}
@ -327,7 +331,7 @@ make_initialization_status_window(void)
{
GtkWidget *vbox;
win_initstatus = gtk_window_new(GTK_WINDOW_POPUP);
win_initstatus = gtk_window_new(GTK_WINDOW_DIALOG);
gtk_signal_connect (GTK_OBJECT (win_initstatus), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
@ -416,8 +420,9 @@ app_init_update_status(char *label1val,
gtk_progress_bar_update(GTK_PROGRESS_BAR(pbar), pct_progress);
}
gtk_widget_draw(win_initstatus, &area);
while (gtk_events_pending())
gtk_main_iteration();
idle_tag = gtk_idle_add(gtk_true, NULL);
gtk_main_iteration();
gtk_idle_remove(idle_tag);
}
}