diff options
author | Hib Eris <hib@hiberis.nl> | 2008-12-24 17:46:32 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2008-12-24 17:46:32 +0100 |
commit | eba2232cabd5fb1e177db2a6053f0d1a0aee882b (patch) | |
tree | 507214a7a050d9870eb05c35009102ccfc5026e5 /test | |
parent | c80431eb1626d89e7b615e5a5149d3436b554b66 (diff) |
Fix some more warnings
Diffstat (limited to 'test')
-rw-r--r-- | test/gtk-cairo-test.cc | 11 | ||||
-rw-r--r-- | test/pdf-inspector.cc | 9 |
2 files changed, 5 insertions, 15 deletions
diff --git a/test/gtk-cairo-test.cc b/test/gtk-cairo-test.cc index 9a15456e..913f46d8 100644 --- a/test/gtk-cairo-test.cc +++ b/test/gtk-cairo-test.cc @@ -36,8 +36,6 @@ drawing_area_expose (GtkWidget *drawing_area, void *data) { View *v = (View*) data; - GdkRectangle document; - GdkRectangle draw; cairo_t *cr; gdk_window_clear (drawing_area->window); @@ -51,7 +49,6 @@ drawing_area_expose (GtkWidget *drawing_area, static void view_set_page (View *v, int page) { - int err; int w, h; double width, height; cairo_t *cr; @@ -71,14 +68,6 @@ view_set_page (View *v, int page) } static void -redraw_callback (void *data) -{ - View *v = (View*) data; - - gtk_widget_queue_draw (v->drawing_area); -} - -static void page_changed_callback (GtkSpinButton *button, View *v) { int page; diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc index d707a6d2..4a8c2c1f 100644 --- a/test/pdf-inspector.cc +++ b/test/pdf-inspector.cc @@ -156,7 +156,7 @@ void PdfInspector::on_selection_changed (GtkTreeSelection *selection, PdfInspector *inspector) { GtkWidget *label; - int i; + size_t i; GtkTreeModel *model; GtkTreeIter iter; gchar *op = NULL; @@ -211,7 +211,7 @@ PdfInspector::analyze_page (int page) GooHashIter *iter; GooHash *hash; GooString *key; - ProfileData *data_p; + void *p; GtkWidget *label; char *text; @@ -231,10 +231,11 @@ PdfInspector::analyze_page (int page) // Individual times; hash = output->endProfile (); hash->startIter(&iter); - while (hash->getNext(&iter, &key, (void**) &data_p)) + while (hash->getNext(&iter, &key, &p)) { GtkTreeIter tree_iter; - + ProfileData *data_p = (ProfileData *) p; + gtk_list_store_append (GTK_LIST_STORE (model), &tree_iter); gtk_list_store_set (GTK_LIST_STORE (model), &tree_iter, OP_STRING, key->getCString(), |