2008-01-25 Johan Dahlin <johan@gnome.org>
Merge from trunk:
* gtk/gtk-builder-convert
(GtkBuilderConverter._convert_adjustment): Handle the case where
there is no child text node.
(GtkBuilderConverter): Allow xml comments in most places.
* gtk/gtk-builder-convert
(GtkBuilderConverter._convert_combobox_items): Remove the items
even if there are no items set.
(GtkBuilderConverter._add_action_from_menuitem): Convert toggled
signals and tooltips for all menu items subclasses and
GtkImageMenuItem:label.
Makes it possible to fully convert and run Jokosher.glade.
* gtk/gtkwidget.c: (gtk_widget_buildable_interface_init),
(gtk_widget_buildable_get_internal_child), (free_action),
(free_relation), (gtk_widget_buildable_parser_finished),
(accessibility_start_element),
(gtk_widget_buildable_custom_tag_start),
(gtk_widget_buildable_custom_finished):
Implement accessible support, fixes#454653.
* gtk/gtk-builder-convert:
Add support for migrating old glade files
* tests/buildertest.c: (test_widget), (test_file):
Add accessible tests and imprve the test_file function to display
toplevels and run dialogs.
svn path=/branches/gtk-2-12/; revision=19407
2008-01-25 Sven Herzberg <sven@imendio.com>
Merge from trunk:
Reviewed by Johan Dahlin.
* gtk/gtkuimanager.c (gtk_ui_manager_remove_ui): emit a warning if
this is called with something that's not a GtkUIManager
svn path=/branches/gtk-2-12/; revision=19396
2008-01-18 Johan Dahlin <johan@gnome.org>
Merge from trunk:
* gtk/gtk-builder-convert (get_property_node): New method
(GtkBuilderConverter._create_object): Conditionally take a node as
a property value, so don't lose translate/context attributes if they
are set.
(GtkBuilderConverter._add_action_from_menuitem): Send in Node as
property values instead of strings.
(#509153, Erik van Pienbroek)
svn path=/branches/gtk-2-12/; revision=19384
2008-01-13 Andre Klapper <a9016009@gmx.de>
* si.po: Unbreak the build caused by adding si.po
to ALL_LINGUAS.
svn path=/branches/gtk-2-12/; revision=19363
2008-01-10 Cody Russell <bratsche@gnome.org>
Merge from trunk:
* gdk/win32/gdkwindow-win32.c: (gdk_window_set_transient_for),
Properly ref/unref windows and parents. (#506769)
svn path=/branches/gtk-2-12/; revision=19345
2008-01-10 Kristian Rietveld <kris@imendio.com>
Merge from trunk:
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_path): Fix
a leak of the path (#504611, patch from Sadrul Habib Chowdhury).
svn path=/branches/gtk-2-12/; revision=19336
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