Commit Graph

19 Commits

Author SHA1 Message Date
Christopher Michael 0ac0da81a5 lets not segfault by trying to print into a variable too much info.
We've allocated 10 chars, not 11, so let's snprint the correct length.

Thanks to cippp for the error report ;)

Fix up some formatting and remove some whitespace also.



SVN revision: 53245
2010-10-10 23:36:26 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Gustavo Sverzut Barbieri 5cd4b45793 crack--, /me needs sleep!
SVN revision: 46929
2010-03-07 05:37:40 +00:00
Gustavo Sverzut Barbieri f3dcabc3d0 enables optional alpha edition in color selector.
NOTE: the color selection widget (e_widget_csel) is way too
      complex. The basic editor should not show HSV as most people
      have no clue what it is.



SVN revision: 46926
2010-03-07 05:24:09 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



SVN revision: 36962
2008-10-22 11:49:33 +00:00
Miculcy Brian a7d1bfeaae API breakage: e_widget_entry_add() allows now to set a cb function for text change events.
SVN revision: 32009
2007-10-07 21:26:48 +00:00
Sebastian Dransfeld 39e228c73a Formatting.
SVN revision: 29448
2007-04-08 21:00:30 +00:00
Sebastian Dransfeld f6dc1dc1cc Remove stale code.
Fix comments.


SVN revision: 29159
2007-03-25 22:45:00 +00:00
rephorm a5c71890d4 ****** MAJOR THEME REWORKING -- BREAKAGE *********
Almost every signal and required part name has changed. This means that ALL themes other than the default one are now broken. Sorry, but this had to happen.

I have a list of mappings from old to new at http://rephorm.com/files/dump/e_theme_map.txt

There will probably be a little more cleanup on this in the coming days. Then I'll write it all up in a nice theme spec.


SVN revision: 25033
2006-08-22 07:39:11 +00:00
rephorm 3b84d85303 * crosshairs show in proper place in spectrum initially
* a color well's dialog closes when the well is deleted
* the X border button calls the cancel cb for the color dialog
* the X on the grad dialog now works


SVN revision: 24964
2006-08-20 23:29:41 +00:00
rephorm 24bb452439 when clicking on a color well, initialize the color selector to the well's color
few other cleanups


SVN revision: 24957
2006-08-20 22:15:27 +00:00
rephorm 63978e9abb add gradient bg dialog.
finish up the color selector widgets (plug some leaks)

TODO:
  * color_dialog needs a way of specifying initial color
  * color_well needs to use this when showing its color dialog
  * the grad dialog should remember the last selected colors
  * the color dialog whould probably keep a list of favorite / recent colors

Also, it looks like there's a leak (according to valgrind at least) in e_editable.c when you set the text and it reallocs.


SVN revision: 24953
2006-08-20 21:18:30 +00:00
sebastid 19bbe60f7e - const
- remove unused variables
- better parameter names


SVN revision: 24836
2006-08-17 16:58:32 +00:00
rephorm 4fa321e99b more csel work. theme it up a bit.
SVN revision: 24717
2006-08-15 00:54:33 +00:00
rephorm cfb5be331f cleanups
SVN revision: 24714
2006-08-14 23:30:32 +00:00
rephorm ce206f330e make csel a proper widget instead of just a wrapper around table.
pass in a color struct to update
(use the change hook to know when changes have occured)

use a short timer instead of an idler to update the spectrum image data
  -- ideally, we would add a pre/post render hooks for smart objects. then we could redraw int he pre-render callback.


SVN revision: 24676
2006-08-14 07:05:31 +00:00
rephorm d7792a9270 Start of a color selector.
Change the last test in e_test.c to #if 1 to play.

Issues:
  Redrawing the H,S and V spectra is a bit slow. Needs to be optimized.

  Spacing / Sizing of the various pieces of the csel widget needs to be cleaned up a bit.

  I haven't actually themed anything yet. Just some fairly basic place holders to get it working. We should wrap each piece in shadowed cutout graphic, and make fancier cursors.

  A color well widget
    - show the currently selected color
    - allows dnd of colors (this probably requires some reworking of ecore selection code)

For anyone wanting to play with this, a single E_Color struct is used by all parts of the selector, preventing the need to copy values around. This includes RGB *and* HSV values since the two spaces aren't 1:1.


SVN revision: 24669
2006-08-14 04:38:49 +00:00