ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am new to both libraries so I can't get the right functions in the right order.
If anyone knows how to do this please help.I am going to post some embarrassing code now.
This is the gtk function that is called when you select the file and click open.I don't know what it does right now but it doesn't open the file image into a window ,that's for sure. I've put in every function I thought would work in various orders.
The rsvg_handle=rsvg_handle_new_from_file(filename,NULL); line is not opening the file .The handle is NULL.
The filename and path print correctly though.
This is what I have so far.It loads the image except for the text.
I get this error.
Pango-CRITICAL **: pango_font_description_set_size: assertion `size >= 0' failed
I found my text problem.It was something I did earlier in the code.
So the program moves forward.
I don't want to clutter the forum so I'll add my next question here.
Does anyone know where I can get a small code example or tutorial for a GTK iconview ?
I am developing an application in which I am trying to load a SVG file on Cairo surface. I have got some of these files but still missing some like gdk-pixbuf, libxml etc. Could you tell me how I can get them or provide me a weblink so that I can download. Please mention all possible dependent file links.
Appreciate your help.
Thanks in advance
Srini
Last edited by srinireddy07; 08-02-2007 at 10:56 AM.
I didn't have to look for all that because the anjuta ide did everything automatically.
If you are developing a large application in c or c++ you should use a good ide like anjuta.I installed everything using the apt-get package manager so I didn't have to download the source code either.
I had to add librsvg-2.0 flag to the configuration by following the help file instructions in anjuta.
If you are looking for source code for those packages their sites can be found by searching google.
I didn't have to look for all that because the anjuta ide did everything automatically.
If you are developing a large application in c or c++ you should use a good ide like anjuta.I installed everything using the apt-get package manager so I didn't have to download the source code either.
I had to add librsvg-2.0 flag to the configuration by following the help file instructions in anjuta.
If you are looking for source code for those packages their sites can be found by searching google.
Sorry I couldn't be more help. Good luck.
Hi,
Thanks for your immediate reply. Let me explore more on Google and try to get the required files.
What is your idea for your program ,if you don't mind me asking? If we are making the same thing we should work together.You have got to be good at searching the web though to find all the info. I'm new at this too.
What is your idea for your program ,if you don't mind me asking? If we are making the same thing we should work together.You have got to be good at searching the web though to find all the info. I'm new at this too.
Hi,
Thanks for your concern. But anyway, I could manage to get the required libraries from various sources on the Net. Basically I was requiring librsvg library files. But all the files are not kept at the same location on the web(to my knowledge). I have found them on Google search. Now, I am able to develop the application with the required Cairo and RSVG features. But there seemed to be too many library dependencies like png, xml, freetype, croco etc.
Now I am trying to see if I could reduce those dependencies.
My basic aim is to create a Cairo surface and load SVG image on the Cairo surface and be able to manipulate the SVG image like loading, repositioning, resizing etc.
So far I am able load to the SVG file on Cairo surface. If there is any alternative to load SVG image on a Cairo surface, please let me know.
We can always share info if we are into same problem domain.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.