[gedit] File choosers: create the GeditFileChooserOpenNative
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] File choosers: create the GeditFileChooserOpenNative
- Date: Sat, 13 Jun 2020 21:05:27 +0000 (UTC)
commit 9c323c312ce5534970e3c2e7e30b9640ece009c8
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jun 11 23:40:21 2020 +0200
File choosers: create the GeditFileChooserOpenNative
gedit/gedit-file-chooser-open-native.c | 2 +-
gedit/gedit-file-chooser-open-native.h | 4 ++--
gedit/gedit-file-chooser-open.c | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-file-chooser-open-native.c b/gedit/gedit-file-chooser-open-native.c
index b98b6656f..7a5a09cbb 100644
--- a/gedit/gedit-file-chooser-open-native.c
+++ b/gedit/gedit-file-chooser-open-native.c
@@ -74,7 +74,7 @@ _gedit_file_chooser_open_native_init (GeditFileChooserOpenNative *chooser)
chooser->priv = _gedit_file_chooser_open_native_get_instance_private (chooser);
}
-GeditFileChooserOpenNative *
+GeditFileChooserOpen *
_gedit_file_chooser_open_native_new (void)
{
return g_object_new (GEDIT_TYPE_FILE_CHOOSER_OPEN_NATIVE, NULL);
diff --git a/gedit/gedit-file-chooser-open-native.h b/gedit/gedit-file-chooser-open-native.h
index fbfeaeb56..5cac81d9c 100644
--- a/gedit/gedit-file-chooser-open-native.h
+++ b/gedit/gedit-file-chooser-open-native.h
@@ -48,10 +48,10 @@ struct _GeditFileChooserOpenNativeClass
};
G_GNUC_INTERNAL
-GType _gedit_file_chooser_open_native_get_type (void);
+GType _gedit_file_chooser_open_native_get_type (void);
G_GNUC_INTERNAL
-GeditFileChooserOpenNative * _gedit_file_chooser_open_native_new (void);
+GeditFileChooserOpen * _gedit_file_chooser_open_native_new (void);
G_END_DECLS
diff --git a/gedit/gedit-file-chooser-open.c b/gedit/gedit-file-chooser-open.c
index 7e39cb867..bb1ffb364 100644
--- a/gedit/gedit-file-chooser-open.c
+++ b/gedit/gedit-file-chooser-open.c
@@ -18,6 +18,7 @@
*/
#include "gedit-file-chooser-open.h"
+#include "gedit-file-chooser-open-native.h"
struct _GeditFileChooserOpenPrivate
{
@@ -87,7 +88,7 @@ _gedit_file_chooser_open_init (GeditFileChooserOpen *chooser)
GeditFileChooserOpen *
_gedit_file_chooser_open_new (void)
{
- return g_object_new (GEDIT_TYPE_FILE_CHOOSER_OPEN, NULL);
+ return _gedit_file_chooser_open_native_new ();
}
GSList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]