gradient-image.cpp revision c830d132ea7f29e73b55f87badff602b065f8eac
#define __SP_GRADIENT_IMAGE_C__
/*
* A simple gradient preview
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <libnr/nr-pixblock-pattern.h>
#include "macros.h"
#include "../display/nr-plain-stuff.h"
#include "../display/nr-plain-stuff-gdk.h"
#include "gradient-image.h"
#include "sp-gradient.h"
#include "sp-gradient-fns.h"
#define VBLOCK 16
static GtkWidgetClass *parent_class;
sp_gradient_image_get_type (void)
{
//TODO: switch to GObject
// GtkType and such calls were deprecated a while back with the
// introduction of GObject as a separate layer, with GType instead. --JonCruz
if (!type) {
GtkTypeInfo info = {
(gchar*) "SPGradientImage",
sizeof (SPGradientImage),
sizeof (SPGradientImageClass),
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
}
static void
{
}
static void
{
}
static void
{
}
static void
{
if (GTK_WIDGET_REALIZED (widget)) {
}
}
static gint
{
if (GTK_WIDGET_DRAWABLE (widget)) {
gint y;
guchar *p;
x0, y,
}
} else {
}
} else {
TRUE);
}
}
}
return TRUE;
}
{
}
void
{
}
if (gradient) {
image->release_connection = gradient->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_gradient_image_gradient_release), image));
image->modified_connection = gradient->connectModified(sigc::bind<2>(sigc::ptr_fun(&sp_gradient_image_gradient_modified), image));
}
}
static void
{
}
}
static void
{
}
static void
{
} else {
}
if (GTK_WIDGET_DRAWABLE (image)) {
}
}