summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-05-09 14:59:31 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-05-09 14:59:31 +0000
commitd10032a9e7fc2cfdd40142c1563fe3f43d8de738 (patch)
tree0ed2985d5eaefbf3f02f82a7d2c07719b9f8c25e /src
parentAdd styling and options to hangle keyboard on LPE dialog (diff)
downloadinkscape-d10032a9e7fc2cfdd40142c1563fe3f43d8de738.tar.gz
inkscape-d10032a9e7fc2cfdd40142c1563fe3f43d8de738.zip
Remove unclear function
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/livepatheffect-add.cpp14
-rw-r--r--src/ui/dialog/livepatheffect-add.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp
index 1b99e9609..dc82a2ed0 100644
--- a/src/ui/dialog/livepatheffect-add.cpp
+++ b/src/ui/dialog/livepatheffect-add.cpp
@@ -187,7 +187,6 @@ LivePathEffectAdd::LivePathEffectAdd()
}
_LPESelectorFlowBox->set_activate_on_single_click(false);
_visiblelpe = _LPESelectorFlowBox->get_children().size();
- _firstlpe = 0;
_LPEInfo->set_visible(false);
_LPESelectorEffectEventFavShow->signal_enter_notify_event().connect(sigc::bind<GtkWidget *>(
sigc::mem_fun(*this, &LivePathEffectAdd::mouseover), GTK_WIDGET(_LPESelectorEffectEventFavShow->gobj())));
@@ -438,18 +437,12 @@ bool LivePathEffectAdd::on_filter(Gtk::FlowBoxChild *child)
}
if (_LPEFilter->get_text().length() < 1) {
_visiblelpe++;
- if(_firstlpe == 0){
- _firstlpe = child->get_index();
- }
return true;
}
if (lpename) {
size_t s = lpename->get_text().uppercase().find(_LPEFilter->get_text().uppercase(), 0);
if (s != -1) {
_visiblelpe++;
- if(_firstlpe == 0){
- _firstlpe = child->get_index();
- }
return true;
}
}
@@ -458,9 +451,6 @@ bool LivePathEffectAdd::on_filter(Gtk::FlowBoxChild *child)
size_t s = lpedesc->get_text().uppercase().find(_LPEFilter->get_text().uppercase(), 0);
if (s != -1) {
_visiblelpe++;
- if(_firstlpe == 0){
- _firstlpe = child->get_index();
- }
return true;
}
}
@@ -477,7 +467,6 @@ void LivePathEffectAdd::reload_effect_list()
_LPEExperimental->get_style_context()->remove_class("active");
} */
_visiblelpe = 0;
- _firstlpe = 0;
_LPESelectorFlowBox->invalidate_filter();
if (_showfavs) {
if (_visiblelpe == 0) {
@@ -499,7 +488,6 @@ void LivePathEffectAdd::reload_effect_list()
void LivePathEffectAdd::on_search()
{
_visiblelpe = 0;
- _firstlpe = 0;
_LPESelectorFlowBox->invalidate_filter();
if (_showfavs) {
if (_visiblelpe == 0) {
@@ -514,7 +502,6 @@ void LivePathEffectAdd::on_search()
}
_LPEInfo->set_visible(true);
_LPEInfo->get_style_context()->add_class("lpeinfowarn");
- _LPESelectorFlowBox->select_child(*_LPESelectorFlowBox->get_child_at_index(_firstlpe));
}
} else {
if (_visiblelpe == 0) {
@@ -524,7 +511,6 @@ void LivePathEffectAdd::on_search()
} else {
_LPEInfo->set_visible(false);
_LPEInfo->get_style_context()->remove_class("lpeinfowarn");
- _LPESelectorFlowBox->select_child(*_LPESelectorFlowBox->get_child_at_index(_firstlpe));
}
}
}
diff --git a/src/ui/dialog/livepatheffect-add.h b/src/ui/dialog/livepatheffect-add.h
index ceaa41eee..51945060d 100644
--- a/src/ui/dialog/livepatheffect-add.h
+++ b/src/ui/dialog/livepatheffect-add.h
@@ -106,7 +106,6 @@ private:
Gtk::Label *_LPEInfo;
Gtk::Box *_LPESelector;
guint _visiblelpe;
- guint _firstlpe;
Glib::ustring _item_type;
const LivePathEffect::EnumEffectData<LivePathEffect::EffectType> *_to_add;
bool _showfavs;