[libdazzle] prefs: make various private API public



commit 08b5be94a7f357317f720f739cd4149565660663
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 6 01:21:29 2017 -0700

    prefs: make various private API public
    
    We need this to implement DzlPreferences outside of libdazzle.

 src/prefs/dzl-preferences-bin.c           |    2 +-
 src/prefs/dzl-preferences-group-private.h |    5 -----
 src/prefs/dzl-preferences-group.c         |    8 ++++----
 src/prefs/dzl-preferences-group.h         |    7 +++++++
 src/prefs/dzl-preferences-page-private.h  |    3 ---
 src/prefs/dzl-preferences-page.c          |   12 ++++++------
 src/prefs/dzl-preferences-page.h          |    2 ++
 7 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/src/prefs/dzl-preferences-bin.c b/src/prefs/dzl-preferences-bin.c
index fad3a15..1e84bcb 100644
--- a/src/prefs/dzl-preferences-bin.c
+++ b/src/prefs/dzl-preferences-bin.c
@@ -100,7 +100,7 @@ validate:
 
 static void
 dzl_preferences_bin_evict_settings (gpointer  data,
-                                          GObject  *where_object_was)
+                                    GObject  *where_object_was)
 {
   g_assert (data != NULL);
   g_assert (where_object_was != NULL);
diff --git a/src/prefs/dzl-preferences-group-private.h b/src/prefs/dzl-preferences-group-private.h
index f86dde4..32d2137 100644
--- a/src/prefs/dzl-preferences-group-private.h
+++ b/src/prefs/dzl-preferences-group-private.h
@@ -42,11 +42,6 @@ struct _DzlPreferencesGroup
   guint          last_focused_tab_backward : 1;
 };
 
-void  _dzl_preferences_group_set_map  (DzlPreferencesGroup *self,
-                                       GHashTable          *map);
-guint _dzl_preferences_group_refilter (DzlPreferencesGroup *self,
-                                       DzlPatternSpec      *spec);
-
 G_END_DECLS
 
 #endif /* DZL_PREFERENCES_GROUP_PRIVATE_H */
diff --git a/src/prefs/dzl-preferences-group.c b/src/prefs/dzl-preferences-group.c
index 959cc92..e2963a2 100644
--- a/src/prefs/dzl-preferences-group.c
+++ b/src/prefs/dzl-preferences-group.c
@@ -370,8 +370,8 @@ dzl_preferences_group_add (DzlPreferencesGroup *self,
 }
 
 void
-_dzl_preferences_group_set_map (DzlPreferencesGroup *self,
-                                GHashTable          *map)
+dzl_preferences_group_set_map (DzlPreferencesGroup *self,
+                               GHashTable          *map)
 {
   guint i;
 
@@ -415,8 +415,8 @@ dzl_preferences_group_refilter_cb (GtkWidget *widget,
 }
 
 guint
-_dzl_preferences_group_refilter (DzlPreferencesGroup *self,
-                                 DzlPatternSpec      *spec)
+dzl_preferences_group_refilter (DzlPreferencesGroup *self,
+                                DzlPatternSpec      *spec)
 {
   struct {
     DzlPatternSpec *spec;
diff --git a/src/prefs/dzl-preferences-group.h b/src/prefs/dzl-preferences-group.h
index 2c0debf..0c14624 100644
--- a/src/prefs/dzl-preferences-group.h
+++ b/src/prefs/dzl-preferences-group.h
@@ -21,6 +21,8 @@
 
 #include <gtk/gtk.h>
 
+#include "search/dzl-pattern-spec.h"
+
 G_BEGIN_DECLS
 
 #define DZL_TYPE_PREFERENCES_GROUP (dzl_preferences_group_get_type())
@@ -31,6 +33,11 @@ void         dzl_preferences_group_add          (DzlPreferencesGroup *self,
                                                  GtkWidget           *widget);
 const gchar *dzl_preferences_group_get_title    (DzlPreferencesGroup *self);
 gint         dzl_preferences_group_get_priority (DzlPreferencesGroup *self);
+void         dzl_preferences_group_set_map      (DzlPreferencesGroup *self,
+                                                 GHashTable          *map);
+guint        dzl_preferences_group_refilter     (DzlPreferencesGroup *self,
+                                                 DzlPatternSpec      *spec);
+
 
 G_END_DECLS
 
diff --git a/src/prefs/dzl-preferences-page-private.h b/src/prefs/dzl-preferences-page-private.h
index 4ce32d5..3866cc7 100644
--- a/src/prefs/dzl-preferences-page-private.h
+++ b/src/prefs/dzl-preferences-page-private.h
@@ -32,9 +32,6 @@ struct _DzlPreferencesPage
   GHashTable            *groups_by_name;
 };
 
-void _dzl_preferences_page_set_map  (DzlPreferencesPage *self,
-                                     GHashTable         *map);
-
 G_END_DECLS
 
 #endif /* DZL_PREFERENCES_PAGE_PRIVATE_H */
diff --git a/src/prefs/dzl-preferences-page.c b/src/prefs/dzl-preferences-page.c
index d0e15b3..3c08faf 100644
--- a/src/prefs/dzl-preferences-page.c
+++ b/src/prefs/dzl-preferences-page.c
@@ -154,8 +154,8 @@ dzl_preferences_page_get_group (DzlPreferencesPage *self,
 }
 
 void
-_dzl_preferences_page_set_map (DzlPreferencesPage *self,
-                               GHashTable         *map)
+dzl_preferences_page_set_map (DzlPreferencesPage *self,
+                              GHashTable         *map)
 {
   DzlPreferencesGroup *group;
   GHashTableIter iter;
@@ -165,12 +165,12 @@ _dzl_preferences_page_set_map (DzlPreferencesPage *self,
   g_hash_table_iter_init (&iter, self->groups_by_name);
 
   while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&group))
-    _dzl_preferences_group_set_map (group, map);
+    dzl_preferences_group_set_map (group, map);
 }
 
 void
-_dzl_preferences_page_refilter (DzlPreferencesPage *self,
-                                DzlPatternSpec     *spec)
+dzl_preferences_page_refilter (DzlPreferencesPage *self,
+                               DzlPatternSpec     *spec)
 {
   DzlPreferencesGroup *group;
   GHashTableIter iter;
@@ -180,6 +180,6 @@ _dzl_preferences_page_refilter (DzlPreferencesPage *self,
 
   g_hash_table_iter_init (&iter, self->groups_by_name);
   while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&group))
-    count += _dzl_preferences_group_refilter (group, spec);
+    count += dzl_preferences_group_refilter (group, spec);
   gtk_widget_set_visible (GTK_WIDGET (self), count > 0);
 }
diff --git a/src/prefs/dzl-preferences-page.h b/src/prefs/dzl-preferences-page.h
index deb1149..13c490a 100644
--- a/src/prefs/dzl-preferences-page.h
+++ b/src/prefs/dzl-preferences-page.h
@@ -36,6 +36,8 @@ DzlPreferencesGroup *dzl_preferences_page_get_group (DzlPreferencesPage  *self,
                                                      const gchar         *group_name);
 void                 dzl_preferences_page_refilter  (DzlPreferencesPage  *self,
                                                      DzlPatternSpec      *spec);
+void                 dzl_preferences_page_set_map   (DzlPreferencesPage  *self,
+                                                     GHashTable          *map);
 
 G_END_DECLS
 


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