[totem/wip/hadess/remove-totem-interface: 2/3] main: Make totem_interface_load_with_full_path() private




commit ffb2754a8d199de5476d95e65315be82b5a347c2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 11 14:48:40 2021 +0200

    main: Make totem_interface_load_with_full_path() private
    
    We'll probably eventually remove it.

 docs/reference/totem-sections.txt | 1 -
 src/totem-interface.c             | 8 ++++++--
 src/totem-interface.h             | 4 ----
 3 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index f92c6a043..a5000a91d 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -103,7 +103,6 @@ totem_interface_error_blocking
 <SUBSECTION Private>
 totem_interface_get_full_path
 totem_interface_load
-totem_interface_load_with_full_path
 </SECTION>
 
 <SECTION>
diff --git a/src/totem-interface.c b/src/totem-interface.c
index 241fbdc43..a60bf8fd4 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -46,6 +46,10 @@
 
 #include "totem-interface.h"
 
+static GtkBuilder *
+totem_interface_load_with_full_path (const char *filename, gboolean fatal,
+                                    GtkWindow *parent, gpointer user_data);
+
 static GtkWidget *
 totem_interface_error_dialog (const char *title, const char *reason,
                GtkWindow *parent)
@@ -156,7 +160,7 @@ totem_interface_load (const char *name, gboolean fatal, GtkWindow *parent, gpoin
        return builder;
 }
 
-/**
+/*
  * totem_interface_load_with_full_path:
  * @filename: the #GtkBuilder UI file path to load
  * @fatal: %TRUE if errors loading the file should be fatal, %FALSE otherwise
@@ -167,7 +171,7 @@ totem_interface_load (const char *name, gboolean fatal, GtkWindow *parent, gpoin
  *
  * Return value: (transfer full): the loaded #GtkBuilder object, or %NULL
  */
-GtkBuilder *
+static GtkBuilder *
 totem_interface_load_with_full_path (const char *filename, gboolean fatal, 
                                     GtkWindow *parent, gpointer user_data)
 {
diff --git a/src/totem-interface.h b/src/totem-interface.h
index 277261e80..85586e0ca 100644
--- a/src/totem-interface.h
+++ b/src/totem-interface.h
@@ -33,10 +33,6 @@ GtkBuilder   *totem_interface_load           (const char *name,
                                                 gboolean fatal,
                                                 GtkWindow *parent,
                                                 gpointer user_data);
-GtkBuilder      *totem_interface_load_with_full_path (const char *filename, 
-                                                     gboolean fatal, 
-                                                     GtkWindow *parent,
-                                                     gpointer user_data);
 void            totem_interface_error          (const char *title,
                                                 const char *reason,
                                                 GtkWindow *parent);


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