summaryrefslogtreecommitdiffstats
path: root/src/widgets/swatch-selector.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-03-27 01:33:44 +0000
committerMartin Owens <doctormo@gmail.com>2014-03-27 01:33:44 +0000
commit5a4fb2325f60d292b47330f540b26a3279341c90 (patch)
treed2aa7967be25450b83e625025366c618101ae49f /src/widgets/swatch-selector.cpp
parentThe Polar Arrange Tab of the Arrange Dialog now hides the parametric (diff)
parentRemove Snap menu item and improve grid menu item text (diff)
downloadinkscape-5a4fb2325f60d292b47330f540b26a3279341c90.tar.gz
inkscape-5a4fb2325f60d292b47330f540b26a3279341c90.zip
Commit a merge to trunk, with probabal errors
(bzr r11073.1.36)
Diffstat (limited to 'src/widgets/swatch-selector.cpp')
-rw-r--r--src/widgets/swatch-selector.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/widgets/swatch-selector.cpp b/src/widgets/swatch-selector.cpp
index 5de71c95e..7178ad072 100644
--- a/src/widgets/swatch-selector.cpp
+++ b/src/widgets/swatch-selector.cpp
@@ -1,8 +1,5 @@
-
-
-#include <glibmm/i18n.h>
-
#include "swatch-selector.h"
+#include <glibmm/i18n.h>
#include "document.h"
#include "document-undo.h"
@@ -175,14 +172,14 @@ void SwatchSelector::setVector(SPDocument */*doc*/, SPGradient *vector)
if ( vector && vector->isSolid() ) {
SPStop* stop = vector->getFirstStop();
- guint32 const colorVal = sp_stop_get_rgba32(stop);
+ guint32 const colorVal = stop->get_rgba32();
_csel->base->setAlpha(SP_RGBA32_A_F(colorVal));
SPColor color( SP_RGBA32_R_F(colorVal), SP_RGBA32_G_F(colorVal), SP_RGBA32_B_F(colorVal) );
// set its color, from the stored array
_csel->base->setColor( color );
gtk_widget_show_all( GTK_WIDGET(_csel) );
} else {
- gtk_widget_hide( GTK_WIDGET(_csel) );
+ //gtk_widget_hide( GTK_WIDGET(_csel) );
}
/*