]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoGtkThemingEngine: Fix handles rendering
Carlos Garnacho [Mon, 10 Jan 2011 22:23:54 +0000 (23:23 +0100)]
GtkThemingEngine: Fix handles rendering

The wrong class was being used, so the theming engine didn't
match it properly.

13 years agoGtkStyleContext: Do not cancel possibly unstarted transitions
Carlos Garnacho [Mon, 10 Jan 2011 22:16:09 +0000 (23:16 +0100)]
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.

13 years agoCleanup leftover code in gtkplug-x11
Carlos Garnacho [Mon, 10 Jan 2011 22:11:42 +0000 (23:11 +0100)]
Cleanup leftover code in gtkplug-x11

This code was part of the GdkDeviceManagerCore hack

13 years agoMark gtk_widget_style_attach() as deprecated.
Carlos Garnacho [Mon, 10 Jan 2011 22:11:00 +0000 (23:11 +0100)]
Mark gtk_widget_style_attach() as deprecated.

This isn't needed anymore.

13 years agoFix compiler warning.
Carlos Garnacho [Mon, 10 Jan 2011 22:48:22 +0000 (23:48 +0100)]
Fix compiler warning.

13 years agoAdd gtk_widget_set_device_enabled()
Carlos Garnacho [Mon, 10 Jan 2011 21:57:31 +0000 (22:57 +0100)]
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()

13 years agoGtkTextUtil: Fix typo
Carlos Garnacho [Mon, 10 Jan 2011 21:55:31 +0000 (22:55 +0100)]
GtkTextUtil: Fix typo

Use the right "context" object around in GtkStyleContext methods.

13 years agoSet the proper css class when getting attributes.
Paolo Borelli [Mon, 10 Jan 2011 20:34:08 +0000 (21:34 +0100)]
Set the proper css class when getting attributes.

13 years ago[portability] Use G_PI rather than M_PI
Hans Breuer [Mon, 10 Jan 2011 20:35:53 +0000 (21:35 +0100)]
[portability] Use G_PI rather than M_PI

13 years agoBug 639127 - Add missing gdkdisplaymanager-win32.c
Hans Breuer [Mon, 10 Jan 2011 20:34:33 +0000 (21:34 +0100)]
Bug 639127 - Add missing gdkdisplaymanager-win32.c

13 years agoAdd gtk_style_context_scroll_animations()
Carlos Garnacho [Mon, 10 Jan 2011 19:45:23 +0000 (20:45 +0100)]
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.

13 years agoMake GtkCalendar use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 19:40:37 +0000 (20:40 +0100)]
Make GtkCalendar use GtkStyleContext

13 years agoDo not set any padding for scrolled window children.
Carlos Garnacho [Mon, 10 Jan 2011 19:19:58 +0000 (20:19 +0100)]
Do not set any padding for scrolled window children.

13 years agoGtkCssProvider: enable parsing negative GtkBorders
Carlos Garnacho [Mon, 10 Jan 2011 19:13:56 +0000 (20:13 +0100)]
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.

13 years agoMake GtkTextUtil use GtkStyleContext.
Carlos Garnacho [Mon, 10 Jan 2011 19:09:34 +0000 (20:09 +0100)]
Make GtkTextUtil use GtkStyleContext.

13 years agoCSS styles for the selection in a TextView.
Paolo Borelli [Sun, 9 Jan 2011 22:10:47 +0000 (23:10 +0100)]
CSS styles for the selection in a TextView.

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

13 years agoPort GtkTextDisplay to StyleContext.
Paolo Borelli [Sun, 9 Jan 2011 21:42:06 +0000 (22:42 +0100)]
Port GtkTextDisplay to StyleContext.

Use the new StyleContext and StateFlags to draw the text

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

13 years agoadd gtknumerable.c to POTFILES.in
Matthias Clasen [Mon, 10 Jan 2011 17:06:31 +0000 (12:06 -0500)]
add gtknumerable.c to POTFILES.in

13 years agoFix remaining usage of g[dk]ktargetlib.
Yaakov Selkowitz [Sun, 9 Jan 2011 08:46:35 +0000 (02:46 -0600)]
Fix remaining usage of g[dk]ktargetlib.

This is a follow-up to commit 07d49ee56a4ce86d9d6154e00ff6b10bd3bdc2a4.

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

13 years agoAdd a setter for GtkWindow.has_user_ref_count
Matthias Clasen [Mon, 10 Jan 2011 16:49:06 +0000 (11:49 -0500)]
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

13 years agoMore doc build fixes
Matthias Clasen [Mon, 10 Jan 2011 15:59:50 +0000 (10:59 -0500)]
More doc build fixes

Grr, our mixture of xml and plain text in long descriptions is
a mess.

13 years agoFix doc syntax
Matthias Clasen [Mon, 10 Jan 2011 14:47:09 +0000 (09:47 -0500)]
Fix doc syntax

13 years agobuild: Use mkdir_p instead mkinstalldirs
Javier Jardón [Mon, 10 Jan 2011 13:20:13 +0000 (13:20 +0000)]
build: Use mkdir_p instead mkinstalldirs

As we don't use mkinstalldirs, $(mkinstalldirs) is simply an
alias for $(mkdir_p)

13 years agoFixed GtkEntry to report the proper default value for "primary/secondary-icon-activat...
Tristan Van Berkom [Mon, 10 Jan 2011 13:26:46 +0000 (22:26 +0900)]
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"

13 years agoAdded GtkBuildable support for specifying <items> in GtkComboBoxText.
Tristan Van Berkom [Sun, 9 Jan 2011 06:25:53 +0000 (15:25 +0900)]
Added GtkBuildable support for specifying <items> in GtkComboBoxText.

13 years agoAdded GtkBuildable support to add "tag" children to GtkTextTagTable.
Tristan Van Berkom [Sun, 9 Jan 2011 05:06:19 +0000 (14:06 +0900)]
Added GtkBuildable support to add "tag" children to GtkTextTagTable.

13 years agoAdded GtkBuilder support for "menu" child type of GtkMenuToolButton
Tristan Van Berkom [Sun, 9 Jan 2011 04:10:40 +0000 (13:10 +0900)]
Added GtkBuilder support for "menu" child type of GtkMenuToolButton

13 years agoFixed GtkCellAreaBox to not allocate invisible cells.
Tristan Van Berkom [Mon, 10 Jan 2011 09:46:51 +0000 (18:46 +0900)]
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).

13 years agoFixed GtkCellArea to never activate/start editing insensitive cells.
Tristan Van Berkom [Mon, 10 Jan 2011 08:56:51 +0000 (17:56 +0900)]
Fixed GtkCellArea to never activate/start editing insensitive cells.

Included extension to tests/testtreeedit to show this is working properly.

13 years agoEnsure GtkStyleContext is generated on gtk_widget_render_icon_pixbuf()
Carlos Garnacho [Mon, 10 Jan 2011 02:41:19 +0000 (03:41 +0100)]
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.

13 years agoMake GtkViewport use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 02:38:35 +0000 (03:38 +0100)]
Make GtkViewport use GtkStyleContext

13 years agoAdd gtk_style_context_cancel_animations()
Carlos Garnacho [Mon, 10 Jan 2011 02:31:35 +0000 (03:31 +0100)]
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.

13 years agoMake GtkLayout use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:46:29 +0000 (02:46 +0100)]
Make GtkLayout use GtkStyleContext

13 years agoMake GtkImage use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:45:14 +0000 (02:45 +0100)]
Make GtkImage use GtkStyleContext

13 years agoMake GtkPrintUnixDialog use GtkStyleContext.
Carlos Garnacho [Mon, 10 Jan 2011 01:42:05 +0000 (02:42 +0100)]
Make GtkPrintUnixDialog use GtkStyleContext.

13 years agoMake GtkFontSelection use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:39:12 +0000 (02:39 +0100)]
Make GtkFontSelection use GtkStyleContext

13 years agoMake GtkHSV use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:37:26 +0000 (02:37 +0100)]
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.

13 years agoMake GtkColorSelection use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:31:23 +0000 (02:31 +0100)]
Make GtkColorSelection use GtkStyleContext

13 years agoMake GtkColorButton use GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:30:25 +0000 (02:30 +0100)]
Make GtkColorButton use GtkStyleContext

13 years agoUpdate _gtk_button_paint() arguments to GtkStyleContext
Carlos Garnacho [Mon, 10 Jan 2011 01:26:28 +0000 (02:26 +0100)]
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.

13 years agoRemove recent GtkStyle usage in GtkWindow
Carlos Garnacho [Mon, 10 Jan 2011 01:21:06 +0000 (02:21 +0100)]
Remove recent GtkStyle usage in GtkWindow

GtkStyleContext API is used instead.

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 9 Jan 2011 23:02:32 +0000 (00:02 +0100)]
Updated Galician translations

13 years agoObtain the fg color from the renderer
Paolo Borelli [Sun, 9 Jan 2011 17:10:50 +0000 (18:10 +0100)]
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

13 years agoRemove stipple attributes
Paolo Borelli [Sun, 9 Jan 2011 00:32:49 +0000 (01:32 +0100)]
Remove stipple attributes

GtkTextView does not support them anymore.

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

13 years agoSmall cleanup in gailtextview code.
Paolo Borelli [Sat, 8 Jan 2011 23:16:20 +0000 (00:16 +0100)]
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

13 years agoUpdated Hebrew translation
Yaron Shahrabani [Sun, 9 Jan 2011 19:04:58 +0000 (21:04 +0200)]
Updated Hebrew translation

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 9 Jan 2011 15:42:40 +0000 (16:42 +0100)]
Updated Galician translations

13 years ago[Doc] gtk_symbolic_color_resolve()'s props arg can be NULL
Milan Bouchet-Valat [Sat, 8 Jan 2011 16:25:39 +0000 (17:25 +0100)]
[Doc] gtk_symbolic_color_resolve()'s props arg can be NULL

Document this behavior and add annotations.

13 years agoUpdated Spanish translation, fixes bug #638991
Jorge González [Sat, 8 Jan 2011 12:49:31 +0000 (13:49 +0100)]
Updated Spanish translation, fixes bug #638991

13 years agodocs: Fix typo in GtkWidget geometry-management documentation
Javier Jardón [Sat, 8 Jan 2011 09:56:59 +0000 (10:56 +0100)]
docs: Fix typo in GtkWidget geometry-management documentation

Reported by Andrew Cowie in
https://bugzilla.gnome.org/show_bug.cgi?id=638963

13 years agoAdding missing gtk-doc annotations.
Tristan Van Berkom [Sat, 8 Jan 2011 09:46:46 +0000 (18:46 +0900)]
Adding missing gtk-doc annotations.

GtkProgressBar:show-text, GtkScrolledWindow:min-content-width/height
are new properties in 3.0.

13 years agoUpdated British English translation
Bruce Cowan [Fri, 7 Jan 2011 23:25:18 +0000 (23:25 +0000)]
Updated British English translation

13 years agoTranslate KeyPress/KeyRelease in gtkplug-x11
Carlos Garnacho [Fri, 7 Jan 2011 20:51:23 +0000 (21:51 +0100)]
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.

13 years agoIntroduce gtk_tree_view_is_blank_at_pos()
Kristian Rietveld [Fri, 7 Jan 2011 14:35:35 +0000 (15:35 +0100)]
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.

13 years agoFix gtk_tree_view_column_cell_get_position()
Kristian Rietveld [Fri, 7 Jan 2011 14:10:06 +0000 (15:10 +0100)]
Fix gtk_tree_view_column_cell_get_position()

13 years agoUpdated Indonesian translation
Andika Triwidada [Fri, 7 Jan 2011 13:38:52 +0000 (20:38 +0700)]
Updated Indonesian translation

13 years agoDocument that GtkModuleInit doesn't receive argv anymore
Matthias Clasen [Fri, 7 Jan 2011 13:12:07 +0000 (08:12 -0500)]
Document that GtkModuleInit doesn't receive argv anymore

13 years agoSet the style for .view so i.e the GtkTextView gets the right style.
Ignacio Casal Quinteiro [Fri, 7 Jan 2011 10:34:35 +0000 (11:34 +0100)]
Set the style for .view so i.e the GtkTextView gets the right style.

13 years agoRemoved special casing code in GtkCellLayout in favor of default implementation.
Tristan Van Berkom [Fri, 7 Jan 2011 09:08:51 +0000 (18:08 +0900)]
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.

13 years agoFixed documentation of gtk_cell_area_set_focus_cell().
Tristan Van Berkom [Fri, 7 Jan 2011 06:47:13 +0000 (15:47 +0900)]
Fixed documentation of gtk_cell_area_set_focus_cell().

13 years agoSupport disabling X11 extensions
Emilio Pozuelo Monfort [Fri, 7 Jan 2011 01:30:11 +0000 (01:30 +0000)]
Support disabling X11 extensions

Based on a patch from Cyril Brulebois <kibi@debian.org>

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

13 years agoUpdated Galician translations
Fran Diéguez [Thu, 6 Jan 2011 23:11:51 +0000 (00:11 +0100)]
Updated Galician translations

13 years agoForgotten documentation fix
Matthias Clasen [Thu, 6 Jan 2011 16:27:38 +0000 (11:27 -0500)]
Forgotten documentation fix

13 years agoBump version
Matthias Clasen [Thu, 6 Jan 2011 16:27:15 +0000 (11:27 -0500)]
Bump version

13 years agoMore documentation fixes
Matthias Clasen [Thu, 6 Jan 2011 14:06:24 +0000 (09:06 -0500)]
More documentation fixes

13 years agoUndoccommentize gtktreemenu.c
Matthias Clasen [Thu, 6 Jan 2011 13:23:18 +0000 (08:23 -0500)]
Undoccommentize gtktreemenu.c

13 years agoDocumentation fixes
Matthias Clasen [Thu, 6 Jan 2011 13:12:01 +0000 (08:12 -0500)]
Documentation fixes

13 years agoDocumentation fixes
Matthias Clasen [Thu, 6 Jan 2011 13:12:01 +0000 (08:12 -0500)]
Documentation fixes

13 years agoAdd sufficient deps to make building from 'git clean' work
Matthias Clasen [Thu, 6 Jan 2011 12:44:44 +0000 (07:44 -0500)]
Add sufficient deps to make building from 'git clean' work

13 years agoFix introspection annotation syntax
Matthias Clasen [Thu, 6 Jan 2011 12:44:19 +0000 (07:44 -0500)]
Fix introspection annotation syntax

13 years agoUpdated Luganda translation
Kizito Birabwa [Thu, 6 Jan 2011 09:23:59 +0000 (10:23 +0100)]
Updated Luganda translation

13 years agoAdd appchooser docs
Matthias Clasen [Thu, 6 Jan 2011 07:07:35 +0000 (02:07 -0500)]
Add appchooser docs

13 years agoDocumentation polishing
Matthias Clasen [Thu, 6 Jan 2011 06:11:49 +0000 (01:11 -0500)]
Documentation polishing

13 years agoMove the GtkApplication example to the right place
Matthias Clasen [Thu, 6 Jan 2011 06:09:14 +0000 (01:09 -0500)]
Move the GtkApplication example to the right place

13 years agoUpdate NEWS some more
Matthias Clasen [Thu, 6 Jan 2011 05:55:16 +0000 (00:55 -0500)]
Update NEWS some more

13 years agoFixed statement in gtkwindow.c when toplevelness changes.
Tristan Van Berkom [Thu, 6 Jan 2011 05:27:03 +0000 (14:27 +0900)]
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.

13 years agoDont show the GtkWindow when removing it from a parent and becomming a toplevel
Tristan Van Berkom [Mon, 3 Jan 2011 15:55:04 +0000 (00:55 +0900)]
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.

13 years agoFixed conflict while rebasing master.
Tristan Van Berkom [Mon, 27 Dec 2010 06:02:01 +0000 (15:02 +0900)]
Fixed conflict while rebasing master.

13 years agoChanges to testtoplevelembed
Tristan Van Berkom [Sun, 26 Dec 2010 10:25:06 +0000 (19:25 +0900)]
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.

13 years agoFixed GtkFileChooserDefault to handle cases of being in an embedded dialog.
Tristan Van Berkom [Sun, 26 Dec 2010 10:13:19 +0000 (19:13 +0900)]
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.

13 years agoFixed GtkWindow/GtkWidget to properly emit hierarchy changed for embedded toplevels
Tristan Van Berkom [Sun, 26 Dec 2010 10:08:33 +0000 (19:08 +0900)]
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.

13 years agoFixed focus handling on embedded windows.
Tristan Van Berkom [Fri, 24 Dec 2010 04:25:02 +0000 (13:25 +0900)]
Fixed focus handling on embedded windows.

Now GtkWindow chains up in focus vfuncs when non-toplevel, this
fixes focus in testtoplevelembed.

13 years agoAdded buttons to notebook tabs in testtoplevelembed
Tristan Van Berkom [Fri, 24 Dec 2010 03:35:56 +0000 (12:35 +0900)]
Added buttons to notebook tabs in testtoplevelembed

Now you can remove and reembed the toplevels (deleting the
toplevels put them back in the notebook).

13 years agoMoved location of unsetting parent window inside gtk_widget_unparent().
Tristan Van Berkom [Fri, 24 Dec 2010 03:35:27 +0000 (12:35 +0900)]
Moved location of unsetting parent window inside gtk_widget_unparent().

Make sure to do this after the widget is unrealized.

13 years agoFixed issues with "hierarchy-changed" signal.
Tristan Van Berkom [Fri, 24 Dec 2010 03:01:43 +0000 (12:01 +0900)]
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.

13 years agoAdded tests/testtoplevelembed.
Tristan Van Berkom [Fri, 24 Dec 2010 01:29:21 +0000 (10:29 +0900)]
Added tests/testtoplevelembed.

13 years agoSlightly less special casing in GtkWindow for gtk_widget_is_toplevel()
Tristan Van Berkom [Thu, 23 Dec 2010 17:10:07 +0000 (02:10 +0900)]
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.

13 years agoAdded docs to gtk_widget_set_parent_window.
Tristan Van Berkom [Thu, 23 Dec 2010 17:09:41 +0000 (02:09 +0900)]
Added docs to gtk_widget_set_parent_window.

Also stop setting the resize mode of the window.

13 years agoAllow GtkWindow to be parented if gtk_widget_set_parent_window() is called on one
Tristan Van Berkom [Thu, 23 Dec 2010 12:51:25 +0000 (21:51 +0900)]
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).

13 years agoCosmetic changes
Matthias Clasen [Thu, 6 Jan 2011 05:07:48 +0000 (00:07 -0500)]
Cosmetic changes

13 years agoEnsure that GtkIconView items get redrawn when the focus cell changes.
Tristan Van Berkom [Wed, 5 Jan 2011 16:30:17 +0000 (01:30 +0900)]
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.

13 years agoFixed GtkIconView keynav
Tristan Van Berkom [Wed, 5 Jan 2011 12:58:32 +0000 (21:58 +0900)]
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.

13 years agoFixed gtkiconview dispose cycle to not fire warnings.
Tristan Van Berkom [Tue, 21 Dec 2010 12:28:46 +0000 (21:28 +0900)]
Fixed gtkiconview dispose cycle to not fire warnings.

13 years agoRestored the old GtkIconView guess for wrap-width/width size of text cell
Tristan Van Berkom [Tue, 14 Dec 2010 06:37:42 +0000 (15:37 +0900)]
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.

13 years agoMade GtkIconView reset the context and invalidate all sizes when a row changes.
Tristan Van Berkom [Mon, 13 Dec 2010 09:08:37 +0000 (18:08 +0900)]
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.

13 years agoRemoved gtk_icon_view_get_item_area()
Tristan Van Berkom [Mon, 13 Dec 2010 08:41:50 +0000 (17:41 +0900)]
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.

13 years agoFixed GtkIconView buildable custom tag end to let cell layout properly
Tristan Van Berkom [Mon, 13 Dec 2010 07:01:58 +0000 (16:01 +0900)]
Fixed GtkIconView buildable custom tag end to let cell layout properly
handle <cell-packing>

13 years agoAdded gtk_icon_view_new_with_area()
Tristan Van Berkom [Mon, 13 Dec 2010 06:54:02 +0000 (15:54 +0900)]
Added gtk_icon_view_new_with_area()

13 years agoGtkIconView now uses a per-row GtkCellAreaContext to store the alignments
Tristan Van Berkom [Sun, 12 Dec 2010 15:24:26 +0000 (00:24 +0900)]
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.

13 years agoAlignments with variable row heights almost works perfectly.
Tristan Van Berkom [Sun, 12 Dec 2010 11:59:41 +0000 (20:59 +0900)]
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.