summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--ChangeLog.pre-2-08
-rw-r--r--ChangeLog.pre-2-108
-rw-r--r--ChangeLog.pre-2-28
-rw-r--r--ChangeLog.pre-2-48
-rw-r--r--ChangeLog.pre-2-68
-rw-r--r--ChangeLog.pre-2-88
-rw-r--r--gtk/gtkpreview.c12
8 files changed, 68 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 6ad0a48248..f064fb9855 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -58,6 +58,14 @@ Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
(Damon Chaplin), which i got wrong when applying Damon's patch the last
time.
+Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
+ that when we are running with a non-installed colormap,
+ in 8-bit pseudo-color, we actually are using the system
+ visual. (Fixes *Bad Match* errors on Digital Unix machines
+ with multiple 8-bit pseudo-color visuals)
+
1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c
index b648acabc1..6172f3ecb9 100644
--- a/gtk/gtkpreview.c
+++ b/gtk/gtkpreview.c
@@ -872,6 +872,18 @@ gtk_preview_get_visuals (GtkPreviewClass *klass)
return;
}
+ /* If we are _not_ running with an installed cmap, we must run
+ * with the system visual. Otherwise, we let GDK pick the visual,
+ * and it makes some effort to pick a non-default visual, which
+ * will hopefully provide minimum color flashing.
+ */
+ if ((klass->info.visual->depth == gdk_visual_get_system()->depth) &&
+ (klass->info.visual->type == gdk_visual_get_system()->type) &&
+ !install_cmap)
+ {
+ klass->info.visual = gdk_visual_get_system();
+ }
+
switch (klass->info.visual->depth)
{
case 8: