gtk: Implement message box APIs
This commit is contained in:
parent
8fca1f52d3
commit
b98cdf71c4
2 changed files with 132 additions and 9 deletions
|
@ -34,7 +34,7 @@ class FileChooserDialog {
|
|||
const std::string& title,
|
||||
const base::FilePath& default_path,
|
||||
const Filters& filters)
|
||||
: dialog_scope_(new atom::NativeWindow::DialogScope(parent_window)) {
|
||||
: dialog_scope_(parent_window) {
|
||||
const char* confirm_text = GTK_STOCK_OK;
|
||||
if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
confirm_text = GTK_STOCK_SAVE;
|
||||
|
@ -131,13 +131,13 @@ class FileChooserDialog {
|
|||
private:
|
||||
void AddFilters(const Filters& filters);
|
||||
|
||||
atom::NativeWindow::DialogScope dialog_scope_;
|
||||
|
||||
GtkWidget* dialog_;
|
||||
|
||||
SaveDialogCallback save_callback_;
|
||||
OpenDialogCallback open_callback_;
|
||||
|
||||
scoped_ptr<atom::NativeWindow::DialogScope> dialog_scope_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(FileChooserDialog);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue