[goocanvas/new-api] 2010-06-30 Damon Chaplin <damon gnome org>
- From: Damon Chaplin <damon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/new-api] 2010-06-30 Damon Chaplin <damon gnome org>
- Date: Wed, 30 Jun 2010 12:37:55 +0000 (UTC)
commit 2de81443a51619627c1857a5e6f8090ff3f347de
Author: Damon Chaplin <damon gnome org>
Date: Wed Jun 30 13:37:33 2010 +0100
2010-06-30 Damon Chaplin <damon gnome org>
* demo/demo.c (setup_rectangles):
* src/goocanvastable.c (goo_canvas_table_paint):
* demo/demo-grabs.c (create_fixed): fixed a few warnings.
ChangeLog | 6 ++++++
demo/demo-grabs.c | 2 +-
demo/demo.c | 10 +++++-----
src/goocanvastable.c | 2 +-
4 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f91e07f..43b9631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2010-06-30 Damon Chaplin <damon gnome org>
+ * demo/demo.c (setup_rectangles):
+ * src/goocanvastable.c (goo_canvas_table_paint):
+ * demo/demo-grabs.c (create_fixed): fixed a few warnings.
+
+2010-06-30 Damon Chaplin <damon gnome org>
+
* docs: removed model-view-canvas.xml and added empty internal subset
"[]" to the DOCTYPEs to keep gtk-doc happy.
diff --git a/demo/demo-grabs.c b/demo/demo-grabs.c
index e1d1c3f..9262de3 100644
--- a/demo/demo-grabs.c
+++ b/demo/demo-grabs.c
@@ -212,7 +212,7 @@ create_fixed (GtkTable *table, gint row, gchar *text, gchar *id)
gtk_widget_show (label);
fixed = gtk_fixed_new ();
- gtk_widget_set_has_window (GTK_FIXED (fixed), TRUE);
+ gtk_widget_set_has_window (fixed, TRUE);
gtk_widget_set_events (fixed,
GDK_EXPOSURE_MASK
| GDK_BUTTON_PRESS_MASK
diff --git a/demo/demo.c b/demo/demo.c
index 2b148d2..0e55bcb 100644
--- a/demo/demo.c
+++ b/demo/demo.c
@@ -874,35 +874,35 @@ setup_rectangles (GooCanvasItem *root)
NULL);
cairo_pattern_destroy (pattern);
setup_item_signals (item);
- g_object_set_data (item, "id", "SeaGreen");
+ g_object_set_data (G_OBJECT (item), "id", "SeaGreen");
child = goo_canvas_rect_new (item, 80, 30, 20, 20,
"fill-color", "orange",
"tooltip", "Child of Medium Sea Green stippled rectangle",
NULL);
setup_item_signals (child);
- g_object_set_data (child, "id", "Orange1");
+ g_object_set_data (G_OBJECT (child), "id", "Orange1");
child = goo_canvas_rect_new (item, 170, 30, 20, 20,
"fill-color", "orange",
"tooltip", "Child of Medium Sea Green stippled rectangle",
NULL);
setup_item_signals (child);
- g_object_set_data (child, "id", "Orange2");
+ g_object_set_data (G_OBJECT (child), "id", "Orange2");
child = goo_canvas_rect_new (item, 80, 90, 20, 20,
"fill-color", "orange",
"tooltip", "Child of Medium Sea Green stippled rectangle",
NULL);
setup_item_signals (child);
- g_object_set_data (child, "id", "Orange3");
+ g_object_set_data (G_OBJECT (child), "id", "Orange3");
child = goo_canvas_rect_new (item, 170, 90, 20, 20,
"fill-color", "orange",
"tooltip", "Child of Medium Sea Green stippled rectangle",
NULL);
setup_item_signals (child);
- g_object_set_data (child, "id", "Orange4");
+ g_object_set_data (G_OBJECT (child), "id", "Orange4");
diff --git a/src/goocanvastable.c b/src/goocanvastable.c
index 50d4bf2..4e01578 100644
--- a/src/goocanvastable.c
+++ b/src/goocanvastable.c
@@ -2113,7 +2113,7 @@ goo_canvas_table_paint (GooCanvasItem *item,
gdouble frame_width, frame_height;
gdouble line_start, line_end;
gdouble spacing, half_spacing_before, half_spacing_after;
- gboolean old_grid_line_visibility, cur_grid_line_visibility;
+ gboolean old_grid_line_visibility = FALSE, cur_grid_line_visibility;
GtkTextDirection direction = GTK_TEXT_DIR_NONE;
/* Skip the item if the bounds don't intersect the expose rectangle. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]