]> Pileus Git - ~andy/gtk/blobdiff - ChangeLog
Add gtk_label_set_line_wrap_mode, gtk_label_get_line_wrap_mode, and a
[~andy/gtk] / ChangeLog
index b03bd2fac52783ae38aa4e87cdcd983e734b2f80..f557a31b06d92944696ee7450cfb8452bc40075a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,490 @@
+2006-06-19  Alexander Larsson  <alexl@redhat.com>
+
+       * gtk/gtk.symbols:
+       * gtk/gtklabel.[ch]:
+       Add gtk_label_set_line_wrap_mode, gtk_label_get_line_wrap_mode, and
+       a wrap-mode property that lets you set the PangoWrapMode.
+
+2006-06-19  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprinter-private.h: 
+       * gtk/gtkprinter.c (_gtk_printer_get_options): 
+       * gtk/gtkprintbackend.h: Add a capabilities argument to the 
+       printer_get_options method and to the _gtk_printer_get_options
+       function
+       
+       * modules/printbackends/lpr/gtkprintbackendlpr.c 
+       (lpr_printer_get_options): 
+       * modules/printbackends/pdf/gtkprintbackendpdf.c 
+       (pdf_printer_get_options): 
+       * modules/printbackends/cups/gtkprintbackendcups.c 
+       (cups_printer_get_options): 
+       * gtk/gtkprintunixdialog.c (selected_printer_changed): Adjust
+       callers and implementations.
+
+       * gtk/gtkprintjob.h: Add a GENERATE_PS capability. 
+       * gtk/gtkprintunixdialog.c (is_printer_active): And use it here.
+
+2006-06-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/testnouiprint.c (main): Don't open a display connection.
+
+       * gtk/gtkprintbackend.c (gtk_print_backend_load_modules): Make
+       this work without a display connection.  (339702, Alexander Larsson)
+
+       * gtk/gtkwindow.c (gtk_window_move): Small doc addition. 
+       (#345275, Behdad Esfahbod)
+
+2006-06-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/pdf/gtkprintbackendpdf.c:
+       * modules/printbackends/lpr/gtkprintbackendlpr.c: Fix a typo:
+       s/Extention/Extension/. 
+       
+       * gtk/gtkprintunixdialog.c: Clean up the handling of 
+       printer-specific options. There is just one extension point on the
+       main tab now, and all options in the GtkPrintDialogExtension
+       group are put there. 
+
+       * gtk/gtkprinteroption.h: 
+       * gtk/gtkprinteroption.c: Add GTK_PRINTER_OPTION_TYPE_ALTERNATIVE
+       which is semantically the same as PICKONE, but is intended to 
+       show all options all the time.
+       
+       * gtk/gtkprinteroptionwidget.c: Implement ALTERNATIVE as radio
+       group.
+
+2006-06-16  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/cups/gtkprintbackendcups.c:
+       * modules/printbackends/lpr/gtkprintbackendlpr.c: Use a stock icon
+       for printers.
+
+       * gtk/gtkprintunixdialog.c (add_option_to_table): Don't grow
+       additional columns.
+
+       * gtk/gtkprintbackend.h: Add a GtkPrintSettings parameter to the
+       printer_create_cairo_surface method.
+       
+       * modules/printbackends/pdf/gtkprintbackendpdf.c: 
+       * modules/printbackends/cups/gtkprintbackendcups.c: 
+       * modules/printbackends/lpr/gtkprintbackendlpr.c: 
+       * gtk/gtkprinter.c (_gtk_printer_create_cairo_surface): 
+       * gtk/gtkprinter-private.h: 
+       * gtk/gtkprintjob.c (gtk_print_job_get_surface): Adapt all users.
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
+       leak match data.  (#345107,  Christian Weiske)
+
+       * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict
+       label out of the button box.  (#339456, Christian Persch)
+
+       * gtk/gtksizegroup.c (compute_dimension): Ignore unmapped widgets
+       when ignore_hidden is TRUE.  (#344707, Christian Persch)
+
+       * configure.in: Require cvs glib.
+
+       * gtk/gtkprintoperation-unix.c: 
+       (_gtk_print_operation_platform_backend_create_preview_surface): 
+       Don't use a temporary directory for preview files, since it
+       is not clear who cleans it up. Instead, use g_mkstemp() directly
+       to create a temp pdf file, and make the preview app responsible
+       for cleaning it up.
+
+       * gtk/gtkprintbackend.c: Move the registration of the 
+       gtk-print-preview-command setting from gtkprintbackend.c to 
+       gtkprintoperation-unix.c, to make sure it is registered before
+       the first use. Also, document the two settings.
+
+       * tests/print-editor.c: Add a "Preview" menu item.
+
+       * gtk/gtkprintoperation-unix.c (handle_print_response): When starting
+       a preview from the print dialog, set the action to PREVIEW.
+
+       * gtk/gtkprintoperation.c: Cosmetic changes.
+
+2006-06-16 Matthias Clasens  <mclasen@redhat.com>
+
+       * gtk/gtkprintoperation-unix.c: Mark the preview filename
+       as translatable (#345093, Christian Persch)
+
+Fri Jun 16 11:49:53 2006  Tim Janik  <timj@imendio.com>
+
+       * fixed #337882 by applying patches from Tommi Komulainen:
+
+       * gtk/gtkprogressbar.c:
+       (gtk_progress_bar_paint_activity):
+       (gtk_progress_bar_get_activity): Move activity bar offset and size
+       calculations to separate function.
+       (gtk_progress_bar_paint_text): Allow caller to specify offset for the
+       prelight part in addition to width.
+       (gtk_progress_bar_paint): Paint the text also in activity mode, #337882.
+
+       * gtk/gtkprogressbar.c: (gtk_progress_bar_paint_text): Paint the
+       prelighted text on top of the normal rather than side by side, to
+       simplify painting text in activity mode.
+
+2006-06-16  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/cups/gtkprintbackendcups.c: Include
+       gtkprinter-private.h  (#345038, Christian Persch)
+2006-06-15  Matthias Clasen  <mclasen@redhat.com>
+
+       * modules/printbackends/pdf/gtkprintbackendpdf.c: Use the
+       stock floppy icon.
+
+       * gtk/gtkprintoperation-unix.c: Set the GENERATE_PDF capability
+       when creating a print dialog.  (noted by Yevgen Muntyan)
+
+2006-06-15  Carlos Garnacho  <carlosg@gnome.org>
+
+       * gtk/gtknotebook.c (gtk_notebook_motion_notify): use
+       gdk_window_get_pointer() to get pointer coordinates, but limit its
+       calls to a maximum of 45 times per second for not being too
+       CPU/network abusive. stop drag operation if (event->state &
+       GDK_BUTTON1_MASK) is FALSE to prevent tabs from "adhering" to the
+       pointer. Fixes bug #341571
+       (gtk_notebook_calculate_tabs_allocation), (gtk_notebook_button_press):
+       get rid of the "tab jumps to pointer" sensation when beginning a drag
+       by using the pointer offset in the tab when the drag begins as an
+       anchor.
+       (gtk_notebook_redraw_tabs_union): remove, it wasn't worth the little
+       performance gain and could draw artifacts under some circumstances.
+       (gtk_notebook_drag_end): do not reparent the detached tab label until
+       the animation has ended.
+
+2006-06-15  Bastien Nocera  <hadess@hadess.net>
+
+       * configure.in: Update the Cairo requirements (#345008)
+
+2006-06-15  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprintoperationpreview.c 
+       (gtk_print_operation_preview_base_init): Fix errors in the
+       signal definitions.  (#344891, Marko Anastasov)
+
+2006-06-14  Michael Emmel  <mike.emmel@gmail.com>
+       * configure.in: updated mininum  dfb to 0.9.24
+       * gdk/directfb/gdkdirectfb.h: added more directfb wrapper functions
+       * gdk/directfb/gdkdrawable-directfb.c: wrapper functions and patch from 
+        Claudio Ciccani <klan@users.sf.net> to use a subsurface for cairo
+    * gdk/directfb/gdkvisual-directfb.c: changed initalization sequence
+    * gdk/directfb/gdkwindow-directfb.c: corrected reparent for toplevels
+    * gdk/directfb/gdkdisplay-directfb.c: changed initilization sequence
+       to a more rational order
+
+2006-06-14  Federico Mena Quintero  <federico@novell.com>
+
+       * perf/gtkwidgetprofiler.c (gtk_widget_profiler_profile_expose):
+       New function; it lets us time the expose sequence of a widget.
+       (create_widget): New helper function.
+       (map_widget): New helper function.
+       (profile_boot): Use create_widget() instead of doing it by hand.
+       (profile_map_expose): Use map_widget() instead of doing it by hand.
+
+       * perf/main.c (main): Call gtk_widget_profiler_profile_expose() as well.
+
+2006-06-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkpagesetupunixdialog.c: Use GKeyFile for the custom
+       filename storage.  (#344867, Christian Persch)
+
+       * gtk/gtkselection.c: Call init_atoms before using atoms
+       in several functions.  (#344743, John Finlay)
+
+       * gtk/gtktreeview.c (gtk_tree_view_set_search_position+_func):
+       Allow NULL to reset to default.  (#344838, John Finlay)
+
+       * gtk/gtkprintjob.h: Collect booleans into a bitfield
+       (#344765, Christian Persch)
+
+2006-06-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+2006-06-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * === Released 2.9.3 ===
+
+       * NEWS: Updates
+       
+       * gtk/gtk.symbols: Add gtk_tree_view_grid_lines_get_type.
+
+       * configure.in: Set interface age to 0
+
+2006-06-12  Kristian Rietveld  <kris@imendio.com>
+
+       Introduce grid and tree lines in GtkTreeView. (#106406,
+       Martyn Russell).
+
+       * gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
+
+       * gtk/gtkenums.h: add GtkTreeViewGridLines.
+
+       * gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
+       (gtk_tree_view_get_grid_lines),
+       (gtk_tree_view_set_enable_tree_lines),
+       (gtk_tree_view_get_enable_tree_lines): new API,
+       (gtk_tree_view_class_init): new properties,
+       (gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
+       (gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
+       (gtk_tree_view_bin_expose): implement.
+
+       * gtk/gtk.symbols: update.
+
+2006-06-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprintunixdialog.c (is_printer_active): Use 
+       gtk_printer_accepts_ps here.
+
+       * modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init):
+       Mark the virtual "Print to PDF" printer as not accepting PS.
+
+       * gtk/gtk.symbols:
+       * gtk/gtkprinter.h: 
+       * gtk/gtkprinter.c: Add two new properties accepts-pdf and
+       accepts-ps (with getters) to allow learning supported formats.
+
+       * gtk/gtkprintjob.h: Add a GTK_PRINT_CAPABILITY_GENERATE_PDF
+       capability.
+       
+       * gtk/gtkprintunixdialog.c: Use it here to hide "Print to PDF" 
+       from the printer list.  (#339592, Christian Persch)
+       
+       * gtk/gtkfilechooserdefault.c: Add support for pasting
+       filenames into the filechooser.  (#153212, Bastian Nocera)
+
+2006-06-12  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreemodelfilter.[ch]
+       (gtk_tree_model_filter_convert_child_iter_to_iter),
+       (gtk_tree_model_filter_convert_child_path_to_path): report status
+       in return value instead of spewing assertions.  (#335729, Yevgen
+       Muntyan).
+
+2006-06-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize): 
+       Clean up user data.  (#344624, Christian Weiske)
+
+       * NEWS: Updates
+
+       * gtk/gtkprintjob.c:
+       * gtk/gtkprintbackend.c: 
+       * gtk/gtkpagesetupunixdialog.c: 
+       * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
+
+2006-06-11  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkassistant.c: Add an accessible implementation in
+       order to make the buttons visible to a11y tools.  (pointed out
+       by David Malcolm, #343945)
+
+       * gtk/gtkprintoperation-win32.c: Store scale as a percentage.
+       (#344560, Christian Persch)
+
+       * gtk/gtkprogressbar.h: Add a dirty flag to GtkProgressBar.n/ 
+       * gtk/gtkprogressbar.c: Defer updating of the offscreen
+       pixmap until expose.  (#344543, Chris Wilson)
+
+2006-06-11  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * gtk/gtkrecentchooserdefault.c
+       (get_is_recent_filtered):
+       * gtk/gtkrecentchoosermenu.c
+       (get_is_recent_filtered):
+       Do not leak the groups string vector. (#344607,
+       John Finlay)
+
+2006-06-11  Tor Lillqvist  <tml@novell.com>
+
+       * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739,
+       Kazuki Iwamoto)
+
+       * gdk/win32/gdkproperty-win32.c (gdk_property_change): Convert \n
+       to \r\n also when storing CF_UNICODETEXT (UTF-16) in the
+       Clipboard. (#344496)
+
+2006-06-10  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtkrecentchooserwidget.c 
+       (gtk_recent_chooser_widget_new_for_manager):
+       * gtk/gtkrecentchoosermenu.c
+       (gtk_recent_chooser_menu_new_for_manager): 
+       Allow NULL to mean the default manager.  (#344530, 
+       John Finlay)
+
+       * gtk/gtkprintoperation-unix.c (page_setup_data_free):
+       Check if rdata->page_setup is set before unreffing it. 
+       (#344518, Christian Persch)
+
+       * gtk/gtkprintoperation.h: Remove an extra comma.  (#344528, 
+       Elijah Newren)
+
+       * modules/printbackends/gtkprintbackendpdf.c 
+       (gtk_print_backend_pdf_print_stream): Use the passed in 
+       destroy notify.  (#344513, Christian Persch)
+
+       * configure.in: Require cairo 1.1.7
+
+       * gtk/gtkprintoperation.c:
+       * modules/printbackends/pdf/gtkprintbackendpdf.c: Use
+       cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
+       (#344512, Elijah Newren)
+
+       * gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
+       gdk work.  (#344386, Masatake Yamamoto)
+
+       * gtk/gtkprintoperation.c: Register create_custom_widget as 
+       an object-returning signal.  (#344505, Marko Anastasov, patch
+       by Christian Persch)
+
+       * gtk/gtkmarshalers.list: Add the right marshaller.
+
+       * gtk/gtk.symbols:
+       * gtk/gtkprintjob.[hc]: Register GtkPrintCapabilities as a
+       flags type.  (#344504, Marko Anastasov)
+
+2006-06-09  Benjamin Berg  <benjamin@sipsolutions.net>
+
+       * gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
+       into account when placing submenus (#344290)
+
+2006-06-09  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkrange.c: added new style properties "trough-side-details"
+       and "draw-trough-under-steppers" and fixed the "stepper-spacing"
+       style property. Fixes bugs #342339 and #342249.
+
+       "draw-trough-under-steppers", when set to FALSE, starts trough
+       drawing next to the steppers instead of drawing the trough "below"
+       (around) the steppers. If "stepper-spacing" is set to any value
+       larger than zero, "draw-trough-under-steppers" is set to FALSE
+       automatically to avoid rendering an area that looks clickable but
+       isn't.
+
+       (gtk_range_calc_layout): honor draw-trough-under-steppers.
+       Don't reserve stepper-spacing on sides of the range that don't
+       have steppers.
+
+       (gtk_range_expose): changed drawing accordingly. Implement
+       "trough-side-details" which enables drawing of the upper and lower
+       parts of the trough with different details. This is useful for
+       theme engines which want to draw these parts differently.
+
+       (coord_to_value): correctly take all rendering options into
+       account. stepper-spacing > 0 caused jumping and otherwise
+       strangely behaving ranges before.
+
+       (other functions): changed accordingly.
+
+2006-06-09  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
+       Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
+       DeleteDC() on DCs acquired with CreateCompatibleDC() (for
+       bitmaps). According to MSDN, this is the correct thing to do, even
+       if always using DeleteDC() seems to have worked fine in
+       practice. (#337491, Chris Wilson)
+
+2006-06-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/testprint.c: Update for api changes.
+
+       * gtk/gtkprintoperation.c: Fix some copy-and-paste errors,
+       and rename the pdf-target property to export-filename.
+
+       * gtk/gtkfilechooserdefault.c: Turn off profiling code.
+
+       * tests/print-editor.c: Update for api changes.
+
+       * gtk/gtk.h: Include gtkprintoperationpreview.h
+
+       * gtk/gtkprintoperationpreview.c (gtk_print_operation_preview_is_selected): 
+       Use g_return_val_if_fail (#344288, Kazuki Iwamoto)
+
+       * gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here.
+
+       * gtk/gtkprintunixdialog.c: 
+       * gtk/gtkprintoperation-unix.c: 
+       * gtk/gtkprintjob.c: 
+       * gtk/gtkprintbackend.c: Instead include it here.
+
+       * gtk/gtk.symbols: 
+       * gtk/gtkprintoperation.h: 
+       * gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
+
+2006-06-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkprintoperation.h (GtkPrintOperationResult): Get
+       rid of GTK_PRINT_OPERATION_RESULT_PREVIEW.
+       
+       * gtk/gtkprintoperation-unix.c: 
+       * gtk/gtkprintoperation.c: Update all users.
+
+2006-06-08  Tor Lillqvist  <tml@novell.com>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate):
+       [WM_WINDOWPOSCHANGED] Replace identical code as in
+       handle_configure_event() with call to that function.
+       [WM_SIZING] Fix implementation of aspect ratio hints. (#344244)
+       The hints are for the geometry of the client area, not of the
+       window including decorations. Improve resizing behaviour in the
+       presence of aspect hints, to be more in line with typical X window
+       managers.
+
+2006-06-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktoolbutton.c (gtk_tool_button_style_set): Give
+       GtkToolButton the same treatment.
+
+       * gtk/gtkbutton.c (gtk_button_style_set): Don't call
+       construct_child here, since some apps make assumptions 
+       about the lifecycle of the constructed label.  
+
+2006-06-08  Alexander Larsson  <alexl@redhat.com>
+
+       * gtk/gtkprintoperation-unix.c (finish_print):
+       Fix up unix fallout from previous change.
+
+2006-06-08  Alexander Larsson  <alexl@redhat.com>
+
+       * gtk/gtkprintoperation-win32.c:
+       Update windows to build with new APIs and first cut
+       at preview work.
+       
+       * gtk/gtkprintoperation-private.h:
+       * gtk/gtkprintoperation-unix.c:
+       * gtk/gtkprintoperation.c
+       Various updates needed when making the preview work on win32.
+
+       * tests/print-editor.c:
+       Print, don't preview.
+
+2006-06-07  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkentry.c (popup_targets_received): Make Delete
+       menuitem insensitive if entry is not editable.  (#344232, 
+       Milosz Derezynski)
+
+       * gtk/gtkprintoperation.c: Add some docs. 
+
+       * gtk/gtk.symbols: Add gtk_print_operation_set_allow_async.
+
+       * gtk/gtkprintoperation.h: Remove gtk_print_operation_run_async.
+
+       * tests/testnotebookdnd.c: Update callers.
+
+       * gtk/gtknotebook.h:
+       * gtk/gtknotebook.c (gtk_notebook_set_window_creation_hook):
+       Add a destroy notify for the callback data.  (#344209, 
+       Murray Cumming)
+
+2006-06-07  Jürg Billeter  <j@bitron.ch>
+
+       * gtk/Makefile.am: Fix building gtkbuiltincache.h without system GTK+.
+
 2006-06-07  Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtk.symbols: