]> Pileus Git - ~andy/gtk/blobdiff - ChangeLog
remove redundant and confusing if (GTK_IS_MENU (widget)) checks because
[~andy/gtk] / ChangeLog
index 0f72a02c339f5e528a544c6026c3bdb8a87b143c..0510e46992dafcfea2825390a6ddf2cc3304871e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,543 @@
+2007-02-01  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkmenu.c (gtk_menu_button_press)
+       (gtk_menu_button_release)
+       (gtk_menu_button_scroll): remove redundant and confusing
+       if(GTK_IS_MENU(widget)) checks because "widget" is always a
+       GtkMenu here.
+
+Thu Feb  1 12:22:06 2007  Tim Janik  <timj@imendio.com>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
+       that gtkcombobox keeps on priv->popup_widget if it's a tree view.
+
+2007-01-31  Christian Persch  <chpe@svn.gnome.org>
+
+       * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
+       (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
+       (gtk_about_dialog_set_artists),
+       (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
+       there are no credits to show. Bug #402806.
+
+2007-01-31  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
+       function.
+       (_gdk_input_wintab_init_check): Call it when debugging output is
+       requested.
+       (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
+       tablets. The Wacom driver reports duplicated cursors with
+       physid==0. Fix verified by Robert Ögren.
+
+2007-01-30  Felix Riemann  <friemann@svn.gnome.org>
+
+       * modules/printbackends/file/gtkprintbackendfile.c:
+       (file_printer_get_options): Fix leaked string. Fixes bug #402565.
+
+2007-01-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
+       (gdk_x11_window_set_user_time): Be more careful about toplevel
+       possibly being NULL.  (#402453, Sebastian Bacher)
+
+Tue Jan 30 12:09:56 2007  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
+       class_n_properties and leave an uninitialized value array behind.
+
+2007-01-29  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkmenuitem.c (gtk_menu_item_select)
+       (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
+       this menu item's menu, to enable themeing menu items depending on
+       whether something is selected in their submenu (patch taken from
+       maemo-gtk).
+
+2007-01-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
+       that was mistakenly "cleaned up" a while ago. Also
+       revert a problematic change to the screen_changed
+       handler.  (#401598, Søren Sandmann)
+
+2007-01-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a 
+       problem with large y thickness.  (#136592, Xan Lopez)
+
+2007-01-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkaction.c (gtk_action_new): Use canonical
+       property names.  
+
+2007-01-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
+       (gtk_notebook_draw_focus): Avoid some unnecessary 
+       gtk_widget_get_style() calls.
+
+2007-01-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktoolbar.c:
+       * gtk/gtktoolitem.c:
+       * gtk/gtktoolbutton.c: Rearrange things so that setting
+       multiple properties causes not more than a single 
+       reconstruction of the contents.
+
+       * gtk/gtkaction.c (connect_proxy): Set all tool button 
+       properties in one go.
+
+2007-01-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkstatusicon.c:
+       * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
+       take up space on the panel if it is invisible.  (340110, Christian
+       Persch)
+
+       * tests/teststatusicon.c:
+       * tests/Makefile.am: Updates
+
+2007-01-27  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfilesel.h:
+       * gtk/gtkrc.h:
+       * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
+       and the old file selector.  (#348256)
+
+2007-01-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
+
+2007-01-26  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/updateiconcache.c: Check the mtime of all directories,
+       not just the toplevel, if ftw() is available.  (#331671, Behdad
+       Esfahbod)
+
+       * configure.in: Check for ftw.h.
+
+2007-01-26  Michael Natterer  <mitch@imendio.com>
+
+       * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
+       destroy the XIM only if it exists. While the code does look safe
+       in general, there can be corner cases where the "reconnecting"
+       boolean being FALSE does not correspond to the XIM being
+       allocated (fixes #329450, fix taken from maemo-gtk).
+
+Fri Jan 26 13:07:07 2007  Tim Janik  <timj@imendio.com>
+
+       * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
+       window bounds (fix from Maemo Gtk).
+
+2007-01-26  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
+       only block/unblock completion->priv->insert_text_id if it is
+       actually connected. While this can't happen the way GtkEntry
+       itself uses the completion, it's still public API and should not
+       blindly call functions that will spit warnings (fix taken from
+       maemo-gtk).
+
+2007-01-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
+       the paintable iface.  
+
+2007-01-24  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
+       of PRELIGHT state for the reasons given in bug #135666. Widget
+       states are sometimes abused or otherwise used wrongly for historic
+       reasons, causing this part of the patch to break e.g. menu items.
+
+2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>
+
+       * README: Remove mention of no-longer-existing PATCH
+       keyword in bugzilla. (#396899)
+
+2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * gtk/gtkpagesetup.c
+       (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
+       Fixes bug #399907. 
+
+2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>
+
+       Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
+
+       * gtk/gtkstyle.h:
+               Cause gcc to issue a warning if the style returned from
+               gtk_style_attach is not used. Failure to update
+               widget->style causes some very difficult to reproduce bugs,
+               eg Bug 353498 – crash in Terminal: changing icon theme.
+
+2007-01-19  Michael Emmel  <mike.emmel@gmail.com>
+
+       * gdk/directfb/gdkevents-directfb.c: added fixes for window
+       crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
+
+2007-01-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcalendar.c: Fix build breakage.
+
+2007-01-19  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
+       (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
+       add_scroll_timeout().  (taken from maemo-gtk).
+
+2007-01-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcalendar.c: Fix problems with the initial
+       focus in GtkCalendar.  (#397783, Vincent Untz)
+
+2007-01-19  Robert Ögren  <gtk@roboros.com>
+
+       Fix for bug #143460 - missed tablet clicks on Windows
+
+       * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
+       Request absolute reporting of tablet button state, and cut down
+       the packet queue size a bit.
+       (_gdk_input_other_event): Change button state handling
+       accordingly. Also drop the no longer necessary code that detects
+       missed clicks/releases for button 1. The switch to absolute button
+       state should prevent missed events for all buttons. Additionally,
+       swap button 2 and 3.
+       (_gdk_input_grab_pointer): Don't reset button_state, that will only
+       cause a new press event as soon as the next tablet packet arrives.
+
+2007-01-19  Tor Lillqvist  <tml@novell.com>
+
+       Build Wintab support always on Windows. Don't require the Wintab
+       SDK.
+
+       * configure.in: Drop the --with-wintab option. Drop the
+       HAVE_WINTAB feature test macro and Automake variable.
+
+       * acconfig.h
+       * config.h.win32.in: Drop HAVE_WINTAB.
+
+       * gdk/win32/gdkevents-win32.c
+       * gdk/win32/gdkinput.c
+       * gdk/win32/gdkinput-win32.h
+       * gdk/win32/gdkinput-win32.c
+       * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
+       unconditional.
+
+       * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
+       to load wintab32.dll dynamically here. If it is found look up the
+       handful Wintab functions we use.
+       (rest of file): Use these function pointers instead of calling the
+       functions from wntab32x.lib. The code in wntab32x.lib did the same
+       thing anyway: tried to load wintab32.dll, and looked up the
+       addresses of the actual functions from it.
+
+       * gdk/Makefile.am
+       * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
+
+       * gdk/win32/wintab.h
+       * gdk/win32/pktdef.h: New files. Copied from the Wintab
+       SDK. Copyright blurb says: "The text and information contained in
+       this file may be freely used, copied, or distributed without
+       compensation or licensing restrictions."
+
+       * README.win32: Update a bit. Remove the text about the Wintab
+       SDK.
+
+2007-01-18  Tor Lillqvist  <tml@novell.com>
+
+       * gdk-pixbuf/Makefile.am
+       * gdk/Makefile.am
+       * gdk/win32/Makefile.am
+       * gtk/Makefile.am: Fixes for building outside srcdir on
+       Win32. (#336819, #340113) Drop distributing the handmade .la
+       libtool wrapper for the wntab32x library. It's too much trouble
+       making it work when building outside srcdir. Just link to the
+       library direcly using -Wl,win32/libwntab32x.a.
+
+2007-01-18  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkcheckbutton.c
+       * gtk/gtkdnd.c
+       * gtk/gtkentry.c
+       * gtk/gtkmenu.c
+       * gtk/gtktreeview.c
+       * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
+       functions. Based on a patch from maemo-gtk (bug #398023).
+
+2007-01-17  Tor Lillqvist  <tml@novell.com>
+
+       * gtk-zip.sh.in: Include also the COPYING file.
+
+2007-01-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
+       httpGetFd() when building against cups 1.1
+
+2007-01-17  Tor Lillqvist  <tml@novell.com>
+
+       Proper fix for #396175:
+
+       * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
+       include gtkprivate.h. On Win32 we do want to use the redefinition
+       of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
+
+       * gtk/gtkimmodule.c: Instead, correct the prefix also on
+       simple_context_info.domain_dirname. Do the prefix corrections
+       always on Win32, not just when GTK_LIBDIR is defined. i.e., until
+       now they were done only in the autoconfiscated gcc builds. Hans
+       needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
+       in MSVC builds now.
+       (correct_localedir_prefix): New function, like
+       correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
+       GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
+       (gtk_im_module_initialize): Thus call correct_localedir_prefix()
+       on the domain_dirname instead of correct_libdir_prefix().
+       (_gtk_im_module_list): Call correct_localedir_prefix() on
+       simple_context_info.domain_dirname.
+
+2007-01-16  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
+       grab changes.  (#396470, Benjamin Berg)
+
+2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
+       if they grow too much. (#357303)
+
+2007-01-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
+       non-scalable dir, keep going and look for a closer match.
+       (#395830, Luca Ferretti)
+
+2007-01-14  Christian Persch  <chpe@svn.gnome.org>
+
+       * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
+       (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
+       gtk_target_table_free instead of duplicating the code. Bug #396493.
+
+2007-01-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkuimanager.c: Don't crash if menu or toolbar
+       positions can't be found.  (#396161, Hans Breuer)
+
+2007-01-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkselection.c (_gtk_selection_request): Plug 
+       memory leaks.  (#396160, Carlos Garcia Campos)
+
+2007-01-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Link libgtk against Xfixes.  (#396074,
+       Tommi Komulainen)
+
+2007-01-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
+       a compiler warning.  (#395045, Chris Wilson)
+
+2007-01-13  Hans Breuer <hans@breuer.org>
+
+       * gtk/gtkprintoperation-win32.c : take the custom tab label from
+       gtk_print_operation_set_custom_tab_label() into account (bug #390746).
+
+       * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
+       differing definitions of GTK_LOCALEDIR (bug #396175).
+
+       * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
+       not available everywhere
+
+       * gtk/makefile.msc.in : updated
+
+2007-01-12  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkentry.c (gtk_entry_button_press): don't add
+       entry->scroll_offset to entry->drag_start_y. Fixes the entry
+       starting drags after ridiculously small mouse movements.
+
+2007-01-11  Richard Hult  <richard@imendio.com>
+
+       * demos/gtk-demo/main.c: (load_file): Close the file after it's
+       loaded (bug #395316).
+
+2007-01-11  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gtk/gtkfilesystemunix.c: (expand_tilde):
+       Make a single tilde go to $HOME in the location entry.
+       Patch from Yevgen Muntyan. Closes the gtk+ part of
+       bug #334168.
+
+2007-01-10  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gdk/gdkpango.c (gdk_draw_layout_with_colors):
+       * gtk/gtklabel.c (gtk_label_size_request):
+       Use pango_matrix_transform_rectangle(). (#340141)
+
+       * configure.in: Bump pango requirement to 1.15.3.
+
+2007-01-10  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
+       refactor to initialize indicator_size to TOGGLE_WIDTH instead
+       of the hardcoded value of 12.
+
+2007-01-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Fix the directfb cairo test. (#394855, 
+       Josselin Mouette)
+
+2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
+
+       * configure.in: Fix comment for --with-included-loaders.  That option
+       affects builds with module loading enabled too.
+
+2006-01-08  Peter Teichman  <peter@novell.com>
+
+       * gtk/gtkfilechooserdefault.c:
+       * gtk/gtkfilechooserprivate.h:
+       * gtk/gtkfilechoosersettings.c:
+       * gtk/gtkfilechoosersettings.h:
+       Save the expanded state of the folder browser with the file
+       chooser settings.  Resolves the expander portions of (#153828,
+       Lemmit Kaplinski)
+
+2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
+       Don't leak the icon pixbuf after setting it to the image menu
+       item.  Found by Paolo Borelli.
+
+2007-01-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't 
+       corrupt memory when faced with paths with ridiculously
+       large indices. Found by the GTKVTS test suite.  
+
+2007-01-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmodules.c (_gtk_modules_init): Set 
+       default_display_opened before loading modules.  (#393102,
+       Brian Cameron)
+2007-01-07  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
+       Call text_window_realize() with the correct parameters.
+       (#393813, Yevgen Muntyan)
+
+2007-01-07  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkstatusbar.c: Move docs inline, and expand them 
+       a bit.
+
+2007-01-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtklabel.c: Make line wrapping work with width-chars
+       and max-width-chars, and simplify the storage of wrap-width.
+       (#322580, Itai Bar-Haim)
+
+2007-01-06  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/cursor.bdf: New file. Downloaded from
+       freedesktop.org's webcvs. Slighly edited cursors "crosshair",
+       "diamond_cross", "draft_large", "gobbler" and "target" to fix
+       #392504. It is possible that the same end result could have been
+       achieved by tweaking bdfcursor.c instead.
+       
+       * gdk/win32/bdfcursor.c: Add optional debugging output.
+
+       * gdk/win32/xcursors.h: Regenerated.
+
+2007-01-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
+       menu labels.  (#393255, Michail Crayson)
+
+2007-01-05  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
+       == NULL.  (Fixes #392685, reported by Yevgen Muntyan).
+
+2007-01-05  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
+       invalidate nodes if the tree view is not realized. (#363147,
+       Carlos Garnacho, Miguel Cabrera).
+
+2007-01-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
+       account when drawing the background.  (#393166, Benjamin Berg)
+
+2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
+       again.
+
+2007-01-05  Carlos Garnacho  <carlosg@gnome.org>
+
+       * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
+       both scroll arrows when calculating size request in GTK_POS_LEFT or
+       GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
+
+2007-01-05  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
+       the right function (fix taken from maemo-gtk).
+
+2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gdk/gdkprivate.h:
+       * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
+       (gdk_draw_layout_with_colors):
+       * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
+       Avoid overflow when converting coordinates to Pango units. (#332266,
+       Jody Goldberg)
+
+2007-01-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
+       after realization of the popup window, so clamp node doesn't fail.
+       (#346616, Tommi Komulainen, patch by Kristian Rietveld).
+
+2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
+
+       * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
+       variable.
+
+2007-01-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/Makefile.am:
+       * gdk-pixbuf/Makefile.am:
+       * configure.in:
+       * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
+       (#392646, Yevgen Muntyan)
+
+2007-01-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * demos/gtk-demo/textscroll.c:
+       * gtk/gtkhandlebox.c:
+       * gtk/gtkcolorsel.c: Fix some compiler warnings.
+
+2007-01-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktextview.c: Rework the beep-on-uninserted-text
+       by calling the input method regardless of editability,
+       and beeping from the commit/preedit-changed handlers.
+       (#390514, Yevgen Muntyan)
+
+2007-01-03  Matthias Clasen  <mclasen@redhat.com>
+
+       Fix #332604, reported by Joe Wreschnig, patch
+       by Jan Arne Petersen and Behdad Esfahbod.
+
+       * gtk/gtklabel.c (gtk_label_size_allocate): Only
+       set the width of the layout when necessary.
+       (get_layout_location): Use pango_layout_get_pixel_extents()
+       instead of pango_layout_get_width().
+
 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
 
        * modules/printbackends/cups/gtkprintbackendcups.c