[gnome-builder] plugins/clang-format: fix callback signature
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/clang-format: fix callback signature
- Date: Tue, 12 Jul 2022 06:39:14 +0000 (UTC)
commit 523bae6acef21de53ac759a6252d910997bed981
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 22:14:55 2022 -0700
plugins/clang-format: fix callback signature
src/plugins/clang-format/clang-format.plugin | 2 +-
src/plugins/clang-format/gb-clang-format-buffer-addin.c | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/clang-format/clang-format.plugin b/src/plugins/clang-format/clang-format.plugin
index 308b009f5..5d854065c 100644
--- a/src/plugins/clang-format/clang-format.plugin
+++ b/src/plugins/clang-format/clang-format.plugin
@@ -2,9 +2,9 @@
Authors=Tomi Lähteenmäki <lihis lihis net>
Builtin=true
Copyright=Copyright © 2021 Tomi Lähteenmäki
-Depends=editor;
Description=Format code based on project .clang-format config
Hidden=false
Embedded=_gb_clang_format_register_types
Module=clang-format
Name=ClangFormat
+X-Category=editing
diff --git a/src/plugins/clang-format/gb-clang-format-buffer-addin.c
b/src/plugins/clang-format/gb-clang-format-buffer-addin.c
index 71a500f9a..ea62affe0 100644
--- a/src/plugins/clang-format/gb-clang-format-buffer-addin.c
+++ b/src/plugins/clang-format/gb-clang-format-buffer-addin.c
@@ -37,10 +37,9 @@ struct _GbClangFormatBufferAddin
static GSettings *settings;
static void
-scroll_page_to_insert (GtkWidget *widget,
- gpointer data)
+scroll_page_to_insert (IdePage *page,
+ gpointer data)
{
- IdePage *page = (IdePage *)widget;
IdeBuffer *buffer = data;
g_assert (IDE_IS_PAGE (page));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]