summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb6970a)
raw | patch | inline | side by side (parent: cb6970a)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Feb 2009 22:58:37 +0000 (22:58 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Feb 2009 22:58:37 +0000 (22:58 +0000) |
src/ui/widget/filter-effect-chooser.cpp | patch | blob | history | |
src/ui/widget/filter-effect-chooser.h | patch | blob | history |
index 5b5b7011831842448db9adc22b240c0a0330615c..78ddbaa876bd3d27f790e089130a84325bbe9432 100644 (file)
SimpleFilterModifier::SimpleFilterModifier(int flags)
: _lb_blend(_("_Blend mode:")),
_lb_blur(_("B_lur:"), Gtk::ALIGN_LEFT),
- _blend(BlendModeConverter),
+ _blend(BlendModeConverter, SP_ATTR_INVALID, false),
_blur(0, 0, 100, 1, 0.01, 1)
{
+ _flags = flags;
+
if (flags & BLEND) {
add(_hb_blend);
_hb_blend.pack_start(_lb_blend, false, false);
const Glib::ustring SimpleFilterModifier::get_blend_mode()
{
+ if (!(_flags & BLEND)) {
+ return "normal";
+ }
if (_blend.get_active_row_number() == 5) {
- return "filter";
+ return "normal";
} else {
const Util::EnumData<Inkscape::Filters::FilterBlendMode> *d = _blend.get_active_data();
- if (d)
+ if (d) {
return _blend.get_active_data()->key;
- else
- return "filter";
+ } else
+ return "normal";
}
}
index e4e6796f4b3c96227d1fb526364bed147e14aa3c..7f2a980c3d490e04a93d0ba42fc24b9f9853c21d 100644 (file)
void set_blur_sensitive(const bool);
private:
+ int _flags;
Gtk::HBox _hb_blend;
Gtk::VBox _vb_blur;
Gtk::Label _lb_blend, _lb_blur;