2008-01-10 Kristian Rietveld <kris@imendio.com>
Merge from trunk (omitted unit test updates):
Fix#477175, reported by Juri Pakaste.
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set
tree_view->priv->dy here directly, just calculate the new value
and set it on the adjustment,
(gtk_tree_view_adjustment_changed): add guards to not call
gtk_tree_view_dy_to_top_row() if we are currently in
gtk_tree_view_top_row_to_dy(),
(gtk_tree_view_put): fix coordinate annotation: these are bin_window
coordinates, not tree coordinates,
(gtk_tree_view_real_start_editing): add cast.
svn path=/branches/gtk-2-12/; revision=19335
2007-01-06 Johan Dahlin <johan@gnome.org>
Merged from trunk:
* gtkbuilder.c: remove concept of root objects and just refcount
all objects in the builder. Fixes#496651.
* docs/reference/gtk/tmpl/gtkbuildable.sgml: add clarification stating
that the construct_child function is responsible for returning a
reference.
* gtkbuilder.c (_gtk_builder_construct): remove g_object_ref() for
objects from constructors
* gtkuimanager.c (gtk_ui_manager_buildable_construct_child): add
g_object_ref() to this construction function (it's the only
implementer in GTK)
Fixes#496645.
svn path=/branches/gtk-2-12/; revision=19334
2008-01-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkassistant.c (remove_page): Be more robust when removing
the current page. (#499951, Andreas Sandberg)
2
svn path=/branches/gtk-2-12/; revision=19322
2007-01-06 Johan Dahlin <johan@gnome.org>
Merged from trunk:
* gtk/gtk-builder-convert (GtkBuilderConverter._strip_root):
Make sure that --root works for toplevel widgets.
(#491847, Phil Lello)
svn path=/branches/gtk-2-12/; revision=19310
2008-01-04 Michael Natterer <mitch@imendio.com>
Merged from trunk:
* gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
to set the time in the returned GdkTimeCoords.
svn path=/branches/gtk-2-12/; revision=19305
2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
Backport from trunk
* gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
correct comparison function (kudos to Christian Persch and
Claudio Saavedra for spotting this).
* gtk/gtkrecentchooserutils.c:
(sort_recent_items_mru),
(sort_recent_items_lru): Ditto as above.
svn path=/branches/gtk-2-12/; revision=19303
2008-01-03 Tor Lillqvist <tml@novell.com>
* io.po: Remove fuzzy marker for the metadata entry (the first
one, for the string ""), as having that fuzzy crashes msgfmt from
gettext 0.17, at least for me.
svn path=/branches/gtk-2-12/; revision=19301
2007-12-30 Johannes Schmid <jhs@gnome.org>
* gtk/gtknotebook.c: (gtk_notebook_stop_reorder):
Also reorder menu when reordering tabs by drag & drop
* tests/testnotebookdnd.c: (create_notebook_with_notebooks):
Add a menu to one of the notebooks to have a test-case for
the change mentioned above.
svn path=/branches/gtk-2-12/; revision=19293
2007-12-28 Johan Dahlin <johan@gnome.org>
Merged from trunk:
* gtk/gtkdialog.c (gtk_dialog_buildable_custom_finished)
(gtk_dialog_buildable_custom_tag_start): Chain up.
This makes it possible to have accelerators tags on GtkDialog
subclasses.
svn path=/branches/gtk-2-12/; revision=19269
2007-12-23 Cody Russell <bratsche@gnome.org>
Merged from trunk:
* gdk/win32/gdkevents-win32.c (show_window_recurse): Check that
the window is mapped before setting SW_RESTORE or SW_MINIMIZE.
Fixes a regression caused by #164537 patch where transient
windows that are hidden get shown (incorrectly) when their
parents are minimized. (#504984)
svn path=/branches/gtk-2-12/; revision=19232
2007-12-20 Johan Dahlin <johan@gnome.org>
Merge from trunk:
* gtk/gtk-builder-convert (GtkBuilderConverter._remove_window):
Refactor to avoid some duplication.
Convert toplevel GtkMenu's top popups and not menubars in the ui manager.
Fixes#504749, Yuri Pimenov
svn path=/branches/gtk-2-12/; revision=19214
2007-12-20 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/GdkQuartzWindow.c:
* gdk/quartz/GdkQuartzWindow.h: Make manual resizing smoother by
processing events after changing the size.
svn path=/branches/gtk-2-12/; revision=19207
2007-12-17 Kristian Rietveld <kris@imendio.com>
Merge from trunk.
* gtk/gtktooltip.c (gtk_tooltip_finalize),
(gtk_tooltip_set_last_window): use a weak pointer to set last_window
to NULL as soon as it's destroyed. (#496546, patch from
Benjamin Berg).
svn path=/branches/gtk-2-12/; revision=19194
2007-12-15 Xan Lopez <xan.lopez@nokia.com>
Merged from trunk:
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder):
Plug leak: When reordering the info in the list the old node is
removed but not freed. (#503569)
svn path=/branches/gtk-2-12/; revision=19185
Merged from trunk:
* gdk/directfb/gdkcursor-directfb.c: (gdk_cursor_new_for_display):
Use u32 instead of __u32 and u8 instead of __u8 as the other types
are deprecated since DirectFB 1.0.0. If compiling with an older
version define the new type name to the old types. Fixes bug #503190.
svn path=/branches/gtk-2-12/; revision=19183
2007-12-10 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/gdkdrawable-quartz.c:
(gdk_quartz_drawable_get_context),
(gdk_quartz_drawable_release_context):
* gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
(gdk_event_check), (gdk_event_dispatch), (poll_func):
* gdk/quartz/gdkwindow-quartz.h: Replace the autorelease pools
used for each drawing context and in prepare, dispatch and poll
with one that exists across each main loop iteration. Fixes leaks
on leopard and protects against future leaks introduce when the
underlying system changes again (bug #492977).
svn path=/branches/gtk-2-12/; revision=19150
2007-12-10 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
Fix the check for no changes to position and size.
svn path=/branches/gtk-2-12/; revision=19148
2007-12-10 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero
sized areas at (0, 0), patch from Paul Davis.
svn path=/branches/gtk-2-12/; revision=19146
2007-12-10 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/gdkprivate-quartz.h:
* gdk/quartz/gdkeventloop-quartz.c:
(_gdk_quartz_event_loop_get_pending),
(_gdk_quartz_event_loop_check_pending),
(_gdk_quartz_event_loop_release_event), (gdk_event_prepare),
(gdk_event_check), (gdk_event_dispatch):
* gdk/quartz/gdkevents-quartz.c: (gdk_events_pending)
(_gdk_events_queue): Fix a bug where we could end up trying to
handle the same event more than once. Based on patch from Paul
Davis.
svn path=/branches/gtk-2-12/; revision=19144
2007-12-10 Tor Lillqvist <tml@novell.com>
Merged from trunk:
* gtk-zip.sh.in: Include bin/gtk-builder-convert in the dev
package. (#502850)
svn path=/branches/gtk-2-12/; revision=19142
2007-12-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_real_remove): Another fix
to avoid further fallout from the fix for bug 388321.
svn path=/branches/gtk-2-12/; revision=19140
2007-12-09 Matthias Clasen <mclasen@redhat.com>
* io-jpeg.c: Fix the spinguard logic for big buffers.
(#494667, Ed Catmur)
svn path=/branches/gtk-2-12/; revision=19136
2007-12-06 Richard Hult <richard@imendio.com>
Merged from trunk:
* gdk/quartz/gdkevents-quartz.c:
(synthesize_crossing_events_for_ns_event): Fix warning when
switching spaces in leopard.
svn path=/branches/gtk-2-12/; revision=19120
2007-12-03 Richard Hult <richard@imendio.com>
Merged from trunk:
* gtk/gtkquartz.c: (_gtk_quartz_set_selection_data_for_pasteboard):
Don't crash when dragging from a source that doesn't support uri
lists (bug #499868, Paul Davis).
svn path=/branches/gtk-2-12/; revision=19103