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
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
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
Benjamin Otte
96091a4d9c
adjustment: Privateize sealed members
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
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
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
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
680b64d04a
Fix some parameter name mismatches in the docs
2011-01-05 10:04:48 -05:00
Matthias Clasen
57de2c84c4
Try again to fix the doc build
2011-01-05 09:38:36 -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
c4f0bbb130
fix documentation build
2011-01-04 23:15:35 -05: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
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
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
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
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
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
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
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
1193c30e15
Revert "Added gtk_tree_menu_get_area()."
...
This reverts commit d32d7c8f9c4d2bcd7c5c206c09273ce67ed20df4.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
bd1b4ddf75
Updated GtkCellView for new gtk_cell_area_context_allocate() api.
2011-01-04 23:37:09 +09:00