2008-03-12 Tor Lillqvist <tml@novell.com>
Bug 520286 - Non-deletable window has no minimize / maximize buttons
* gdk/win32/gdkmain-win32.c (_gdk_win32_window_style_to_string):
New debugging output function that decodes a set of WS_* bits.
* gdk/win32/gdkprivate-win32.h: Declare it.
* gdk/win32/gdkwindow-win32.c (update_single_system_menu_entry):
New function that enables or disables one menu entry in the system
menu of a top-level window. (The corresponding decoration will
then also be enabled or disabled (grayed).)
(update_style_bits): Do as the comment says and don't try to
update the window style based on the GdkWMFunctions set for the
window.
(update_system_menu): New function that enables or disables the
system menu entries based on a window's stored set of
GdkWMFunctions.
(gdk_window_set_functions): Call update_system_menu() instead of
update_style_bits().
svn path=/branches/gtk-2-12/; revision=19773
2008-03-11 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Use
g_ascii_formatd when formatting custom paper sizes, since
cups doesn't handle , as decimal separator. (#521548)
svn path=/branches/gtk-2-12/; revision=19763
2008-03-11 Tor Lillqvist <tml@novell.com>
Bug 469868 - Filenames with colon ":" are not saved correctly
* gtk/gtkfilechooserentry.c (insert_text_callback)
(delete_text_callback) [Win32]: New functions to make sure that
colons used otherwise than as a separator after a drive letter, or
characters that are always illegal in file names, are rejected on
input. This means that the GTK+ file chooser can't be used to
input full names of alternate data streams, but oh well. There are
still more checks that could be done on the file names, see the
bug report. But this will do for now.
(_gtk_file_chooser_entry_init) [Win32]: Connect above functions.
svn path=/branches/gtk-2-12/; revision=19760
2008-03-11 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* io-bmp.c: (gdk_pixbuf__bmp_image_stop_load): Set a
GDK_ERROR_CORRUPT_IMAGE error if the loader is closed while
still reading the headers. (#505085)
svn path=/branches/gtk-2-12/; revision=19755
2008-03-11 Alberto Ruiz <aruiz@gnome.org>
Merged from trunk:
* gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
Take thickness into account in the size allocation of the child widgets in
list mode.
Fixes#521442
svn path=/branches/gtk-2-12/; revision=19748
2008-03-07 Alberto Ruiz <aruiz@gnome.org>
Merged from trunk:
* modules/engines/ms-windows/msw_style.c (draw_shadow):
Do not draw frame if parent if combobox.
(draw_box):
Uses scrollbar width system metrics for combobox button.
Fixes#461805 for XP theme engine.
svn path=/branches/gtk-2-12/; revision=19734
2008-03-06 Federico Mena Quintero <federico@novell.com>
Merged from trunk:
Fix http://bugzilla.gnome.org/show_bug.cgi?id=505857 -
GtkFileChooserDialog should set a default response button if the
app doesn't set it. Based on a patch by Chris Wang <chris.wang@sun.com>.
* gtk/gtkfilechooserdialog.c (is_stock_accept_response_id): New
function, refactor from where there was duplicated code.
(gtk_file_chooser_dialog_new_valist): If the response ID for the
button is one of the stock ones, make it the default response
button.
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/branches/gtk-2-12/; revision=19728
2008-03-03 Carlos Garnacho <carlos@imendio.com>
Merged from trunk:
Fix http://bugzilla.gnome.org/show_bug.cgi?id=417389 - Make the
scrollwheel work in GtkPathBar.
* gtk/gtkpathbar.h (struct _GtkPathBar): New field event_window.
* gtk/gtkpathbar.c (gtk_path_bar_realize): New function. Create
an input-only window, event_window, which we'll use to capture
scroll events.
(gtk_path_bar_map): Show the event_window under the rest of the
windows, so it will be a catch-all for unhandled events.
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/branches/gtk-2-12/; revision=19700
2008-03-03 Philip Withnall <pwithnall@svn.gnome.org>
* po-properties/en_GB.po
* po/en_GB.po: Updated British English translation.
svn path=/branches/gtk-2-12/; revision=19698
2008-03-03 Sven Neumann <sven@gimp.org>
Merged from trunk:
* gtk/gtkfilechooserbutton.c (G_DEFINE_TYPE_WITH_CODE): fixed a
typo in the documentation of the GtkFileChooserButtons::file-set
signal (see bug #353196).
svn path=/branches/gtk-2-12/; revision=19697
2008-02-29 Johan Dahlin <johan@gnome.org>
Merged from trunk:
* gtk/gtkbuilder.c:
* gtk/gtkbuilderparser.c:
* gtk/gtkbuilderprivate.h:
Do not use g_error for a few more errors, instead set
the GError sent in through add_from_file/add_from_string.
* tests/buildertest.c:
Add a couple of new parsing tests.
(#519199, Pavel Syomin)
svn path=/branches/gtk-2-12/; revision=19682
2008-02-29 Federico Mena Quintero <federico@novell.com>
Merged from trunk:
* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): When
refreshing an existing folder (i.e. when we are about to reload
its file list), turn off the folder's is_finished_loading flag.
Otherwise callers which do ::is_finished_loading() followed by
::list_children() will get nothing.
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/branches/gtk-2-12/; revision=19678
2008-02-27 Sven Neumann <sven@gimp.org>
Merged from trunk:
* gtk/Makefile.am (GTK_PRINT_PREVIEW_COMMAND): when building the
Quartz backend, use a native Mac OS X application for the print
preview (bug #518624).
svn path=/branches/gtk-2-12/; revision=19664