summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 061019e)
raw | patch | inline | side by side (parent: 061019e)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 20 Sep 2009 05:09:12 +0000 (05:09 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 20 Sep 2009 05:09:12 +0000 (05:09 +0000) |
src/ui/dialog/swatches.cpp | patch | blob | history |
index e273a827c4c4e6211e3cab52ed5d0a9fceb42a7d..1f708e3de3534c1c84f8387ecc391d7da91c0f2b 100644 (file)
#include "display/nr-plain-stuff.h"
#include "sp-gradient-reference.h"
+//#define USE_DOCUMENT_PALETTE 1
+
namespace Inkscape {
namespace UI {
namespace Dialogs {
@@ -364,6 +366,7 @@ static void redirSecondaryClick( GtkMenuItem *menuitem, gpointer /*user_data*/ )
}
}
+#if USE_DOCUMENT_PALETTE
static void editGradientImpl( SPGradient* gr )
{
if ( gr ) {
}
}
}
+#endif // USE_DOCUMENT_PALETTE
static gboolean handleButtonPress( GtkWidget* /*widget*/, GdkEventButton* event, gpointer user_data)
{
@@ -451,6 +455,7 @@ static gboolean handleButtonPress( GtkWidget* /*widget*/, GdkEventButton* event,
user_data);
gtk_menu_shell_append(GTK_MENU_SHELL(popupMenu), child);
+#if USE_DOCUMENT_PALETTE
child = gtk_separator_menu_item_new();
gtk_menu_shell_append(GTK_MENU_SHELL(popupMenu), child);
popupExtras.push_back(child);
@@ -484,6 +489,7 @@ static gboolean handleButtonPress( GtkWidget* /*widget*/, GdkEventButton* event,
gtk_menu_shell_append(GTK_MENU_SHELL(popupMenu), child);
//popupExtras.push_back(child);
gtk_widget_set_sensitive( child, FALSE );
+#endif // USE_DOCUMENT_PALETTE
gtk_widget_show_all(popupMenu);
}
_clear->ptr = this;
_remove = new ColorItem( ege::PaintDef::NONE );
_remove->ptr = this;
+#if USE_DOCUMENT_PALETTE
{
JustForNow *docPalette = new JustForNow();
_ptr = docPalette;
}
+#endif // USE_DOCUMENT_PALETTE
loadEmUp();
if ( !possible.empty() ) {
JustForNow* first = 0;
}
}
+#if USE_DOCUMENT_PALETTE
if ( _ptr ) {
JustForNow *docPalette = reinterpret_cast<JustForNow *>(_ptr);
// TODO delete pointed to objects
_rebuild();
}
}
+#endif // USE_DOCUMENT_PALETTE
}
void SwatchesPanel::_updateFromSelection()
{
+#if USE_DOCUMENT_PALETTE
if ( _ptr ) {
JustForNow *docPalette = reinterpret_cast<JustForNow *>(_ptr);
item->setState( isFill, isStroke );
}
}
+#endif // USE_DOCUMENT_PALETTE
}
void SwatchesPanel::_handleAction( int setId, int itemId )