Fix Dialog

This commit is contained in:
daleclack 2021-06-28 16:21:28 +08:00
parent 8613e54c0e
commit 441b2c1742
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
cd build_mingw
mingw32-make
gtk85
My_GtkUi

View File

@ -92,7 +92,7 @@ void MyWin::back_dialog(){
void MyWin::change_background(int response){
Glib::ustring filename;
if(response==Gtk::RESPONSE_OK){
if(response==Gtk::RESPONSE_ACCEPT){
filename=dialog->get_filename();
//Default background
Glib::RefPtr<Gdk::Pixbuf> pixbuf=Gdk::Pixbuf::create_from_file(filename.c_str());