/**
* 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 "display/cairo-utils.h"
#include "gradient-image.h"
#include "macros.h"
#include "sp-gradient.h"
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
{
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
}
static void
{
}
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
{
}
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
}
{
}
#if GTK_CHECK_VERSION(3,0,0)
static void sp_gradient_image_get_preferred_width(GtkWidget *widget, gint *minimal_width, gint *natural_width)
{
}
static void sp_gradient_image_get_preferred_height(GtkWidget *widget, gint *minimal_height, gint *natural_height)
{
}
#endif
#if !GTK_CHECK_VERSION(3,0,0)
{
if(gtk_widget_is_drawable(widget)) {
cairo_clip(ct);
}
return result;
}
#endif
{
if (gr) {
cairo_set_source(ct, p);
}
return TRUE;
}
{
return GTK_WIDGET(image);
}
{
if (gr) {
cairo_set_source(ct, p);
}
// no need to free s - the call below takes ownership
return pixbuf;
}
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
{
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8 :