Timm Bäder
2c1198f6c2
colorchooser: Remove extra custom color
2019-01-03 08:56:46 +01:00
Matthias Clasen
4c150d8eb5
The big versioning cleanup
...
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
2018-02-06 01:16:32 -05:00
Matthias Clasen
a8531605db
Some more interning
...
This avoids more strdups at startup.
2017-11-18 08:18:11 -05:00
Matthias Clasen
ffd6baec42
gtk: Intern css names
...
This avoids a bunch of strdups at startup.
2017-11-17 22:49:57 -05:00
Timm Bäder
c92b7d4224
box: Remove fill child property
...
GtkWidget:halign and GtkWidget:valign are sufficient
2017-04-25 20:30:37 +02:00
Timm Bäder
5729ea7744
box: Remove expand child property
...
GtkWidget already has hexpand/vexpand properties.
2017-04-25 20:30:37 +02:00
Timm Bäder
3b1601f8ad
colorchooserwidget: Show palette by default
...
Restore the old behavior.
2017-02-05 15:03:35 +01:00
Timm Bäder
f4341ee9f7
widget: Remove show-all property
...
Doesn't make sense anymore now that gtk_widget_show_all is gone.
2017-01-20 21:37:07 +01:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00
Timm Bäder
c360b5fb49
Remove more unnecessary redraws
...
The call to gtk_widget_set_state_flags immediately before these already
queues a redraw/allocate/resize in case they have to be queued.
2016-02-07 19:16:26 +01:00
Timm Bäder
16726e31f0
colorchooserwidgeet: Reset the selected swatch when removing
...
Otherwise, priv->current points to garbage and subsequently leads to a
crash, e.g. when adding another custom color.
2016-01-30 23:02:06 +01:00
Sebastien Lafargue
526fd89ec5
GtkColorChooser: make set_rgba work in editor mode
...
When using the color chooser in editor mode,
gtk_color_chooser_set_rgba need to be propaged
to the editor
https://bugzilla.gnome.org/show_bug.cgi?id=761005
2016-01-23 18:16:51 -05:00
Matthias Clasen
2f169a493b
color chooser: Set a CSS name
...
The CSS name for GtkColorChooserWidget is ... colorchooser.
2016-01-13 23:41:38 -05:00
Ignacio Casal Quinteiro
23fa0e341f
Fix typos in documentation
2014-12-30 13:46:11 +01:00
Matthias Clasen
c9420aa1a3
ColorChooser: Fix an off-by-one error
...
We were not filling the last free space in the custom color
row.
2014-10-09 00:12:46 -04:00
Matthias Clasen
b9941d0dde
Fix a documentation copy-paste error
...
The color chooser doesn't deal with fonts.
2014-06-27 23:53:03 -04:00
Matthias Clasen
c411de437a
GtkColorChooserWidget: Explicitly notify for use-alpha
2014-06-09 13:30:59 -04:00
Matthias Clasen
2036c150ea
Avoid a compiler warning
2014-05-22 08:32:48 -04:00
Matthias Clasen
8591f452f0
ColorChooser: Emit notification for editor changes
...
When the color editor is visible, there is no way for the
application to know about the changes that are happening.
Fix this by emitting property notification for the "rgba"
property.
http://bugzilla.gnome.org/show_bug.cgi?id=708037
2014-05-21 19:23:56 -04:00
Marcus Karlsson
19510cdec7
GtkColorChooserWidget: Redraw swatches when selection changes
...
When selecting a swatch in a GtkColorChooserWidget the previously
selected swatch and the currently selected swatch are not redrawn. This
can leave the old swatch still marked with a checkbox even though a new
swatch has been selected.
Redraw the swatches after changing the selection.
https://bugzilla.gnome.org/show_bug.cgi?id=727487
2014-04-13 22:10:35 -07:00
Matthias Clasen
29cd52c854
Emit a11y state change notification for color swatches
...
Improve the color swatch accessible to set a proper role
depending on whether the swatch is selectable or not, and
set the checked atk state when appropriate.
https://bugzilla.gnome.org/show_bug.cgi?id=721048
2014-01-05 10:54:43 -05:00
Matthias Clasen
b962d7686a
Color chooser: More accessible names
...
Set the accessible name of the 'custom color' button too.
2014-01-05 09:21:32 -05:00
Matthias Clasen
c6175bbe68
GtkColorChooserWidget: Set accessible names
...
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721053
we should set the accessible name on the color swatch widgets,
not the descriptions.
2014-01-04 23:30:28 -05:00
Emmanuele Bassi
0899ef7cc9
gtk: Use new macros for defining private data
...
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Michael Hofmann
670e532a6b
GtkColorChooserWidget: deselect swatch before removing palettes
...
When adding custom palettes, set the current swatch to NULL if the
palette it is on is going to be removed.
https://bugzilla.gnome.org/show_bug.cgi?id=693995
2013-03-04 18:32:00 -05:00
Matthias Clasen
db986ddc4f
color chooser: give GSettings schema a path
...
The code is always instantiating this schema at a fixed location, so why
is it relocatable?
Add a path so that it shows up properly in dconf-editor, and from the
gsettings commandline tool.
2013-01-23 07:48:26 -05:00
Matthias Clasen
01cfe1b595
Plug a leak
2012-09-16 00:49:04 -04:00
Matthias Clasen
33004cb5e6
colorchooser: Fix default palette orientation
...
The switch from boolean to orientation failed to account
for the default palette.
2012-03-07 21:12:32 -05:00
Benjamin Otte
4d6a6be897
API: colorchooser: Use GtkOrientation for orientation
...
Unfortunately, this swaps the values from the previous state.
But it's definitely a nicer API.
2012-03-07 03:11:05 +01:00
Christian Persch
5a8dba7eac
colorchooser: Allow removing the palettes again
...
https://bugzilla.gnome.org/show_bug.cgi?id=671057
2012-03-04 00:29:04 -05:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
140e884868
Symbol exporting fixes
2012-02-21 01:50:19 +01:00
Cosimo Cecchi
e76bdb1b98
color-chooser-widget: set a name on the "Add color" button
...
So we can easily catch it from the theme.
2012-02-20 13:53:10 +01:00
Matthias Clasen
453aecd346
Improve a11y names for colors
...
Only read alpha if it is != 1, and read percentages also for
'unnamed' palette colors.
2012-02-14 16:37:04 -05:00
Matthias Clasen
18ea4825cf
Mark color names as translatable
2012-02-14 16:37:04 -05:00
Cosimo Cecchi
6dbb4d6384
color-widget: don't use a GtkAlignment to center the color editor
...
We can just use a GtkBox, and set hexpand=TRUE/halign=CENTER to allocate
the editor in the middle of the box.
2012-02-14 16:37:01 -05:00
Matthias Clasen
92618eb8e2
GtkColorSwatch: Use widget state instead of a custom 'selected'
2012-02-14 16:37:00 -05:00
Matthias Clasen
9cc827fcd1
A11y improvements
2012-02-14 16:37:00 -05:00
Matthias Clasen
dc1929a9de
Avoid a 10th custom color
2012-02-14 16:37:00 -05:00
Matthias Clasen
05e2124f24
GtkColorChooserWidget: emit notification for ::show-editor
2012-02-14 16:36:59 -05:00
Matthias Clasen
7f44feab19
Fix use_alpha initialization and propagation
...
We must set use_alpha to TRUE initially, and when passing it
down to the swatches, we must iterate over the custom box, too.
2012-02-14 16:36:59 -05:00
Matthias Clasen
bad24bc119
Consistently private headers
...
Add a 'private' suffix to all newly introduced private
headers.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
74a53b542b
color-widget: use a GtkBox for the custom section
...
Since we only allow a single row there, it's better to just use a
GtkBox, and use :first-child, :last-child and :only-child to style
swatches in there.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
9da3d8b7b9
color-widget: add LEFT/RIGHT/TOP/BOTTOM style classes to the swatches
...
As we add them to the grid, for setting theming properties.
2012-02-14 16:36:58 -05:00
Matthias Clasen
8f201d62d9
Add API to set palettes
...
I'm not really convinced by this; the API is a little complicated.
May need more thought.
2012-02-14 16:36:56 -05:00
Matthias Clasen
d7cff0797e
Misc cleanups
2012-02-14 16:36:56 -05:00
Matthias Clasen
cb128cc6e9
Deprecate old color selection widgets
...
GtkColorSelectionDialog, GtkColorSelection and GtkHSV have
been superseded by the GtkColorChooser* family of widgets.
2012-02-14 16:36:55 -05:00
Matthias Clasen
23a5f7a22c
Add docs
2012-02-14 16:36:55 -05:00
Matthias Clasen
c5cfb6e02b
Rework the API a bit
...
Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
2012-02-14 16:36:55 -05:00