View | Details | Raw Unified | Return to bug 249471
Collapse All | Expand All

(-)./work/gnumeric-1.12.46/src/sheet-object-widget.c (-3 / +3 lines)
Lines 124-133 Link Here
124
{
124
{
125
	GocGroup *group = GOC_GROUP (view);
125
	GocGroup *group = GOC_GROUP (view);
126
126
127
	if (group == NULL || group->children == NULL)
127
	if (group == NULL || group->Xchildren == NULL)
128
		return NULL;
128
		return NULL;
129
129
130
	return GOC_WIDGET (group->children->data);
130
	return GOC_WIDGET (group->Xchildren->data);
131
}
131
}
132
132
133
static void
133
static void
Lines 157-163 Link Here
157
so_widget_view_get_window (GocItem *item)
157
so_widget_view_get_window (GocItem *item)
158
{
158
{
159
	GocGroup *group = GOC_GROUP (item);
159
	GocGroup *group = GOC_GROUP (item);
160
	return goc_item_get_window (GOC_ITEM (group->children->data));
160
	return goc_item_get_window (GOC_ITEM (group->Xchildren->data));
161
}
161
}
162
162
163
static void
163
static void
(-)./work/gnumeric-1.12.46/src/gnm-so-path.c (-1 / +1 lines)
Lines 205-211 Link Here
205
			G_GNUC_UNUSED GParamSpec *pspec,
205
			G_GNUC_UNUSED GParamSpec *pspec,
206
			GnmSOPathView *group)
206
			GnmSOPathView *group)
207
{
207
{
208
	GList *ptr = GOC_GROUP (group)->children;
208
	GList *ptr = GOC_GROUP (group)->Xchildren;
209
	for (; ptr && ptr->data; ptr = ptr->next)
209
	for (; ptr && ptr->data; ptr = ptr->next)
210
		if (GOC_IS_PATH (ptr->data))
210
		if (GOC_IS_PATH (ptr->data))
211
			cb_gnm_so_path_style_changed (GOC_ITEM (ptr->data), sop);
211
			cb_gnm_so_path_style_changed (GOC_ITEM (ptr->data), sop);
(-)./work/gnumeric-1.12.46/src/sheet-object-image.c (-1 / +1 lines)
Lines 46-52 Link Here
46
static void
46
static void
47
so_image_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
47
so_image_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
48
{
48
{
49
	GocItem *view = GOC_ITEM (GOC_GROUP (sov)->children->data);
49
	GocItem *view = GOC_ITEM (GOC_GROUP (sov)->Xchildren->data);
50
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
50
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
51
51
52
	if (visible) {
52
	if (visible) {
(-)./work/gnumeric-1.12.46/src/widgets/gnm-filter-combo-view.c (-1 / +1 lines)
Lines 334-340 Link Here
334
		if (h > 20.)	/* clip vertically */
334
		if (h > 20.)	/* clip vertically */
335
			h = 20.;
335
			h = 20.;
336
		h /= scale;
336
		h /= scale;
337
		goc_item_set (GOC_ITEM (view->children->data),
337
		goc_item_set (GOC_ITEM (view->Xchildren->data),
338
			/* put it inside the cell */
338
			/* put it inside the cell */
339
			"x",	  ((coords[2] >= 0.) ? (coords[2] / scale - h + 1) : coords[0] / scale),
339
			"x",	  ((coords[2] >= 0.) ? (coords[2] / scale - h + 1) : coords[0] / scale),
340
			"y",	  coords [3] / scale - h + 1.,
340
			"y",	  coords [3] / scale - h + 1.,
(-)./work/gnumeric-1.12.46/src/widgets/gnm-validation-combo-view.c (-1 / +1 lines)
Lines 189-195 Link Here
189
		if (h > 20.)	/* clip vertically */
189
		if (h > 20.)	/* clip vertically */
190
			h = 20.;
190
			h = 20.;
191
		h /= scale;
191
		h /= scale;
192
		goc_item_set (GOC_ITEM (view->children->data),
192
		goc_item_set (GOC_ITEM (view->Xchildren->data),
193
			/* put it outside the cell */
193
			/* put it outside the cell */
194
			"x",	  ((coords[2] >= 0.)? coords[2] / scale: (coords[0] / scale - h + 1.)),
194
			"x",	  ((coords[2] >= 0.)? coords[2] / scale: (coords[0] / scale - h + 1.)),
195
			"y",	  coords [3] / scale - h + 1.,
195
			"y",	  coords [3] / scale - h + 1.,
(-)./work/gnumeric-1.12.46/src/widgets/gnm-sheet-slicer-combo-view.c (-1 / +1 lines)
Lines 167-173 Link Here
167
		if (h > 20.)	/* clip vertically */
167
		if (h > 20.)	/* clip vertically */
168
			h = 20.;
168
			h = 20.;
169
		h /= scale;
169
		h /= scale;
170
		goc_item_set (GOC_ITEM (view->children->data),
170
		goc_item_set (GOC_ITEM (view->Xchildren->data),
171
			/* put it outside the cell */
171
			/* put it outside the cell */
172
			"x",	  ((coords[2] >= 0.) ? coords[2] / scale : (coords[0] / scale - h + 1.)),
172
			"x",	  ((coords[2] >= 0.) ? coords[2] / scale : (coords[0] / scale - h + 1.)),
173
			"y",	  coords [3] / scale - h + 1.,
173
			"y",	  coords [3] / scale - h + 1.,
(-)./work/gnumeric-1.12.46/src/sheet-object-cell-comment.c (-1 / +1 lines)
Lines 84-90 Link Here
84
{
84
{
85
	CommentView *cv = (CommentView *)sov;
85
	CommentView *cv = (CommentView *)sov;
86
	GocPoints *points = goc_points_new (3);
86
	GocPoints *points = goc_points_new (3);
87
	GocItem *item = GOC_ITEM (GOC_GROUP (sov)->children->data);
87
	GocItem *item = GOC_ITEM (GOC_GROUP (sov)->Xchildren->data);
88
	if (visible) {
88
	if (visible) {
89
		SheetObject *so = sheet_object_view_get_so (sov);
89
		SheetObject *so = sheet_object_view_get_so (sov);
90
		SheetControlGUI const *scg = GNM_SIMPLE_CANVAS (item->canvas)->scg;
90
		SheetControlGUI const *scg = GNM_SIMPLE_CANVAS (item->canvas)->scg;
(-)./work/gnumeric-1.12.46/src/gnm-so-line.c (-2 / +2 lines)
Lines 59-65 Link Here
59
static void
59
static void
60
so_line_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
60
so_line_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
61
{
61
{
62
	GocItem	*view = GOC_ITEM (sov), *item = GOC_ITEM (GOC_GROUP (view)->children->data);
62
	GocItem	*view = GOC_ITEM (sov), *item = GOC_ITEM (GOC_GROUP (view)->Xchildren->data);
63
	SheetObject	*so = sheet_object_view_get_so (sov);
63
	SheetObject	*so = sheet_object_view_get_so (sov);
64
	GOStyleLine const *style = &GNM_SO_LINE (so)->style->line;
64
	GOStyleLine const *style = &GNM_SO_LINE (so)->style->line;
65
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
65
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
Lines 128-134 Link Here
128
			G_GNUC_UNUSED GParamSpec *pspec,
128
			G_GNUC_UNUSED GParamSpec *pspec,
129
			GocItem *item)
129
			GocItem *item)
130
{
130
{
131
	item = GOC_ITEM (GOC_GROUP (item)->children->data);
131
	item = GOC_ITEM (GOC_GROUP (item)->Xchildren->data);
132
	goc_item_set (item,
132
	goc_item_set (item,
133
		      "start-arrow", &sol->start_arrow,
133
		      "start-arrow", &sol->start_arrow,
134
		      "end-arrow", &sol->end_arrow,
134
		      "end-arrow", &sol->end_arrow,
(-)./work/gnumeric-1.12.46/src/sheet-object-component.c (-2 / +2 lines)
Lines 491-498 Link Here
491
	for (; l; l = l->next)
491
	for (; l; l = l->next)
492
		if (l->data) {
492
		if (l->data) {
493
			GocGroup *group = GOC_GROUP (l->data);
493
			GocGroup *group = GOC_GROUP (l->data);
494
			if (group->children->data)
494
			if (group->Xchildren->data)
495
				g_object_set (group->children->data, "object", component, NULL);
495
				g_object_set (group->Xchildren->data, "object", component, NULL);
496
		}
496
		}
497
	if (component) {
497
	if (component) {
498
		g_object_ref (component);
498
		g_object_ref (component);
(-)./work/gnumeric-1.12.46/src/gnm-so-polygon.c (-1 / +1 lines)
Lines 129-135 Link Here
129
static void
129
static void
130
cb_gnm_so_polygon_style_changed (GocItem *view, GnmSOPolygon const *sop)
130
cb_gnm_so_polygon_style_changed (GocItem *view, GnmSOPolygon const *sop)
131
{
131
{
132
	GocItem *item = GOC_ITEM (GOC_GROUP (view)->children->data);
132
	GocItem *item = GOC_ITEM (GOC_GROUP (view)->Xchildren->data);
133
	GOStyle const *style = sop->style;
133
	GOStyle const *style = sop->style;
134
	goc_item_set (item, "style", style, NULL);
134
	goc_item_set (item, "style", style, NULL);
135
}
135
}
(-)./work/gnumeric-1.12.46/src/sheet-object-component.c (-1 / +1 lines)
Lines 37-43 Link Here
37
static void
37
static void
38
so_component_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
38
so_component_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
39
{
39
{
40
	GocItem *view = GOC_ITEM (GOC_GROUP (sov)->children->data);
40
	GocItem *view = GOC_ITEM (GOC_GROUP (sov)->Xchildren->data);
41
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
41
	double scale = goc_canvas_get_pixels_per_unit (view->canvas);
42
42
43
	if (visible) {
43
	if (visible) {
(-)./work/gnumeric-1.12.46/src/gnm-so-polygon.c (-1 / +1 lines)
Lines 48-54 Link Here
48
static void
48
static void
49
so_polygon_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
49
so_polygon_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean visible)
50
{
50
{
51
	GocItem *view = GOC_ITEM (sov->base.children->data);
51
	GocItem *view = GOC_ITEM (sov->base.Xchildren->data);
52
52
53
	if (visible) {
53
	if (visible) {
54
		SheetObject		*so   = sheet_object_view_get_so (sov);
54
		SheetObject		*so   = sheet_object_view_get_so (sov);
(-)./work/gnumeric-1.12.46/src/sheet-object-graph.c (-1 / +1 lines)
Lines 809-815 Link Here
809
{
809
{
810
	GList *ptr = sog->realized_list;
810
	GList *ptr = sog->realized_list;
811
	while (ptr) {
811
	while (ptr) {
812
		cb_post_new_view (GOC_ITEM (GOC_GROUP (ptr->data)->children->data));
812
		cb_post_new_view (GOC_ITEM (GOC_GROUP (ptr->data)->Xchildren->data));
813
		ptr = ptr->next;
813
		ptr = ptr->next;
814
	}
814
	}
815
}
815
}

Return to bug 249471