diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-18 15:02:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-18 15:02:20 +0100 |
commit | d33dd8cd0355f60f07649d8c1b2750ddd98649b4 (patch) | |
tree | bdb3a2cd5b4213bc0d5327af0ca79a93fef076ba | |
parent | b58eeb9a3f9b0ee92340b93482ed2bc5d49eb85e (diff) | |
download | drminfo-d33dd8cd0355f60f07649d8c1b2750ddd98649b4.tar.gz |
gtk tweak
-rw-r--r-- | gtktest.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |