/*
* Authors:
* Theodore Janeczko
*
* Copyright (C) Theodore Janeczko 2012 <flutterguy317@gmail.com>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "ui/widget/addtoicon.h"
#include <gtkmm/icontheme.h>
#include "ui/icon-names.h"
#include "preferences.h"
#include "layertypeicon.h"
#include "addtoicon.h"
namespace Inkscape {
namespace UI {
namespace Widget {
// _pixAddName(INKSCAPE_ICON("layer-new")),
_property_active(*this, "active", false)
// _property_pixbuf_add(*this, "pixbuf_on", Glib::RefPtr<Gdk::Pixbuf>(0))
{
// Glib::RefPtr<Gtk::IconTheme> icon_theme = Gtk::IconTheme::get_default();
//
// if (!icon_theme->has_icon(_pixAddName)) {
// Inkscape::queueIconPrerender( INKSCAPE_ICON(_pixAddName.data()), Inkscape::ICON_SIZE_DECORATION );
// }
// if (icon_theme->has_icon(_pixAddName)) {
// _property_pixbuf_add = icon_theme->load_icon(_pixAddName, phys, (Gtk::IconLookupFlags)0);
// }
//
// _property_pixbuf_add = Gtk::Widget::
set_pixbuf();
}
#if WITH_GTKMM_3_0
int& min_h,
int& nat_h) const
{
if (min_h) {
}
if (nat_h) {
}
}
int& min_w,
int& nat_w) const
{
if (min_w) {
}
if (nat_w) {
}
}
#else
int* x_offset,
int* y_offset,
int* width,
int* height ) const
{
if ( width ) {
}
if ( height ) {
}
}
#endif
#if WITH_GTKMM_3_0
#else
#endif
{
set_pixbuf();
#if WITH_GTKMM_3_0
#else
Gtk::CellRendererPixbuf::render_vfunc( window, widget, background_area, cell_area, expose_area, flags );
#endif
}
{
return false;
}
{
GdkPixbuf *pixbuf = sp_pixbuf_new(Inkscape::ICON_SIZE_BUTTON, active ? INKSCAPE_ICON("list-add") : INKSCAPE_ICON("edit-delete"));
}
} // namespace Widget
} // namespace UI
} // namespace Inkscape
/*
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:textwidth=99 :