[gtksourceview/wip/chergert/gsv-gtk4: 70/192] pixbuf: modernize gtksourcepixbufhelper.h
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 70/192] pixbuf: modernize gtksourcepixbufhelper.h
- Date: Fri, 7 Aug 2020 18:31:06 +0000 (UTC)
commit 0cc7b0e5f5a7d273982ebd5d6ff9af6956bc2e75
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 9 14:07:53 2020 -0800
pixbuf: modernize gtksourcepixbufhelper.h
- Fix alignment
- Move to -private.h
docs/reference/meson.build | 2 +-
gtksourceview/gtksourcegutterrendererpixbuf.c | 2 +-
gtksourceview/gtksourcemarkattributes.c | 2 +-
gtksourceview/gtksourcepixbufhelper-private.h | 53 +++++++++++++++++++++++++
gtksourceview/gtksourcepixbufhelper.c | 2 +-
gtksourceview/gtksourcepixbufhelper.h | 56 ---------------------------
6 files changed, 57 insertions(+), 60 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 872048f38..f3a4e8f8f 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -32,7 +32,7 @@ reference_private_h = [
'gtksourcelanguage-private.h',
'gtksourcelanguagemanager-private.h',
'gtksourcemarkssequence-private.h',
- 'gtksourcepixbufhelper.h',
+ 'gtksourcepixbufhelper-private.h',
'gtksourceregex-private.h',
'gtksourcesearchcontext-private.h',
'gtksourcestyle-private.h',
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.c b/gtksourceview/gtksourcegutterrendererpixbuf.c
index 43f5ee9dc..46026886e 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.c
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.c
@@ -21,7 +21,7 @@
#include "config.h"
#include "gtksourcegutterrendererpixbuf.h"
-#include "gtksourcepixbufhelper.h"
+#include "gtksourcepixbufhelper-private.h"
/**
* SECTION:gutterrendererpixbuf
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index 57a1c03b7..70acb6374 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -24,7 +24,7 @@
#include "gtksourcemarkattributes.h"
#include "gtksourcemark.h"
#include "gtksource-marshal.h"
-#include "gtksourcepixbufhelper.h"
+#include "gtksourcepixbufhelper-private.h"
/**
* SECTION:markattributes
diff --git a/gtksourceview/gtksourcepixbufhelper-private.h b/gtksourceview/gtksourcepixbufhelper-private.h
new file mode 100644
index 000000000..58904256a
--- /dev/null
+++ b/gtksourceview/gtksourcepixbufhelper-private.h
@@ -0,0 +1,53 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
+ *
+ * This file is part of GtkSourceView
+ *
+ * Copyright 2010 - Jesse van den Kieboom
+ *
+ * GtkSourceView 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.
+ *
+ * GtkSourceView 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 library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include <gtk/gtk.h>
+
+#include "gtksourcetypes-private.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+GtkSourcePixbufHelper *gtk_source_pixbuf_helper_new (void);
+G_GNUC_INTERNAL
+void gtk_source_pixbuf_helper_free (GtkSourcePixbufHelper *helper);
+G_GNUC_INTERNAL
+void gtk_source_pixbuf_helper_set_pixbuf (GtkSourcePixbufHelper *helper,
+ const GdkPixbuf *pixbuf);
+G_GNUC_INTERNAL
+GdkPixbuf *gtk_source_pixbuf_helper_get_pixbuf (GtkSourcePixbufHelper *helper);
+G_GNUC_INTERNAL
+void gtk_source_pixbuf_helper_set_icon_name (GtkSourcePixbufHelper *helper,
+ const gchar *icon_name);
+G_GNUC_INTERNAL
+const gchar *gtk_source_pixbuf_helper_get_icon_name (GtkSourcePixbufHelper *helper);
+G_GNUC_INTERNAL
+void gtk_source_pixbuf_helper_set_gicon (GtkSourcePixbufHelper *helper,
+ GIcon *gicon);
+G_GNUC_INTERNAL
+GIcon *gtk_source_pixbuf_helper_get_gicon (GtkSourcePixbufHelper *helper);
+G_GNUC_INTERNAL
+GdkPixbuf *gtk_source_pixbuf_helper_render (GtkSourcePixbufHelper *helper,
+ GtkWidget *widget,
+ gint size);
+
+G_END_DECLS
diff --git a/gtksourceview/gtksourcepixbufhelper.c b/gtksourceview/gtksourcepixbufhelper.c
index a52d9f530..6af12974c 100644
--- a/gtksourceview/gtksourcepixbufhelper.c
+++ b/gtksourceview/gtksourcepixbufhelper.c
@@ -20,7 +20,7 @@
#include "config.h"
-#include "gtksourcepixbufhelper.h"
+#include "gtksourcepixbufhelper-private.h"
typedef enum _IconType
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]