diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-12 12:39:09 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-12 12:39:09 +0200 |
commit | 8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c (patch) | |
tree | e69a28d0e7baece34413e7feb0b2319be44184c4 /gtktest.c | |
parent | f4622608baf58fed2d7d2b6cf2326b595c906d0d (diff) | |
download | drminfo-8e4aa8e602b7400c9a9edafbfc9c966bd85ec92c.tar.gz |
info tweaks
Diffstat (limited to 'gtktest.c')
-rw-r--r-- | gtktest.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |