mirror of https://github.com/daleclack/My_GtkUi
Fix Dialog
This commit is contained in:
parent
8613e54c0e
commit
441b2c1742
|
@ -1,3 +1,3 @@
|
||||||
cd build_mingw
|
cd build_mingw
|
||||||
mingw32-make
|
mingw32-make
|
||||||
gtk85
|
My_GtkUi
|
||||||
|
|
|
@ -92,7 +92,7 @@ void MyWin::back_dialog(){
|
||||||
|
|
||||||
void MyWin::change_background(int response){
|
void MyWin::change_background(int response){
|
||||||
Glib::ustring filename;
|
Glib::ustring filename;
|
||||||
if(response==Gtk::RESPONSE_OK){
|
if(response==Gtk::RESPONSE_ACCEPT){
|
||||||
filename=dialog->get_filename();
|
filename=dialog->get_filename();
|
||||||
//Default background
|
//Default background
|
||||||
Glib::RefPtr<Gdk::Pixbuf> pixbuf=Gdk::Pixbuf::create_from_file(filename.c_str());
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf=Gdk::Pixbuf::create_from_file(filename.c_str());
|
||||||
|
|
Loading…
Reference in New Issue