[gtksourceview/wip/chergert/gsv-gtk4: 156/192] tests: disable icons for test-completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 156/192] tests: disable icons for test-completion
- Date: Fri, 7 Aug 2020 18:31:10 +0000 (UTC)
commit 3c24b96e32acd7456bab8879d6ed29a8c6a3a148
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 18 14:00:08 2020 -0700
tests: disable icons for test-completion
This is a bit difficult to bridge right now because of how things are
done in GTK 4. It also seems like GtkCellRenderer will be removed from
GTK 4 (and definitely by 5) so we can disable this until we have a
chance to land the new completion API.
tests/test-completion.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/test-completion.c b/tests/test-completion.c
index 216e8cf0e..2ab975cb3 100644
--- a/tests/test-completion.c
+++ b/tests/test-completion.c
@@ -115,9 +115,9 @@ test_provider_populate (GtkSourceCompletionProvider *completion_provider,
static GdkTexture *
test_provider_get_icon (GtkSourceCompletionProvider *provider)
{
- TestProvider *tp = (TestProvider *)provider;
-
- return tp->is_random ? NULL : GDK_TEXTURE (tp->provider_icon);
+ //TestProvider *tp = (TestProvider *)provider;
+ //return tp->is_random ? NULL : GDK_TEXTURE (tp->provider_icon);
+ return NULL;
}
static void
@@ -202,7 +202,7 @@ test_provider_set_fixed (TestProvider *provider,
item = gtk_source_completion_item_new ();
gtk_source_completion_item_set_markup (item, "A very <b>long</b> proposal. I <i>repeat</i>, a very
long proposal!");
gtk_source_completion_item_set_text (item, "A very long proposal. I repeat, a very long proposal!");
- gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
+ //gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
gtk_source_completion_item_set_info (item, "To test the horizontal scrollbar and the markup.");
proposals = g_list_prepend (proposals, item);
@@ -225,7 +225,7 @@ test_provider_set_fixed (TestProvider *provider,
item = gtk_source_completion_item_new ();
gtk_source_completion_item_set_label (item, name);
gtk_source_completion_item_set_text (item, name);
- gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
+ //gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
gtk_source_completion_item_set_info (item, "The extra info of the proposal.\nA second line.");
proposals = g_list_prepend (proposals, item);
@@ -254,7 +254,7 @@ test_provider_set_random (TestProvider *provider,
item = gtk_source_completion_item_new ();
gtk_source_completion_item_set_label (item, name);
gtk_source_completion_item_set_text (item, name);
- gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
+ //gtk_source_completion_item_set_icon (item, GDK_TEXTURE (provider->item_icon));
proposals = g_list_prepend (proposals, item);
g_free (padding);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]