Cosimo Cecchi
503be10148
label: plug a memory leak
2010-12-07 10:13:32 +01:00
Cosimo Cecchi
6f67f5281f
app-chooser-widget: plug a memory leak
2010-12-07 10:08:47 +01:00
Tristan Van Berkom
5fef00de2c
Adding gtk_tree_view_column_new_with_area to gtk.symbols and gtk3-sections.txt.
2010-12-07 17:04:04 +09:00
Tristan Van Berkom
1b33698384
Revert "Temporary fix to make separator rows request enough space for the expander size."
...
This reverts commit 515af9ce70
.
2010-12-07 14:09:26 +09:00
Tristan Van Berkom
515af9ce70
Temporary fix to make separator rows request enough space for the expander size.
...
This fix is incorrect, treeviews dont rely on the expander size for drawing
separator rows (added XXX comment in line), need to fix this somewhere else
2010-12-07 13:52:31 +09:00
Tristan Van Berkom
97e060b094
Fixed my mistake in validate_row (), now the height of treeviews in GtkEntryCompletion is correct again.
2010-12-07 13:52:18 +09:00
Matthias Clasen
fae1e74812
More !srcdir fixes for the stylecontext test
2010-12-06 19:05:18 -05:00
Matthias Clasen
26f6b48ccb
Update for the removal of gtk_decorated_window_ apis
2010-12-06 17:44:12 -05:00
Matthias Clasen
f2ab9e497d
Prepare the stylecontext test to run out-of-srcdir
...
This is necessary to make distcheck work.
2010-12-06 14:13:07 -05:00
Matthias Clasen
ad80cb6279
Allow + in identifiers
...
This is necessary since we treat paths as identifiers in
@import rules, and it is common to have a + in there (at least
when distchecking gtk+ ...)
2010-12-06 14:13:07 -05:00
Benjamin Otte
fc711434bc
gtk: Remove old DirectFB code for drawing window decorations
...
I'm not sure it'd even compile.
2010-12-06 18:57:11 +01:00
Murray Cumming
d23fb64d97
Fix a typo to fix the build.
2010-12-06 16:01:55 +01:00
Matthias Clasen
5f75ffc974
Add gtk_widget_path_get_type to the headers
...
Bug 636591
2010-12-06 09:50:01 -05:00
Tristan Van Berkom
55bbe4a3a5
Adding gtk_tree_view_column_new_with_area().
...
Creates a treeviewcolumn using a specific GtkCellArea.
This patch also makes GtkEntryCompletion use the new api
instead of g_object_new().
2010-12-06 19:04:51 +09:00
Tristan Van Berkom
f08f1f92aa
Fixed some nit-picking bugs in GtkCellArea
...
- Dont try fetching a cell renderer for an event when the event
coordinate is outside the cell area allocation (can happen
on the y axis, not all events are button events).
- Dont remove focus-line-width (inner area) an extra time from
GtkCellArea->event
- Dont remove focus-line-width from the cell area at all for the
editable widget... use the whole area including the focus line
(compared with git master behaviour and now it looks right, check
the multiline editable string in testtreeedit).
2010-12-06 17:27:03 +09:00
Tristan Van Berkom
0d0ec85877
Fixed GtkTreeViewColumn to reset the context when _gtk_tree_view_column_cell_set_dirty is called.
...
This fixes autosize columns... result can be viewable by checking
tests/testtreeview and setting the second column to autosize and then
expanding/colapsing some rows.
2010-12-06 17:03:53 +09:00
Tristan Van Berkom
bf1aa2ad87
Changed GtkTreeViewColumn->requested_width to ->padding
...
Now we bookkeep the treeview assigned padding asides from the
requested width stored in the GtkCellAreaContext, this removes
the need for bookkeeping the deepest expanded depth in gtktreeview.c
At allocation time, just remove the padding from the allocated width
of the column and feed the rest to the underlying cell area.
2010-12-06 16:31:07 +09:00
Tristan Van Berkom
9366a345b4
Fix GtkCellAreaBox allocate_cells_manually to handle undersized areas.
2010-12-06 16:29:40 +09:00
Tristan Van Berkom
c6572265cb
Fixed gtk-doc statement in GtkCellArea header
2010-12-06 16:29:13 +09:00
Matthias Clasen
f1fafca6ca
Make invalid stylesheets fail to parse again
...
The recent improvements to error reporting caused gtk_css_provider_load...
to always return TRUE and leave the error unset. Error messages were instead
dumped out with g_message, which is not helpful.
This commit changes things back to the way they were before:
If a GError is passed in, parsing will fail at the first error, reporting
it in the given GError. If no GError is passed in, we keep going and
just issue the warning messages. This fixes the parser tests.
2010-12-06 00:47:13 -05:00
Matthias Clasen
94c9eb72ce
Don't use g_warning when loading an engine fails
...
This causes the tests to abort if clearlooks can't be found.
2010-12-06 00:44:01 -05:00
Tristan Van Berkom
2588165bfb
Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclasses
...
gtk_cell_area_foreach_alloc() itterates over an allocated list of cells
and calls a callback with the cell's allocation until the callback returns
TRUE.
- Removed vfunc get_cell_allocation() and implemented
gtk_cell_area_get_cell_allocation() using foreach_alloc()
- Added gtk_cell_area_get_cell_at_position() using foreach_alloc()
- Removed GtkCellAreaBox ->event() implementation and implemented
mouse "click" cell activation in GtkCellArea class directly using
gtk_cell_area_get_cell_at_position().
2010-12-06 14:11:28 +09:00
Tristan Van Berkom
4b065f5389
Changed gtk_cell_area_forall to gtk_cell_area_foreach since thats more widely used semantics.
...
Also gave a boolean return value to the callback to allow breaking out of the loop.
2010-12-06 12:41:38 +09:00
Benjamin Otte
d378470e87
appchooser: Remove bogus function declaration
2010-12-06 01:30:19 +01:00
Benjamin Otte
6d6ee9a26a
style: Remove unused code
2010-12-06 01:02:52 +01:00
Benjamin Otte
645d0ac403
API: gdk: Remove depth argument from gdk_window_get_geometry()
...
We don't want to expose depth anymore. If you need it, query the visual.
2010-12-06 01:02:52 +01:00
Paolo Borelli
b36cb87df9
Use the new style context API in GtkButton
...
Mostly replaces gtk_widget_style_get with gtk_style_context_get_style
2010-12-05 23:12:32 +01:00
Paolo Borelli
4a7e746bbc
Use the new style context API in GtkLabel.
2010-12-05 22:07:30 +01:00
Paolo Borelli
561346bd40
Remove unused function modify_color_property
2010-12-05 22:07:30 +01:00
Carlos Garnacho
4cca7554b8
GtkStyleContext: warn on meaningless coords in gtk_render_* calls
2010-12-05 20:19:55 +01:00
Carlos Garnacho
5361490db8
Bug 636511 - New style override functions do not work on textview
...
Emit ::style-set on overrider style changes, this is necessary
in the mean time so widgets not listening yet to ::style-updated
get the style changes.
2010-12-05 20:19:55 +01:00
Kristian Rietveld
d28cbd6e6d
Bring back _gtk_tree_view_column_get_cell_at_pos
...
The function has been re-implemented around GtkCellArea. This commits
also brings back the invocation of this function in
gtk_tree_view_button_press(). I shouldn't have removed this.
2010-12-05 18:18:36 +01:00
Matthias Clasen
d5df33c75f
Fix abi check after recent merges
2010-12-05 12:18:30 -05:00
Kristian Rietveld
2a6550176c
Replace FIRST_PIXEL macros with something that's more clear
2010-12-05 18:04:07 +01:00
Kristian Rietveld
7fe950a745
Clean up and clarify row height calculations
2010-12-05 17:56:30 +01:00
Kristian Rietveld
924359c31d
Clean up _gtk_tree_view_column_cell_event
2010-12-05 17:12:37 +01:00
Kristian Rietveld
6c73647727
Remove the need for _gtk_tree_view_column_get_focus_area
2010-12-05 17:10:21 +01:00
Kristian Rietveld
64ddd3f40f
Clarify start_pos parameter gtk_tree_view_column_cell_get_position
...
By renaming it to x_offset.
2010-12-05 17:04:52 +01:00
Kristian Rietveld
77d972e436
Remove private accessor for focus column
2010-12-05 15:20:17 +01:00
Kristian Rietveld
0a1982aff3
Move _gtk_tree_view_column_cell_focus to gtktreeview.c
2010-12-05 15:18:13 +01:00
Kristian Rietveld
131783005e
Use structure bitfield instead of GtkTreeViewFlags
2010-12-05 15:12:53 +01:00
Kristian Rietveld
73f99eda1d
Turn TREE_VIEW_DRAW_EXPANDERS into an inline function
2010-12-05 14:47:51 +01:00
Kristian Rietveld
ebba08a842
Remove unused TREE_VIEW_COLUMN_REQUESTED_WIDTH macro
2010-12-05 14:42:40 +01:00
Kristian Rietveld
43de55d7a9
Turn TREE_VIEW_HEADER_HEIGHT into an inline function
2010-12-05 14:42:08 +01:00
Tristan Van Berkom
3ca2ec5d2d
Fixed conflicts from rebasing GtkTreeViewColumn changes from treeview-refactor.
2010-12-05 22:15:19 +09:00
Tristan Van Berkom
78979b2954
Removing hack and fixing gtk_tree_view_column_cell_get_size().
...
Now consult gtk_cell_area_context_get_preferred_height().
It can be that height-for-widths requested here were too large
when multiple cells are in play because of the alignments stored
in the context... removing the temporary focus-line-width hack.
2010-12-05 22:14:52 +09:00
Tristan Van Berkom
1b28d87253
Added GtkTreeViewColumn:cell-area construct-only property.
...
Allow feeding treeviewcolumn a custom cell-area (or not a custom one,
but allow sharing the cell-area with say, the combo-box area).
This patch also:
- Fixes signal connections to the area (now they do eventually get
disconnected at dispose time, they are handled regardless if a
treeview is set but execute safely, at least there is only one
connection/disconnection).
- Fixes refcounting on the cell_area (GtkCellArea is GInitiallyUnowned).
- Adds a constructor() in order to build the cell-area if one has
not been provided by the caller before hand at g_object_new()
construct time.
2010-12-05 22:14:40 +09:00
Tristan Van Berkom
0baee408f2
Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander column.
2010-12-05 22:14:27 +09:00
Tristan Van Berkom
779125976c
Changed GtkTreeView to bookkeep the deepest expanded depth instead of recalculating it at column allocation time.
2010-12-05 22:14:11 +09:00
Tristan Van Berkom
b54c004c6b
Allocate proper inner cell area to the GtkTreeViewColumn.
...
This is a premature patch, it traverses the tree's expanded
rows and fetches the deepest depth every time we allocate a
column. The deepest depth should rather be cached and pushed
when a row expands, then recalculated when the deepest expanded
row collapses.
2010-12-05 22:13:58 +09:00
Tristan Van Berkom
81e1d02de3
Created _gtk_tree_view_column_request_width().
...
Removed gtk_tree_view_get_real_requested_width_from_column() from
gtktreeview.c in favor of this function in the treeviewcolumn domain
(since this function goes and checks treeviewcolumn internals, settings
and derives the real requested width, seems logical this should be done
by the treeviewcolumn instead).
2010-12-05 22:12:16 +09:00
Tristan Van Berkom
7b36405a94
Use gtk_tree_view_get_real_requested_width_from_column() all around
...
GtkTreeView duplicated the contents of this function word-for-word
inside gtk_tree_view_update_size().
2010-12-05 22:12:04 +09:00
Tristan Van Berkom
cf8299f098
Changed _gtk_tree_view_column_set_width for _gtk_tree_view_column_allocate
...
Now the GtkTreeViewColumn takes care of move/resizing its window and
allocating its button (except for the special case of current drag_column
where the column doesnt actually get reallocated).
2010-12-05 22:11:50 +09:00
Tristan Van Berkom
4038cd76b3
Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors.
...
This actually much simplifies interaction with GtkTreeSelection
(at least reduces code size where dealing width the treeview anchor path).
2010-12-05 22:11:37 +09:00
Tristan Van Berkom
4b5c80dc0f
Removed the private sharing of internal treeview macros from gtktreeprivate.h
...
Added them directly to gtktreeview.c.
2010-12-05 22:11:21 +09:00
Tristan Van Berkom
9f4f22faf1
Removed all variables from GtkTreeViewColumn and created GtkTreeViewColumnPrivate
...
Some details:
- button_request was not needed, consult the minimum request of the button
- gtk_tree_view_column_get_button() needed to be public as people can set
tooltips on the button (and libgail accesses the button).
2010-12-05 22:11:08 +09:00
Kristian Rietveld
137f16c4c5
Do not bother starting a draw call if bar_size <= 0
2010-12-05 13:57:04 +01:00
Paolo Borelli
e0efd067e4
Avoid memory corruption in the color_properties hashtable.
2010-12-05 12:30:28 +01:00
Tristan Van Berkom
f24c21f1f0
Added proper handling of right to left layouting of cells to GtkCellAreaBox.
2010-12-05 15:24:19 +09:00
Tristan Van Berkom
7b61cd8257
Merge branch 'master' into treeview-refactor
2010-12-05 13:14:39 +09:00
Javier Jardón
d351b40a0b
Add internal accessor for GtkEntry->is_cell_renderer
...
This fixes commit fb3429e507
2010-12-04 22:06:02 -05:00
Carlos Garnacho
37719380ae
Fix call to gtk_widget_override_cursor()
2010-12-04 18:26:34 +01:00
Carlos Garnacho
3d28adf317
Make gtk_widget_override_cursor() take GdkRGBAs
...
Even though the style properties have the GdkColor type, the other
gtk_widget_override_* API takes RGBA colors, so it is consistent
now.
2010-12-04 17:49:28 +01:00
Tristan Van Berkom
0d786985a3
Merge branch 'master' into treeview-refactor
...
Conflicts:
gtk/gtkmarshalers.list
tests/Makefile.am
2010-12-05 00:36:37 +09:00
Carlos Garnacho
1c87180d5d
GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
2010-12-04 15:39:58 +01:00
Carlos Garnacho
0cba2dc726
GtkCssProvider: Improve error handling and reporting.
...
Nicer error reports are provided, and a GError can be spread from
anywhere in parsing, so over time more precise and meaningful
messages can be produced.
2010-12-04 15:39:57 +01:00
Carlos Garnacho
06d8676354
GtkThemingEngine: Be a bit more robust against missing essential properties.
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
07eeae1582
GtkWidget: add gtk_widget_render_icon_pixbuf()
...
and deprecate gtk_widget_render_icon()
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
905ba2f198
GtkIconFactory: add gtk_icon_set_render_icon_pixbuf()
...
and deprecate gtk_icon_set_render_icon().
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
b75972d0ce
GtkStyle: set style context state before calling gtk_render_icon_pixbuf()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
ca59b042df
GtkStyle: make context property readable
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
15d997d58a
GtkWidget: queue a resize when style context changed
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
f261d56da3
GtkStyleContext: invalidate icon caches when resetting widgets
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
3b3307b946
Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
a8c8c23c77
GtkSettings: add _gtk_settings_get_screen() private method
2010-12-04 15:39:55 +01:00
Carlos Garnacho
47add6c7c3
Block direct #including in style headers
2010-12-04 15:39:55 +01:00
Carlos Garnacho
bacb7906f2
Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine
2010-12-04 15:39:55 +01:00
Carlos Garnacho
3e8d138ed6
GtkStyleProperties: Refactor color/gradient resolution
2010-12-04 15:39:55 +01:00
Carlos Garnacho
9aca6c8071
GtkWidget: Add gtk_widget_override_cursor().
...
This function replaces gtk_widget_modify_cursor().
2010-12-04 15:39:54 +01:00
Carlos Garnacho
b0c87faa50
Add GtkModifierStyle as a private object
...
This object backs up gtk_widget_override_* operations. This object
is not meant to be public because any intention to modify widgets'
style in a themeable way should involve using regions/classes, so
they're modifiable through CSS. As such, the API is really
short-scoped.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
0d2d60cf8a
Gtk9Slice: Fix stretch rendering.
...
"Nearest" filter used when scaling the image, so image borders
aren't blurred.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
afeac82fbd
GtkThemingEngine: Add gtk_theming_engine_lookup_color()
...
It could also be handy for theme engines...
2010-12-04 15:39:53 +01:00
Carlos Garnacho
066f35bf28
Parse user CSS from $XDG_CONFIG_HOME/gtk-3.0/gtk.css
2010-12-04 15:39:53 +01:00
Carlos Garnacho
9bdb7e6945
GtkThemingEngine: Remove unused variables
2010-12-04 15:39:53 +01:00
Carlos Garnacho
901af8fec8
Fix compiler warnings.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
cf0bd12e6c
GtkStyleProperties: Turn border-width into a GtkBorder property.
...
All current users of this CSS property have been updated to deal
with a GtkBorder.
Also a 0 border width has been set in the default CSS to ensure
GtkStyleContext and GtkThemingEngine always provide a non-NULL
pointer for this property.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
f7e7201f11
Fix docs typo.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
daab45565a
GtkCssProvider: Fix up state matching when looking up style properties.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
297fa7a3dd
GtkStyleProvider: Add GtkStateFlags parameter to get_style_property().
...
Widget style properties can now have different values depending on the
current state.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
2ca905db5e
GtkStyleContext: Handle directionality when picking next provider.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
46de2130d3
GtkWidget: unset NULL properties when overriding style.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
64b7d9e5c1
GtkThemingEngine: Render gradients in tabs.
...
Background will be actually rotated in tabs, so the "bottom" side coincides
with the junction point, this makes gradients work as expected in rotated tabs.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
32c2b13969
GtkThemingEngine: split background rendering to a private function.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
4c1a2426d4
GtkStyle: Commit a few typos when translating states.
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
4aaf193602
docs: gtk_style_context_get_screen() always returns a valid screen
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
7a5a622998
Check screen really changed before notifying it and invalidating the context
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
7abf76fbc1
Initialize screen of GtkStyleContext to default screen
2010-12-04 15:39:48 +01:00
Matthias Clasen
587c08a151
Add explanation to failing test
2010-12-04 15:39:48 +01:00
Matthias Clasen
12d6b5889d
Add a testcase a problem with style property handling
2010-12-04 15:39:48 +01:00
Matthias Clasen
f86e8f7512
Allow images for background-image
...
In addition to -gtk-gradient(...), allow url(path), and create
a pattern from the image. Still to do: allow stretch/repeat options.
2010-12-04 15:39:48 +01:00
Matthias Clasen
ca143b1303
Add list of classes and regions to the docs
2010-12-04 15:39:48 +01:00
Matthias Clasen
897c370f5f
Avoid compiler warnings
2010-12-04 15:39:47 +01:00
Matthias Clasen
5adfe6029d
Don't add class "scrollbar" for every trough
...
Turns out "trough" as a detail string is used in a variety
of widgets, not all of which are scrollbars.
2010-12-04 15:39:47 +01:00
Matthias Clasen
2578f4f4c3
Trivial doc fixes
2010-12-04 15:39:47 +01:00
Matthias Clasen
e598f17871
Some header cleanups
...
Move GtkGradient to their own files, also move GtkBorder out of
gtkstyle.h, so that header can be all deprecated.
2010-12-04 15:39:47 +01:00
Matthias Clasen
1915a19503
Add deprecation notes
2010-12-04 15:39:46 +01:00
Matthias Clasen
f8a874abb1
Initial attempt at deprecating GtkStyle api
...
This will probably need some finetuning.
2010-12-04 15:39:46 +01:00
Matthias Clasen
bbca96044e
Fix memory handling when dealing with colors
2010-12-04 15:39:45 +01:00
Matthias Clasen
53c2114356
Deprecate gtk_icon_info_load_symbolic_for_style
...
We might end removing it altogether since it is a bit silly to have
Since: 3.0
Deprecated: 3.0
2010-12-04 15:39:45 +01:00
Carlos Garnacho
e9ef162d4c
GtkSpinner: Use style context for rendering.
...
Animation is now handled by the theming layer, a looping animation
has been defined in the default CSS to handle active spinners.
2010-12-04 15:39:45 +01:00
Carlos Garnacho
3d956b10ee
GtkStyleContext: handle prelight transitions
2010-12-04 15:39:44 +01:00
Carlos Garnacho
c90bee16ba
GtkThemingEngine: Handle prelight transitions in render_layout()
2010-12-04 15:39:44 +01:00
Carlos Garnacho
e696c24f08
GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so
2010-12-04 15:39:44 +01:00
Carlos Garnacho
11004ef61d
Initialize all looping, active state transitions on map()
...
This allows widgets to gtk_widget_set_state_flags() before mapping
and have animations started anyway when this happens.
2010-12-04 15:39:44 +01:00
Carlos Garnacho
4027dceaa9
Add #define for the "spinner" style class
2010-12-04 15:39:44 +01:00
Carlos Garnacho
62e9188ff3
GtkStyleContext: store layout extents for animation purposes.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
818aca5aee
GtkStyleContext: Only allow looping transitions for states being turned on.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
ad6da0cdb8
GtkStyleContext: Stop animations if the window is gone.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
cc18d65986
GtkThemingEngine: render square corner if the gap is too close on render_frame_gap()
2010-12-04 15:39:43 +01:00
Matthias Clasen
f0eed4a5b1
Use gtk_icon_info_load_symbolic_for_context
...
gtk_icon_info_load_symbolic_for_style is going to be deprecated.
2010-12-04 15:39:43 +01:00
Matthias Clasen
f90881271f
Add a GtkStyleContext-variant of symbolic icon loading
2010-12-04 15:39:42 +01:00
Matthias Clasen
0f98b15090
Add illustration to gtk_render_handle docs
2010-12-04 15:39:42 +01:00
Matthias Clasen
3ddee2561b
Small doc addition
2010-12-04 15:39:42 +01:00
Matthias Clasen
d1f1af202b
Add a frame-gap illustration
2010-12-04 15:39:42 +01:00
Matthias Clasen
1391a61bc5
Improve frame-gap drawing
...
Instead of overdrawing the gap with bg-color, clip it away.
2010-12-04 15:39:42 +01:00
Matthias Clasen
54eadfcefd
Fix another parameter mismatch
2010-12-04 15:39:42 +01:00
Matthias Clasen
b51c0f826a
fix parameter name mismatch
2010-12-04 15:39:41 +01:00
Carlos Garnacho
9c0ef02ea5
GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls
...
There is now code to handle this for one-item widgets (such as GtkButton)
in gtk_widget_set_state_flags()
2010-12-04 15:39:41 +01:00
Carlos Garnacho
2f0b5d8a9d
GtkCheckButton: Look active when the pointer button is pressed and hovering
2010-12-04 15:39:41 +01:00
Carlos Garnacho
037c982824
GtkStyleContext: Handle empty areas when coalescing invalidation regions.
2010-12-04 15:39:41 +01:00
Carlos Garnacho
2fb9687f55
GtkToggleButton: Make it able to be prelight and active at the same time.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
1d5a6b687e
GtkComboBox: Use style context for rendering
2010-12-04 15:39:40 +01:00
Carlos Garnacho
c6b2e47931
Let gtk_widget_get_path() correct early calls during init().
2010-12-04 15:39:40 +01:00
Carlos Garnacho
ebd8463007
GtkCssProvider: Handle unfocused label selections in default CSS.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
90dd2eb42b
GtkLabel: Use style context for rendering.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
0fce9342ef
GtkThemingEngine: Draw 3D-like effects on square frames with lines.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
3138cc7677
GtkThemingEngine: Render rounded frames with light/shadow connections at 45°
2010-12-04 15:39:39 +01:00
Carlos Garnacho
95ae1a0aa6
GtkThemingEngine: don't overshoot when rendering frames.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
e47c8e2490
GtkStyle: Return the default icon set if no context is attached.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
5d496aa7f3
GtkStyle: Do not warn if attach count == 0
...
This is going go happen more and more often now, as realize handlers start
removing the gtk_widget_style_attach() calls.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
6bf04fbd94
GtkCssProvider: Add a default border color for insensitive elements.
2010-12-04 15:39:39 +01:00
Matthias Clasen
e57e0e978d
Illustrate extension rendering
2010-12-04 15:39:39 +01:00
Matthias Clasen
8589c5c65e
Add slider illustration
2010-12-04 15:39:38 +01:00
Matthias Clasen
7e96a51953
Add examples for frame rendering
2010-12-04 15:39:38 +01:00
Matthias Clasen
4c04d944e8
Atempt to fix stretched 9slice rendering
2010-12-04 15:39:38 +01:00
Matthias Clasen
30fe448750
Fix handling of junctions in frame drawing code
2010-12-04 15:39:38 +01:00
Matthias Clasen
e522381183
Add a background example to the docs
2010-12-04 15:39:38 +01:00
Matthias Clasen
d532c0e5c2
Test some wilder names for classes, etc
2010-12-04 15:39:37 +01:00
Matthias Clasen
391e445d11
Allow digits in selectors and values, where appropriate
2010-12-04 15:39:37 +01:00
Matthias Clasen
f13f315312
Some more images for gtk_render docs
2010-12-04 15:39:37 +01:00
Matthias Clasen
d4c70f214d
Declare transition and border-image properties to be writeonly
...
We don't make the types of their values public, so getting their
values is useless and will leak.
2010-12-04 15:39:37 +01:00
Matthias Clasen
a5e10e9b26
Improve some gtk_render_ docs
...
With pictures !!
2010-12-04 15:39:36 +01:00
Matthias Clasen
d7a0fe5bf1
Document predefined style provider priorites
...
Also, rename GTK_STYLE_PROVIDER_PRIORITY_DEFAULT to _THEME and
use it for themes.
2010-12-04 15:39:35 +01:00
Matthias Clasen
a260059c7f
Fix doc formatting
2010-12-04 15:39:35 +01:00
Matthias Clasen
d9b0da5b83
Fix resize grip drawing
...
There was some confusion about junctions...
2010-12-04 15:39:34 +01:00
Matthias Clasen
be0ed14cce
Fix GtkRadioButton drawing
2010-12-04 15:39:34 +01:00
Matthias Clasen
fc10599ac8
Make unfocused selections visible in entries
2010-12-04 15:39:33 +01:00
Matthias Clasen
21a193ad02
Make expanders prelight
2010-12-04 15:39:33 +01:00
Matthias Clasen
8b6112b6e0
Rewrite GtkInfoBar color handling to bypass GtkStyle
...
This avoids a segfault that was happening due to the recursion
detection not working anymore with the old way of doing things.
2010-12-04 15:39:33 +01:00
Carlos Garnacho
d63615d9cc
GtkCssProvider: Render inconsistent toggle buttons differently.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
9b2f878b06
GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
bcf1ee4825
GtkCssProvider: Use 1px border width for spinbutton buttons.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
74b032b816
GtkCssProvider: Render radio and check boxes framess in menus.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
b33d48a802
GtkCssProvider: use selected fg/bg for selected menu items in CSS.
2010-12-04 15:39:31 +01:00
Carlos Garnacho
85aa672ff7
GtkCssProvider: Draw frame around menubars and toolbars in default CSS.
2010-12-04 15:39:31 +01:00
Matthias Clasen
fea567bb9f
More documentation reshuffling
2010-12-04 15:39:31 +01:00
Matthias Clasen
ace967a042
Tweak wording
2010-12-04 15:39:30 +01:00
Matthias Clasen
3a7f79e814
Document border images better
2010-12-04 15:39:30 +01:00
Matthias Clasen
953ac51fb8
Make url parsing work for slices
...
The border-image parsing code relies on parse_path_str to return
a meaningful end_ptr in case of success, too.
2010-12-04 15:39:29 +01:00
Matthias Clasen
28e549082c
Fix Gtk9Slice creation
2010-12-04 15:39:29 +01:00
Matthias Clasen
69254c552a
Allow / in values
...
Otherwise, using url(path) on the right-hand side of properties
is not going to work.
2010-12-04 15:39:28 +01:00
Matthias Clasen
7d6fb7b7e7
Add some images to the docs
...
Add graphs for the transition functions and gradient examples.
2010-12-04 15:39:28 +01:00
Matthias Clasen
b2d338d370
GtkWidgetPath documentation tweaks
2010-12-04 15:39:27 +01:00
Matthias Clasen
077270142f
GtkStyleContext documentation tweaks
2010-12-04 15:39:27 +01:00
Matthias Clasen
bcf3de095f
Document various style-related enums
2010-12-04 15:39:26 +01:00
Carlos Garnacho
11480c57f0
GtkStyleContext: Use correct type for animation duration.
2010-12-04 15:39:26 +01:00
Carlos Garnacho
32ccac94e0
GtkAnimationDescription: parse "loop" correctly.
...
This sscanf parsing needs to go...
2010-12-04 15:39:25 +01:00
Carlos Garnacho
0c1cfd8a34
GtkStyle: handle scales when translating the detail string.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
71f187a84f
GtkCssProvider: Handle progressbars.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
f3445a2430
GtkCssProvider: Do not have border-color the same than active bg-color.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
171157b0e4
GtkMenu: Use GtkStyleContext for rendering.
2010-12-04 15:39:23 +01:00
Carlos Garnacho
6fff76568c
GtkMenuBar: Use GtkStyleContext for rendering.
2010-12-04 15:39:23 +01:00
Carlos Garnacho
0df9c70200
Use gtk_render_activity() when rendering progressbars through GtkStyle
2010-12-04 15:39:23 +01:00
Carlos Garnacho
ee37847952
GtkCssProvider: Use default value when handling "none".
...
This way the default value has a way to override other values in previous
GtkStyleProviders when merged.
2010-12-04 15:39:22 +01:00
Matthias Clasen
5e26fb75a0
Add GtkStyleProperties to the docs
2010-12-04 15:39:22 +01:00
Matthias Clasen
e2f91f7201
Documentation improvements
...
This patch adds more detail to the explanation of CSS, and also
adds documentation about which files are read.
We also make :focus an alternative to :focused (since :focus is
a standard CSS pseudo-class).
2010-12-04 15:39:22 +01:00
Carlos Garnacho
9567ed01e8
GtkCssProvider: Base prelight foreground on bg color.
...
Entries are also handled, so base/text colors are used.
2010-12-04 15:39:21 +01:00
Carlos Garnacho
de94d04fea
GtkCssProvider: Make prelight a bit less light in default CSS.
2010-12-04 15:39:21 +01:00
Carlos Garnacho
bc3c9ce619
GtkStyle: Fix typo.
...
GtkStateType was being used in gtk_style_context_get(), instead of
GtkStateFlags, oops.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
ead23cd0ce
GtkThemingEngine: Make render_option() depend on border-style and border-color.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
be4a616e6e
GtkRadioButton: Use GtkStyleContext for rendering.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
756e20f58c
Make "button" class depend on mode for GtkToggleButtons
2010-12-04 15:39:20 +01:00
Carlos Garnacho
84d586043e
Fix checkbuttons theming in CSS so it's more similar to 2.x
2010-12-04 15:39:19 +01:00
Carlos Garnacho
7478a77b04
GtkCheckButton: Use GtkStyleContext for rendering.
2010-12-04 15:39:19 +01:00
Carlos Garnacho
04783534ed
GtkThemingEngine: Make render_check() depend on border-style and border-color.
2010-12-04 15:39:19 +01:00
Carlos Garnacho
f62583d30c
GtkContainer: Also copy permanent container's classes on get_path_for_child()
...
This makes inheritance work for the simplest cases when style is defined
for classes.
2010-12-04 15:39:18 +01:00
Carlos Garnacho
6d1cf76822
GtkWidgetPath: Make iter API deal with gints.
...
now gtk_widget_path_iter_* takes gints instead of guints, and also accept
numbers == -1 or > path_length for the path head.
2010-12-04 15:39:18 +01:00
Carlos Garnacho
5f88997297
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
...
It's senseless to always return 0
2010-12-04 15:39:18 +01:00
Carlos Garnacho
198bb314c7
GtkStyleContext: preserve state on save().
2010-12-04 15:39:18 +01:00
Carlos Garnacho
1bfb169ce6
GtkThemingEngine: Documents that engines must only use this API.
...
It was a bit unclear in the documentation, even if it was from the
API POV.
2010-12-04 15:39:18 +01:00