force a background update immediately when we realize instead of queuing
authorNalin Dahyabhai <nalin@src.gnome.org>
Mon, 27 Jan 2003 07:12:17 +0000 (07:12 +0000)
committerNalin Dahyabhai <nalin@src.gnome.org>
Mon, 27 Jan 2003 07:12:17 +0000 (07:12 +0000)
* src/vte.c(vte_terminal_realize): force a background update immediately when
we realize instead of queuing it up (#104381).

ChangeLog
doc/vttest.tar.gz
src/vte.c

index e13b8c8..fbe71b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-27 nalin       
+       * src/vte.c(vte_terminal_realize): force a background update immediately
+       when we realize instead of queuing it up (#104381).
+
 2003-01-26  Daniel Yacob <locales@geez.org>
 
        * configure.in: Added "am" to ALL_LINGUAS.
index 130ace6..f017bf9 100644 (file)
Binary files a/doc/vttest.tar.gz and b/doc/vttest.tar.gz differ
index 8debeb4..718e62a 100644 (file)
--- a/src/vte.c
+++ b/src/vte.c
@@ -12050,9 +12050,6 @@ vte_terminal_realize(GtkWidget *widget)
                vte_terminal_set_color_internal(terminal, i, &color);
        }
 
-       /* Set up the background. */
-       vte_terminal_queue_background_update(terminal, TRUE);
-
        /* Setup cursor blink */
        settings = gtk_widget_get_settings(GTK_WIDGET(terminal));
        if (G_IS_OBJECT(settings)) {
@@ -12102,6 +12099,10 @@ vte_terminal_realize(GtkWidget *widget)
        terminal->pvt->mouse_inviso_cursor =
                gdk_cursor_new_from_pixmap(pixmap, mask,
                                           &black, &black, 0, 0);
+
+       /* Set up the background, *now*. */
+       vte_terminal_background_update(terminal);
+
        g_object_unref(G_OBJECT(pixmap));
        g_object_unref(G_OBJECT(mask));
 }