Commit 50e8667b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

reverted Yosh's change and removed the call to gtk_preview_set_gamma()

2003-11-15  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpui.c (gimp_ui_init): reverted Yosh's change and
	removed the call to gtk_preview_set_gamma() instead. The gamma
	value isn't used anywhere else so it would only be confusing to
	use it on plug-in previews.
parent 2f9e4c17
2003-11-15 Sven Neumann <sven@gimp.org>
* libgimp/gimpui.c (gimp_ui_init): reverted Yosh's change and
removed the call to gtk_preview_set_gamma() instead. The gamma
value isn't used anywhere else so it would only be confusing to
use it on plug-in previews.
2003-11-15 Manish Singh <yosh@gimp.org>
* libgimp/gimpui.c: and #undef GTK_DISABLE_DEPRECATED, for
......@@ -21,11 +21,6 @@
#include <stdlib.h>
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include "libgimpmodule/gimpmodule.h"
......@@ -51,10 +46,8 @@ static void gimp_ensure_modules (void);
* @prog_name: The name of the plug-in which will be passed as argv[0] to
* gtk_init(). It's a convention to use the name of the
* executable and _not_ the PDB procedure name or something.
* @preview: %TRUE if the plug-in has some kind of preview in it's UI.
* Note that passing %TRUE is recommended also if one of the
* used GIMP Library widgets contains a preview (like the image
* menu returned by gimp_image_menu_new()).
* @preview: This parameter is unused and exists for historical
* reasons only.
*
* This function initializes GTK+ with gtk_init() and initializes GDK's
* image rendering subsystem (GdkRGB) to follow the GIMP main program's
......@@ -116,12 +109,6 @@ gimp_ui_init (const gchar *prog_name,
screen = gdk_screen_get_default ();
gtk_widget_set_default_colormap (gdk_screen_get_rgb_colormap (screen));
/* Set the gamma after installing the colormap because
* gtk_preview_set_gamma() initializes GdkRGB if not already done
*/
if (preview)
gtk_preview_set_gamma (gimp_gamma ());
/* Initialize the eeky vtable needed by libgimpwidgets */
vtable.unit_get_number_of_units = gimp_unit_get_number_of_units;
vtable.unit_get_number_of_built_in_units = gimp_unit_get_number_of_built_in_units;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment