icon-preview.cpp revision f77fbbae517ab9a0c194068e88cbdf0f43b72f9b
3832N/A#ifdef HAVE_CONFIG_H
4458N/A#include "desktop-handles.h"
3832N/A#include "display/nr-arena.h"
3832N/A#include "document.h"
3832N/A#include "inkscape.h"
3832N/A#include "preferences.h"
3832N/A#include "selection.h"
3832N/A#include "icon-preview.h"
3832N/A refreshButton(0),
3832N/A numEntries = 0;
3832N/A for (std::vector<Glib::ustring>::iterator i = pref_sizes.begin(); i != pref_sizes.end(); ++i) {
3832N/A for ( int i = 0; i < numEntries; i++ ) {
for ( int i = 0; i < numEntries; i++ ) {
GdkPixbuf *pb = gdk_pixbuf_new_from_data( pixMem[i], GDK_COLORSPACE_RGB, TRUE, 8, sizes[i], sizes[i], sizes[i] * 4, /*(GdkPixbufDestroyNotify)g_free*/NULL, NULL );
buttons[i]->signal_clicked().connect( sigc::bind<int>( sigc::mem_fun(*this, &IconPreviewPanel::on_button_clicked), i) );
if ( desktop ) {
if ( sel ) {
if ( id ) {
if ( target ) {
if ( target ) {
for ( int i = 0; i < numEntries; i++ ) {
if ( px ) {
px = 0;
Glib::RefPtr<Gdk::Pixbuf> buf = images[hot]->get_pixbuf()->scale_simple( 128, 128, Gdk::INTERP_NEAREST );