Replace gtk_widget_hide_all with gtk_widget_hide
gtk_widget_hide_all was deprecated in gtk+ 2.24 and was removed entirely in recent versions. This is a pretty straight forward replacement.
This commit is contained in:
parent
064af6ecb2
commit
c29b844a97
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ class FileChooserDialog {
|
|||
};
|
||||
|
||||
void FileChooserDialog::OnFileDialogResponse(GtkWidget* widget, int response) {
|
||||
gtk_widget_hide_all(dialog_);
|
||||
gtk_widget_hide(dialog_);
|
||||
|
||||
if (!save_callback_.is_null()) {
|
||||
if (response == GTK_RESPONSE_ACCEPT)
|
||||
|
|
|
@ -149,7 +149,7 @@ class GtkMessageBox {
|
|||
};
|
||||
|
||||
void GtkMessageBox::OnResponseDialog(GtkWidget* widget, int response) {
|
||||
gtk_widget_hide_all(dialog_);
|
||||
gtk_widget_hide(dialog_);
|
||||
|
||||
if (response < 0)
|
||||
callback_.Run(cancel_id_);
|
||||
|
|
Loading…
Reference in a new issue