new, little patch and some questions



hello,

I'm new here, I'm a french student quite interrested by scaffold.

unfortunatly you seems to lack developers, so I'd like to give a hand
(even if I don't know much about gnome programming and I don't have so
many time :/)

here are two little patch that allow the current cvs version of
gnome-build to compile and scaffold to run make from the UI.

I'm not sure it's the right way to do this (especially using strcmp to
compare gchar strings) but I'd love if this project could emerge and
reach a usable state.

somme annoying stuff with current scaffold:

* it crashes at close time.
* when a compile-error occur, we can click on the error to see the
corresponding source-code, nice BUT it doesn't go/show the right line
and if the file was previously opened it reopen it.
* more complicated to solve: it lacks a symbol browser, is annyone
working on it, having some ideas ??

I think I can work a bit on this after I learn a bit more about gnome
programming and get more familiar with the code-base

sorry if my english is hard to understand.

PS: please CC me as I'm not subscribed yet
-- 
aurelien
Index: src/backends/libgbf_am/gbf-am-project.c
===================================================================
RCS file: /cvs/gnome/gnome-build/src/backends/libgbf_am/gbf-am-project.c,v
retrieving revision 1.47
diff -r1.47 gbf-am-project.c
2344d2343
< 	// FIXME
2346c2345,2364
< 	//op->build_type = type;
---
> 	// FIXME this ain't nice, works for now ?
> 	if (0 == strcmp(id,"prepare"))
> 	{
> 		op->build_type = GBF_BUILD_PREPARE;
> 	} else if (0 == strcmp(id, "configure"))
> 	{
> 		op->build_type = GBF_BUILD_CONFIGURE;
> 	} else if (0 == strcmp(id, "clean"))
> 	{
> 		op->build_type = GBF_BUILD_CLEAN;
> 	} else if (0 == strcmp(id, "all"))
> 	{
> 		op->build_type = GBF_BUILD_ALL;
> 	} else if (0 == strcmp(id, "current"))
> 	{
> 		op->build_type = GBF_BUILD_CURRENT;
> 	} else if (0 == strcmp(id, "install"))
> 	{
> 		op->build_type = GBF_BUILD_INSTALL;
> 	}
Index: src/gbf/glue-factory.c
===================================================================
RCS file: /cvs/gnome/gnome-build/src/gbf/glue-factory.c,v
retrieving revision 1.3
diff -r1.3 glue-factory.c
184c184
< 	  if (!g_module_symbol (module, "glue_get_component_type", (gpointer *)&get_type_func))
---
> 	  if (!g_module_symbol (module, "glue_get_component_type", (gpointer )&get_type_func))
Index: src/gbf/glue-plugin.c
===================================================================
RCS file: /cvs/gnome/gnome-build/src/gbf/glue-plugin.c,v
retrieving revision 1.2
diff -r1.2 glue-plugin.c
59c59
<   if (!g_module_symbol (plugin->module, "glue_register_components", (gpointer *)&func))
---
>   if (!g_module_symbol (plugin->module, "glue_register_components", (gpointer )&func))
Index: plugins/project-manager/project-tool.c
===================================================================
RCS file: /cvs/gnome/scaffold/plugins/project-manager/project-tool.c,v
retrieving revision 1.50
diff -r1.50 project-tool.c
807a808,818
> 	ProjectTool *proj_tool = (ProjectTool *)tool;
> 	GError *err = NULL;
> 	gchar *str;
> 
> 	gbf_project_build (proj_tool->project, "all", &err);
> 	if (err != NULL) {
> 		str = g_strdup_printf (_("An error occurred during building: '%s'"),
> 				       err->message);
> 		g_free (str);
> 		g_error_free (err);
> 	}
817c828,829
< 	gbf_project_clean (proj_tool->project, &err);
---
> 	//gbf_project_clean (proj_tool->project, &err);
> 	gbf_project_build (proj_tool->project, "clean", &err);
828a841,851
> 	ProjectTool *proj_tool = (ProjectTool *)tool;
> 	GError *err = NULL;
> 	gchar *str;
> 
> 	gbf_project_build (proj_tool->project, "configure", &err);
> 	if (err != NULL) {
> 		str = g_strdup_printf (_("An error occurred during configuring: '%s'"),
> 				       err->message);
> 		g_free (str);
> 		g_error_free (err);
> 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]