fixed bug: the key for every entry was set to ">="

This commit is contained in:
fgerlits 2005-07-01 10:30:10 +00:00
parent ba8ed9f566
commit 009c6902e1

View file

@ -22,7 +22,7 @@
Author : $Author: fgerlits $ Author : $Author: fgerlits $
Version : $Revision: 1.2 $ Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/src/OperatorComboBoxText.cxx,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/src/OperatorComboBoxText.cxx,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -62,20 +62,20 @@ OperatorComboBoxText :: OperatorComboBoxText(
: ComboBoxText(leftImage, centerImage, rightImage), : ComboBoxText(leftImage, centerImage, rightImage),
LocalizedObject(bundle) LocalizedObject(bundle)
{ {
Ptr<Glib::ustring>::Ref searchOperator(new Glib::ustring("partial")); Ptr<Glib::ustring>::Ref partialOperator(new Glib::ustring("partial"));
appendPair(getResourceUstring("partialOperatorDisplay"), searchOperator); appendPair(getResourceUstring("partialOperatorDisplay"), partialOperator);
*searchOperator = "prefix"; Ptr<Glib::ustring>::Ref prefixOperator(new Glib::ustring("prefix"));
appendPair(getResourceUstring("prefixOperatorDisplay"), searchOperator); appendPair(getResourceUstring("prefixOperatorDisplay"), prefixOperator);
*searchOperator = "="; Ptr<Glib::ustring>::Ref equalsOperator(new Glib::ustring("="));
appendPair(getResourceUstring("=OperatorDisplay"), searchOperator); appendPair(getResourceUstring("=OperatorDisplay"), equalsOperator);
*searchOperator = "<="; Ptr<Glib::ustring>::Ref lessOrEqualOperator(new Glib::ustring("<="));
appendPair(getResourceUstring("<=OperatorDisplay"), searchOperator); appendPair(getResourceUstring("<=OperatorDisplay"), lessOrEqualOperator);
*searchOperator = ">="; Ptr<Glib::ustring>::Ref greaterOrEqualOperator(new Glib::ustring(">="));
appendPair(getResourceUstring(">=OperatorDisplay"), searchOperator); appendPair(getResourceUstring(">=OperatorDisplay"), greaterOrEqualOperator);
set_active(0); // select the first item set_active(0); // select the first item
} }