Rename gtkbookmarkmanager.h to gtkbookmarksmanagerprivate.h
authorTimm Bäder <mail@baedert.org>
Tue, 10 Sep 2019 11:11:03 +0000 (13:11 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 11 Sep 2019 06:12:31 +0000 (08:12 +0200)
It's a private type, so gets a private header file name.

gtk/gtkbookmarksmanager.c
gtk/gtkbookmarksmanager.h [deleted file]
gtk/gtkbookmarksmanagerprivate.h [new file with mode: 0644]
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserprivate.h
gtk/gtkfilechooserwidget.c
gtk/gtkplacessidebar.c

index 1acbe16d39c910025637acf0b9826e288dcd7845..87f1f708a79e872e39f2ba24426ecd5684bac845 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <glib/gi18n-lib.h>
 
-#include "gtkbookmarksmanager.h"
+#include "gtkbookmarksmanagerprivate.h"
 #include "gtkfilechooser.h" /* for the GError types */
 
 static void
diff --git a/gtk/gtkbookmarksmanager.h b/gtk/gtkbookmarksmanager.h
deleted file mode 100644 (file)
index b876511..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
-/* GTK - The GIMP Toolkit
- * gtkbookmarksmanager.h: Utilities to manage and monitor ~/.gtk-bookmarks
- * Copyright (C) 2003, Red Hat, Inc.
- * Copyright (C) 2007-2008 Carlos Garnacho
- * Copyright (C) 2011 Suse
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
- *
- * Authors: Federico Mena Quintero <federico@gnome.org>
- */
-
-#ifndef __GTK_BOOKMARKS_MANAGER_H__
-#define __GTK_BOOKMARKS_MANAGER_H__
-
-#include <gio/gio.h>
-
-typedef void (* GtkBookmarksChangedFunc) (gpointer data);
-
-typedef struct
-{
-  /* This list contains GtkBookmark structs */
-  GSList *bookmarks;
-
-  GFileMonitor *bookmarks_monitor;
-  gulong bookmarks_monitor_changed_id;
-
-  gpointer changed_func_data;
-  GtkBookmarksChangedFunc changed_func;
-} GtkBookmarksManager;
-
-typedef struct
-{
-  GFile *file;
-  gchar *label;
-} GtkBookmark;
-
-GtkBookmarksManager *_gtk_bookmarks_manager_new (GtkBookmarksChangedFunc changed_func,
-                                                gpointer                changed_func_data);
-
-
-void _gtk_bookmarks_manager_free (GtkBookmarksManager *manager);
-
-GSList *_gtk_bookmarks_manager_list_bookmarks (GtkBookmarksManager *manager);
-
-gboolean _gtk_bookmarks_manager_insert_bookmark (GtkBookmarksManager *manager,
-                                                GFile               *file,
-                                                gint                 position,
-                                                GError             **error);
-
-gboolean _gtk_bookmarks_manager_remove_bookmark (GtkBookmarksManager *manager,
-                                                GFile               *file,
-                                                GError             **error);
-
-gboolean _gtk_bookmarks_manager_reorder_bookmark (GtkBookmarksManager *manager,
-                                                 GFile               *file,
-                                                 gint                 new_position,
-                                                 GError             **error);
-
-gboolean _gtk_bookmarks_manager_has_bookmark (GtkBookmarksManager *manager,
-                                              GFile               *file);
-
-gchar * _gtk_bookmarks_manager_get_bookmark_label (GtkBookmarksManager *manager,
-                                                  GFile               *file);
-
-gboolean _gtk_bookmarks_manager_set_bookmark_label (GtkBookmarksManager *manager,
-                                                   GFile               *file,
-                                                   const gchar         *label,
-                                                   GError             **error);
-
-gboolean _gtk_bookmarks_manager_get_is_builtin (GtkBookmarksManager *manager,
-                                                GFile               *file);
-
-gboolean _gtk_bookmarks_manager_get_is_xdg_dir_builtin (GUserDirectory xdg_type);
-
-#endif /* __GTK_BOOKMARKS_MANAGER_H__ */
diff --git a/gtk/gtkbookmarksmanagerprivate.h b/gtk/gtkbookmarksmanagerprivate.h
new file mode 100644 (file)
index 0000000..b876511
--- /dev/null
@@ -0,0 +1,87 @@
+/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
+/* GTK - The GIMP Toolkit
+ * gtkbookmarksmanager.h: Utilities to manage and monitor ~/.gtk-bookmarks
+ * Copyright (C) 2003, Red Hat, Inc.
+ * Copyright (C) 2007-2008 Carlos Garnacho
+ * Copyright (C) 2011 Suse
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Federico Mena Quintero <federico@gnome.org>
+ */
+
+#ifndef __GTK_BOOKMARKS_MANAGER_H__
+#define __GTK_BOOKMARKS_MANAGER_H__
+
+#include <gio/gio.h>
+
+typedef void (* GtkBookmarksChangedFunc) (gpointer data);
+
+typedef struct
+{
+  /* This list contains GtkBookmark structs */
+  GSList *bookmarks;
+
+  GFileMonitor *bookmarks_monitor;
+  gulong bookmarks_monitor_changed_id;
+
+  gpointer changed_func_data;
+  GtkBookmarksChangedFunc changed_func;
+} GtkBookmarksManager;
+
+typedef struct
+{
+  GFile *file;
+  gchar *label;
+} GtkBookmark;
+
+GtkBookmarksManager *_gtk_bookmarks_manager_new (GtkBookmarksChangedFunc changed_func,
+                                                gpointer                changed_func_data);
+
+
+void _gtk_bookmarks_manager_free (GtkBookmarksManager *manager);
+
+GSList *_gtk_bookmarks_manager_list_bookmarks (GtkBookmarksManager *manager);
+
+gboolean _gtk_bookmarks_manager_insert_bookmark (GtkBookmarksManager *manager,
+                                                GFile               *file,
+                                                gint                 position,
+                                                GError             **error);
+
+gboolean _gtk_bookmarks_manager_remove_bookmark (GtkBookmarksManager *manager,
+                                                GFile               *file,
+                                                GError             **error);
+
+gboolean _gtk_bookmarks_manager_reorder_bookmark (GtkBookmarksManager *manager,
+                                                 GFile               *file,
+                                                 gint                 new_position,
+                                                 GError             **error);
+
+gboolean _gtk_bookmarks_manager_has_bookmark (GtkBookmarksManager *manager,
+                                              GFile               *file);
+
+gchar * _gtk_bookmarks_manager_get_bookmark_label (GtkBookmarksManager *manager,
+                                                  GFile               *file);
+
+gboolean _gtk_bookmarks_manager_set_bookmark_label (GtkBookmarksManager *manager,
+                                                   GFile               *file,
+                                                   const gchar         *label,
+                                                   GError             **error);
+
+gboolean _gtk_bookmarks_manager_get_is_builtin (GtkBookmarksManager *manager,
+                                                GFile               *file);
+
+gboolean _gtk_bookmarks_manager_get_is_xdg_dir_builtin (GUserDirectory xdg_type);
+
+#endif /* __GTK_BOOKMARKS_MANAGER_H__ */
index 2197e39615feb5d7ba79f33b1e351fad4cb510a9..79bc9801b393410fd7ad5ba773b47ee1cfb114ac 100644 (file)
@@ -30,6 +30,7 @@
 #include <cairo-gobject.h>
 
 #include "gtkintl.h"
+#include "gtkbookmarksmanagerprivate.h"
 #include "gtkbutton.h"
 #include "gtkcelllayout.h"
 #include "gtkcellrenderertext.h"
index 6379e0ab60f9cea1b4297271b832cf1c2e8aba65..fab92fc243b2fc1d4211b951a5d9e9ea0a966ed3 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef __GTK_FILE_CHOOSER_PRIVATE_H__
 #define __GTK_FILE_CHOOSER_PRIVATE_H__
 
-#include "gtkbookmarksmanager.h"
 #include "gtkfilechooser.h"
 #include "gtkfilesystem.h"
 #include "gtkfilesystemmodel.h"
index b229972dad5ec2b02086b46762cd141d26a64d24..ea3c0e217ee50125a6a30f5837f31f1fef95e5e1 100644 (file)
@@ -22,6 +22,7 @@
 #include "gtkfilechooserwidget.h"
 #include "gtkfilechooserwidgetprivate.h"
 
+#include "gtkbookmarksmanagerprivate.h"
 #include "gtkbindings.h"
 #include "gtkbutton.h"
 #include "gtkcelllayout.h"
index 64514f55770ffeadb83c5409827cb4d1026b8469..6b70746b77b092afde9410e1a8eb19c93e452b43 100644 (file)
@@ -33,7 +33,7 @@
 #include "gtkplacessidebarprivate.h"
 #include "gtksidebarrowprivate.h"
 #include "gdk/gdkkeysyms.h"
-#include "gtkbookmarksmanager.h"
+#include "gtkbookmarksmanagerprivate.h"
 #include "gtkcelllayout.h"
 #include "gtkfilesystem.h"
 #include "gtkicontheme.h"