aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-18 15:02:20 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-18 15:02:20 +0100
commitd33dd8cd0355f60f07649d8c1b2750ddd98649b4 (patch)
treebdb3a2cd5b4213bc0d5327af0ca79a93fef076ba
parentb58eeb9a3f9b0ee92340b93482ed2bc5d49eb85e (diff)
downloaddrminfo-d33dd8cd0355f60f07649d8c1b2750ddd98649b4.tar.gz
gtk tweak
-rw-r--r--gtktest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtktest.c b/gtktest.c
index 8c005f9..63d76f1 100644
--- a/gtktest.c
+++ b/gtktest.c
@@ -10,7 +10,7 @@ cairo_surface_t *image;
static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
gpointer user_data)
{
- char info[80];
+ char info1[80], info2[80];
int width, height;
width = gtk_widget_get_allocated_width(widget);
@@ -19,9 +19,9 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
if (image) {
render_image(cr, width, height, image);
} else {
- snprintf(info, sizeof(info), "gtktest: %dx%d",
- width, height);
- render_test(cr, width, height, info, "line #2", "line #3");
+ snprintf(info1, sizeof(info1), "gtktest");
+ snprintf(info2, sizeof(info2), "%dx%d", width, height);
+ render_test(cr, width, height, info1, info2, "");
}
return FALSE;
}