[gnome-builder/wip/gtk4-port: 732/1774] plugins/snippet: use gbp for plugin namespace




commit d5a89d2540f5cd9b5310e803bd63f05deb2523b7
Author: Christian Hergert <chergert redhat com>
Date:   Tue Apr 26 15:09:27 2022 -0700

    plugins/snippet: use gbp for plugin namespace

 ...ion-addin.c => gbp-snippet-application-addin.c} | 22 +++++++++++-----------
 ...ion-addin.h => gbp-snippet-application-addin.h} |  8 ++++----
 src/plugins/snippets/meson.build                   |  2 +-
 src/plugins/snippets/snippets-plugin.c             |  4 ++--
 4 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/src/plugins/snippets/ide-snippet-application-addin.c 
b/src/plugins/snippets/gbp-snippet-application-addin.c
similarity index 75%
rename from src/plugins/snippets/ide-snippet-application-addin.c
rename to src/plugins/snippets/gbp-snippet-application-addin.c
index e7cc72d30..a111902b1 100644
--- a/src/plugins/snippets/ide-snippet-application-addin.c
+++ b/src/plugins/snippets/gbp-snippet-application-addin.c
@@ -1,4 +1,4 @@
-/* ide-snippet-application-addin.c
+/* gbp-snippet-application-addin.c
  *
  * Copyright 2022 Günther Wagner <info gunibert de>
  *
@@ -18,31 +18,31 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
-#define G_LOG_DOMAIN "ide-snippet-application-addin"
+#define G_LOG_DOMAIN "gbp-snippet-application-addin"
 
 #include "config.h"
 
 #include <libide-gui.h>
 
-#include "ide-snippet-application-addin.h"
+#include "gbp-snippet-application-addin.h"
 
-struct _IdeSnippetApplicationAddin
+struct _GbpSnippetApplicationAddin
 {
   GObject parent_instance;
 };
 
 static void
-ide_snippet_application_addin_load (IdeApplicationAddin *addin,
+gbp_snippet_application_addin_load (IdeApplicationAddin *addin,
                                     IdeApplication      *app)
 {
-  IdeSnippetApplicationAddin *self = IDE_SNIPPET_APPLICATION_ADDIN (addin);
+  GbpSnippetApplicationAddin *self = (GbpSnippetApplicationAddin *)addin;
   GtkSourceSnippetManager *manager;
   char **search_path;
   gsize len;
 
   IDE_ENTRY;
 
-  g_assert (IDE_IS_SNIPPET_APPLICATION_ADDIN (self));
+  g_assert (GBP_IS_SNIPPET_APPLICATION_ADDIN (self));
   g_assert (IDE_IS_APPLICATION (app));
 
   manager = gtk_source_snippet_manager_get_default ();
@@ -64,19 +64,19 @@ ide_snippet_application_addin_load (IdeApplicationAddin *addin,
 static void
 application_addin_iface_init (IdeApplicationAddinInterface *iface)
 {
-  iface->load = ide_snippet_application_addin_load;
+  iface->load = gbp_snippet_application_addin_load;
 }
 
-G_DEFINE_FINAL_TYPE_WITH_CODE (IdeSnippetApplicationAddin, ide_snippet_application_addin, G_TYPE_OBJECT,
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpSnippetApplicationAddin, gbp_snippet_application_addin, G_TYPE_OBJECT,
                                G_IMPLEMENT_INTERFACE (IDE_TYPE_APPLICATION_ADDIN, 
application_addin_iface_init))
 
 static void
-ide_snippet_application_addin_class_init (IdeSnippetApplicationAddinClass *klass)
+gbp_snippet_application_addin_class_init (GbpSnippetApplicationAddinClass *klass)
 {
 }
 
 static void
-ide_snippet_application_addin_init (IdeSnippetApplicationAddin *self)
+gbp_snippet_application_addin_init (GbpSnippetApplicationAddin *self)
 {
 }
 
diff --git a/src/plugins/snippets/ide-snippet-application-addin.h 
b/src/plugins/snippets/gbp-snippet-application-addin.h
similarity index 75%
rename from src/plugins/snippets/ide-snippet-application-addin.h
rename to src/plugins/snippets/gbp-snippet-application-addin.h
index 92d5b06b1..3b92162a2 100644
--- a/src/plugins/snippets/ide-snippet-application-addin.h
+++ b/src/plugins/snippets/gbp-snippet-application-addin.h
@@ -1,4 +1,4 @@
-/* ide-snippet-application-addin.h
+/* gbp-snippet-application-addin.h
  *
  * Copyright 2022 Günther Wagner <info gunibert de>
  *
@@ -15,7 +15,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
- * SPDX-License-Identifier: GPL-3.0-or-later
+ * SPDX-License-Gbpntifier: GPL-3.0-or-later
  */
 
 #pragma once
@@ -24,8 +24,8 @@
 
 G_BEGIN_DECLS
 
-#define IDE_TYPE_SNIPPET_APPLICATION_ADDIN (ide_snippet_application_addin_get_type())
+#define GBP_TYPE_SNIPPET_APPLICATION_ADDIN (gbp_snippet_application_addin_get_type())
 
-G_DECLARE_FINAL_TYPE (IdeSnippetApplicationAddin, ide_snippet_application_addin, IDE, 
SNIPPET_APPLICATION_ADDIN, GObject)
+G_DECLARE_FINAL_TYPE (GbpSnippetApplicationAddin, gbp_snippet_application_addin, GBP, 
SNIPPET_APPLICATION_ADDIN, GObject)
 
 G_END_DECLS
diff --git a/src/plugins/snippets/meson.build b/src/plugins/snippets/meson.build
index ca78beec2..2e89580d1 100644
--- a/src/plugins/snippets/meson.build
+++ b/src/plugins/snippets/meson.build
@@ -1,6 +1,6 @@
 plugins_sources += files([
   'snippets-plugin.c',
-  'ide-snippet-application-addin.c',
+  'gbp-snippet-application-addin.c',
   'gbp-snippet-completion-provider.c',
 ])
 
diff --git a/src/plugins/snippets/snippets-plugin.c b/src/plugins/snippets/snippets-plugin.c
index c1f737d8a..9a96952a9 100644
--- a/src/plugins/snippets/snippets-plugin.c
+++ b/src/plugins/snippets/snippets-plugin.c
@@ -27,7 +27,7 @@
 #include <libide-gui.h>
 #include <libide-sourceview.h>
 
-#include "ide-snippet-application-addin.h"
+#include "gbp-snippet-application-addin.h"
 #include "gbp-snippet-completion-provider.h"
 
 _IDE_EXTERN void
@@ -38,5 +38,5 @@ _gbp_snippets_register_types (PeasObjectModule *module)
                                               GBP_TYPE_SNIPPET_COMPLETION_PROVIDER);
   peas_object_module_register_extension_type (module,
                                               IDE_TYPE_APPLICATION_ADDIN,
-                                              IDE_TYPE_SNIPPET_APPLICATION_ADDIN);
+                                              GBP_TYPE_SNIPPET_APPLICATION_ADDIN);
 }


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