2007-03-28 Matthias Clasen <mclasen@redhat.com>
Merge from trunk:
* modules/printbackends/cups/gtkcupsutils.[hc]:
* modules/printbackends/cups/gtkprintbackendcups.c: Apply
a patch by John Palmieri to make the cups print backend support
raw printers.
svn path=/branches/gtk-2-10/; revision=17569
2007-03-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
toggle whether to show hidden files. (#344657,
Wouter Bolsterlee, Priit Laes, et al)
svn path=/branches/gtk-2-10/; revision=17558
2007-03-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add a keybinding to
toggle the visibility of the location entry. (#383354,
John Pye, patch by Carlos Garnacho)
svn path=/branches/gtk-2-10/; revision=17556
2007-03-17 Chris Wilson <chris@chris-wilson.co.uk>
* gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
Initialise nxvisuals to 0 in order to handle
XGetVisualInfo() failures gracefully. (#419171)
svn path=/branches/gtk-2-10/; revision=17537
2007-03-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
make the selected printer visible. (#418403, Nickolay V. Shmyrev,
patch by Christian Persch)
svn path=/branches/gtk-2-10/; revision=17532
2007-03-15 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserdefault.c (find_good_size_from_style):
PANGO_PIXELS() gives us device units, which are *points* in
pangocairo's parlance, but we want actual pixels. So, get the
screen's resolution to compute the actual number of pixels.
Fixes bug #418585.
svn path=/branches/gtk-2-10/; revision=17529
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
Merge from trunk:
* gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
unused GError; do not allocate GtkRecentData and use a variable
on the stack. (#418673, Morten Welinder)
svn path=/branches/gtk-2-10/; revision=17526
2007-03-15 Chris Wilson <chris@chris-wilson.co.uk>
* gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
(gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
from recursion, which can happen for example if the app tries to
reload an icon from within a theme-changed handler. (#418531)
svn path=/branches/gtk-2-10/; revision=17522
2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
Merge from trunk:
* gtk/gtkrecentchooserprivate.h:
* gtk/gtkrecentchooserutils.c: Share between the widgets
the recent chooser function for getting the filtered, sorted
and clamped list of recent files from the manager. (#418219)
* gtk/gtkrecentchoosermenu.c: Use the newly defined
_gtk_recent_chooser_get_items() function; remove some
pointer indirections.
* gtk/gtkrecentchooserdefault.c: Reload the items every time
a property affecting the view is changed; move the objects
unref and the source removal into the dispose function; use
the newly defined _gtk_recent_chooser_get_items()
function. (see #338843)
svn path=/branches/gtk-2-10/; revision=17517
2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
the background of the panel window on style changes. (#402144,
Benjamin Berg)
svn path=/branches/gtk-2-10/; revision=17493
2007-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
Handle the row reference path being NULL. (#410565, Joe Markus
Clarke, patch by Chris Wilson)
svn path=/branches/gtk-2-10/; revision=17488
2007-03-12 Kristian Rietveld <kris@gtk.org>
Merge from trunk:
* gtk/gtkfilechooserdefault.c (check_save_entry): immediately
bail out if current_folder is NULL. (#350988, lots of reporters,
modified patch by Jan Darmochwal).
svn path=/branches/gtk-2-10/; revision=17480
2007-03-10 Kristian Rietveld <kris@gtk.org>
Updated fix for #356515, merged from trunk:
* gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
a focus-in event to the tree view after hiding the search dialog;
only hide the search dialog and send the focus events when the
dialog is currently visible.
svn path=/branches/gtk-2-10/; revision=17465
2007-03-10 Kristian Rietveld <kris@gtk.org>
Merge from trunk:
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node),
(gtk_tree_model_sort_real_unref_node): when (un)reffing an
element, also (un)ref its parent elements. (Fixes#364946,
reported by many, testcase by Andreas Koehler).
svn path=/branches/gtk-2-10/; revision=17458
2007-03-10 Kristian Rietveld <kris@gtk.org>
Merge from trunk:
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
(gtk_tree_model_sort_sort_level): ref count nodes the proper way,
(gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
(gtk_tree_model_sort_free_level): bring zero ref count loops in
sync,
(gtk_tree_model_sort_free_level): free child levels before
decreasing the zero ref count of the current level,
(gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
is > 0.
svn path=/branches/gtk-2-10/; revision=17456
2007-03-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation-unix.c: Initialize the do_preview
field of PrintResponseData. (#396703, Christian Persch)
svn path=/branches/gtk-2-10/; revision=17454