summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-05-30 08:59:46 +0200
committerTimm Bäder <mail@baedert.org>2016-05-30 19:11:27 +0200
commit5029e1147362b3c723da558dcaa59e5c1e08d339 (patch)
tree37609f2d584fc409b39d9f689be6245b82fc1124 /tests
parent106bc95771b9ad25cce7d5327bf528266bfc8022 (diff)
downloadgtk+-5029e1147362b3c723da558dcaa59e5c1e08d339.tar.gz
tests/scrolling-performance: Define MyTextView
The type is used in widget-factory.ui, so add a dummy definition here to keep the test working.
Diffstat (limited to 'tests')
-rw-r--r--tests/scrolling-performance.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/scrolling-performance.c b/tests/scrolling-performance.c
index 15fa1ef618..90be21b553 100644
--- a/tests/scrolling-performance.c
+++ b/tests/scrolling-performance.c
@@ -5,6 +5,28 @@
#include "frame-stats.h"
+
+/* Stub definition of MyTextView which is used in the
+ * widget-factory.ui file. We just need this so the
+ * test keeps working
+ */
+typedef struct
+{
+ GtkTextView tv;
+} MyTextView;
+
+typedef GtkTextViewClass MyTextViewClass;
+
+G_DEFINE_TYPE (MyTextView, my_text_view, GTK_TYPE_TEXT_VIEW)
+
+static void
+my_text_view_init (MyTextView *tv) {}
+
+static void
+my_text_view_class_init (MyTextViewClass *tv_class) {}
+
+
+
GtkWidget *
create_widget_factory_content (void)
{
@@ -12,6 +34,7 @@ create_widget_factory_content (void)
GtkBuilder *builder;
GtkWidget *result;
+ g_type_ensure (my_text_view_get_type ());
builder = gtk_builder_new ();
gtk_builder_add_from_file (builder,
"../demos/widget-factory/widget-factory.ui",