[gtranslator: 18/20] actions-file: Use explicit type instead of pointer
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 18/20] actions-file: Use explicit type instead of pointer
- Date: Sun, 6 Mar 2022 12:34:49 +0000 (UTC)
commit ad8a21131b0d79831f041ea8cd09cd8aaa4a9712
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sat Mar 5 18:19:58 2022 +0100
actions-file: Use explicit type instead of pointer
plugins/alternate-language/gtr-alternate-language-panel.c | 4 ++--
src/gtr-actions-file.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c
b/plugins/alternate-language/gtr-alternate-language-panel.c
index 91464a87..55d063bd 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -185,7 +185,7 @@ open_file (GtkWidget *dialog, GtrAlternateLangPanel *panel)
static void
-gtr_file_chooser_analyse (gpointer dialog, GtrAlternateLangPanel * panel)
+gtr_file_chooser_analyse (GtkNativeDialog * dialog, GtrAlternateLangPanel * panel)
{
gint reply;
@@ -241,7 +241,7 @@ open_button_clicked_cb (GtkWidget * open_button,
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), TRUE);
- gtr_file_chooser_analyse ((gpointer) dialog, panel);
+ gtr_file_chooser_analyse (GTK_NATIVE_DIALOG (dialog), panel);
}
static void
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index 5a4f3dcc..0d3f86f5 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -182,7 +182,7 @@ gtr_po_parse_files_from_dialog (GtkNativeDialog * dialog, GtrWindow * window)
static void
-gtr_file_chooser_analyse (gpointer dialog,
+gtr_file_chooser_analyse (GtkNativeDialog * dialog,
FileselMode mode, GtrWindow * window)
{
gint reply;
@@ -191,7 +191,7 @@ gtr_file_chooser_analyse (gpointer dialog,
if (reply == GTK_RESPONSE_ACCEPT && mode == FILESEL_OPEN)
gtr_po_parse_files_from_dialog (GTK_NATIVE_DIALOG (dialog), window);
- g_object_unref (dialog);
+ gtk_native_dialog_destroy (dialog);
}
gboolean
@@ -263,7 +263,7 @@ gtr_open_file_dialog (GtkAction * action, GtrWindow * window)
_("Open file for translation"),
_gtr_application_get_last_dir (GTR_APP));
- gtr_file_chooser_analyse ((gpointer) dialog, FILESEL_OPEN, window);
+ gtr_file_chooser_analyse (GTK_NATIVE_DIALOG (dialog), FILESEL_OPEN, window);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]