REPLACE : addition done

This commit is contained in:
2011-08-24 12:13:57 +02:00
parent 643f2e38b3
commit fd13467832
5 changed files with 21 additions and 16 deletions

View File

@@ -192,15 +192,15 @@ void Search::Display(GtkWindow *parent)
} else {
gtk_widget_set_sensitive(m_CkMatchCase, true);
}
Edn::String myDataString;
SearchData::GetSearch(myDataString);
// Remove data form the search
Edn::String myDataString = "";
SearchData::SetSearch(myDataString);
gtk_entry_set_text(GTK_ENTRY(m_searchEntry), myDataString.c_str());
if (0 == strlen(myDataString.c_str())) {
//if (0 == strlen(myDataString.c_str())) {
m_haveSearchData = false;
} else {
m_haveSearchData = true;
}
//} else {
// m_haveSearchData = true;
//}
SearchData::GetReplace(myDataString);
gtk_entry_set_text(GTK_ENTRY(m_replaceEntry), myDataString.c_str());
@@ -220,6 +220,10 @@ void Search::Display(GtkWindow *parent)
gtk_widget_set_sensitive(m_BtReplaceAndNext, m_haveReplaceData);
}
// set focus on a specific widget :
gtk_window_set_focus(parent, m_searchEntry);
// display the dialogue box
gtk_widget_show_all(m_localDialog);