[gtk/matthiasc/for-master: 2/2] Make gtk_im_modules_init properly private




commit 41abda9f03f239ea76e0383b5e1b512f2176f358
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 17 15:25:42 2021 -0500

    Make gtk_im_modules_init properly private
    
    Putting non-exported symbols in public headers can
    only lead to confusion and day drinking. Don't do it.
    
    Fixes: #3676

 gtk/gtkimmodule.h        | 2 --
 gtk/gtkimmoduleprivate.h | 2 ++
 gtk/gtkmain.c            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkimmodule.h b/gtk/gtkimmodule.h
index 913542aef9..d70772b219 100644
--- a/gtk/gtkimmodule.h
+++ b/gtk/gtkimmodule.h
@@ -22,8 +22,6 @@
 
 G_BEGIN_DECLS
 
-void          gtk_im_modules_init (void);
-
 #define GTK_IM_MODULE_EXTENSION_POINT_NAME "gtk-im-module"
 
 G_END_DECLS
diff --git a/gtk/gtkimmoduleprivate.h b/gtk/gtkimmoduleprivate.h
index 3619ebaacf..cd4361c414 100644
--- a/gtk/gtkimmoduleprivate.h
+++ b/gtk/gtkimmoduleprivate.h
@@ -24,6 +24,8 @@
 
 G_BEGIN_DECLS
 
+void          gtk_im_modules_init (void);
+
 void           gtk_im_module_ensure_extension_point  (void);
 GtkIMContext * _gtk_im_module_create                 (const char *context_id);
 const char   * _gtk_im_module_get_default_context_id (GdkDisplay *display);
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 498b4ec8d4..4ad1802b70 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -129,7 +129,7 @@
 #include "gtkwindowprivate.h"
 #include "gtkwindowgroup.h"
 #include "gtkprintbackendprivate.h"
-#include "gtkimmodule.h"
+#include "gtkimmoduleprivate.h"
 #include "gtkroot.h"
 #include "gtknative.h"
 #include "gtkpopcountprivate.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]