Commit 251fe649 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

GDK_RGB_DITHER_NORMAL should be good enough.

2002-01-30  Sven Neumann  <sven@gimp.org>

	* app/gui/about-dialog.c: GDK_RGB_DITHER_NORMAL should be good enough.

	* app/gui/preferences-dialog.c: undef GTK_DISABLE_DEPRECATED for
	GtkListItem.

	* app/widgets/gimpcomponentlistitem.c: don't use GtkPreview methods
	on a GimpPreview. The component views are still broken but at least
	the warnings are gone.

	* app/widgets/gimpfontselection.c: fixed warnings by hardcoding a
	font size when validating a font name :-(

	* app/widgets/gimppreview.c: set allocation to desired size.

	* libgimpwidgets/gimpcolorarea.c: flipped so it looks like before
	the port to GtkDrawingArea. Use GDK_RGB_DITHER_MAX to render.
parent 074b1cda
2002-01-30 Sven Neumann <sven@gimp.org>
* app/gui/about-dialog.c: GDK_RGB_DITHER_NORMAL should be good enough.
* app/gui/preferences-dialog.c: undef GTK_DISABLE_DEPRECATED for
GtkListItem.
* app/widgets/gimpcomponentlistitem.c: don't use GtkPreview methods
on a GimpPreview. The component views are still broken but at least
the warnings are gone.
* app/widgets/gimpfontselection.c: fixed warnings by hardcoding a
font size when validating a font name :-(
* app/widgets/gimppreview.c: set allocation to desired size.
* libgimpwidgets/gimpcolorarea.c: flipped so it looks like before
the port to GtkDrawingArea. Use GDK_RGB_DITHER_MAX to render.
2002-01-30 Michael Natterer <mitch@gimp.org>
 
* app/widgets/gimppreview.[ch]: derive from GtkDrawingArea
......
......@@ -338,7 +338,7 @@ about_dialog_load_logo (GtkWidget *window)
0, 0,
logo_width,
logo_height,
GDK_RGB_DITHER_MAX,
GDK_RGB_DITHER_NORMAL,
0, 0);
g_object_unref (G_OBJECT (gc));
......
......@@ -22,6 +22,12 @@
#include <gtk/gtk.h>
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtklistitem.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpbase/gimpbase.h"
#include "libgimpwidgets/gimpwidgets.h"
......
......@@ -338,7 +338,7 @@ about_dialog_load_logo (GtkWidget *window)
0, 0,
logo_width,
logo_height,
GDK_RGB_DITHER_MAX,
GDK_RGB_DITHER_NORMAL,
0, 0);
g_object_unref (G_OBJECT (gc));
......
......@@ -22,6 +22,12 @@
#include <gtk/gtk.h>
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtklistitem.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpbase/gimpbase.h"
#include "libgimpwidgets/gimpwidgets.h"
......
......@@ -21,11 +21,6 @@
#include "config.h"
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
......@@ -162,9 +157,6 @@ gimp_component_list_item_new (GimpImage *gimage,
gimp_list_item_set_viewable (list_item, GIMP_VIEWABLE (gimage));
GTK_PREVIEW (list_item->preview)->bpp = 1;
GTK_PREVIEW (list_item->preview)->type = GTK_PREVIEW_GRAYSCALE;
return GTK_WIDGET (list_item);
}
......
......@@ -250,7 +250,11 @@ gimp_font_selection_set_fontname (GimpFontSelection *fontsel,
new_desc = pango_font_description_from_string (fontname);
if (new_desc)
font = pango_context_load_font (fontsel->context, new_desc);
{
pango_font_description_set_size (new_desc, 12); /* eeek */
font = pango_context_load_font (fontsel->context, new_desc);
pango_font_description_unset_fields (new_desc, PANGO_FONT_MASK_SIZE);
}
if (fontsel->font_desc)
pango_font_description_free (fontsel->font_desc);
......
......@@ -862,6 +862,9 @@ gimp_preview_size_allocate (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
allocation->width = preview->width + 2 * preview->border_width;
allocation->height = preview->height + 2 * preview->border_width;
if (GTK_WIDGET_CLASS (parent_class)->size_allocate)
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
......
......@@ -862,6 +862,9 @@ gimp_preview_size_allocate (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
allocation->width = preview->width + 2 * preview->border_width;
allocation->height = preview->height + 2 * preview->border_width;
if (GTK_WIDGET_CLASS (parent_class)->size_allocate)
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
......
......@@ -862,6 +862,9 @@ gimp_preview_size_allocate (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
allocation->width = preview->width + 2 * preview->border_width;
allocation->height = preview->height + 2 * preview->border_width;
if (GTK_WIDGET_CLASS (parent_class)->size_allocate)
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
......
......@@ -862,6 +862,9 @@ gimp_preview_size_allocate (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
allocation->width = preview->width + 2 * preview->border_width;
allocation->height = preview->height + 2 * preview->border_width;
if (GTK_WIDGET_CLASS (parent_class)->size_allocate)
GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
......
......@@ -230,7 +230,7 @@ gimp_color_area_expose (GtkWidget *widget,
event->area.y,
event->area.width,
event->area.height,
GDK_RGB_DITHER_NORMAL,
GDK_RGB_DITHER_MAX,
buf,
gca->rowstride,
event->area.x,
......@@ -421,7 +421,7 @@ gimp_color_area_idle_update (gpointer data)
for (x = 0; x < width; x++)
{
if (x * height > y * width)
if ((width - x) * height > y * width)
{
*p++ = opaque[0];
*p++ = opaque[1];
......@@ -430,7 +430,7 @@ gimp_color_area_idle_update (gpointer data)
continue;
}
frac = y - (gdouble) (x * height) / (gdouble) width;
frac = y - (gdouble) ((width - x) * height) / (gdouble) width;
if (((x / check_size) ^ (y / check_size)) & 1)
{
......
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