[gtranslator: 11/20] actions-file: Native dialogs are not widgets
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 11/20] actions-file: Native dialogs are not widgets
- Date: Sun, 6 Mar 2022 12:34:49 +0000 (UTC)
commit 3df856562170d2340b3269132c6838b43e886ca2
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sat Mar 5 14:40:54 2022 +0100
actions-file: Native dialogs are not widgets
src/gtr-actions-file.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index fd1a1f46..d3df91ed 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -137,7 +137,7 @@ gtr_open (GFile * location, GtrWindow * window, GError ** error)
}
static void
-gtr_po_parse_files_from_dialog (GtkWidget * dialog, GtrWindow * window)
+gtr_po_parse_files_from_dialog (GtkNativeDialog * dialog, GtrWindow * window)
{
GSList *po_files, *l;
GSList *locations = NULL;
@@ -177,7 +177,7 @@ gtr_po_parse_files_from_dialog (GtkWidget * dialog, GtrWindow * window)
/*
* Destroy the dialog
*/
- gtk_widget_destroy (dialog);
+ gtk_native_dialog_destroy (dialog);
}
@@ -189,7 +189,7 @@ gtr_file_chooser_analyse (gpointer dialog,
reply = gtk_native_dialog_run (GTK_NATIVE_DIALOG (dialog));
if (reply == GTK_RESPONSE_ACCEPT && mode == FILESEL_OPEN)
- gtr_po_parse_files_from_dialog (GTK_WIDGET (dialog), window);
+ gtr_po_parse_files_from_dialog (GTK_NATIVE_DIALOG (dialog), window);
g_object_unref (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]