Hi list, as a convinced Inkscape user and former C++ developper, I decided to at least try to join the developpment team. I don't want to promise anything, as real life work keeps me quite busy, but sure I could spend a few hours a week on it. So I pulled the code from cvs and started to look at something intersting me : aligning nodes. Well, this is C code. I'm not a great fan of C, so I wanted to start the C++ ification of the align dialog. And still pulling away, fall in front of SPButton and SPIcon. I first tried to wrap (GtkButton::wrap for example) them, but could not get it working. So I went deeper and figured that it could be a good idea to take it at the pixbuf level. But I can't understand how this works, even with a simple png image :
this code works Gtk::Image *pImg= new Image ("/x/y/z/toto.png");
while this one don't Gtk::Image *pImg= new Image (Gdk::Pixbuf::create_from_file("/x/y/z/toto.png"));
Looks like I missed something ...
If you have some answers, or even pointers (google is not very talkative about this), please post them in my blog here : http://un.regne.net/dotclear/index.php/2004/07/01/20-firsts-tries-on-inkscap...
sorry for the inconvenience, I'm in trouble with my email setup.
Thanks in advance for any answer, aubanel.
************************ ADSL ILLIMITE TISCALI + TELEPHONE GRATUIT ************************ Surfez 40 fois plus vite pour 30EUR/mois seulement ! Et téléphonez partout en France gratuitement, vers les postes fixes (hors numéros spéciaux). Tarifs très avantageux vers les mobiles et l'international ! Pour profiter de cette offre exceptionnelle, cliquez ici : http://register.tiscali.fr/adsl (voir conditions sur le site)
as a convinced Inkscape user and former C++ developper, I decided to at least try to join the developpment team.
Welcome!
So I pulled the code from cvs and started to look at something intersting me : aligning nodes.
If you're trying to make Align dialog work on nodes as well as on objects, then yes, it's a great idea. I've been meaning to do this for ages but other things are always distracting me, so if you can work on this it's great. See also another idea that I plan to do, in comments here:
http://sourceforge.net/tracker/index.php?func=detail&aid=865050&grou...
Another idea I've had is to add Random distribution to the Distribute tab. Should be easy once you figure out that dialog.
this code works Gtk::Image *pImg= new Image ("/x/y/z/toto.png");
while this one don't Gtk::Image *pImg= new Image (Gdk::Pixbuf::create_from_file("/x/y/z/toto.png"));
Judging by http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Image.html, both uses are valid. But we haven't yet used Gtkmm in this project so I can't tell. Mental, can you comment?
On Wed, 2004-07-07 at 13:33, bulia byak wrote:
this code works Gtk::Image *pImg= new Image ("/x/y/z/toto.png");
while this one don't Gtk::Image *pImg= new Image (Gdk::Pixbuf::create_from_file("/x/y/z/toto.png"));
Judging by http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Image.html, both uses are valid. But we haven't yet used Gtkmm in this project so I can't tell. Mental, can you comment?
As far as I know both examples are valid (and should be essentially interchangable), but I've not tried either. There are occasionally some gotchas which the documentation does not make clear.
Aubi, does "doesn't work" mean that it doesn't compile, or that it misbehaves when run? What are the error messages or deviations from expected behavior you encounter?
-mental
participants (3)
-
aubi@...373...
-
bulia byak
-
MenTaLguY