Browse Source

Got rid of double dialog.set_position calls in dialogs.cc

merge-requests/365/head
eidheim 10 years ago
parent
commit
7546e9658e
  1. 2
      src/dialogs.cc

2
src/dialogs.cc

@ -50,8 +50,6 @@ std::string Dialog::gtk_dialog(const boost::filesystem::path &path, const std::s
gtk_file_chooser_set_current_folder(reinterpret_cast<GtkFileChooser*>(dialog.gobj()), current_path.string().c_str()); gtk_file_chooser_set_current_folder(reinterpret_cast<GtkFileChooser*>(dialog.gobj()), current_path.string().c_str());
} }
dialog.set_position(Gtk::WindowPosition::WIN_POS_CENTER_ON_PARENT);
for (auto &button : buttons) for (auto &button : buttons)
dialog.add_button(button.first, button.second); dialog.add_button(button.first, button.second);
return dialog.run() == Gtk::RESPONSE_OK ? dialog.get_filename() : ""; return dialog.run() == Gtk::RESPONSE_OK ? dialog.get_filename() : "";

Loading…
Cancel
Save