do not call gtk_settings_get_default() here as that requires an X
2001-10-28 jacob berkman <jacob@ximian.com> * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call gtk_settings_get_default() here as that requires an X connection (which breaks doc building with no X connection) and is not multihead safe (gtk_color_selection_init): delay palette loading until realize time (gtk_color_selection_realize): load the palette, and initialize the global palette if it hasn't been already * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the visual/cmap fields of klass->info since they are gone (gtk_preview_get_visual): just return gdk_rgb_get_visual () (gtk_preview_get_cmap): just return gdk_rgb_get_colormap () (gtk_preview_realize): don't set VISUAL and COLORMAP attributes * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and cmap fields (gtk_preview_get_visual): (gtk_preview_get_cmap): mark as deprecated * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo changes
This commit is contained in:
committed by
Jacob Berkman
parent
1b6f92f885
commit
96462944bf
@ -502,3 +502,9 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
||||
|
||||
If you aren't using GDK and GTK+ functions from multiple threads,
|
||||
there is no reason to call gdk_threads_init().
|
||||
|
||||
* The GtkPreviewInfo struct has had its visual and colormap fields
|
||||
removed. Also, gtk_preview_get_cmap() and gtk_preview_get_visual()
|
||||
are deprecated, as GdkRgb works on any colormap and visual. You no
|
||||
longer need to gtk_widget_push_cmap (gtk_preview_get_cmap ()) in
|
||||
your code.
|
||||
|
||||
Reference in New Issue
Block a user