← Back to team overview

xpad-hackers team mailing list archive

Re: [Question #293747]: Addition of feature to specify individual color for each note

 

Question #293747 on Xpad changed:
https://answers.launchpad.net/xpad/+question/293747

    Status: Open => Answered

Arthur Borsboom proposed the following answer:
Hi Brahm,

Thanks for your interest in will to improve Xpad.

For the last couple of years, I have been maintaining Xpad, so I know Xpad a bit.
Although I cannot explain Xpad all the way, I can give you some pointers of possible ways to solve this.

Xpad is GTK application written in the programming language C, which
means it uses the GTK framework for drawing items, communicating, taking
care of many things, so  we don't have to write or maintain the code for
it.

My guess is that you can use GTK color picker / color selector. To see
what out-of-the-box functionalities you have in GTK, I use the reference
manual: https://developer.gnome.org/gtk3/stable

An example is the GTK color chooser:
https://developer.gnome.org/gtk3/stable/GtkColorChooser.html

To start building Xpad do this:

- download source code
- extract into new folder
- run the following commands
* ./autogen.sh
* ./configure (= more or less a verification utility if you are not missing anything)
* ./make (= compile)
* ./make install (this is optional, if you want to install on your Linux system)
* ./src/xpad (to actually run xpad)

If it runs, make the changes to the source code and run the commands again to see the result.
If it fails, try to google why it fails. Often you need programs (like a C compiler) and the dependencies like Glib, GTK, etc.

In the past I have drawn a 'xpad design' picture, just to understand the
relationships a bit better. I am not sure if it is still up to date, but
it might give you a good idea of how things are related.

https://drive.google.com/file/d/0Bymxsci1WxB1Mzc3VlBabjI2RHM/view?usp=sharing

Is this what you were looking for, to get started?

Cheers,
Arthur Borsboom.

-- 
You received this question notification because your team Xpad
Developers is an answer contact for Xpad.