[gtksourceview/wip/chergert/gsv-gtk4: 101/189] words: port to new completion API using GdkTexture
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 101/189] words: port to new completion API using GdkTexture
- Date: Mon, 22 Jun 2020 21:54:29 +0000 (UTC)
commit 45a9b101fed842694be04c98d60e1a51beb47ac5
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 15 14:17:29 2020 -0800
words: port to new completion API using GdkTexture
.../completion-providers/words/gtksourcecompletionwords.c | 8 ++++----
.../completion-providers/words/gtksourcecompletionwords.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index 2cf8dc4d..47d82dbd 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -61,7 +61,7 @@ enum
typedef struct
{
gchar *name;
- GdkPixbuf *icon;
+ GdkTexture *icon;
gchar *word;
gint word_len;
@@ -110,7 +110,7 @@ gtk_source_completion_words_get_name (GtkSourceCompletionProvider *self)
return g_strdup (priv->name);
}
-static GdkPixbuf *
+static GdkTexture *
gtk_source_completion_words_get_icon (GtkSourceCompletionProvider *self)
{
GtkSourceCompletionWords *words = GTK_SOURCE_COMPLETION_WORDS (self);
@@ -452,7 +452,7 @@ gtk_source_completion_words_class_init (GtkSourceCompletionWordsClass *klass)
g_param_spec_object ("icon",
"Icon",
"The provider icon",
- GDK_TYPE_PIXBUF,
+ GDK_TYPE_TEXTURE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
properties[PROP_PROPOSALS_BATCH_SIZE] =
@@ -599,7 +599,7 @@ gtk_source_completion_words_init (GtkSourceCompletionWords *self)
*/
GtkSourceCompletionWords *
gtk_source_completion_words_new (const gchar *name,
- GdkPixbuf *icon)
+ GdkTexture *icon)
{
return g_object_new (GTK_SOURCE_TYPE_COMPLETION_WORDS,
"name", name,
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
index 2e1b9f6a..d653d00b 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
@@ -45,7 +45,7 @@ G_DECLARE_DERIVABLE_TYPE (GtkSourceCompletionWords, gtk_source_completion_words,
GTK_SOURCE_AVAILABLE_IN_ALL
GtkSourceCompletionWords *gtk_source_completion_words_new (const gchar *name,
- GdkPixbuf *icon);
+ GdkTexture *icon);
GTK_SOURCE_AVAILABLE_IN_ALL
void gtk_source_completion_words_register (GtkSourceCompletionWords *words,
GtkTextBuffer *buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]