Update gtk94

This commit is contained in:
daleclack 2021-07-12 15:53:45 +08:00
parent 996384ddd4
commit ab2c354bfe
1 changed files with 6 additions and 1 deletions

View File

@ -57,7 +57,12 @@ void MyWin::buffer1_changed(){
void MyWin::btncopy_clicked(){
//Get Text
Glib::ustring text;
Gtk::TextBuffer::iterator start,end;
if(buffer1->get_selection_bounds(start,end)){
text=buffer1->get_text(start,end);
}else{
text=buffer1->get_text();
}
//Get Clipboard and set text
auto refClipboard=Gtk::Clipboard::get();