aboutsummaryrefslogtreecommitdiffstats
path: root/gtktest.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-04-12 12:39:09 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-04-12 12:39:09 +0200
commit8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c (patch)
treee69a28d0e7baece34413e7feb0b2319be44184c4 /gtktest.c
parentf4622608baf58fed2d7d2b6cf2326b595c906d0d (diff)
downloaddrminfo-8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c.tar.gz
info tweaks
Diffstat (limited to 'gtktest.c')
-rw-r--r--gtktest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtktest.c b/gtktest.c
index 0726bbe..9a5d2a1 100644
--- a/gtktest.c
+++ b/gtktest.c
@@ -6,11 +6,14 @@
static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
gpointer user_data)
{
+ char info[80];
int width, height;
width = gtk_widget_get_allocated_width(widget);
height = gtk_widget_get_allocated_height(widget);
- render_test(cr, width, height);
+ snprintf(info, sizeof(info), "gtktest: %dx%d",
+ width, height);
+ render_test(cr, width, height, info);
return FALSE;
}