Matthias Clasen
6d9191f601
Revert accidental gtk.symbols changes
2011-01-10 22:59:13 -05:00
Matthias Clasen
a9a7eca7f3
Update NEWS
2011-01-10 22:19:12 -05:00
Sébastien Granjoux
8f6cd8d86d
Fix bgo #638017 Crash in gtk_text_view_set_tabs()
2011-01-10 21:07:32 -05:00
Matthias Clasen
9b752aee1a
Don't use deprecated style api
2011-01-10 20:33:13 -05:00
Carlos Garnacho
48a4f88ab1
Mark orientable widgets with the vertical/horizontal css classes
...
This can be used to theme widgets differently depending on the
orientation. Bug 639157, reported by Christian Dywan.
2011-01-10 23:53:29 +01:00
Carlos Garnacho
529fcc84cf
Add missing CSS class defines to gtk3-sections.txt
2011-01-10 23:52:47 +01:00
Carlos Garnacho
4c4df23d12
GtkThemingEngine: Fix handles rendering
...
The wrong class was being used, so the theming engine didn't
match it properly.
2011-01-10 23:52:36 +01:00
Carlos Garnacho
d5b0ccacce
GtkStyleContext: Do not cancel possibly unstarted transitions
...
It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.
2011-01-10 23:52:21 +01:00
Carlos Garnacho
733cb5e43d
Cleanup leftover code in gtkplug-x11
...
This code was part of the GdkDeviceManagerCore hack
2011-01-10 23:52:02 +01:00
Carlos Garnacho
42ad651914
Mark gtk_widget_style_attach() as deprecated.
...
This isn't needed anymore.
2011-01-10 23:51:48 +01:00
Carlos Garnacho
e426f76e57
Fix compiler warning.
2011-01-10 23:51:14 +01:00
Carlos Garnacho
fa2bfd93f8
Add gtk_widget_set_device_enabled()
...
This function is a more convenient variant than
gtk_widget_set_device_events(), as it will
1) perform changes down a widget hierarchy, to
all windows.
1) use the same event mask than gdk_window_get_events()
2011-01-10 23:01:02 +01:00
Carlos Garnacho
c94912afd5
GtkTextUtil: Fix typo
...
Use the right "context" object around in GtkStyleContext methods.
2011-01-10 23:01:01 +01:00
Paolo Borelli
a67507a53e
Set the proper css class when getting attributes.
2011-01-10 21:58:29 +01:00
Hans Breuer
0a9abb0222
[portability] Use G_PI rather than M_PI
2011-01-10 21:39:34 +01:00
Hans Breuer
f605d3d698
Bug 639127 - Add missing gdkdisplaymanager-win32.c
2011-01-10 21:39:33 +01:00
Carlos Garnacho
de36dda925
Add gtk_style_context_scroll_animations()
...
This function will be needed in widgets like GtkTreeView,
since gdk_window_scroll() doesn't trigger the usual
mechanisms to update the invalidation area, this function
is needed together with it.
2011-01-10 20:49:41 +01:00
Carlos Garnacho
162380fca5
Make GtkCalendar use GtkStyleContext
2011-01-10 20:49:34 +01:00
Carlos Garnacho
12944d9c23
Do not set any padding for scrolled window children.
2011-01-10 20:49:27 +01:00
Carlos Garnacho
d9dab98ad6
GtkCssProvider: enable parsing negative GtkBorders
...
this can be used as in regular CSS under some situations,
so child items overlap the parent element's border.
2011-01-10 20:49:14 +01:00
Carlos Garnacho
2ec40cac8c
Make GtkTextUtil use GtkStyleContext.
2011-01-10 20:48:59 +01:00
Paolo Borelli
c5a8584c3e
CSS styles for the selection in a TextView.
...
https://bugzilla.gnome.org/show_bug.cgi?id=639106
2011-01-10 18:52:35 +01:00
Paolo Borelli
2290ec6bd8
Port GtkTextDisplay to StyleContext.
...
Use the new StyleContext and StateFlags to draw the text
https://bugzilla.gnome.org/show_bug.cgi?id=639105
2011-01-10 18:52:35 +01:00
Matthias Clasen
845d864a51
add gtknumerable.c to POTFILES.in
2011-01-10 12:06:31 -05:00
Yaakov Selkowitz
5caa2b58cb
Fix remaining usage of g[dk]ktargetlib.
...
This is a follow-up to commit 07d49ee56a .
https://bugzilla.gnome.org/show_bug.cgi?id=639047
2011-01-10 11:53:26 -05:00
Matthias Clasen
efd0e6ec1f
Add a setter for GtkWindow.has_user_ref_count
...
This is needed for some language bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=638880
2011-01-10 11:49:06 -05:00
Matthias Clasen
061d48b68d
More doc build fixes
...
Grr, our mixture of xml and plain text in long descriptions is
a mess.
2011-01-10 10:59:50 -05:00
Matthias Clasen
f758385353
Fix doc syntax
2011-01-10 09:47:09 -05:00
Javier Jardón
63bb0c73bc
build: Use mkdir_p instead mkinstalldirs
...
As we don't use mkinstalldirs, $(mkinstalldirs) is simply an
alias for $(mkdir_p)
2011-01-10 13:55:29 +00:00
Tristan Van Berkom
3f911b2516
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
2011-01-10 22:26:46 +09:00
Tristan Van Berkom
2dafbba921
Added GtkBuildable support for specifying <items> in GtkComboBoxText.
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
cfecb6bf10
Added GtkBuildable support to add "tag" children to GtkTextTagTable.
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
03975b8e74
Added GtkBuilder support for "menu" child type of GtkMenuToolButton
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
1fa280938b
Fixed GtkCellAreaBox to not allocate invisible cells.
...
This was already done for the most part but not taken care
of for single cell groups (which is the most common case).
2011-01-10 18:47:55 +09:00
Tristan Van Berkom
34a7dbae3b
Fixed GtkCellArea to never activate/start editing insensitive cells.
...
Included extension to tests/testtreeedit to show this is working properly.
2011-01-10 17:58:57 +09:00
Carlos Garnacho
5c3b49ab14
Ensure GtkStyleContext is generated on gtk_widget_render_icon_pixbuf()
...
This fixes some warnings seen when this is called early
on non yet styled widgets.
2011-01-10 03:50:02 +01:00
Carlos Garnacho
6f3706ac28
Make GtkViewport use GtkStyleContext
2011-01-10 03:50:02 +01:00
Carlos Garnacho
e6277d3b82
Add gtk_style_context_cancel_animations()
...
This function takes a region ID and cancels all animations
on or beneath that region (as in push/pop_animatable_region).
First user of this is GtkWidget itself, so unmapped widgets
have looping animations cancelled. Fixes bug #638119 , reported
by Jesse van den Kieboom.
2011-01-10 03:50:01 +01:00
Carlos Garnacho
3dd838fe76
Make GtkLayout use GtkStyleContext
2011-01-10 03:50:01 +01:00
Carlos Garnacho
18502518f3
Make GtkImage use GtkStyleContext
2011-01-10 03:50:00 +01:00
Carlos Garnacho
4e73267325
Make GtkPrintUnixDialog use GtkStyleContext.
2011-01-10 03:50:00 +01:00
Carlos Garnacho
6fae7c9fa7
Make GtkFontSelection use GtkStyleContext
2011-01-10 03:50:00 +01:00
Carlos Garnacho
2f6514ce34
Make GtkHSV use GtkStyleContext
...
two custom classes replace the light/dark focus detail strings,
it doesn't make much sense to have a GTK_STYLE_CLASS_* for that.
2011-01-10 03:49:59 +01:00
Carlos Garnacho
27c5cc88f8
Make GtkColorSelection use GtkStyleContext
2011-01-10 03:49:59 +01:00
Carlos Garnacho
455c31d815
Make GtkColorButton use GtkStyleContext
2011-01-10 03:49:59 +01:00
Carlos Garnacho
e0e36b621f
Update _gtk_button_paint() arguments to GtkStyleContext
...
The detail strings weren't in use anymore, and the state
argument is now a GtkStateFlags. GtkToggleButton has been
updated as well.
2011-01-10 03:49:59 +01:00
Carlos Garnacho
f506fc3e93
Remove recent GtkStyle usage in GtkWindow
...
GtkStyleContext API is used instead.
2011-01-10 03:49:59 +01:00
Fran Diéguez
e94b515171
Updated Galician translations
2011-01-10 00:03:19 +01:00
Paolo Borelli
ab656b3f7a
Obtain the fg color from the renderer
...
prepare_run must have been called before draw_shape, so we can avoid
fiddling the the (deprecated) style and state and just use the color
alredy set on the renderer.
https://bugzilla.gnome.org/show_bug.cgi?id=639079
2011-01-09 21:59:50 +01:00
Paolo Borelli
fadca187f2
Remove stipple attributes
...
GtkTextView does not support them anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
2011-01-09 21:59:50 +01:00
Paolo Borelli
12c4730e6f
Small cleanup in gailtextview code.
...
Fold gail_misc_add_to_attr_set into the only function calling it, which
avoids a useless big "switch" and results in much less code.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
2011-01-09 21:59:50 +01:00
Yaron Shahrabani
89c8e2af2d
Updated Hebrew translation
2011-01-09 21:04:58 +02:00
Fran Diéguez
e0d393dec8
Updated Galician translations
2011-01-09 16:42:40 +01:00
Milan Bouchet-Valat
f9e685e5c0
[Doc] gtk_symbolic_color_resolve()'s props arg can be NULL
...
Document this behavior and add annotations.
2011-01-08 17:30:45 +01:00
Jorge González
b761cadacc
Updated Spanish translation, fixes bug #638991
2011-01-08 13:49:31 +01:00
Javier Jardón
cc0a65cb56
docs: Fix typo in GtkWidget geometry-management documentation
...
Reported by Andrew Cowie in
https://bugzilla.gnome.org/show_bug.cgi?id=638963
2011-01-08 10:56:59 +01:00
Tristan Van Berkom
1ff8df1e18
Adding missing gtk-doc annotations.
...
GtkProgressBar:show-text, GtkScrolledWindow:min-content-width/height
are new properties in 3.0.
2011-01-08 18:46:46 +09:00
Bruce Cowan
094d4c81be
Updated British English translation
2011-01-07 23:25:18 +00:00
Carlos Garnacho
29b4baea97
Translate KeyPress/KeyRelease in gtkplug-x11
...
This makes XEmbed work properly again. Only event->key.group
and is_modifier are left blank at the moment. Exposing the
necessary XKB bits should be considered, but it's not urgent
for the current usecases.
2011-01-07 22:07:52 +01:00
Kristian Rietveld
4ed781778d
Introduce gtk_tree_view_is_blank_at_pos()
...
This function is useful to figure out whether the tree view is "blank"
at a given location. For such locations you might want to popup a
custom popup menu, clear the current selection or start rubber banding.
In the future, we are planning on updating GtkTreeView's user
interactions to take advantage of this new function.
Part of bug 350618.
2011-01-07 15:38:06 +01:00
Kristian Rietveld
688d053436
Fix gtk_tree_view_column_cell_get_position()
2011-01-07 15:38:06 +01:00
Andika Triwidada
c40c4a45e5
Updated Indonesian translation
2011-01-07 20:38:52 +07:00
Matthias Clasen
be632558dc
Document that GtkModuleInit doesn't receive argv anymore
2011-01-07 08:12:07 -05:00
Ignacio Casal Quinteiro
8de4661d80
Set the style for .view so i.e the GtkTextView gets the right style.
2011-01-07 11:35:40 +01:00
Tristan Van Berkom
da41937b42
Removed special casing code in GtkCellLayout in favor of default implementation.
...
The fact that GtkCellLayout was checking "if (gtk_cell_layout_get_area (layout))"
and executing code contitionally from the apis instead of simply falling
back to the default implementation for these things was causing problems
in language bindings such as gtkmm... Regardless, the implementation
is cleaner this way too.
2011-01-07 18:08:51 +09:00
Tristan Van Berkom
685fe29473
Fixed documentation of gtk_cell_area_set_focus_cell().
2011-01-07 16:21:51 +09:00
Emilio Pozuelo Monfort
ec15c405cf
Support disabling X11 extensions
...
Based on a patch from Cyril Brulebois <kibi@debian.org >
https://bugzilla.gnome.org/show_bug.cgi?id=612918
2011-01-07 01:30:11 +00:00
Fran Diéguez
7fc09ee135
Updated Galician translations
2011-01-07 00:11:51 +01:00
Matthias Clasen
aead0b04df
Forgotten documentation fix
2011-01-06 11:27:38 -05:00
Matthias Clasen
7f58c57606
Bump version
2011-01-06 11:27:15 -05:00
Matthias Clasen
6cdb6255af
More documentation fixes
2011-01-06 09:44:08 -05:00
Matthias Clasen
f35c3fd5f7
Undoccommentize gtktreemenu.c
2011-01-06 09:00:53 -05:00
Matthias Clasen
6619ac35e3
Documentation fixes
2011-01-06 09:00:53 -05:00
Matthias Clasen
c396c52327
Documentation fixes
2011-01-06 08:12:01 -05:00
Matthias Clasen
dc3d70b4ec
Add sufficient deps to make building from 'git clean' work
2011-01-06 07:44:44 -05:00
Matthias Clasen
5984fa0073
Fix introspection annotation syntax
2011-01-06 07:44:19 -05:00
Kizito Birabwa
2f09f800cc
Updated Luganda translation
2011-01-06 10:23:59 +01:00
Matthias Clasen
7b88b29763
Add appchooser docs
2011-01-06 02:07:35 -05:00
Matthias Clasen
80a11b7483
Documentation polishing
2011-01-06 01:13:50 -05:00
Matthias Clasen
f2cde4cf3b
Move the GtkApplication example to the right place
2011-01-06 01:13:50 -05:00
Matthias Clasen
39d0a8ac47
Update NEWS some more
2011-01-06 01:13:50 -05:00
Tristan Van Berkom
44a9b1c35e
Fixed statement in gtkwindow.c when toplevelness changes.
...
Fixed a typo when checking if the heirarchy toplevel is a toplevel
before firing the hierarchy-changed signal.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
a28295a742
Dont show the GtkWindow when removing it from a parent and becomming a toplevel
...
Showing the window causes it to try to grab focus, this causes problems
when embedded toplevels run through dispose cycles.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
b8c8f2ccb1
Fixed conflict while rebasing master.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
72675f1f28
Changes to testtoplevelembed
...
- Made notebook tabs smaller
- No need to hide/show toplevels after removing from a parent,
if it's visible it will be automatically shown after removing
outside of it's previous parent.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
53980aca9b
Fixed GtkFileChooserDefault to handle cases of being in an embedded dialog.
...
This involves checking the toplevelness of new toplevels before connecting
but not the *old* ones for disconnecting signals. Also take care of handling
a row_reference that becomes invalid over the course of reparenting the
filechooser into another parent.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
93c8058582
Fixed GtkWindow/GtkWidget to properly emit hierarchy changed for embedded toplevels
...
Now GtkWindow takes some measures when setting toplevelness:
- When a window becomes toplevel after being embedded it saves
the visibility state and reshow's itself so that the window
re-realizes and presents itself again automatically
- When emitting hierarchy-changed, synthetically mark the toplevel
as not anchored, this allows the hierarchy changed propagation to
recurse properly.
GtkWidget also takes care to unset the parent window *after* unparenting
the widget and after emitting the heirarhcy changed that leaves a NULL
toplevel.
That means there are now 2 cycles of "hierarchy-changed" when removing
an embedded toplevel from a parent, first one that makes the new toplevel
a NULL one (since the toplevel flag is not yet restored), the second cycle
makes the removed window toplevel again when setting the parent window
to NULL.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
aa787c9dd1
Fixed focus handling on embedded windows.
...
Now GtkWindow chains up in focus vfuncs when non-toplevel, this
fixes focus in testtoplevelembed.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
387d745e0e
Added buttons to notebook tabs in testtoplevelembed
...
Now you can remove and reembed the toplevels (deleting the
toplevels put them back in the notebook).
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
2dfa855bc4
Moved location of unsetting parent window inside gtk_widget_unparent().
...
Make sure to do this after the widget is unrealized.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
fdba9f281d
Fixed issues with "hierarchy-changed" signal.
...
GtkFileChooserDefault watches the toplevel and montitors "set-focus"
signal on it... however the connection needs to be remade when the
GtkFileChooserDialog is in an embedded toplevel.
Measure's taken: GtkWindow propagates hierarchy changes when
_gtk_window_set_is_toplevel() is called, gtk_widget_unparent()
unsets the widget's parent window earlier in the function so that
the possible hierarchy change is still able to properly access the hierarchy.
GtkFileChooserDefault checks if the "new" toplevel is indeed
gtk_widget_is_toplevel() but not the old one, GtkRange has been
updated to use gtk_widget_is_toplevel() inside it's hierarhcy_changed
vfunc, other classes already do this properly.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
69b1bfb17b
Added tests/testtoplevelembed.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
addcc64b9c
Slightly less special casing in GtkWindow for gtk_widget_is_toplevel()
...
Also take care of setting the resize-mode at realize time depending
on toplevelness.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
6299f61ee7
Added docs to gtk_widget_set_parent_window.
...
Also stop setting the resize mode of the window.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
8b4b62f00c
Allow GtkWindow to be parented if gtk_widget_set_parent_window() is called on one
...
This patch makes gtk_widget_set_parent_window() undo the toplevelness
of a GtkWindow, GtkWindow then realizes itself as a normal child widget
and behaves like a normal GtkBin by checking gtk_widget_is_toplevel() in
several places (show/hide/map/unmap/draw/size_allocate/check_resize/configure_event).
2011-01-06 14:39:40 +09:00
Matthias Clasen
a601b43b83
Cosmetic changes
2011-01-06 00:14:02 -05:00
Tristan Van Berkom
4d8c7c5782
Ensure that GtkIconView items get redrawn when the focus cell changes.
...
Seems the redraw was not happenning from keynav when set_focus_cell()
was called because keynav already updates the focus-cell. Now we
just unconditionally redraw the focus item when set_focus_cell() is
called.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
bab0f5a5c1
Fixed GtkIconView keynav
...
Icon View was not initially setting focus on a cell when
focus initially comes into the view. Focusing into whatever
is the first cell in the cursor item when set_cursor_item
is called with a NULL cell fixes this.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
b7c25c41d6
Fixed gtkiconview dispose cycle to not fire warnings.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
56580d1b8b
Restored the old GtkIconView guess for wrap-width/width size of text cell
...
GtkIconView sets the minimum width of the text cell to be at least 50
pixels and otherwise twice the width of the first pixbuf cell found
in the icon list.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
60e5fcf4db
Made GtkIconView reset the context and invalidate all sizes when a row changes.
...
GtkIconView should have a "grow-only" mode to handle optimization to
only allow icons to grow in width when rows change, however since
GtkIconView still does not handle large numbers of rows for now we'll
just relayout the whole thing whenever a series of rows change.
Also fixed up to watch the context incase of implicit resets.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
6036c51d52
Removed gtk_icon_view_get_item_area()
...
Now use a GdkRectangle at the begining of the GtkIconViewItem
structure and just re-cast the struct to get the item area.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
d0f13ae52c
Fixed GtkIconView buildable custom tag end to let cell layout properly
...
handle <cell-packing>
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
01a35e4483
Added gtk_icon_view_new_with_area()
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
a160358830
GtkIconView now uses a per-row GtkCellAreaContext to store the alignments
...
of each row.
GtkIconView now properly calculates the height of each row separately
using a separate GtkCellAreaContext stored in an array which it can
always easily index with the item->row index for all purposes.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
2d5eadb7f9
Alignments with variable row heights almost works perfectly.
...
However, I'm going to have to figure a way to store the alignments
for rows separately, this may involve using a separate GtkCellAreaContext
for each row, unfortunately.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
e51592c0b3
Experimenting with allocating the context a different height for each row.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
c77abe1f83
Committing working version of GtkIconView using GtkCellArea.
...
Some things still not sorted out, GtkCellAreaContext is not allocated
so icons dont recieve alignments yet, focus navigation is not exactly
what it used to be (maybe we can work around that by observing the
item orientation and explicitly setting focus to the same cell when
navigating in the wrong orientation).
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
951ea857cc
Initial messy commit of GtkIconView using GtkCellArea (nothing works yet).
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
6d483ed930
Added GtkCellArea & GtkCellAreaContext to GtkIconView
...
First commit to icon-view-refactor, essentially only adds the
construct-only "cell-area" property and the context but doesnt
use it.
2011-01-06 13:51:48 +09:00
Szilárd Pfeiffer
8219ed3a26
Add gtk_tree_model_iter_previous() vfunc
...
https://bugzilla.gnome.org/show_bug.cgi?id=128058
2011-01-05 23:39:11 -05:00
Matthias Clasen
072023e57b
Remove deprecated GtkSpinner style properties
2011-01-05 23:21:52 -05:00
Matthias Clasen
2b3b3934a4
Another NEWS update
2011-01-05 21:12:51 -05:00
A S Alam
f4cf52f2cc
Translation: update Punjabi
2011-01-06 07:16:05 +05:30
Matthias Clasen
53b67b9a72
Drop the G_SEAL definition from gdkconfig.h
...
All sealed members removed. Yay!
2011-01-05 19:00:14 -05:00
Benjamin Otte
2e064b3378
tests: Port testsocket example to not use deprecated APIs
2011-01-05 23:50:22 +01:00
Benjamin Otte
8136481d75
tests: Fix compile warnings for people who don't read gcc output.
2011-01-05 23:50:22 +01:00
Benjamin Otte
96091a4d9c
adjustment: Privateize sealed members
2011-01-05 23:50:22 +01:00
Benjamin Otte
e1cb1b89d8
testgtk: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
3d3358b561
testgtk: Rename "adj" variables to "adjustment"
2011-01-05 23:50:22 +01:00
Benjamin Otte
b533305728
tests: Update prop-editor adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
d5f7b6cd64
gtk-demo: Undef GDK_DISABLE_DEPRECATED to make test compile
2011-01-05 23:50:22 +01:00
Benjamin Otte
e62b39c921
volumebutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
f79c6baa66
scalebutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
cc879a6028
textview: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
cd80f49053
tests: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
a41402c455
combobox: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
e4442c010b
examples: Update dial adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
c731e1ce0a
demos: Update testpixbuf-scale demo for adjustment sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
a28be2cc6c
gail: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
801ba1c758
range: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
95e9f4c0c1
range: Rewrite attachment setters to use sealed API
2011-01-05 23:50:22 +01:00
Benjamin Otte
7210e6e1cd
viewport: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
2b4bb071a3
viewport: Rewrite adjustment modification code for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
a317499031
iconview: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
aa495f00b4
iconview: Use gtk_adjustment_configure() instead of g_object_set()
...
Simplifies code quite a bit apart from jsut making it more readable.
2011-01-05 23:50:21 +01:00
Benjamin Otte
3f1a65d6f5
iconview: Use set_[hv]adjustment_values() also when just changing upper
...
Simplifies the code quite a bit and the code is smart enough to not do
extra work if only one value changes.
2011-01-05 23:50:21 +01:00
Benjamin Otte
1af3a95e8c
menu: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
8ea3372395
menu: Update adjustment usage for sealing
...
Call gtk_adjustment_set_value() instead of manually updating the value
in gtk_menu_scroll_to()
2011-01-05 23:50:21 +01:00
Benjamin Otte
f5a3af9b02
scrolledwindow: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
76b50a7eae
spinbutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:21 +01:00
Matthias Clasen
14a452ab50
More updates
2011-01-05 16:58:08 -05:00
Matthias Clasen
7799fbf239
Add GtkNumerableIcon
...
This is a subclass of GEmblemedIcon that can show a number or
short string as an emblem, overlayed on top of another emblem.
Written by Cosimo Cecchi
https://bugzilla.gnome.org/show_bug.cgi?id=637169
2011-01-05 16:33:15 -05:00
Tristan Van Berkom
9a80100e9a
Fixed get_size() for GtkCellRendererText to clip to the input area
...
For ellipsize cells it's important to clip the result of get_size()
so that the returned required rectangle is indeed less than or equal
to the input rectangle... this is done so that GtkCellArea can accurately
paint focus on cells by calling gtk_cell_renderer_get_aligned_area().
Patch also adds assertions to gtk_cell_renderer_get_aligned_area() to
ensure this keeps working correctly.
2011-01-06 02:31:42 +09:00
Matthias Clasen
e41fb7703c
Add padding to text attribute structs
2011-01-05 11:28:45 -05:00
Ivar Smolin
3d12aca2f9
[l10n] Updated Estonian translation
2011-01-05 18:14:40 +02:00
Matthias Clasen
67b8f22d8b
Remove some dropped symbols from gtk3-sections.txt
2011-01-05 11:01:46 -05:00
Matthias Clasen
3109441c77
Update gtk symbols list
2011-01-05 11:01:45 -05:00
Milan Bouchet-Valat
d7af47d657
Fix doc about gtk_cell_layout_get_area()
...
Return value was copied and pasted from gtk_cell_layout_get_cells(),
which is obviously wrong.
2011-01-05 16:45:51 +01:00
Milan Bouchet-Valat
ebe9d075f4
Fix GtkCellArea:edit-widget to be of type GtkCellEditable
...
More correct, and consistent with gtk_cell_area_get_editable_widget().
2011-01-05 16:45:51 +01:00
Matthias Clasen
f377621eb7
Fix libgail-util doc build
2011-01-05 10:12:16 -05:00
Matthias Clasen
680b64d04a
Fix some parameter name mismatches in the docs
2011-01-05 10:04:48 -05:00
Matthias Clasen
9f13312520
Fix file lists in the win32 backend
2011-01-05 09:58:46 -05:00
Matthias Clasen
1a8290f92c
Update POTFILES some more
2011-01-05 09:43:45 -05:00
Matthias Clasen
57de2c84c4
Try again to fix the doc build
2011-01-05 09:38:36 -05:00
Matthias Clasen
2c9fad9ea8
Update POTFILES
2011-01-05 08:42:57 -05:00
Benjamin Otte
7d94127917
testutils: Update adjustment usage for sealing
2011-01-05 14:36:11 +01:00
Benjamin Otte
58fa980d12
textview: Update adjustment usage for sealing
2011-01-05 14:36:11 +01:00
Benjamin Otte
f65fa81e3a
treeview: Update adjustment usage for sealing
...
Use getters instead of direct structure access.
2011-01-05 14:30:59 +01:00
Benjamin Otte
6ff585e189
treeview: Update adjustment usage for sealing
...
Use gtk_adjustment_set_upper() instead of doing its work manually.
2011-01-05 14:30:59 +01:00
Benjamin Otte
e93eb20794
treeview: Update adjustment usage for sealing
...
Use gtk_adjustment_configure() when toggling header visibility.
2011-01-05 14:30:58 +01:00
Benjamin Otte
bb64831987
tests: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
79cc672f3f
toolitemgroup: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
c6697af962
layout: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
fdedc8e376
colorsel: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
beec484964
toolpalette: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
c43a31ea33
API: range: Remove update policy
...
It's unused and complicates code a lot. In particular, it breaks the
adjustment/range abstractions.
2011-01-05 14:30:58 +01:00
Matthias Clasen
e608cc4eaf
Update gtk symbol list
2011-01-04 23:49:01 -05:00
Matthias Clasen
5c1502479a
Fix gdk/abicheck.sh temporarily
...
The best fix for now is to just hardcode the X11 backend again
2011-01-04 23:40:41 -05:00
Matthias Clasen
c4f0bbb130
fix documentation build
2011-01-04 23:15:35 -05:00
Matthias Clasen
9ec7f51ac1
Update NEWS for 2.99
2011-01-04 22:49:54 -05:00
Matthias Clasen
c1773bf240
Bump version to 2.99
2011-01-04 22:01:48 -05:00
Matthias Clasen
369b64b427
Brush up configure output
...
Show used X extensions, print backends, etc.
Also make configure abort in some more cases when explicitly
enabled options are missing dependencies.
2011-01-04 21:57:21 -05:00
Matthias Clasen
c97652aeb4
Decouple GdkWindowCache life-cycle from GdkX11DragContext
...
By making window caches refcounted. This fixes problems with leaking
drag contexts, as experienced in
https://bugzilla.gnome.org/show_bug.cgi?id=637691
and
https://bugzilla.gnome.org/show_bug.cgi?id=144324
Based on a patch by drago01@gmail.com
2011-01-04 19:30:04 -05:00
Emilio Pozuelo Monfort
a108b2b08b
Fix build when builddir != srcdir
2011-01-04 23:21:36 +00:00
Emilio Pozuelo Monfort
cfc70ca71b
Fix introspection build when builddir != srcdir
...
So gdk/gdk.h can find gdk/gdkconfig.h, which is in $builddir
because it's generated.
2011-01-04 23:21:35 +00:00
Matthias Clasen
2690b8b924
Move GtkEntryCompletion docs inline
...
Based on a patch by Garrett Regier
https://bugzilla.gnome.org/show_bug.cgi?id=617322
2011-01-04 17:54:47 -05:00
Matthias Clasen
82c9013e01
Add gtkcellrenderer.sgml to .gitignore
2011-01-04 17:52:14 -05:00
Matthias Clasen
e9cc9d5c47
Small doc cleanups for GtkCellLayout
2011-01-04 17:42:30 -05:00
Matthias Clasen
b123bc41fd
Move docs for gtkmain inline
...
At the same time, introduce a gtkmainprivate.h header
and various other cleanups.
Based on a patch by Tadej Borovšak.
https://bugzilla.gnome.org/show_bug.cgi?id=617471
2011-01-04 17:32:12 -05:00
Matthias Clasen
98440ad031
Remove gtktypeutils altogether
...
Based on patches by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 14:51:19 -05:00
Matthias Clasen
1283368b1b
Remove GtkArg, GtkCallbackMarshal and GtkFunction
...
Based on a patch by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 13:49:37 -05:00
Javier Jardón
7e7d8c4ccc
Remove deprecated gtk_quit_* API
2011-01-04 13:39:35 -05:00
Matthias Clasen
3e348181ed
Move GtkExpander docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617327
2011-01-04 13:26:32 -05:00
Matthias Clasen
c770fdd08a
Move GtkDrawingArea docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617315
2011-01-04 13:26:32 -05:00
Javier Jardón
72161a071f
gtkmenuitem: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
2011-01-04 19:00:11 +01:00
Matthias Clasen
deab5ff1c9
Remove gtk_tree_menu_get_type from gtk3.types
2011-01-04 12:54:47 -05:00
Matthias Clasen
c009149670
Move GtkDialog docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617312
2011-01-04 12:54:47 -05:00
Javier Jardón
7245ca82f0
gtkmenu: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
2011-01-04 18:46:43 +01:00
Matthias Clasen
b5c6904c2f
Drop explicit includes of gdkkeysyms.h
...
These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h
to use the new GDK_KEY_ symbols.
2011-01-04 12:21:41 -05:00
Matthias Clasen
16877b4d7b
Reduce includes of gtktypeutils.h to a minimum
2011-01-04 12:05:05 -05:00
Matthias Clasen
8bdb44fd47
Remove an outdated doc statement.
...
https://bugzilla.gnome.org/show_bug.cgi?id=553404
2011-01-04 11:55:56 -05:00
Matthias Clasen
e515bd4f71
Some more calendar doc additions
...
Proposed by Nikos Kouremenos
https://bugzilla.gnome.org/show_bug.cgi?id=321958
2011-01-04 11:44:09 -05:00
Matthias Clasen
336d355c2a
Some documentation additions
...
Proposed by Bruno Piguet.
https://bugzilla.gnome.org/show_bug.cgi?id=559503
2011-01-04 11:36:42 -05:00
Matthias Clasen
bf2a6114ab
Mention gvfs in the gtk_show_uri() docs
...
https://bugzilla.gnome.org/show_bug.cgi?id=622125
2011-01-04 11:25:40 -05:00
Matthias Clasen
ee89c605cf
Some documentation improvements for gtk_init/gtk_parse_args
...
https://bugzilla.gnome.org/show_bug.cgi?id=562182
2011-01-04 11:18:42 -05:00
Matthias Clasen
0a069e1643
Document DESKTOP_STARTUP_ID use
...
Closes https://bugzilla.gnome.org/show_bug.cgi?id=165987
2011-01-04 10:58:04 -05:00
Szilárd Pfeiffer
f130db44ea
gail: add/remove horizontal/vertical state based on orientation value
...
Now, these states are depending on the widget class.
2011-01-04 10:47:54 -05:00
Milan Bouchet-Valat
52e1722f35
GtkComboBox(Text): Add documentation about the entry
2011-01-04 10:36:08 -05:00
Matthias Clasen
06f6f7bd93
Move GtkEventBox docs inline
...
At the same time, add a private pointer, and generally clean
things up.
2011-01-04 10:33:33 -05:00
Tristan Van Berkom
68aa336f5f
Removed TABs and trailing whitespace from GtkComboBox and GtkTreeMenu
2011-01-05 00:14:25 +09:00
Tristan Van Berkom
f5f822b91c
Moved GtkMenuItem private functions to the private header.
2011-01-05 00:14:08 +09:00
Tristan Van Berkom
185744d402
Mentioned that GtkTreeMenu is based on some GtkComboBox code in the copyright header.
2011-01-04 23:37:14 +09:00
Tristan Van Berkom
4ff893979b
Fixed conflicts after rebasing master into combo-refactor branch.
2011-01-04 23:37:14 +09:00
Tristan Van Berkom
d681aa7977
Fixed GtkComboBox to properly set tearoff state on delegate GtkTreeMenu.
...
This breakage was also the cause of not correctly positioning the child
menu over the selected item.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
80e427c857
Fixed gtktreemenu for new gtkcellareabox api.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
7b2d6e5cdf
Make GtkTreeMenu a private class:
...
- Removed GtkTreeMenu from gtk-docs.sgml
- Removed GtkTreeMenu from gtk3-sections.txt
- Removed GtkTreeMenu from gtk.symbols
- Make GtkTreeMenu apis prefixed with '_' (including _get_type()).
- Updated GtkComboBox sources to use the private apis
- Updated GtkCellView to not mention #GtkTreeMenu in gtk-doc statements
- Updated tests/testtreemenu to not use a GtkTreeMenu but still
show a very fancy GtkComboBox
- Moved gtktreemenu.h to private headers section in the makefile.
- Removed include of gtktreemenu.h from gtk.h
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
6ae724c0d3
Added LISTMODE env var check to testcombo.c so that one can easily test listmode.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
57857f13df
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_and_entry.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
b3ff60db71
Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
467fb0d7dc
Fixed gtk_tree_menu_path_in_menu function which has been malfunctioning.
...
Now sensitivity is properly handled in the "apply-attributes" callback.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
01981311da
Removed GtkComboBoxPrivate->minimum/natural_width members.
...
And updated gtk_combo_box_list_position() which is still waiting
for GtkTreeView to report natural width in order to properly do
non fixed width dropdown menus.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
ee02ac5863
Re-refactored GtkComboBox to not reorder the file.
...
Turns out reordering the file the way I did before put
me in an unmergable situation, now re-refactored the
combo and list-mode works again.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
f3de78a023
Fixing GtkComboBox breakage after merge, completing hand-merge of style-context GtkBorder issues (now it works again).
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
0c9c031962
Fixing GtkCellView to not strcmp() in buildable_custom_tag_end()
...
GtkCellLayout function now returns boolean if one of the tags
it was interested in was handled.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
85609d124a
Added clarification to the GtkCellView:cell-area-context documentation.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
613545f821
Fixed a broken gtk-doc statement in gtktreemenu.c
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
1f1e94739b
Added remaining missing gtk-doc statements for GtkCellView.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
e8503f600e
Added GtkTreeMenu to gtk+ documentation and updated sections for newly added GtkCellView apis.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
7a673b2ed1
Added all documentation for new GtkTreeMenu
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
f358dfbccc
Added new symbols for GtkTreeMenu and added GtkCellView apis to gtk.symbols
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
c8b63bfe03
Removed calls to gtk_cell_area_context_sum_*() since they went away.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
b57095412b
Added aligned food menu test to testcombo.c
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
15ac4be60f
Fixed combo-refactor branch for recent switch to gtk_cell_area_context_reset() api.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
ab3b75aeb1
Adding a combo box to testtreemenu to show the GtkTreeMenu at work as a combo box delegate.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
1193c30e15
Revert "Added gtk_tree_menu_get_area()."
...
This reverts commit d32d7c8f9c4d2bcd7c5c206c09273ce67ed20df4.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
b32ee4fde3
Added orientation control to the treemenu test.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
bd1b4ddf75
Updated GtkCellView for new gtk_cell_area_context_allocate() api.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
26a6965d26
Aligned prototypes in gtkcellview.h
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
f101bf4a2d
Added gtk_tree_menu_get_area().
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
2e2eb786d3
Make GtkCellView orientable and only allocate the cell area in the orientable orientation (unless its a "fit-model" cellview which gets both).
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
6ab29f5fd8
Removing apis from GtkCellView
...
APIS: gtk_cell_view_get_desired_width_of_row &
gtk_cell_view_get_desired_height_for_width_of_row were introduced in
3.0 only for use from GtkComboBox and now the refactored cellview
does this transparently and just requests the right thing through
GtkWidget apis.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
238bf5cbaa
Oops one of my last commits disabled some tests, re-enabling them.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
caf1d57fd3
Fixed inserting and deleting rows for submenus of GtkTreeMenu
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
4a5be7c74e
Getting closer to updating the treemenu view properly from the model signals
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
39cf1576d7
Fixed GtkCellView to always allocate when in fit-model mode.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
83c69f4cf3
Implementing GtkComboBox using GtkTreeMenu !
...
First iteration at implementing combo box using a delegate
treemenu, almost everything is working. Still need to finalize
sensitivity issues in GtkTreeMenu (and should go ahead and pass
through GtkComboBox code with a fine comb...).
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
e1ecd34ce1
Added "fit-model" and "draw-sensitive" properties to GtkCellView
...
- "fit-model" decides that the cellview should request space for
the entire treemodel, this ensures the cell view displayed on
a combo box will not spuriously change size when the selected
item changes.
- "draw-sensitive" forces cell area to render cells sensitive
even if they are insensitive in the model.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
d48690c32c
Make GtkTreeMenu update menu item sensitivity when "apply-attributes" signal is fired for a row in the menu.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
84a726c3ce
Support grid mode in GtkTreeMenu
...
Added properties "wrap-width", "row-span-column" and "column-span-column"
to allow grid style menus from treemodels. Handling row data changes
appropriately.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
e628345394
Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
de59f05ccd
Added gtk_tree_menu_set/get_tearoff to allow the root menu to have a tearoff item
...
Combo boxes expose an "add-tearoffs" feature to add a tearoff item to the root of the combo menu, added this feature to GtkTreeMenu to achieve this (and updated the testcase).
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
3a56f8814f
Reduced code size in GtkTreeMenu by only implementing GtkCellLayout->get_area method for the GtkCellLayout iface.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
b6b810ba51
Reduced code in GtkCellView by just implementing the GtkCellLayout->get_area method.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
438b0f7c9b
Connected to GtkTreeModel signals in GtkTreeMenu
...
Now the GtkTreeMenu properly updates its hierarchy when the underlying
model data changes (row inserted/deleted or reordered). Also some unneeded
hackery was removed, all size calculations are delegated to the cellviews.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
88ec6a62ef
GtkCellView now watches the "row-changed" signal.
...
When the "row-changed" signal on the model is trapped, if the row which
changed is the displayed row then the context is flushed and sizes are
recalculated for every area in the same context.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
9ffaae5022
Added GtkTreeMenuHeaderFunc to decide if a submenu gets a leaf header.
...
GtkComboBox needs treemenus to allow selection of all leafs including
rows which may have children, this allows the combobox or combobox user
to decide which row that has children can also be selectable as a header
leaf of the submenu. Test case testtreemenu updated to reflect this.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
6d8dfd5546
Fixed GtkCellView to not clear the layout when disposing
...
The layout belongs the underlying area which may be shared across
views and treemenus, let the cells be destroyed when the area is finally
destroyed.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
53bdca9dae
Adding more "small" submenus to testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
1cacae9cc4
Fixed trailing ';' on if statement in gtkmenuitem.c
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
aef55bb629
Added submenus to tests/testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
963db86d23
Fixed GtkTreeMenu to not infinitely recurse when building submenus.
...
GtkTreeMenu needs to only populate it's submenus when set_root()
is called, we were populating it when the model is set which cause
the tree to be infinitely populated as the root is NULL by default.
Also call gtk_menu_set_reserve_toggle_thingy (FALSE) to not reserve
space for the toggle size.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
c690402446
Fixed GtkMenuItem to reserve the actual arrow size and spacing
...
GtkMenuItem was reserving arrow size based on it's requested height,
now base the submenu arrow size on the actual arrow size and spacing.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
26c3f1a26d
Adding GtkTreeMenu class.
...
Added GtkTreeMenu class to automatically render
a GtkTreeModel into a GtkMenu hierarchy (will be
used by GtkComboBox for its dropdown menus). Included
an accompanying testcase tests/testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
f15a589651
Added gtk_menu_item_set/get_reserve_indicator.
...
This is needed by GtkTreeMenu to ensure that child menu items
reserve space for the submenu indicator even if they dont have
submenus... in this way we ensure the same size of all cell
areas in the menu items at allocation/request time.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
5e8e4429c7
Fixing GtkCellView PROP_CELL_AREA_CONTEXT property id
...
... and renaming some internal variables.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
988200800c
Added gtk_cell_view_new_with_context().
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
b70589b6a4
Reimplemented GtkCellView using an internal GtkCellArea.
...
Added construct GtkCellArea and GtkCellAreaContext properties,
the context property allows putting multiple cellviews into the
same size request context.
2011-01-04 23:37:05 +09:00
Tristan Van Berkom
58cdd6d38e
Removed GtkMenuItem->show_submenu_indicator flag
...
The show_submenu_indicator flag was explicitly set in various
places from GtkMenu/GtkMenuBar at request times, since the
GtkMenuItem already checks the parent type for GTK_IS_MENU_BAR()
in various places, removed this flag in favor of just checking
the parent type (only in the interest of better readable code).
2011-01-04 23:37:05 +09:00
Matthias Clasen
7352a166b6
Formatting fixes and whitespace cleanups
2011-01-04 02:21:38 -05:00
Matthias Clasen
32bfc980c1
Remove pack property altogether
2011-01-04 02:06:03 -05:00
Matthias Clasen
723fedef8b
Remove pack consideration from tab drawing
2011-01-04 02:03:03 -05:00
Matthias Clasen
4ea886aea1
Don't consider pack when allocating tabs
2011-01-04 01:57:22 -05:00
Matthias Clasen
f9d6bc6cca
Drop pack consideration from gtk_notebook_search_page
2011-01-04 01:39:18 -05:00
Matthias Clasen
a7bb193377
Drop internal function to find page position
2011-01-04 01:36:09 -05:00
Matthias Clasen
f838ecf9f0
Remove pack consideration from tab dnd
2011-01-04 01:35:52 -05:00
Matthias Clasen
88501d527d
Remove pack consideration from tab reordering
2011-01-04 01:23:05 -05:00
Matthias Clasen
03b37a2e54
Remove pack arguments from some internal functions
...
This removes pack from gtk_notebook_{set,query}_tab_label_packing.
2011-01-04 01:11:28 -05:00
Matthias Clasen
08a99e9ab3
Remove the deprecated GtkNotebook:tab-pack child property
2011-01-04 00:57:34 -05:00
Matthias Clasen
98b140e7b5
Don't use GtkNotebook:tab-pack in testnotebookdnd
2011-01-04 00:55:50 -05:00
Matthias Clasen
c874bba0e1
GtkNotebook: fix reference to no-longer-exiting function in docs
2011-01-03 22:55:38 -05:00
Matthias Clasen
72b69ae2ed
Don't use page_size in GtkSpinButton
...
It ought to be 0 anyway, but don't use it.
This puts bug 307963 to rest.
2011-01-03 21:51:58 -05:00
Matthias Clasen
a975d62071
Rename gtk-update-icon-cache and gtk-builder-convert back
...
In bug 635207, it was pointed out that it is a bad idea to
rename these tools purely in the name of parallel-installability,
since it forces dependencies to make a choice between running
gtk-update-icon-cache and gtk-update-icon-cache-3.0 (or both ?!).
So, we rename these utilities back to their un-suffixed names
and rely on distributors to resolve the conflict between GTK+ 2.x
and GTK+ 3.0 packages, which can be done e.g. by dropping the
utilities from the gtk3 packages and add a gtk3 -> gtk2 dependency.
2011-01-03 21:35:23 -05:00
Carlos Garnacho
7266d0f11f
Make GtkPathBar use ::style-updated
2011-01-04 03:06:27 +01:00
Carlos Garnacho
c3b5b3531c
GtkPaned: Remove unneeded call
2011-01-04 03:06:26 +01:00
Carlos Garnacho
f9a5c14ac0
Make GtkOffscreenWindow use GtkStyleContext
2011-01-04 03:06:26 +01:00
Carlos Garnacho
7e2dea1dff
GtkNotebook: remove unneeded call
2011-01-04 03:06:25 +01:00
Carlos Garnacho
61691117dc
GtkMisc: Remove unneeded calls
2011-01-04 03:06:24 +01:00
Carlos Garnacho
905604550a
Make GtkMessageDialog use GtkStyleContext
2011-01-04 03:06:24 +01:00
Carlos Garnacho
166b709c7f
Make GtkLinkButton use ::style-updated
2011-01-04 03:06:23 +01:00
Carlos Garnacho
80e115331c
GtkInvisible: Avoid chaining up in ::style-updated
2011-01-04 03:06:22 +01:00
Carlos Garnacho
7b3de2d552
Make GtkHandleBox size request code use GtkStyleContext for padding
2011-01-04 03:06:22 +01:00
Carlos Garnacho
b062a583d3
Make GtkFixed use GtkStyleContext
2011-01-04 03:06:21 +01:00
Carlos Garnacho
14a5c0b9ff
Make GtkFileChooser use GtkStyleContext
2011-01-04 03:06:21 +01:00
Carlos Garnacho
8e18c2cfd2
Make GtkFileChooserButton use ::style-updated
2011-01-04 03:06:21 +01:00
Carlos Garnacho
96d8f85dcc
Make DnD code use GtkStyleContext for the highlight rectangle.
2011-01-04 03:06:20 +01:00
Carlos Garnacho
e02cbf4770
Make GtkEntryCompletion use GtkStyleContext
2011-01-04 03:06:20 +01:00
Carlos Garnacho
e4c509837f
GtkEntry: get font description from GtkStyleContext
2011-01-04 03:06:20 +01:00
Carlos Garnacho
55145e0e4e
GtkEntry: Remove unneeded calls
2011-01-04 03:06:19 +01:00
Carlos Garnacho
c180edd80c
Make GtkDrawingArea use GtkStyleContext
2011-01-04 03:06:19 +01:00
Carlos Garnacho
552c4c78f6
GtkExpander: remove unneeded call
2011-01-04 03:06:19 +01:00
Carlos Garnacho
6c21f3d8e6
Remove unneeded/deprecated call from size requisition code
2011-01-04 03:06:19 +01:00
Carlos Garnacho
c296d11ac3
GtkToolItem: Remove unneeded call
2011-01-04 03:06:19 +01:00
Carlos Garnacho
be0ebc9f5a
Make GtkDialog use ::style-updated
2011-01-04 03:06:18 +01:00
Carlos Garnacho
99791d183c
Make GtkCellView use GtkStateFlags
2011-01-04 03:06:18 +01:00
Carlos Garnacho
554e649a68
Make GtkTooltip use GtkStyleContext
2011-01-04 03:06:17 +01:00
Carlos Garnacho
41389cb435
Make GtkWin32EmbedWidget use GtkStyleContext
2011-01-04 03:06:17 +01:00
Carlos Garnacho
665a94e0f3
Make GtkPlug use GtkStyleContext
2011-01-04 03:06:15 +01:00
Carlos Garnacho
81eb953206
Make GtkRecentChooser use GtkStyleContext
2011-01-04 03:06:14 +01:00
Carlos Garnacho
732730425a
GtkSeparatorToolItem: remove unneeded call
2011-01-04 03:06:13 +01:00
Carlos Garnacho
ddd12f3f19
Make GtkSocket use GtkStyleContext
2011-01-04 03:06:12 +01:00
Carlos Garnacho
cb21085187
GtkSwitch: remove deprecated call.
2011-01-04 03:06:11 +01:00
Carlos Garnacho
f4cc2c6f17
GtkToolbar: remove deprecated call
2011-01-04 03:06:11 +01:00
Carlos Garnacho
a090de1780
Make GtkToolButton use ::style-updated
2011-01-04 03:06:10 +01:00
Carlos Garnacho
24db0283ad
Update GtkTrayIcon to GtkStyleContext
2011-01-04 03:06:10 +01:00
Carlos Garnacho
dd8887c07d
Compress all ::style-updated prior to ::realize
...
This is done to avoid early emission of this signal, that was
causing warnings during GtkDialog construction.
2011-01-04 03:06:09 +01:00
Carlos Garnacho
7981869308
Update GtkAssistant to GtkStyleContext
2011-01-04 03:06:08 +01:00
Carlos Garnacho
00a80c9bdc
Update GtkAboutDialog to GtkStyleContext
2011-01-04 02:56:26 +01:00
Carlos Garnacho
804e8a0572
Update GtkToolPalette to GtkStyleContext.
2011-01-04 02:56:26 +01:00
Carlos Garnacho
badbef33ab
GtkWindow: remove unneeded call
...
gtk_widget_style_attach() is no longer necessary.
2011-01-04 02:56:25 +01:00
Diego Escalante Urrelo
d0a3846eb1
gtkenums: add GTK_STATE_FLAG_NORMAL = 0
...
Allows a more readable omission of GtkStateFlag arguments.
Bug #638608
2011-01-03 20:37:35 -05:00
Matthias Clasen
83058bf2ca
Use AM_V_GEN in a few more places
...
Based on a patch by Javier Jardón in
https://bugzilla.gnome.org/show_bug.cgi?id=621720
2011-01-03 20:33:36 -05:00
Matthias Clasen
411cda4ff4
Keep an explicit dep on cairo in the gdk pc file
2011-01-03 18:12:54 -05:00
Matthias Clasen
86a7ae67bc
GtkColorButton: trivial doc and formatting fixes
2011-01-03 17:18:43 -05:00
Javier Jardón
55016f72f2
gtktexttag: Move public members to private header
...
And fix gail to not poke at GtkTextTag internals
2011-01-03 15:05:46 -05:00
Matthias Clasen
6a11c59290
Release GtkApplication earlier
...
GtkWindow was only releasing the application in finalize, causing
problems for language bindings. Now we release it already in destroy
(and then again in finalize for good measure).
https://bugzilla.gnome.org/show_bug.cgi?id=638580
2011-01-03 13:11:55 -05:00
Frederic Crozat
b673e5b1ee
Scale down print dialog size
...
Shrink the preview display a little to make the print dialog
fit on a typical netbook screen.
https://bugzilla.gnome.org/show_bug.cgi?id=637958
2011-01-03 12:51:22 -05:00
Matthias Clasen
b555be06b7
Make styleexamples work
...
If we are keeping this code in source control, might as well
make it work.
https://bugzilla.gnome.org/show_bug.cgi?id=638179
2011-01-03 12:34:23 -05:00
Matthias Clasen
c7f39eb07e
add gtk_selection_data_get_data_with_length API which can be bound
...
* gtk_selection_data_get_data can't be bound because we need to know the length
of data inorder to marshal it
https://bugzilla.gnome.org/show_bug.cgi?id=635299
2011-01-03 12:13:30 -05:00
Julien Cristau
d211c8af6b
gdk/x11: don't select RANDR events if the extension is missing
...
Prevents an Xlib warning on Xnest, or Xorg with xinerama, or other
non-RANDR-capable xserver. Reintroduce a have_randr12 field in
GdkDisplayX11 to avoid having to call XRRQuery{Extension,Version} twice,
and don't select randr 1.2 events if that's false.
https://bugzilla.gnome.org/show_bug.cgi?id=634711
Signed-off-by: Julien Cristau <jcristau@debian.org >
2011-01-03 12:13:30 -05:00
Kristian Høgsberg
317f8baf60
configure.ac: Consolidate gdk backend specific checks and code
...
Only the big chunk of x11 checks is left further down in the file,
but that depends on variables and checks above it, so we'll leave that in
place for now.
2011-01-03 11:59:45 -05:00
Kristian Høgsberg
9c002cf2c1
Silence automake warnings
...
When commenting out a binary, also comment out the related variables.
Don't include Makefile.decl in gtk-doc Makefile.am's as they disagree
on assigning to EXTRA_DIST.
2011-01-03 11:59:45 -05:00
Kristian Høgsberg
cacee7e7a3
configure.ac: Support multiple GDK backends in one build
2011-01-03 11:59:45 -05:00
Benjamin Otte
ae7e5fc2d1
gdk: Simplify code
...
Move a previous vfunc into the only caller.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6c39cade16
gdk: Get rid of GdkDisplayDeviceHooks
...
Move the only user to call the function directly and copy the called
function over.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6e18276f52
gdk: Move get_device_state out of the display hooks
...
Previous callers now use _gdk_device_query_state() directly.
2011-01-03 17:44:24 +01:00
Benjamin Otte
2267602295
gdk: Simplify code
...
Fold the previous vfunc into the only caller.
2011-01-03 17:44:24 +01:00
Benjamin Otte
8d2104fdc9
gdk: Move window_get_device_position function out of the device hooks
2011-01-03 17:44:24 +01:00
Matthias Clasen
c07f9c040f
Some configure.ac cleanups
...
Change from --with-xinput to --enable-xinput, and consistently
use AC_HELP_STRING. Also document the packagekit options in the
docs.
2011-01-03 11:29:26 -05:00
Benjamin Otte
d72d19d247
API: gdk: Remove gdk_display_set_device_hooks()
...
There's no usecase for them, so remove them before we have to commit to
keeping an API.
Make the hooks private for now, actually removing them will come in
followup patches.
2011-01-03 16:51:38 +01:00
Benjamin Otte
ff1ad99dce
API: gdk: Remove gdk_display_set_pointer_hooks()
...
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
I couldn't find any app using it after asking around and googling either.
2011-01-03 16:35:10 +01:00
Benjamin Otte
36a15720b1
API: gdk: Remove gdk_set_pointer_hooks()
...
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
It has been superseded in GTK 2.2 by GdkDisplayPointerHooks anyway.
2011-01-03 16:25:18 +01:00
Benjamin Otte
d1ecd28695
cups: Someone can neither type, read compiler output and run tests.
...
Being able to do one of these would have caught this.
2011-01-03 16:25:18 +01:00
Matthias Clasen
7537907baf
cups printbackend: create a pdf surface when appropriate
...
This should address bug 560177.
Based on a patch by Adrian Johnson.
2011-01-03 09:34:04 -05:00
Matthias Clasen
a493fad990
Remove gtk_printer_new from gtkprintbackend.h
...
The function has been in gtkprinter.h forever.
2011-01-03 08:14:34 -05:00
Adrian Johnson
ebcd0ba233
Set file GtkPrinter accepts_pdf/ps based on selected format
2011-01-03 08:14:34 -05:00
Adrian Johnson
856cc65f63
Set "accepts-pdf" property to true only if supported by the print backend
2011-01-03 08:14:34 -05:00
Carlos Garcia Campos
3fff4bd091
GtkRadioButton: Use "radio" style class instead of "check"
2011-01-03 13:09:00 +01:00
Matthias Clasen
83f5e4868c
Drop no-longer-used migration docs
2011-01-02 23:57:03 -05:00
Nguyễn Thái Ngọc Duy
cf752786f3
gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
2011-01-02 23:40:00 -05:00
Nguyễn Thái Ngọc Duy
98a30bbf3e
gdkcursor-x11.c: fix building without HAVE_XCURSOR
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
2011-01-02 23:39:55 -05:00
Matthias Clasen
85fe6cb2c4
Move GtkSpinButton docs inline
...
...and modernize the examples at the same time.
This fixes a problem pointed out in bug 638193.
2011-01-02 23:30:02 -05:00
Matthias Clasen
1a87dfdf6d
Fix list handling in gdk_x1_display_init_input
...
Pointed out in bug 638386.
2011-01-02 21:41:30 -05:00
Kjartan Maraas
7ee697ab8d
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
2011-01-02 19:32:29 +01:00
Kjartan Maraas
8a9457cb80
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
2011-01-02 19:31:56 +01:00
John Ralls
acf13456b1
Fix refresh of static autorelease_pool so that it doesn't happen in gtk-nested loops.
2011-01-02 10:23:20 -08:00
Hans Breuer
23506c0e44
c99ism: declaration in the mid of a block
2011-01-02 13:33:13 +01:00
Hans Breuer
53c1b21ffb
win32: disable gdk_display_get_default ()->core_pointer
...
I neither know how to trigger this code nor what would be
the suggested replacement API. BUt it's the last thing stopping
me to compile GTK3 for win32.
2011-01-02 13:33:12 +01:00
Hans Breuer
5fe027500e
win32: include gtkprivate.h for win32 GTK_DATA_PREFIX
2011-01-02 13:33:11 +01:00
Hans Breuer
d4c4db6a7c
Avoid C99 sinf()
2011-01-02 13:33:10 +01:00
Hans Breuer
67b4eff921
win32: use GtkSocketPrivate
2011-01-02 13:33:09 +01:00
Hans Breuer
a2b1da064a
win32: ported backend specific code to now backend specific API
2011-01-02 13:33:08 +01:00
Hans Breuer
cfeaba9d62
Protect Unix specific print functions with G_OS_UNIX
...
Although gtk.symbols seems to be unused on Unix now it still
must not contain unprotected Unix only functions, because they
can not be exported on win32.
2011-01-02 13:33:07 +01:00
Hans Breuer
95213b3f04
win32: update msvc build
2011-01-02 13:33:06 +01:00
Hans Breuer
1d838f586c
win32: gdk3 resurrection
...
There are sure regressions but basic stuff seems to be working
again after all the API breakage done with comments like
"Win32 and Quartz need to be ported still."
2011-01-02 13:33:04 +01:00
Hans Breuer
fc122305d0
Protect inclusion of unistd.h
2011-01-02 13:29:23 +01:00
Hans Breuer
cdb998dea6
Fix line endings
...
The unix version had CrLf which results in modified by checkout
under windows.
2011-01-02 13:08:06 +01:00
Daniel Nylander
54cd607393
Updated Swedish translation
2010-12-31 01:42:34 +01:00
Daniel Nylander
ac8a10f6c4
Updated Swedish translation
2010-12-30 21:15:44 +01:00
Jorge González
3810e4da49
Updated Spanish translation
2010-12-29 22:51:20 +01:00
Fran Diéguez
a6168288f8
Solved bug 638231 in Galician translations
2010-12-29 13:05:44 +01:00
Tristan Van Berkom
c234313a25
Make GtkCheckButton's label left aligned by default.
...
Since we no longer limit the label's allocation to the minimum, now
we take a saner approach to left aligning the label.
2010-12-29 18:20:32 +09:00
Tristan Van Berkom
a6a97ad442
Fixed unused variable in GtkCheckButton.
2010-12-29 16:30:38 +09:00
Tristan Van Berkom
21aef5b77f
Fixed generic height-for-width implementation of GtkBin to consider request adjustments
...
Since "->adjust_size_request()" was added, it became important for GtkBin's
generic height-for-width implementation to further check the requests
using this vfunc.
2010-12-29 16:26:05 +09:00
Tristan Van Berkom
f519da41cf
Make GtkCheckButton allocate all remaining space to it's child instead
...
of limiting it to it's minimum size.
This fixes height-for-width labels inside a GtkCheckButton, for some
reason GtkCheckButton was limiting the child allocation to the child's
minimum request, probably for the sake of virtual left-alignment of
the child label to be beside the checkmark. This should be done by
other means if nescesarry.
2010-12-29 16:19:48 +09:00
Tristan Van Berkom
2fe4e6a815
Added proper height-for-width implementation to GtkAlignment.
...
For "padding" cases, it would be ok to fallback on GtkBin class
implementation of height-for-width. However in cases where the
user set's an xscale/yscale the GtkAlignment needs to take care
of properly adjusting the for_size when querying it's child.
2010-12-29 16:18:04 +09:00
Tristan Van Berkom
7fab89d93f
Removed checks in gtksizerequest.c
...
Checks were in place to ensure that widgets never request taller
or wider than screen size. This was there to test a theory about
scrolled window children functioning correctly with dynamic content
however it breaks GtkViewport children which can generally return a
value taller than screen height intentionally, GtkViewport uses this
value to update the adjustments.
2010-12-29 16:12:11 +09:00
Carlos Garnacho
ac00e77e54
Make GtkToolbar use GtkStyleContext
2010-12-28 19:25:49 +01:00
Carlos Garnacho
a3a9c61a5a
Make GtkHandleBox use GtkStyleContext
2010-12-28 19:25:49 +01:00
Carlos Garnacho
029fb53ac2
Make GtkSwitch use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
18b333bfe7
Make GtkFileChooserEntry make GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
b2e8992291
Make GtkProgressBar use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
e3457a83cf
Make GtkScrolledWindow use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
53a4feadf0
Make GtkEventBox use GtkStyleContext.
2010-12-28 19:25:47 +01:00
Carlos Garnacho
06462b98a0
Make GtkFrame use GtkStyleContext.
2010-12-28 19:18:57 +01:00
Carlos Garnacho
7a623988e5
Fix leak in GtkStyle.
2010-12-28 19:06:46 +01:00
Tristan Van Berkom
05254766c7
Avoid rendering frames when shadow type argument is GTK_SHADOW_NONE in
...
gtk_paint_* functions.
2010-12-28 23:15:39 +09:00
Ignacio Casal Quinteiro
9d64a5833d
Fix docs.
2010-12-28 11:18:01 +01:00
Matthias Clasen
7032996c76
Remove bashisms from configure.ac
...
Pointed out by Koop Mast in
https://bugzilla.gnome.org/show_bug.cgi?id=637974
2010-12-27 19:24:05 -05:00
Benjamin Otte
42fbccd3d2
API: gdk: Remove gdk_device_set_source()
...
The source of a device is not changeable.
2010-12-27 20:08:50 +01:00
Benjamin Otte
e4cc259111
testgtk: Don't use deprecated APIs
2010-12-27 19:43:24 +01:00
Benjamin Otte
7ab7422821
testgtk: Use the relevant device to query the widget to snapshot
...
Also gets rid of deprecated functions.
2010-12-27 19:27:16 +01:00
Benjamin Otte
9746991548
API: gdk: Make gdk_display_get_window_at_device_position() a device API
...
It's now called gdk_device_get_window_at_position(). It doesn't make
sense to keep device-specific API part of the display.
2010-12-27 18:46:41 +01:00
Benjamin Otte
0c285341a9
API: gdk: gdk_display_get_device_state() => gdk_device_get_position()
...
The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
2010-12-27 18:46:41 +01:00
Alejandro Piñeiro
586283ecbb
[gail] Clean the code to check the redundan object on the show watcher
...
The watcher doesn't add a window if is a redundant object. This
patch fixes two things:
* The check was made twice.
* It uses a check with the string "redundant object", when the
defined role ATK_ROLE_REDUNDANT_OBJECT is available
2010-12-27 16:23:55 +01:00
Alejandro Piñeiro
e1029b907c
[gail] Proper connection to a toplevel window destroy signal
...
Only connect to the destroy of a toplevel window if it was
really added to the toplevel list of windows.
The destroy callback was added to remove the window from
the toplevel list. The callback doesn't cause a error,
but would iterate on the toplevel list without success.
2010-12-27 13:21:09 +01:00
Matthias Clasen
48b47971b5
Fix some issues with initial setup of GdkX11DisplayManager
...
We need to defer setting the default display until the
GdkDisplay is fully initialized. Also, short-circuit some
encoding conversions when creating windows, to avoid an
implicit dependency on the display being in the list of
displays yet.
2010-12-27 01:02:52 -05:00
Matthias Clasen
59ea137fa0
GtkTreeView: Don't use deprecated grab api
2010-12-26 23:40:59 -05:00
Matthias Clasen
51f7e42650
Remove pointless sealing from GtkTextMark
2010-12-26 23:17:10 -05:00
Matthias Clasen
0c4a0dae6d
Remove pointless sealing from GtkTextChild
2010-12-26 22:58:57 -05:00
Matthias Clasen
9dee9a84d0
Removed sealed members from GtkMenuItem
2010-12-26 22:58:57 -05:00
A S Alam
05eb55dcfc
update Punjabi Properities file
2010-12-27 07:30:19 +05:30
Benjamin Otte
45d98d108e
tooltip: Don't use deprecated APIs
2010-12-27 01:05:40 +01:00
Benjamin Otte
a5f493bfad
notebook: Use nondeprecated API to query coordinates
2010-12-27 00:50:30 +01:00
Benjamin Otte
9bab53f1bd
hsv: Fix gcc warnings
2010-12-27 00:45:56 +01:00
Matthias Clasen
5bc0cf1a19
Fix some more typos
2010-12-25 00:29:23 -05:00
Matthias Clasen
8f816d7c3b
Fix a few typos
2010-12-25 00:26:22 -05:00
Matthias Clasen
27ce9421d0
Fix up GDK docs
2010-12-25 00:02:39 -05:00
Matthias Clasen
436e75c34c
Add deprecation guards for deprecated grab APIs
2010-12-24 20:01:24 -05:00
Matthias Clasen
bde1d072e5
Don't use gdk_{pointer,keyboard}_grab
...
Instead use gdk_device_grab.
2010-12-24 20:00:19 -05:00
Matthias Clasen
1d41b98cf8
Add deprecation guards for deprecated GdkAppLaunchContext API
...
Also adapt the docs to not use deprecated API.
2010-12-24 17:37:00 -05:00
Matthias Clasen
1e13b42b9b
Avoid some gtk-doc warnings
2010-12-24 17:36:19 -05:00
Matthias Clasen
29eb3fba5f
Fix gdk_x11_display_text_property_to_text_list
...
This was an incomplete attempt to get rid of the custom free function.
Lets just keep it for now. Bug 637849, patch by Dan Winship.
Also add a test case for this function.
2010-12-24 16:27:31 -05:00
Matthias Clasen
92f163d40a
Consistently hide class structs
...
And, since we've decided to keep the structs private, there is
no point in having the standard GObject clas macros anymore either.
2010-12-24 15:54:12 -05:00
John Ralls
806b6dfa08
Rename GdkQuartzWindow.h and .c to GdkQuartzNSWindow.h and .c
...
Normally HFS+ (the MacOSX file system) isn't case-sensitive, so having both
GtkQuartzWindow.h and gtkquartzwindow.h causes the latter to overwrite the
former during git pull, breaking the build.
2010-12-24 11:29:08 -08:00
Carlos Garnacho
0f0512aee3
Use gtk_style_context_get_font() in GtkSpinButton
2010-12-24 20:20:40 +01:00
Carlos Garnacho
92102c3bf4
Make GtkSeparator use GtkStyleContext
2010-12-24 19:38:14 +01:00
Carlos Garnacho
7c35994bda
Make GtkPaned use GtkStyleContext
2010-12-24 19:38:06 +01:00
Carlos Garnacho
760d6d1e78
Do not set "entry" class in spinbutton buttons.
...
Also, fix an unpaired gtk_style_context_save() call.
2010-12-24 19:37:56 +01:00
Carlos Garnacho
2bd221d215
Bug 637910 - GtkSpinner - does not animate
...
Fix widget-to-window coordinates translation in the
style context animation code.
2010-12-24 19:37:49 +01:00
Carlos Garnacho
7f099a9a23
Make GtkArrow use GtkStyleContext
2010-12-24 19:37:41 +01:00
Carlos Garnacho
e5e95934ba
Fix color name (as of rgb.txt) parsing in symbolic colors
...
The end of the substring wasn't being detected properly.
2010-12-24 19:37:30 +01:00
Carlos Garnacho
1cecb10584
Make GtkAccelLabel use GtkStyleContext.
2010-12-24 19:37:20 +01:00
Javier Jardón
5e74427dee
gailmenushell.c: Fix typo
2010-12-24 18:42:24 +01:00
Javier Jardón
03cddad42b
build: Use autoreconf
2010-12-24 18:40:54 +01:00
Kristian Rietveld
c659542333
Check for NULL pointer
2010-12-24 14:45:47 +01:00
Javier Jardón
30cdab13fe
docs: Add docs about how to get a GtkDevice
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=637895
2010-12-24 14:39:55 +01:00
Matthias Clasen
55ca24d1d4
Drop GtkThemeEngine
...
It is not used anymore.
2010-12-23 22:16:50 -05:00
Matthias Clasen
ca493cd20d
Fix a few warnings
2010-12-23 22:11:50 -05:00
Matthias Clasen
7ff572dfd3
Add some missing includes
2010-12-23 22:11:28 -05:00
Matthias Clasen
1bcf8a0027
Remove sealed members from GtkSettings
2010-12-23 21:56:50 -05:00
Stef Walter
433a22cd11
Remove private header from gtkwindow.h
...
https://bugzilla.gnome.org/show_bug.cgi?id=637907
2010-12-23 19:23:48 -06:00
Matthias Clasen
7650482e46
Add sufficient API to make gail work
...
The accessible implementations should really be folded into
gtk proper. Until that happens, we need some more guts exposed...
2010-12-23 20:11:38 -05:00
Matthias Clasen
2ed81aa57c
Remove sealed members from GtkMenuShell
2010-12-23 18:21:53 -05:00
Matthias Clasen
c5b020e628
Remove sealed members from GtkMenu
2010-12-23 15:51:20 -05:00
Jorge Gonzalez
65652d818d
Updated Spanish translation
2010-12-23 20:47:02 +01:00
Gheyret T.Kenji
9b6a0a0e2b
Added UG translation
2010-12-23 20:17:15 +01:00
Gheyret T.Kenji
80b534561b
Added UG translation
2010-12-23 20:11:32 +01:00
Gheyret T.Kenji
4064a100f0
Added UG translation
2010-12-23 19:18:55 +01:00
Matthias Clasen
96d1c2c46e
Reserve space for a pointer in GtkDrawingArea
...
It was pointed out that this will let us add a private pointer
without abi break in the future, should we ever need one.
2010-12-23 13:01:21 -05:00
Matthias Clasen
3e08a23237
Drop long-obsolete linux framebuffer APIs
...
The functions to set frames on windows stopped being interesting
when the linux framebuffer port was dropped, many years ago.
Similar functionality may come back with client-side decorations
in the future.
2010-12-23 12:59:49 -05:00
Kristian Rietveld
9ab2786991
GtkCellRendererText: use PANGO_PIXELS_CEIL for text_width
...
Usually pango_layout_get_pixel_extents() is used, which uses
PANGO_PIXELS_CEIL on the rectangle's width. This commit makes the new
function gtk_cell_renderer_text_get_preferred_width() consistent with
this.
This fixes rounding errors on Mac OS X, where we were seeing tree views
with a double height for a single line of text, while the usual single
row height would have been sufficient.
2010-12-23 18:41:23 +01:00
Kristian Rietveld
31536736ea
Hide GtkTreeViewColumn buttons when header_window is not visible
2010-12-23 18:19:56 +01:00
Kristian Rietveld
26173c7864
Delimit the other_entries array
2010-12-23 18:19:55 +01:00
Matthias Clasen
3a6800a898
Some small doc corrections
2010-12-23 11:18:50 -05:00
Matthias Clasen
1f9ce46906
Update keymap docs to match current behaviour
...
An overlooked API change in the gdk-backend work: many of the
keymap functions used to accept NULL to mean 'default keymap'.
They no longer do, so update the docs to match the new behaviour.
2010-12-23 10:06:08 -05:00
Kristian Rietveld
374f8e22aa
quartz: internalize _gdk_quartz_window_set_needs_display_in_region
2010-12-23 14:17:42 +01:00
Kristian Rietveld
f0b8dcb4f3
quartz: move gdkgeometry-quartz into gdkwindow-quartz.c
2010-12-23 14:17:42 +01:00
Kristian Rietveld
deffbd9885
quartz: reorder gdkprivate-quartz.h and related clean up
2010-12-23 14:17:42 +01:00
Kristian Rietveld
ac6f50120b
quartz: _gdk_quartz_visual -> gdk_quartz_visual
2010-12-23 14:17:42 +01:00
Kristian Rietveld
1e2907fa02
quartz: _gdk_quartz_screen -> gdk_quartz_screen
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0736544174
quartz: _gdk_quartz_keymap -> gdk_quartz_keymap
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0d8eeb924e
quartz: _gdk_quartz_display -> gdk_quartz_display
2010-12-23 14:17:42 +01:00
Kristian Rietveld
07110a6170
quartz: we must provide a window on drag begin now
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0840b25165
quartz: fix some more typos
2010-12-23 14:17:42 +01:00
Kristian Rietveld
1e814709d7
quartz: fix typo
2010-12-23 14:17:41 +01:00
Kristian Rietveld
fb8717f722
quartz: move utils to gdkutils-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
f15934bd66
quartz: remove gdkmain-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
caa9794af8
quartz: Clean up header files, use same arrangement as X11 backend
2010-12-23 14:17:41 +01:00
Erdal Ronahi
dd5a74dcbc
Updated Kurdish translations
2010-12-23 14:14:10 +01:00
Matthias Clasen
af9d59aaca
Allow inspection of construct-only object properties
...
The 'Properties' button here is not really modifying the property
in any way, so it doesn't make sense to disable it just because
the object can only be set at construction.
This lets us poke at e.g. the cell area of an icon view.
2010-12-23 00:43:50 -05:00
Brian Cameron
f90365d46b
Fix spacing.
2010-12-22 21:58:40 -06:00
Brian Cameron
e88a44f4c9
Fix bug #637721 , fix function prototype.
2010-12-22 21:57:12 -06:00
Matthias Clasen
d77dcfb9b2
Better fix for keynav dnd
...
With proper rounding, we can go back to a 'small step' of 1.
2010-12-22 22:33:40 -05:00
Matthias Clasen
7e0a30b752
Abort a drag when a keynav drop has not destination
...
This was claimed to cause problems for Chromium, see bug 599130.
Also work around apparent rounding errors in XIWarpDevice by
setting the 'small step' for keynav dnd to 2 instead of 1 - I notice
that a warp seems to sometimes warp a little less than I tell it to,
and if I tell it to only move by 1 pixel then moving less means
that you are stuck.
2010-12-22 21:47:14 -05:00
Matthias Clasen
9baf24f87e
Add a default handler for drag_failed
...
And use it in notebook dnd.
2010-12-22 18:46:29 -05:00
Matthias Clasen
e6693ab840
Avoid invariant checking spew in gnome-shell
...
For normal toplevels, visible is tightly bound to mapped, but for
something like a toplevel that exists within a Clutter stage we
may want to make mapping dependenton external factors, so we shouldn't
actually checked that !mapped toplevels are !visible.
Pointed out by Owen Taylor,
https://bugzilla.gnome.org/show_bug.cgi?id=637834
2010-12-22 16:54:52 -05:00
Kristian Rietveld
197590258f
quartz: Make keyboard input work again
2010-12-22 22:33:05 +01:00
Kristian Rietveld
48b6b939d3
Implement process_updates_recurse for GdkOffscreenWindow
...
Makes offscreen windows work again.
2010-12-22 20:41:39 +01:00
Matthias Clasen
03f7e26d26
Don't return PropertyNotify.state as modifier state
...
It isn't, it really is a GdkPropertyState.
Reported by Tim Janik in bug 633795.
2010-12-22 14:33:09 -05:00
Matthias Clasen
3adb7c7a49
Avoid a crash
...
pointed out in bug 533745
2010-12-22 14:08:03 -05:00
Javier Jardón
187762d8b3
docs: fix a typo
2010-12-22 17:05:50 +00:00
Kristian Rietveld
083c556e00
quartz: rename GdkDeviceManagerCore -> GdkQuartzDeviceManagerCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
59a3d9ae46
quartz: Rename GdkDeviceCore -> GdkQuartzDeviceCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
e2e4391992
quartz: commit forgotten file
2010-12-22 17:47:05 +01:00
Kristian Rietveld
2e7f14c90f
quartz: GdkDeviceCore: check for NULL pointer
2010-12-22 17:47:04 +01:00
Kristian Rietveld
32731fcb07
quartz: register before/after process all updates
2010-12-22 17:47:04 +01:00
Kristian Rietveld
ab74358b82
quartz: set all methods on window class, not root window class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
552e7be7e5
quartz: set window_type in display_class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b0ffe16f90
quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)
2010-12-22 17:47:04 +01:00
Kristian Rietveld
3bc60a8149
quartz: rename GdkQuartzWindow to GdkQuartzNSWindow
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c6fad1d2cb
quartz: fix typo
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c87e878308
quartz: add new files to Makefile.am
2010-12-22 17:47:04 +01:00
Kristian Rietveld
e5695de12b
GdkDisplayManager: register Quartz backend when applicable
2010-12-22 17:47:04 +01:00
Kristian Rietveld
5226ae3ecc
quartz: create gdkdisplaymanager-quartz.h
2010-12-22 17:47:04 +01:00
Kristian Rietveld
f2883fe8eb
quartz: gdkselection-quartz.c: fix typos
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b638515ae0
quartz: re-introduce _gdk_quartz_display_list_devices
2010-12-22 17:47:03 +01:00
Kristian Rietveld
4c663f0474
gdkwindow-quartz: fix typo
2010-12-22 17:47:03 +01:00
Kristian Rietveld
4a6c50c298
gtkclipboard-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
44d9fb2d71
gtkdnd-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
7979be1430
quartz: gtkquartz.c: add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
9b4f5a424c
gdk: Fix toplevel makefile to build non-x11 backends again
2010-12-22 17:47:03 +01:00
Kristian Rietveld
6b96c56976
quartz: remove duplicate definition of gdk_flush
2010-12-22 17:47:03 +01:00
Kristian Rietveld
8b4d583cd8
quartz: gdkkeys-quartz.c: remove duplicate function
2010-12-22 17:47:03 +01:00
Kristian Rietveld
3d02a14f4f
quartz: remove duplicate functions from gdkmain-quartz.c
2010-12-22 17:47:03 +01:00
Kristian Rietveld
fbd9fd6a38
quartz: make gdkwindow-quartz.c build again
2010-12-22 17:47:03 +01:00
Kristian Rietveld
c14078f388
quartz: adapt gdkdisplay-quartz.c to new function names
2010-12-22 17:47:03 +01:00
Kristian Rietveld
5f782ed9e7
quartz: add prototype for _gdk_quartz_screen_new()
2010-12-22 17:47:03 +01:00
Kristian Rietveld
1b344ad8e4
quartz: convert GdkVisual
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d024153c96
quartz: Fix screen implementation, rename to GdkQuartzScreen
2010-12-22 17:47:02 +01:00
Kristian Rietveld
cde6dade8f
quartz: Port gdkkeys-quartz.c to new API
2010-12-22 17:47:02 +01:00
Kristian Rietveld
6fe3100f14
quartz: Remove gdkinput code
2010-12-22 17:47:02 +01:00
Kristian Rietveld
e4a0101542
quartz: gdkeventloop-quartz.c: fix
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d0976d9f53
quartz: Fix gdkevents-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
b2844cb48b
quartz: Make GdkQuartzDisplay compile
2010-12-22 17:47:02 +01:00
Kristian Rietveld
709b4d4346
quartz: Fix display manager, move over code from gdkmain-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
988b8bf96a
quartz: gdkcursor-quartz.h: fix cut-n-paste error
2010-12-22 17:47:02 +01:00
Kristian Rietveld
98b8bf035f
quartz: gdkdevice-core: fix up
2010-12-22 17:47:02 +01:00
Kristian Rietveld
da481666cd
quartz: gdkdevice-core.c: use GdkQuartzCursor
2010-12-22 17:47:01 +01:00
Kristian Rietveld
62273fc08a
quartz: add forgotten file (gdkdnd-quartz.h)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
f4c0c47a1a
quartz: move bits into gdkcursor-quartz.h (private header for now)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
dff3973198
quartz: remove GdkCursorPrivate typedef
2010-12-22 17:47:01 +01:00
Kristian Rietveld
013cbea25f
quartz: Remove API for extension checks
2010-12-22 17:47:01 +01:00
Kristian Rietveld
881ea6e06c
quartz: convert GdkQuartzWindow to new drag context API
2010-12-22 17:47:01 +01:00
Kristian Rietveld
71404825c3
quartz: fix up GdkDragContext conversion
2010-12-22 17:47:01 +01:00
Kristian Rietveld
8cb301762a
Fix typo
2010-12-22 17:47:01 +01:00
Kristian Rietveld
3ace122563
quartz: turn quartz GdkCursor into GObject
2010-12-22 17:47:01 +01:00
Matthias Clasen
bd1ff477ca
Deal with property encoding functions for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
de41790470
Implement selection related vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
762548d303
Implement selection owner vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
547d674ce5
Implement window property vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
168b3c13b7
Implement keyval vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
9ae2dc0deb
Drop gdk_set_locale from quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
a1b300ecb6
Implement test vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
6eb2a3520c
Implement atom-related vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
51f149df5e
Implement get_keymap vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
46352afa6f
Implement create_window_impl vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
57efe15bda
Drop gdk_spawn functions
...
These have been removed since the implementation was just
a straight wrapper around g_spawn.
2010-12-22 17:47:00 +01:00
Matthias Clasen
9dbe3bd316
Drop unimplemented foreign window functions
...
These have been relegated to backend-specific
2010-12-22 17:47:00 +01:00
Matthias Clasen
b2ff02332f
Implement event_data_{copy,free} for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
4b92625fe0
Implement notify_startup_complete vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
2f3c7da763
Remove a duplicate doc comment
2010-12-22 17:47:00 +01:00
Matthias Clasen
1a04631707
Implement get_next_serial for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
dadbc63f1e
gdk_display_warp_pointer is in the frontend now
2010-12-22 17:46:59 +01:00
Matthias Clasen
a1a0205dad
Implment process_updates_recurse vfunc for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
3232be603a
Implement has_pending and queue_events vfuncs for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
733c8fc8e7
Derive GdkDisplayManager for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
8a9c604b8a
Adapt quartz device code to new ways
...
We will need to rename the Core implementations in X11/Quartz
to not clash, later.
2010-12-22 17:46:59 +01:00
Matthias Clasen
e2fea748d6
Adapt quartz visual code to new ways
...
We may still need a subclass here later, not sure
2010-12-22 17:46:59 +01:00
Matthias Clasen
46e8aadaf8
Rename _gdk_dnd_init
2010-12-22 17:46:59 +01:00
Matthias Clasen
25271f5e9a
Implement dnd vtables for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
d2ce9ec3dc
Convert a bunch of visual related calls to use the screen vtable, quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
41352f24d6
Convert all GdkScreen methods to vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
f43f259d49
Derive GdkKeymap for Quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
acd99409b8
Make display method vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
064bfceaad
Convert all gdk_window methods to vtable calls in the quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
62cbc1acd4
continue to install gdk-$TARGET-3.0.pc
2010-12-22 11:39:58 -05:00
Matthias Clasen
05b43caf4c
Add a section about gdk_spawn to migration guide
2010-12-22 11:13:31 -05:00
Tristan Van Berkom
e20503836c
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
...
This loop needs to be safe for removing children in a forall loop.
2010-12-22 21:25:53 +09:00
Matthias Clasen
367211ed7f
Document WINDOWING macros
2010-12-22 01:43:57 -05:00
Matthias Clasen
3973ef760e
Mention GDK_BACKEND in the docs
2010-12-22 01:32:18 -05:00
Matthias Clasen
fa59cc4652
Fix the X backend docs
2010-12-22 01:31:15 -05:00
Matthias Clasen
a6b05106a5
GtkAboutDialog: Be slightly more flexible when listing credits
...
Make sure we render credits ok that are occurring in the wild,
such as "Contact us at:", "<foo@bar>" or "guy1\nguy2\nguy3"
https://bugzilla.gnome.org/show_bug.cgi?id=637763
https://bugzilla.gnome.org/show_bug.cgi?id=637736
2010-12-22 01:03:58 -05:00
Matthias Clasen
4cc76927b1
Show translators properly in the new about dialog
...
translator-credits is a single string, typically with newline-
separated names.
2010-12-22 00:31:05 -05:00
Robert Ancell
2013e23c4b
Use getters and setters for GtkPrintJob in gtkprintbackendtest.c
2010-12-22 15:36:47 +11:00
Robert Ancell
f4419be0d6
Fix DSO link issues
2010-12-22 15:01:50 +11:00
Matthias Clasen
e60eff282a
Bump version
2010-12-21 20:17:35 -05:00
Matthias Clasen
83364e8529
Fix distcheck
2010-12-21 19:37:18 -05:00
Matthias Clasen
b824cdd6db
Fix a blunder in grab handling
...
This was causing segfaults which would go away when compiled with
debug options.
2010-12-21 18:42:30 -05:00
Matthias Clasen
4b10167ce6
Set a default value for rgba style properties
2010-12-21 18:18:34 -05:00
Matthias Clasen
5b6bdcf016
Fix a tag mismatch in the docs
2010-12-21 18:18:34 -05:00
Mike Gorse
2a324ae304
Fix inclusion of gdkconfig.h
2010-12-21 18:18:07 -05:00
Matthias Clasen
4331d62567
Add gtkselectionprivate.h to Makefile
2010-12-21 17:57:40 -05:00
Matthias Clasen
fcbfa05347
Drop no-longer-existing header from Makefile
2010-12-21 17:36:50 -05:00
Matthias Clasen
3ca69937f4
Don't install headers twice
2010-12-21 16:37:16 -05:00
Matthias Clasen
9cdbb31c06
Update NEWS
2010-12-21 16:25:27 -05:00
Matthias Clasen
7b6d759b04
Temporarily disable combo box entry test
...
This one got broken by the treeview refactoring, I assume.
2010-12-21 14:43:17 -05:00
Matthias Clasen
940d123de5
Add gdk_disable_multidevice to headers
2010-12-21 14:33:56 -05:00
Owen W. Taylor
a2dddb1da0
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()
...
Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().
https://bugzilla.gnome.org/show_bug.cgi?id=637520
2010-12-21 14:27:25 -05:00
Matthias Clasen
928fd84ebf
Implement some more vfuncs in GdkOffscreenWindow
2010-12-21 14:20:19 -05:00
Matthias Clasen
82fe7594f9
More include shuffling; keep X extension headers to ourselves
2010-12-21 14:17:02 -05:00
Matthias Clasen
10a7f49fe7
Check the right library for symbols
2010-12-21 12:41:29 -05:00
Matthias Clasen
f9e876e265
Fix another typo
2010-12-21 12:32:34 -05:00
Matthias Clasen
b3bd184274
Fix a silly typo
2010-12-21 12:19:03 -05:00
Matthias Clasen
ecddaa7a8e
Disable the GtkPlug xi2 hack more thoroughly
2010-12-21 12:07:10 -05:00
Matthias Clasen
106047ffa4
Detangle includes for GdkDeviceManager subclasses
2010-12-21 12:07:10 -05:00
Matthias Clasen
b1aaa10b6a
Detangle includes for device subclasses
2010-12-21 12:07:10 -05:00
Matthias Clasen
e5090396bf
Forgotten file
2010-12-21 12:07:10 -05:00
Matthias Clasen
bd36374413
Rename GdkAppLaunchContextX11 to GdkX11AppLaunchContext
2010-12-21 12:07:10 -05:00
Matthias Clasen
3fb8c3415b
Rename GdkDragContextX11 to GdkX11DragContext
2010-12-21 12:07:09 -05:00
Matthias Clasen
fdfabea958
Don't export gdk_x11_cursor_finalize
2010-12-21 12:07:09 -05:00
Matthias Clasen
71a515ef17
Get abicheck to almost pass again
2010-12-21 12:07:09 -05:00
Matthias Clasen
b4802e3042
Rename x11-specific GdkDevice[Manager] implementations
...
Make them all fit in the gdk_x11_ prefix, and make the
get_type functions and standard macros available in headers.
2010-12-21 12:07:09 -05:00
Matthias Clasen
5cddc7ccbb
Rename GdkDevice[Manager]Core to GdkX11Device[Manager]Core
...
This is mainly to avoid clash with the classes of the same
name in the quartz backend.
2010-12-21 12:07:09 -05:00
Matthias Clasen
e96c193d06
Rename GdkKeymapX11 to GdkX11Keymap
...
And add a gdkx11keys.h header file.
2010-12-21 12:07:09 -05:00
Matthias Clasen
146fd989d6
Rename GdkDisplayManagerX11 to GdkX11DisplayManager
...
And add a gdkx11displaymanager.h header file.
2010-12-21 12:07:09 -05:00
Benjamin Otte
36893a9ef8
gdk: Make GdkWindow abstract
...
This way backend implementors get an error if they don't set
display_class->window_type to their subclass. And that's exactly what we
want.
2010-12-21 12:07:09 -05:00
Benjamin Otte
dcb03b1085
gdk: Use G_DEFINE_TYPE for GdkWindow
2010-12-21 12:07:08 -05:00
Benjamin Otte
19699989e5
x11: Add a GdkX11Window class for X11 windows
2010-12-21 12:07:08 -05:00
Benjamin Otte
af7afbbe06
gdk: Allow display subclasses to override the type used for windows
...
We want to have different window types for different displays, so we can
write code like this:
#if GDK_WINDOWING_X11
if (GDK_IS_X11_WINDOW (window))
{
/* do x11 stuff */
}
else
#endif
#if GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_WINDOW (window))
{
/* do wayland stuff */
}
else
#endif
{
/* do stuff for unsupported system */
}
This requires different GdkWindow types and we currently don't have
that, as only the GdkWindowImpl differs. With this method, every backend
defines a custom type that's just a simple subclass of GdkWindow. This
way GdkWindow behaves like all the other types (visuals, screens,
displays) and we can write code like the above.
2010-12-21 12:07:08 -05:00
Benjamin Otte
3036922b3d
gdk: Create windows via _gdk_display_create_window()
...
THe use of this function will become visible in the next commits. But
wrapping g_object_new() is a generally a good idea anyway.
2010-12-21 12:07:08 -05:00
Benjamin Otte
503087dfc9
x11: Export GdkX11Screen
2010-12-21 12:07:08 -05:00
Benjamin Otte
a8b69df376
x11: Rename GdkScreenX11 to GdkX11Screen
2010-12-21 12:07:08 -05:00
Benjamin Otte
b154d3abf6
x11: Export GdkX11Visual
2010-12-21 12:07:08 -05:00
Benjamin Otte
d185987ebd
x11: Rename GdkVisualX11 to GdkX11Visual
2010-12-21 12:07:08 -05:00
Benjamin Otte
86e0a9aef7
x11: Have a proper GdkVisualX11Class struct
2010-12-21 12:07:08 -05:00
Benjamin Otte
21d8160c57
x11: Export GdkX11Cursor
2010-12-21 12:07:08 -05:00
Benjamin Otte
4848bf2719
x11: typedef GdkX11Display to GdkDisplay
...
This is for compatibility reasons. We want to change APIs that operate
on X11 objects to take the X11 objects as arguments. However, this would
break a lot of APIs and we'd like to avoid this, so we play this little
trick (we will use the same trick for the other X11 objects). Also,
gobject-introspection and other bindings can correctly attach the
functions to the correct types as it is the same scheme that GDK2 used
for pixmaps, windows and drawables.
For GTK 4, we will remove this trick, so apps should properly cast their
objects right now.
Unfortunately, I don't think there is a way to use
GDK_DISABLE_DEPRECATED or similar macros to check for proper type casts
while compiling ensure compatibility with future GDK versions. I'm free
to consider them though.
2010-12-21 12:07:07 -05:00
Benjamin Otte
eba4529246
x11: Export GdkX11Display
2010-12-21 12:07:07 -05:00
Benjamin Otte
4db086da4b
x11: Rename GdkDisplayX11 to GdkX11Display
...
Also rename all the macros etc.
2010-12-21 12:07:07 -05:00
Benjamin Otte
8e2240f699
x11: Rename GdkDisplayX11 to GdkX11Display
2010-12-21 12:07:07 -05:00
Benjamin Otte
85bd61778f
API: gdk: GDK_DISPLAY_OBJECT() => GDK_DISPLAY()
...
GDK_DISPLAY_OBJECT is now deprecated. No need to keep failures from
gtk1 around.
2010-12-21 12:07:07 -05:00
Benjamin Otte
04d1459fca
x11: Move remaining APIs into gdkx11utils.h
...
Now gdkx.h is a clean header equivalent to gdk.h.
2010-12-21 12:07:07 -05:00
Benjamin Otte
dd177b5201
x11: Move atom API into gdkx11property.h
2010-12-21 12:07:07 -05:00
Benjamin Otte
ebe46e6f9d
x11: Move selection-specific API into gdkx11selection.h
2010-12-21 12:07:07 -05:00
Benjamin Otte
7949073dd5
x11: Move display-specific APIs into gdkx11display.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
6dfa90f57c
x11: Move screen-specific API into gdkx11screen.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
0ca6a7ab20
x11: Move visual-specific API into gdkx11visual.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
55f3451754
x11: Move cursor API into gdkx11cursor.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
124cf96850
x11: Split out public window API into gdkx11window.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
66f7c3a562
API: gdk: gdk_display_warp_device() => gdk_device_warp()
...
warping devices has nothing to do with displays, so putting it there
seems weird.
2010-12-21 12:07:06 -05:00
Benjamin Otte
7a33592231
gdk: Move gdk_cursor_get_image() to the base class
...
.. and make it call a vfunc on the cursor
2010-12-21 12:07:06 -05:00
Benjamin Otte
60dc856daf
x11: Remove duplicated docs
...
They're in gdk/gdkdisplay.c now.
2010-12-21 12:07:06 -05:00
Benjamin Otte
095d1905a9
x11: Don't keep the display around anymore
...
Use gdk_cursor_get_display() instead.
2010-12-21 12:07:06 -05:00
Benjamin Otte
4793bd3399
gdk: Move gdk_cursor_get_display() out of the backends
...
Now that we store the display inside the cursor, that change is obvious.
2010-12-21 12:07:05 -05:00
Benjamin Otte
7a14b30ea3
gdk: Make display a property of GdkCursor
2010-12-21 12:07:05 -05:00
Benjamin Otte
28b2d7e5da
gdk: Make cursor-type a property of the cursor
2010-12-21 12:07:05 -05:00
Benjamin Otte
3e068e921f
API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
...
Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.
2010-12-21 12:07:05 -05:00
Benjamin Otte
73d8ffd74f
testgtk: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
e622ae9a68
gtk-demo: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
8f1f743903
gtk: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
a9637f05b6
gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
2010-12-21 12:07:05 -05:00
Benjamin Otte
768b425ce6
x11: Use g_object_(un)ref instead of gdk_cursor_(un)ref
2010-12-21 12:07:04 -05:00
Benjamin Otte
0b4913a166
gdk: Make GdkCursor a GObject
...
Also port the X11 implementation. Win32 and Quartz need to be ported
still.
2010-12-21 12:07:04 -05:00
Benjamin Otte
66e3894539
gdk: Move GdkCursor definition into a private header
2010-12-21 12:07:04 -05:00
Benjamin Otte
2eef91ad93
x11: Move GdkCursorPrivate into the C file
2010-12-21 12:07:04 -05:00
Benjamin Otte
8e3afc6e5a
x11: Use public API to access cursor's xcursor
2010-12-21 12:07:04 -05:00
Matthias Clasen
3d5d558393
Downgrade some Since tags
2010-12-21 12:07:04 -05:00
Matthias Clasen
2650328ea8
Add win32 implementation for foreign window functions
2010-12-21 12:07:04 -05:00
Matthias Clasen
58529e69ec
Drop sm_client_id implementation for Quartz
2010-12-21 12:07:04 -05:00
Matthias Clasen
10e23de49e
Drop sm_client_id win32 implementation
2010-12-21 12:07:04 -05:00
Matthias Clasen
00e2b949eb
Reinstate the correct field value
2010-12-21 12:07:03 -05:00
Matthias Clasen
572bb20011
Deal with property encoding functions
...
Move everything dealing with compound text to be X11 specific
Only gdk_text_property_to_utf8_list and gdk_utf8_to_string_target
are kept across backends, so add vfuncs for these.
Also, remove the non-multihead-safe variants of all these.
2010-12-21 12:07:03 -05:00
Matthias Clasen
61104d58ea
Avoid unnecessary use of gdk conversion routines
...
We can use use gtk_selection_data_get_uris, instead of
manually doing the conversion ourselves.
2010-12-21 12:07:03 -05:00
Matthias Clasen
05497c799a
Add a vfunc for gdk_selection_convert
2010-12-21 12:07:03 -05:00
Matthias Clasen
95868ef00b
Add a vfunc for gdk_selection_property_get
2010-12-21 12:07:03 -05:00
Matthias Clasen
625b8305e9
Add a vfunc for gdk_selection_send_notify_for_display
2010-12-21 12:07:03 -05:00
Matthias Clasen
7e22cf7e50
Rename some private x11 backend functions to _gdk_x11
2010-12-21 12:07:03 -05:00
Matthias Clasen
cc03a6df79
Add vfuncs for get/set_selection_owner
2010-12-21 12:07:03 -05:00
Matthias Clasen
519f09f7f4
Add vfuncs for keyval and window property functions
...
The keyval functions should really be generic, and the window
property api should be completely revisited, but for now this
will allow us to proceed.
2010-12-21 12:07:03 -05:00
Matthias Clasen
fdabc9585d
Drop g[dt]k_set_locale
...
These functions were essentially just calling setlocale anyway.
The X11 version was also setting a gdk_use_mb variable that
is not used anywhere.
2010-12-21 12:07:02 -05:00
Matthias Clasen
2211e52ec5
Don't use gtk_set_locale
2010-12-21 12:07:02 -05:00
Matthias Clasen
afa0ebf36b
Add vfuncs for gdk_test apis
2010-12-21 12:07:02 -05:00
Matthias Clasen
28abd0c75f
Add vfuncs for atoms
2010-12-21 12:07:02 -05:00
Matthias Clasen
62e9bb06a0
Add a vfunc for gdk_keymap_get_for_display
2010-12-21 12:07:02 -05:00
Matthias Clasen
a97b1891b3
Rename private keymap symbols to _gdk_x11_keymap...
2010-12-21 12:07:02 -05:00
Matthias Clasen
1d5afe4880
Rename the _gdk_xid_table functions
2010-12-21 12:07:02 -05:00
Matthias Clasen
55e1031e84
Remove gdk_net_wm_supports
...
This function is totally misnamed, only operates on the default
screen, and has a perfectly fine replacement in
gdk_x11_screen_supports_net_wm_hint.
2010-12-21 12:07:02 -05:00
Matthias Clasen
902fd60a86
Remove the --sync commandline option
...
Remove the --sync option and remove the possibility of backend-specific
commandline options altogether. --sync is being replaced by
a GDK_SYNCHRONIZE environment variable.
2010-12-21 12:07:02 -05:00
Matthias Clasen
b938e71e1d
Remove unused _gdk_use_xshm global
2010-12-21 12:07:01 -05:00
Matthias Clasen
021f595a38
Rename _gdk_window_move_resize_child
...
Rename _gdk_window_move_resize_child and _gdk_window_process_expose
to _gdk_x11.
2010-12-21 12:07:01 -05:00
Matthias Clasen
214342eac5
Clean up gdkx.h a bit
...
Moving the direct-access redefinitions of various macros
to gdkprivate-x11.h and use that header throughout in x11/.
Also remove a workaround for a long-fixed X server bug.
2010-12-21 12:07:01 -05:00
Matthias Clasen
32e3dcfb47
drop dead function
2010-12-21 12:07:01 -05:00
Matthias Clasen
126212b470
Add a vfunc for _gdk_window_impl_new
2010-12-21 12:07:01 -05:00
Matthias Clasen
d5803fa9b2
Get rid of the _gdk_selection_property global
2010-12-21 12:07:01 -05:00
Matthias Clasen
185cdddb0d
Rename _gdk_moveresize functions to _gdk_x11_moveresize
2010-12-21 12:07:01 -05:00
Matthias Clasen
19cf9309a5
Drop gdkx_visual_get
...
The function is badly named, not multihead-safe, basically unused,
and has a better replacement with gdk_x11_screen_lookup_visual.
2010-12-21 12:07:01 -05:00
Matthias Clasen
e11bbbf194
Rename _gdk_xgrab_ apis to _gdk_x11_window_
2010-12-21 12:07:01 -05:00
Matthias Clasen
566abbad25
Rename _gdk_send_xevent to _gdk_x11_display_send_xevent
2010-12-21 12:07:00 -05:00
Matthias Clasen
28b7c6f05d
Rename _gdk_event_mask_table to _gdk_x11_event_mask_table
2010-12-21 12:07:00 -05:00
Matthias Clasen
985eb14469
Multiple changes to reduce the amount of unprefixed symbols
...
The X11 backend exports a number of symbols which are _-prefixed
(so don't become part of the gdk api), but are not named in a
way to prevent accidental clashes between backends.
The one API change here is that the gdk_xid_table functions
have been removed - they did not server an purpose, since the
xid table only stores windows anyway, and we already have a
lookup-by-xid function for windows.
2010-12-21 12:07:00 -05:00
Benjamin Otte
33417c36f1
plug: Comment hack for xinput that used private x11 backend API
2010-12-21 12:07:00 -05:00
Matthias Clasen
624dc45755
Move event source apis to gdk_x11
...
Reduces the changes of cross-backend collisions
2010-12-21 12:07:00 -05:00
Matthias Clasen
25c66c11e2
Remove gdk_spawn functions
...
These functions were trivial g_spawn wrappers in all backends
except for X11, and they can be easily replaced by
g_app_info_create_for_commandline + GdkAppLaunchContext.
2010-12-21 12:07:00 -05:00
Matthias Clasen
ef85f112da
Don't use gdk_spawn
...
Replace the sole use of gdk_spawn in GTK+ by GAppInfo.
2010-12-21 12:07:00 -05:00
Matthias Clasen
536a7c8abb
Work around issues with events without screens
...
Just use the default display for copy/free of event data.
Maybe the vfuncs should be moved to GdkDisplayManager.
2010-12-21 12:07:00 -05:00
Matthias Clasen
6c16ddc2d3
Make GdkAppLaunchContext work again
...
We didn't set the display, ever. Add a construct-only property
for this purpose.
2010-12-21 12:07:00 -05:00
Matthias Clasen
fa33839d72
Consistently use per-display error traps in the X11 backend
2010-12-21 12:06:59 -05:00
Matthias Clasen
2d7583c0e3
Make gdk_window_{lookup,foreign_new}_for_display backend specific
...
At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and
add some exemplaric ifdefs to GTK+ code.
2010-12-21 12:06:59 -05:00
Matthias Clasen
39a71b8831
Add vfuncs for _gdk_windowing_event_data_{copy,free}
2010-12-21 12:06:59 -05:00
Matthias Clasen
968668629b
Go back to installing libgdk.so
2010-12-21 12:06:59 -05:00
Matthias Clasen
5eb4506b94
Drop the --screen cmdline argument
...
Commandline arguments should go away altogether, but this one
goes first, since we then don't need to worry about
_gdk_windowing_substitute_screen_number anymore.
2010-12-21 12:06:59 -05:00
Matthias Clasen
beaa11be98
Add a vfunc for gdk_notify_startup_complete
...
At the same time, add a display api for this, since it really
is per-display.
2010-12-21 12:06:59 -05:00
Matthias Clasen
a251d3786b
Remove sm-client-id related functions from headers
2010-12-21 12:06:59 -05:00
Matthias Clasen
2186203422
Remove unused get_offsets functions from headers
2010-12-21 12:06:59 -05:00
Matthias Clasen
224726f554
Remove gdk_windowing_{get_device_state,window_at_device_position}
...
The !trusted workaround code is pushed down into the GdkDevice
subclasses, and we use the device vfuncs directly in gdkdisplay.c
2010-12-21 12:06:59 -05:00
Matthias Clasen
9adb974155
Add a vfunc for _gdk_windowing_window_get_next_serial
2010-12-21 12:06:58 -05:00
Matthias Clasen
9635f09623
Move warp functions to the frontend
...
There were already GdkDevice vfuncs for this.
2010-12-21 12:06:58 -05:00
Matthias Clasen
4a74060d63
Make gdk_set_sm_client_id X11-specific
...
This is really not a cross-platform API
2010-12-21 12:06:58 -05:00
Matthias Clasen
ccb6edeb8b
Add vfuncs for process_updates_recurse and the before and after hooks
2010-12-21 12:06:58 -05:00
Matthias Clasen
da216c0665
Add vfuncs for a bunch of cursor functionality to GdkDisplay
2010-12-21 12:06:58 -05:00
Javier Jardón
dfe6ba932c
Don't access GdkDisplay fields directly
...
Use accessors instead.
2010-12-21 12:06:58 -05:00
Matthias Clasen
ea96e5e16f
Explode gdkinternals.h into per-class private headers
...
At the same time, move some more class and instance structs
out of public headers.
2010-12-21 12:06:58 -05:00
Matthias Clasen
ff8a334725
Hide GdkDevice struct
...
Once its hidden, we can kill the GdkDevicePrivate struct too.
2010-12-21 12:06:58 -05:00
Matthias Clasen
b5df501296
Move destroy_foreign comment
2010-12-21 12:06:57 -05:00
Matthias Clasen
218fa6757a
Weed out no longer needed declarations
2010-12-21 12:06:57 -05:00
Matthias Clasen
5fa8791c86
Add a vfunc for _gdk_events_queue
2010-12-21 12:06:57 -05:00
Matthias Clasen
ec9c97752d
Work toward turning GdkDisplayManager into a backend singleton
...
This commit hides the GdkDisplayManager instance and class structs,
adds vfuncs for listing displays, opening displays, and getting and
setting the default display. The X11 backend has a derived
GdkDisplayManagerX11.
The gdk_display_manager_get() function is responsible for deciding on
which of the compiled in backends to use. Currently, it consults the
GDK_BACKEND environment variable and falls back to x11.
2010-12-21 12:06:57 -05:00
Matthias Clasen
fa4b54b6de
Add per-target pc files back
...
Dropping those will be an unnecessary pain.
2010-12-21 12:06:57 -05:00
Matthias Clasen
9a1cc81acb
Add a vfunc to replace _gdk_windowing_window_destroy_foreign
...
All backends updated.
2010-12-21 12:06:57 -05:00
Matthias Clasen
1e694b4dd8
Add a vfunc for gdk_window_set_composited
2010-12-21 12:06:57 -05:00
Matthias Clasen
7f6ac56e3c
Add a vfunc for gdk_window_set_composited
2010-12-21 12:06:57 -05:00
Matthias Clasen
280e8329b4
Match parameters between headers and doc comment
2010-12-21 12:06:57 -05:00
Matthias Clasen
a169f6e32d
Make GdkDevice parallel-implementable
...
Use the grab and ungrab vfuncs from the frontend instead of the
_gdk_windowing wrappers, and move some things around accordingly.
Again, only the X11 backend has been updated, other backends
need to be updated to match.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c7559f57ed
Hide GdkScreen too
2010-12-21 12:06:56 -05:00
Matthias Clasen
3412d7a23a
Don't access GdkScreen fields
2010-12-21 12:06:56 -05:00
Matthias Clasen
d5c0b92d5d
Hide GdkDeviceManager and GdkDeviceManagerClass
...
And nuke GdkDeviceManagerPrivate at the same time. Again a commit
that only deals with the X11 backend, other backends will need to
catch up.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c6a5074295
Move GdkVisual parallel-implementable
...
It turned out no vfuncs were necessary. I've decided to move
the screen member up to GdkVisual, since it is the same in all
backends. The X11 backend subclasses now, to add the X members
that it needs to keep track of. GdkVisual and GdkVisualClass
are hidden now.
2010-12-21 12:06:56 -05:00
Matthias Clasen
23a2b42216
Fully initialize the ClientMessage struct
...
Otherwise we run into warnings from xdnd_status_filter
2010-12-21 12:06:56 -05:00
Matthias Clasen
8e1d320ce9
Rename _gdk_dnd_init
...
Nonstatic backend-specific functions need an x11 in their name.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c53ec081ce
Add vtables for DND
...
This commit hides GdkDragContext and GdkDragContextClass, adds
vfuncs for most drag context functionality, and turns the X11 DND
implementation into GdkDragContextX11. We also add vfuncs to
GdkDisplay for gdk_drag_get_protocol and to GdkWindow for
gdk_drag_begin, and implemenet them for X11.
Other backends need similar treatment and are broken now.
2010-12-21 12:06:56 -05:00
Matthias Clasen
3c47c8467c
Remove some direct access to GdkDragContext members
2010-12-21 12:06:56 -05:00
Matthias Clasen
ae2c3a909c
tests: Don't access GdkDragContext fields directly
2010-12-21 12:06:55 -05:00
Matthias Clasen
a843a9d614
Make abicheck work again
2010-12-21 12:06:55 -05:00
Matthias Clasen
06f75b3727
Make GdkAppLaunchContext display-dependent
...
Add a GdkDisplay::get_app_launch_context vfunc, and a
gdk_display_get_app_launch_context that for X11 returns a subclass.
For win32 and quartz, the implementations were trivial, so we
just return a new GdkAppLaunchContext without subclassing. Since
the type of the context now depends on the display,
gdk_app_launch_context_set_display is deprecated.
2010-12-21 12:06:55 -05:00
Matthias Clasen
de84a7b14f
Move gdk_window_lookup to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
31cd046cd0
Move gdk_add_client_message_filter to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
8075cfd658
Move gdk_get_display to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
6465e8dd15
Reorganize pc files for a single library
...
After this commit, pc files no longer include the gdk backend in
their name, and we no longer install a pc file for gdk. There is
now a single gtk+-3.0.pc file. It turns out a separate gtk+-x11-3.0.pc
file is not necessary, since gdkx.h doesn't have a separate include
directory that would have to be added to Cflags.
2010-12-21 12:06:55 -05:00
Matthias Clasen
07d49ee56a
Merge libgdk and libgtk
...
This commit does a number of things:
- remove some dead wchar configury from configure.ac and gdkconfig.h
- repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
macros for each included backend, include it in gdk.h and install
it in $includedir instead of below $libdir
- drop the backend from the library names
- build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
It does not yet enable building multiple backends at the same time.
2010-12-21 12:06:55 -05:00
Alexander Larsson
ae146a2817
Convert a bunch of visual related calls to use the screen vtable
2010-12-21 12:06:55 -05:00
Alexander Larsson
f52223f380
Convert all GdkScreen methods to vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
84c03b14e8
Move GdkScreenClass to internal header
2010-12-21 12:06:54 -05:00
Alexander Larsson
8c6162b50c
Convert all gdk_keymap methods to vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
4ad948ec4a
Move GdkKeymapClass definition to internal header
...
This lets us change this without affecting apps.
2010-12-21 12:06:54 -05:00
Alexander Larsson
5fda1669ea
Make display method vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
f1c32f109d
Hide GdkDisplayClass from public header
...
There is no need for apps to access this class, as its only implemented
in the gdk backends, and we want to be free to change it later.
2010-12-21 12:06:54 -05:00
Alexander Larsson
ac7d55c948
Convert all gdk_window methods to vtable calls
2010-12-21 12:06:54 -05:00
Tristan Van Berkom
49273f2277
Added "fixed-size" cell property to GtkCellAreaBox
...
Now a cell can either have a "fixed" size or it can have
an "aligned" starting point or both. "fixed" size cells take
no space when they are invisible.
2010-12-22 00:28:18 +09:00
Tristan Van Berkom
c8ae68c33d
Fixed gtk_cell_layout_set_cell_data_func() to pass the correct layout object
...
Added _gtk_cell_area_set_cell_data_func_with_proxy() to be called by
gtk_cell_layout_set_cell_data_func() when the layouting object itself
is not the underlying cell area.
2010-12-22 00:28:18 +09:00
Michael Natterer
13f18567e9
gdk: return 0, not NULL from gdk_device_get_n_axes()
2010-12-21 15:16:35 +01:00
Carlos Garnacho
ac0353e08a
Make gtk_style_context_get_* functions more robust
...
Even if the default CSS contains values for these, handle non-existing
values as queries might happen on an incomplete style.
2010-12-21 14:44:49 +01:00
Jesse van den Kieboom
e36ba3465b
Added out annotations for gtk_icon_size_lookup/_for_settings
...
https://bugzilla.gnome.org/show_bug.cgi?id=637606
2010-12-21 13:24:12 +01:00
Jesse van den Kieboom
939f68a35e
Added out annotations for gtk_accelerator_parse
...
https://bugzilla.gnome.org/show_bug.cgi?id=637606
2010-12-21 13:24:12 +01:00
Yaron Shahrabani
1bb68f0bc5
Updated Hebrew translation
2010-12-21 12:46:41 +02:00
Carlos Garnacho
e02b10046d
Ensure widgets get a GtkStyle with its backing GtkStyleContext
...
Since the default style also has a backing context, it wasn't
being replaced after initialization.
2010-12-21 01:33:51 +01:00
Javier Jardón
33fd2104b7
docs: unmap signal will always be emitted when a widget is unmapped
...
Since commit 9552152dd9
2010-12-20 23:53:53 +00:00
Matthias Clasen
5c2f407935
Fix problems with window handling in GtkCalendar
...
After the window removal a while ago, the calendar main window
was not properly moved in size_allocate. Also, we ought to hide/show
the windows in map/unmap, not keep them visible at all times.
Bug 634657
2010-12-20 17:12:02 -05:00
Carlos Garnacho
17e97467df
Strengthen checks in functions taking a GdkDevice
...
Docs have also been improved, to make explicit the device
type/source accepted.
2010-12-20 23:08:10 +01:00
Carlos Garcia Campos
0c518a81b8
printing: Set new print operation settings before emitting custom-widget-apply signal
...
So that custom settings can be added from the custom-widget-apply
callback.
https://bugzilla.gnome.org/show_bug.cgi?id=637069
2010-12-20 21:10:53 +01:00
Havoc Pennington
9552152dd9
Always emit unmap when a widget is unmapped
...
Previously, for performance reasons we would sometimes
skip invoking the unmap signal (and associated vfunc)
in favor of simply unrealizing. However, widgets then
had no way to clean stuff up when they were hidden
(but still inside a parent which was shown).
This patch also removes _gtk_tooltip_hide() which
was done in both unmap and unrealize in gtkwidget.c,
now can only be in unmap.
There are probably lots of things cleaned up in
unrealize that would now be better to move to unmap.
https://bugzilla.gnome.org/show_bug.cgi?id=629923
2010-12-20 13:04:45 -05:00
Havoc Pennington
b67c5af55b
Add invariant that a child is unmapped if parent is unmapped
...
Requires fixes to GtkContainer and GtkWindow to unmap their
children, rather than just withdrawing or hiding the container
window.
Requires fix to GtkHandleBox to chain up to GtkContainer unmap.
Historically we avoided these unmaps for efficiency reasons,
but these days it's a bigger problem that there's no way
for child widgets to know that one of their ancestors has
become unmapped.
2010-12-20 12:58:04 -05:00
Havoc Pennington
23ce44c9fe
Verify GtkWidget invariants if G_ENABLE_DEBUG is defined
...
These checks are a bit expensive so require --enable-debug=yes.
gtk_widget_verify_invariants() checks invariants mentioned
in docs/widget_system.txt in particular, and can verify
others in the future.
Some of the invariants in docs/widget_system.txt don't
in fact hold right now, so those are #if 0'd in this
patch pending someone fixing either the docs or the code.
2010-12-20 12:46:51 -05:00
Matthias Clasen
28cc7baef0
Make GtkEntry hide completely
...
When it was converted to no-window, we forgot to make it hide/show
its input window as necessary.
2010-12-20 12:28:05 -05:00
Matthias Clasen
335bfbc8fc
Update GtkAboutDialog documentation
...
Also, remove some dead code, pointed out in bug 637608.
2010-12-20 11:40:39 -05:00
Carlos Garnacho
33cd32f796
Make gtk_style_new() use a backing GtkStyleContext
...
Fixes a bug in mutter where it would resort to a dummy style
to get iconview rubberband color.
Reported by Mathieu Bridon in
https://bugzilla.gnome.org/show_bug.cgi?id=637520
2010-12-20 17:18:35 +01:00
Matthias Clasen
5b299ce7af
Remove reference to GTK2_RC_FILES from the docs
...
Pointed out in bug 637471.
2010-12-20 10:23:43 -05:00
Cosimo Cecchi
a5fe3fef7b
appchooserdialog: use new GLib API to modify positioning
...
The dialog will always show up with the last selected application.
2010-12-20 16:08:21 +01:00
Matthias Clasen
183bf8ac9d
Use g_strtod when converting strings for GtkCellRendererSpin
...
These strings are likely user-provided values, so we should
respect locale settings.
Reported in bug 637189.
2010-12-20 10:02:00 -05:00
Matthias Clasen
a9753ef5c6
Add a test for basic style properties
2010-12-20 08:19:23 -05:00
Carlos Garnacho
7030492a3b
Disable XI2 in gtk_test_init()
...
gdk_test_simulate_*() uses XSendEvent, which doesn't currently work
with XI2/GenericEvents, so make tests use core events for the time
being. Luckily there's a lot more to test than low-level event
handling in these tests.
2010-12-20 13:55:38 +01:00
Carlos Garnacho
ca7fe1cb73
GtkStyleProperties: Assign default value for the font property
...
This fixes a failure when running make test, where style queries
happened before there was even an screen.
2010-12-20 13:55:37 +01:00
Ivar Smolin
3c8076f3dc
[l10n] Updated Estonian translation
2010-12-20 13:54:25 +02:00
Javier Jardón
08af2cb488
gail: Fix a typo
...
This fixes commit d0b81b2148
2010-12-20 11:52:37 +00:00
Baurzhan Muftakhidinov
079b72574a
Updates to Kazakh translation
2010-12-20 17:06:25 +06:00
Matthias Clasen
d4e9cd09ab
Fix up symbol lists
2010-12-19 23:45:21 -05:00
Javier Jardón
26a304c54b
Move GtkSelectionData to a private header
2010-12-19 20:48:20 +00:00
Mahyar Moghimi
39b85421f8
Updating Persian translations (minor change)
2010-12-19 13:42:39 +03:30
Nguyễn Thái Ngọc Duy
75970da97f
po/vi.po: import some translations from Ubuntu/Maverick
2010-12-19 16:24:42 +07:00
Yaron Shahrabani
3573179ced
Updated Hebrew translation
2010-12-19 09:09:16 +02:00
Javier Jardón
66e7915dc4
gtktreeselection: Move public members to a private structure
2010-12-19 05:01:22 +00:00
Javier Jardón
d0b81b2148
gail: Use accessor functions to access GtkTreeSelection
2010-12-19 04:56:32 +00:00
Javier Jardón
74a7bc3a77
gtk/gtktreeview.c: Use accessor to access GtkTreeSelection
2010-12-19 04:56:32 +00:00
Javier Jardón
e92da3e166
gtkcombobox.c: Use accessor functions to access GtkTreeSelection
2010-12-19 01:27:41 +00:00
Matthias Clasen
1b67d31bd9
Remove G_SEAL from private headers
2010-12-18 17:46:19 -05:00
Matthias Clasen
8105125369
Remove sealed members from GtkPrintJob
...
Also add accessors for these members, and use them in print backends.
2010-12-18 17:45:31 -05:00
Matthias Clasen
5863382e11
Don't use GtkSocket internals in gail
2010-12-18 17:39:42 -05:00
Matthias Clasen
eb11430228
Fix gdk symbols after recent changes
2010-12-18 17:39:42 -05:00
Matthias Clasen
5ee3a44415
Remove sealed members from GtkSocket
2010-12-18 17:39:41 -05:00
Jorge González
53845f0851
Updated Spanish translation
2010-12-18 14:39:36 +01:00
Carlos Garnacho
56c3d4b1be
Remove dead Gtk[Rc]Style code
...
Most code in gtkrc.c has been turned into a no-op, but that one
reverting in public API (gtk_rc_scanner_new() and such). GtStyle
is also more shallow, now fully relies in the backing
GtkStyleContext and all connection to gtkrc.c has been removed.
GtkBinding has been also affected, there is no replacement yet
for custom keybindings in style files, so that piece of code that
hooked into gtkrc has been replaced by a FIXME so in the future
it may be added back.
2010-12-18 12:10:00 +01:00
Carlos Garnacho
d7dc12d301
Adapt gtk_widget_set_name() docs to style context.
2010-12-18 11:43:37 +01:00
Carlos Garnacho
bbc637f7fd
GtkWindow: remove deprecated call.
...
gtk_style_context_reset_widgets() can be used now to reset all widgets
in a screen.
2010-12-18 11:43:37 +01:00
Matthias Clasen
b45e5fa51e
Remove sealed members from GtkTreeModelSort
2010-12-17 23:49:27 -05:00
Matthias Clasen
121746605b
Add the private struct in class_init
2010-12-17 21:50:18 -05:00
Matthias Clasen
881ea2881d
Remove sealed members from GtkTreeStore
2010-12-17 21:45:20 -05:00
Matthias Clasen
60953ae0f4
Avoid accidental exports
2010-12-17 21:43:42 -05:00
Matthias Clasen
841edfe8c3
Remove an unused pointer from GtkDrawingArea
...
This is part of removing all sealed members from instance structures.
2010-12-17 20:54:13 -05:00
Matthias Clasen
7b665316cf
Hide GtkWindowGroup members
...
In the process of removing all sealed members from headers.
At the same time, add a gtkwindowprivate.h header and move
all internal functions from gtkwindow.h there.
2010-12-17 20:41:16 -05:00
Matthias Clasen
a2dda0c2bb
Trivial changes
...
Whitespace fixes, comment formatting, etc
2010-12-17 19:14:35 -05:00
Matthias Clasen
453bf477ed
Don't query the position of keyboards
...
Turns out that this causes X errors with the XI2 implementation.
2010-12-17 18:41:24 -05:00
Matthias Clasen
8bc4e13c22
No links in title, please
2010-12-17 18:41:24 -05:00
Colin Walters
d08ff485f2
gdkwindow: Fix event unref iteration
...
We were double looping previously which caused a NULL deref.
2010-12-17 15:41:15 -05:00
Matthias Clasen
33fb60e050
Fix an escaping problem
...
& must be escaped as & in examples.
2010-12-17 14:53:43 -05:00
Matthias Clasen
55a0f8700f
Another doc format problem
2010-12-17 14:51:53 -05:00
Matthias Clasen
17c7bda6a3
Fix a doc comment format problem
...
Parameters / enum values come first, then the paragraph.
2010-12-17 14:50:55 -05:00
Matthias Clasen
5627ba161e
More parameter name mismatches
2010-12-17 14:49:27 -05:00
Matthias Clasen
9d8682b9ac
Fix a few parameter name mismatches
2010-12-17 14:46:18 -05:00
Matthias Clasen
b32f4ae7c4
Add deprecation guards for gtk_icon_set_render_icon
2010-12-17 14:31:44 -05:00
Matthias Clasen
55ffebe505
Avoid a gtk-doc warning
2010-12-17 14:27:48 -05:00
Matthias Clasen
4317ae32c3
Adjust symbol lists in the docs
2010-12-17 14:24:25 -05:00
Cosimo Cecchi
b792a31995
widgetpath: allow GTypes non-derived from GTK_TYPE_WIDGET
...
This makes things like GtkCellRenderer or GtkNumerableIcon more easily
themeable.
https://bugzilla.gnome.org/show_bug.cgi?id=637169
2010-12-17 18:30:57 +01:00
Colin Walters
806c04411d
gdk: Fix GdkWindowFilter internal refcounting
...
Running gnome-shell under valgrind, I saw the attached invalid write.
Basically we can destroy a window during event processing, and the old
window_remove_filters simply called g_free() on the filter, ignoring
the refcount. Then later in event processing we call filter->refcount--,
which is writing to free()d memory.
Fix this by centralizing list mutation and refcount handling inside
a new shared _gdk_window_filter_unref() function, and using that
everywhere.
==13876== Invalid write of size 4
==13876== at 0x446B181: gdk_event_apply_filters (gdkeventsource.c:86)
==13876== by 0x446B411: _gdk_events_queue (gdkeventsource.c:188)
==13876== by 0x44437EF: gdk_display_get_event (gdkdisplay.c:410)
==13876== by 0x446B009: gdk_event_source_dispatch (gdkeventsource.c:317)
==13876== by 0x4AB7159: g_main_context_dispatch (gmain.c:2436)
==13876== by 0x4AB7957: g_main_context_iterate.clone.5 (gmain.c:3087)
==13876== by 0x4AB806A: g_main_loop_run (gmain.c:3295)
==13876== by 0x8084D6B: main (main.c:722)
==13876== Address 0x1658bcac is 12 bytes inside a block of size 16 free'd
==13876== at 0x4005EAD: free (vg_replace_malloc.c:366)
==13876== by 0x4ABE515: g_free (gmem.c:263)
==13876== by 0x444BCC9: window_remove_filters (gdkwindow.c:1873)
==13876== by 0x4454BA3: _gdk_window_destroy_hierarchy (gdkwindow.c:2043)
==13876== by 0x447BF6E: gdk_window_destroy_notify (gdkwindow-x11.c:1115)
==13876== by 0x43588E2: _gtk_socket_windowing_filter_func (gtksocket-x11.c:518)
==13876== by 0x446B170: gdk_event_apply_filters (gdkeventsource.c:79)
==13876== by 0x446B411: _gdk_events_queue (gdkeventsource.c:188)
==13876== by 0x44437EF: gdk_display_get_event (gdkdisplay.c:410)
==13876== by 0x446B009: gdk_event_source_dispatch (gdkeventsource.c:317)
==13876== by 0x4AB7159: g_main_context_dispatch (gmain.c:2436)
==13876== by 0x4AB7957: g_main_context_iterate.clone.5 (gmain.c:3087)
https://bugzilla.gnome.org/show_bug.cgi?id=637464
2010-12-17 12:07:37 -05:00
Kristian Rietveld
faf35d708b
Fix size allocation for list mode combo box
2010-12-17 16:53:46 +01:00
Kristian Rietveld
21fc66f120
Set cell_view to NULL immediately after unparenting
...
This way we are sure no invalid pointer will be accessed in between.
2010-12-17 16:53:46 +01:00
Kristian Rietveld
81515f7183
Check if popup_window is mapped, not popup_widget
...
Before hide_all was used on popup_window, which means popup_widget
was also unmapped. This is now no longer the case. This fixes
subsequent pop ups for appears-as-list == 1.
2010-12-17 16:53:46 +01:00
Benjamin Otte
d50c582961
selection: constify GtkSelectionData getters
2010-12-17 16:47:57 +01:00
Carlos Garnacho
2c8c1c6df4
Remove *_set_extension_events() and old API to query devices.
...
The old functions to get core pointer and devices list are gone as
well. This slice is entirely replaced internally by multidevice
handling and may just go.
2010-12-17 16:25:14 +01:00
Bastien Nocera
23c1d1cbc9
gtk: Add symbolic property for GtkVolumeButton
...
When the application prefers symbolic icons, avoids
having to reimplement the button in the software itself.
https://bugzilla.gnome.org/show_bug.cgi?id=636969
2010-12-17 13:23:23 +00:00
Kjartan Maraas
668604dcfd
Updated Norwegian bokmål translation
2010-12-17 13:09:58 +01:00
Tristan Van Berkom
df0d61e50d
Fixed gtk_entry_set_icon_tooltip_text & markup to not crash
...
Setting this property before the icon is actually set was
resulting in a crash (found by way of Glade bug 606103).
2010-12-17 18:15:08 +09:00
Tristan Van Berkom
b11bb46a76
Fixed parameter names in gtkcellarea.h for gtk-doc parsing.
2010-12-17 15:35:21 +09:00
Tristan Van Berkom
941a0e95d7
Fixed documentation of GtkCellLayout <cell-packing>
...
Mention that it's safe to use <cell-packing> tag for any GtkCellLayout
in GTK+ since they *all* use an underlying GtkCellArea (at least they
will once the other branches land).
2010-12-17 15:26:28 +09:00
Tristan Van Berkom
71e7cd0ec4
Merge branch 'master' into treeview-refactor
...
Conflicts:
tests/testtreeedit.c
2010-12-17 15:25:15 +09:00
Kristian Rietveld
735fa8b197
Avoid recursion in do_validate_rows()
...
I have never really liked the updates done to the adjustments in
do_validate_rows() and other validation functions. But it is really
required. I have to come up with a real solution to this one day.
2010-12-16 23:33:42 +01:00
Kristian Rietveld
88f8859f90
Should pass inner_area to cell in gtk_cell_area_activate_cell()
2010-12-16 22:42:10 +01:00
Kristian Rietveld
e3cab18354
Clip focus rectangle to background area
2010-12-16 12:33:00 +01:00
Kristian Rietveld
c01ad6f615
Fix background area calculation in RTL mode
2010-12-16 12:26:18 +01:00
Javier Jardón
e9a77a1535
docs: gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-16 00:16:00 +00:00
Javier Jardón
cf9e9ff47f
gtk/gtkclipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
e5a3b7edbf
gtk/gtkcolorbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
1a2d9c368e
gtk/gtkcolorsel.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
a86d1fa7c3
gtk/gtkdnd.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
499aa2b3b9
gtk/gtkfilechooserbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
c806c0821a
gtk/gtkfilechooserdefault.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
fbbe9f5191
gtk/gtkiconview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
8537163e20
gtk/gtklinkbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
ad4ac2182a
gtk/gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
1ceddae7da
gtk/gtktextbuffer: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
2b7afcdd79
gtk/gtktextview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
7c6012d933
gtk/gtktoolpalette.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
640f85e568
gtk/gtktreednd.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
1cfd78269e
gtk/gtktreeview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
a66f095b62
demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
7105e8e907
tests: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Kristian Rietveld
a28c11a27f
Clip to cell_area when rendering cell content
...
This fixes a GTK+ 3.0 regression. In GTK+ 2, the render method
on GtkCellRenderer had a expose_area parameter, typically set to
cell_area. This parameter was used for clipping cell content to be
rendered to the cell area (and thus clipping to within the focus
rectangle). During the rendering clean up this parameter was removed
and no clipping put back into place.
Since expose_area was usually equal to cell_area anyway, it does not make
sense to reintroduce the expose_area parameter. Instead, we do clipping at
two levels:
- in gtk_cell_renderer_render() we clip to background_area. We cannot
clip to cell_area here because we want to allow cell renderers to
render in the background area (e.g. background color/effect).
- cell renderers should clip to clip_area when rendering cell
content individually (as they had to individually clip to expose_region
before).
2010-12-16 00:07:08 +01:00
Kristian Rietveld
c8d130efa7
Revisit "Handle clicks in indentation area"
...
Check (x, y) is inside background area. If yes, continue processing
and clamp the coordinates into cell area. This way we will properly
handle getting a cell (which is only used for setting the focus cell)
for clicks in the indentation area (in LTR and RTL mode) and clicks
in the focus rectangle area in case focus-line-width is large.
2010-12-15 23:55:26 +01:00
Jorge González
67f6a43702
Updated Spanish translation
2010-12-15 22:00:00 +01:00
Kristian Rietveld
5399f7b6e6
Make testtreeview handle RTL environment variable for testing
2010-12-15 21:36:47 +01:00
Kristian Rietveld
8e98333d8b
RTL fix for gtk_tree_view_focus_to_cursor()
2010-12-15 21:31:35 +01:00
Kristian Rietveld
92e145e719
No need to correct direction for rtl, GtkCellArea takes care of that
2010-12-15 21:27:40 +01:00
Kristian Rietveld
0112c32c5b
Make testcellarea handle RTL environment variable for testing
2010-12-15 21:22:35 +01:00
Kristian Rietveld
be39883de2
Correct calculation of the cell focus rectangle
...
The cell's focus rectangle is located around the cell's aligned area.
To get to the correct coordinates for this rectangle, we have to subtract
focus_line_width from the found aligned_area.
2010-12-15 21:17:27 +01:00
Carlos Garnacho
ec82d133b1
Remove debug messages from GdkDevice
2010-12-15 15:48:43 +01:00
Benjamin Otte
198fc0b774
tests: Hardcode testinput colors instead of trying to use GtkStyle
...
Makes it work with new themeing APIs.
2010-12-15 14:51:26 +01:00
Benjamin Otte
cae6021d3a
tests: Make testiconview-keynav set its custom style using CSS.
2010-12-15 14:51:26 +01:00
Benjamin Otte
1b64655eb6
cssprovider: Explode if we fail to parse the default CSS
...
This can only happen if somebody really messed up with a checkin, and in
that case we want to explode early.
2010-12-15 14:51:26 +01:00
Benjamin Otte
9e393020c4
gail: Fix for new style code
2010-12-15 14:51:26 +01:00
Benjamin Otte
211ccb5c73
xim: Fix for new style code
2010-12-15 14:51:26 +01:00
Benjamin Otte
d3ed729643
gtkrc: Remove unused code
...
Makes gcc happy.
2010-12-15 14:51:26 +01:00
Benjamin Otte
e77ce71caa
gtk-demo: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
e274ac4b6c
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
1312f774f5
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
7caec64bc3
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
6aa745b819
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
b0b9c9683b
dnd-quartz: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:25 +01:00
Benjamin Otte
88767b0af7
gdk: Don't use NULL for integers
2010-12-15 14:51:25 +01:00
Florian Müllner
ce5dae6702
Complete renaming of gdk_enable_multidevice()
...
The function was renamed in commit c4a5c2ed4 , but some places were
missed, most notably the public header.
2010-12-15 13:05:11 +01:00
Benjamin Otte
544146b9be
size-request: Clamp size requests to screen size
...
Size requests should only ever need to return the screen's width/height
and max. This way, potentially large widgets (tree view or icon view)
don't need to do so many computations, but can stop when their computed
size has reached the screen size.
2010-12-15 10:41:20 +01:00
Matthias Clasen
208d717fef
Optimize gdk_window_set_shape_combine_region
...
When setting no shape on an unshaped window, nothing changes,
so return early instead of recomputing lots of visibility
information.
Pointed out by Owen Taylor in bug 637156.
2010-12-14 22:21:39 -05:00
Matthias Clasen
b7fd6f1e88
Remove gtk_widget_reset_shapes
...
See bug 637155.
2010-12-14 22:15:33 -05:00
Carlos Garnacho
f9ed6baeb4
Improve docs for gtk_widget_reset_style().
...
Document that it may be needed in containers when
children are reordered.
2010-12-15 03:33:01 +01:00
Carlos Garnacho
44a7ef7bec
Add gdk_window_[gs]et_source_events()
...
This function will enable events for all devices of a given
GdkInputSource, either these available at the time of the call,
or these that are connected in the future.
2010-12-15 03:17:59 +01:00
Carlos Garnacho
be7de347bf
xi2: Improve device hierarchy handling
...
The xi2 device manager now handles slaves being detached and/or
attached to a master.
gdk_device_list_slaves() has been added so it is possible to
know how slaves relate with masters. The other backends (X11 and not)
don't neeed to to anything special here since their hierarchy is
fully flat.
2010-12-15 03:17:59 +01:00
Carlos Garnacho
9f41101ccc
Emit GdkDevice::changed when the slave device being used changes
...
When the slave device changes, the master takes the shape of the
new one, modifying its axes, this signal is more useful to catch
this situation than the n-axes property
2010-12-15 03:17:58 +01:00
Carlos Garnacho
f5a20ab65a
Add gdk_event_[gs]et_source_device().
...
This function may be used to know the hardware device that triggered
an event, it could resort to the master device in the few cases there's
not a direct hardware device to relate to the event (i.e.: crossing events
due to grabs)
2010-12-15 03:17:58 +01:00
Carlos Garnacho
c4a5c2ed4b
Enable XI2 by default
...
gdk_enable_multidevice() has been replaced with gdk_disable_multidevice(),
so applications may call that function if they want to go back at the
previous behavior.
There would be usually little reasons to call that function, unless the
application is doing X calls itself that count on old fashioned core
devices.
2010-12-15 03:17:58 +01:00
Carlos Garnacho
66800aa212
Make GtkTextView use GtkStyleContext
...
GtkTextAppearance still uses GdkColors, even though it could
switch to GdkRGBA with little hassle as it seems sheldomly used
out there.
2010-12-15 03:17:58 +01:00
Diego Escalante Urrelo
b0560107e9
docs: fix link failure on gtk-doc scanner binaries
...
Bug #637243
2010-12-14 20:31:14 -05:00
Diego Escalante Urrelo
02f92f29d5
gtkstylecontext: fix typos in annotations
...
Fixes Bug #637256
2010-12-15 00:46:25 +00:00
Benjamin Otte
9929743f24
docs: Redo drawing area drawing docs
...
They don't seem to have been updated for a long time...
2010-12-14 21:10:22 +01:00
Tristan Van Berkom
8ca6bbbfc0
Make GtkCellArea independantly GtkBuildable.
...
Simply use the GtkCellLayoutIface hooks for this.
2010-12-14 15:52:40 +09:00
William Jon McCann
96a4fc4e5b
Update about dialog design to not use a swarm of dialogs
...
This is a modernization of the GtkAboutDialog look done
by William Jon McCann. The most noteworthy changes are:
- no more subdialogs
- show license short text in the main dialog
- less verbose email link formatting
- the dialog is modal to its transient parent
2010-12-14 00:15:21 -05:00
Carlos Garnacho
ee31a016ec
Make GtkInfoBar use GtkStyleContext
...
All colors are defined now in the default css, and classes have
been added so the bars are fully themeable (as opposed to
gtk_widget_override_*, which require changing the color map itself)
2010-12-14 02:29:57 +01:00
Carlos Garnacho
fbb75b9b5d
Add headers/docs changes for gtk_theming_engine_get_font()
...
Apparently I didn't git add enough...
2010-12-13 22:42:05 +01:00
Carlos Garnacho
afca06b362
Add getter for font description in GtkThemingEngine
...
This function is analogous to gtk_style_context_get_font().
2010-12-13 22:31:30 +01:00
Carlos Garnacho
a517cf1bed
Make GtkExpander use GtkStyleContext
2010-12-13 22:31:30 +01:00
Carlos Garnacho
89e6cad92f
GtkSpinButton: Use GtkStyleContext
2010-12-13 22:31:29 +01:00
Carlos Garnacho
c64a1891f8
Port GtkRange widgets to GtkStyleContext
2010-12-13 22:31:29 +01:00
Carlos Garnacho
3306305fe1
GtkNotebook: Use GtkStyleContext.
2010-12-13 22:31:29 +01:00
Carlos Garnacho
8b8eab1c81
GtkEntry: Use GtkStyleContext.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
618b1a8b33
GtkCssProvider: Make selectors applying from the topmost widget rank higher
...
For example, for an entry within a notebook, previously these 2 rules would
have the same weight:
.entry {}
.notebook {}
Now ".entry" will rank higher than ".notebook" for the GtkEntry, further
specific selectors such as:
.notebook .entry {}
still get a higher score than the previous ones.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
d80868aa68
GtkThemingEngine: Render tabs background in the correct direction.
...
The cairo context has been already rotated, so using GTK_JUNCTION_BOTTOM
is expected to be used there.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
2371ed8b87
GtkThemingEngine: handle expander transitions to active, and rtl
2010-12-13 22:31:28 +01:00
Carlos Garnacho
1f697f2695
GtkThemingEngine: remove unused variable
2010-12-13 22:31:27 +01:00
Carlos Garnacho
99f59d8266
Fix coalescing of state animation areas for multiple window widgets.
...
Coordinates needed to be translated relative to the window position
in within the widget.
2010-12-13 22:31:27 +01:00
Paolo Borelli
f285a84bd6
Add convenience function for the font description.
2010-12-13 22:31:27 +01:00
Tristan Van Berkom
e2c8ecba30
Fixed an error in my last commit in gtk_cell_area_box_context_copy().
2010-12-13 19:13:43 +09:00
Tristan Van Berkom
623abdedf6
Added gtk_entry_completion_new_with_area()
2010-12-13 15:58:07 +09:00
Tristan Van Berkom
96d636a780
Updated some docs and gtk.symbols file for new apis
...
Added gtk_cell_area_context_get_preferred_height_for_width and
width_for_height & gtk_cell_area_copy_context() to gtk.symbols
and gtk3-sections.txt (also finished up documenting those apis).
2010-12-13 15:43:58 +09:00
Tristan Van Berkom
41cd9d1394
Fixed gtk_cell_area_box_context_copy() to also copy it's allocations.
2010-12-13 15:37:12 +09:00
Kristian Rietveld
d743ecf82e
Handle clicks in indentation area
...
For this case, we want to set focus on the first cell in the column.
2010-12-12 17:32:59 +01:00
Tristan Van Berkom
2e1e97305f
Make GtkTreeView explicitly focus the first cell in the first column when grabbing focus
...
When focus is initially grabbed and there is no focus column, when selecting
the first column for focus, further explicitly focus into the first cell
using gtk_cell_area_focus().
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
31226ebfb2
Fixed GtkTreeView to give focus back to the last focued cell when hitting
...
the edge.
When focusing left/right or up/down inside GtkCellArea, now we save what
was the last focused cell and if we hit the side (or top or bottom) of
the view we then restore focus to the last focused cell.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
7e526d57f0
Add an editable cell to testverticalcells showing functional vertical focus navigation.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
632f1f3ac4
Modified gtk_tree_view_move_cursor_up_down to move focus inside the cell area
...
This currently leaves us the problem of maintaining the right cell in
focus for horizontal areas, the solution for that comming in the
next patch.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
2752fd0f16
Removing gtk_tree_view_move_focus_column() and only calling gtk_cell_area_focus()
...
This function did alot of nothing, gtk_cell_area_focus() simply returns whether
the focus stays in the area (column) or not, seems not to cause regressions to
just call it directly instead.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
0431dd67f8
Added apis to GtkCellArea for GtkIconView purposes.
...
Added a few apis,
- GtkCellAreaContext get_preferred_height_for_width &
width for height apis and vfuncs, this lets the icon view
request the collective (and aligned) height for width for
a said row.
- gtk_cell_area_copy_context() this creates a duplicate of
an already created and requested context, this way the icon
view uses a global context to request the widths of all rows
and then makes a copy with all the stored alignments and
uses a separate copy to calculate the height and alignments
of each row separately.
2010-12-13 00:29:21 +09:00
Kristian Rietveld
ff39c76bfd
Welcome _gtk_tree_view_column_get_cell_at_pos to the second dimension
2010-12-12 15:22:49 +01:00
Kristian Rietveld
cbfc3f5bf0
Make gtk_tree_view_get_cell_area() aware of row separators
2010-12-12 15:09:27 +01:00
Kristian Rietveld
8c743a0363
Add unit test for row separator height
2010-12-12 15:03:33 +01:00
Kristian Rietveld
d142d8bb6c
Do not enforce a minimum of expander_size in gtk_tree_view_get_row_height
...
Instead this is now enforced in gtk_tree_view_get_cell_area_height().
There are rows for which a height in between 0 and expander_size is
allowed, for example separator rows.
2010-12-12 14:34:26 +01:00
Tristan Van Berkom
1c8093b65e
Fixed some glitches in GtkCellAreaBox keynav from my last commit.
2010-12-12 20:40:34 +09:00
Tristan Van Berkom
89b3700b78
Make GtkCellAreaBox remember what was the last focus cell so that when
...
cycling focus from row to row for a horizontal area we can remember
where focus was the last time around.
2010-12-12 20:40:26 +09:00
Tristan Van Berkom
2f4e451075
Added "edit_only" argument to gtk_cell_area_activate()
...
This argument allows the caller to specify that only an editable
cell should start editing but an activatable cell should not toggle
it's state, this is important for public apis like
gtk_tree_view_set_cursor_on_cell() which are only intended to
programatically bring attention to the editing of a specific
row or cell but not actually change any data.
GtkTreeView & CellAreaScaffold updated for the last minute api change.
2010-12-12 17:15:46 +09:00
Tristan Van Berkom
46c49ee260
Removed the resetting_context flag from GtkTreeViewColumn private data
...
No longer need to detect if we're currently resetting the context since
the context properly now avoids re-triggering the reset by properly
avoiding to notify properties that dont change as a result of the reset.
2010-12-12 16:43:07 +09:00
Tristan Van Berkom
fa71b24e9a
Fixed gtk_cell_area_context_real_reset() to only notify properties if they change.
2010-12-12 16:42:37 +09:00
Milan Bouchet-Valat
029083454b
[GtkComboBoxText] Add checks for id-column/entry-text-column >= 0
...
If the GtkComboBoxText doesn't have id-column or entry-text-column
set for some reason (value -1), better warn and return. Else, unrelated
assertions fail, and warnings from gtk_tree_model_get_column_type()
are printed, which are not really obvious.
https://bugzilla.gnome.org/show_bug.cgi?id=637018
2010-12-11 19:10:51 +01:00
Matthias Clasen
3b90d877b7
Remove unused header
2010-12-10 23:39:10 -05:00
Matthias Clasen
948ab1a168
Don't access GdkVisual fields directly
...
Use accessors instead.
2010-12-10 02:32:18 -05:00
Matthias Clasen
83204928b9
Don't access GdkDragContext fields directly
...
Instead use the accessors.
2010-12-10 00:59:07 -05:00
Matthias Clasen
fe5e0e4502
Add some forgotten accessors for GdkDragContext
...
These fields are accessed in gtk.
2010-12-10 00:58:33 -05:00
Martyn Russell
bb87eada6b
gtksearchenginetracker: Update to work with libtracker-sparql
...
libtracker-sparql is available in Tracker 0.9/0.10
2010-12-09 23:53:51 +00:00
Benjamin Otte
ddb5e12e61
docs: Reinstate pixbufs section in GDK docs
...
It was accidentally removed in 0775b0a858
2010-12-09 23:56:25 +01:00
Benjamin Otte
3070d6e3d5
Revert "docs: Reinstate pixbufs section in GDK docs"
...
I committed my whole working tee instead of just one file. Ooops.
This reverts commit ded14b2562 .
2010-12-09 23:55:33 +01:00
Benjamin Otte
ded14b2562
docs: Reinstate pixbufs section in GDK docs
...
It was accidentally removed in 0775b0a858
2010-12-09 11:14:21 +01:00
Tristan Van Berkom
95ca1e241c
Removed calculation of background area when about to edit a cell (no need to check the background area of the cell in this case).
2010-12-09 13:59:17 +09:00
Tristan Van Berkom
32d9396f00
Changed misleading variable name in gtk_cell_area_real_activate.
2010-12-09 13:59:04 +09:00
Guillaume Desmottes
107cebe546
gtk_css_provider_get_named: don't leak subpath ( #636777 )
2010-12-08 21:13:03 -05:00
Matthias Clasen
05abea6c4f
Add missing include
...
See bug 636732
2010-12-08 11:49:48 -05:00
Marek Kasik
da85312097
Mark conflicts when printer has changed
...
Schedule marking of conflicts when printer has changed.
Map conflict warning immediately. (#635401 )
2010-12-08 17:37:27 +01:00
Carlos Garcia Campos
24e832187f
GtkCellRendererPixbuf: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:16:02 +01:00
Carlos Garcia Campos
e779b8f249
GtkIconFactory: mention gtk_widget_render_icon_pixbuf() in docs
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:15:25 +01:00
Carlos Garcia Campos
3a3a4e8f3b
GtkStatusIcon: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:14:48 +01:00
Carlos Garcia Campos
2dde04140d
GtkImage: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:13:43 +01:00
Carlos Garcia Campos
e2100b13d0
GtkFileChooser: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:12:59 +01:00
Carlos Garcia Campos
a5dba1670e
GtkEntry: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:12:14 +01:00
Carlos Garcia Campos
8017092977
dnd: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:10:34 +01:00
Carlos Garcia Campos
5582bd23fb
Add gtk_widget_render_icon_pixbuf() prototype to gtkwidget.h
...
And move gtk_widget_render_icon() to deprecation guards block
2010-12-08 16:46:57 +01:00
Paolo Borelli
61731c65aa
Annotate ColorButton get_color and get_rgba.
2010-12-08 15:30:42 +01:00
Paolo Borelli
f5d7a63aff
Fix gtk_builder_add_objects_from_file g-i annotation
...
Use the same annotation already used for add_objects_from_string
2010-12-08 15:15:50 +01:00
Tristan Van Berkom
f1c26dfdb2
Fixed gtk-docs typo in gtkcellarea.c
2010-12-08 22:31:33 +09:00
Tristan Van Berkom
40e9f91f43
Fixed foreach_alloc call from gtk_cell_area_real_render to pass the real background area.
2010-12-08 21:27:52 +09:00
Tristan Van Berkom
34f4b5c190
Added 'background_area' calculation to GtkCellAreaClass->foreach_alloc vfunc
...
This allows us to reduce code allocation code paths in subclasses, as
a result GtkCellArea implements the ->render() vfunc and the subclass
only decides the cell area and background area distributions in a single
code path.
2010-12-08 21:18:05 +09:00
Robert Ancell
6188ea608f
Add missing X11/Xlib.h include required for X11/extensions/sync.h
2010-12-08 18:44:20 +11:00
Tristan Van Berkom
a47a557fc3
Merge branch 'master' into treeview-refactor
2010-12-08 15:24:49 +09:00
Milan Bouchet-Valat
13209a9a6c
More annotations for GdkDisplay
...
Mostly (out), and a few (allow-none) for parameters.
2010-12-07 19:12:57 +01:00
Matthias Clasen
38321eacbf
GtkStyleContext migration guide tweaks
...
Move the guide into the 2-to-3 guide, since it is something
you have to do when porting from 2 to 3. Also add an example
for handling of temporary state changes and some more text
about color handling.
2010-12-07 12:59:17 -05:00
Matthias Clasen
5ac194c2d7
Some doc additions
2010-12-07 09:55:30 -05:00
Tristan Van Berkom
fc5cabba90
Added minimum size parameter to GtkWidgetClass->adjust_size_allocation.
...
This allows us to add a check before executing
->get_preferred_height_for_width() to ensure we always
request for at least the minimum required size (and lets
us remove the warning in gtkcontainer.c telling implementors
to do this check manually from thier container implementations).
2010-12-07 23:47:40 +09:00
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
509e0423e1
Bump version
2010-12-06 20:37:30 -05: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
fe008de12c
Fix POTFILES for recent changes
2010-12-06 14:35:13 -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
9b042e39ec
gdk: Add section docs for GdkRGBA
2010-12-06 18:57:11 +01: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
Benjamin Otte
8f8aeb7dfe
gdk: Remove GdkWindowObject typedef
...
It's unused by now.
2010-12-06 18:57:11 +01:00
Kjartan Maraas
48e92c6939
Updated Norwegian bokmål translation
2010-12-06 18:14:03 +01:00
Colin Walters
65e3c09139
introspection: Fix (out) for gdk_screen_get_monitor_geometry
...
Scanner doesn't detect this case correctly because it's a typedef;
work around it here by explicitly specifying that it's caller
allocates. See bug 636393 for the scanner issue.
2010-12-06 11:42:47 -05:00
Colin Walters
66f0f55b62
configure: Drop AC_PREREQ back down to 2.62
...
Commit 39f5740763 bumped the
autoconf version to 2.64 with no explicit rationale. It looks
to me like a copy-and-paste error. Reverting back to 2.62 (the
previous version). 2.63 at least (RHEL6) works here.
2010-12-06 11:27:57 -05:00
Matthias Clasen
96139cbb00
Update NEWS for 2.91.6
2010-12-06 10:56:03 -05:00
Matthias Clasen
48dba326c2
Disable theme engines for now
...
They need to be ported to GtkThemingEngine.
2010-12-06 10:19:00 -05: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
Kristian Rietveld
fd6e57687d
Port Quartz backend to latest rendering-cleanup changes
2010-12-06 14:15:47 +01:00
Matthias Clasen
3b753aa05e
Fix Makefile syntax
2010-12-06 07:26:00 -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
a090d62339
Added expand controls to testtreeedit (now you can play with align & expand effects in cells there).
2010-12-06 16:30:18 +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
e4c9d1a321
gdk: Constify argument to gdk_rgba_copy()
2010-12-06 01:02:52 +01:00
Benjamin Otte
d55073fde6
gdk: Remove depth argument from GdkWindowImpl->get_geometry()
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
Benjamin Otte
84fd9b166c
gdk: Remove nonexisting function from internal header
2010-12-06 01:02:19 +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
Jorge González
059aa89cbd
Updated Spanish translation
2010-12-05 18:33:31 +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
Fran Diéguez
4701aeb3bc
Updated Galician translations
2010-12-05 14:57:08 +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
364fe807f4
Added g_getenv("RTL") to test rtl layouting.
2010-12-05 22:15:31 +09: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
847581b67c
Adding testverticalcells.c.
...
This test displays a GtkTreeViewColumn rendering a vertically
oriented GtkCellArea along side a horizontally oriented column
in the same treeview.
2010-12-05 22:15:03 +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
Yaron Shahrabani
86c8ce1cc0
Updated Hebrew translation
2010-12-05 14:14:03 +02: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
c6e1463d1e
Added different icon at the end of testtreeedit to see if RTL is actually working.
2010-12-05 15:24:05 +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
Matthias Clasen
5fdc140dd8
Fix a segfault in gdk_window_beep
...
Not a good idea to cast an instance to a class...
2010-12-04 17:25:40 -05:00
Matthias Clasen
afcd50d607
Try again to fix the gdk symbol list
...
Grr, gdk_window_class_class_get_type should have been
gdk_window_window_class_get_type.
2010-12-04 16:32:02 -05:00
Matthias Clasen
144c3fd478
Fix gdk_rgba_parse call
2010-12-04 16:16:29 -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
Paolo Borelli
cd76b057e9
Annotate gdk_window_get_geometry, get_position and get_origin
2010-12-04 15:47:50 +01:00
Carlos Garnacho
1c87180d5d
GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
2010-12-04 15:39:58 +01:00
Carlos Garnacho
8c02445bc5
testgtk: Fix gdk_rgba_parse() arguments.
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
e374f7e4b5
Forgotten files
2010-12-04 15:39:46 +01:00
Matthias Clasen
757837b611
Make tests compile without using GtkStyle api
2010-12-04 15:39:46 +01:00
Matthias Clasen
9b1118a35d
Port gtk3-demo to GtkStyleContext
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
ab0a8fc17f
Improve the migration guide
...
Add some hints about 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
091c882996
Some tweaks for the GtkStyleContext migration guide
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
4e3dabf582
Fix up symbol list for docs
2010-12-04 15:39:41 +01:00
Matthias Clasen
b51c0f826a
fix parameter name mismatch
2010-12-04 15:39:41 +01:00
Matthias Clasen
8abe9f300c
Forgotten file
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
8d951476bf
Add an activity example
...
This doesn't work, since it trips up on num-steps not being
available for GtkEventBox.
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
31368f16cb
Add the style example code used to generate illustrations
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
Matthias Clasen
42dd5b2e15
Adapt testgtk.css to parser changes
2010-12-04 15:39:21 +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
Matthias Clasen
c5b38121ec
Add tests for matching
...
These tests try to decipher how specificity works for selectors.
2010-12-04 15:39:17 +01:00
Matthias Clasen
e1819055b9
Copy GtkWidgetPaths correctly
...
The code was forgetting to copy class information.
2010-12-04 15:39:17 +01:00
Matthias Clasen
49fed3d7d7
More css parsing tests
2010-12-04 15:39:17 +01:00
Matthias Clasen
4135fbf4d6
A little closer to css
...
Declarations are ;-separated, but there is no ; required after
the last declaration. We harmlessly accept either.
2010-12-04 15:39:17 +01:00
Javier Jardón
295cf25d6b
docs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide
2010-12-04 15:39:17 +01:00
Matthias Clasen
933440e1f1
Some css parsing tests
2010-12-04 15:39:16 +01:00
Matthias Clasen
0396550ece
Work harder at parsing import statements
...
Also, turn g_warning() into g_message() for now, so that tests
don't abort. Eventually, this needs to all go into GErrors.
2010-12-04 15:39:16 +01:00
Matthias Clasen
11cd19987b
Move import syntax closer to css
...
Css allows @import url ("foo.css") or @import "foo.css" or
@import url ('foo.css') but not @import url(foo.css) or @immport foo.css.
2010-12-04 15:39:16 +01:00
Matthias Clasen
f92c352f96
Some error reporting
...
When we take a GError argument, better use it.
2010-12-04 15:39:16 +01:00
Matthias Clasen
5f13b65065
Fix prototype of gtk_css_style_provider_load_from_data
...
GError arguments must be **.
2010-12-04 15:39:16 +01:00
Matthias Clasen
72f9a7940f
Add an outline around menu popups
2010-12-04 15:39:15 +01:00
Matthias Clasen
c8e5d3b07b
Transform the 'menu' detail string to the 'popup' class
2010-12-04 15:39:15 +01:00
Matthias Clasen
016a656923
Fix prelighting of inconsistent radio and check buttons
2010-12-04 15:39:15 +01:00
Matthias Clasen
b6776dc116
Fix the resize handle drawing
2010-12-04 15:39:15 +01:00
Matthias Clasen
627b33265b
Handle float and uint style properties
...
These were giving errors in testgtk.
2010-12-04 15:39:15 +01:00
Matthias Clasen
f0eafe60f8
Remove debug output
2010-12-04 15:39:14 +01:00
Matthias Clasen
4e778d7371
Fix a typo
2010-12-04 15:39:14 +01:00
Matthias Clasen
512bc44dbc
Make frames visible by default
2010-12-04 15:39:14 +01:00
Matthias Clasen
9ca66efe2c
Fix a memory leak
2010-12-04 15:39:14 +01:00
Matthias Clasen
69f91fed94
Translate detail strings for radio buttons
2010-12-04 15:39:14 +01:00
Carlos Garnacho
25b6945971
GtkThemingEngine: remove unused code
2010-12-04 15:39:13 +01:00
Carlos Garnacho
892fe46324
Fix compile warnings
2010-12-04 15:39:13 +01:00
Carlos Garnacho
c9dc09e980
GtkStyleProvider: Pass a GParamSpec in get_style_property().
...
This is so we can know the owner type of the property, and matching
with the stored strings in GtkCssProvider is direct.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
b613f1f1f2
GtkStyleContext: Also use screen providers for widget style properties.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
13e186bbca
Handle menuitem detail string better.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
9a2d1e5433
GtkSettings: install theme CSS with a lower priority.
...
This is so GtkSettings has an opportunity to modify theme colors.
2010-12-04 15:39:12 +01:00
Carlos Garnacho
0057aa5445
Add corners to GtkJunctionSides, defining sides as 2 corners.
2010-12-04 15:39:12 +01:00
Matthias Clasen
eb8a1c4e33
Don't whine about expander-style missing
...
This check was lost in the GtkStyleContext porting.
2010-12-04 15:39:12 +01:00
Carlos Garnacho
43cff6f6f7
GtkCssProvider: theme notebooks.
2010-12-04 15:39:11 +01:00
Carlos Garnacho
6099399fa7
GtkThemingEngine: Use border settings on render_extension/frame_gap()
2010-12-04 15:39:11 +01:00
Carlos Garnacho
60a2e90df7
GtkStyle: transform tabs' detail string.
2010-12-04 15:39:10 +01:00
Carlos Garnacho
534942d994
GtkThemingEngine: Do not use possible reserved word.
2010-12-04 15:39:10 +01:00
Carlos Garnacho
5bf9f8c410
testgtk: Try to locate the right file.
2010-12-04 15:39:09 +01:00
Carlos Garnacho
d4aade109f
Fix gtk_css_provider_get_named() docs.
2010-12-04 15:39:09 +01:00
Carlos Garnacho
c37797a10c
GtkSettings: Keep right refcount of the theme provider.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
611cb007b4
GtkSettings: Ensure the theme CSS is loaded on startup.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
8243c3c025
GtkCssProvider: Fix typo in gtk_css_provider_get_named()
...
provider was being redefined in the inner block, so the loaded
provider didn't get to be returned.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
a185954d7c
Hardcode 3.0 version for style files and paths.
...
It's about time to start using the right paths.
2010-12-04 15:39:07 +01:00
Carlos Garnacho
37f9f491d2
Make testgtk load CSS for custom styling.
2010-12-04 15:39:07 +01:00
Carlos Garnacho
9ffaf1122d
GtkCssProvider: Accept '%' in value strings.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
64e798e190
Do not initialize RC subsystem.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
62ee0956e3
GtkStyleProperties: Use GParamSpec for properties registration.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
1c847d9c21
GtkCssProvider: Docs fix for -gtk-gradient() syntax.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
bcf81a0e23
Handle looping transition animations.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
1123159dc9
GtkCssProvider: Handle better wrong enum/flag values.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
9bb96e271d
GtkCssProviders: Parse GTypeFlags based values.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
5cb6fed0bd
GtkCssProvider: Add initial unit parsing logic
...
At the moment only "px" are supported, and such is the default
value when no unit is specified.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
65abcb722e
GtkCssProvider: Handle the "none" keyword to unset properties.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
c57fdf4c75
GtkStyleContext: Resolve symbolic colors for widget style properties.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
d865cf4b38
GtkStyleProperties: Handle GdkColor types.
...
Just in case.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
8b9b9c22e7
GtkCssProvider: Also parse GdkColor values
...
This is necessary for widget style properties to work.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
815e3499ae
GtkCssProvider: Add lighter/darker color functions.
...
These behave the same than in GtkStyle.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
cb2f9a86e5
GtkCssProvider: allow color names from rgb.txt when parsing colors.
2010-12-04 15:39:03 +01:00
Carlos Garnacho
44b1a6c852
GtkStyleContext: Add #define's for the default properties.
2010-12-04 15:39:03 +01:00
Carlos Garnacho
1be9d6ebc9
Document missing GtkStateType values.
...
The documentation has also moved to gtkenums.h.
2010-12-04 15:39:02 +01:00
Carlos Garnacho
1487b34679
Remove GTK_STATE_LAST.
...
It didn't turn out to be that useful, nor widely used.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
1fb6cc8d77
Use the correct cairo-gobject.h include path.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
2fe0a51ed0
Add gtk_render_icon_pixbuf() function to docs.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
04fbb74388
Add GtkStyleContext migration docs.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
fb97bd1f0a
GtkThemingEngine: Document missing class vmethods.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
4689b63739
GtkButton: Use GtkStyleContext for rendering.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
dc2df7d178
GtkWindow: Use GtkStyleContext for rendering.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
3f12fc2bd8
GtkStyleContext: Add gtk_style_context_set_background().
...
This function replaces gtk_style_set_background().
2010-12-04 15:38:54 +01:00
Carlos Garnacho
d9664021cc
GtkWidget: Update pango context from style context's font description.
2010-12-04 15:38:49 +01:00
Carlos Garnacho
1cfeeadc70
GtkWidget: Ensure the style context always has an screen.
...
Things like font settings depend on the screen, and widgets
like GtkTextView trigger queries on widgets without screen
when the parent window is being destroyed.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
48f239c1f2
Add CSS class defines for toolbars and docks.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
99879d4a5f
GtkStyle: translate a few more detail strings.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
3848a58b17
GtkCssProvider: theme progressbars in default CSS.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
0431239ead
GtkThemingEngine: ensure 1px wide frames aren't painted between pixels.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
f66275fa6a
GtkThemingEngine: Use square cap for solid frames.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
3d1403e684
GtkThemingEngine: ensure that background isn't rendered past the frame boundaries.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
d6ba3b7d89
GtkThemingEngine: Get rid of obsolete code for tooltips.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
661a13fe4d
GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
2010-12-04 15:38:46 +01:00
Carlos Garnacho
405f2f306a
GtkStyleContext: restore widget state too in restore().
2010-12-04 15:38:45 +01:00
Carlos Garnacho
8b267a58da
GtkCssProvider: Do not miss the last class name in concatenated classes.
...
Selectors like .menu.check or .entry.progressbar were being misparsed
and attributed to .menu and .entry.
2010-12-04 15:38:45 +01:00
Carlos Garnacho
d321713704
GtkStyle: transform window background detail string.
2010-12-04 15:38:44 +01:00
Carlos Garnacho
1ec47b20db
GtkStyle: Transform menubar detail string.
2010-12-04 15:38:43 +01:00
Carlos Garnacho
46b8cc8686
GtkStyle: Transform menu accelerators string
2010-12-04 15:38:42 +01:00
Carlos Garnacho
4c898a3c7e
GtkStyleContext: Define some more class names.
2010-12-04 15:38:42 +01:00
Carlos Garnacho
912ad78cc5
Remove GTK_REGION_DEFAULT
...
GTK_STYLE_CLASS_DEFAULT is preferred to match a default area, as
it doesn't make sense to have a per-region default.
2010-12-04 15:38:41 +01:00
Carlos Garnacho
271145645c
GtkThemingEngine: Use GtkSymbolicColor for shades.
2010-12-04 15:38:41 +01:00
Carlos Garnacho
df95a74a27
GtkThemingEngine: Do not require a default value when registering properties
...
NULL should work for 0 for int/double/enum/... types and NULL for
pointer types, this should be sane enough to not require a default
value.
2010-12-04 15:38:40 +01:00
Carlos Garnacho
765f653df6
GtkSymbolicColor: Only require styleproperties when resolving named colors.
...
It is not necessary for resolving colors based on literals,
so be a bit less strict here.
2010-12-04 15:38:40 +01:00
Carlos Garnacho
525963d74d
GtkSymbolicColor: convert to/from hls when shading.
...
This makes shading equal to GtkStyle's.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
3ea9568c20
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
a23863211b
GtkStyleContext: Add gtk_render_icon_pixbuf()
...
This function is similar to gtk_style_render_icon(), which is now
implemented on top of this one.
2010-12-04 15:38:38 +01:00
Carlos Garnacho
06c8857191
GtkThemingEngine: Fix compile warning.
2010-12-04 15:38:38 +01:00
Carlos Garnacho
605fa03248
Fix compile warning
2010-12-04 15:38:37 +01:00
Carlos Garnacho
f2c6c82ff0
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
2010-12-04 15:38:37 +01:00
Carlos Garnacho
f383e6b0a2
GtkWidget: Add new set of methods to override style information.
...
gtk_widget_override_*() deprecates gtk_widget_modify_*(). There are
only functions to modify fg/bg/font/symbolic color, If anything more
fancy/complex is needed. There is the possibility of adding a
GtkStyleProvider yourself.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
920637abef
GtkStyle: Listen to context changes.
...
This way the GtkStyle is updated to the latest style info, actually
emitting ::style-set must be performed after invalidating the style
context.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
33e95ae65f
GtkStyleContext: Add the start of a default set of class names/regions.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
071ccaf8a7
Theming documentation fixes
...
2 functions were not in -sections.txt, and GtkStyleSet was renamed
to GtkStyleProperties.
2010-12-04 15:38:35 +01:00
Carlos Garnacho
80e74d79bb
GtkStyleContext: Fix merging of local and global providers.
2010-12-04 15:38:35 +01:00
Carlos Garnacho
fb8de847df
GtkStyleProperties: Merge font descriptions on merge()
...
This is necessary so incomplete font descriptions are ensured to have
family and size.
2010-12-04 15:38:34 +01:00
Carlos Garnacho
af20ba6103
GtkSymbolicColor: Take const GdkRGBA in new_literal().
2010-12-04 15:38:34 +01:00
Carlos Garnacho
2efa2947be
Document gtk_render_* functions.
2010-12-04 15:38:34 +01:00
Carlos Garnacho
ebf5bd390f
Add gtk_render_activity()
...
This method will render progress bars and spinners, these should
handle active and inconsistent states' animation progress in order
to perform animations.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
af1f8701dc
GtkThemingEngine: draw resize grip through render_handle().
...
GtkJunctionSides is used instead of GdkWindowEdge, GtkStyle
implementation has changed to use GtkStyleContext's.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
227294a6aa
GtkWidget: Trigger state change transitions on state flags change.
...
This makes state transitions automatic for non-complex widgets, complex
widgets such as GtkTreeView still need to notify state updates themselves.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
c0d08ff627
GtkToolItemGroup: Set widget state as state flags.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
1c2f27fe11
GtkToggleButton: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
80d1ce9f67
GtkRadioButton: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
517eaa55e5
GtkNotebook: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
5f0f21aad3
GtkMenuItem: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
9ae2e29f44
GtkMenu: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
399499225e
GtkExpander: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
f7f5ac1b09
GtkEntry: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
0e25b19515
GtkComboBox: Set widget state as state flags.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
401b655307
GtkButton: Set widget state as state flags.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
cd98204619
Implement widget states as a set of flags
...
gtk_widget_(set|unset|get)_state_flags() has been added, using GtkStateFlags
to represent the widget state. GtkStateType API has been implemented on top
of the new one.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
34b91a74e5
Document missing value in GtkStateFlags
2010-12-04 15:38:30 +01:00
Carlos Garnacho
4acc20abc1
s/GtkStyleSet/GtkStyleProperties/
...
The former name had oddities such as gtk_style_set_set() and such,
so the new name is nicer in that regard and not much longer.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
1bdd761c3f
GtkWidget: Ensure name changes involve a style context update.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
8ea649e0a0
Rely only on fg/bg colors.
...
"foreground-color" has been renamed to just "color" as in regular CSS,
and the "text-color" and "base-color" properties have been removed. The
default CSS has been changed to have widgets cope with this change.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
7de2cf3286
GtkCssProvider: Fix parsing of concatenated classes.
...
Now selectors such as:
GtkWidget#name.class1.class2
#name.class1.class2
.class1.class2
are parsed correctly, being meaningful for a widget defining several
classes.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
a8a1d8cd01
GtkThemingEngine: Use ::name when registering style props.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
90de318ab3
GtkThemingEngine: Add ::name construct only property
...
This property is to be set by theming engines, the name set will be favored
over the object type name when registering custom properties, making possible
something like:
-Clearlooks-border: blah;
2010-12-04 15:38:28 +01:00
Carlos Garnacho
c88e3bfc0c
GtkStyleSet: Prevent from possible underflow.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
51b742044a
GtkCssProvider: Parse alpha() symbolic colors.
...
The "alpha" symbolic color modifies a passed color's alpha by a factor,
the syntax would accept things like:
background-color: alpha (@bg_color, 0.8);
foreground-color: alpha (shade (@fg_color, 0.8), 0.5);
2010-12-04 15:38:28 +01:00
Carlos Garnacho
ca44965f33
GtkSymbolicColor: Add gtk_symbolic_color_new_alpha()
...
This function modifies the alpha channel of a color, multiplying
it by a factor.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
0bd81ef710
GtkCssProvider: Make default style depend more on custom colors.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
5310ad8070
GtkStyle: Get to style GtkCellRendererText text.
2010-12-04 15:38:27 +01:00
Carlos Garnacho
6356f01b06
GtkThemingEngine: render 0-radius frames with 3D-like 45° corner effect
2010-12-04 15:38:27 +01:00
Carlos Garnacho
43f7fb8354
GtkThemingEngine: Clear the background for .background class
2010-12-04 15:38:27 +01:00
Carlos Garnacho
d565e15951
GtkStyle: translate active state in paint_flat_box().
2010-12-04 15:38:27 +01:00
Carlos Garnacho
087249db07
GtkCssProvider: Update end string when misparsing symbolic colors.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
7d441000f7
GtkCssProvider: Allow '\t' when parsing values.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
4ca3b5071e
GtkSymbolicColor: Initialize alpha when resolving shades.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
975f133d63
GtkThemingEngine: Improve rendering of inset/outset borders.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
39ce35dd75
GtkCssProvider: Improve default CSS.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
6bd0865601
GtkStyle: Handle scrollbar buttons.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
490d59f045
Do not shade alpha values.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
3bfc59b9bb
GtkStyle: Match "trough" and "slider" detail strings.
...
This is so scrollbars can be themed throught the "trough" and
"slider" classes.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
4e02218f52
Use GdkRGBA all around in GtkStyleContext.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
3a455ed8f9
GtkStyleSet: Register the border-style and border-color properties
...
This is also implemented in the theming engine, although the default
CSS should be using it in order to theme buttons, troughs, sliders
and such.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
8d4ffedbf1
GtkStyleContext: '_' prefix the structs, gtk-doc prefers this.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
770f050d8c
GtkWidgetPath: turn into a boxed type.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
c9a3da5025
GtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions.
...
Several classes and regions may be set to GtkStyleContext, so rename
the functions to be more intuitive.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
161d5175e1
GtkThemingEngine: Honor border-radius in render_background().
2010-12-04 15:38:24 +01:00
Carlos Garnacho
f7dd423862
GtkStyleSet: Register the "border-radius" property
2010-12-04 15:38:24 +01:00
Carlos Garnacho
32b50f2948
GtkStyleContext: Update function declaration in header.
2010-12-04 15:38:23 +01:00
Carlos Garnacho
0a0a1a20a7
GtkCssProvider: Make it able to parse enums.
2010-12-04 15:38:23 +01:00
Carlos Garnacho
d03caa4683
GtkCssProvider: Run through the widget path in the correct order.
...
Comparing a selector with a widget path was being done backwards since
the change to use GtkContainer::get_path_for_child().
2010-12-04 15:38:23 +01:00
Matthias Clasen
35a41bd801
Make loading of theming engines from modules work
2010-12-04 15:38:23 +01:00
Carlos Garnacho
d0f681e898
GtkStyleContext: Add gtk_style_context_new().
2010-12-04 15:38:22 +01:00
Carlos Garnacho
c2f47063c3
GtkCssProvider: Parse default/sorted region flags.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
4a9890e3ab
GtkCssProvider: Parse missing widget states.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
68bfb94f69
Change semantics of the methods to check whether an animation is running.
...
It actually messed up with the state being actually set, and having a
transition animation running for it. Now this dichotomy is removed, and
gtk_style_context_state_is_running() only checks whether an animation is
running, leaving state checking to flags & GTK_STATE_FLAG_*.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
96c16e246c
GtkStyleContext: Actually store region ID when starting an animation.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
a79626b7fb
Add theming docs
...
Both API and file format is documented, there's still missing
a migration doc though.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
59b0fa8133
Remove GtkOrientation parameter from gtk_render_handle().
...
The case for paned can be guessed out from the height and width,
for handlebox the orientation parameter doesn't make much sense,
and this way it could also be used for resize grips.
2010-12-04 15:38:21 +01:00
Benjamin Berg
e8c103f652
Use cairo gobject support instead of a new boxed type.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
88a3c2daae
GtkGradient: Handle symbolic gradients.
...
The css parser has been modified to parse correctly radial gradients:
background-image: -gtk-gradient (radial,
center center, 0,
center center, 0.8,
from (#000 ), to (#fff));
The theming engine has been modified to correctly animate these,
as well as transitions between different pattern types.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
2e8b1cd358
Gtk9Slice: Fix stretch case.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
a65d0d00c0
GtkWidget: Store GtkStyleContext in private struct.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
5bbab9872d
GtkStyleContext: Cache style properties accross class/region changes.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
88b78953b6
GtkContainer: Add method to get the GtkWidgetPath for a child.
...
This is now used throughout in order to have the full path for a given widget,
including intermediate named regions, the default implementation just returns
the GtkContainer's path copy, no intermediate regions between.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
c575733eda
GtkStyleContext: Fix animation framework to work with the new draw() semantics.
...
Invalidation region coalescing now happens recursively as draw() runs, and the
widget's x/y as now drawing coordinates are 0,0 based.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
f9788eb173
GtkCssProvider: Add support for @import rules
...
Now other CSS files can be referenced from the currently parsed file:
@import url (other-file.css);
@import url (/some/file.css);
2010-12-04 15:38:18 +01:00
Carlos Garnacho
0ef48c0bde
GtkCssProvider: no need for resetting the parser prior to parsing data
...
This is done anyway on each iteration to parse_rule() in parse_stylesheet()
2010-12-04 15:38:18 +01:00
Carlos Garnacho
8e96e4e41f
GtkCssProvider: improve file paths parser.
...
It will now return a full path, and check about the file being sane.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
1772b00e85
GtkCssProvider: Transform custom colors to a @define-color rule.
...
Given there are other rules such as @import (which will be supported),
keep a sane namespace here, so for (re)defining a color name, in the CSS
file it will look like:
@define-color color-name #fff;
@define-color other-color mix (@color-name, #f00, 0.4);
2010-12-04 15:38:18 +01:00
Carlos Garnacho
a1a90396b7
GtkThemingEngine: Do not return a const GtkThemingEngine on load()
2010-12-04 15:38:18 +01:00
Carlos Garnacho
5c2cf1e934
Plug some leaks.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
5c8a818671
Fix typo in the Gtk9Slice parser.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
5b11d14a49
GtkButton: Notify on prelight state change.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
908babd8ae
GtkThemingEngine: Implement animations between gradients/colors.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
d8187b34bb
GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
2010-12-04 15:38:17 +01:00
Carlos Garnacho
7583f31609
GtkStyleContext: Store animation region for a bunch of paint operations.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
fecc079087
GtkStyleContext: Invalidate whole window if no invalidation region is obtained.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
20051e02eb
GtkCssProvider: use mapped file to read CSS files.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
80cf01c271
GtkCssProvider: unset filename on load_from_data()
2010-12-04 15:38:16 +01:00
Carlos Garnacho
96e5a02148
GtkThemingEngine: Use border-image to render borders if an image is available.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
7ee564c7cd
GtkCssProvider: Add a parser for 9slice typed properties.
...
The value it parses is similar to the border-image CSS3 property,
so strings like this will be accepted:
border-image: url (foo.png) 4 3 4 3 repeat repeat;
the image path is relative to the parsed CSS file dirname if no
absolute path is provided.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
f363e31a09
Register the border-image property
...
It will contain a 9-sliced image, so it can be rendered as rectangles with any
dimensions.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
089f375cdb
Add Gtk9Slice
...
This is a private boxed object to contain information about a border image
in order to render it in a size independent way.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
cc68e62e24
GtkSettings: Add a new provider for the theme CSS file.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
ac73a8f7a8
GtkStyleContext: Add gtk_style_context_reset_widgets()
...
This function recalculates the style for all widgets on a screen.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
679ff63d5c
GtkCssProvider: Add gtk_css_provider_get_named()
...
This functions loads a CSS file from a installed theme.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
a07fe2c0e6
Add generic providers per-screen.
...
The providers are added as soon as gtk GtkSettings object for the screen
is created.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
1e66155aec
GtkStyleContext: invalidate context when setting the screen
2010-12-04 15:38:14 +01:00
Carlos Garnacho
8dfa0e03ea
GtkWidget: Set style context's screen before the widget_path.
...
This is so the style context has all necessary information before
triggering a style change on setting the path.
2010-12-04 15:38:14 +01:00
Carlos Garnacho
49ac732a18
GtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen()
...
These functions allow per-screen style providers. also, the changed signal
will be emitted whenever a style context changes.
2010-12-04 15:38:14 +01:00
Carlos Garnacho
f239704094
GtkWidget: Add gtk_widget_reset_style().
...
This function is analogous to gtk_widget_reset_rc_styles(),
updates style recursively on a widget.
2010-12-04 15:38:13 +01:00
Carlos Garnacho
3c390c9c8e
GtkWidget: Add the style-updated signal
...
This signal is emitted whenever the widget's style changes.
2010-12-04 15:38:13 +01:00
Carlos Garnacho
77ccdfc94e
GtkStyle: Protect against padding being NULL
2010-12-04 15:38:13 +01:00
Carlos Garnacho
9f84e101bf
GtkStyleContext: Add gtk_style_context_invalidate().
...
This function will regenerate all styling information.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
756bbf526f
GtkStyleSet: Fix typo
2010-12-04 15:38:12 +01:00
Carlos Garnacho
58b6e538c9
GtkThemingEngine: use background-image in render_background()
2010-12-04 15:38:12 +01:00
Carlos Garnacho
2794e8d6dd
GtkStyleSet: Register a "background-image" property.
...
Ironically, it currently just handles gradients, the name is to conform
to current CSS gradient implementation trends.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
cf87923d1b
GtkStyleSet: Handle GtkGradients as a replacement for cairo_pattern_t
...
The former will handle GtkSymbolicColors, which will be resolved and
cached at query time.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
3fc5c87bcb
GtkCssProvider: Add a parser for gradients.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
142a72637d
Add GtkGradient.
...
This type defines a gradient between 2 symbolic colors, with any number
of color stop between these. At the moment it has been put besides
GtkSymbolicColor, although should be completely private, it will likely
need extending in the future for radial gradients.
At some point, it maybe should also be used for images, so painting
both a gradient and an image is consistent.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
74de1839a4
GtkStyleSet: Set an empty default_value if none is provided.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
c908e263ac
GtkCssProvider: strip whitespaces in symbolic color values.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
f12d7409cc
Allow linefeeds in property values.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
02a30118c6
Add a boxed type for cairo_pattern_t.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
621a95f515
GtkSettings: implement GtkStyleProvider
2010-12-04 15:38:11 +01:00
Carlos Garnacho
58a51bca97
GtkStyle: Fill in x/ythickness and font_desc from the style context.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
643abe3127
GtkStyleSet: Register "margin" property.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
585afafa39
Add basic parser for GtkBorder properties.
...
Different units aren't supported, it takes 1 to 4 integers representing
pixel distances.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
846f67d805
GtkStyle: Allow GTK_ARROW_NONE.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
7e7347d1a0
GtkNotebook: invert tab drawing order so region flags are set correctly.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
78a98decae
Get rid of GdkPangoRenderer code in GtkThemingEngine.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
f058359182
Replace GdkRegion and GdkRectangle with their cairo counterparts.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
c9d626523d
Remove gtkalias from style context code.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
9dfba95f09
GtkCssProvider: Add gtk_css_provider_load_from_path()
2010-12-04 15:38:09 +01:00
Carlos Garnacho
0ce649e965
Plug a bunch of leaks.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
91904f6778
GtkButton: Notify on active state when (un)depressed
2010-12-04 15:38:09 +01:00
Carlos Garnacho
9b949479b3
GtkThemingEngine: Animate checkboxes activation.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
7519ed278b
GtkThemingEngine: Add progress arg to gtk_theming_engine_is_state_set()
2010-12-04 15:38:09 +01:00
Carlos Garnacho
3c07e3d3df
GtkWidget: Update GtkStyleContext animation regions on allocation change.
2010-12-04 15:38:08 +01:00
Carlos Garnacho
61a0544b8b
GtkStyleContext: Add animation machinery.
...
Animation regions are confined through gtk_style_context_[push|pop]_animatable_region,
anything that's painted between these calls will be invalidated if an animation starts
for any of the regions in the stack.
gtk_style_context_notify_state_change() may be called from widgets to indicate a
change for a given GtkStateType, in that case an animation will be started if there
is an animation description for the widget/state.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
bbd0c5a2a2
GtkStyleContext: Declare gtk_style_context_list_classes() in header.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
52baa7d51e
GtkCssProvider: Parse properties of type GtkAnimationDescription.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
114f30b772
GtkStyleSet: Register the "transition" property.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
ed840e73e4
Add GtkAnimationDescription as a private boxed object.
...
This struct will be used to represent an animation in GtkStyleSet. It
will only be used internally in GtkStyleContext in order to trigger
animations, engines shouldn't need this.
2010-12-04 15:37:37 +01:00
Carlos Garnacho
2e2c07b695
Add GtkTimeline as a private object.
...
This will only be used internally by GtkStyleContext in order
to animate state changes. When a proper animation framework is
introduced in GTK+, it may be ditched.
2010-12-04 15:37:37 +01:00
Carlos Garnacho
4781f94de2
Move all theming stack to use GtkStateFlags.
...
This support goes from the theming engines, which are able to retrieve
style for different combined states to the CSS provider, where several
state pseudo-classes may be specified, such as:
GtkButton:active:prelight {}
2010-12-04 15:37:37 +01:00
Carlos Garnacho
2c7c4d9a51
GtkStyleContext: Return insertion position if not found when matching classes/regions
2010-12-04 15:37:37 +01:00
Carlos Garnacho
11ac0cb3e1
GtkStyle: set the active flag depending on shadow_type in draw_box().
2010-12-04 15:37:37 +01:00
Carlos Garnacho
bccec3ef0c
GtkCssProvider: Use class for tooltips.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
74697d91fe
GtkCssProvider: Parse and match class info.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
27c91622f6
Set classes info in GtkWidgetPath.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
2dabf20cfd
GtkStyleContext: Add gtk_style_context_list_classes().
2010-12-04 15:37:36 +01:00
Carlos Garnacho
8a1b6e8224
GtkWidgetPath: Add methods to include class info in paths.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
a3637ec60d
s/child class/region/ everywhere.
...
"Child class" is an invented term anyway, and it conceptually defines
identifiable regions in widgets.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
198d75bea5
GtkStyleContext: Rename internal struct.
...
GtkStyleRegion has been renamed to GtkStyleInfo, as it doesn't really
have much to do with regions itself, the information it contains does.
This struct is used in save/restore.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
e04dfd4d6d
GtkThemingEngine: Add gtk_theming_engine_register_property().
...
This function may be used for custom property registration from
theming engines. The property names will have the
-${engine-type-name}-${prop-name} format, the parser has been
modified to allow properties with '-' as the first char.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
d9e3782391
GtkStyleSet: Fix compiler warning.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
355f0d69ab
GtkStyleSet: Allow custom parsers on registered properties.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
99224c9eec
GtkCssProvider: Parse correctly widget types with a name.
...
There's now a distinction between:
GtkLabel#label-name: Label with name "label-name"
GtkWindow #label-name: Window containing a widget named "label-name"
2010-12-04 15:37:34 +01:00
Carlos Garnacho
56e4ffabea
Compare widget names as GQuarks in style matching.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
09d8592b5b
GtkWidgetPath: Make API more consistent.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
ad08330fae
Compare region names as quarks in style matching.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
d47d3d0200
GtkCssProvider: Set child combinators in default CSS.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
5f77ead9c6
GtkCssProvider: Parse and compare widget names.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
52878c45b5
GtkCssProvider: Don't jump too eagerly to the next element when comparing selectors.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
85dbc71921
GtkCssProvider: Immediately bail out if GType couldn't be resolved.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
9ebbc7b5c5
GtkCssProvider: Small optimization.
2010-12-04 15:37:33 +01:00
Sven Herzberg
c001833ed1
GtkCssProvider: don't ignore custom attributes
...
* gtk/gtkcssprovider.c: don't ignore custom attribites (which can be
added by theme engines)
2010-12-04 15:37:33 +01:00
Sven Herzberg
27bc581dca
GtkWidgetPath: properly use const
...
* gtk/gtkwidgetpath.c,
* gtk/gtkwidgetpath.h: use const where possible
2010-12-04 15:37:32 +01:00
Carlos Garnacho
b6226cb7b9
GtkThemingEngine: Render correctly spinbutton buttons.
2010-12-04 15:37:32 +01:00
Carlos Garnacho
dd8da82d1e
GtkStyle: set junction details in spinbutton buttons.
2010-12-04 15:37:32 +01:00
Carlos Garnacho
8c117b1638
GtkThemingEngine: Add gtk_theming_engine_get_junction_sides().
2010-12-04 15:37:31 +01:00
Carlos Garnacho
9108739c9b
GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().
...
These functions will help widgets specify how does one element being painted
relate to other contiguous elements.
2010-12-04 15:37:31 +01:00
Carlos Garnacho
d9b42ce50f
Add GtkJunctionSides flags.
2010-12-04 15:37:30 +01:00
Carlos Garnacho
143c4b3b60
GtkStyleContext: Add gtk_style_context_lookup_color().
...
gtk_style_lookup_color() now uses this function internally.
2010-12-04 15:37:30 +01:00
Carlos Garnacho
b4a24d6457
GtkStyleSet: Register the "border" property.
2010-12-04 15:37:29 +01:00
Carlos Garnacho
78cc97f7b3
GtkThemingEngine: fix typo in function declaration.
2010-12-04 15:37:28 +01:00
Carlos Garnacho
fcf12ff9b9
GtkThemingEngine: Add gtk_theming_engine_get_direction().
2010-12-04 15:37:28 +01:00
Carlos Garnacho
978d97ea6f
GtkWidget: Set style context direction.
2010-12-04 15:37:27 +01:00
Carlos Garnacho
dc216ffb00
GtkStyleContext: Add gtk_style_context_[gs]et_direction().
2010-12-04 15:37:27 +01:00
Carlos Garnacho
e15dc89f89
GtkWidget: Add the default CSS provider to all style contexts.
2010-12-04 15:37:27 +01:00
Carlos Garnacho
85398fc05f
GtkCssProvider: Add gtk_css_provider_get_default().
...
This method returns a GtkCssProvider with the default style information
loaded.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
bd6751230a
GtkStyle: Move gtk_render_* calls to default vmethod implementations.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
9255e20bf8
GtkWidget: Create GtkStyle on top of GtkStyleContext.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
6c549fecd3
GtkWidget: Construct style for partial widget hierarchies.
...
Some unparented widgets like to ask style details, so now the style is
constructed regardless of the parent being present or not, and then
reconstructed if the parent changes.
2010-12-04 15:37:25 +01:00
Carlos Garnacho
09d6c4ea52
GtkStyle: Optionally construct above a GtkStyleContext.
2010-12-04 15:37:25 +01:00
Carlos Garnacho
1e83e52b3d
GtkThemingEngine: Add code to render GtkFrame frame with gap.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
d858801ec3
GtkThemingEngine: Obey active/selected when rendering text.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
5510f24cc1
GtkThemingEngine: Rip out focus rendering from old code.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
eadaded374
GtkThemingEngine: Rip out expander rendering from old code.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
d22f393be3
GtkThemingEngine: Render frames and spinbutton boxes properly.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
7482b636e6
GtkThemingEngine: Improve background rendering.
...
Now active and selected states are taken into account, and GtkSpinButton
buttons are special cased.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
911431c0b2
GtkThemingEngine: Improve pixel alignment in arrows.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
c18ee462e3
GtkThemingEngine: Add methods to retrieve widget style properties.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
0dc81b9a35
GtkStyleSet: Allow setting default value when registering properties.
...
This is now used for the "engine" keyword, where the default engine is used
if none is specified.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
c712480912
GtkStyleContext: Add varargs functions for getting widget style properties.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
5f2e8bc0d1
GtkStyleContext: Ensure style rebuilds after adding/removing classes.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
7748b1d2de
GtkStyleContext: ensure class lookup return the correct insertion position if not found.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
0813a2283e
GtkCssProvider: Allow '_' in the middle of symbolic color names.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
227c500dce
GtkThemingEngine: Improve slider rendering.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
44373ec551
GtkThemingEngine: Cairo-ify frame rendering from GtkStyle.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
8771f46dae
GtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
7d2b51f147
GtkThemingEngine: Cairo-ify extension rendering from GtkStyle.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
4772b67563
GtkThemingEngine: Make render_background use drawing primitives.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
1b556aa4d1
GtkThemingEngine: Unify code to render lines.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
75b059a3f2
GtkThemingEngine: Add cairo-ified rendering primitives.
...
Functions to add paths for lines, rectangle sides, and the gap side in notebooks
have been added.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
5cdb3f0e90
GtkThemingEngine: Cairo-ify handle rendering from GtkStyle.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
9261c2a9d7
GtkThemingEngine: Take option rendering from GtkStyle.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
4e45e9099e
GtkThemingEngine: Take checkbox rendering from GtkStyle.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
27f5257d49
GtkStyleContext: Don crash on empty class sets.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
038bcdcdb6
GtkThemingEngine: Use GdkPangoRenderer when painting layouts.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
475f0fc266
GtkStyleContext: Add gtk_style_context_save/restore().
...
This API will be used to have savepoints when adding and removing
style classes information.
2010-12-04 15:37:18 +01:00
Carlos Garnacho
4a465d279d
GtkThemingEngine: Add gtk_theming_engine_get_screen().
2010-12-04 15:37:18 +01:00
Carlos Garnacho
5db7197c27
GtkWidget: Set screen info in GtkStyleContext.
2010-12-04 15:37:18 +01:00
Carlos Garnacho
758c3e18cc
GtkStyleContext: Add gtk_style_context_[gs]et_screen()
2010-12-04 15:37:17 +01:00
Carlos Garnacho
41650933fd
GtkStyleContext: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
10f6c04f33
GtkStyleSet: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
875237187c
GtkCssProvider: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
51a8f642da
Fix include.
2010-12-04 15:37:16 +01:00
Carlos Garnacho
a256171d34
GtkStyleContext: Add gtk_style_context_lookup_icon_set().
2010-12-04 15:37:16 +01:00
Carlos Garnacho
318e0f28ee
GtkStyleProvider: Add gtk_style_provider_get_icon_factory().
...
With this, style providers have a way to override default icon theme.
2010-12-04 15:37:16 +01:00
Carlos Garnacho
be5d4adf6b
GtkCssProvider: Allow symbolic colors when parsing style rules.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
1de8f75517
GtkCssProvider: Parse color mappings.
...
These are of the form:
@color-a: #fff;
@color-b: mix (@color-a, #000 , 0.5)
@color-c: shade (@color-b, 0.7)
In the stylesheet, arbitrary nesting of these commands is handled.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
4ed96df96a
GtkStyleSet: Optionally take GtkSymbolicColors.
...
gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor
GValues, All accessors still return GdkColors, so any symbolic color will
be resolved and replaced in the styleset at that time.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
b8fb2d1a36
GtkSymbolicColor: Add method to resolve to a GdkColor.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
e2b8efcbec
GtkStyleSet: Add API to map symbolic colors.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
7094213df9
Add GtkSymbolicColor.
...
This is a small boxed struct used to store symbolic colors so they
can be resolved at a later point.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
d748ea983d
GtkWidgetPath: Add to gtkalias.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
b50c88d170
GtkCssProvider: Plug memory leak.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
2cd4ff4215
GtkCssProvider: Fix compile warning.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
1d4687675f
GtkCssProvider: set scanner->input_name.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
6c91ba1cc2
GtkWidget: Do not reset GtkStyleContext per get_style_context().
2010-12-04 15:37:13 +01:00
Carlos Garnacho
22bae20ce8
GtkWidget: Hook up widget style property querying to style context.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
03370c6e0c
GtkStyleContext: Add methods to get style property values.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
bf12227435
GtkCssProvider: Implement GtkStyleProvider->get_style_property
...
Style properties in the resource files are something like:
-GtkComboBox-appears-as-string
-GtkEntry-icon-prelight
Following the usual naming spec for extensions to CSS.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
37335fbb6f
GtkWidgetPath: Add methods to check topmost widget type.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
6990a01299
GtkStyleProvider: Add method to get widget style properties.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
eaddc9f254
GtkCssProvider: refactor out selector matching.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
eec75f1f59
GtkCssProvider: Ensure each scope has its parser config.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
ff05cc4849
GtkCssProvider: Parse boolean values.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
aa5ec97cac
GtkCssProvider: Make additions to parse_value() less error prone.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
814957021f
Fix compile warning.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
66d1cb8054
GtkStyleSet: Register GtkThemingEngine type.
...
This has been also hooked up to the CSS provider, which parses the "engine"
value to load the corresponding module.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
327a9fc66a
GtkWidget: Generate GtkWidgetPath on set_parent.
...
There's no need to wait for realize() to have the right widget style.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
6906138e45
GtkStyleSet: Remove default value for registered properties.
...
This should be handled at a higher level, a single default value for all
states isn't that useful...
2010-12-04 15:37:10 +01:00
Carlos Garnacho
80e01becbe
Fix compilation.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
a323310c19
GtkNotebook: Set GtkChildClassFlags for tabs.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
e899fdd973
GtkCssProvider: Set default value if no state pseudo-class is specified.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
66accc4184
GtkStyleSet: Add gtk_style_set_set_default().
...
This will set the default value to a given property for all possible states,
such default value will only be used if the queried state doesn't have a
value itself.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
bd9bd1310b
GtkStyleContext: Fix compiler warning.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
17908880b5
GtkStyle: Use new render methods underneath.
...
This commit should probably be squashed in the future, when GtkStyleContext
is on par with it, and GtkStyle is just a shallow object on top of
GtkStyleContext and calling it in the default implementation methods, so
all gtk_paint_* and gtk_draw_* would work.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
f5adc2a1c3
Add region details in gtk_widget_get_path().
2010-12-04 15:37:09 +01:00
Carlos Garnacho
cf27f6f1cf
GtkStyleContext: fix typos in code.
...
The wrong list was being modified in gtk_style_context_set_child_class(),
and gtk_style_context_has_child_class() was checking for *flags != 0, not
flags != NULL.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
104caa74f0
GtkStyleContext: Add gtk_style_context_list_child_classes().
2010-12-04 15:37:09 +01:00
Carlos Garnacho
67c4f8d02e
GtkCssProvider: Compare GtkWidgetPath regions with css.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
977a972358
GtkCssProvider: fix parsing of consecutive pseudo-classes.
...
Now either of foo{}, foo:first-child{}, foo:nth-child(even):insensitive or
foo:active{} will be correctly parsed.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
0be4659c5d
GtkCssProvider: move to next selector element on match or child combinator.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
bc0af3208d
GtkCssProvider: free selector path on parse_rule().
2010-12-04 15:37:08 +01:00
Carlos Garnacho
07171d5f68
GtkCssProvider: Add named regions to selector path.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
707d5ae99c
GtkCssProvider: Parse named regions.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
11c874619b
GtkWidgetPath: Add API for named regions.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
71949e05c4
Refurbish GtkWidgetPath API.
...
The foreach() function is now gone, there's now API to get
GTypes and names from the position in the path.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
f60e3f3a8a
Move GtkChildClassFlags to gtkenums.h.
2010-12-04 15:37:06 +01:00
Carlos Garnacho
8c03503d16
GtkCssProvider: Add support for child/descendant combinators.
...
Now, selectors like:
GtkWindow > GtkButton {}
GtkNotebook > GtkLabel {}
will represent a direct parent/child relation between both elements, while
GtkWindow GtkButton {}
GtkNotebook GtkLabel {}
will allow intermediate children between these.
2010-12-04 15:37:06 +01:00
Carlos Garnacho
d691e79cbf
GtkCssProvider: Fix typo freeing SelectorElements.
2010-12-04 15:37:05 +01:00
Carlos Garnacho
abbeb89b7c
GtkCssProvider: Allow empty selector.
...
universal selector is implied, so things like this work:
:active {}
:insensitive{}
2010-12-04 15:37:05 +01:00
Carlos Garnacho
4c8353bcbf
GtkCssProvider: Allow '*' selectors.
...
These would match a single widget of any type.
2010-12-04 15:37:04 +01:00
Carlos Garnacho
468f216b1c
GtkCssProvider: Add state parsing.
...
Now state is now defined as a pseudoclass in the CSS format, selectors like:
GtkWidget:active { }
GtkButton:insensitive { }
GtkCalendar:prelight { } (also :hover is accepted)
...
define the style for the given state.
2010-12-04 15:37:03 +01:00
Carlos Garnacho
7dada9949d
GtkWidget: Create GtkCssProvider for user modifications.
...
~/.gtk-X.0.css is checked, and added as a style resource if available.
2010-12-04 15:37:03 +01:00
Carlos Garnacho
82f485afd9
GtkStyleProvider: Add defines for most common priorities.
2010-12-04 15:37:02 +01:00
Carlos Garnacho
bccad0c65c
Added GtkCssProvider.
...
GtkCssProvider is a GtkStyleProvider implementation which is able to read
CSS-like input to style widgets.
At the moment, only the basic parser features are available.
2010-12-04 15:37:02 +01:00
Carlos Garnacho
7c5c4d86ae
Add GtkWidgetPath parameter to gtk_style_provider_get_style().
2010-12-04 15:37:02 +01:00
Carlos Garnacho
9971f386b0
GtkStyleSet: Add method to lookup property default settings.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
7647deb417
GtkStyleSet: Make property registration take const GValues.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
fdcda4b356
GtkStyleContext: allow late set_path() calls.
...
Now the properties will only be regenerated whenever there's a GtkWidgetPath
to query about.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
bdadcb568c
GtkStyleContext: Fix compiler warning.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
f984c39e93
GtkStyleContext: Fix typo.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
f8c74ae54b
GtkStyleContext: Add gtk_render_handle().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
9e5d9ff28d
GtkThemingEngine: Add vmethod to render a handle area.
2010-12-04 15:36:59 +01:00
Carlos Garnacho
160821042c
GtkStyleContext: Add gtk_render_extension().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
aa1d492fe9
GtkThemingEngine: Add vmethod to render an extension.
2010-12-04 15:36:58 +01:00
Carlos Garnacho
88492a50d6
GtkStyleContext: Add gtk_render_frame_gap().
2010-12-04 15:36:58 +01:00
Carlos Garnacho
af1edc3d88
GtkThemingEngine: Add vmethod to render frames with a gap.
2010-12-04 15:36:58 +01:00
Carlos Garnacho
6a1b54f8bf
GtkStyleContext: Add gtk_render_slider().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
2ebdf80adc
GtkThemingEngine: Add vmethod to render sliders.
2010-12-04 15:36:57 +01:00
Carlos Garnacho
86727adc4d
GtkStyleContext: Add gtk_render_line().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
b8f6617d99
GtkThemingEngine: Add vmethod to render lines.
2010-12-04 15:36:56 +01:00
Carlos Garnacho
f80fbbd829
GtkStyleContext: Add gtk_render_layout().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
92994a0129
GtkThemingEngine: Add vmethod to render layouts.
2010-12-04 15:36:56 +01:00
Carlos Garnacho
0486f5bbc0
GtkStyleContext: Add gtk_render_focus().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
8439537e2f
GtkThemingEngine: Add vmethod to render focus indicator.
2010-12-04 15:36:55 +01:00
Carlos Garnacho
9c3b079c1c
GtkStyleContext: Add gtk_render_expander().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
19fdaabf4c
GtkThemingEngine: Add vmethod to render expanders.
2010-12-04 15:36:55 +01:00
Carlos Garnacho
b4c8eba480
GtkStyleContext: Add gtk_render_frame().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
48990bc71c
GtkThemingEngine: Add vmethod to render frames.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
25488633ec
GtkStyleContext: Add gtk_render_background().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
13812de971
GtkThemingEngine: Add vmethod to render backgrounds.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
01a8e06842
GtkStyleContext: Add gtk_render_arrow().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
b7ca7d19ee
GtkThemingEngine: Add vmethod to render arrows.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
1c15b140a9
GtkStyleContext: Add gtk_render_option().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
263f6de0e5
GtkThemingEngine: Add vmethod to render radio buttons.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
401625b8b3
GtkStyleContext: Add gtk_render_check().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
acf4306bcd
GtkThemingEngine: Add vmethod to render checkboxes.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
bf7a9914dd
GtkThemingEngine: Add accessors to style classes.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
fe4a6cea73
GtkWidget: Add widget path to style context.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
1d2aa61407
GtkStyleContext: Add child style classes.
...
Child style classes are like style classes, but with additional positional
information. This would be usually set by the parent container.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
9a76d1a332
GtkStyleContext: Add style classes.
...
Style classes are the replacement of detail strings.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
bd3b97d82b
GtkStyleContext: Relate to a GtkThemingEngine.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
0171c76871
GtkThemingEngine: Add module loading capabilities.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
57be029b15
Add GtkThemingEngine.
...
GtkThemingEngine will be the theming engines base class, with default
implementations for all paint functions, and readonly access to the
related GtkStyleContext data.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
b7e6ae3983
GtkStyleContext: Add gtk_style_context_[gs]et_path()
...
This relates a GtkStyleContext with a widget path, so
all style querying would happen based on it.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
9794b6adf9
GtkWidget: Add gtk_widget_get_path().
...
This function composes and returns a GtkWidgetPath representing
the passed widget.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
61360dfddf
Add GtkWidgetPath.
...
GtkWidgetPath represents a widget path. It will mainly used by theming
engines to know detail about the widget hierarchy without actually
accessing the widget.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
835cc7049c
GtkStyleContext: Add getters and setter for state.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
3f93c714ae
GtkWidget: Add gtk_widget_get_style_context().
...
There will be one GtkStyleContext per widget, at the moment its
lifetime is tied to the widget's, but it could be narrowed down
to GTK_WIDGET_REALIZED.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
2e96770e0b
Add GtkStateFlags.
...
It basically represents GtkStateType as a flag set.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
8a7e035ac7
GtkStateType: Add inconsistent and focused state.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
b82355c76e
GtkStyleContext: Fix typo.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
28b7782d78
GtkStyleSet: Add method to register border property.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
16484f8459
GtkStyleSet: Add method to register font properties.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
1a3d964615
GtkStyleContext: Add methods to query composed style.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
2da033b18c
GtkStyleSet: Return default value if value is not set.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
9fdcbd7a84
GtkStyleSet: Add valist and varargs getters/setters.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
2bf7483e74
GtkStyleSet: Use property GQuark as store keys.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
4c60de4783
GtkStyleSet: Add style property registration funcs.
...
Also some properties have been added as a default set.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
2b425d89c8
Add GtkStyleContext.
...
GtkStyleContext will conglomerate the information of several
GtkStyleProviders for widgets and theme engines to query it.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
530ae15f96
gtkstyleset.h: Add declaration for gtk_style_set_merge().
2010-12-04 15:36:48 +01:00
Carlos Garnacho
f969470ad8
GtkStyleSet: Implement GtkStyleProvider.
...
As simple as it can get.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
019fa73308
Add GtkStyleProvider, an interface to provide style details.
...
The get_style() function isn't final yet, further parameters
should be added to query details based on the widget hierarchy,
name, etc.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
f601abd25f
Add GtkStyleSet, a store of style properties.
...
At the moment there's only basic API for adding,
removing and clearing a property. There's also
API to merge 2 GtkStyleSets.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
06288b5ae8
Add GTK_STATE_LAST to mark the end of GtkState enum.
2010-12-04 15:36:47 +01:00
Yaron Shahrabani
0d873a61e5
Updated Hebrew translation
2010-12-04 15:28:27 +02:00
Tristan Van Berkom
1d3961b342
Fixing gtk_cell_area_box_focus().
...
the ->focus() method was getting mixed up when more than
one cell was in the same group (not aligned), added the
proper check to break out of the loop on time.
2010-12-04 21:49:44 +09:00
Tristan Van Berkom
c4eff8b6b0
Added some "align" checkbuttons to show configurable cell alignments in testtreeedit.
2010-12-04 21:41:48 +09:00
Tristan Van Berkom
bbee4de33d
Fixed typo in GtkCellArea docs.
2010-12-04 20:54:36 +09:00
Tristan Van Berkom
b0f849eafd
Changed GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID for GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID
2010-12-04 20:52:03 +09:00
Tristan Van Berkom
9c7e00f744
Fixing GtkTreeViewColumn to use the new _gtk_cell_layout_buildable_custom_tag_end correctly.
2010-12-04 17:10:31 +09:00
Tristan Van Berkom
84eb40b57e
Added GtkEntryCompletion:cell-area construct property.
...
- Removed most of GtkCellLayout implementation in favor of ->get_area()
- This allows GtkBuildable cell layout implementation to implement
the child "cell-properties"
- Also allows feeding a custom/different GtkCellArea implementation to
layout cells.
- Share the internal area with the created GtkTreeViewColumn.
2010-12-04 16:55:49 +09:00
Tristan Van Berkom
52ba4f49c5
Added boolean return to GtkCellLayout buildable custom tag end shared private function.
2010-12-04 16:53:28 +09:00
Tristan Van Berkom
c8c5ed8fa1
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-04 16:04:04 +09:00
Tristan Van Berkom
0f4a2d322b
Fixed merge conflicts from cherry-pick of construct-only GtkTreeViewColumn:cell-area property.
2010-12-04 15:52:40 +09:00
Tristan Van Berkom
acc4dd2912
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-04 15:49:46 +09:00
Tristan Van Berkom
9c6a801f52
Migrated GtkCellLayout documentation into the source code.
...
Also added a section on specifying <cell-packing> properties
in the GtkCellLayout UI description.
2010-12-04 15:41:42 +09:00
Tristan Van Berkom
7e2571a358
Added "Cell Properties" section to the GtkCellArea documentation.
2010-12-04 15:02:53 +09:00
Tristan Van Berkom
2a41de70b1
Removing an unused variable from GtkCellRendererText->get_preferred_width()
2010-12-04 14:31:45 +09:00
Matthias Clasen
12e5e24c3e
Another attempt to fix the gdk symbol list
2010-12-03 23:50:58 -05:00
Matthias Clasen
d998e7761c
Update sections
2010-12-03 15:41:37 -05:00
Benjamin Otte
350fb1d55c
API: gdk: Rename GdkWindowObjectClass to GdkWindowClass
...
Be consistent in the naming of objects.
2010-12-03 19:11:13 +01:00
Benjamin Otte
d916398dd2
API: Rename GdkWindowClass to GdkWindowWindowClass
...
We argued replacing GdkWindowClass with a input_only boolean, but this
is not doable in an API-stable way, so I decided against it.
2010-12-03 19:11:13 +01:00
Matthias Clasen
a996a309c7
One more forgotten symbol
2010-12-03 13:05:23 -05:00
Matthias Clasen
5687d7f880
Update gdk symbol list
2010-12-03 13:04:42 -05:00
Andrej Žnidaršič
3d81af670d
Updated Slovenian translation
2010-12-03 18:10:08 +01:00
Matthias Clasen
17e2c5391c
Fix up parameter mismatches in the docs
...
And other minor gdk doc fixes.
2010-12-03 09:07:06 -05:00
Matthias Clasen
4ef86fc500
Add annotation to gdk_screen_get_monitor_geometry
...
Pointed out by William Jon McCann.
2010-12-03 08:21:48 -05:00
Tristan Van Berkom
c5a60e035d
Removed GtkCellAreaBoxPrivate from GtkCellAreaBox section.
2010-12-03 17:21:28 +09:00
Tristan Van Berkom
0fa7477091
Adding documentation for GtkCellAreaBox.
2010-12-03 17:13:31 +09:00
Tristan Van Berkom
9e3ebe4955
Marking GtkCellArea structure portions as /*< private >*/
2010-12-03 17:12:59 +09:00
Tristan Van Berkom
4c165de31f
Added gtk-doc to GtkCellArea & GtkCellAreaContext.
2010-12-03 16:29:11 +09:00
Tristan Van Berkom
b84f5aa4dd
Added symbols from 'treeview-refactor' branch to gtk.symbols file.
2010-12-03 16:28:06 +09:00
Michael Natterer
e4cbe47a11
gtk: properly indent calls to gdk_threads_add_timeout()
2010-12-02 23:01:12 +01:00
Bastien Nocera
b1beaa2dea
docs: Fix building with latest GDK changes
2010-12-02 21:01:53 +00:00
Matthias Clasen
f5c27476a5
Don't require a display for the color test
...
Its not really needed, and the build bot doesn't have X...
2010-12-02 16:00:15 -05:00
Benjamin Otte
fdb242ac6a
gdk: Clean up Cairo code
...
Remove a bunch of code that is not required.
2010-12-02 20:21:05 +01:00
Benjamin Otte
0b6c184eaa
label: Clarify docs for gtk_label_get_layout()
2010-12-02 20:21:05 +01:00
Benjamin Otte
f9a9567731
gdk: Replace direct calls of _gdk_event_func with _gdk_event_emit()
...
For now that function just calls the event func.
2010-12-02 20:21:05 +01:00
Benjamin Otte
b3e8504111
x11: Don't include gdkprivate.h in gdkx.h
...
It's private, mkay?
And include it directly where we need it anyway.
2010-12-02 20:21:05 +01:00
Benjamin Otte
a6b407cf4a
gtk: Fix typos in comment
2010-12-02 20:21:05 +01:00
Benjamin Otte
8c6831ab5e
gdk: Remove useless macros from gdkprivate.h
2010-12-02 20:21:05 +01:00
Benjamin Otte
f5be938840
gtk: Don't include private GDK headers
...
Use the function that exists for this purpose instead.
2010-12-02 20:21:05 +01:00
Benjamin Otte
585c489577
gdk: Remove GDK_PANGO_UNITS_OVERFLOWS() from internal headers
...
It's unused.
2010-12-02 20:21:05 +01:00
Benjamin Otte
4d1604c77d
gdk: Move window beeps into GdkWindowImpl
...
One less magic function. Also refactored it to make it easier to
implement. It now returns TRUE if it beeped and FALSE if it failed to do
so. A default implementation exists that just returns FALSE for all the
backends that can't beep windows (read: everything but X11 with XKB -
and why on earth do keyboard libs implement beeping?)
2010-12-02 20:21:05 +01:00
Benjamin Otte
1269f8424f
gdk: Make get_shape and get_input_shape vfuncs
...
Trying to get rid of all the _gdk_windowing_something() functions that
we expect backends to magically know about and instead put them in a
proper interface (mostly GdkWindowImplClass).
2010-12-02 20:21:04 +01:00
Benjamin Otte
218eea4378
gdk: Remove GdkDrawable
...
It's unused.
2010-12-02 20:21:04 +01:00
Benjamin Otte
b9fc6a0c03
gdk: Remove remaining includes of gdkdrawable.h
2010-12-02 20:21:04 +01:00
Benjamin Otte
4bfa4e0d86
gdk: Make GdkWindowImpl inherit from GObject
2010-12-02 20:21:04 +01:00
Benjamin Otte
3494f87a10
API: Remove GdkNoExposeEvent
...
It's not used by anyone and not supported by any backend but X11.
2010-12-02 20:21:04 +01:00
Benjamin Otte
98838df2db
gdk: Make GdkWindow->impl a GdkWindowImpl
2010-12-02 20:21:04 +01:00
Benjamin Otte
e3013a5cf5
docs: Replace mentions of drawable with window in migration guide
...
No need to let gtk3-aware people learn about wonderous gtk2 terms when
they are migrating old code. ;)
2010-12-02 20:21:04 +01:00
Benjamin Otte
d03c94907a
docs: Remove overrides for types that don't exist anymore
2010-12-02 20:21:04 +01:00
Benjamin Otte
ba20a00570
tests: Remove disabled testtext example
2010-12-02 20:21:04 +01:00
Benjamin Otte
804c2c8350
cellrenderer: Fix docs to say cairo_t instead of GdkDrawable
2010-12-02 20:21:04 +01:00
Benjamin Otte
17a0a467a1
gdk: Pass the GdkWindow to resize_cairo_surface vfunc
...
So it's in sync with all the other vfuncs.
2010-12-02 20:21:04 +01:00
Benjamin Otte
e4c27b0a59
API: GdkWindow no longer is a GdkDrawable
...
Also, name the get_type function properly.
2010-12-02 20:21:03 +01:00
Benjamin Otte
1ad7c5f8c5
x11: Remove unused GDK_DRAWABLE_XROOTWIN macro
2010-12-02 20:21:03 +01:00
Benjamin Otte
2408936bb5
x11: Remove duplicate definition of GDK_WINDOW_XID
...
Now, where did that come from?
2010-12-02 20:21:03 +01:00
Benjamin Otte
d1700d6e3c
gdk: Move ref_cairo_surface from GdkDrawable to GdkWindowImpl
...
Also make it take the actual GdkWindow, not the implementation, like all
the other vfuncs do.
2010-12-02 20:21:03 +01:00
Benjamin Otte
62d004cf8f
gdk: Remove _gdk_drawable_ref_cairo_surface()
...
Instead, call the vfunc directly from gdkWindow.c
2010-12-02 20:21:03 +01:00
Benjamin Otte
9d2abf81d2
x11: Remove outdated variable definition
2010-12-02 20:21:03 +01:00
Benjamin Otte
1215f70e23
gdk: Remove GdkDrawable->create_cairo_surface vfunc
...
It's unused.
2010-12-02 20:21:03 +01:00
Benjamin Otte
370d272b13
gdk: Remove _gdk_window_impl_get_type() function
...
It was only used in the backends, and they can use the correct type
directly.
2010-12-02 20:21:03 +01:00
Benjamin Otte
ac4609ecc9
x11: Fix in_rectangle computation
...
A point is not in a rectangle when it's at the x + width coordinate.
2010-12-02 20:21:03 +01:00
Benjamin Otte
1bb6f48bb3
gdk: Rename GdkWindowObject to GdkWindow
...
... and remove most of the casting that used to be necessary.
2010-12-02 20:21:03 +01:00
Benjamin Otte
7acb64f983
gdk: Make GdkWindowImpl a class, not an interface
...
It's a subclass of GdkDrawable and the baseclass for GdkWindowImplX11
etc now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
b3bca70d5b
gdk: Remove unused medialib code
2010-12-02 20:21:02 +01:00
Benjamin Otte
b1f6df8085
API: Remove gdkdrawable.h from public headers
...
It continues to exist as a private header.
2010-12-02 20:21:02 +01:00
Benjamin Otte
771fa78257
textbuffer: Remove check for GdkDrawable
...
This should only have been used for stipple patterns, and those are gone
now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
cf6ce6e671
API: Decouple GdkWindow from GdkDrawable
...
Make GdkWindow no longer typedeffed to GdkDrawable, but instead make it
be its own (private) type.
2010-12-02 20:21:02 +01:00
Benjamin Otte
81605623e2
gdk: Use GdkDrawable for impl pointers
...
... instead of GdkWindow
2010-12-02 20:21:02 +01:00
Benjamin Otte
a7e6d6c4b4
gtk: Avoid GdkDrawable usage, including needless casts
2010-12-02 20:21:02 +01:00
Benjamin Otte
63808f90a2
gail: Avoid needless calls to GdkDrawable
2010-12-02 20:21:02 +01:00
Benjamin Otte
62622a94ae
gdk: Pass Drawable as argument
...
We're not passing a GdKWindow here, but the implementation.
2010-12-02 20:21:02 +01:00
Benjamin Otte
072498ae87
gdk: Make _gdk_window_ref_cairo_surface() protected and use it
...
... instead of _gdk_drawable_ref_cairo_surface() where appropriate.
Also, don't implement the drawable->create_cairo_surface vfunc anymore.
This is in preparation for the split of GdkWindow from GdkDrawable.
2010-12-02 20:21:02 +01:00
Benjamin Otte
e724054d19
API: Remove GDK_WINDOW_XWINDOW() macro
...
Use GDK_WINDOW_XID() instead.
THis was done using sed, so there might be issues resulting to that.
Feel free to fix.
2010-12-02 20:20:56 +01:00
Benjamin Otte
18a6976e5a
API: gdk: Don't track outstanding surfaces
...
You are not allowed to track surfaces from GDK or draw outside of expose
events. So we can remove ugly hacks needed previously. See
https://bugzilla.gnome.org/show_bug.cgi?id=606009 for the introduction
of this workaround.
2010-12-02 20:17:28 +01:00
Benjamin Otte
fe6f76a5a2
x11: Make wrapper member a GdkDrawable
...
This is in preparation for getting rid of GdkDrawable as a dependency of
GdkWindow.
2010-12-02 20:17:28 +01:00
Benjamin Otte
becaf660fc
API: gdk_drawable_get_visible_region => gdk_window_get_visible_region
...
Also get rid of the GdkDrawable vfunc.
2010-12-02 20:17:28 +01:00
Benjamin Otte
6a3a89a621
API: gdk_drawable_get_clip_region() => gdk_window_get_clip_region()
...
Also remove the vfunc from GdkDrawableClass.
2010-12-02 20:17:28 +01:00
Benjamin Otte
97e6e9d212
API: Make gdk_cairo_create() take a GdkWindow
...
This is not strictly an API change as GdkDrawable is typedeffed to
GdkWindow, but it changes the header, so I'm marking it as such.
gdk_cairo_create() can only be used with windows these days, so it makes
sense to pass a window. With that, we can alseo remove the
set_cairo_clip() vfunc from GdkDrawable and implement it inside
gdkwindow.c.
2010-12-02 20:17:28 +01:00
Benjamin Otte
65dde2f92f
API: Remove gdk_cairo_reset_clip()
...
You should not ever ever ever call cairo_reset_clip(). If you do, your
code is broken and you deserve everything you get.
And we should definitely not support this insanity.
2010-12-02 20:17:28 +01:00
Benjamin Otte
d154344a43
win32: Remove some unused defines
2010-12-02 20:17:28 +01:00
Benjamin Otte
88399c041c
x11: Remove GdkDrawableImplX11
...
It's not use anymore, the whole functionality has been moved to
GdkWindowImplX11.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3e6a4af6d3
x11: _gdk_x11_drawable_update_size() => _gdk_x11_window_update_size()
2010-12-02 20:17:27 +01:00
Benjamin Otte
bb79506665
x11: Move cairo_surface and wrapper members to GdkWindowImplX11 struct
2010-12-02 20:17:27 +01:00
Benjamin Otte
1c7f58fdb6
x11: Move xid member from GdkDrawableImplX11 to GdkWindowImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
a3c5005eef
x11: Use GDK_WINDOW_XID() instead of writing it out
2010-12-02 20:17:27 +01:00
Benjamin Otte
094b0eeb98
x11: Remove screen member from GdkDrawableImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
5f12730599
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
cfa67127a1
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
dc7d8dae67
x11: Change GDK_WINDOW_SCREEN macro
...
on't look at GdkDrawableImplX11->screen, but call
gdk_window_get_screen() instead.
2010-12-02 20:17:27 +01:00
Benjamin Otte
5139eecc75
API: x11: Remove GDK_DRAWABLE_XID and GDK_DRAWABLE_XDISPLAY
...
Window equivalents exist and drawables are on their way out.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3b8aea389d
x11: Use window macros instead of drawable macros
...
GDK_WINDOW_XID() instead of GDK_DRAWABLE_XID()
GDK_WINDOW_XDISPLAY() instead of GDK_DRAWABLE_XDISPLAY()
2010-12-02 20:17:27 +01:00
Benjamin Otte
91679c384a
API: Remove gdk_x11_drawable_get_xdisplay()
...
No need for the function. Macros exist to do the same thing.
2010-12-02 20:17:27 +01:00
Benjamin Otte
0841281b55
x11: Use window macros in test code
2010-12-02 20:17:27 +01:00
Benjamin Otte
28ba4c2146
im-xim: Use window macros instead of drawable macros
2010-12-02 20:17:27 +01:00
Benjamin Otte
3af4432c6f
API: x11: Remove gdk_x11_window_get_drawable_impl()
...
It's not used anymore
2010-12-02 20:17:27 +01:00
Benjamin Otte
deffc9e39f
API: x11: Change GDK_WINDOW_XDISPLAY() macro
...
Instead of lots of magic, we can go the usual way of requesting the
XDisplay of the window's display. So we do that.
2010-12-02 20:17:27 +01:00
Benjamin Otte
cf51750bf4
API: x11: gdk_drawable_get_xid => gdk_window_get_xid
...
Also moves the function implementations to gtkwindow-x11.c.
2010-12-02 20:17:27 +01:00
Jorge González
86390c99dd
Updated Spanish translation
2010-12-02 19:28:16 +01:00
Jorge González
c5d1b36e87
Updated Spanish translation
2010-12-02 19:28:12 +01:00
Tristan Van Berkom
513546f3df
Adding GtkCellArea to gtk-doc build (added to gtk3.types, gtk-docs.sgml and updated gtk3-sections.txt file).
2010-12-03 00:29:43 +09:00
Tristan Van Berkom
a7ad110fe9
Adding more documentation to GtkCellArea, documented GtkCellAreaClass structure.
2010-12-03 00:29:22 +09:00
Bastien Nocera
66122b369e
gtk: Centre the text under the icon in GtkIconView
...
No point in setting the alignment to centre if we don't center it
within the cell itself.
2010-12-02 15:04:32 +00:00
Tristan Van Berkom
005964b22a
Manually pulling back a GtkTreeViewColumn fix from treeview-refactor-staging
...
This fix has evolved in the staging branch since all column members are
on a private structure, but since it causes warnings when closing the
windows of the testcellarea test (because the combo-boxes use a treeviewcolumn)
I thought it nice for now to just manually include the fix.
The fix is just proper bookkeeping of delegate objects at dispose() time.
2010-12-02 17:42:46 +09:00
Tristan Van Berkom
cd09abf461
Changed tests/testcellarea.c (and scaffolding) to only reorient the GtkCellArea
...
It's a better test case if the scaffolding only displays the rows from top
to bottom and doesnt line up the cells from left to right (because it shows
that height-for-width still works with vertically oriented areas).
2010-12-02 17:10:10 +09:00
Tristan Van Berkom
2bf8f7eab9
Removed unused variable from GtkCellAreaBoxContext.
2010-12-02 17:09:44 +09:00
Tristan Van Berkom
03a72118ad
Merge branch 'master' into treeview-refactor
...
Conflicts:
tests/Makefile.am
2010-12-02 13:58:02 +09:00
Matthias Clasen
dd678ac323
Avoid a warning when finalizing toolbars
...
Recent changes cause disposing menus to emit ::deactivate. So better
disconnect the deactivate handler first.
2010-12-01 23:32:35 -05:00
Tristan Van Berkom
a9fd00a435
Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferred_width()/height() apis.
2010-12-02 13:19:37 +09:00
Cosimo Cecchi
6587652433
app-chooser-button: don't insert empty rows in the combobox
2010-12-01 20:18:12 +01:00
Cosimo Cecchi
b17f033857
app-chooser-button: add a note in the docs
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
6e6379c633
app-chooser: add docs and symbols coverage for new API
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
510d65ba08
app-chooser-button: add gtk_app_chooser_button_set_active_custom_item()
...
This allows to pre-select a custom item.
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
9ffd1f7adb
app-chooser-button: make sure to always get a valid iter
...
Even in case there are no installed applications for our content type.
2010-12-01 17:03:51 +01:00
Bastien Nocera
959fc60c47
gtk: Allow hiding the trough/slider in GtkScale
...
When setting a GtkRange's upper and lower values to the same
value, the slider will not be drawn any more.
https://bugzilla.gnome.org/show_bug.cgi?id=549720
2010-12-01 15:39:50 +00:00
Tristan Van Berkom
30561228ed
Added some rules to GtkCellAreaBox for rendering the last cell.
...
- When we reach a cell that is out of the render area, break out
of the loop (for columns user resized too small)
- CLAMP the size of the last renderer to fit into the area
(so that renderers get a chance to ellipsize when rendered
with a space less than allocation, same reason as above).
- Hand out remaining space in the render area to the last cell,
this is for shallow rows in the expand column which may recieve
more than the allocated width.
2010-12-01 22:56:06 +09:00
Ivar Smolin
926622e2dd
[l10n] Updated Estonian translation
2010-12-01 13:17:39 +02:00
Mahyar Moghimi
80b1c80dbb
Updating Persian translation
2010-12-01 14:19:46 +03:30
Mahyar Moghimi
b9bc2f1321
Updating Persian translation
2010-12-01 14:16:19 +03:30
Tristan Van Berkom
a852deeb03
Fixed GtkCellArea to always activate a cell at gtk_cell_area_activate() time even if no cells have focus.
2010-12-01 16:22:18 +09:00
Tristan Van Berkom
26ac551b74
Added special clause to GtkCellAreaBox focus navigation.
...
If the area has no activatable cells and has focus when
focus should be cycled, immediately focus out of the area
(because focus in that case is given to the entire area).
2010-12-01 15:18:40 +09:00
Emmanuele Bassi
b9859de917
switch: Fix the attribution line
...
Thomas Wood pointed out that the original MxGtkLightSwitch widget upon
which I based the behaviour of GtkSwitch was not written by him; the
original authors are:
Joshua Lock
Robert Staudinger
Jussi Kukkonen
My apologies to all of them.
2010-11-30 21:54:48 +00:00
Matthias Clasen
bdeba634d9
Update checkmenuitem docs slightly
2010-11-30 11:36:34 -05:00
Cosimo Cecchi
117e88646f
Merge branch 'open-with-dialog'
2010-11-30 17:31:59 +01:00
Cosimo Cecchi
4fe23cae78
app-chooser: other misc doc fixes
2010-11-30 17:27:53 +01:00
Cosimo Cecchi
960516bf33
app-chooser: add more symbols & docs
2010-11-30 16:30:33 +01:00
Cosimo Cecchi
cb916f2746
Merge branch 'master' into open-with-dialog
...
Conflicts:
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
2010-11-30 16:27:28 +01:00
Guillaume Desmottes
8076dbfb5c
gtkspinner: don't setup the timeout twice ( #636129 )
2010-11-30 15:59:49 +01:00
Cosimo Cecchi
5f942b1232
app-chooser-button: remove leftover typedef
2010-11-30 15:04:50 +01:00
Cosimo Cecchi
50e967d17b
build: order new files alphabetically
2010-11-30 15:04:00 +01:00
Cosimo Cecchi
d8ef15c592
app-chooser: update docs
2010-11-30 15:03:33 +01:00
Cosimo Cecchi
51cb082022
app-chooser-online: rework of the online module
...
- the _get_default() method is now async
- the PackageKit module will return NULL in case PackageKit is not
available in the session bus
- the dummy module doesn't exist anymore
- the dialog won't display the online button in case there's no module
available
2010-11-29 18:10:06 +01:00
Cosimo Cecchi
134e74177e
app-chooser-button: tabs to spaces
2010-11-29 16:10:58 +01:00
Cosimo Cecchi
232a5c7b3b
app-chooser-button: change the API approach for custom items
...
Introduce a 'custom-item-activated' on the widget, which behaves
similairly to GtkEntryCompletion::action-activated, i.e. is emitted when
a custom item is chosen from the dropdown list.
Clients can use the name provided when adding the item as a detail for
the signal, to get notified when that specific item is activated, or use
the signal without details to get notifications for all custom items.
2010-11-29 16:04:59 +01:00
Cosimo Cecchi
8ae7993397
app-chooser-button: include gtk-docs for show-dialog-item
2010-11-29 12:25:52 +01:00
Cosimo Cecchi
06f501fa07
app-chooser-button: rename GtkAppChooserComboBox -> GtkAppChooserButton
2010-11-29 12:19:18 +01:00
Tristan Van Berkom
b39521dcf7
Make GtkTreeView tell the column about expand space instead of just assigning column->width.
...
Also modified the api to open up the way for treeview to tell the column
about how much of its size is really used to render the area.
2010-11-29 18:04:47 +09:00
Tristan Van Berkom
5729d2552b
Fix GtkCellAreaBox to not paint a focus rectangle while a cell is currently being edited.
2010-11-29 16:49:34 +09:00
Tristan Van Berkom
626f27f7ed
Changed cell area/renderer "can_focus" semantics to "is_activatable" across the board.
...
This is because focus in treeviews can be given to cells that cannot do anything
with activation (for better keynav), so we dissociate the concept of cell
activation and focusing.
2010-11-29 16:29:09 +09:00
Tristan Van Berkom
dbe026ed1e
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.
2010-11-29 16:20:01 +09:00
Tristan Van Berkom
5f427ff476
Make focus rectangle painted on all cells if the GtkCellAreaBox is requested to paint focus and none of the cells are activatable.
2010-11-29 16:14:46 +09:00
Tristan Van Berkom
87892261e0
Make editable widget fill the entire inner area of the edited cell
...
instead of just the aligned focus area to match previous behaviour
2010-11-29 16:03:53 +09:00
Tristan Van Berkom
865eb60d21
Fixed GtkCellLayout to pack cells via the api when parsing builder input.
2010-11-29 13:03:54 +09:00
Tristan Van Berkom
cad41833a2
Allow minimal implementation of GtkCellLayout
...
Since GtkCellArea delegate does all the work, cell layout widgets
who use a GtkCellArea internally only have to implement the _get_area()
method, this just reduces code to forward the calls over the the internal
cell area.
2010-11-29 13:03:41 +09:00
Tristan Van Berkom
d3aed12b65
Removed cell_layout implementation details in GtkTreeViewColumn in favor of cell_layout->get_area
2010-11-29 13:01:49 +09:00
Tristan Van Berkom
2394f5e49b
Touching up GtkCellArea docs.
2010-11-29 11:02:29 +09:00
Tristan Van Berkom
9ee9081405
Added initial detailed docs for GtkCellArea.
2010-11-29 10:55:50 +09:00
Tristan Van Berkom
c1cbc8790e
Removed gtk_cell_area_context_sum_preferred_width/height apis.
...
Turns out theres not much reason to do this in a separate api,
now we just sum up the sizes of aligned cell groups in GtkCellAreaContextBox
when pushing the group size.
2010-11-29 10:55:50 +09:00
Kristian Rietveld
217f688376
Remove obsolete code line
2010-11-28 21:14:33 +01:00
Kristian Rietveld
cbbff6c5e6
Add temporary hack to get the row heights right
2010-11-28 21:02:36 +01:00
Kristian Rietveld
6568b59e8a
Remove unused retrieval of focus-line-width
2010-11-28 20:40:59 +01:00
Kristian Rietveld
7527350d69
validate_row no longer uses focus-line-width
2010-11-28 20:39:51 +01:00
Kristian Rietveld
6fe9df2f1d
First go at migrating GtkTreeView(Column) to GtkCellArea
...
This is still very much a work in progress, but it renders and more or
less works. I will be fixing up the details in the very near future.
Important: this commit breaks ABI as it modifies the GtkTreeViewColumn
structure in gtktreeviewcolumn.h. This is a sealed structure that needs
to be moved to an internal header file, most likely gtktreeprivate.h.
2010-11-28 19:54:24 +01:00
Kristian Rietveld
05b217ab2a
Allow non-editable cells to receive focus
...
Slight tweak for GtkTreeView, also non-editable cells must be able to receive
focus to get all keyboard navigation right. This will be further tweaked
to get focus siblings to work like focus cells did in GtkTreeView before
refactoring.
2010-11-28 19:54:24 +01:00
Kristian Rietveld
354b3412dd
Available extra space could be less than zero
...
The allocated size, or (horizontally speaking) for-width size, can be
smaller than the sum of all minimum widths. For example when the user
is resizing tree view columns manually.
2010-11-28 19:54:18 +01:00
Tristan Van Berkom
5df7dab3cf
Changed all the flush apis on GtkCellAreaContext for a single "reset" api.
2010-11-27 16:05:14 +09:00
Tristan Van Berkom
cbc4416c8e
Removing the height_for_width vfuncs on GtkCellAreaContextClass which I forgot to remove.
2010-11-27 15:40:45 +09:00
Tristan Van Berkom
e21c224f28
Fixing GtkCellAreaBox at render time to consider height-for-width when stacked vertically
...
Also bullet-proofing GtkCellAreaBoxContext at allocate time.
2010-11-26 23:44:22 +09:00
Tristan Van Berkom
08cc318946
Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.
2010-11-26 21:38:29 +09:00
Tristan Van Berkom
487223d480
Finally really support rendering of cells in an unallocated context.
...
What this means is basically that a vertically oriented GtkCellAreaBox
will render cells properly even if the height is not constant for every
for of data in the said GtkCellAreaContext (i.e. the height was not allocated
by gtk_cell_area_context_allocate).
This is done completely on the fly and so is much more heavy duty
at render time (considerably slower but not visibly noticable in
lightweight views like GtkTreeMenu). Note that cell alignments
are not possible in an unallocated orientation, each row of data
individually receives only enough space to render the independant
row and no space is reserved for alignments if the size is not
a constant size across rows in the same context.
2010-11-26 21:38:10 +09:00
Tristan Van Berkom
fa3c8f182e
Revert "Removed tons of api that we dont absolutely need in GtkCellAreaContext:"
...
This reverts commit 5f7787ab2e .
2010-11-26 21:37:51 +09:00
Cosimo Cecchi
ef9543e978
tests: fix indentation
2010-11-25 17:32:13 +01:00
Cosimo Cecchi
67e842be87
app-chooser-combobox: add a method to trigger the GtkAppChooserDialog
...
It's an optional special item in the combobox, turned off by default.
2010-11-25 17:30:01 +01:00
Tristan Van Berkom
7fc7bd613b
Changed GtkCellRendererText to request less than wrap-width if the text is smaller than the wrap-width (or width-chars).
2010-11-25 22:46:55 +09:00
Tristan Van Berkom
2dd2c7ce05
Added gtk_cell_renderer_get_aligned_area() and class vfunc.
...
Since a cell renderer might use more space than the natural
size when recieving expand space it's impossible to know how
much space is actually used to render content.
Adding this virtual method to allow text renderers to implement
it, the base default method uses height-for-width apis and aligns
the cell assuming the renderer uses a fixed size.
This commit removes the similar code from gtkcellarea and
subclasses.
2010-11-25 17:41:26 +09:00
Tristan Van Berkom
5f7787ab2e
Removed tons of api that we dont absolutely need in GtkCellAreaContext:
...
- gtk_cell_area_context_get_height_for_width()
- gtk_cell_area_context_get_width_for_height()
- gtk_cell_area_context_push_height_for_width()
- gtk_cell_area_context_push_width_for_height()
- gtk_cell_area_context_flush_height_for_width()
- gtk_cell_area_context_flush_width_for_height()
- Contextual size changed signal
All of these are not really important for the CellArea to operate
and not of any real consequential value to the user (the user can
accumulate the returned values from height-for-width requests
and do as they please with it).
2010-11-25 16:36:46 +09:00
Tristan Van Berkom
9d0c2f6b37
Make GtkCellAreaBox handle rendering without a previous allocation in the orientation of choice.
...
This is so that treeviews can have some columns oriented vertically and
some horizontally, usually the column will only allocate the areas
width, having vertical columns without fixed row heights just means
it's slower to render.
2010-11-25 16:09:51 +09:00
Tristan Van Berkom
57a94bfb53
Merge branch 'master' into treeview-refactor
2010-11-25 15:07:47 +09:00
Matthias Clasen
a498d9a9ba
Coding style fixups
...
This commit adjusts the app chooser code to GTK+ coding style:
- line up prototypes
- remove some excess {}
- remove tabs and trailing whitespace
- add docs
2010-11-24 18:32:05 -05:00
Matthias Clasen
f64448473e
Coding style fixes
2010-11-24 16:50:00 -05:00
Matthias Clasen
964b684455
Improve packing in testappchooser
2010-11-24 16:47:15 -05:00
Matthias Clasen
47308db2ba
Fix reference counting for icons
2010-11-24 16:09:55 -05:00
Cosimo Cecchi
183d75b812
app-chooser-combobox: make refresh properly work with custom items
...
The refresh implementation leaves the custom items in place, and just
refreshes the recommended applications.
2010-11-24 19:08:17 +01:00
Cosimo Cecchi
2a95707b4c
app-chooser-combobox: add an initial implementation
...
GtkAppChooserCombobox is an implementation of GtkAppChooser inside a
combobox that shows recommended applications for a given content type.
2010-11-24 18:45:42 +01:00
Cosimo Cecchi
627f9b70a7
app-chooser-dialog: add a 'Forget Association' context menu item
2010-11-24 17:12:08 +01:00
Cosimo Cecchi
6b900cf276
app-chooser-widget: add a 'populate-popup' signal for context menus
...
This way applications can append items to the menu, which will
automatically show when there's more than one item in it.
2010-11-24 17:12:04 +01:00
Cosimo Cecchi
783b36398e
tests: remove radio mode from the test
2010-11-24 15:50:08 +01:00
Cosimo Cecchi
067b4ccb33
Revert "open-with-dialog: remove automatic setting of support-for-type"
...
This reverts commit 4cfe121296 .
Conflicts:
gtk/gtkappchooserdialog.c
2010-11-24 15:49:47 +01:00
Cosimo Cecchi
abf3b4af07
open-with-widget: make sure to escape the string we use for markup
2010-11-23 18:15:28 +01:00
Cosimo Cecchi
d0c35d63e0
Revert "open-with-widget: don't check if the app supports URIs/files"
...
This reverts commit b432242078 .
2010-11-23 18:10:01 +01:00
Cosimo Cecchi
05bb715c51
app-chooser: rename GtkOpenWith to GtkAppChooser
2010-11-23 17:50:15 +01:00
Cosimo Cecchi
6f0a605891
open-with-dialog: don't show the 'Show More...' button in all mode
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
b432242078
open-with-widget: don't check if the app supports URIs/files
...
Because some apps are broken wrt. this property.
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
e861180a03
open-with-widget: add a show-default property
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
0833894c38
open-with-widget: remove context menu
...
The widget should not modify itself the application list in any way.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
cb934ad868
open-with-widget: remove radio mode
...
It's not useful for now.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
9d550fe42a
open-with-pk: don't show an error if no apps are found
...
gnome-packagekit already shows a message dialog for us.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
04eb875e86
open-with-diaolog: set the default text according to the dialog mode
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
1be137ae9f
open-with-widget: let the default fallback text be customizable
...
We'll set it from the dialog.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
44ef183fa1
tests: update to the new API
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
2cb1b7e891
open-with: move the "Show more applications" button in the dialog
...
It doesn't really belong in the widget now that we have the new states.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
4cfe121296
open-with-dialog: remove automatic setting of support-for-type
...
We don't want to hardcode any kind of policy in these widgets/dialogs from
now on.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
3b6941f087
open-with: add a public _refresh() method
...
This can be useful now that we're splitting some items from the widget.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
f12ff4b676
open-with-widget: move to a property-based state
...
We can enable on-demand one of the three sections (recommended,
fallback, other apps) or use the special ALL property to display everything
uncategorized.
These properties are also easily bindable from outside.
2010-11-23 16:53:17 +01:00
Cosimo Cecchi
09b8d37b8a
open-with-dialog: use misc_set_alignment instead of widget_set_halign
2010-11-23 16:51:41 +01:00
Cosimo Cecchi
e7194c31a7
open-with-pk: don't set error if the user cancelled the installation
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
9df2c0910d
open-with-dialog: integrate the online capability
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
d4e1dd9734
open-with: add a PackageKit module for online lookup of applications
...
It's implemented with a GIOExtensionPoint, which has two
implementations:
- a dummy one, which just errors out
- a PackageKit one, which looks up for the specified content type using
the PK DBus API and GDBus.
The PK module is optional, and can be compiled out at configure time.
TODO: a Win32 implementation of the module.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
86a8f99806
open-with-widget: don't forget to set the search column
...
Otherwise find-as-you-type won't work at all.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
4becd25bf5
open-with-widget: don't sort by name recommended apps
2010-11-23 16:51:40 +01:00
William Jon McCann
9bbbfe3aa8
Using italics here actually introduces more visual clutter than anything
2010-11-23 16:51:40 +01:00
William Jon McCann
370ecf0ee8
Use Related instead of the somewhat jargonny fallback
2010-11-23 16:51:40 +01:00
William Jon McCann
3c7e6cd49c
Use other instead of more
...
More doesn't make sense when there are no apps in the list and
they aren't just more apps they are apps in another category.
2010-11-23 16:51:40 +01:00
William Jon McCann
8ea4faf0d3
The colon is a bit unneccessary and looks a bit ugly
2010-11-23 16:51:40 +01:00
William Jon McCann
1226070b93
Improve wording of no apps text
2010-11-23 16:51:40 +01:00
William Jon McCann
076e851c5f
Add some window border to test open with
2010-11-23 16:51:40 +01:00
William Jon McCann
04452df476
Add a default file to open with test
2010-11-23 16:51:40 +01:00
William Jon McCann
d09550b2d2
Simplify title and heading
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
8b16f73f88
open-with-widget: don't set border in the widget box
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
9a1cd83933
open-with-widget: add support for fallback applications
...
Needs some new API in GIO, which is not yet merged.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
a443eb8602
open-with-dialog: remove old declarations
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
1bb2a1b9ec
open-with: remove obsolete code
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9150f6b13a
open-with-widget: simplify code a bit
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a6a56d4194
open-with-widget: add a "Show more applications" button
...
So that we don't always show them all unconditionally in HEADINGS mode.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
7d8e7e5f1d
open-with-widget: make the list more pretty
...
Use bigger icons, with bold names and italic descriptions next to them.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9ffe52c049
open-with-dialog: don't ever show_all()
...
As there might be some elements in the widget that we don't want to
always show.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
254cc6aca6
open-with-widget: add a context menu for recommended entries
...
We can put "Forget association" there, which removes the application
from the recommended list.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
f8a6ac5429
tests: update to new API
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
2f5073fbb3
open-with-dialog: remove the mode from the dialog, we won't use it anymore
...
According to the new design, the dialog should automatically do the
right thing wrt. app association and default handling.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
cf25ec8fa7
open-with: first attempt to split the dialog into a widget + interface
...
Like GtkFileChooser does; GtkOpenWith is a generic interface, which is
now implemented by both GtkOpenWithDialog and GtkOpenWithWidget (and in
the future also by GtkOpenWithComboBox).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9d6055d0c8
tests: use new open with mode in the tests
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a4283d7bab
open-with: turn the show_all_applications boolean into an enum
...
We have three modes of showing applications now:
- RECOMMENDED mode: shows only the recommended applications
- ALL mode: shows all applications, uncategorized
- HEADINGS: shows headings for recommended and other applications
(default).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
77b5fcfa93
open-with: add docs and integrate with the build GTK+ conventions
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
8c8f7f83ba
open-with: add gtk_open_with_dialog_get_mode()
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
df8ccfb800
open-with: change the API to make it symmetric for GFile or content-type
...
It's much more convenient this way.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
3a6b936573
tests: rewrite the GtkOpenWithDialog test to make it more interactive
...
Now you can play with all the options provided by GtkOpenWithDialog API.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
accb766db2
open-with: add misc utility API to the dialog
...
- _set/get_show_other_applications() is a way to only display
recommended applications in the dialog
- _set/get_show_set_as_default_button() is a way to control the
"Remember this application" checkbox
We also get rid of he "application-selected" signal, in favour of a
_get_selected_application() API inspired by GtkFileChooser.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
a8cf63cc84
open-with: add xpadding to the treeview renderers
...
We use a GtkCellRenderer hack for this.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
ee9a7a3baf
open-with: cope with NULL GAppInfo
...
It's not that the GAppInfo can actually be NULL, but we use the store to
save headings too, which have no GAppInfo in their rows.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
1d67b4ac26
open-with: don't override the class signal handler, as it's RUN_LAST
...
And explain why in a comment; basically we want our handler to always
run before client code.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
c8ea415873
open-with: don't use gtk_misc_* functions
...
They're so passe'!
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
3d044a7c3e
open-with: add a "show-other-applications" property
...
This is useful for use-cases where showing a list of all the installed
applications can be confusing. We can control that with a property now.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
be18ca45f0
open-with: initial implementation of GtkOpenWithDialog
2010-11-23 16:51:38 +01:00
Tristan Van Berkom
e53dc3479f
Added GtkCellAreaClass->apply_attributes()
...
Made gtk_cell_area_apply_attributes use a vfunc & signal so that
subclasses might do specialized things picking up attributes from the
model possibly for embedding widgets, and as specially for GtkTreeMenu
to connect to the signal and synchronize the menu sensitivity states
in a more convenient way than going through the GtkCellLayoutDataFunc.
2010-11-23 23:37:58 +09:00
Tristan Van Berkom
d56babefb4
Removed cell margin apis and now deal with "focus-line-width".
2010-11-23 16:26:46 +09:00
Tristan Van Berkom
7105d02a13
Merge branch 'master' into treeview-refactor
2010-11-16 16:21:04 +09:00
Javier Jardón
446c0fd1ad
gtkmain: Remove deprecated gtk_init_add() function
...
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 16:20:49 +09:00
Javier Jardón
d5eee0d1bd
Deprecate GtkCallbackMarshal and GtkFunction
...
As they're only used by already deprecated API
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 16:20:49 +09:00
Javier Jardón
a512143bab
GtkArg is deprecated since 2.2
2010-11-16 16:20:49 +09:00
Javier Jardón
a5ab0a4c84
docs: Add cross-reference in GtkAlign docs
2010-11-16 16:20:49 +09:00
Javier Jardón
8809e46a41
docs: Fix a typo in gtk_button_set_alignment() docs
2010-11-16 16:20:49 +09:00
Javier Jardón
70bb3776f0
docs: Remove template of unused functions
2010-11-16 16:20:49 +09:00
Javier Jardón
ccd740f1b6
docs: Move documentation to inline comments: event_structs
...
All the GDK documentation is now moved to inline comments
2010-11-16 16:20:49 +09:00
Javier Jardón
1cbba3fae2
docs: Move documentation to inline comments: x_interaction
2010-11-16 16:20:49 +09:00
Javier Jardón
7d12d2a649
docs: Move documentation to inline comments: drawing
2010-11-16 16:20:48 +09:00
Javier Jardón
dd2db852cc
docs: Move documentation to inline comments: gdkthreads
2010-11-16 16:20:48 +09:00
Javier Jardón
7524d5fcbe
docs: Move documentation to inline comments: gdkevents
2010-11-16 16:20:48 +09:00
Javier Jardón
4d6c033d16
docs: Move documentation to inline comments: properties
2010-11-16 16:20:48 +09:00
Javier Jardón
7090aa1e1b
docs: Move documentation to inline comments: gdkselection
2010-11-16 16:20:48 +09:00
Javier Jardón
4593df1ef5
docs: Move documentation to inline comments: gdkvisual
2010-11-16 16:20:48 +09:00
Javier Jardón
2adf427467
docs: Move documentation to inline comments: gdkpango
2010-11-16 16:20:48 +09:00
Javier Jardón
1b5f0d5968
docs: Move documentation to inline comments: gdkcursor
2010-11-16 16:20:48 +09:00
Bastien Nocera
e85c0f63fb
gdk: Add big fat warning about updating XSettings
...
There's a tool to see if we forgot to update the gdk_settings_map
array, or got the offsets wrong. Mention those above the XSettings
list.
2010-11-16 16:20:48 +09:00
Bastien Nocera
038fb4b7e9
gdk: Update gdk_settings_map for blink timeout to work
...
gdk_settings_map needs to be updated when gdk_settings_names is changed,
and it's easier to add the setting at the end, so we don't need to
recalculate everything.
Really fixing:
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-16 16:20:48 +09:00
John (J5) Palmieri
0d07cba436
[gi] add "out" annotations to gtk_tree_store_sort_column_id params
2010-11-16 16:20:48 +09:00
Petr Kovar
1e3f7ba162
Update Czech translation
2010-11-16 16:20:48 +09:00
Javier Jardón
4f92875bb1
docs: gdkrgba: Add "Since: 3.0" tags
2010-11-16 16:20:47 +09:00
Javier Jardón
40b7a916a8
docs: Remove GdkPixmap template
2010-11-16 16:20:47 +09:00
Javier Jardón
2909edb3e7
docs: Move documentation to inline comments: general
2010-11-16 16:20:47 +09:00
Javier Jardón
145fe4bdc0
docs: Move documentation to inline comments: gdkkeys
2010-11-16 16:20:47 +09:00
Javier Jardón
0b61aaacd1
docs: move documentation to inline comments: gdktesting
2010-11-16 16:20:47 +09:00
Javier Jardón
209afbbf17
docs: Move documentation to inline comments: gdkscreen
2010-11-16 16:20:47 +09:00
Javier Jardón
1a1c4be6c3
docs: Move documentation to inline comments: gdkdisplaymanager
2010-11-16 16:20:47 +09:00
Javier Jardón
236f15c3a9
docs: Move documentation to inline comments: gdkdisplay
2010-11-16 16:20:47 +09:00
Javier Jardón
bb218b08e9
docs: Move documentation to inline comments: gdkapplaunchcontext
2010-11-16 16:20:47 +09:00
Jordi Mas
3166767c36
Fixes wrong translation for Catalan
2010-11-16 16:20:47 +09:00
Bruce Cowan
bad8d0b8e6
Updated British English translation
2010-11-16 16:20:47 +09:00
Carlos Garcia Campos
a00cd60540
docs: Mention that tooltip_column text should be escaped in GtkIconView
2010-11-16 16:20:46 +09:00
Javier Jardón
333ff7dbfc
docs: Do not refer to deprecated GNOME2 porting guide
...
But to the related sections of Pango manual
2010-11-16 16:20:46 +09:00
Javier Jardón
abb98246ff
docs: Update URL of some documentation links
...
http://developer.gnome.org -> http://library.gnome.org
2010-11-16 16:20:46 +09:00
Gheyret T.Kenji
cb1ef69b12
Added UG translation
2010-11-16 16:20:46 +09:00
Gabor Kelemen
1dd7424f0c
Updated Hungarian translation
2010-11-16 16:20:46 +09:00
Tristan Van Berkom
b0919b2058
Added "cell-packing" property GtkBuildable parsing to GtkCellLayout
...
Added gtk_cell_layout_get_area() iface vfunc and use that to apply
packing cell properties to the child renderers when parsing from
GtkBuilder.
2010-11-16 15:11:18 +09:00
Tristan Van Berkom
4ceb25e011
More documentation in gtkcellarea.c
2010-11-15 11:23:55 +09:00
Tristan Van Berkom
92dc7f31d4
Cleaned up cell editing api in GtkCellArea
...
Now layouting widgets need only concern themselves with
the "add-editable" and "remove-editable" signals, also added
lots of gtk-doc comments.
2010-11-14 23:33:26 +09:00
Tristan Van Berkom
1bca6349fb
Mass rename GtkCellAreaIter --> GtkCellAreaContext
2010-11-13 16:23:01 +09:00
Khaled Hosny
bef9559089
Updated Arabic translation
2010-11-13 15:23:34 +09:00
Javier Jardón
df5286f11e
examples/gtkdial: Do not use size_request vfunc
2010-11-13 15:23:34 +09:00
Matthias Clasen
c68a4ad4f6
Fix a crash in gnome-terminal when using a compositor
...
In this case, gnome-terminal sets an RGBA visual on its window,
and we need to be careful when creating the icon pixmap, to create
the pixmap with the same depth as the visual, or we risk a BadMatch
from XRenderCreatePicture deep inside cairo.
2010-11-13 15:23:34 +09:00
Bastien Nocera
7d11c16b17
gdk: Add XSetting for "gtk-cursor-blink-timeout"
...
Otherwise the blink timeout is the one used by default in GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-13 15:23:34 +09:00
Matthias Clasen
ed0aff4792
Remove no longer existing files
...
The gdk-pixbuf VC project files are gone, so don't reference
them from Makefile.am anymore.
2010-11-13 15:23:33 +09:00
Matthias Clasen
52adead88f
Really get rid of _gtk_cell_renderer_calc_offset
2010-11-13 15:23:33 +09:00
Owen W. Taylor
342d897b58
Pass the correct GDK library when working around Debian libtool
...
We need to link against gdk/libgdk-x11-3.0.la, not
gdk/x11/libgdk-x11.la, which is the convenience library containing
the backend functions.
2010-11-13 15:23:33 +09:00
Chao-Hsiung Liao
88c1543845
Updated Traditional Chinese translation (Hong Kong and Taiwan)
2010-11-13 15:23:33 +09:00
Murray Cumming
131da8507b
gtk_dialog_get_content_area(): Fix the docs.
...
This returns a GtkBox now, not a GtkVBox.
Language bindings may need to adjust their APIs accordingly.
2010-11-13 15:23:32 +09:00
Murray Cumming
233afbdab1
gtkdialog.c: Remove trailing whitespace
2010-11-13 15:23:32 +09:00
Marek Kasik
0fe9e481dd
Print files to Documents directory by default
...
Set default directory to G_USER_DIRECTORY_DOCUMENTS
when printing to file backend and fallback to the current
directory when it is not available (#633896 ).
2010-11-13 15:23:32 +09:00
Chun-wei Fan
9d52a9d920
gtk.vcprojin: include .rc file
2010-11-13 15:23:32 +09:00
Chun-wei Fan
cf34b804a4
gtk+.sln: Remove GDK-Pixbuf compilation stuff
...
GDK-Pixbuf is in a package of its own, so remove the project files from here
2010-11-13 15:23:32 +09:00
Chun-wei Fan
2d84d1cb38
gtk+.vsprops: Update for GTK-3.0
...
-removed headers that ceased to exist
-bump API version
-made up for new headers that is to be installed
-gtk-demo program and related sources/data copied to bin/gtk3-demo
2010-11-13 15:23:32 +09:00
Chun-wei Fan
14a40180cd
gtklabel.c: Added hack for rint()
2010-11-13 15:23:31 +09:00
Chun-wei Fan
25c2f4b780
gtkwocket-win32.c Added missing include to avoid C4013
2010-11-13 15:23:31 +09:00
Chun-wei Fan
2e0278c752
gtk: fix C99-style variable declarations in various sources
2010-11-13 15:23:31 +09:00
John (J5) Palmieri
4e47110120
[introspection] mark invokers for gtkeditable vfuncs
2010-11-13 15:23:31 +09:00
John (J5) Palmieri
b17a25142f
[introspection] add transfer none annotation to gdk_keyval_name return
...
* moved docs from .sgml file to th e.c file so we can add the annotation
2010-11-13 15:23:31 +09:00
Matthias Clasen
fdde029f06
bump version
2010-11-13 15:23:31 +09:00
Matthias Clasen
3e9d7a30b0
fix up accidental exports
2010-11-13 15:23:30 +09:00
Matthias Clasen
b2ed95dd11
Another attempt at scrolledwindow size allocation
...
Patches taken from bug 633278.
2010-11-13 15:23:30 +09:00
Colin Walters
2facb830fa
introspection: Explicitly include libgdk-x11.la when scanning gtk
...
Debian changed the behavior of libtool to not follow dependencies
from .la files. Fortunately, the scanner explicitly looks at the
.la files to see if they're really shared; if not it doesn't add
them to the .gir, so there's no cost.
https://bugzilla.gnome.org/show_bug.cgi?id=633405
2010-11-13 15:23:30 +09:00
Matthias Clasen
79042e31a6
Rewrap text in gtk-demo
2010-11-13 15:23:30 +09:00
Matthias Clasen
70e161d2a2
Fix the doc build
2010-11-13 15:23:30 +09:00
Matthias Clasen
0a015f1bdb
Don't export _gtk_cell_renderer_calc_offset
...
This is just a private convenience function, and exporting _-prefixed
functions doesn't work with our libtool setup. Just do the 3 line
calculation in gail.
2010-11-13 15:23:29 +09:00
Tristan Van Berkom
e7c4ede64c
Fixed some background area related bugs in CellAreaScaffold, cleanup testcellarea
2010-11-13 15:09:36 +09:00
Tristan Van Berkom
eda16a096d
Fixed some errors in testcellarea testcases.
2010-11-12 23:09:57 +09:00
Tristan Van Berkom
51b75ef44b
Added tests to reflect proper treatment of background area.
...
CellAreaScaffold now also reflects how cell_area should be
passed to gtk_cell_area_activate() and gtk_cell_area_event()
and how the background area for gtk_cell_area_renderer() should
be created.
2010-11-12 21:55:28 +09:00
Tristan Van Berkom
47d55c4a4b
Added orientation control to testcellarea's focus/editing test
2010-11-12 19:44:45 +09:00
Tristan Van Berkom
38666b406f
Ironed out the kinks in editing apis for GtkCellArea
...
- Added gtk_cell_area_aligned_cell_area() to get the aligned
internal area use by a cell (for focus painting and for
event areas).
- Provide the event area in "editing-started" signal
- Fire "remove-editable" when editing is canceled by the user,
an implementing layouting widget need only catch "editing-started"
and "remove-editable" now.
- CellAreaScaffold/testcellarea now edit textrenderers.
2010-11-12 19:25:07 +09:00
Tristan Van Berkom
7e821aa980
Distribute portions of GtkCellArea:render() background_area argument to cells
...
Also added gtk_cell_area_get/set_style_detail() to set the string to be
used by the area in gtk_paint_* functions.
2010-11-12 14:06:00 +09:00
Tristan Van Berkom
33db66e728
Added event handling to GtkCellAreaBox
...
Now GtkCellAreaBox handles the click event to activate renderers
and checks if the area is in a sibling of a focus renderer, possibly
activating the proper focus sibling renderer.
Also GtkCellArea gains a "focus-changed" signal to allow it to
change the currently focused row according to the button events.
2010-11-11 18:13:54 +09:00
Tristan Van Berkom
f330b40521
GtkCellArea now paints focus on cells
...
Added concept of "Focus Siblings" to GtkCellArea so that some
static text/icon may be included in the focus/click area of
an activatable or editable cell, implemented focus drawing
as well, updated testcellarea to reflect the changes.
2010-11-11 16:13:06 +09:00
Tristan Van Berkom
524110f902
Focus driving in GtkCellArea now works.
...
- Fixed focus driving in GtkCellArea with refined apis
- Added gtk_cell_area_activate() to be called when the area has focus
(to activate or start editing the focused cell)
- Added support for this in cellareascaffold
- testcellarea now watches the "toggled" signal for a toggle renderer
and updates the model state accordingly, this currently works with
keyboard navigation, however focus is still not painted on cells.
2010-11-10 22:25:13 +09:00
Tristan Van Berkom
4643d90c5f
Committing new (and simplified) focus handling approach for GtkCellArea.
...
Also adding missing file cellareascaffold.h
2010-11-10 19:17:06 +09:00
Matthias Clasen
c51bfe8757
Bump glib req. to 2.27.3
2010-11-09 16:18:16 +09:00
Chun-wei Fan
fb1a9d8c0d
gdk.vcprojin: Include .rc file and fixed linker settings
...
-Added the missed gdk.rc file
-Made up for missed libraries required for link for configs other than Debug|win32
2010-11-09 16:18:16 +09:00
Chun-wei Fan
2fd00b9af3
gtk-demo.vcproj: set linker settings to be consistent
...
-Made up for the additional dependencies for setups other than Debug|Win32 (the correct setting)
-Made Subsystem="1" for all setups like Debug|Win32 (the correct setting)
2010-11-09 16:18:16 +09:00
Chun-wei Fan
5c52344551
gtk+.vsprops: Removed GdkPixbuf stuff and made up for missed headers
...
-Removed the GdkPixbuf stuff as it is now in a package of its own and added
it as a dependent library here
-Made up for the headers missed in the installation stage for GTK+/GDK
2010-11-09 16:18:16 +09:00
Matthias Clasen
67112dae94
NEWS for 2.91.4
2010-11-09 16:18:15 +09:00
Matthias Clasen
f991f88d3f
Fix entry completion window sizing
...
I don't think we are at the end of scrolledwindow tweaks yet,
but this will make things work for now, as they used to.
https://bugzilla.gnome.org/show_bug.cgi?id=633670
2010-11-09 16:18:15 +09:00
Ryan Lortie
3f2281f8c6
pixbuf engine: remove only use of GCache in Gtk
...
We'll be deprecating GCache in GLib soon.
2010-11-09 16:18:15 +09:00
Patrick Bernaud
8eb7181979
docs: Move documentation to inline comments: GtkPaned
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634338
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Patrick Bernaud
a00a0fb209
docs: Move documentation to inline comments: GtkProgressBar
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634339
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Patrick Bernaud
312fd9efc0
docs: Move documentation to inline comments: GtkPageSetup
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634340
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Tristan Van Berkom
f85938a211
Changed testcellarea
...
Changed testcellarea to watch the iter for size changes and queue resizes
instead of explicitly queueing resizes when controls change.
2010-11-09 14:09:47 +09:00
Tristan Van Berkom
e03b280757
Adding expand/align controls to testcellarea.
2010-11-09 13:50:53 +09:00
Tristan Van Berkom
c932beef4b
Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
2010-11-09 13:50:30 +09:00
Tristan Van Berkom
2a3ae8da3a
Added orientation control on testcellarea test
...
shows vertical orientation of cells lined up horizontally instead
of horizontal orientation of cells stacked up vertically.
2010-11-09 13:23:12 +09:00
Tristan Van Berkom
368cded84d
Fixed a bug in GtkCellAreaBoxIter when allocating vertically.
2010-11-09 13:22:44 +09:00
Tristan Van Berkom
85d6aa1627
Added test and scaffolding widget for GtkCellArea.
2010-11-09 01:26:38 +09:00
Tristan Van Berkom
e5e507e1d4
Added GtkCellArea classes to gtk.h and fixed a remainig rendering bug.
2010-11-09 01:25:45 +09:00
Tristan Van Berkom
92b9f432dd
Fixed initial bugs in GtkCellArea implementation, starting to render
...
Tested all of this with some scaffolding code, test case comming soon.
2010-11-08 17:43:27 +09:00
Tristan Van Berkom
0336838366
Implemented focus handling in GtkCellAreaBox
...
Now when the GtkCellAreaBox receives key events it cycles
the currently focused cell to the next focusable cell in the box
while observing the navigation direction, it then emits "focus-leave"
when hitting the boundries of the area.
2010-11-08 11:31:03 +09:00
Tristan Van Berkom
09e3d9d3aa
Added gtk_cell_area_stop_editing to allow explicit stopping of cell editing.
2010-11-08 11:31:03 +09:00
Tristan Van Berkom
cbe1154e51
Added gtk_cell_area_activate_cell() and some cell editing management
...
Now:
- The current edit cell and editable widget in use can be fetched
with properties and accessors
- gtk_cell_area_activate_cell() handles bookkeeping of the currently
edited cell, starting the editing of a cell, activating a cell etc
- Exported signals are available on GtkCellArea: "editing-started",
"editing-canceled", "editing-done", "remove-editable".
- Upon receiving GDK_KEY_Escape current editing gets canceled.
2010-11-08 11:31:03 +09:00
Hans Breuer
017f637a76
Bug 609622 - disappearing statusicon
...
Windows 7 is managing status icon visibility across process lifetime,
which did not work with GTK+ create icons. Apparently the mechanism
does not require use of new API (like suggested by MSDN), but it is
enough to give a "unique" tooltip at creation time.
Formerly this initial tooltip was not set at all, later setting via
gtk_status_icon_set_tooltip_text() is not enough, but luckily
different follow-up tooltips don't disturb the intended behavior.
(cherry picked from commit ae0544c636 )
(cherry picked from commit 8a9d458baf )
2010-11-08 11:31:03 +09:00
Hans Breuer
0b749700e6
Update msvc build
2010-11-08 11:31:03 +09:00
Matthias Clasen
e5c0d40d94
Make GtkFileChooserButton behave as expected when expanding
2010-11-08 11:31:03 +09:00
Ivar Smolin
c4a54055fe
[l10n] Updated Estonian translation
2010-11-08 11:31:02 +09:00
Garrett Regier
c65a617bd7
docs: Move documentation to inline comments: GtkCellView
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Garrett Regier
24c3b956f3
docs: Move documentation to inline comments: GtkCellRendererText
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Javier Jardón
322db81256
docs: Move documentation to inline comments: GtkCellRenderer
2010-11-08 11:31:02 +09:00
Javier Jardón
b1112cb87c
docs: Move documentation to inline comments: GtkSettings
2010-11-08 11:31:02 +09:00
Garrett Regier
bf17f3f32c
docs: Move documentation to inline comments: GtkColorSelection
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Garrett Regier
46627d008f
docs: Move documentation to inline comments: GtkLayout
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Kizito Birabwa
e1e90c6f9c
Added Luganda translation
2010-11-08 11:31:02 +09:00
Tor Lillqvist
a446664c25
Add _gtk_cell_renderer_calc_offset
2010-11-08 11:31:02 +09:00
Tor Lillqvist
bd8464834c
Fix build breakage and avoid a warning
2010-11-08 11:31:02 +09:00
Tor Lillqvist
7754bf1a63
Avoid a compiler warning
2010-11-08 11:31:02 +09:00
Tor Lillqvist
c418de1672
Drop unused static function
2010-11-08 11:31:02 +09:00
Javier Jardón
a31142a8fa
docs: move documentation to inline comments: GtkColorButton
2010-11-08 11:31:01 +09:00
Javier Jardón
65834294a5
docs: move documentation to inline comments: GtkTreeView
2010-11-08 11:31:01 +09:00
Javier Jardón
0331e1fab7
docs: Move documentation to inline comments: GtkTextView
2010-11-08 11:31:01 +09:00
Matthias Clasen
3b541bcfd4
GtkApplication: rewrite example application
...
The intended way of using GtkApplication is mainly by subclassing,
so make the example do that.
2010-11-08 11:31:01 +09:00
Matthias Clasen
9157e15653
GtkApplication: drop Quit from the docs
...
GtkApplication does not currently implement any default actions.
2010-11-08 11:31:01 +09:00
Javier Jardón
a62b185e29
docs: move documentation to inline comments: GtkEntry
2010-11-08 11:31:01 +09:00
Javier Jardón
dfeff671c4
docs: Fix generation of GtkGrid documentation
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
99144330a0
tests: fix the build
...
gtk_box_new() changed API recently.
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
1433ea24b5
icon-theme: always force icon sizes for emblems
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
c068e988a1
tests: add a test for pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
4239e49982
icon-theme: support pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
cb51ad606f
gtkwindow: properly set the window icon list ( #631331 )
...
This was probably a rendering-cleanup regression.
2010-11-08 11:31:01 +09:00
Tristan Van Berkom
631bdc438c
Made progress on focus handling.
...
- Added vfunc to get the allocation of a cell inside an area
- Superclass GtkCellArea handles activation of focused cells
by handling key events (as well as editing of editable cells)
- Added signal "editing-started" to GtkCellArea to signal that
editing has started (generally signaled from inside event handling)
- Added properties "focus-cell" and "edited-cell"
2010-11-05 22:19:50 +09:00
Tristan Van Berkom
1ad5fa3e7a
Committing half-way done focus work.
2010-11-05 22:19:50 +09:00
Murray Cumming
ce815afece
GtkWidget/GtkContainer: Slight fixes to geometry-management docs.
...
Replace it's with its in several places.
Replace some , with .
Replace some ; with .
Fix some plurals.
Other minor corrections.
2010-11-05 22:19:50 +09:00
Murray Cumming
b8bcbd1376
GtkWidget: Document the size-request signal deprecation.
...
Hopefully my text is correct.
2010-11-05 22:19:50 +09:00
Matthias Clasen
a83b0b68ce
Handle empty button boxes gracefully
...
https://bugzilla.gnome.org/show_bug.cgi?id=633915
2010-11-05 22:19:50 +09:00
Christian Dywan
7ca240916f
Only show Desktop in file chooser button if there is one
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=632894
2010-11-05 22:19:50 +09:00
Owen W. Taylor
d2b64a1db2
Switch to CSS interpretation of rgb() and rgba() colors
...
CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.
https://bugzilla.gnome.org/show_bug.cgi?id=633762
2010-11-05 22:19:50 +09:00
Ryan Lortie
4bdff81f2e
gtktoolitemgroup: don't use GTimeSpec
...
Use gint64 time instead.
2010-11-05 22:19:49 +09:00
Javier Jardón
65e045f5f4
Revert "Move the /*< private >*/ at the correct position"
...
All the object structures is opaque
This reverts commit c59ca4f6b9 .
2010-11-05 22:19:49 +09:00
Javier Jardón
dadf5c331a
docs: Improve cross-referencing on GtkGrid docs
2010-11-05 22:19:49 +09:00
Javier Jardón
7dd52d7b60
docs: Fix gtk-doc markup in GtkWidget docs
2010-11-05 22:19:49 +09:00
Takayuki KUSANO
77be5690fd
Updated Japanese translation
2010-11-05 22:19:49 +09:00
Murray Cumming
32b21694ef
Fix tiny documetnation typo.
2010-11-05 22:19:49 +09:00
Tristan Van Berkom
832c123fd2
Extended gtk_cell_area_apply_attributes() to account for expander/expanded cells
...
The state of expanded cells must come from the view, since these states
can vary across views accessing the same model (also "finished up" the
applying of attributes code).
2010-11-02 18:01:03 +09:00
Murray Cumming
73e45cef9d
GtkScrollable: Improve the documentation text.
2010-11-02 17:51:07 +09:00
Tristan Van Berkom
7ddf87f9ef
Account for the possibility of invisible cells in GtkCellAreaBox/Iter
...
Also changed the GtkCellAreaBox to keep groups in an array
instead of a list, for this code it's generally more useful
this way (and more optimized).
2010-11-02 16:51:06 +09:00
Tristan Van Berkom
e3b75cb053
Adding tentative implementation of GtkCellAreaBox->grab_focus().
2010-11-02 12:04:38 +09:00
Murray Cumming
0583288dd9
Removed a trailing enum comma.
2010-11-02 12:04:38 +09:00
Ignacio Casal Quinteiro
997835af83
Normalize boolean.
2010-11-02 12:04:38 +09:00
Ignacio Casal Quinteiro
bea2487d83
Do not use gbooleans to save some bits.
2010-11-02 12:04:38 +09:00
Matthias Clasen
afa282f009
Bump version
2010-11-02 12:04:38 +09:00
Paolo Borelli
5e90bb269d
Get rid of unused shaped_object list in _GtkTextLineDisplay
...
https://bugzilla.gnome.org/show_bug.cgi?id=631076
2010-11-02 12:04:37 +09:00
Matthias Clasen
053171c530
Update NEWS
2010-11-02 12:04:37 +09:00
Matthias Clasen
bb0ff159cb
GtkToolitemGroup: Use monotonic clock for animation timeout
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
ed62f93439
Add caseless unit tests for textiter.
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
794e0446e9
Add case insensitive to GtkTextIter. Fixes bug #61852 .
...
This code has been taken from GtkSourceView so also kudos to Paolo Maggi
and Paolo Borelli for helping with this patch.
2010-11-02 12:04:37 +09:00
Paolo Borelli
3511215730
Fix backward search bug exposed by the unit test
...
When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
a2360f979a
Add unit tests for textiter.
2010-11-02 12:04:37 +09:00
Matthias Clasen
ac3258b07d
Avoid exporting an extra symbol
2010-11-02 12:04:37 +09:00
Matthias Clasen
31b0c1ad35
Fix make check
2010-11-02 12:04:37 +09:00
Paolo Borelli
002704fe25
Move the /*< private >*/ at the correct position
2010-11-02 12:04:37 +09:00
Matthias Clasen
673e660edc
NEWS for 2.91.3
2010-11-02 12:04:37 +09:00
Ivar Smolin
cba8cd8c59
[l10n] Updated Estonian translation
2010-11-02 12:04:36 +09:00
Matthias Clasen
a8ade90b4f
Fix a typo
2010-11-02 12:04:36 +09:00
Matthias Clasen
0c8df06f73
Mention actions in the libunique migration guide
2010-11-02 12:04:36 +09:00
Matthias Clasen
71d6a289fc
Fix interaction between scrolling menus and automatic mnemonics
...
https://bugzilla.gnome.org/show_bug.cgi?id=612611
2010-11-02 12:04:36 +09:00
Michael Natterer
ca6398a649
gtk: remove all border_width handling from the button box
...
and let GtkContainer do the job; fixes doubled border widths. GtkBox
did already delegate border handling to Gtkcontainer, which interacted
badly with a subclass that didn't.
2010-11-02 12:04:36 +09:00
Michael Natterer
8dd7023b52
gtk: fix automatic width of spin buttons which have no width in chars set
2010-11-02 12:04:35 +09:00
Michael Natterer
8979855f60
tests: missed these two gtk_box_new() which sneaked in by rebasing...
2010-11-02 12:04:35 +09:00
Matthias Clasen
c70f3e26d2
GtkAssistant: Mention custom pages in the introduction
2010-11-02 12:04:35 +09:00
Michael Natterer
260ccdfebe
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-11-02 12:04:35 +09:00
Matthias Clasen
c50f790417
Add content size test for scrolled window
2010-11-02 12:04:35 +09:00
Bastien Nocera
76a0b9e5fa
GtkAssistant: Add custom page type
...
The custom page type will not show any buttons by default, and
it is left to the application to add its own buttons instead.
The _next_page() and _previous_page() functions can be used
for the back and forward buttons used by the application.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-11-02 12:04:34 +09:00
Bastien Nocera
ef2fe67832
GtkAssistant: Add more details about buttons shown
...
Add more documentation about which buttons will be shown for which
type of GtkAssistant page.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-11-02 12:04:34 +09:00
Matthias Clasen
75fd27e920
Improve GtkAssistant docs
2010-11-02 12:04:34 +09:00
Martin Nordholts
0feb08a4bb
Handle NULL intp in test_increment_intp()
...
Support passing NULL for &int to gtk_test_display_button_window() so
we can use that function also when we are not interested in counting
clicks.
2010-11-02 12:04:34 +09:00
Tristan Van Berkom
e94a177774
Added cell focus apis to GtkCellArea.
2010-11-01 16:01:25 +09:00
Tristan Van Berkom
54004237be
Added GtkCellRendererState flags to GtkCellArea->event/render() methods
2010-11-01 12:39:00 +09:00
Tristan Van Berkom
9c4eb3d431
Changed GtkCellArea margin-left/right... for cell-margin-left/right...
...
The rationale here is that every cell in an area needs to have space
reserved around it, requests have to be fully margin inclusive...
cells need to have the full size fed as the "background area" and
the "cell area" has margins removed... This will be used by GtkTreeViewColumn
to set the focus line width so that cells can paint a background on the
full background, then render themselves into the cell area... and parents
can go ahead and draw focus and other indicators on the background area
but outside of the cell area.
2010-10-31 22:50:53 +09:00
Tristan Van Berkom
163c3c8852
Added margins to the cell area
...
Added margin properties to the cell area, margins will be removed
from the area given to ->render() when creating the inner cell area.
2010-10-31 18:55:51 +09:00
Tristan Van Berkom
25b00759c5
Implemented cell packing properties on GtkCellAreaBox
2010-10-31 17:45:29 +09:00
Tristan Van Berkom
01d2eddf03
Added GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID to gtkcellarea.h
2010-10-31 17:45:06 +09:00
Tristan Van Berkom
d781c226da
Implemented "cell properties" on the GtkCellArea
...
Added cell "packing" properties for generic configuration
of child cells inside an area.
2010-10-31 17:13:15 +09:00
Tristan Van Berkom
6da74b6e1e
Finished up allocation of cells.
...
Added get_allocated_cells() which returns a practical list
of cells with allocation for render/event time, this abstracts
whether the cells are individually aligned or aligned into groups,
when there are groups of cells before an alignment, those groups
get allocated on the fly for render time.
2010-10-31 15:22:39 +09:00
Tristan Van Berkom
e494f102cf
Cleaned up GtkCellAreaIter implementation to use arrays to store grouped cell information.
2010-10-31 13:06:10 +09:00
Tristan Van Berkom
b12e7a8115
Adding GtkCellAreaIter arg to GtkCellArea->render/->event
2010-10-30 23:48:52 +09:00
Tristan Van Berkom
972e077966
Fixed hangs in TextView and ToolPalette
...
Fixed the hangs by adding a ->inside_allocation flag and avoiding to
queue resizes while inside the allocation loop. The extra queue'd resizes
were causing the scrolled window size_allocate() to perform the guess
again and again thus causing an infinite loop.
2010-10-30 23:37:24 +09:00
Tristan Van Berkom
a3b4681f9f
Fixing typo in scrolled window
...
Seems with GtkScrollable interface we were setting the hadjustment as
the vadjustment, thanks to Cosimo Cecchi who debugged this and finally
found the typo.
2010-10-30 23:37:24 +09:00
Tristan Van Berkom
ea6df20bbb
Added the majority of the allocate machinery to GtkCellAreaIter[Box].
2010-10-30 23:06:26 +09:00
Tristan Van Berkom
86fb6ab216
Fixed GtkCellAreaIter to notify invalidation of sizes on flush
...
Also fixed GtkCellAreaBox to track the iters it creates and flush
them when the overall layout configuration changes (add/remove/reorder/
spacing changed etc).
2010-10-30 21:40:22 +09:00
Javier Jardón
1dc7e3d885
Emphasize that GtkBox and GtkTable can be replaced by GtkGrid
2010-10-30 17:37:04 +09:00
Javier Jardón
c15ef6405c
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
ae1d1fd048
docs: remove template of deprecated gtkcombo widget
2010-10-30 17:37:03 +09:00
Matthias Clasen
1469c3fd69
Migration guide additions
...
Add some information about expand flags and the scrollable interface.
2010-10-30 17:37:03 +09:00
Christian Persch
71b8875d2b
Make gdk_rgba_to_string() take a const GdkRGBA
...
https://bugzilla.gnome.org/show_bug.cgi?id=633216
2010-10-30 17:37:03 +09:00
Matthias Clasen
0aa94bb946
Fix initial size allocation with child widgets
...
On some cases, it would take a resize of the window for children
to 'jump into place'.
https://bugzilla.gnome.org/show_bug.cgi?id=633500
2010-10-30 17:37:03 +09:00
Javier Jardón
6c301d4b0a
Use gtk_scrollbar_new() instead gtk_[v|h]scrollbar_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
234553c093
Use gtk_scale_new() instead gtk_[v|h]scale_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
d03d2943d2
Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()
2010-10-30 17:37:03 +09:00
Javier Jardón
cdf4b4bbd5
Use gtk_paned_new() instead gtk_[v|h]paned_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
524e704147
Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
2010-10-30 17:37:02 +09:00
Javier Jardón
821c3c6578
Use gtk_separator_new() instead gtk_[v|h]separator_new()
2010-10-30 17:37:02 +09:00
Javier Jardón
2615ebf37e
Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()
2010-10-30 17:37:02 +09:00
Michael Natterer
34627a6371
gtk: remove declarations of removed internal functions
2010-10-30 17:37:02 +09:00
Matthias Clasen
ef03dc3fc6
Don't set get_preferred_width_for_height to NULL
...
The size request machinery expects that it is non-NULL.
2010-10-30 17:37:02 +09:00
Matthias Clasen
70bef431b0
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-30 17:37:02 +09:00
Javier Jardón
d0974d4f02
Re-enable deprecation guards
2010-10-30 17:37:02 +09:00
Carles Ferrando
92431720dc
Updated Catalan (Valencian) translation
2010-10-30 17:37:02 +09:00
Carlos Garnacho
18797dfa9a
Use the client pointer for events with no device.
...
The core pointer is sort of meaningless in a multidevice environment,
the client pointer is used instead to fake a GdkDevice on events that
don't have one.
2010-10-30 17:37:02 +09:00
Owen W. Taylor
2d65bd08c3
Remove unused GdkDeviceManager variable
...
gdk_display_get_device_manager() was called but the device manager
not used.
2010-10-30 17:37:02 +09:00
Matthias Clasen
ac0b97aa23
ifdef X-specific stuff
...
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
2010-10-30 17:37:01 +09:00
Matthias Clasen
22d01c45cc
GtkButtonBox doesn't do height-for-width
...
GtkButtonBox doesn't do height-for-width, therefore we should
explicitly set these methods to NULL instead of hoping that the
inherited GtkBox implementations work ok.
2010-10-30 17:37:01 +09:00
John (J5) Palmieri
1448111a58
[introspection] annotate delete_text invoker to match do_delete_text v-method
2010-10-30 17:37:01 +09:00
Vincent Untz
e0d1652a99
Port tests to GtkScrollable API instead of deprecated GtkLayout API
...
https://bugzilla.gnome.org/show_bug.cgi?id=633374
2010-10-30 17:37:01 +09:00
Tristan Van Berkom
3b1c301a66
Made GtkCellAreaBox:align-cells a packing property per cell
...
Implemented all request apis on GtkCellAreaBox considering
alignment of groups of cells (some cells can be aligned while
others fill space smartly).
2010-10-30 17:35:22 +09:00
Ignacio Casal Quinteiro
211c39c500
Remove useless vars.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
89cc46374d
Fire a warning if there are any handlers connected to the deprecated "size-request" signal.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
731853a7ec
Added a runtime warning if any class is implementing the ->size_request() vfunc.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
b277ba4238
Make GtkPathBar use set_size_request() instead of the "size-request" signal.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
05ca7e14b0
Removed size_request from GtkToolItemGroup
...
Ofcourse GtkToolPalette needs real migration to height-for-width
apis, this patch just removes the need for the size_request
signal and vfunc.
2010-10-30 17:35:21 +09:00
Tristan Van Berkom
3265d46c9d
Use gtk_widget_set_size_request() instead of handling "size-request" signals.
2010-10-30 17:35:21 +09:00
Matthias Clasen
d02443d57c
Add a migration guide section on size_request
2010-10-30 17:35:21 +09:00
Matthias Clasen
9c128ed442
Fix the build
2010-10-30 17:35:21 +09:00
Matthias Clasen
eb60282b1b
Fix gtk_fixed_get_preferred_width
...
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
2010-10-30 17:35:21 +09:00
Bastien Nocera
2a37d949ba
gtk: Fix crasher when loading symbolic icons
...
If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.
Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
2010-10-30 17:35:20 +09:00
Owen W. Taylor
d8fdbd8b72
GtkSocket: Add error trap around call to XFixesChangeSaveSet()
...
Previously any X error from XFixesChangeSaveSet() was being eaten
by the subsequent error trap when sending a client message. With
asynchronous error traps, that side effect no longer occurs, so
we need to add a proper error trap around the call to
XFixesChangeSaveSet().
https://bugzilla.gnome.org/show_bug.cgi?id=633274
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
d86164f90d
Revert "Removed size_request from GtkTextView"
...
This reverts commit 87dfa724eb .
I pushed this to the wrong branch, ouch sorry.
2010-10-30 17:35:20 +09:00
Matthias Clasen
2d4f3e1365
Remove size_request from GtkSocket
...
This is only preliminary, GtkSocket can do minimal/natural width
properly, there's code for that in the extended-layout branch.
2010-10-30 17:35:20 +09:00
Matthias Clasen
965b3af8a1
Don't g_free gslice-allocated structures
...
This was causing memory corruption when removing remote plugs from
sockets.
2010-10-30 17:35:20 +09:00
Matthias Clasen
3cdf3bc46c
Remove size_request from GtkScale
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
e573a455bb
Removed size_request from GtkTearoffMenuItem
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
292f32dde8
Fixed remaining call to ->size_request in GtkTextView.
2010-10-30 17:35:20 +09:00
Matthias Clasen
ebcb6e6b94
Remove size_request from GtkSeparatorToolItem
2010-10-30 17:35:20 +09:00
Matthias Clasen
5e0451de3a
Use correct icon name in testtoolbar
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
0db2b334b0
Removed size_request from GtkTextView
2010-10-30 17:35:19 +09:00
Matthias Clasen
9f074f8612
Remove size_request from gtkToolItem
2010-10-30 17:35:19 +09:00
Tristan Van Berkom
0b3e2ffee6
Removing size_request from GtkToolPalette
...
Note GtkToolPalette is internally height-for-width, it needs to
be refactored to cooperate with GTK+'s height-for-width geometry
management properly.
2010-10-30 17:35:19 +09:00
Matthias Clasen
bf75f63f49
Remove size_request from GtkToolbar
...
This is just a bandaid fix, the toolbar should really return proper
min/natural sizes, so that we can handle the overflow properly.
2010-10-30 17:35:19 +09:00
Matthias Clasen
f3d5e20cff
Remove size_request from GtkTable
2010-10-30 17:35:19 +09:00
Tristan Van Berkom
cd2a7a899f
Removing size_request from GtkTreeview.
...
This should be implemented as propery height-for-width by
the treeview-refactor branch. This commit includes a FIXME
comment that scroll adjustments should not be updated from
inside size requests but only after receiving an allocation.
2010-10-30 17:35:19 +09:00
Matthias Clasen
113362b169
Remove size_request from GtkRuler
2010-10-30 17:35:19 +09:00
Matthias Clasen
7f8d92f02c
Remove size_request from GtkPathBar
2010-10-30 17:35:19 +09:00
Matthias Clasen
70c81d6651
Remove size_request from GtkSeparator
2010-10-30 17:35:19 +09:00
Matthias Clasen
4927c16486
Remove size_request from GtkRange
2010-10-30 17:35:19 +09:00
Matthias Clasen
53744b6daf
Fix a typo
2010-10-30 17:35:19 +09:00
Matthias Clasen
6b5debcaca
Remove size_request from GtkPaned
...
This is not the final word; GtkPaned should really implement
height-for-width, but I didn't have time to complete that now.
2010-10-30 17:35:18 +09:00
Ivar Smolin
c823f33516
[l10n] Updated Estonian translation
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
34e1cd373b
Removed size_request from GtkOffscreenWindow
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
af0c4bc656
Removed size_request from GtkNotebook
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
e9f541dc51
Removed size_request from GtkMenuBar
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
0f9c04769b
Removed size_request from GtkImageMenuItem
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
8565b86223
Removed size_request from GtkIconView.
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
399f353427
Remove size_request from GtkHandleBox
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
16512bd9d3
Fixed unused variable in get_preferred_height().
2010-10-30 17:35:18 +09:00
Matthias Clasen
f336754a8f
Remove size_request from GtkSpinButton
2010-10-30 17:35:18 +09:00
Matthias Clasen
eca2d782ce
Remove size_request from GtkProgressBar
2010-10-30 17:35:17 +09:00
Matthias Clasen
f83403098d
Remove size_reuqest from GtkImage
2010-10-30 17:35:17 +09:00
Matthias Clasen
d4a07d5661
Remove size_request from GtkLayout
2010-10-30 17:35:17 +09:00
Matthias Clasen
381cd8b07c
Remove size_request from GtkHSV
2010-10-30 17:35:17 +09:00
Matthias Clasen
b3f6f67c33
Remove size_request from GtkFixed
2010-10-30 17:35:17 +09:00
Matthias Clasen
e165c6c884
Remove size_request from GtkEntry
2010-10-30 17:35:17 +09:00
Matthias Clasen
2e4e7264e6
Remove size_request from GtkCheckButton
2010-10-30 17:35:17 +09:00
Matthias Clasen
23a9127765
Remove size_request from GtkCalendar
2010-10-30 17:35:17 +09:00
Matthias Clasen
2078db969c
Remove size_request from GtkButtonBox
2010-10-30 17:35:17 +09:00
Matthias Clasen
42de07f2f3
Remove size_request from GtkAssistant
2010-10-30 17:35:17 +09:00
Javier Jardón
65dd3460ce
Fix gtk-doc markup: /* <private> */ should be /*< private >*/
2010-10-30 17:35:17 +09:00
Tristan Van Berkom
abcfd2d5ef
Merge branch 'master' into treeview-refactor
2010-10-27 01:06:58 +09:00
Tristan Van Berkom
695e427522
Added most of the request code for GtkCellAreaBox
...
Added the following to GtkCellAreaBox:
- GtkCellAreaBox:spacing property defines spacing between cells
- GtkCellAreaBox:align-cells property defines whether cells should
be aligned with cells in adjacent rows.
- Implementations for get_preferred_width / get_preferred_height
- Implementations for get_preferred_height_for_width and the other
when the box is oriented in the easy way (i.e. height_for_width()
implemented for a vertical box, no virtual allocations done yet).
2010-10-27 01:01:58 +09:00
Tristan Van Berkom
11f8dfe3f4
Finished up initial revision of GtkCellAreaBoxIter
...
The interaction between this class and GtkCellAreaBox could
use some optimization, maybe the cells and their sizes should
be returned as a list and iterated over at the same time as
requesting sizes instead of the hash table approach currently
taken, however the code is clean this way for now.
2010-10-26 23:01:17 +09:00
Tristan Van Berkom
97e3ccc58b
Added GtkCellAreaBox subclass to handle alignments of cells across rows inside a GtkCellAreaBox.
2010-10-26 18:22:59 +09:00
Tristan Van Berkom
b5e529f578
Added GtkCellAreaIter class
...
Added base class to hold alignment and overall size request information
while itterating over the size requests of various rows of a GtkTreeModel,
updated GtkCellArea/GtkCellAreaBox classes accordingly.
2010-10-26 17:14:20 +09:00
Tristan Van Berkom
8679563247
Merge branch 'master' into treeview-refactor
2010-10-26 11:37:27 +09:00
Tristan Van Berkom
fe3f948d0a
Implemented GtkCellLayoutIface->reorder on GtkCellAreaBox.
2010-10-24 20:08:21 +09:00
Tristan Van Berkom
468a1d3e7c
Implemented basic child list handling on GtkCellAreaBox
...
Added the child list to GtkCellAreaBox, added _pack_start() and
_pack_end() apis to GtkCellAreaBox since they are appropriate there
and implemented GtkCellLayoutIface to override the _pack_start()/end()
methods (since the base GtkCellArea class simply forwards these apis
to the generic ->add() api on the base class).
2010-10-24 20:01:04 +09:00
Tristan Van Berkom
0722fbe7c8
Removed attribute handling from class vfuncs of GtkCellArea.
...
Now GtkCellArea handles attribute connections in the base class,
subclasses only need to add/remove the renderers, render them,
do geometry and handle events.
2010-10-24 19:20:10 +09:00
Tristan Van Berkom
0e3179b669
Merge branch 'master' into treeview-refactor
2010-10-24 15:49:18 +09:00
Tristan Van Berkom
0d7fdfb36e
Merge branch 'master' into treeview-refactor
2010-10-24 15:48:46 +09:00
Tristan Van Berkom
45e42ca2d2
Implemented remaining portions of GtkCellLayout iface
...
Now GtkCellArea provides a generic way of applying attributes
from a GtkTreeModel/GtkTreeIter, GtkCellArea bookkeeps a hashtable
of GtkCellLayoutDataFunc's and completely abstracts the applying
of data to cells... GtkCellArea implementations need only to bookkeep
the added renderers and attributes (probably we can abstract the
attribute bookkeeping in the base class as well).
Things starting to take a good and practical shape.
2010-10-24 15:44:48 +09:00
Tristan Van Berkom
741d10ca4f
Adding initial code skeleton for GtkCellAreaBox.
2010-10-23 17:01:58 +09:00
Tristan Van Berkom
8885320d21
Merge branch 'master' into treeview-refactor
2010-10-23 13:25:45 +09:00
Tristan Van Berkom
705e7ee100
Added GtkCellArea to the build
...
Starting to form a good api, implemented most of GtkCellLayout iface
on the base class routing the apis through the new class vfuncs.
2010-10-22 16:41:52 +09:00
Tristan Van Berkom
8bb20925ed
Adding vague initial draft of GtkCellArea to the codebase (treeview-refactor branch).
2010-10-21 22:46:10 +09:00