summaryrefslogtreecommitdiff
path: root/gtk/gtkpreview.h
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-08 00:59:38 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-08 00:59:38 +0000
commit2395ed082603df688b4cb06ac8c51a44148ff414 (patch)
tree3f4439cbbd35f3f48d4e3870d5198d1ffce874f8 /gtk/gtkpreview.h
parentde1262dcc1693e42e47c5fe6d84e570cdc831552 (diff)
downloadgtk+-2395ed082603df688b4cb06ac8c51a44148ff414.tar.gz
Added a new function, gtk_preview_reset(), that can be used (under highly
Sat Mar 7 18:46:57 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkpreview.[ch]: Added a new function, gtk_preview_reset(), that can be used (under highly controlled circumstances), to change the properties of the preview colormap after a preview has already been created and destroyed.
Diffstat (limited to 'gtk/gtkpreview.h')
-rw-r--r--gtk/gtkpreview.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkpreview.h b/gtk/gtkpreview.h
index 2fe6ad5e08..ab6c981f9f 100644
--- a/gtk/gtkpreview.h
+++ b/gtk/gtkpreview.h
@@ -135,6 +135,13 @@ GdkVisual* gtk_preview_get_visual (void);
GdkColormap* gtk_preview_get_cmap (void);
GtkPreviewInfo* gtk_preview_get_info (void);
+/* This function reinitializes the preview colormap and visual from
+ * the current gamma/color_cube/install_cmap settings. It must only
+ * be called if there are no previews or users's of the preview
+ * colormap in existence.
+ */
+void gtk_preview_reset (void);
+
#ifdef __cplusplus
}