[gtranslator: 2/9] gtr_file_chooser_new: Natives are not widgets
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 2/9] gtr_file_chooser_new: Natives are not widgets
- Date: Fri, 18 Mar 2022 09:37:22 +0000 (UTC)
commit c69a5425008eabdeddf5411580a50d27aac3f242
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sun Mar 6 16:35:34 2022 +0100
gtr_file_chooser_new: Natives are not widgets
Use the correct type.
plugins/alternate-language/gtr-alternate-language-panel.c | 2 +-
src/gtr-actions-file.c | 2 +-
src/gtr-file-dialogs.c | 4 ++--
src/gtr-file-dialogs.h | 6 +++---
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c
b/plugins/alternate-language/gtr-alternate-language-panel.c
index f262b7a6..844d75aa 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -210,7 +210,7 @@ static void
open_button_clicked_cb (GtkWidget * open_button,
GtrAlternateLangPanel * panel)
{
- GtkWidget *dialog = NULL;
+ GtkNativeDialog *dialog;
gchar *dir;
GtrPo *tab_po;
GFile *location, *parent;
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index 29b3fe24..01f67120 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -251,7 +251,7 @@ gtr_want_to_save_current_dialog (GtrWindow * window)
void
gtr_open_file_dialog (GtrWindow * window)
{
- GtkWidget *dialog = NULL;
+ GtkNativeDialog *dialog;
g_autoptr (GList) list = NULL;
list = get_modified_documents (window);
if (list != NULL)
diff --git a/src/gtr-file-dialogs.c b/src/gtr-file-dialogs.c
index f42a159c..8229b56c 100644
--- a/src/gtr-file-dialogs.c
+++ b/src/gtr-file-dialogs.c
@@ -28,7 +28,7 @@
/*
* File chooser dialog
*/
-GtkWidget *
+GtkNativeDialog *
gtr_file_chooser_new (GtkWindow * parent,
FileselMode mode,
const gchar * title, const gchar * dir)
@@ -75,5 +75,5 @@ gtr_file_chooser_new (GtkWindow * parent,
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
}
- return GTK_WIDGET (dialog);
+ return GTK_NATIVE_DIALOG (dialog);
}
diff --git a/src/gtr-file-dialogs.h b/src/gtr-file-dialogs.h
index e9f5ac38..ac34091d 100644
--- a/src/gtr-file-dialogs.h
+++ b/src/gtr-file-dialogs.h
@@ -29,8 +29,8 @@ typedef enum
FILESEL_SAVE
} FileselMode;
-GtkWidget *gtr_file_chooser_new (GtkWindow * parent,
- FileselMode mode,
- const gchar * title, const gchar * dir);
+GtkNativeDialog *gtr_file_chooser_new (GtkWindow * parent,
+ FileselMode mode,
+ const gchar * title, const gchar * dir);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]