]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoDocumentation: Correct references to properties.
Murray Cumming [Wed, 15 Feb 2012 10:43:33 +0000 (11:43 +0100)]
Documentation: Correct references to properties.

These should use :, not ::, though signals would use ::.
See
http://developer.gnome.org/gtk-doc-manual/unstable/documenting_syntax.html.en
and
http://developer.gnome.org/gtk-doc-manual/unstable/documenting_symbols.html.en

12 years agoRemove obsolete reference to gtk.css.raleigh
Rico Tzschichholz [Wed, 15 Feb 2012 07:03:05 +0000 (08:03 +0100)]
Remove obsolete reference to gtk.css.raleigh

12 years agoAdd color and font chooser to the widget gallery
Matthias Clasen [Wed, 15 Feb 2012 04:48:36 +0000 (23:48 -0500)]
Add color and font chooser to the widget gallery

12 years agoDocs: Reorder a sections
Matthias Clasen [Wed, 15 Feb 2012 04:36:02 +0000 (23:36 -0500)]
Docs: Reorder a sections

12 years agoGtkColorSwatch: Add accessible actions
Matthias Clasen [Wed, 15 Feb 2012 02:03:11 +0000 (21:03 -0500)]
GtkColorSwatch: Add accessible actions

12 years agoGtkNotebook: emit child-notify::position on drag 'n drop reorder
Claudio Saavedra [Tue, 14 Feb 2012 15:26:03 +0000 (17:26 +0200)]
GtkNotebook: emit child-notify::position on drag 'n drop reorder

https://bugzilla.gnome.org/show_bug.cgi?id=669116

12 years agoGtkNotebook: emit child-notify::position on page add/removal
Claudio Saavedra [Fri, 10 Feb 2012 14:46:57 +0000 (16:46 +0200)]
GtkNotebook: emit child-notify::position on page add/removal

For each page added/removed, notify all the other children changing
position.

https://bugzilla.gnome.org/show_bug.cgi?id=669116

12 years agoRevert "Add a button to back to the palette"
Matthias Clasen [Tue, 14 Feb 2012 21:39:05 +0000 (16:39 -0500)]
Revert "Add a button to back to the palette"

This reverts commit 32f1a5ad8373109c923f36cc0a9a579ab1a8770f.

12 years agocolor-scale: remove Adwaita GtkColorScale trough hack
Cosimo Cecchi [Tue, 14 Feb 2012 19:02:43 +0000 (14:02 -0500)]
color-scale: remove Adwaita GtkColorScale trough hack

Instead of special-casing Adwaita, apply the half-width logic for themes
that have a scale slider with vertical proportions.
Also, simplify the rendering code a bit by factoring out the trough
sizing logic.

12 years agocolorchooser: factor out a private method to get the checkboard pattern
Cosimo Cecchi [Tue, 14 Feb 2012 17:16:56 +0000 (12:16 -0500)]
colorchooser: factor out a private method to get the checkboard pattern

And use it in the color widgets.

12 years agoImprove a11y names for colors
Matthias Clasen [Sun, 12 Feb 2012 00:03:45 +0000 (19:03 -0500)]
Improve a11y names for colors

Only read alpha if it is != 1, and read percentages also for
'unnamed' palette colors.

12 years agoUpdate TODO
Matthias Clasen [Fri, 10 Feb 2012 22:39:07 +0000 (17:39 -0500)]
Update TODO

12 years agoUpdate POTFILES
Matthias Clasen [Fri, 10 Feb 2012 22:38:43 +0000 (17:38 -0500)]
Update POTFILES

12 years agoMark color names as translatable
Matthias Clasen [Fri, 10 Feb 2012 22:38:22 +0000 (17:38 -0500)]
Mark color names as translatable

12 years agoGtkColorScale: fix an RTL issue
Matthias Clasen [Fri, 10 Feb 2012 00:05:20 +0000 (19:05 -0500)]
GtkColorScale: fix an RTL issue

When using a horizontal scale in RTL, we need to flip the
background image to go along with the flipped scale.

12 years agotest-toplevelembed: use new GtkColorChooserDialog
Cosimo Cecchi [Thu, 9 Feb 2012 21:24:24 +0000 (16:24 -0500)]
test-toplevelembed: use new GtkColorChooserDialog

12 years agotestgtk: use GtkColorChooserDialog instead of GtkColorSelectionDialog
Cosimo Cecchi [Thu, 9 Feb 2012 21:23:30 +0000 (16:23 -0500)]
testgtk: use GtkColorChooserDialog instead of GtkColorSelectionDialog

12 years agoprop-editor: don't use GtkColorButton deprecated API
Cosimo Cecchi [Thu, 9 Feb 2012 21:23:05 +0000 (16:23 -0500)]
prop-editor: don't use GtkColorButton deprecated API

12 years agogtk-demo: use the new GtkColorChooserDialog in the color demo
Cosimo Cecchi [Thu, 9 Feb 2012 21:21:45 +0000 (16:21 -0500)]
gtk-demo: use the new GtkColorChooserDialog in the color demo

12 years agocolorsel: include gtkcolorutils.h
Cosimo Cecchi [Thu, 9 Feb 2012 21:21:22 +0000 (16:21 -0500)]
colorsel: include gtkcolorutils.h

Fix the build

12 years agocolor-widget: don't use a GtkAlignment to center the color editor
Cosimo Cecchi [Thu, 9 Feb 2012 20:10:21 +0000 (15:10 -0500)]
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.

12 years agocolor-editor: don't use a GtkAlignment to layout popups
Cosimo Cecchi [Thu, 9 Feb 2012 19:25:53 +0000 (14:25 -0500)]
color-editor: don't use a GtkAlignment to layout popups

Set a margin on the contents and use a box instead.

12 years agocolor-editor: don't use an alignment to give the popup extra space
Cosimo Cecchi [Thu, 9 Feb 2012 19:06:43 +0000 (14:06 -0500)]
color-editor: don't use an alignment to give the popup extra space

12 years agocolor-editor: also set a row spacing in the popup tooltip
Cosimo Cecchi [Thu, 9 Feb 2012 17:17:40 +0000 (12:17 -0500)]
color-editor: also set a row spacing in the popup tooltip

12 years agocolor-button: simplify internal children
Cosimo Cecchi [Thu, 9 Feb 2012 15:48:10 +0000 (10:48 -0500)]
color-button: simplify internal children

Instead of going GtkAlignment->GtkFrame->GtkAlignment, just pack a
GtkDrawingArea inside the button, and use halign/margin properties to
get the desired layout.

12 years agocolor-swatch: cleanup unused property enum value
Cosimo Cecchi [Thu, 9 Feb 2012 15:00:25 +0000 (10:00 -0500)]
color-swatch: cleanup unused property enum value

12 years agoRevert an accidental commit
Matthias Clasen [Thu, 9 Feb 2012 12:04:46 +0000 (07:04 -0500)]
Revert an accidental commit

12 years agoGtkColorSwatch: Use widget state instead of a custom 'selected'
Matthias Clasen [Thu, 9 Feb 2012 04:48:11 +0000 (23:48 -0500)]
GtkColorSwatch: Use widget state instead of a custom 'selected'

12 years agoA11y improvements
Matthias Clasen [Thu, 9 Feb 2012 04:21:41 +0000 (23:21 -0500)]
A11y improvements

12 years agoGtkColorSwatch: Drop an unnecessary field
Matthias Clasen [Thu, 9 Feb 2012 03:56:14 +0000 (22:56 -0500)]
GtkColorSwatch: Drop an unnecessary field

12 years agoAvoid a 10th custom color
Matthias Clasen [Thu, 9 Feb 2012 03:12:31 +0000 (22:12 -0500)]
Avoid a 10th custom color

12 years agoFill the custom palette up some more
Matthias Clasen [Thu, 9 Feb 2012 03:04:49 +0000 (22:04 -0500)]
Fill the custom palette up some more

12 years agoAdd a button to back to the palette
Matthias Clasen [Thu, 9 Feb 2012 02:55:22 +0000 (21:55 -0500)]
Add a button to back to the palette

This is just for trying this out; if it is considered good,
it will be moved into GtkColorChooserDialog

12 years agoGtkColorChooserDialog: propagate notification for ::show-editor
Matthias Clasen [Thu, 9 Feb 2012 02:54:55 +0000 (21:54 -0500)]
GtkColorChooserDialog: propagate notification for ::show-editor

12 years agoGtkColorChooserWidget: emit notification for ::show-editor
Matthias Clasen [Thu, 9 Feb 2012 02:54:31 +0000 (21:54 -0500)]
GtkColorChooserWidget: emit notification for ::show-editor

12 years agoDocument gtk_color_chooser_add_palette
Matthias Clasen [Thu, 9 Feb 2012 02:25:02 +0000 (21:25 -0500)]
Document gtk_color_chooser_add_palette

12 years agoFix use_alpha initialization and propagation
Matthias Clasen [Thu, 9 Feb 2012 01:21:10 +0000 (20:21 -0500)]
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.

12 years agoRemove unused variables
Matthias Clasen [Thu, 9 Feb 2012 00:55:37 +0000 (19:55 -0500)]
Remove unused variables

12 years agoConsistently private headers
Matthias Clasen [Thu, 9 Feb 2012 00:36:10 +0000 (19:36 -0500)]
Consistently private headers

Add a 'private' suffix to all newly introduced private
headers.

12 years agoFix the build
Matthias Clasen [Thu, 9 Feb 2012 00:06:14 +0000 (19:06 -0500)]
Fix the build

A G_BEGIN_DECLS went missing here.

12 years agocolor-swatch: remove gtk_color_swatch_set_corner_radii()
Cosimo Cecchi [Wed, 8 Feb 2012 23:08:52 +0000 (18:08 -0500)]
color-swatch: remove gtk_color_swatch_set_corner_radii()

It's unused now.

12 years agocolor-widget: use a GtkBox for the custom section
Cosimo Cecchi [Wed, 8 Feb 2012 23:06:50 +0000 (18:06 -0500)]
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.

12 years agocolor-widget: add LEFT/RIGHT/TOP/BOTTOM style classes to the swatches
Cosimo Cecchi [Wed, 8 Feb 2012 22:38:20 +0000 (17:38 -0500)]
color-widget: add LEFT/RIGHT/TOP/BOTTOM style classes to the swatches

As we add them to the grid, for setting theming properties.

12 years agocolor-editor: don't call gtk_color_swatch_set_corner_radii()
Cosimo Cecchi [Wed, 8 Feb 2012 22:35:59 +0000 (17:35 -0500)]
color-editor: don't call gtk_color_swatch_set_corner_radii()

It's going away.

12 years agocolor-swatch: don't hardcode list-add-symbolic as swatch icon
Cosimo Cecchi [Wed, 8 Feb 2012 21:51:01 +0000 (16:51 -0500)]
color-swatch: don't hardcode list-add-symbolic as swatch icon

We have that as a property, we should use it.

12 years agocolor-swatch: allow styling the "active badge"
Cosimo Cecchi [Wed, 8 Feb 2012 21:30:29 +0000 (16:30 -0500)]
color-swatch: allow styling the "active badge"

Instead of calling gtk_render_check() there, just render a symbolic
icon, falling back to a built-in one if the icon is not available.
Also, add a style class for the active badge on the swatch:
"color-active-badge".

12 years agocolor-swatch: use GtkThemingBackground to draw the background
Cosimo Cecchi [Wed, 8 Feb 2012 21:37:25 +0000 (16:37 -0500)]
color-swatch: use GtkThemingBackground to draw the background

This allows e.g. for the corner radii to be styled directly from the
theme.

12 years agocolor-swatch: add a color-light/color-dark style class for intensity
Cosimo Cecchi [Wed, 8 Feb 2012 21:35:57 +0000 (16:35 -0500)]
color-swatch: add a color-light/color-dark style class for intensity

Themes might want to set different colors on the badge if the displayed
color is light or dark. Use a style class for this when we set a color
on the swatch.

12 years agothemingbackground: make it based on GtkStyleContext
Cosimo Cecchi [Wed, 8 Feb 2012 21:29:16 +0000 (16:29 -0500)]
themingbackground: make it based on GtkStyleContext

Instead of GtkThemingEngine. This will allow for the object to be also
used from inside e.g. a _draw() method.

12 years agoroundedbox: add _apply_border_radius() variations for engine/context
Cosimo Cecchi [Wed, 8 Feb 2012 21:27:39 +0000 (16:27 -0500)]
roundedbox: add _apply_border_radius() variations for engine/context

And make the base function just use the raw corner radii struct.

12 years agothemingengine: add a private _gtk_theming_engine_get_context()
Cosimo Cecchi [Wed, 8 Feb 2012 21:10:01 +0000 (16:10 -0500)]
themingengine: add a private _gtk_theming_engine_get_context()

We'll need this later.

12 years agothemingengine: move _gtk_theming_engine_set_context to private header
Cosimo Cecchi [Wed, 8 Feb 2012 21:09:15 +0000 (16:09 -0500)]
themingengine: move _gtk_theming_engine_set_context to private header

Where it belongs.

12 years agoAdd API to set palettes
Matthias Clasen [Sat, 4 Feb 2012 06:45:55 +0000 (01:45 -0500)]
Add API to set palettes

I'm not really convinced by this; the API is a little complicated.
May need more thought.

12 years agoMisc cleanups
Matthias Clasen [Sat, 4 Feb 2012 05:02:49 +0000 (00:02 -0500)]
Misc cleanups

12 years agotestcolorchooser: Add more options
Matthias Clasen [Sat, 4 Feb 2012 04:45:24 +0000 (23:45 -0500)]
testcolorchooser: Add more options

Add a --edit option that brings the color chooser up in
single-color edit mode right away.

12 years agoDeprecate old color selection widgets
Matthias Clasen [Sat, 4 Feb 2012 01:38:21 +0000 (20:38 -0500)]
Deprecate old color selection widgets

GtkColorSelectionDialog, GtkColorSelection and GtkHSV have
been superseded by the GtkColorChooser* family of widgets.

12 years agoAdd docs
Matthias Clasen [Sat, 4 Feb 2012 00:40:36 +0000 (19:40 -0500)]
Add docs

12 years agoSmall documentation tweaks in font choosers
Matthias Clasen [Sat, 4 Feb 2012 00:39:10 +0000 (19:39 -0500)]
Small documentation tweaks in font choosers

12 years agoRework the API a bit
Matthias Clasen [Fri, 3 Feb 2012 23:34:33 +0000 (18:34 -0500)]
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.

12 years agoSimplify GtkColorScale private api a bit
Matthias Clasen [Fri, 3 Feb 2012 17:13:06 +0000 (12:13 -0500)]
Simplify GtkColorScale private api a bit

12 years agoFix up exported symbols
Matthias Clasen [Fri, 3 Feb 2012 12:41:14 +0000 (07:41 -0500)]
Fix up exported symbols

Only GtkColorChooser* is public for now.

12 years agoAdd a small comments
Matthias Clasen [Fri, 3 Feb 2012 12:27:10 +0000 (07:27 -0500)]
Add a small comments

12 years agoDismiss popups on show
Matthias Clasen [Fri, 3 Feb 2012 11:49:08 +0000 (06:49 -0500)]
Dismiss popups on show

This ensures that the editor always comes up without popups,
even when it is reused.

12 years agoAdd more todos
Matthias Clasen [Fri, 3 Feb 2012 07:12:52 +0000 (02:12 -0500)]
Add more todos

12 years agoAdd some accessible labels
Matthias Clasen [Fri, 3 Feb 2012 07:09:44 +0000 (02:09 -0500)]
Add some accessible labels

12 years agoMark strings for translation
Matthias Clasen [Fri, 3 Feb 2012 06:48:29 +0000 (01:48 -0500)]
Mark strings for translation

12 years agoFinishing touches
Matthias Clasen [Fri, 3 Feb 2012 06:41:45 +0000 (01:41 -0500)]
Finishing touches

Implement popups in the editor, fix window sizing, fix RTL flipping.
GtkColorPlane is now using adjustments, and GtkColorEditor is using
adjustments as its model as well.

12 years agoAllow context menus on scale sliders
Matthias Clasen [Fri, 3 Feb 2012 06:41:07 +0000 (01:41 -0500)]
Allow context menus on scale sliders

This will be used for a popup in the color chooser.

12 years agoOnly activate on double-click
Matthias Clasen [Thu, 2 Feb 2012 22:43:49 +0000 (17:43 -0500)]
Only activate on double-click

12 years agoRemove an erraneous g_free call
Matthias Clasen [Thu, 2 Feb 2012 12:08:06 +0000 (07:08 -0500)]
Remove an erraneous g_free call

12 years agoAdd an Adwaita hack
Matthias Clasen [Thu, 2 Feb 2012 06:16:00 +0000 (01:16 -0500)]
Add an Adwaita hack

When the theme is Adwaita, let the thumb extend out over the
colored trough.

12 years agoDraw no trough for color scales
Matthias Clasen [Thu, 2 Feb 2012 05:58:49 +0000 (00:58 -0500)]
Draw no trough for color scales

12 years agoMove color scales into separate widget
Matthias Clasen [Thu, 2 Feb 2012 05:58:26 +0000 (00:58 -0500)]
Move color scales into separate widget

12 years agoFix a few problems with custom color replacement
Matthias Clasen [Wed, 1 Feb 2012 07:00:21 +0000 (02:00 -0500)]
Fix a few problems with custom color replacement

We were allowing one too many custom colors in, and when one
of them was dropped, we did not update the shape of the penultimate
one.

12 years agoMake color chooser always come up with palette
Matthias Clasen [Wed, 1 Feb 2012 06:53:08 +0000 (01:53 -0500)]
Make color chooser always come up with palette

12 years agoShow new color chooser from color button
Matthias Clasen [Wed, 1 Feb 2012 06:51:42 +0000 (01:51 -0500)]
Show new color chooser from color button

12 years agoUse a swatch in the editor
Matthias Clasen [Wed, 1 Feb 2012 05:58:07 +0000 (00:58 -0500)]
Use a swatch in the editor

For now, we simply make it insensitive to turn off unwanted
interactivity.

12 years agoDon't waste memory
Matthias Clasen [Wed, 1 Feb 2012 05:37:58 +0000 (00:37 -0500)]
Don't waste memory

12 years agoPreliminary color sliders
Matthias Clasen [Wed, 1 Feb 2012 05:37:36 +0000 (00:37 -0500)]
Preliminary color sliders

12 years agoMake alpha optional
Matthias Clasen [Tue, 31 Jan 2012 07:05:37 +0000 (02:05 -0500)]
Make alpha optional

12 years agoShow alpha in the palette as well
Matthias Clasen [Tue, 31 Jan 2012 05:58:07 +0000 (00:58 -0500)]
Show alpha in the palette as well

12 years agoNo popup menu on the button
Matthias Clasen [Tue, 31 Jan 2012 05:39:00 +0000 (00:39 -0500)]
No popup menu on the button

12 years agoMake saving custom colors work as intended
Matthias Clasen [Tue, 31 Jan 2012 05:31:41 +0000 (00:31 -0500)]
Make saving custom colors work as intended

The custom colors are now pushed over to the right as new ones
are added, and everything beyond the 9th row gets dropped.
Customized colors are added to the custom colors array.

12 years agoChoose a different initial color when adding custom colors
Matthias Clasen [Tue, 31 Jan 2012 04:40:13 +0000 (23:40 -0500)]
Choose a different initial color when adding custom colors

Going for pure red 'hides' the hairline at the edge of the
plane. This color makes it nicely visible.

12 years agoShow editor when clicking custom button
Jon McCann [Tue, 31 Jan 2012 02:16:14 +0000 (21:16 -0500)]
Show editor when clicking custom button

12 years agoAlign label with swatches
Jon McCann [Tue, 31 Jan 2012 02:06:13 +0000 (21:06 -0500)]
Align label with swatches

12 years agoAdd Tangoish grayscales
Jon McCann [Tue, 31 Jan 2012 01:31:13 +0000 (20:31 -0500)]
Add Tangoish grayscales

12 years agoUse the Tango palette by default
Jon McCann [Tue, 31 Jan 2012 01:01:23 +0000 (20:01 -0500)]
Use the Tango palette by default

12 years agoMove the plane into a separate widget
Matthias Clasen [Mon, 30 Jan 2012 23:37:00 +0000 (18:37 -0500)]
Move the plane into a separate widget

12 years agoInitial work on a color editor
Matthias Clasen [Mon, 30 Jan 2012 14:56:20 +0000 (09:56 -0500)]
Initial work on a color editor

This replaces GtkHSV with a compound widget featuring
a hue slider and an sv-plane, amongst others.

12 years agoAdd a simple color chooser test
Matthias Clasen [Sun, 29 Jan 2012 15:43:42 +0000 (10:43 -0500)]
Add a simple color chooser test

12 years agoInitial cut at implementing a new color chooser
Matthias Clasen [Sun, 29 Jan 2012 15:42:34 +0000 (10:42 -0500)]
Initial cut at implementing a new color chooser

This is a partial implementation of
https://live.gnome.org/GnomeOS/Design/Whiteboards/ColorSelection
The new color editor has not been implemented yet.

12 years agoRemove leftover debug spew
Matthias Clasen [Tue, 14 Feb 2012 18:05:46 +0000 (13:05 -0500)]
Remove leftover debug spew

12 years agoabout-dialog: set proper spacing between columnns in credits section
Cosimo Cecchi [Tue, 14 Feb 2012 16:26:16 +0000 (11:26 -0500)]
about-dialog: set proper spacing between columnns in credits section

Spacing ended up being really tight; add another 6px.

https://bugzilla.gnome.org/show_bug.cgi?id=668114

12 years agoabout-dialog: don't set a margin around the license area
Cosimo Cecchi [Tue, 14 Feb 2012 16:21:52 +0000 (11:21 -0500)]
about-dialog: don't set a margin around the license area

Make it consistent with the credits page.

https://bugzilla.gnome.org/show_bug.cgi?id=670077

12 years agoabout-dialog: add a stroke around the credits area
Cosimo Cecchi [Tue, 14 Feb 2012 16:19:04 +0000 (11:19 -0500)]
about-dialog: add a stroke around the credits area

Makes it consistent with e.g. the license page.

https://bugzilla.gnome.org/show_bug.cgi?id=670078

12 years agoSet a bg on GtkViewport to ensure we get fast scrolling
Alexander Larsson [Tue, 14 Feb 2012 14:14:37 +0000 (15:14 +0100)]
Set a bg on GtkViewport to ensure we get fast scrolling

Otherwise it will use the default alpha transparency and
not scroll efficiently.

12 years agotreeview: don't use gtk_render_focus() for dnd indicator
Cosimo Cecchi [Tue, 14 Feb 2012 03:43:07 +0000 (22:43 -0500)]
treeview: don't use gtk_render_focus() for dnd indicator

There's no reason this should be a focus ring rather than an actual
frame. In the past this was probably used to get a dashed effect, but
now we even support that natively for borders.

12 years agotreeview: set "dnd" style class when drawing drag and drop indicators
Cosimo Cecchi [Tue, 14 Feb 2012 03:19:53 +0000 (22:19 -0500)]
treeview: set "dnd" style class when drawing drag and drop indicators

This is useful to theme the rings that appear around rows on drag and
drop.

12 years agoAlways make offscreen window rgba
Alexander Larsson [Mon, 13 Feb 2012 14:04:32 +0000 (15:04 +0100)]
Always make offscreen window rgba

This fixes issues where the new default bg of transparent
didn't work, making offscreen windows black.

I don't think this is a practical performance problem.
Offscreen windows are rarely used and generally used for
graphics tricks like alpha anyway.