1 2007-05-31 Mathias Hasselmann <mathias.hasselmann@gmx.de>
3 * gtk/gtkfilechooserdialog.c, tests/autotestfilechooser.c: Reset
4 the internal response_requested flag, once the response triggered by
5 file_chooser_widget_response_requested has been processed (#347883).
7 2007-05-30 Richard Hult <richard@imendio.com>
9 * gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this
10 function, bug #438440.
12 2007-05-30 Tor Lillqvist <tml@novell.com>
14 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the
15 multi-monitor offset from x and y before setting up the rectangle
16 for ClipCursor(). Fixes #442326.
18 2007-05-30 Matthias Clasen <mclasen@redhat.com>
20 * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
21 if the size changed. (#418047, Alex Graveley)
23 2007-05-30 Simos Xenitellis <simos@gnome.org>
25 * gdk/gdkkeysyms-update.pl: Updated script to new upstream
26 location of keysymdef.h (#442183)
28 2007-05-30 Emmanuele Bassi <ebassi@gnome.org>
30 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Return
31 after setting the file chooser entry with the current selection.
33 2007-05-30 Matthias Clasen <mclasen@redhat.com>
35 * gtk/gtkiconcachevalidator.c: Correct the handling
36 of display names. (#441767, Marcin Bachry)
38 2007-05-30 Xan Lopez <xan@gnome.org>
40 * gtk/gtknotebook.c (gtk_notebook_set_current_page): Small cleanup.
43 2007-05-28 Cody Russell <bratsche@gnome.org>
45 * gdk/win32/xcursors.h: Fix initialization of last item. (#440511)
47 2007-05-28 Richard Hult <richard@imendio.com>
49 * gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
50 (get_ancestor_coordinates_from_child): Break out code that was
51 repeated into separate functions and call them instead.
52 (find_window_for_mouse_nsevent): Break out this from
53 find_window_for_nsevent to make the code clearer.
54 (find_window_for_nsevent): Use the above and fix the returned
55 coordinates in the process so that they are always relative the
56 found window, both for the normal case and during grabs. Still
57 needs fixing for the case where we get nsevents for a window other
58 than than grab window during grabs.
60 2007-05-28 Richard Hult <richard@imendio.com>
62 * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
63 we need both press and release in the mask to trigger implicit
66 2007-05-28 Richard Hult <richard@imendio.com>
68 * gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
69 all the grab state, to help debugging.
70 (gdk_event_translate): Use pointer_ungrab_internal instead of
71 duplicating the code here.
73 2007-05-28 Richard Hult <richard@imendio.com>
75 * gdk/quartz/gdkprivate-quartz.h:
76 * gdk/quartz/gdkwindow-quartz.c (find_child_window_helper)
77 (_gdk_quartz_window_find_child): Refactored version of
78 _gdk_quartz_window_find_child_by_point, that doesn't return any
79 coordinates as the users of this function already have the
80 coordinates and need to translate them differently.
81 (_gdk_windowing_window_get_pointer): Fixup coordinate translation.
82 (_gdk_windowing_window_at_pointer): Likewise.
84 2007-05-28 Richard Hult <richard@imendio.com>
86 * gdk/quartz/gdkevents-quartz.c
87 (find_window_interested_in_event_mask): Don't traverse beyond the
88 toplevel of the passed in window.
90 2007-05-28 Richard Hult <richard@imendio.com>
92 * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set
93 a size for the root window.
95 2007-05-28 Richard Hult <richard@imendio.com>
97 * gdk/quartz/gdkwindow-quartz.c: Add comments about what various
98 coordinates are relative to.
100 2007-05-28 Carlos Garnacho <carlos@imendio.com>
102 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed_recurse):
103 Add back variable declaration removed in r17958.
105 2007-05-28 Carlos Garcia Campos <carlosgc@gnome.org>
107 * gtk/gtkprinter.[ch]: Add new capability
108 GTK_PRINT_CAPABILITY_NUMBER_UP.
109 * docs/reference/gtk/tmpl/gtkprintunixdialog.sgml:
110 * gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities):
111 * modules/printbackends/file/gtkprintbackendfile.c:
112 (file_printer_get_options), (file_printer_get_settings_from_options):
113 * modules/printbackends/cups/gtkprintbackendcups.c:
114 (cups_printer_get_capabilities): Add a new print capability to specify
115 whether print dialog will offer printing multiple pages per sheet. (#398414)
117 2007-05-28 Matthias Clasen <mclasen@redhat.com>
119 * gtk/gtktoolbar.h: Actually undeprecate
120 gtk_toolbar_[un]set_icon_size. (#314172. Yevgen Muntyan)
122 2007-05-28 Matthias Clasen <mclasen@redhat.com>
124 * gtk/gtkwidget.c: Document some more signals
126 * gtk/gtktextview.c: Improve docs
128 2007-05-27 Tor Lillqvist <tml@novell.com>
130 * configure.in (GDK_EXTRA_LISB): Drop bogus -user32 switch. Was
131 supposed to be -luser32, but he "l" was missing. But nobody has
132 noticed, so presumably unnecessary.
134 2007-05-26 Matthias Clasen <mclasen@redhat.com>
136 * gtk/gtkprintoperationpreview.c: Improve docs
138 2007-05-26 Matthias Clasen <mclasen@redhat.com>
140 * gtk/gtkentry.c: Move docs inline.
142 2007-05-26 Matthias Clasen <mclasen@redhat.com>
144 * gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments
145 that cause problems when building the docs.
147 2007-05-26 Matthias Clasen <mclasen@redhat.com>
149 * gdk/x11/gdkdisplay-x11.c: Update docs
150 * gdk/gdk.c: Update docs
151 * gdk/directfb/gdkwindow-directfb.c: Remove duplicate doc comments.
152 * gdk/x11/gdkwindow-x11.c: Fix doc formatting
154 2007-05-26 Matthias Clasen <mclasen@redhat.com>
157 * gtk/gtkstatusicon.c:
158 * gtk/gtkscalebutton.c:
159 * gtk/gtkrecentaction.c:
162 * gtk/gtkprintsettings.c:
163 * gtk/gtkpapersize.c:
164 * gtk/gtkpagesetup.c:
166 * gtk/gtkentrycompletion.c: Document new api
168 2007-05-26 Richard Hult <richard@imendio.com>
170 * gtk/gtkprinter.c: (gtk_printer_set_location): Fix typo to get the
173 2007-05-26 Matthias Clasen <mclasen@redhat.com>
175 * configure.in: Require gtk-doc 1.6, for signal and property links.
178 * gtk/gtkcontainer.c:
185 * gtk/gtkwidget.c: Documentation improvements, link signals
186 and properties where it makes sense.
188 2007-05-25 Matthias Clasen <mclasen@redhat.com>
191 * gtk/gtktextbuffer.c: Formatting fixes.
193 2007-05-25 Matthias Clasen <mclasen@redhat.com>
195 Allow to separate GtkTextMark creation from buffer insertion.
196 (#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
198 * gtk/gtktextmarkprivate.h:
199 * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to
200 create a GtkTextMark.
202 * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New
203 function to add an existing mark to a buffer.
205 * gtk/gtktextbtree.c: Allow adding existing marks.
207 * gtk/gtk.symbols: Add new functions.
209 * tests/testtextbuffer.c: Add some tests for new mark
212 2007-05-25 Xan Lopez <xan@gnome.org>
214 * gtk/gtkaction.c: (gtk_action_set_short_label):
215 Use private->data->short_label to update the proxies. (#440780)
217 2007-05-25 Richard Hult <richard@imendio.com>
219 * gdk/quartz/gdkimage-quartz.c: (_gdk_quartz_image_copy_to_image):
220 Implement copying from a window, part of bug #348493.
222 2007-05-25 Matthias Clasen <mclasen@redhat.com>
224 * gtk/gtkprintoperation-unix.c (unix_end_run): Hold a
225 refence on the print operation until gtk_print_job_send()
226 is done. (#440040, Chris Vine)
228 2007-05-25 Matthias Clasen <mclasen@redhat.com>
230 * gtk/gtkiconview.c (gtk_icon_view_accessible_ref_child):
231 Don't crash and don't leak. (#439565, Pedro Villavicencio)
233 2007-05-25 Matthias Clasen <mclasen@redhat.com>
235 * gtk/gtkiconfactory.c: Improve a warning
236 * gtk/gtkicontheme.c (gtk_icon_info_load_icon): Always
237 set the error when returning NULL. (#440982, Carlos Garcia
240 2007-05-25 Michael Natterer <mitch@imendio.com>
242 Merge fix from maemo-gtk:
244 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus
245 also if the menu item we're entering is already selected. Also, it
246 makes no sense to forward the event to the parent menu shell if we
247 are entering a menu item of *this* menu shell.
249 2007-05-24 Matthias Clasen <mclasen@redhat.com>
251 * gtk/stock-icons/*: Make sure all svg icons are added
254 2007-05-24 Matthias Clasen <mclasen@redhat.com>
256 * modules/input/Makefile.am: Fix broken DESTDIR support
258 2007-05-24 Michael Natterer <mitch@imendio.com>
260 * gtk/gtktooltip.c (find_widget_under_pointer): apply patch from
261 Bogdan Nicula which fixes a crash on GdkWindows which have no
262 GtkWidget as user_data (bug #440890).
264 2007-05-24 Matthias Clasen <mclasen@redhat.com>
266 * configure.in: Bump version
268 * === Released 2.11.0 ===
272 2007-05-23 Matthias Clasen <mclasen@redhat.com>
275 * gdk/x11/xsettings-common.h:
276 * gdk/gdk.symbols: Add some missing symbols.
278 * gtk/paper_names_offsets.c:
279 * gtk/gen-paper-names.c: Make variables static.
281 * gtk/gtktooltip.[hc]:
282 * gtk/gtkvolumebutton.c:
283 * gtk/gtkscalebutton.c: Fix up symbol aliasing.
285 2007-05-23 Yevgen Muntyan <muntyan@tamu.edu>
287 * gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
289 * gtk/gtkhandlebox.c (gtk_handle_box_paint):
290 * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
291 * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
292 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
293 * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
294 * gtk/gtkpreview.c (gtk_preview_finalize):
295 * gtk/gtknotebook.c (gtk_notebook_set_group_id):
296 * tests/testnotebookdnd.c (window_creation_function):
297 * tests/testiconview.c (do_popup_menu):
298 Fixed some compiler warnings (#440689).
300 2007-05-23 Kristian Rietveld <kris@imendio.com>
302 * gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
303 from the window they were received on to the event widget's window;
304 correct for no-window widgets after that, bail out on failure. This
305 makes the coordinates given by GtkWidget::query-tooltip truly relative
306 to widget->window. (#435188).
308 * gtk/gtkwidget.c (gtk_widget_class_init): update docs for
309 GtkWidget::query-tooltip.
311 2007-05-22 Behdad Esfahbod <behdad@gnome.org>
313 * gtk/gtkprintcontext.c (gtk_print_context_finalize),
314 (_gtk_print_context_new), (_gtk_print_context_get_fontmap),
315 (gtk_print_context_set_cairo_context),
316 (gtk_print_context_get_pango_fontmap),
317 (gtk_print_context_create_pango_context):
318 Don't create new pango fontmaps. Use the default pangocairo
319 fontmap and set resolution on PangoContext instead. (#417707)
321 2007-05-21 Richard Hult <richard@imendio.com>
323 * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Set the
326 * gdk/quartz/gdkscreen-quartz.c: Use the autorelease pool macros.
328 2007-05-21 Michael Natterer <mitch@imendio.com>
330 * gtk/gtkcombobox.c (gtk_combo_box_set_model): revert last change.
332 Mon May 21 13:58:32 2007 Tim Janik <timj@imendio.com>
334 * gtk/gtkcombobox.c (gtk_combo_box_set_model): removed redundant check.
336 2007-05-21 Tor Lillqvist <tml@novell.com>
338 * gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with
341 2007-05-20 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
343 * gdk/directfb/gdkwindow-directfb.c:
344 * gdk/directfb/gdkdirectfb.h: Updated minimum DirectFB version
345 required to enable gdk_directfb_create_child_window.
348 2007-05-20 Bastien Nocera <hadess@hadess.net>
353 * gtk/gtkvolumebutton.[ch]: Add the GtkVolumeButton widget,
354 a button that pops up a scale when clicked (Closes: #415775)
356 * tests/testvolumebutton.c: Add a test program for the
359 2007-05-19 Bastien Nocera <hadess@hadess.net>
361 reviewed by: Matthias Clasen <mclasen@redhat.com>
366 * gtk/gtkscalebutton.[ch]: Add the GtkScaleButton widget,
367 a button that pops up a scale when pressed
369 2007-05-19 Matthias Clasen <mclasen@redhat.com>
372 * gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id
373 in favour of new functions gtk_notebook_[gs]et_group, which
374 takes a pointer as group identifier and makes it easier to
375 avoid group id collisions. (#386930, Christian Hammond)
377 * tests/testnotebookdnd.c: Use new grouping api.
379 2007-05-18 Matthias Clasen <mclasen@redhat.com>
381 * gtk/gtkactiongroup.c: Warn and refuse to add actions with
382 duplicate names. (#150877, Tommi Komulainen, patch by Kalle
385 2007-05-18 Matthias Clasen <mclasen@redhat.com>
388 * gtk/gtkentry.[hc]: Add gtk_entry_[gs]et_cursor_hadjustment()
389 to allow automatic scrolling in response to cursor movements
390 in the entry. (#438651, Nate Nielsen)
392 2007-05-18 Matthias Clasen <mclasen@redhat.com>
394 * gtk/gtktextview.c: Add a toggle-cursor-visibility keybinding
395 signal, and bind F7 to it. (#380048, Tim Miao)
397 2007-05-18 Matthias Clasen <mclasen@redhat.com>
400 * gtk/gtkicontheme.h:
401 * gtk/gtkicontheme.c: Add a function to look up an icon from
402 a list of icon names. (#396901, Luca Ferretti)
404 2007-05-18 Emmanuele Bassi <ebassi@gnome.org>
406 * gtk/gtkrecentchooserdefault.c:
407 (gtk_recent_chooser_default_dispose): Reset the state on dispose.
409 (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY
410 is a valid state, if the main loop never had the chance to
411 properly spin at least once. (#438671)
413 2007-05-18 Emmanuele Bassi <ebassi@gnome.org>
415 * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark
416 string for translation. (#439437)
418 2007-05-18 Matthias Clasen <mclasen@redhat.com>
420 * gtk/gtkwindow.c (gtk_window_set_transient_for): Fix
421 doc typo. (#438100, Vincent Untz)
423 2007-05-18 Michael J. Chudobiak <mjc@cvs.gnome.org>
427 * configure.in: Bump libtiff requirement to 3.6.0, by requiring
428 presence of TIFFReadRGBAImageOriented.
430 * gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf):
431 Preserve pixbuf options when generating a new scaled pixbuf.
433 * io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load),
434 (gdk_pixbuf__jpeg_image_load_increment): Read the exif
435 orientation tag and associate it with the "orientation" pixbuf
436 option. Renders libexif unnecessary in some applications.
438 * io-tiff.c: (tiff_image_parse): Read the tiff orientation tag,
439 compensate for the partial rotations performed by libtiff,
440 and generate an "orientation" option for the pixbuf.
442 2007-05-18 Carlos Garnacho <carlos@imendio.com>
444 * gtk/gtkexpander.c: remove c++ style comment.
446 2007-05-18 Carlos Garnacho <carlos@imendio.com>
448 Make combobox menu popdown keybindable (#433593)
450 * gtk/gtkcombobox.c (gtk_combo_box_class_init): Add "popdown" binding
451 signal and keybindings.
452 (gtk_combo_box_real_popdown): Added, "popdown" keybinding signal
454 (gtk_combo_box_menu_key_press):
455 (gtk_combo_box_list_key_press): forward the event to the combobox if
456 it wasn't handled by the menu.
458 2007-05-18 Carlos Garnacho <carlos@imendio.com>
460 * gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion)
461 (gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run
462 their DnD handlers if the target doesn't match with anything the
463 notebook manages. (#350665, Joakim Lundborg).
465 2007-05-18 Carlos Garnacho <carlos@imendio.com>
467 Refactor GtkFileChooserDialog sizing.
469 * gtkfilechooserembed.[ch] (delegate_get_resizable_hints)
470 (_gtk_file_chooser_embed_get_resizable_hints):
471 s/resizable_hints/resizable/, return just one boolean value to
472 determine whether the filechooser should be resizable or not.
474 * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove
475 variables related to the GtkFileChooserEmbed get_default_size() and
476 get_resizable() implementations.
477 (struct GtkFileChooserDefault): Move default size management here.
479 * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate):
480 Added, store currently allocated size to calculate default size later.
481 (gtk_file_chooser_default_get_resizable_hints):
482 s/resizable_hints/resizable/.
483 (gtk_file_chooser_default_set_property): Reload settings if the file
484 chooser action changes, this way the save expander state will be known
485 before mapping the window, avoiding wrong window positioning and
486 flickering. (#424299, #424309)
487 (find_good_size_from_style): Only get size from style if it wasn't set
489 (gtk_file_chooser_default_get_default_size): return default size based
490 on stored default size and preview/extra widget sizes.
492 * gtkfilechooserdialog.c (file_chooser_widget_update_hints)
493 (file_chooser_widget_realized_size_changed)
494 (file_chooser_widget_unrealized_size_changed): simplified to
495 (file_chooser_widget_size_changed): set window size and resizability
496 based on the GtkFileChooserEmbed interface implementation. (Bug
497 #420285, Tomeu Vizoso)
498 (gtk_file_chooser_dialog_map): force a dialog size change, so it's
499 clamped for sure to the 75% of the screen size.
501 2007-05-18 Carlos Garnacho <carlos@imendio.com>
503 * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset
504 the brand new current page if there was none set previously. Fixes
505 #425138 (Reported by Michail Crayson). Some code simplifications.
506 (gtk_notebook_draw_arrow): code style fix.
508 2007-05-16 Matthias Clasen <mclasen@redhat.com>
510 * gtk/gtkpathbar.c: Add ATK names to the Up, Down, and Root
511 buttons. Keep the focus from vanishing when Up or Down arrows
512 become insensitive or invisible. (#357005, Patrick Wade)
514 2007-05-16 Brian Cameron <brian.cameron@sun.com>
516 * acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c,
517 gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c,
518 gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch],
519 gdk-pixbuf/pixops/timescale.c: Add Sun mediaLib support so that
520 hardware acceleration via mediaLib is enabled if mediaLib is
521 detected via configure. Enhancement request #344813. I was given
522 permission to commit in the bug report by Matthias Clasen.
523 * gdk/medialib.[ch]: New files added for mediaLib support.
524 * docs/reference/gdk-pixbuf/tmpl/scaling.sgml,
525 docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c: Add docs for
528 2007-05-15 Torsten Schoenfeld <kaffeetisch@gmx.de>
530 * gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
531 priv->free_platform_data to prevent gtk_print_operation_finalize()
532 from freeing the cairo surface a second time.
534 2007-05-14 Kristian Rietveld <kris@gtk.org>
536 * gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove
537 dangling semicolon, fixes the segfault ebassi was seeing earlier today
540 2007-05-14 Tristan Van Berkom <tvb@gnome.org>
542 * gtk/gtkaboutdialog.c: Functions: gtk_about_dialog_get/set_name()
543 were deprecated in favour of gtk_about_dialog_get/set_program_name(),
544 the GtkAboutDialog now uses the "program-name" property instead of
545 the conflicting "name" property (fixes bug 345822).
547 2007-05-14 Emmanuele Bassi <ebassi@gnome.org>
549 * configure.in: Add check for GNU extensions to ftw()/nftw().
551 * gtk/gtksearchenginesimple.c: Fix compilation on systems with
552 only POSIX-compliant ftw(). (#435797, based on a patch by
555 2007-05-14 Emmanuele Bassi <ebassi@gnome.org>
557 * gtk/gtkfilechooserdefault.c:
558 Convert the GtkTreeIter inside the sorting functions for the
559 search and recent modes. This doesn't yet fix the segfault when
560 clicking the 'Name' column in recent mode, though.
562 2007-05-14 Behdad Esfahbod <behdad@gnome.org>
564 * modules/input/gtkimcontextthai.c
565 (gtk_im_context_thai_filter_keypress):
566 Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
568 2007-05-14 Matthias Clasen <mclasen@redhat.com>
570 * gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel
571 as 2.12 addition. (#438131, Mart Raudsepp)
573 2007-05-14 Matthias Clasen <mclasen@redhat.com>
575 * gtk/gtkvseparator.c (gtk_vseparator_size_request): Fix
576 size requisition for wide vertical separators. (#438113,
579 2007-05-13 Emmanuele Bassi <ebassi@gnome.org>
581 * gtk/gtksearchenginesimple.c: Include <ftw.h> and use nftw() and
582 all the symbols defined in <ftw.h> conditionally.
584 2007-05-13 Cody Russell <bratsche@gnome.org>
586 * gdk/win32/gdkevents-win32.c: Only do the configure event context
587 iteration under WM_WINDOWPOSCHANGED instead of inside
588 handle_configure_event(). This fixes a bug that prevented window
589 contents from being redrawn after gtk_window_resize(). (#436721)
591 2007-05-12 Behdad Esfahbod <behdad@gnome.org>
593 * gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path
594 generation. (#437879, Eddie C. Dost)
596 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
598 GtkFileChooser search fixes and recent files support. (#435342)
600 * gtk/gtkfilechooserdefault.c: Support drag and drop for
601 adding shortcuts of folders when in search or recent files
604 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
606 GtkFileChooser search fixes and recent files support. (#435342)
608 * gtk/gtkfilechooserprivate.h:
609 * gtk/gtkfilechooserdefault.c: Follow the sorting order of
610 the GtkTreeView displaying the files list.
612 (shortcuts_get_index), (shortcuts_insert_separator),
613 (shortcuts_model_create), (shortcuts_combo_filter_func): Remove
614 the separator between the Search and the Recently Used shortcuts.
616 (list_select_func), (list_icon_data_func), (list_name_data_func),
617 (list_mtime_data_func): Update the sensitivity of the row
618 depending on the GtkFileChooserAction used.
620 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
622 GtkFileChooser search fixes and recent files support. (#435342)
624 * gtk/gtkfilechooserprivate.h:
625 * gtk/gtkfilechooserdefault.c: Update the contents of the
626 files list when changing the filter of the GtkFileChooserDefault
629 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
631 GtkFileChooser search fixes and recent files support. (#435342)
633 * gtk/gtkfilechooserdefault.c: Update the add bookmark button
634 sensitivity when in search or recent files mode, and allow
635 adding a bookmark for a folder.
637 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
639 GtkFileChooser search fixes and recent files support. (#435342)
641 * gtk/gtkfilechooserdefault.c: UI fixes in the Search mode: add
642 a mnemonic to the label, de-boldify the label's text and assign
643 focus to the search entry when switching to the search mode.
645 (list_name_data_func): Split the text in both search and recent
646 files mode: on the first line use the short name and on the
647 second line use the full path.
649 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
651 GtkFileChooser search fixes and recent files support. (#435342)
653 * gtk/gtkfilechooserprivate.h:
654 * gtk/gtkfilechooserdefault.c: Add support for showing the
655 recently used files list as a special shortcut item.
657 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
659 GtkFileChooser search fixes and recent files support. (#435342)
661 * gtk/gtkfilechooserdefault.c: Overall whitespace fixes and
662 indentation style consistency.
664 (list_row_activated): If the search hit is a folder, follow it
665 when activating the row, and switch back to browse mode.
667 (search_clear_model), (search_start_query),
668 (search_entry_activate_cb), (search_setup_widgets): Remember
669 the last query when switching between modes.
671 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
673 GtkFileChooser search fixes and recent files support. (#435342)
675 * gtk/gtkfilechooserdefault.c:
676 (_gtk_file_chooser_default_class_init): Add key binding for
677 the Search shortcut; default to MOD1+S.
679 (search_shortcut_handler): Handle the key binding.
681 (search_hit_get_info_cb), (search_add_hit), (search_clear_model),
682 (search_setup_model): Retrieve informations on the search hits
683 when adding them to the model.
685 (list_icon_data_func): Show the search hit icon.
687 2007-05-11 Michael Natterer <mitch@imendio.com>
689 * gtk/gtktextview.c (selection_motion_event_handler): call
690 gdk_event_request_motions(event) so selecting works with
691 XInput devices too. Spotted by Tommi Komulainen.
693 2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
695 * gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
696 to GtkSearchEngineSimple only if gthread has already been
697 initialiased; otherwise, disable search support in the file
698 chooser widget. (#435847)
700 2007-05-10 Matthias Clasen <mclasen@redhat.com>
702 * gtk/gtkbutton.c (gtk_button_set_image): Unparent the old
703 image before overwriting priv->image. (#437281, Jochen Baier)
705 2007-05-10 Matthias Clasen <mclasen@redhat.com>
707 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child):
708 Correct a confusing warning. (#437284, Björn Lindqvist)
710 2007-05-10 Matthias Clasen <mclasen@redhat.com>
712 * gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
713 the backend if the region is empty. (#437081, Sven Neumann)
715 2007-05-10 Matthias Clasen <mclasen@redhat.com>
717 * gtk/gtksearchenginesimple.c (search_visit_func);
718 Assume Posix nftw behaviour.
720 2007-05-09 Dom Lachowicz <domlachowicz@gmail.com>
722 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: GtkTreeView doesn't
723 expand/collapse with Right/Left cursor keys on Windows
724 (#436269, Daniel Atallah)
726 2007-05-09 Cody Russell <bratsche@gnome.org>
729 (get_arrows_border): New function to calculate the border sizes needed
730 for the scroll arrows.
731 (get_arrows_visible_area): New function to calculate the arrows visible
733 (get_arrows_sensitive_area): New function to calculate the arrows
735 (gtk_menu_paint): Refactored code to calculate the border sizes needed
736 for the scroll arrows into get_arrows_border and the code to calculate
737 the visible area into get_arrows_visible_area.
738 (gtk_menu_handle_scrolling): Refactored arrow sensitive calculations
739 to get_arrows_sensitive_area.
740 (gtk_menu_realize, gtk_menu_size_allocate, gtk_menu_scroll_by,
741 gtk_menu_position, gtk_menu_scroll_to, gtk_menu_scroll_item_visible,
742 get_visible_size, get_menu_height, gtk_menu_real_move_scroll): Update
743 callers. (From #436533, Tommi Komulainen)
745 2007-05-09 Kristian Rietveld <kris@imendio.com>
747 * gtk/gtktreeview.c (gtk_tree_view_key_press),
748 (gtk_tree_view_key_release):
749 * gtk/gtkiconview.c (gtk_icon_view_class_init),
750 (gtk_icon_view_key_press),
751 (gtk_icon_view_key_release): Disable key bindings during rubber
752 banding, make pressing Esc stop rubber banding. (#405027).
754 2007-05-09 Emmanuele Bassi <ebassi@gnome.org>
756 * gtk/gtkrecentmanager.c:
757 (gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
758 with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.
760 2007-05-05 Richard Hult <richard@imendio.com>
762 * gdk/quartz/gdkdrawable-quartz.c:
763 (gdk_quartz_drawable_get_context),
764 (gdk_quartz_drawable_release_context): Fix bugs #428733 and #433301.
765 Turns out the lockFocus logic was flawed, now we only lock/unlock
766 when called outside a real expose event and never flush manually.
768 2007-05-03 Behdad Esfahbod <behdad@gnome.org>
770 * gtk/gtklabel.c (gtk_label_ensure_layout):
771 * gtk/gtktextlayout.c (set_para_values): Make GTK_JUSTIFY_FILL work,
772 using pango_layout_set_justify() that works now. (#435675)
774 2007-05-03 Emmanuele Bassi <ebassi@gnome.org>
776 * gtk/gtksearchenginesimple.c (search_engine_simple_finalize): Remove
777 spurious g_free() call.
779 Thu May 3 16:27:34 2007 Tim Janik <timj@imendio.com>
781 * tests/testgtk.c (create_handle_box): made handle box test non-modal,
782 so other test can interact with handle boxes.
784 2007-05-02 Emmanuele Bassi <ebassi@gnome.org>
786 Add search file support in the GtkFileChooser. Original patch
787 by Federico Mena Quintero; patch updated by Matthias Clasen.
790 * gtk/gtksearchengine.[ch]: Private search engine abstraction
793 * gtk/gtksearchenginebeagle.[ch]: Private search engine
794 implementation using libbeagle (via g_module_open()).
796 * gtk/gtksearchenginesimple.[ch]: Private search engine
797 implementation using file tree walking.
799 * gtk/gtksearchenginetracker.[ch]: Private earch engine
800 implementation using libtracker (via g_module_open()).
802 * gtk/gtkquery.[ch]: Private query object for the search
805 * gtk/gtkfilechooserprivate.h:
806 * gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
807 query a search engine backend using GtkQuery; create a new
808 operating mode, OPERATION_MODE_SEARCH, and call the common
809 operating mode OPERATION_MODE_BROWSE; add support for virtual
810 shortcuts inside the shortcuts model and create a new "Search"
813 * gtk/Makefile.am: Update the build with the new files
815 2007-05-02 Armin Burgmeier <armin@openismus.com>
817 * gtk/gtkcombobox.c: Destroy the menu in dispose instead of
818 finalize, because the menu might unparent itself from its parent and
819 cause a signal emission on a finalized object. (#430746)
821 2007-05-02 Dom Lachowicz <domlachowicz@gmail.com>
823 * modules/engines/ms-windows/msw_style.c: MS-Windows Theme top tabs
824 rendered upside down for non-XP theme (#435053, Daniel Atallah)
826 Wed May 2 11:35:45 2007 Tim Janik <timj@imendio.com>
828 * docs/faq/gtkfaq.sgml: removed, since this file is long outdated
829 and fully replaced by docs/faq/gtk-faq.sgml.
831 2007-05-02 Kristian Rietveld <kris@imendio.com>
833 * gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band
836 2007-05-01 Matthias Clasen <mclasen@redhat.com>
838 * gtk/gtkiconcachevalidator.c: Don't be too strict when checking
839 icon flags. (#435062)
841 2007-05-01 Matthias Clasen <mclasen@redhat.com>
843 * gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
846 2007-05-01 Matthias Clasen <mclasen@redhat.com>
848 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):
849 Don't ignore the fact that gtk_file_system_get_parent()
850 may return NULL. (#424042, Jan Martinek)
852 2007-05-01 Dan Winship <danw@novell.com>
854 * gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Make sure the
855 leader_window's WM_CLIENT_LEADER points to itself. #435028
857 2007-05-02 Christian Persch <chpe@gnome.org>
859 * gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
860 GSlice for gtk_tree_iter_copy. Bug #434863.
862 2007-05-02 Christian Persch <chpe@gnome.org>
864 * gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
865 GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
868 2007-05-02 Christian Persch <chpe@gnome.org>
870 * gtk/gtkpapersize.c: (gtk_paper_size_new_from_info),
871 (gtk_paper_size_new), (gtk_paper_size_new_custom),
872 (gtk_paper_size_copy), (gtk_paper_size_free): Use GSlice to allocate
873 GtkPaperSize. Bug #434862.
875 2007-05-02 Christian Persch <chpe@gnome.org>
877 * gtk/gtkstatusbar.c: (gtk_statusbar_get_context_id),
878 (gtk_statusbar_expose_event): No need to allocate a guint; just stuff
879 the ID into the pointer directly. Bug #434865.
881 2007-05-01 Matthias Clasen <mclasen@redhat.com>
883 * gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData),
884 (update_current_folder_get_info_cb): add a new struct field to clear
885 the file entry after the current folder has been updated.
887 (gtk_file_chooser_default_update_current_folder),
888 (change_folder_and_display_error): Add a new function parameter to
889 trigger file entry clearing.
891 (edited_idle_create_folder_cb),
892 (file_list_drag_data_received_get_info_cb),
893 (gtk_file_chooser_default_map),
894 (gtk_file_chooser_default_set_current_folder),
895 (switch_to_selected_folder), (save_entry_get_info_cb),
896 (shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume),
897 (shortcuts_activate_get_info_cb), (list_row_activated),
898 (path_bar_clicked): use new function parameter appropriately.
900 (gtk_file_chooser_default_should_respond): trigger file entry clearing
901 after the directory is updated instead of clearing it before, this way
902 we avoid reloading the completion model with the soon to be old folder,
903 causing a warning and a glitch in the folder where completion happens.
904 (#379414, Carlos Garnacho)
906 2007-05-01 Matthias Clasen <mclasen@redhat.com>
908 * gtk/gtkiconcachevalidator.[hc]: Add an icon cache validator.
910 * gtk/updateiconcache.c: Validate the generated cache before
911 moving it in place. Also add a --validate option to validate
912 an existing icon cache.
914 * gtk/gtkiconcache.c: Validate icon caches before using them.
916 * gtk/Makefile.am: Integrate it.
918 2007-05-01 Michael Emmel <mike.emmel@gmail.com>
920 * gdk/directfb/gdkdisplay-directfb.c:
921 Added stub gdk_notify_startup_complete_with_id to compile
922 * gdk/directfb/gdkwindow-directfb.c:
923 Added gdk_window_set_opacity
924 * gdk/directfb/gdkkeys-directfb.c:
925 Fix menu key handling crash Bug #413328
927 2007-05-01 Christian Persch <chpe@gnome.org>
930 * gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to
931 the new location. Bug #390437.
933 2007-04-30 Matthias Clasen <mclasen@redhat.com>
935 * gtk/gtksettings.c (settings_update_color_scheme):
936 Make sure we always have a color_hash. (#423916, Jens Granseuer)
938 2007-04-30 Christian Persch <chpe@gnome.org>
940 * docs/reference/gtk/gtk-sections.txt:
942 * gtk/gtkprinter-private.h:
943 * gtk/gtkprinter.c: (gtk_printer_get_capabilities),
944 (gtk_print_capabilities_get_type):
948 * gtk/gtkprintunixdialog.c: (selected_printer_changed):
949 Make gtk_printer_get_capabilities public, and move the
950 GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
952 2007-04-30 Matthias Clasen <mclasen@redhat.com>
954 * gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget
955 must not set the background of its window. (#433972,
958 2007-04-30 Richard Hult <richard@imendio.com>
960 * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
963 2007-04-30 Matthias Clasen <mclasen@redhat.com>
965 * modules/printbackends/cups/gtkprintbackendcups.c: Get all
966 the printer attributes when getting the list of printers,
967 not via separate requests. (#387889, Krishan Purahoo)
969 2007-04-30 Matthias Clasen <mclasen@redhat.com>
971 Some more compiler warning fixes.
973 * gdk/directfb/gdkscreen-directfb.c (gdk_screen_is_composited):
974 Fix NULL/FALSE confusion.
976 2007-04-30 Matthias Clasen <mclasen@redhat.com>
978 Fix some compiler warnings. (#433642, Kjartan Maraas)
980 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
981 (gtk_file_system_win32_create_folder):
982 * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.
984 * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
985 the right type to uri_func.
987 * gtk/gtktext.c (gtk_text_key_press):
988 * gtk/gtkstatusicon.c (gtk_status_icon_get_property):
989 * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
991 * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed):
992 (gtk_tray_icon_delete):
993 * gtk/gtkprintunixdialog.c (create_main_page):
994 * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
996 * gtk/gtkliststore.c: Adapt callbacks to GSequence types.
998 2007-04-30 Cody Russell <bratsche@gnome.org>
1000 * gdk/win32/gdkwindow-win32.c: Reintroduced erase_background(),
1001 but now we're calling it from _gdk_windowing_window_clear_area()
1002 instead of from the WM_ERASEBKGND event. Also fixes the area
1003 that is cleared so that it is not an extra row and column too
1004 large. (Neil Roberts, #415681)
1006 2007-04-30 Matthias Clasen <mclasen@redhat.com>
1008 * gtk/gtktextview.c: Allow indents to be negative. (#Bug 434308)
1010 2007-04-30 Michael Natterer <mitch@imendio.com>
1012 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): pop up the
1013 submenu explicitely only in touchscreen mode since otherwise
1014 selecting the item already pops up the submenu. Restores the
1015 drag-selection timeout (spotted by Søren Sandmann, #128968).
1017 2007-04-30 Michael Natterer <mitch@imendio.com>
1019 * gtk/gtkpapersize.h: really rename gtk_paper_size_get_builtins()
1020 to gtk_paper_size_get_paper_sizes().
1022 2007-04-30 Tor Lillqvist <tml@novell.com>
1024 * gtk/gtkpapersize.c (gtk_paper_size_get_paper_sizes):
1025 _gtk_load_custom_papers() exists only on Unix.
1027 2007-04-30 Tor Lillqvist <tml@novell.com>
1029 Add functionality to set overall opacity of a top-level
1032 * gdk/gdk.symbols: Add gdk_window_set_opacity.
1034 * gdk/x11/gdkwindow-x11.c
1035 * gdk/win32/gdkwindow-win32.c: Implement
1036 gdk_window_set_opacity(). On X11 use the _NET_WM_WINDOW_OPACITY
1037 property. On Win32 use SetLayeredWindowAttributes(LWA_ALPHA).
1039 * gdk/gdkwindow.h: Declare gdk_window_set_opacity().
1041 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_rgba_colormap): Document
1042 that this is not implemented in the Windows backend. Add reference
1043 to gdk_window_set_opacity().
1045 * gtk/gtk.symbols: Add gtk_window_set_opacity and
1046 gtk_window_get_opacity.
1048 * gtk/gtkwindow.c (struct _GtkWindowPrivate)
1049 (gtk_window_class_init): Add opacity property, a double in the
1051 (gtk_window_set_opacity, gtk_window_get_opacity): Implement.
1052 (gtk_window_realize): If opacity is set, call
1053 gdk_window_set_opacity().
1055 * gtk/gtkwindow.h: Declare gtk_window_set_opacity() and
1056 gtk_window_get_opacity().
1058 2007-04-30 Matthias Clasen <mclasen@redhat.com>
1061 * gtk/gtkpapersize.[hc]: Rename gtk_paper_size_get_builtins()
1062 to gtk_paper_size_get_paper_sizes() and optionally include
1065 * gtk/gtkpagesetupunixdialog.c: Internally export a function
1066 to load custom paper sizes.
1068 * modules/printbackends/file/gtkprintbackendfile.c: Implement
1069 printer_list_papers, returning all paper sizes. (#434329,
1072 2007-04-30 Matthias Clasen <mclasen@redhat.com>
1074 * gtk/gtkprintoperation.c: Translate the default job
1075 name, and don't utf8-validate the job name in the
1076 setter. (#421993, Morten Welinder)
1078 2007-04-30 Matthias Clasen <mclasen@redhat.com>
1080 * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
1081 g_unlink. (#421990, Morten Welinder)
1083 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1085 Fix some issues with reference handling in the printing
1086 code. (#429902, Mathias Hasselmann)
1088 * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
1089 Unref the print context, if we have one.
1090 (gtk_print_operation_done): Add a default ::done handler
1091 that unrefs the print context.
1092 (preview_ready): Take a reference on the print operation
1094 (print_pages_idle): ...not here,
1095 (preview_print_idle_done): ...and release it here.
1097 * tests/print-editor.c (preview_cb): Take a reference
1098 on the print operation here.
1100 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1102 * gtk/gtkprintoperation.c (print_pages_idle): Don't get
1103 stuck in a recursive mainloop if a synchronous preview
1106 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1108 Make the emission of ::end-print and ::done consistent
1109 for previews. (#347567, Yevgen Muntyan)
1111 * gtk/gtkprintoperation.c (preview_iface_end_preview): Set
1112 the finished status here.
1113 (preview_end_run): ...and not here.
1114 (print_pages_idle_done): Emit ::done for a cancelled preview.
1115 (print_pages_idle): If a preview has been cancelled, don't
1116 emit ::ready, but emit ::end-print.
1118 * tests/print-editor.c: Use ::end-print to undo allocations
1121 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1123 * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
1124 in the PWG "custom" namespace as custom. Add a link to
1125 the spec in the docs. (#426416, Andreas Guelzow)
1127 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1129 * gtk/gtkprintoperation.c (gtk_print_operation_run): Document
1130 that a print operation can be run only once, and add a
1131 corresponding g_return_if_fail(). (#379399, Masao Mutoh)
1133 2007-04-29 Dan Winship <danw@novell.com>
1135 * gdk/x11/gdkdisplay-x11.c
1136 (gdk_x11_display_broadcast_startup_message): New method to
1137 marshall and send a Startup Notification message. (from #415070)
1138 (gdk_notify_startup_complete_with_id): Use that
1140 2007-04-29 Mattthias Clasen <mclasen@redhat.com>
1142 * gtk/gtkprintoperation-unix.c
1143 (_gtk_print_operation_platform_backend_launch_preview):
1144 Don't leak a file descriptor, and don't make the error
1145 dialog modal. (#421985, Morten Welinder, Christian Persch)
1147 2007-04-29 Xan Lopez <xan@gnome.org>
1149 * docs/faq/gtk-faq.sgml: Fix typo in FAQ (#373706,
1150 Diego Escalante Urrelo).
1152 I'm fixing gtk-faq.sgml as it seems this is the file
1155 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1157 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores):
1158 Only strip parentheses of the form (_x). (#434261,
1161 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1163 * gtk/gtkprintoperation-unix.c
1164 (_gtk_print_operation_platform_backend_launch_preview):
1165 Support passing a print settings file to the preview
1166 command. (#403717, Christian Persch)
1168 * gtk/gtksettings.c: Document %s in the
1169 gtk-print-preview-command setting.
1171 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1173 * gtk/gtkprintoperation.c (print_pages_idle): Also check
1174 the default handler when deciding whether to emit the
1175 paginate signal. (#345345, Yevgen Muntyan)
1177 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1179 * gtk/gtkprintoperation.h: Add a new error code
1182 * gtk/gtkpagesetup.[hc]:
1183 * gtk/gtkpapersize.[hc]:
1184 * gtk/gtkprintsettings.[hc]: Add functions to serialize
1185 and deserialize page setups and print settings to files
1186 and key files. (#344515, Christian Persch)
1188 * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions.
1190 * tests/print-editor.c: Use the new functions to persist
1191 page setup and print settings.
1193 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1195 * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize):
1196 Free the custom paper list. (#403267, Felix Riemann)
1198 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1200 * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a
1201 small memory leak. (#403251, Felix Riemann)
1203 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1205 * modules/printbackends/cups/gtkprintbackendcups.c: Fix a
1206 typo. String change ! (#406160, Stephane Raimbault)
1208 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1211 * gtk/gtkpapersize.[hc]: Add a function to list the
1212 builtin paper sizes. (#382355, Christian Persch)
1214 2007-04-29 Matthias Clasen <mclasen@redhat.com>
1217 * gtk/gtkprinter-private.h:
1218 * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
1219 gtk_printer_request_details() public.
1221 * gtk/gtkpagesetupunixdialog.c:
1222 * gtk/gtkprintunixdialog.c: Update callers. (#389203,
1225 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1227 * configure.in: Add --enable-test-print-backend, defaulting
1230 * modules/printbackends/Makefile.am: Make building the test
1231 print backend conditional.
1233 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1235 * modules/printbackends/lpr/*:
1236 * modules/printbackends/cups/*: Correct some copyright lines.
1239 * modules/printbackends/Makefile.am:
1240 * modules/printbackends/test/*: Add a test print backend.
1241 (#409089, John Palmieri)
1243 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1245 * gtk/gtktexttag.[hc]: Add a way to specify accumulative
1246 margins. (#344499, Nate Nielsen)
1248 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1250 * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
1251 of the input-only window if we also have a visible window.
1254 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1256 * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
1257 * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal):
1258 Recognize negative column indices as invalid. (#415260,
1261 2007-04-28 Ronald Bultje <rbultje@ronald.bitfreak.net>
1263 * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
1264 (poll_func): fix two more potential races that could happen when
1265 an application is polling in the mainloop and a separate thread
1266 tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
1268 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1270 * gtk/gtkentry.c (gtk_entry_grab_focus):
1271 (gtk_entry_real_insert_text): Only call g_object_get()
1272 when necessary. (#373137, Morten Welinder, patch by Xan Lopez)
1274 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1276 * gtk/gtkstatusicon.c (gtk_status_icon_get_size): Add
1277 a note about being embedded. (#340107, Christian Persch)
1279 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1281 * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to
1282 restrict drags within an application/widget. (#163141,
1285 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1287 * docs/tools/Makefile.am:
1288 * gtk/Makefile.am: Make make clean clean. (#410160, Tommi
1291 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1293 * gdk/win32/bdfcursor.c (compose_cursors_from_fonts):
1294 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder):
1295 * gtk/gtkfilesystemmodel.c (got_root_folder_cb):
1296 (get_children_folder_cb): Plug memory leaks caused by wrong
1297 use of g_slist_remove_link(). (#405515, Nicolas Peninguy)
1299 2007-04-28 Matthias Clasen <mclasen@redhat.com>
1301 * demos/gtk-demo/printing.c: Fix the headers in the print
1302 demo. (#423722, Yevgen Muntyan)
1304 2007-04-28 Xan Lopez <xan@gnome.org>
1306 * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text):
1307 Use strstr instead of g_strstr with -1 for length.
1309 2007-04-28 Xan Lopez <xan@gnome.org>
1312 * gtk/gtkentrycompletion.c:
1313 * gtk/gtkentrycompletion.h:
1314 * gtk/gtkentryprivate.h:
1316 Remember the user input that triggered the completion, add
1317 API to the retrieve it and reset the entry contents to it
1318 if the user cancels the tentative completion during
1319 the inline-selection.
1321 2007-04-27 Matthias Clasen <mclasen@redhat.com>
1323 * gdk/x11/gdkgeometry-x11.c: Factor out window movement
1324 functions. (#63820, Tilman Sauerbeck)
1326 2007-04-27 Matthias Clasen <mclasen@redhat.com>
1328 * gdk/x11/gdkgeometry-x11.c: Factor out translate_pos().
1329 (#63820, Tilman Sauerbeck)
1331 2007-04-27 Matthias Clasen <mclasen@redhat.com>
1333 * gdk/x11/gdkgeometry-x11.c: Factor out window mapping
1334 and unmapping functions. (#63820, Tilman Sauerbeck)
1336 2007-04-27 Matthias Clasen <mclasen@redhat.com>
1338 * gdk/x11/gdkgeometry-x11.c: Make list handling code
1339 easier to read. (#63820, Tilman Sauerbeck)
1341 2007-04-27 Matthias Clasen <mclasen@redhat.com>
1347 * gtkrecentmanager.c:
1348 * gtktextiter.c: Internalize some strings, pointed out
1351 2007-04-27 Xan Lopez <xan@gnome.org>
1353 Support inline-selection in entries (#318459)
1356 * gtk/gtkentrycompletion.c:
1357 * gtk/gtkentrycompletion.h:
1358 * gtk/gtkentryprivate.h:
1360 When enabled cursor-match is emited when the cursor is on
1361 a possible completion on the list. The default implementation
1362 will replace the contents on the entry with the contents of
1363 the text column in the completion model.
1365 Review and improvements by Matthias Clasen.
1367 2007-04-27 Michael Natterer <mitch@imendio.com>
1369 Merged heavily modified patch from maemo-gtk which enables opening
1370 and closing submenus on click, and introduces some usability
1371 changes when gtk-touchscreen-mode is enabled (bug #128968):
1373 * gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
1374 "activated_submenu" to indicate that the current mouse operation
1375 (click or drag) has opened a submenu.
1377 (gtk_menu_shell_button_press): pop up submenus without delay
1378 and record the fact in "activated_submenu".
1380 (gtk_menu_shell_button_release): if a submenu was explicitely
1381 opened, or not opened by this release's button_press, or enough
1382 time has passed since timeout-opening it, close the submenu here.
1384 (gtk_menu_shell_enter_notify): when entering a menu item with
1385 any mouse button pressed, open its submenu.
1387 (gtk_real_menu_shell_move_current): in touchsreen mode, close the
1388 submenu when moving the focus away from it via keyboard-navigation.
1390 * gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
1391 parameter "gboolean with_delay" so GtkMenuShell can control this
1392 for the different scenarios of submenu showing.
1394 (_gtk_menu_item_popdown_submenu): new function. also needed by
1395 GtkMenuShell for closing submenus on click.
1397 Renamed internal function gtk_menu_item_select_timeout() to
1398 gtk_menu_item_popup_timeout().
1400 (gtk_menu_item_real_popup_submenu): new utility function which
1401 does the actual popup and records the exact time of the popup when
1402 the menu was timeout-opened (using g_get_current_time()).
1404 (gtk_real_menu_item_select): don't add the popup timeout when in
1407 * gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
1408 first item of every opened menu.
1410 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1412 * gtk/gtkfilechooserentry.c: Append a '/' to directory names
1413 in the completion popup. (#431323, Maarten Maathuis)
1415 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1417 * demo/gtk-demo/combobox.c: Add a simple validation demo.
1418 * gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
1419 children to a GtkComboBoxEntry. (#426401, Paul Pogonyshev)
1421 2007-04-26 Tor Lillqvist <tml@novell.com>
1423 * gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes)
1424 (gtk_input_dialog_fill_keys): Remove old child of scrolled window
1425 before adding a new one when switching what input device is being
1428 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1430 * modules/printbackends/lpr/gtkprintbackendlpr.c
1431 (gtk_print_backend_lpr_init): Mark the printer list as done.
1432 (#428665, Bogdan Gheorghe)
1434 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1437 * gtk/Makefile.am: Don't install UNIX-printing headers and
1438 support files on non-UNIX platforms. (#425655, Vincent Geddes)
1440 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1442 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept
1443 unnamed separators. (#369112, Christian Persch)
1445 2007-04-26 Matthias Clasen <mclasen@redhat.com>
1447 * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access
1448 invalid memory. (#429732, Armin Burgmeier)
1450 2007-04-26 Cody Russell <bratsche@gnome.org>
1452 * gdk/win32/xcursors.h:
1453 * gdk/win32/gdkcursor-win32.c:
1455 Use Win32 native cursors instead of the ones built into GTK
1456 where it makes sense. (#128852, Tim Evans)
1458 2007-04-25 Cody Russell <bratsche@gnome.org>
1462 * gtk/gtkhandlebox.c:
1463 * gdk/directfb/gdkwindow-directfb.c:
1464 * gdk/linux-fb/gdkwindow-fb.c:
1465 * gdk/quartz/gdkwindow-quartz.c:
1466 * gdk/win32/gdkwindow-win32.c:
1467 * gdk/x11/gdkwindow-x11.c:
1468 Added window type hint and implement drop shadows on Win32
1469 for menus, tooltips, etc. (#148535, Tim Evans, Dom Lachowicz)
1471 2007-04-25 Jakub Steiner <jimmac@ximian.com>
1473 * gtk/stock-icons/16/gtk-close.{png,svg}: added 16x16 version of
1474 gtk-close as per discussion in bug #431740.
1476 2007-04-25 Matthias Clasen <mclasen@redhat.com>
1478 * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background
1479 of the header window again. (#431067, Benjamin Berg)
1481 2007-04-25 Matthias Clasen <mclasen@redhat.com>
1483 * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
1484 NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
1487 * tests/testicontheme.c: Report builtin icons.
1489 2007-04-25 Matthias Clasen <mclasen@redhat.com>
1491 * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't
1492 crash if end_run is not set. (#424168, Matthias Hasselmann)
1494 2007-04-25 Michael Natterer <mitch@imendio.com>
1496 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
1497 scroll buttons (we were setting the state to ACTIVE but
1498 immediately overwriting it with NORMAL or PRELIGHT). Also got rid
1499 of many separate calls to gdk_window_invalidate_rect() by
1500 remembering the old button state and only invalidating the area if
1501 the state has changed (addresses parts of bug #433242, Tommi
1504 (gtk_menu_scroll_to): change the arrow states only if changing
1505 from or to INSENSITIVE state, so we don't overwrite the ACTIVE
1506 state set by above function.
1508 2007-04-25 Michael Natterer <mitch@imendio.com>
1510 * gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
1511 build. Dunno if the fix is right, but I think it is.
1513 2007-04-25 Kristian Rietveld <kris@imendio.com>
1515 * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
1516 cleanup/refactor some leftover code.
1518 2007-04-24 Matthias Clasen <mclasen@redhat.com>
1520 * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
1521 half-open ranges like -2 or 3-, and be a bit more liberal
1523 (dialog_set_page_ranges): Support half-open ranges.
1525 * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
1526 number of pages in half-open ranges.
1527 (preview_iface_is_selected): Support half-open ranges here, too.
1529 2007-04-24 Chris Wilson <chris@chris-wilson.co.uk>
1531 * gtk/gtkicontheme.c (scan_directory): Ensure the
1532 icon_theme->all_icons and dir->icons hash tables use the same string
1533 as their keys. (#418531)
1535 2007-04-23 Cody Russell <bratsche@gnome.org>
1536 * modules/engines/ms-windows/msw_style.c: Fixed one-pixel drawing error on
1537 left-most tab when notebooks are top-oriented. Also general cleanup of
1538 notebook tab related code. (Lieven van der Heide, Cody Russell)
1540 2007-04-23 Matthias Clasen <mclasen@redhat.com>
1542 * modules/printbackends/cups/gtkprintbackendcups.c: Reduce
1543 the amount of debug spew if we are not debugging.
1545 2007-04-23 Michael Natterer <mitch@imendio.com>
1547 * tests/Makefile.am (testtooltips_SOURCES): fix typo:
1548 testtoooltips_SOURCES -> testtooltips_SOURCES.
1550 2007-04-19 Cody Russell <bratsche@gnome.org>
1552 * modules/engines/ms-windows/msw_style.c: Fix menuitem rendering
1553 for Windows Vista. (#392015, Hiroyuki Yamamoto)
1555 2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com>
1557 * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
1558 non-WinXP rendering paths. From Daniel Atallah (#403470)
1560 2007-04-19 Matthias Clasen <mclasen@redhat.com>
1562 * gtk/gtkicontheme.h:
1563 * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
1564 icon lookup flag and implement it. (#396901, Luca Ferreti)
1566 2007-04-18 Richard Hult <richard@imendio.com>
1568 * gdk/quartz/gdkwindow-quartz.c:
1569 (gdk_window_quartz_process_updates_internal),
1570 (gdk_window_quartz_process_all_updates),
1571 (gdk_window_impl_quartz_process_updates): Refactor the process
1572 updates functions to share code between them. Also fixes bug
1573 #427660 by not updating larger regions than necessary.
1575 2007-04-18 Matthias Clasen <mclasen@redhat.com>
1577 * gdk/gdkregion-generic.h (GROWREGION): Handle the case
1578 of nRects == 0 correctly.
1580 2007-04-18 Emmanuele Bassi <ebassi@gnome.org>
1582 * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
1583 a leak by not increasing the refcount of the GtkRecentInfo
1584 object when returning it (thanks to Matthias Clasen).
1586 2007-04-16 Alexander Larsson <alexl@redhat.com>
1588 * gtk/gtkprintoperation.c (gtk_print_operation_run):
1589 Make async print preview work by actually starting
1590 the print process in that case (#424168)
1592 2007-04-14 Yevgen Muntyan <muntyan@tamu.edu>
1594 * gtk/gtkselection.c (selection_get_text_plain): fixed
1595 wrong g_convert_with_fallback() call which caused
1596 gtk_selection_data_get_text() return invalid UTF-8 for
1597 non-ASCII text in text/plain selection (#382824).
1599 2007-04-12 Jakub Steiner <jimmac@ximian.com>
1601 * gtk/stock-icons/*: update the stock icons to follow the Tango
1604 2007-04-11 Chris Wilson <chris@chris-wilson.co.uk>
1606 * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
1607 * gtk/gtkstock.c (gtk_stock_list_ids):
1608 Switch over to use glib's new g_hash_table_get_keys() rather
1609 than our own static implementation.
1611 * gtk/gtkiconfactory.h: Update to return a GList.
1613 * configure.in: Bump required version to 2.13.1
1615 2007-04-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
1617 * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
1618 setup and shutdown function by mutexes and read the wakeup
1619 pipe unconditionally and unblocking. This should make the main
1620 loop always be woken up when using g_idle_add() from another
1621 thread in the Quartz backend (#425271).
1623 2007-04-10 Matthias Clasen <mclasen@redhat.com>
1625 * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
1626 to return a Bool to indicate success. Update callers and
1627 implementors. Based on a patch by Owen Taylor.
1629 * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
1630 leak a reference to gdkwin.
1632 2007-04-07 Xan Lopez <xan@gnome.org>
1634 * gtk/gtknotebook.c (gtk_notebook_class_init):
1635 s/arrow-size/arrow-spacing in the arrow-spacing
1636 style property docs.
1638 2007-04-06 Richard Hult <richard@imendio.com>
1640 * gdk/quartz/: Clean up namespaces to make the code more
1643 * gdk/quartz/gdkdrawable-quartz.c:
1644 * gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
1645 images, by setting the pattern phase for the CG pattern.
1647 2007-04-04 Kristian Rietveld <kris@imendio.com>
1649 * gtk/gtktooltip.c (tooltip_browse_mode_expired),
1650 (gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
1651 (gtk_tooltip_start_delay): use new gdk_threads API.
1653 2007-04-03 Behdad Esfahbod <behdad@gnome.org>
1655 * gtk/gtksettings.c (settings_update_font_options): Don't set
1656 metrics-hinting font option. Rely on the default value which is
1657 on for all raster cairo surfaces. (#425985)
1659 2007-04-03 Loïc Minier <lool@dooz.org>
1661 * gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
1662 non-xinerama mode when XineramaQueryScreens returns NULL; patch from
1663 Simon McVittie; #425786.
1665 2007-04-02 Michael Natterer <mitch@imendio.com>
1667 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
1668 artifact from the time when type checking casts warned on NULL,
1669 some whitespace cleanup.
1671 2007-04-01 Cody Russell <bratsche@gnome.org>
1673 * modules/engines/ms-windows/msw_style.c: Fix rendering of
1674 notebook tabs when they are bottom-oriented. Fixes #399253.
1676 2007-03-31 Elijah Newren <newren gmail com>
1678 * gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
1679 gdk_x11_window_set_user_time):
1680 Patch from Matthias to add support for the
1681 _NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.
1683 WARNING: This patch will make metacity <= 2.18.0 freeze on
1684 workspace switch. This is due to a weird problem that should only
1685 affect window managers using gdk in-process for decoration drawing
1686 and which make an unsafe assumption relating to doing so (i.e. it
1687 should only affect metacity). Upgrade your version of metacity if
1690 2007-03-29 Michael Natterer <mitch@imendio.com>
1692 Don't close menus on clicks on their border area (bug #423761).
1693 (modified patch from maemo-gtk).
1695 * gtk/gtkmenu.c (gtk_menu_button_press)
1696 (gtk_menu_button_release): bail out early if the click was on the
1697 menu's border (not on any item and not outside the window).
1699 (pointer_in_menu_window): new utility function which checks if
1700 passed root coords are inside the menu_shell or one of its
1703 2007-03-29 Michael Natterer <mitch@imendio.com>
1705 * gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
1706 gtk_widget_get_settings() into the g_object_get() call. Some small
1709 2007-03-28 Matthias Clasen <mclasen@redhat.com>
1711 * modules/printbackends/cups/gtkcupsutils.[hc]:
1712 * modules/printbackends/cups/gtkprintbackendcups.c: Apply
1713 a patch by John Palmieri to make the cups print backend support
1716 2007-03-28 Kristian Rietveld <kris@imendio.com>
1718 * gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
1719 tooltip_window, since this is handled by set_qdata_full() already.
1720 (#412001, Torsten Schoenfeld).
1722 2007-03-27 Tor Lillqvist <tml@novell.com>
1724 * modules/input/Makefile.am: Use LDADDS for im-multipress.la, too:
1726 2007-03-26 Christian Persch <chpe@gnome.org>
1728 * gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.
1730 2007-03-24 Kristian Rietveld <kris@gtk.org>
1732 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1733 calculate the depth with the corrected real_cell_area and don't
1734 subtract horizontal_separator/2.
1736 2007-03-24 Andreas Nilsson <andreas@andreasn.se>
1739 * gtk-no: More Tango love.
1741 2007-03-23 Jakub Steiner <jimmac@ximian.com>
1743 * gtk-dialog-authentication.svg
1744 * gtk-dialog-error.svg
1745 * gtk-dialog-info.svg
1746 * gtk-dialog-question.svg
1747 * gtk-dialog-warning.svg: Start with a Tango face-lift.
1749 2007-03-23 Rodney Dawes <dobey@novell.com>
1751 * gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)
1753 2007-03-23 Matthias Clasen <mclasen@redhat.com>
1755 * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
1756 toggle whether to show hidden files. (#344657,
1757 Wouter Bolsterlee, Priit Laes, et al)
1759 2007-03-23 Matthias Clasen <mclasen@redhat.com>
1761 * gtk/gtkfilechooserdefault.c: Add a keybinding (C-l) to
1762 toggle the visibility of the location entry. (#383354,
1763 John Pye, patch by Carlos Garnacho)
1765 2007-03-22 Matthias Clasen <mclasen@redhat.com>
1767 * gtk/gtksettings.c (merge_color_scheme): Freeze property
1769 * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
1770 the gtk-color-scheme xsetting being unset.
1772 * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
1775 2007-03-21 Matthias Clasen <mclasen@redhat.com>
1777 * gtk/gtkprintoperation-unix.c: Remove leftover debug spew.
1779 2007-03-21 Rodney Dawes <dobey@novell.com>
1782 * gtk/gtkicontheme.[ch]:
1783 * docs/reference/gtk/gtk-sections.txt:
1784 * tests/testicontheme.c:
1785 Add a new API call gtk_icon_theme_list_contexts so that one can
1786 choose icons from a theme by context (#420719)
1788 2007-03-21 Ross Burton <ross@burtonini.com>
1791 Document the ::event signal (#420703).
1793 2007-03-20 Kristian Rietveld <kris@gtk.org>
1795 * gtk/gtktreeviewcolumn.c:
1796 * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
1798 * gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
1799 focus_to_cell parameter, rework to handle clamping columns which
1800 are bigger than the available page size better,
1801 (gtk_tree_view_key_press): remove code handling moving the focus
1802 to other column headers,
1803 (gtk_tree_view_header_focus): add clamp_column_visible parameter,
1804 fix RTL support, don't wrap around when moving focus to other
1805 column headers, call gtk_tree_view_clamp_column_visible() instead
1806 of duplicating code,
1807 (gtk_tree_view_focus): only clamp the column visible when we are
1808 explicitly moving to another column header (fixes #399555, Charles
1810 (gtk_tree_view_move_cursor_left_right): update call to
1811 gtk_tree_view_clamp_column_visible().
1813 2007-03-19 Matthias Clasen <mclasen@redhat.com>
1815 * demos/gtk-demo/appwindow.c: Explicitly set the title on the
1818 2007-03-18 Matthias Clasen <mclasen@redhat.com>
1820 * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix):
1821 Ensure that the prefix is valid UTF-8. (#419568, Nickolay V. Shmyrev)
1823 2007-03-18 Matthias Clasen <mclasen@redhat.com>
1825 * modules/input/gtkimcontextmultipress.[hc]:
1826 * modules/input/im-multipress.conf:
1827 * modules/input/immultipress.c:
1828 * modules/input/README.multipress: Add the multipress input
1829 method. (#417446, Johannes Schmid, Murray Cumming)
1831 * modules/input/Makefile.am: Glue
1833 2007-03-17 Chris Wilson <chris@chris-wilson.co.uk>
1835 * gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
1836 Initialise nxvisuals to 0 in order to handle XGetVisualInfo()
1837 failures gracefully. (#419171)
1839 2007-03-17 Emmanuele Bassi <ebassi@gnome.org>
1841 * gtk/gtkrecentaction.c (recent_chooser_set_property),
1842 (gtk_recent_action_set_property): Remove useless inlined
1843 function and propagate the properties to the GtkRecentChooser
1844 objects we create, instead of all the proxies.
1846 (set_current_filter): Remove 'inline' marker.
1848 2007-03-16 Emmanuele Bassi <ebassi@gnome.org>
1850 Apply changes suggested by Michael Natterer. (#338843)
1853 * gtk/gtkaction.c: Rename get_submenu() to create_menu();
1854 rename gtk_action_get_submenu() to gtk_action_create_menu().
1856 * gtk/gtkrecentaction.c: Update for GtkAction change.
1858 * gtk/gtkuimanager.c (update_node): Update for GtkAction change;
1859 also, use the menu from the GtkAction for both menuitem and
1862 2007-03-16 Xan Lopez <xan@gnome.org>
1864 * gtk/gtkwidget.c: Fix documentation error in
1865 gtk_widget_set_redraw_on_allocate.
1867 2007-03-16 Matthias Clasen <mclasen@redhat.com>
1869 * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
1870 make the selected printer visible. (#418403, Nickolay V. Shmyrev,
1871 patch by Christian Persch)
1873 2007-03-15 Federico Mena Quintero <federico@novell.com>
1875 Merged from gtk-2-10:
1877 * gtk/gtkfilechooserdefault.c (find_good_size_from_style):
1878 PANGO_PIXELS() gives us device units, which are *points* in
1879 pangocairo's parlance, but we want actual pixels. So, get the
1880 screen's resolution to compute the actual number of pixels.
1883 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
1885 * gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
1886 unused GError; do not allocate GtkRecentData and use a variable
1887 on the stack. (#418673, Morten Welinder)
1889 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
1891 * gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
1892 actions providing a menu item or a menu tool button with already
1893 a submenu should return the GtkMenu widget.
1895 * gtk/gtkuimanager.c (update_node): If an action provides its
1896 own submenu, use it instead of adding an empty one
1898 * gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
1899 implementing the GtkRecentChooser interface for displaying the
1900 list of recently used files into menus and toolbars generated
1901 using GtkUIManager. (#338843)
1905 * gtk/gtk.symbols: Add GtkRecentAction API to the build.
1907 * tests/testactions.c: Exercise the GtkRecentAction API.
1909 2007-03-15 Chris Wilson <chris@chris-wilson.co.uk>
1911 * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
1912 (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
1913 from recursion, which can happen for example if the app tries to
1914 reload an icon from within a theme-changed handler. (#418531)
1916 2007-03-15 Richard Hult <richard@imendio.com>
1918 * gdk/quartz/gdkmain-quartz.c: Add stubs for
1919 gdk_notify_startup_complete_with_id and gdk_window_set_startup_id
1922 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
1924 * gtk/gtkrecentmanager.c: Fix documentation errors. (Morten
1927 2007-03-15 Tor Lillqvist <tml@novell.com>
1929 * gdk/gdk.symbols: Add gdk_notify_startup_complete_with_id and
1930 gdk_window_set_startup_id.
1932 * gdk/win32/gdkmain-win32.c: Add dummy implementations of the above.
1934 2007-03-15 Emmanuele Bassi <ebassi@gnome.org>
1936 * gtk/gtkrecentchooserprivate.h:
1937 * gtk/gtkrecentchooserutils.c: Move filtering of the recent
1938 files list into the shared implementation; do the filtering
1939 before the sorting, so that we always clamp on the desired
1942 * gtk/gtkrecentchoosermenu.c: Remove the filtering of the
1943 list, as it's already been done.
1945 * gtk/gtkrecentchooserdefault.c: Ditto; also remove the
1946 GtkTreeModelFilter: just reload the view if the sorting and
1947 filtering properties change.
1949 * gtk/testrecentchoosermenu.c: Exercise the limit property.
1951 2007-03-14 Michael Natterer <mitch@imendio.com>
1953 Make gtk_widget_set_extension_events() work on already realized
1954 widgets (bug #379550, Tommi Komulainen)
1956 * gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
1957 called multiple times without leaking and work correctly when
1958 already realized (don't rely on a configure event following).
1960 * gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
1961 internal function which walks the GdkWindow tree and sets the
1962 extension events on all windows that belong to the widget.
1964 (gtk_widget_realize)
1965 (gtk_widget_set_extension_events): use the new function.
1967 2007-03-14 Emmanuele Bassi <ebassi@gnome.org>
1969 Various clean ups in the GtkRecent code. (see #338843)
1971 * gtk/gtkrecentchooserdefault.c:
1972 * gtk/gtkrecentchoosermenu.c:
1973 * gtk/gtkrecentchooserprivate.h:
1974 * gtk/gtkrecentchooserutils.c: Move the recent chooser function
1975 for getting the sorted and clamped list of recent files from the
1976 manager outside the implementations.
1978 * gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate
1979 the list when the sorting order changes.
1981 (gtk_recent_chooser_default_dispose),
1982 (gtk_recent_chooser_default_finalize): Move object unref and
1983 source removal from finalize to dispose.
1985 * gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the
1986 prerequisite for the GtkRecentChooser interface implementations,
1987 from GtkObject to GObject.
1989 (gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of
1992 2007-03-13 Emmanuele Bassi <ebassi@gnome.org>
1994 Apply patch by Vytautas Liuolia for changing the startup
1995 notification id on a window in the X11 backend. (#347375)
1999 * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_with_id()
2000 and gdk_x11_display_get_startup_notification_id().
2003 * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id().
2006 * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to
2007 change the startup notification id.
2009 (gtk_window_class_init), (gtk_window_init),
2010 (gtk_window_set_property): Add write-only "startup-id" property
2013 (gtk_window_realize): Set the startup notification id
2014 on a GtkWindow if it's valid.
2016 (gtk_window_map): If we have another valid startup notification
2017 id then finish the notification process.
2019 2007-03-13 Matthias Clasen <mclasen@redhat.com>
2021 * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2022 Fix tabbed browsing in epiphany. (#413664, Christian Persch)
2024 2007-03-12 Matthias Clasen <mclasen@redhat.com>
2026 * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify
2027 docs. (#345844, Torsten Schoenfeld)
2029 * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2030 * gdk/gdkwindow.c (gdk_window_add_filter): Add
2031 cross-references. (#351252, Vincent Untz)
2033 * gtk/gtkprintoperation.c: Fix an oversight in an
2034 example. (#381083, Ian Puleston)
2036 * gtk/gtkcombobox.c: Clean up and clarify docs. (#412484)
2038 2007-03-12 Matthias Clasen <mclasen@redhat.com>
2040 * gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
2041 the background of the panel window on style changes. (#402144,
2044 2007-03-12 Matthias Clasen <mclasen@redhat.com>
2046 * gtk/gtkbindings.c (gtk_binding_entry_add_signal): Remove
2047 an obsolete comment. (#402169, Xan Lopez)
2049 2007-03-12 Matthias Clasen <mclasen@redhat.com>
2051 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
2052 Don't copy PangoLanguage. (#340031, Morten Welinder)
2054 2007-03-12 Matthias Clasen <mclasen@redhat.com>
2056 * gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
2057 Handle the row reference path being NULL. (#410565, Joe Markus
2058 Clarke, patch by Chris Wilson)
2060 2007-03-11 Matthias Clasen <mclasen@redhat.com>
2062 * tests/testiconview.c: Handle Menu key presses without
2063 crash. (#385637, Christian Persch)
2065 2007-03-11 Matthias Clasen <mclasen@redhat.com>
2067 * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window):
2068 Don't crash if active_tips_data is NULL. (#382904, Li Yuan)
2070 2007-03-11 Matthias Clasen <mclasen@redhat.com>
2072 * gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark
2073 to NULL. (#396805, Colin Leroy, patch by Mariano Suárez-Alvarez)
2075 2007-03-12 Kristian Rietveld <kris@gtk.org>
2077 * gtk/gtkfilechooserdefault.c (check_save_entry): immediately
2078 bail out if current_folder is NULL. (#350988, lots of reporters,
2079 modified patch by Jan Darmochwal).
2081 2007-03-10 Kristian Rietveld <kris@gtk.org>
2083 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
2084 hide the search dialog and send focus events if the search dialog
2085 is currently visible.
2087 2007-03-10 Richard Hult <richard@imendio.com>
2089 * gdk/quartz/gdkdrawable-quartz.c:
2090 (gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
2091 (gdk_quartz_drawable_get_context): Update for the new quartz cairo
2092 surface API (#410442). Don't lock focus unless called outside of an
2094 (gdk_quartz_drawable_release_context): Only flush the CG context and
2095 unlock focus if called outside of expose.
2096 (_gdk_quartz_drawable_finish): New function, used to free the cached
2099 * gdk/quartz/gdkwindow-quartz.c:
2100 (gdk_window_impl_quartz_begin_paint_region): A few small style changes.
2101 (_gdk_window_impl_quartz_get_type): No need to make the type info
2103 (gdk_window_quartz_process_all_updates): Move the autorelease pool
2104 allocation and freeing outside the loop.
2105 (_gdk_windowing_window_destroy): Finish the drawable.
2106 (move_resize_window_internal): Small cleanup and remove comment.
2108 * gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
2110 2007-03-10 Richard Hult <richard@imendio.com>
2112 * gdk/quartz/gdkprivate-quartz.h: Add missing function signature to fix
2115 2007-03-10 Richard Hult <richard@imendio.com>
2117 * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
2119 2007-03-10 Richard Hult <richard@imendio.com>
2121 * gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
2123 2007-03-10 Richard Hult <richard@imendio.com>
2125 * gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Don't set
2126 the font name here, leave that to themes, fixes #387508.
2128 2007-03-10 Kristian Rietveld <kris@gtk.org>
2130 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node),
2131 (gtk_tree_model_sort_real_unref_node): when (un)reffing an
2132 element, also (un)ref its parent elements. (Fixes #364946,
2133 reported by many, testcase by Andreas Koehler).
2135 2007-03-10 Matthias Clasen <mclasen@redhat.com>
2137 * gtk/gtkprintoperation-unix.c: Initialize the do_preview
2138 field of PrintResponseData. (#396703, Christian Persch)
2140 * tests/print-editor.c: Plug some leaks.
2142 2007-03-09 Matthias Clasen <mclasen@redhat.com>
2144 * gtk/gtktextview.c (gtk_text_view_end_selection_drag):
2145 Get rid of the unused event argument. Update all callers.
2147 * gtk/gtktextview.c (gtk_text_view_focus_out): Call
2148 gtk_text_view_end_selection_drag. (#351671, Boyd Timothy)
2150 2007-03-09 Matthias Clasen <mclasen@redhat.com>
2152 * modules/input/gtkimcontextxim.c
2153 (gtk_im_context_xim_filter_keypress): Don't commit
2154 modifier-adorned characters. (#331369, #335796, Lin Ma
2157 2007-03-09 Matthias Clasen <mclasen@redhat.com>
2159 * Everywhere: Remove unnecessary NULL checks before
2160 g_free(). (#369666, Morten Welinder, Djihed Afifi)
2162 * configure.in: Check for ftw.h
2164 2007-03-09 Matthias Clasen <mclasen@redhat.com>
2166 * gtk/gtkfilesystemwin32.c (get_icon_path): Remove
2167 C99isms. (#416525, Kazuki Iwamoto)
2169 2007-03-09 Tor Lillqvist <tml@novell.com>
2171 * README.win32: Update.
2173 2007-03-08 Matthias Clasen <mclasen@redhat.com>
2175 * gdk/x11/gdkasync.c (send_event_handler): Defer the callbacks
2176 to an idle to avoid deadlock with xcb-ified libX11. (#413032,
2179 2007-03-08 Matthias Clasen <mclasen@redhat.com>
2181 * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2182 Set child visibility to FALSE here; it will be turned
2183 back on in switch_page. (#413664, Carlos Garnacho)
2185 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
2187 * modules/engines/ms-windows/msw_style.c: Use proper border style
2188 when drawing shadow of scrolled windows on Windows XP (#168326)
2189 * modules/engines/ms-windows/xp_theme.c: Explicitly set size of
2190 element_part_map array to ensure it always is large enough.
2192 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
2194 * gtk/gtkcombobox.c: Add shadow-type style property, set shadow-type
2195 property of GtkEntry accordingly, unify size-allocation of toggle
2196 button (#411123, patch from Mathias Hasselmann).
2197 * gtk/gtkentry.c: Add shadow-type property. Query style properties
2198 on style changes only (#411123, patch from Mathias Hasselmann).
2199 * modules/engines/ms-windows/msw_style.c: Drop combo_box_draw_box
2200 hack as GtkComboBox emits drawing requests now (#411123, patch
2201 from Mathias Hasselmann).
2203 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
2205 * gtk/gtkscrolledindow.c: Improve look of GtkScrolledWindow on Windows
2206 by implementing a scrollbars-within-bevel style property. (#168326)
2208 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de>
2210 * gtk/gtkfilesystemwin32.c: Use Windows shell icons. Icons are
2211 stored in the current theme with the name
2212 "gtk-win32-shell-icon;PATH;INDEX". PATH and INDEX reference shell
2213 icons as reported by SHGetFileInfoW. (#412221)
2215 2007-03-07 Matthias Clasen <mclasen@redhat.com>
2217 * gtk/gtkexpander.c (gtk_expander_paint_focus): Draw the
2218 focus around the arrow if there is no label widget.
2219 (#124045, Cody Russell)
2221 2007-03-07 Matthias Clasen <mclasen@redhat.com>
2223 * gtk/gtkcombo.c: (gtk_combo_init):
2224 * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
2225 (gtk_combo_box_menu_setup):
2226 Set names on the popup widgets to make them themable. (#414975,
2229 2007-03-07 Michael Natterer <mitch@imendio.com>
2231 * gtk/gtkcellrendereraccel.c: use multihead safe ungrab functions
2232 instead of gdk_keyboard_ungrab() and gdk_pointer_ungrab(), remove
2233 empty finalize() implementation, some cosmetic cleanup
2236 2007-03-06 Chris Wilson <chris@chris-wilson.co.uk>
2238 * gtk/gtkicontheme.c (update_current_theme), (gtk_icon_theme_init),
2239 (do_theme_change), (gtk_icon_theme_set_custom_theme),
2241 Be careful not to trigger a style reset before we have loaded
2242 the icon theme. (#414875).
2244 2007-03-06 Tor Lillqvist <tml@novell.com>
2247 * gtk/Makefile.am: Further fixes for building on Win32 outside
2248 srcdir. (#413492, Mathias Hasselmann)
2250 2007-03-04 Ihar Hrachyshka <iharh@gnome.org>
2252 * configure.in: Added be@latin to ALL_LINGUAS. Problems seems to be
2255 2007-03-04 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
2257 * configure.in: Removed be@latin from ALL_LINGUAS, as it's currently
2260 2007-03-04 Ihar Hrachyshka <iharh@gnome.org>
2262 * configure.in: Added be@latin to ALL_LINGUAS
2264 2007-03-03 Guillaume Savaton <llumeao@gmail.com>
2266 * configure.in: Added Esperanto (eo) to ALL_LINGUAS
2268 2007-03-01 Matthias Clasen <mclasen@redhat.com>
2270 * gtk/gtksettings.c: Always store gtk-color-scheme
2271 values from all sources in the ColorSchemeData struct
2272 and ignore the property_value for gtk-color-scheme.
2273 This fixes #412596, reported by Thomas Wood.
2275 2007-02-28 Matthias Clasen <mclasen@redhat.com>
2277 * gtk/gtksettings.c: Make color scheme update properly
2278 when changing themes. (#402131, Benjamin Berg)
2280 2007-02-28 Matthias Clasen <mclasen@redhat.com>
2282 * gtk/gtkrc.c: Don't leak references to the color-hash
2283 gotten from GtkSettings. (#409357, Benjamin Berg)
2285 2007-02-28 Tristan Van Berkom <tvb@gnome.org>
2287 * gtk/gtkradiobutton.c: Fixed a warning from
2288 g_object_set (radiobutton, "group", NULL, NULL).
2290 2007-02-26 Matthias Clasen <mclasen@redhat.com>
2292 Apply a patch by Carlos Garnacho to fix several problems
2293 with filechooser size handling (#325477, #151169, 143213,
2296 * gtk/gtkfilechooserdefault.c: Increase NUM_LINES slightly.
2297 (browse_widgets_create): Don't force the paned position to 200.
2298 (find_good_size_from_style): Take the size of the extra widget
2301 * gtk/gtkfilechooserdialog.c (file_chooser_widget_update_hints):
2302 Accept a minimal width parameter. Update all callers.
2304 2007-02-26 Matthias Clasen <mclasen@redhat.com>
2306 * gtk/gtkprintunixdialog.c: Change the label to "Pages per side",
2307 which is more accurate, suggested by Tim Waugh. String change!
2309 2007-02-26 Matthias Clasen <mclasen@redhat.com>
2311 * gtk/gtkprinteroptionwidget.c: Make the folder selection for
2312 print-to-file work. Reported by Ian Collier.
2314 2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
2316 Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash
2318 * gtk/gtkicontheme.c: (scan_directory):
2319 Reorder the replacement of the shared base_name key, so that we
2320 avoid dereferencing the string in the icon_theme->all_icon
2321 hash table after freeing it from the dir->icons hash table.
2323 2007-02-26 Tor Lillqvist <tml@novell.com>
2325 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon_name): Add
2326 comment clarifying that "icon name" here is not related to the
2327 freedesktop.org icon naming stuff.
2329 2007-02-23 Dom Lachowicz <domlachowicz@gmail.com>
2331 * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
2332 progress bar on windows classic. Match from Mathias Hasselmann.
2334 2007-02-19 Tor Lillqvist <tml@novell.com>
2336 * gdk/win32/gdkinput.c
2337 (gdk_device_finalize, gdk_device_class_init): Remove.
2338 (gdk_device_get_type): Drop class init function. The X11 version
2339 doesn't have one either.
2340 (gdk_devices_list): Call gdk_display_list_devices() on _gdk_display.
2341 (gdk_display_list_devices): Check that the argument is
2344 * gdk/win32/gdkinput-win32.h (GdkAxisInfo, GdkDevicePrivate):
2345 Cleanup: remove unused fields.
2346 * gdk/win32/gdkinput-win32.c: Corresponding changes. Fix function
2347 names in a few debugging printouts.
2349 2007-02-18 Matthias Clasen <mclasen@redhat.com>
2351 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
2352 Ignore invisible text when going to end of the previous line.
2355 2007-02-18 Richard Hult <richard@imendio.com>
2357 * gdk/quartz/gdkwindow-quartz.c:
2358 (gdk_window_quartz_process_all_updates),
2359 (_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
2360 patch from Erik van Pienbroek, fixes bug #396649.
2362 2007-02-18 Richard Hult <richard@imendio.com>
2364 * gdk/quartz/gdkevents-quartz.c: Add stub for
2365 gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
2368 * gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
2370 2007-02-18 Richard Hult <richard@imendio.com>
2372 * gdk/quartz/GdkQuartzView.h:
2373 * gdk/quartz/GdkQuartzWindow.h:
2374 * gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
2375 * gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use
2376 userSpaceScaleFactor for 10.3. Those changes bring us closer to working
2377 on panther, patch from Mathias Hasselmann.
2379 * gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
2381 2007-02-16 Behdad Esfahbod <behdad@gnome.org>
2383 * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
2384 instead of division. (#334617)
2386 2007-02-16 Kristian Rietveld <kris@gtk.org>
2388 * gtk/gtktreeprivate.h: add cursor_offset field.
2390 * gtk/gtktreeview.c (gtk_tree_view_init),
2391 (gtk_tree_view_move_cursor_page_up_down): fix off by one error
2392 in page up/down handling by memorizing the offset into the cursor
2393 row. (Fixes #399809, reported by Bruce Bowler).
2395 2007-02-16 Kristian Rietveld <kris@gtk.org>
2397 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
2398 a focus-in event to the tree view after hiding the search dialog.
2399 (#356515, Rich Burridge, Peter Parente).
2401 2007-02-16 Kristian Rietveld <kris@imendio.com>
2403 * tests/testtooltips.c (query_tooltip_text_view_cb): also handle
2404 keyboard tooltips. (#408325, Matthias Clasen).
2406 2007-02-16 Xan Lopez <xan@gnome.org>
2408 * gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
2409 in expose event handler. Reviewed by Matthias Clasen, #406112
2411 2007-02-16 Matthias Clasen <mclasen@redhat.com>
2413 * gtk/gtkmain.c: Run pre_parse_hook only once. (#403139, Kjartan
2416 2007-02-15 Matthias Clasen <mclasen@redhat.com>
2418 * gdk/x11/gdmain-x11.c (_gdk_xgrab_check_button_event): Be more
2419 careful when checking for ButtonRelease events that end implicit
2420 grabs. (#386618, Christof Krüger)
2422 2007-02-15 Matthias Clasen <mclasen@redhat.com>
2424 * gtk/gtktextbtree.c (_gtk_text_btree_delete): Free the lines
2425 even if there are no views. (#408018, Albert Huang)
2427 2007-02-15 Cody Russell <bratsche@gnome.org>
2429 * gdk/win32/gdkevents-win32.c: Make sure we get enough main context
2430 iterations while we're resizing so that the window contents are resized
2431 more smoothly (#389765).
2433 * gdk/win32/gdkevents-win32.c: Fix flickering widgets when window contents
2434 are resized (#310522).
2436 2007-02-15 Matthias Clasen <mclasen@redhat.com>
2438 * gtk/updateiconcache.c: Handle symlinked .icon files
2439 intelligently; also avoid storing duplicate strings.
2441 2007-02-15 Michael Natterer <mitch@imendio.com>
2443 * gtk/gtkmenushell.c: remove two antique function typedefs that
2444 are probably obsolete for ages.
2446 2007-02-14 Stefan Kost <ensonic@users.sf.net>
2448 reviewed by: Matthias Clasen <mclasen@redhat.com>
2450 * configure.in: determine installation prefixes of dependent libs to
2451 crossreference docs (#407146).
2453 2007-02-14 Kristian Rietveld <kris@imendio.com>
2455 * gtk/gtktooltip.c (child_location_foreach): check return value
2456 of gtk_widget_translate_coordinates() so we cannot end up
2457 using uninitialized x, y values. (#407863, patch from Carlos
2460 2007-02-14 Kristian Rietveld <kris@imendio.com>
2462 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2463 use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
2464 position instead of a hardcoded value. (Taken from maemo-gtk).
2466 2007-02-14 Michael Natterer <mitch@imendio.com>
2468 * gtk/gtkmenu.c (gtk_menu_motion_notify): don't forget to set the
2469 state of the synthesized GDK_ENTER_NOTIFY event. Fix taken from
2472 2007-02-13 Kristian Rietveld <kris@imendio.com>
2474 * gtk/gtktooltip.c (gtk_tooltip_hide_tooltip): stop any
2475 pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
2477 2007-02-10 Emmanuele Bassi <ebassi@gnome.org>
2479 * gtk/gtkrecentchoosermenu.c: Fix the english of the comment;
2480 remove some type checking; use better variable naming for the
2481 internal menu item markers.
2483 2007-02-09 Emmanuele Bassi <ebassi@gnome.org>
2485 * gtk/gtkrecentchoosermenu.c: Add support for both prepending
2486 and appending custom menu items.
2488 (gtk_recent_chooser_menu_constructor): Add a placeholder menu
2489 item for the empty menu case, and for giving us a starting
2490 point for the recent items populating process.
2492 (gtk_recent_chooser_menu_insert_item),
2493 (gtk_recent_chooser_menu_dispose_items): Insert an item at
2494 the position following the placeholder (and find that position
2497 (idle_populate_func), (idle_populate_clean_up): Show the
2498 placeholder menu item, instead of creating one each time.
2500 (gtk_recent_chooser_menu_populate): Kill some indirections
2501 and hide the placeholder before populating the menu.
2503 (set_recent_manager): Remember to remove the idle population
2504 source if the manager changes.
2506 * tests/testrecentchoosermenu.c: Test the appending and
2507 prepending of the menu items to the recent chooser menu
2510 2007-02-08 Emmanuele Bassi <ebassi@gnome.org>
2512 * gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
2513 of the displayed items to build the menu items mnemonic instead
2514 of the overall item count. (#377164)
2516 (idle_populate_clean_up): Append a menu item if all the items
2517 got filtered in the idle populate function. (#405696)
2519 * tests/Makefile.am:
2520 * tests/testrecentchoosermenu.c: Add a test for the
2521 GtkRecentChooserMenu widget.
2523 Thu Feb 8 13:07:08 2007 Tim Janik <timj@imendio.com>
2525 * applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
2526 GtkButtonBox (bug #336159).
2529 * gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
2530 support GTK_BUTTONBOX_CENTER.
2532 * tests/testbbox.c: new button box test, which allows testing of
2533 the various button box properties.
2535 * tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
2537 2007-02-07 Cody Russell <bratsche@gnome.org>
2539 * gdk/gdk.symbols: Add gdk_event_request_motions
2541 Wed Feb 7 19:03:28 2007 Tim Janik <timj@gtk.org>
2543 * gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request
2544 condition which was wrongly ported with my last commit.
2546 Tue Feb 6 15:53:59 2007 Tim Janik <timj@imendio.com>
2548 * gtk/gtktextview.c (gtk_text_view_motion_event):
2549 * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
2550 * gtk/gtkaboutdialog.c (credits_motion_notify_event):
2551 * gtk/gtkhruler.c (gtk_hruler_motion_notify):
2552 * gtk/gtkvruler.c (gtk_vruler_motion_notify):
2553 * gtk/gtkentry.c (gtk_entry_motion_notify):
2554 * gtk/gtktooltip.c (_gtk_tooltip_handle_event):
2555 * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
2556 for new motion events after receiving motion hints.
2558 * gdk/gdkevents.[hc]: added gdk_event_request_motions().
2560 2007-02-06 Kristian Rietveld <kris@imendio.com>
2562 * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
2563 remove unused get of has_tooltip.
2565 * tests/testtooltips.c (query_tooltip_tree_view_cb): use the
2566 portable g_snprintf instead of snprintf.
2568 2007-02-06 Michael Natterer <mitch@imendio.com>
2570 * gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
2572 (gtk_tooltip_show_tooltip): move variables and code to local
2573 scope. Fixes warnings about maybe uninitialized variables.
2575 2007-02-06 Kristian Rietveld <kris@imendio.com>
2581 * gtk/gtk.symbols: build system foo.
2583 * gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
2584 hook for appropriate events.
2586 * gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
2588 * gtk/gtkrc.c: add style for gtk-tooltip.
2590 * gtk/gtksettings.c (gtk_settings_class_init): make the
2591 different tooltip timeouts configurable.
2593 * gtk/gtkwidget.[ch]: add new properties, signals, make sure
2594 tooltips are hidden on unmap, destroy, update window event
2595 mask on realize, hook into focus change and show help
2598 * gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
2600 * gtk/gtktooltip.[ch]: new files.
2603 * tests/testtooltips.c: add test application.
2605 2007-02-05 Dom Lachowicz <domlachowicz@gmail.com>
2607 * modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
2608 by prematurely releasing a DC. By Hiroyuki Yamamoto
2609 * modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking
2610 pixbufs when drawing rotated tabs. By Daniel Atallah
2612 2007-02-05 Michael Natterer <mitch@imendio.com>
2614 * gtk/gtksettings.c: add new boolean settings gtk-enable-accels
2615 and gtk-enable-mnemonics which enable/disable accelerators and
2616 mnemonics (bug #72375, based on a patch from Tommi Komulainen).
2618 * gtk/gtkwindow.c (gtk_window_activate_key)
2619 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
2620 if the resp. setting is FALSE.
2622 * gtk/gtkaccellabel.c (gtk_accel_label_refetch)
2623 * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
2624 them if the setting is FALSE.
2626 * gtk/gtklabel.c: added signal connection to the screen's settings
2627 object and traverse all widgets on the screen when the setting
2628 changes. It's slightly ugly to also update GtkAccelLabels here,
2629 but less ugly than connecting and traversing all widgets twice.
2631 2007-02-05 Michael Natterer <mitch@imendio.com>
2633 * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
2634 values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
2635 ansi C enum value limits. Fixes bug #46757.
2637 2007-02-03 Soren Sandmann <sandmann@daimi.au.dk>
2639 * gtk/gtksequence.[ch]: Remove these files since GSequence has
2640 been moved into GLib.
2642 * gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
2644 * configure.in: Require glib-2.13.0
2646 2007-02-04 Tor Lillqvist <tml@novell.com>
2648 * gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
2649 mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
2651 2007-02-02 Kristian Rietveld <kris@gtk.org>
2653 * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
2654 style_get of vertical-separator. (#403165, Chris Wilson).
2656 2007-02-02 Christian Persch <chpe@svn.gnome.org>
2658 * gtk/gtkfilechoosersettings.c: (get_config_filename),
2659 (ensure_settings_read), (_gtk_file_chooser_settings_init),
2660 (_gtk_file_chooser_settings_set_show_hidden),
2661 (_gtk_file_chooser_settings_set_expand_folders),
2662 (_gtk_file_chooser_settings_save): Use a simple key file instead of a
2663 markup file. Bug #399592.
2665 2007-02-02 Mariano Suárez-Alvarez <mariano@gnome.org>
2667 * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
2668 be a little more helpful with the docs on GtkCellRendererText:alignment.
2671 2007-02-01 Michael Natterer <mitch@imendio.com>
2673 * gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
2674 gtk_paint_box() calls.
2676 2007-02-01 Michael Natterer <mitch@imendio.com>
2678 * gtk/gtkmenu.c (gtk_menu_button_press)
2679 (gtk_menu_button_release)
2680 (gtk_menu_button_scroll): remove redundant and confusing
2681 if (GTK_IS_MENU (widget)) checks because "widget" is always a
2684 Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
2686 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
2687 that gtkcombobox keeps on priv->popup_widget if it's a tree view.
2689 2007-01-31 Christian Persch <chpe@svn.gnome.org>
2691 * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
2692 (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
2693 (gtk_about_dialog_set_artists),
2694 (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
2695 there are no credits to show. Bug #402806.
2697 2007-01-31 Tor Lillqvist <tml@novell.com>
2699 * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
2701 (_gdk_input_wintab_init_check): Call it when debugging output is
2703 (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
2704 tablets. The Wacom driver reports duplicated cursors with
2705 physid==0. Fix verified by Robert Ögren.
2707 2007-01-30 Felix Riemann <friemann@svn.gnome.org>
2709 * modules/printbackends/file/gtkprintbackendfile.c:
2710 (file_printer_get_options): Fix leaked string. Fixes bug #402565.
2712 2007-01-30 Matthias Clasen <mclasen@redhat.com>
2714 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
2715 (gdk_x11_window_set_user_time): Be more careful about toplevel
2716 possibly being NULL. (#402453, Sebastian Bacher)
2718 Tue Jan 30 12:09:56 2007 Tim Janik <timj@gtk.org>
2720 * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
2721 class_n_properties and leave an uninitialized value array behind.
2723 2007-01-29 Michael Natterer <mitch@imendio.com>
2725 * gtk/gtkmenuitem.c (gtk_menu_item_select)
2726 (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
2727 this menu item's menu, to enable themeing menu items depending on
2728 whether something is selected in their submenu (patch taken from
2731 2007-01-28 Matthias Clasen <mclasen@redhat.com>
2733 * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
2734 that was mistakenly "cleaned up" a while ago. Also
2735 revert a problematic change to the screen_changed
2736 handler. (#401598, Søren Sandmann)
2738 2007-01-28 Matthias Clasen <mclasen@redhat.com>
2740 * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a
2741 problem with large y thickness. (#136592, Xan Lopez)
2743 2007-01-28 Matthias Clasen <mclasen@redhat.com>
2745 * gtk/gtkaction.c (gtk_action_new): Use canonical
2748 2007-01-27 Matthias Clasen <mclasen@redhat.com>
2750 * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
2751 (gtk_notebook_draw_focus): Avoid some unnecessary
2752 gtk_widget_get_style() calls.
2754 2007-01-27 Matthias Clasen <mclasen@redhat.com>
2757 * gtk/gtktoolitem.c:
2758 * gtk/gtktoolbutton.c: Rearrange things so that setting
2759 multiple properties causes not more than a single
2760 reconstruction of the contents.
2762 * gtk/gtkaction.c (connect_proxy): Set all tool button
2763 properties in one go.
2765 2007-01-27 Matthias Clasen <mclasen@redhat.com>
2767 * gtk/gtkstatusicon.c:
2768 * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
2769 take up space on the panel if it is invisible. (340110, Christian
2772 * tests/teststatusicon.c:
2773 * tests/Makefile.am: Updates
2775 2007-01-27 Matthias Clasen <mclasen@redhat.com>
2779 * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
2780 and the old file selector. (#348256)
2782 2007-01-26 Matthias Clasen <mclasen@redhat.com>
2784 * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
2786 2007-01-26 Matthias Clasen <mclasen@redhat.com>
2788 * gtk/updateiconcache.c: Check the mtime of all directories,
2789 not just the toplevel, if ftw() is available. (#331671, Behdad
2792 * configure.in: Check for ftw.h.
2794 2007-01-26 Michael Natterer <mitch@imendio.com>
2796 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
2797 destroy the XIM only if it exists. While the code does look safe
2798 in general, there can be corner cases where the "reconnecting"
2799 boolean being FALSE does not correspond to the XIM being
2800 allocated (fixes #329450, fix taken from maemo-gtk).
2802 Fri Jan 26 13:07:07 2007 Tim Janik <timj@imendio.com>
2804 * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
2805 window bounds (fix from Maemo Gtk).
2807 2007-01-26 Michael Natterer <mitch@imendio.com>
2809 * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
2810 only block/unblock completion->priv->insert_text_id if it is
2811 actually connected. While this can't happen the way GtkEntry
2812 itself uses the completion, it's still public API and should not
2813 blindly call functions that will spit warnings (fix taken from
2816 2007-01-25 Matthias Clasen <mclasen@redhat.com>
2818 * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
2819 the paintable iface.
2821 2007-01-24 Michael Natterer <mitch@imendio.com>
2823 * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
2824 of PRELIGHT state for the reasons given in bug #135666. Widget
2825 states are sometimes abused or otherwise used wrongly for historic
2826 reasons, causing this part of the patch to break e.g. menu items.
2828 2007-01-24 Roozbeh Pournader <roozbeh@farsiweb.info>
2830 * README: Remove mention of no-longer-existing PATCH
2831 keyword in bugzilla. (#396899)
2833 2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org>
2835 * gtk/gtkpagesetup.c
2836 (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
2839 2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
2841 Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
2844 Cause gcc to issue a warning if the style returned from
2845 gtk_style_attach is not used. Failure to update
2846 widget->style causes some very difficult to reproduce bugs,
2847 eg Bug 353498 – crash in Terminal: changing icon theme.
2849 2007-01-19 Michael Emmel <mike.emmel@gmail.com>
2851 * gdk/directfb/gdkevents-directfb.c: added fixes for window
2852 crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
2854 2007-01-19 Matthias Clasen <mclasen@redhat.com>
2856 * gtk/gtkcalendar.c: Fix build breakage.
2858 2007-01-19 Kristian Rietveld <kris@imendio.com>
2860 * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
2861 (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
2862 add_scroll_timeout(). (taken from maemo-gtk).
2864 2007-01-18 Matthias Clasen <mclasen@redhat.com>
2866 * gtk/gtkcalendar.c: Fix problems with the initial
2867 focus in GtkCalendar. (#397783, Vincent Untz)
2869 2007-01-19 Robert Ögren <gtk@roboros.com>
2871 Fix for bug #143460 - missed tablet clicks on Windows
2873 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
2874 Request absolute reporting of tablet button state, and cut down
2875 the packet queue size a bit.
2876 (_gdk_input_other_event): Change button state handling
2877 accordingly. Also drop the no longer necessary code that detects
2878 missed clicks/releases for button 1. The switch to absolute button
2879 state should prevent missed events for all buttons. Additionally,
2880 swap button 2 and 3.
2881 (_gdk_input_grab_pointer): Don't reset button_state, that will only
2882 cause a new press event as soon as the next tablet packet arrives.
2884 2007-01-19 Tor Lillqvist <tml@novell.com>
2886 Build Wintab support always on Windows. Don't require the Wintab
2889 * configure.in: Drop the --with-wintab option. Drop the
2890 HAVE_WINTAB feature test macro and Automake variable.
2893 * config.h.win32.in: Drop HAVE_WINTAB.
2895 * gdk/win32/gdkevents-win32.c
2896 * gdk/win32/gdkinput.c
2897 * gdk/win32/gdkinput-win32.h
2898 * gdk/win32/gdkinput-win32.c
2899 * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
2902 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
2903 to load wintab32.dll dynamically here. If it is found look up the
2904 handful Wintab functions we use.
2905 (rest of file): Use these function pointers instead of calling the
2906 functions from wntab32x.lib. The code in wntab32x.lib did the same
2907 thing anyway: tried to load wintab32.dll, and looked up the
2908 addresses of the actual functions from it.
2911 * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
2913 * gdk/win32/wintab.h
2914 * gdk/win32/pktdef.h: New files. Copied from the Wintab
2915 SDK. Copyright blurb says: "The text and information contained in
2916 this file may be freely used, copied, or distributed without
2917 compensation or licensing restrictions."
2919 * README.win32: Update a bit. Remove the text about the Wintab
2922 2007-01-18 Tor Lillqvist <tml@novell.com>
2924 * gdk-pixbuf/Makefile.am
2926 * gdk/win32/Makefile.am
2927 * gtk/Makefile.am: Fixes for building outside srcdir on
2928 Win32. (#336819, #340013) Drop distributing the handmade .la
2929 libtool wrapper for the wntab32x library. It's too much trouble
2930 making it work when building outside srcdir. Just link to the
2931 library direcly using -Wl,win32/libwntab32x.a.
2933 2007-01-18 Michael Natterer <mitch@imendio.com>
2935 * gtk/gtkcheckbutton.c
2940 * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
2941 functions. Based on a patch from maemo-gtk (bug #398023).
2943 2007-01-17 Tor Lillqvist <tml@novell.com>
2945 * gtk-zip.sh.in: Include also the COPYING file.
2947 2007-01-17 Matthias Clasen <mclasen@redhat.com>
2949 * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
2950 httpGetFd() when building against cups 1.1
2952 2007-01-17 Tor Lillqvist <tml@novell.com>
2954 Proper fix for #396175:
2956 * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
2957 include gtkprivate.h. On Win32 we do want to use the redefinition
2958 of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
2960 * gtk/gtkimmodule.c: Instead, correct the prefix also on
2961 simple_context_info.domain_dirname. Do the prefix corrections
2962 always on Win32, not just when GTK_LIBDIR is defined. i.e., until
2963 now they were done only in the autoconfiscated gcc builds. Hans
2964 needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
2966 (correct_localedir_prefix): New function, like
2967 correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
2968 GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
2969 (gtk_im_module_initialize): Thus call correct_localedir_prefix()
2970 on the domain_dirname instead of correct_libdir_prefix().
2971 (_gtk_im_module_list): Call correct_localedir_prefix() on
2972 simple_context_info.domain_dirname.
2974 2007-01-16 Matthias Clasen <mclasen@redhat.com>
2976 * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
2977 grab changes. (#396470, Benjamin Berg)
2979 2007-01-15 Emmanuele Bassi <ebassi@gnome.org>
2981 * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
2982 if they grow too much. (#357303)
2984 2007-01-14 Matthias Clasen <mclasen@redhat.com>
2986 * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
2987 non-scalable dir, keep going and look for a closer match.
2988 (#395830, Luca Ferretti)
2990 2007-01-14 Christian Persch <chpe@svn.gnome.org>
2992 * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
2993 (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
2994 gtk_target_table_free instead of duplicating the code. Bug #396493.
2996 2007-01-13 Matthias Clasen <mclasen@redhat.com>
2998 * gtk/gtkuimanager.c: Don't crash if menu or toolbar
2999 positions can't be found. (#396161, Hans Breuer)
3001 2007-01-13 Matthias Clasen <mclasen@redhat.com>
3003 * gtk/gtkselection.c (_gtk_selection_request): Plug
3004 memory leaks. (#396160, Carlos Garcia Campos)
3006 2007-01-13 Matthias Clasen <mclasen@redhat.com>
3008 * configure.in: Link libgtk against Xfixes. (#396074,
3011 2007-01-13 Matthias Clasen <mclasen@redhat.com>
3013 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
3014 a compiler warning. (#395045, Chris Wilson)
3016 2007-01-13 Hans Breuer <hans@breuer.org>
3018 * gtk/gtkprintoperation-win32.c : take the custom tab label from
3019 gtk_print_operation_set_custom_tab_label() into account (bug #390746).
3021 * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
3022 differing definitions of GTK_LOCALEDIR (bug #396175).
3024 * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
3025 not available everywhere
3027 * gtk/makefile.msc.in : updated
3029 2007-01-12 Michael Natterer <mitch@imendio.com>
3031 * gtk/gtkentry.c (gtk_entry_button_press): don't add
3032 entry->scroll_offset to entry->drag_start_y. Fixes the entry
3033 starting drags after ridiculously small mouse movements.
3035 2007-01-11 Richard Hult <richard@imendio.com>
3037 * demos/gtk-demo/main.c: (load_file): Close the file after it's
3038 loaded (bug #395316).
3040 2007-01-11 Kjartan Maraas <kmaraas@gnome.org>
3042 * gtk/gtkfilesystemunix.c: (expand_tilde):
3043 Make a single tilde go to $HOME in the location entry.
3044 Patch from Yevgen Muntyan. Closes the gtk+ part of
3047 2007-01-10 Behdad Esfahbod <behdad@gnome.org>
3049 * gdk/gdkpango.c (gdk_draw_layout_with_colors):
3050 * gtk/gtklabel.c (gtk_label_size_request):
3051 Use pango_matrix_transform_rectangle(). (#340141)
3053 * configure.in: Bump pango requirement to 1.15.3.
3055 2007-01-10 Kristian Rietveld <kris@imendio.com>
3057 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
3058 refactor to initialize indicator_size to TOGGLE_WIDTH instead
3059 of the hardcoded value of 12.
3061 2007-01-09 Matthias Clasen <mclasen@redhat.com>
3063 * configure.in: Fix the directfb cairo test. (#394855,
3066 2007-01-09 Behdad Esfahbod <behdad@gnome.org>
3068 * configure.in: Fix comment for --with-included-loaders. That option
3069 affects builds with module loading enabled too.
3071 2006-01-08 Peter Teichman <peter@novell.com>
3073 * gtk/gtkfilechooserdefault.c:
3074 * gtk/gtkfilechooserprivate.h:
3075 * gtk/gtkfilechoosersettings.c:
3076 * gtk/gtkfilechoosersettings.h:
3077 Save the expanded state of the folder browser with the file
3078 chooser settings. Resolves the expander portions of (#153828,
3081 2007-01-08 Emmanuele Bassi <ebassi@gnome.org>
3083 * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
3084 Don't leak the icon pixbuf after setting it to the image menu
3085 item. Found by Paolo Borelli.
3087 2007-01-08 Matthias Clasen <mclasen@redhat.com>
3089 * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't
3090 corrupt memory when faced with paths with ridiculously
3091 large indices. Found by the GTKVTS test suite.
3093 2007-01-08 Matthias Clasen <mclasen@redhat.com>
3095 * gtk/gtkmodules.c (_gtk_modules_init): Set
3096 default_display_opened before loading modules. (#393102,
3099 2007-01-07 Matthias Clasen <mclasen@redhat.com>
3101 * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
3102 Call text_window_realize() with the correct parameters.
3103 (#393813, Yevgen Muntyan)
3105 2007-01-07 Matthias Clasen <mclasen@redhat.com>
3107 * gtk/gtkstatusbar.c: Move docs inline, and expand them
3110 2007-01-06 Matthias Clasen <mclasen@redhat.com>
3112 * gtk/gtklabel.c: Make line wrapping work with width-chars
3113 and max-width-chars, and simplify the storage of wrap-width.
3114 (#322580, Itai Bar-Haim)
3116 2007-01-06 Tor Lillqvist <tml@novell.com>
3118 * gdk/win32/cursor.bdf: New file. Downloaded from
3119 freedesktop.org's webcvs. Slighly edited cursors "crosshair",
3120 "diamond_cross", "draft_large", "gobbler" and "target" to fix
3121 #392504. It is possible that the same end result could have been
3122 achieved by tweaking bdfcursor.c instead.
3124 * gdk/win32/bdfcursor.c: Add optional debugging output.
3126 * gdk/win32/xcursors.h: Regenerated.
3128 2007-01-05 Matthias Clasen <mclasen@redhat.com>
3130 * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
3131 menu labels. (#393255, Michail Crayson)
3133 2007-01-05 Kristian Rietveld <kris@gtk.org>
3135 * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
3136 == NULL. (Fixes #392685, reported by Yevgen Muntyan).
3138 2007-01-05 Kristian Rietveld <kris@gtk.org>
3140 * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
3141 invalidate nodes if the tree view is not realized. (#363147,
3142 Carlos Garnacho, Miguel Cabrera).
3144 2007-01-05 Matthias Clasen <mclasen@redhat.com>
3146 * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
3147 account when drawing the background. (#393166, Benjamin Berg)
3149 2007-01-05 Behdad Esfahbod <behdad@gnome.org>
3151 * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
3154 2007-01-05 Carlos Garnacho <carlosg@gnome.org>
3156 * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
3157 both scroll arrows when calculating size request in GTK_POS_LEFT or
3158 GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
3160 2007-01-05 Michael Natterer <mitch@imendio.com>
3162 * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
3163 the right function (fix taken from maemo-gtk).
3165 2007-01-05 Behdad Esfahbod <behdad@gnome.org>
3168 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
3169 (gdk_draw_layout_with_colors):
3170 * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
3171 Avoid overflow when converting coordinates to Pango units. (#332266,
3174 2007-01-04 Matthias Clasen <mclasen@redhat.com>
3176 * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
3177 after realization of the popup window, so clamp node doesn't fail.
3178 (#346616, Tommi Komulainen, patch by Kristian Rietveld).
3180 2007-01-04 Behdad Esfahbod <behdad@gnome.org>
3182 * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
3185 2007-01-04 Matthias Clasen <mclasen@redhat.com>
3188 * gdk-pixbuf/Makefile.am:
3190 * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
3191 (#392646, Yevgen Muntyan)
3193 2007-01-04 Matthias Clasen <mclasen@redhat.com>
3195 * demos/gtk-demo/textscroll.c:
3196 * gtk/gtkhandlebox.c:
3197 * gtk/gtkcolorsel.c: Fix some compiler warnings.
3199 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3201 * gtk/gtktextview.c: Rework the beep-on-uninserted-text
3202 by calling the input method regardless of editability,
3203 and beeping from the commit/preedit-changed handlers.
3204 (#390514, Yevgen Muntyan)
3206 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3208 Fix #332604, reported by Joe Wreschnig, patch
3209 by Jan Arne Petersen and Behdad Esfahbod.
3211 * gtk/gtklabel.c (gtk_label_size_allocate): Only
3212 set the width of the layout when necessary.
3213 (get_layout_location): Use pango_layout_get_pixel_extents()
3214 instead of pango_layout_get_width().
3216 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3218 * modules/printbackends/cups/gtkprintbackendcups.c
3219 (available_choices): Don't leak conflicts.
3221 * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
3222 Don't leak the status string.
3224 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3226 * gtk/gtkfilechooserdefault.c (update_chooser_entry):
3227 Exit early if we can't get file info - this happens
3228 if the iter points to the row where we are editing
3229 the name for a newly created folder. (#392191, Michael
3230 Partridge, patch by Kristian Rietveld)
3232 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3235 * gdk/x11/*.c: Apply a patch by Chris Wilson to
3236 avoid spurious valgrind warnings from XSendEvent()
3239 * modules/printbackends/cups/gtkprintbackendcups.c: Close
3240 the http connection after getting the PPD.
3242 * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
3245 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3247 * gtk/gtkassistant.c (remove_page): If the current page
3248 is removed, always pick a different one. (#392457,
3251 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3253 * modules/printbackend/cups/*.c: Coding style cleanups.
3255 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3257 * configure.in: Export SED to make sourcing of
3258 libtool work. Tighten up the directfb pkgconfig check.
3260 2007-01-03 Michael Natterer <mitch@imendio.com>
3262 * gtk/gtkstyle.c (option_menu_get_props)
3263 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use
3264 gtk_border_free when freeing borders.
3266 2007-01-03 Matthias Clasen <mclasen@redhat.com>
3268 * gtk/gtkentry.c (get_text_area_size): Work when the
3269 entry is not realized. (#392315, Yevgen Muntyan)
3271 * gtk/gtkentry.c (gtk_entry_queue_draw): Use
3272 GTK_WIDGET_DRAWABLE() here. (#392227, Chris Wilson)
3274 * gtk/gtkentry.c (cursor_blinks): Don't get settings
3275 unnecessarily. (#392227)
3277 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3279 * gtk/gtkwindow.c (gtk_window_move_resize): Only process
3280 updates on the window at hand, not on all windows, to
3281 avoid violating resize/redraw ordering constraints.
3282 (#362406, Owen Taylor)
3284 2007-01-03 Kristian Rietveld <kris@gtk.org>
3286 * gtk/gtkcellrendererprogress.c
3287 (gtk_cell_renderer_progress_class_init): fix docs.
3289 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3291 * gtk/updateiconcache.c: Include locale.h
3293 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3295 * gtk/updateiconcache.c (main): Call setlocale().
3298 * gtk/gtkfilesystemunix.c:
3299 * gtk/gtkfilesystemwin32.c:
3300 * gtk/gtkfilechoosersettings.c:
3301 * gtk/updateiconcache.c: Consistently use folder instead of
3302 directory in translated messages. (#344584, Javier F. Serrador)
3304 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3306 Try to fix #315732, reported by Luke Hutchinson:
3308 * gdk/x11/xsettings-client.[hc]:
3309 * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
3310 will guarantee that it can be looked up in the xid hash later.
3311 Also, use the nesting server grab function during the xsettings
3312 client initialization. Finally, make xsettings client not
3313 eat DestroyNotifys so that GDK can do its regular cleanup.
3315 2007-01-02 Michael Natterer <mitch@imendio.com>
3317 * gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
3318 when a keybinding didn't change adjustment->value.
3320 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3322 * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
3323 Try harder not to beep on events which are not meant to
3324 insert stuff in the buffer. (#390514, Yevgen Muntyan)
3326 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3328 * gtk/gtktextbufferrichtext.c: Small documentation fixes.
3330 2007-01-02 Matthias Clasen <mclasen@redhat.com>
3332 * gtk/gtkentry.c (get_text_area_size): Center in the frame.
3333 (#304482, Rob Staudinger, patch by Richard Stellingwerff)
3335 2007-01-02 Michael Emmel <mike.emmel@gmail.com>
3337 * gdkwindow-directfb.c: fixed leak of dfb resource on destroy
3339 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3341 * gtk/gtkscrolledwindow.h:
3342 * gtk/gtkscrolledwindow.c: Only handle key bindings
3343 for scrolling if the scrollbars are visible.
3344 (#340135, Christian Persch)
3346 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3348 * gtk/gtktextview.c (gtk_text_view_scroll_hpages):
3349 Don't segfault on horizontal scrolling.
3351 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3353 * gtk/gtknotebook.h:
3354 * gtk/gtknotebook.c: Only handle key bindings for
3355 tab reordering if the tabs are shown and reorderable.
3356 (#390468, Yevgen Muntyan)
3358 * gtk/gtkmarshalers.list: Add required marshaler
3360 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3362 * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
3363 Mention in the docs that the return value is
3364 NULL-terminated. (#383373, Christian Neumair)
3366 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3368 * gtk/gtkicontheme.c (load_themes): Waste less time
3369 with non-directories. (#391725, Chris Wilson)
3371 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3373 * gtk/gtkcellrendererprogress.c: Implement activity mode
3374 for GtkCellRendererProgress. (#377851, Brad Taylor)
3376 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3378 Fix some IPP compliance issues. (#391523, Albrecht Dress)
3380 * modules/printbackends/cups/gtkcupsutils.c
3381 (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
3383 * modules/printbackends/cups/gtkprintbackendcups.c
3384 (gtk_print_backend_cups_print_stream): Don't add the
3385 requesting-user-name attribute a second time.
3387 2007-01-01 Matthias Clasen <mclasen@redhat.com>
3389 * gtk/gtkimcontextsimple.c: Fix en/em dash confusion. (#378462)
3391 2006-12-31 Emmanuele Bassi <ebassi@gnome.org>
3393 * gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
3394 right object when disconnecting from the GtkRecentManager::changed
3395 signal; save us a few indirections using a variable.
3397 2006-12-31 Emmanuele Bassi <ebassi@gnome.org>
3399 * gtk/gtkrecentchoosermenu.c: Move the signal and idle
3400 disconnections into the dispose function, as well as the
3401 object unrefs; reset every handler id and the
3402 pointers. (suggested by Paolo Borelli, #390873)
3404 2006-12-31 Matthias Clasen <mclasen@redhat.com>
3406 * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
3409 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3411 * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
3412 scroll timeout. (#390872, Yevgen Muntyan)
3414 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3416 * gtk/gtkprintoperation-unix.c:
3417 * gtk/gtkprintbackend.c:
3418 * gtk/gtkfilechooserdefault.c:
3419 * gtk/gtksettings.c: Move a few settings to gtksettings.c
3420 to make sure they show up in the docs. (#365364, Christian
3423 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3425 * gtk/gtkassistant.c: Redraw assistant on reallocate
3426 to avoid rendering glitches. (#343956, Christian
3427 Persch, Carlos Garnacho)
3429 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3431 * gtk/gtkrange.c: Typo fix. (#352121, Clytie Siddall)
3433 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3435 * gtk/gtkaction.c: Improve the docs of the "label"
3436 property. (#341730, Kristof Vansant)
3438 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3440 * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
3441 Correctly handle min size. (#320465, Philipp Langdale)
3443 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3445 * gtk/prop-editor.c: Implement editing of flags.
3447 2006-12-30 Matthias Clasen <mclasen@redhat.com>
3452 * gtk/gtkstatusbar.c:
3453 * gtk/gtktextview.c: Don't install cursors on insensitive
3454 widgets. (#358864, Jan Schampera)
3456 2006-12-29 Matthias Clasen <mclasen@redhat.com>
3458 * gtk/gtkrecentmanager.h:
3459 * gtk/gtkprintoperation.c: Fix doc typos. (#370909,
3462 * gtk/gtkstyle.c (gtk_style_attach): Clarify docs. (#353423,
3465 * gtk/gtkentry.c (blink_cb):
3466 * gtk/gtktextview.c (blink_cb): Don't die in an assertion
3467 if focus went missing. Just warn, clean up and continue.
3470 2006-12-29 Carlos Garnacho <carlosg@gnome.org>
3472 * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
3473 originally received the event is a notebook page. (#315440, reported
3476 2006-12-29 Matthias Clasen <mclasen@redhat.com>
3478 * gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
3481 2006-12-29 Matthias Clasen <mclasen@redhat.com>
3483 * tests/prop-editor.c: Display children of containers
3484 and cell renderers of cell layouts.
3487 * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
3488 New function to get the cell renderers of a cell layout.
3490 * gtk/gtktreeviewcolumn.c:
3491 * gtk/gtkcellview.c:
3492 * gtk/gtkiconview.c: Implement get_cells.
3494 2006-12-28 Matthias Clasen <mclasen@redhat.com>
3496 * gtk/gtkiconview.c: Use word wrapping by default, and
3497 center multiline labels. (#318763, Ross Burton)
3499 * gtk/gtkcellrenderertext.c (get_layout): Remove a special
3500 case for single-line layouts.
3502 2006-12-28 Matthias Clasen <mclasen@redhat.com>
3504 * gtk/gtkarrow.c: Fix a typo in the docs. (#390423,
3507 * gtk/gtkuimanager.c (update_node): Only use the results
3508 of find_menu/toolbar_position() if they succeed. May fix
3511 2006-12-28 Matthias Clasen <mclasen@redhat.com>
3513 * gdk/gdk.c: Fix some formatting errors in docs.
3515 2006-12-28 Tor Lillqvist <tml@novell.com>
3517 * gtk/gtkstatusicon.c (gtk_status_icon_finalize)
3518 (gtk_status_icon_update_image): Don't leak HICONs on
3519 Win32. (#364868, Hiroyuki Yamamoto)
3521 2006-12-28 Carlos Garnacho <carlosg@gnome.org>
3523 Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
3525 * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
3526 * gtk/gtkmarshalers.list: add new marshaler definition.
3527 * gtk/gtkenums.h: add GtkDragResult enum.
3529 * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
3530 operation wasn't successful.
3531 (_gtk_drag_source_handle_event) (gtk_drag_drop)
3532 (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
3533 (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
3534 (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
3535 gtk_drag_drop_finished() the operation result.
3537 * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
3538 (gtk_notebook_drag_data_get): do not call window creation hook here.
3539 (gtk_notebook_init): do not set "application/x-rootwindow-drop"
3540 target, instead connect to "drag-failed".
3541 (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
3543 2006-12-28 Mikael Hallendal <micke@imendio.com>
3545 * gdk/quartz/gdkevents-quartz.c: Factored out the event loop
3546 integration into gdkeventloop-quartz.c.
3548 * gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
3550 * gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop
3553 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3555 * modules/printbackends/lpr/gtkprintbackendlpr.c
3556 (gtk_print_backend_lpr_print_stream): Close the io channel
3557 on unref. (#390159, Joe Markus Clarke)
3559 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3561 * gdk/gdk.h: Remove redundant declarations (#390097,
3564 2006-12-27 Kristian Rietveld <kris@gtk.org>
3566 Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
3568 * gtk/gtksettings.c (gtk_settings_class_init): add new setting
3569 gtk-alternative-sort-arrows.
3571 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
3574 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
3575 gtk-alternative-sort-arrows setting to true.
3577 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3578 invert direction if gtk-alternative-sort-arrows is TRUE.
3580 2006-12-27 Tor Lillqvist <tml@novell.com>
3582 * gtk/gtk.symbols: Add gtk_status_icon_get_screen and
3583 gtk_status_icon_set_screen.
3585 * gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
3586 on Windows. Keep track of where the last button click on the
3587 taskbar icon took place, and return that. Obviously not correct if
3588 no button has ever been clicked on the icon, or if the geometry of
3589 the taskbar has changed since. But for most use cases where a menu
3590 is going to be displayed as a direct result of a button click on
3591 the status icon, works fine. (#377349)
3593 Implement getting the orientation property on Windows.
3595 (gtk_status_icon_embedded_changed)
3596 (gtk_status_icon_orientation_changed): Ifdefify these functions
3597 that are used only on X11.
3599 2006-12-27 Tor Lillqvist <tml@novell.com>
3601 * gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
3602 typo. (#390035, Kazuki Iwamoto)
3604 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3606 * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.
3608 * gtk/gtkcombobox.c (gtk_combo_box_set_model):
3609 (gtk_combo_box_unset_model): Handle repeated unsetting
3610 of models without warnings. (#367529, Robert Ancell)
3612 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3614 * modules/printbackends/cups/gtkcupsutils.c:
3615 * modules/printbackends/cups/gtkprintbackendcups.c: Use
3616 getters for http fields where available. (#364866,
3619 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3621 * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
3622 (#362614, Xan Lopez)
3624 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3626 * gtk/gtkuimanager.c (update_node): If a required action
3627 is missing, don't recurse over the children. (#349119,
3630 2006-12-27 Matthias Clasen <mclasen@redhat.com>
3632 Fix a few problems with nested menus in comboboxes
3633 (#386694, Yevgen Muntyan)
3635 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
3636 connect the activate callback.
3637 (gtk_combo_box_menu_item_activate): Do nothing if called on
3638 an item with a submenu.
3639 (gtk_combo_box_menu_row_deleted): Remove a submenu when it
3642 2006-12-26 Mariano Suárez-Alvarez <mariano@gnome.org>
3644 * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
3645 filechooser button. Bug 353196.
3647 2006-12-26 Kristian Rietveld <kris@gtk.org>
3649 * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
3650 the search dialog timeout never to be refreshed. (#389581,
3651 Andrzej Szombierski).
3653 2006-12-26 Kristian Rietveld <kris@gtk.org>
3655 Lots of scrolling fixes. Made scrolling work properly in not fully
3656 validated tree views; fixed a bunch of corner cases.
3658 * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
3659 upper - page_size, we know it is located at the end so the test for
3660 dy + height has been dropped.
3661 In the same case if area_below < 0, we know this is the last node
3662 in the tree view so area_above is page_size - height of this row.
3663 (validate_visible_area): got rid of subtracting new_height -
3664 old_height from area_{below,above}, it didn't make any sense at
3665 all and the full height of the row should be subtracted instead.
3666 (validate_visible_area): when scrolling to a given path, set the
3667 top row directly together with the dy offset, then sync that top_row
3669 (gtk_tree_view_set_top_row): new function to directly set a top_row.
3670 (gtk_tree_view_dy_to_top_row): refactored to use
3671 gtk_tree_view_set_top_row().
3672 (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
3673 (gtk_tree_view_adjustment_changed): only update our dy and
3674 top_row if the adjustment's dy actually changed.
3676 2006-12-26 Christian Persch <chpe@cvs.gnome.org>
3678 * gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
3679 Return the correct value from gtk_notebook_insert_page if the
3680 page-added handler reorders the tabs. Bug #345094.
3682 2006-12-26 Carlos Garnacho <carlosg@gnome.org>
3684 Fix small regressions in GtkNotebook tab detaching. Bug #378852.
3686 * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
3687 scrolling when hovering with a detached tab.
3688 (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
3689 focus tab has changed during a tab DND operation.
3690 (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
3691 (gtk_notebook_paint): do not take cur_page as a reference to paint the
3692 box if it's detached.
3693 (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
3694 to the detached tab if we hover the arrows during a tabs detaching
3695 operation, do not allocate it unconditionally in 0,0.
3697 2006-12-26 Carlos Garnacho <carlosg@gnome.org>
3699 Expose improvements for GtkNotebook. Bug #383435
3701 * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
3703 (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
3704 (gtk_notebook_draw_tab): do not send handmade expose events to tab
3707 2006-12-26 Matthias Clasen <mclasen@redhat.com>
3709 * gtk/gtkfilesystemunix.c (execute_callbacks): Return
3710 FALSE. (#389623, Carlos Garnacho Parro)
3712 * gtk/gtkrange.c (stop_scrolling): Avoid spurious
3715 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
3717 * gtk/gtkplug.c: (gtk_plug_construct_for_display),
3718 (gtk_plug_unrealize): Notify the "embedded" property also on
3719 normal construction and when destroying the socket window.
3722 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
3724 * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
3725 (gtk_about_dialog_init), (display_credits_dialog),
3726 (display_license_dialog):
3727 * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
3728 (gtk_file_chooser_dialog_init),
3729 (gtk_file_chooser_dialog_constructor),
3730 (gtk_file_chooser_dialog_unmap):
3731 * gtk/gtkrecentchooserdefault.c:
3732 (_gtk_recent_chooser_default_init):
3733 * gtk/gtkrecentchooserdialog.c:
3734 (gtk_recent_chooser_dialog_class_init),
3735 (gtk_recent_chooser_dialog_init),
3736 (gtk_recent_chooser_dialog_constructor),
3737 (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
3738 instead of using style-set handlers. Fix the filechooser's spacing
3739 between content and action area to 12px. Bug #372447.
3741 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
3743 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
3744 Don't assume statusbar->label is the statusbar's frame's child when
3745 shrinking the size allocation when the grip is shown. Bug #372452.
3747 2006-12-25 Christian Persch <chpe@cvs.gnome.org>
3749 * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
3750 (add_custom_paper): Fix mem leaks. Bug #389194.
3752 2006-12-24 Matthias Clasen <mclasen@redhat.com>
3754 * gtk/gtktextutil.c: Remove debug output.
3756 * gtk/gtktextview.c: Improve the DND scrolling
3757 behaviour. (#92387, Carlos Garnacho Parro)
3759 * gtk/gtkaccellabel.c: Improve translators comments.
3760 (#389298, Christian Persch)
3762 2006-12-24 Bastien Nocera <hadess@hadess.net>
3764 * gtk/gtkrecentmanager.c: Fix typo (s/expansive/expensive)
3767 2006-12-24 Christian Persch <chpe@cvs.gnome.org>
3769 * docs/reference/gtk/gtk-sections.txt:
3771 * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
3772 * gtk/gtkprinter-private.h:
3773 * gtk/gtkprinter.c: (gtk_printer_list_papers):
3774 * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
3776 2006-12-24 Carlos Garcia Campos <carlosgc@gnome.org>
3778 * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
3779 when is selected in page setup dialog. Fixes bug #365047.
3781 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
3783 * gtk/gtkentry.c (_gtk_entry_effective_inner_border):
3784 Use gtk_border_free when freeing border.
3786 2006-12-24 Matthias Clasen <mclasen@redhat.com>
3788 * gtk/gtkentry.c (gtk_entry_button_press): When
3789 shift-clicking, keep the larger part of the selection
3790 selected. (#353709, Benjamin Otte)
3792 * gtk/gtkbutton.c (gtk_button_get_props): Use
3793 gtk_border_free when freeing borders.
3795 * gtk/gtkbutton.c (gtk_button_grab_notify): Be more
3796 careful when faking a button release. (#323146,
3799 * gtk/gtkhandlebox.c (draw_textured_frame): Draw the
3800 handle with the right orientation, depending on the
3801 position of the handlebox. (#159764, Benjamin Berg)
3803 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
3805 * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for
3806 GtkBorder (#383557).
3808 2006-12-24 Behdad Esfahbod <behdad@gnome.org>
3810 Bug 340141 – Update to Pango 1.16 API
3812 * gdk/gdkpango.c (layout_iter_get_line_clip_region),
3813 (gdk_pango_layout_line_get_clip_region):
3814 * gtk/gtkcalendar.c (gtk_calendar_size_request):
3815 * gtk/gtkentry.c (gtk_entry_get_pixel_ranges),
3816 (get_layout_position), (gtk_entry_find_position),
3817 (gtk_entry_adjust_scroll):
3818 * gtk/gtkiconview.c (get_pango_text_offsets):
3819 * gtk/gtklabel.c (get_cursor_direction):
3820 * gtk/gtkstyle.c (get_insensitive_layout):
3821 * gtk/gtktextdisplay.c (render_para):
3822 * gtk/gtktextlayout.c (allocate_child_widgets),
3823 (find_display_line_below), (find_display_line_above),
3824 (gtk_text_layout_move_iter_to_previous_line),
3825 (gtk_text_layout_move_iter_to_next_line),
3826 (gtk_text_layout_move_iter_to_line_end),
3827 (gtk_text_layout_iter_starts_line),
3828 (gtk_text_layout_move_iter_to_x):
3829 * gtk/gtktextutil.c (limit_layout_lines):
3830 Use the _readonly version of pango_layout_iter_get_line(),
3831 pango_layout_iter_get_run(), pango_layout_get_line(), and
3832 pango_layout_get_lines().
3834 * gtk/gtkmain.c (gtk_get_default_language): Use
3835 pango_get_default_language().
3837 2006-12-24 Matthias Clasen <mclasen@redhat.com>
3839 * gtk/gtkentry.c (gtk_entry_set_text): Emit changed
3840 and notify:text only once. The same fix was applied
3841 for replacing the selection via DND or copy-and-paste.
3842 (#64998, Damon Chaplin, Sven Herzberg)
3844 2006-12-23 Matthias Clasen <mclasen@redhat.com>
3846 * gtk/gtkimmulticontext.c: Be careful to not override
3847 GTK+ translations with the translations of the input
3848 method. (#317080, Tor Lillqvist)
3850 * modules/input/imcedilla.c: Use standard macros
3851 for translation domain and locale dir.
3853 * gtk/gtkimcontextsimple.c: Allow composing l with
3854 stroke. (#349638, Daniel Lublin)
3856 * gtk/gen-paper-names.c: Fix a thinko in the suffix
3857 calculation. (#382369, Christian Persch)
3859 * gtk/paper_names_offsets.c: Regenerated.
3861 2006-12-22 Matthias Clasen <mclasen@redhat.com>
3863 * modules/engines/pixbuf/pixbuf.h:
3864 * modules/engines/pixbuf/pixbuf-rc-style.h:
3865 * modules/engines/pixbuf/pixbuf-style.h: Move
3866 G_GNUC_INTERNAL before function declarations. (#352276,
3869 2006-12-22 Matthias Clasen <mclasen@redhat.com>
3871 * demos/gtk-demo/*.c: Fix some leaks. (#348108, Chris
3874 2006-12-22 Matthias Clasen <mclasen@redhat.com>
3876 * *.c: Replace a lot of idle and timeout calls by
3877 the new gdk_threads api.
3881 * gdk/gdk.c: Add functions to allow threadsafe handling
3882 of idles and timeouts wrt. to the GDK lock. (#321886,
3885 2006-12-22 Matthias Clasen <mclasen@redhat.com>
3887 * gdk/gdkpango.c: Use pango_cairo_show_error_underline.
3888 (#340141, Behdad Esfahbod)
3890 * configure.in: Check for getc_unlocked.
3892 * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
3893 unavailable. (#381499)
3895 * tests/teststatusicon.c: Fix a typo
3897 2006-12-22 Matthias Clasen <mclasen@redhat.com>
3899 Make it possible to track the embeddedness of
3900 statusicon (#387215, Martyn Russell, patch by Christian
3903 * gtk/gtkstatusicon.c: Add orientation and embedded properties.
3905 * gtk/gtkplug-x11.c: Add an embedded property.
3906 * tests/teststatusicon.c: Test the new properties.
3908 * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
3909 leak draw_border. (#387170, Kjartan Maraas)
3911 2006-12-21 Matthias Clasen <mclasen@redhat.com>
3913 * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
3914 Typo fix. (#388123, Murray Cumming)
3916 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3917 Generate double-click events. (#380421, Tommi Komulainen)
3919 * gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
3920 (_gdk_input_enter_event): Correct return_if_fail checks.
3921 (#379803, Tommi Komulainen)
3923 * gdk/gdkdisplay.c: Improve the docs of some functions operating
3924 on the default display. (##353438, Mariano Suárez-Alvarez)
3926 2006-12-21 Matthew Barnes <mbarnes@redhat.com>
3928 * docs/reference/gdk/gdk-sections.txt:
3929 * gdk/gdkcolor.[ch] (gdk_color_to_string): Add a function for
3930 converting a GdkColor to a string (#373856).
3932 * configure.in: Bump pango requirement to 1.15.2.
3934 2006-12-20 Matthias Clasen <mclasen@redhat.com>
3936 * gdk/keynames.txt: Mark arrow keys as translatable. (#369506,
3939 * gdk/keyname-table.h: Regenerated
3941 * gtk/gtktextbuffer.c: Add signal documentation. (#317064,
3942 Søren Wedel Nielsen)
3944 * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
3945 Silently return if a drag is already in progress, rather
3946 than asserting. (#335622, Li Yuan, testcase by Erwann Chenede)
3948 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
3949 Allow any GtkDialog that implements GtkFileChooser as
3950 dialog. (#335473, Tommi Komulainen)
3952 2006-12-20 Mikael Hallendal <micke@imendio.com>
3954 * gtk/gtkstatusicon.c: (gtk_status_icon_init): Fixed a last minute
3955 change in the quartz backend.
3957 2006-12-20 Mikael Hallendal <micke@imendio.com>
3959 * gtk/Makefile.am: Added gtkstatusicon-quartz.c
3960 * gtk/gtkstatusicon-quartz.c: Implements the quartz backend for the
3962 * gtk/gtkstatusicon.c: Hooked in the new quartz backend. Bug #387874.
3964 2006-12-19 Matthias Clasen <mclasen@redhat.com>
3966 * gtk/gtkprintunixdialog.c: Add a tooltip explaining the
3967 format of page ranges, and improve the page sequence icon
3968 for the case of n_copies == 1.
3970 2006-12-19 Mikael Hallendal <micke@imendio.com>
3972 * gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
3973 routine so that it can be used from libgtk as well (needed for
3974 upcoming GtkStatusIcon support in the Quartz port).
3975 * gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
3976 created from GDK, this is not true for the status icon.
3977 * gdk/quartz/gdkprivate-quartz.h:
3978 * gdk/quartz/gdkquartz.h: Added
3979 gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to
3980 the status icon code.
3982 2006-12-16 Tristan Van Berkom <tvb@gnome.org>
3984 * gtk/gtkmessagedialog.c: Added return_if_fail (image) to
3985 gtk_message_dialog_set_image ()
3987 * gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
3988 (setting "window-placement-set" could result in a crash because
3989 of boolean/enum mixup)
3991 2006-12-15 Federico Mena Quintero <federico@novell.com>
3993 Merged from gtk-2-10:
3995 * gtk/gtkmenu.c (gtk_menu_set_title): Don't try to optimize for
3996 the case where the new title is the same as the old title, to
3997 preserve the behavior from GTK+ 2.8 (NULL and "" titles are not
3998 equivalent). Handle the case where title == priv->title. This
3999 was found by the LSB compatibility tests:
4000 https://bugzilla.novell.com/show_bug.cgi?id=223882
4002 2006-12-15 Dom Lachowicz <domlachowicz@gmail.com>
4004 * gtk/gtkcombobox.c: Make GtkComboBox in "appears-as-list" mode
4005 more closely resemble its Win32 counterpart. Bug #340204.
4007 2006-12-14 Carlos Garnacho <carlosg@gnome.org>
4009 * gtk/gtkcalendar.c: draw arrows pointing to the right correctly
4010 placed inside their GdkWindow. Bug #385672.
4012 2006-12-14 Christian Persch <chpe@cvs.gnome.org>
4014 * gtk/gtkiconview.c: Fix docs typo. Bug #385642.
4016 2006-12-13 Dom Lachowicz <domlachowicz@gmail.com>
4018 * src/modules/engines/ms-windows/msw_style.c: Bug 351679 - Notebooks
4019 drawn with extra line below tab in MS-Windows theme. Patch by
4022 2006-12-13 Matthias Clasen <mclasen@redhat.com>
4024 * gtk/Makefile.am: Add --unlink-tempfile to the evince call
4025 for print preview. (#370041, Ghee Teo)
4027 2006-12-11 Matthias Clasen <mclasen@redhat.com>
4029 * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more
4030 careful when overdrawing antialiased text. (#352435, Alex Jones,
4031 patch by Benjamin Otte)
4033 * gtk/gtksettings.c: Change the way in which color scheme information
4034 is merged to correctly handle vanishing colors. (#374420,
4035 Benjamin Berg, patch by Callum McKenzie)
4036 Also allow to separate entries in color schemes by ';'
4039 2006-12-10 Matthias Clasen <mclasen@redhat.com>
4041 * modules/printbackends/cups/gtkcupsutils.c (gtk_cups_request_encode_option):
4042 Properly pass multi-value options to cups. (#355350, Jürg Billeter)
4044 2006-12-10 Kristian Rietveld <kris@gtk.org>
4046 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
4047 cancel editing (ie. don't accept changes) when the entry loses
4048 focus. (Fixes #164494, reported by Chris Rouch).
4050 2006-12-10 Matthias Clasen <mclasen@redhat.com>
4052 * configure.in: Correct a misapplied patch.
4054 2006-12-10 Tor Lillqvist <tml@novell.com>
4056 * gtk-zip.sh.in: Put gdk-pixbuf-query-loaders.exe and
4057 gtk-query-immodules-2.0.exe in the runtime zipfile instead of
4058 developer zipfile. Users might add pixbuf loaders or immodules
4059 even if they are not interested in developing gtk+-using software.
4061 2006-12-10 Matthias Clasen <mclasen@redhat.com>
4063 * configure.in: Check for crt_extern.h and _NSGetEnviron.
4064 * gdk/x11/gdkspawn-x11.c: Fix compilation on Darwin where
4065 environ is not available. (#384168, Min Sik Kim)
4067 2006-12-07 Paolo Maggi <paolo@gnome.org>
4071 * gtk/gtkentry.c (gtk_entry_set_text): check for
4072 completion->priv->changed_id > 0 before calling
4073 g_signal_handler_[un]block.
4074 (gtk_entry_completion_key_press): does not block/unblock the "changed"
4075 signal before calling gtk_entry_set_text.
4077 2006-12-07 Carlos Garnacho <carlosg@gnome.org>
4079 * gtk/gtkcellrendererprogress (compute_dimensions): do not use
4080 xthickness/ythickness, they aren't used any longer for drawing.
4082 2006-12-07 Matthias Clasen <mclasen@redhat.com>
4084 * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
4085 underlines by giving labels a small draw-border.
4087 2006-12-06 Kristian Rietveld <kris@gtk.org>
4089 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render):
4090 draw progress bar through theme engine instead of using our own
4091 custom cairo drawing code (#377244, patch from Carlos Garnacho).
4093 2006-12-06 Matthias Clasen <mclasen@redhat.com>
4095 * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
4096 Update the sensitivity of the collate checkbutton more frequently,
4097 proposed by Tim Waugh.
4099 2006-12-04 Matthias Clasen <mclasen@redhat.com>
4101 * gtk/gtkmessagedialog.c (setup_type): Set a11y name and role
4102 since we no longer set window titles.
4104 2006-12-04 Christian Persch <chpe@cvs.gnome.org>
4106 * gtk/gtkpagesetup.c: (gtk_page_setup_get_paper_size),
4107 (gtk_page_setup_set_paper_size): Don't leak the old page size when
4108 setting a new one. Bug #382314.
4110 2006-12-03 Michael Natterer <mitch@gimp.org>
4112 * gtk/gtktextview.c: remove FIXME #include that is no longer needed.
4114 2006-12-03 Kristian Rietveld <kris@gtk.org>
4116 Make sure [xy]_offset are always being initialized, fix pixbuf
4117 renderer padding. (#108235, Sven Neumann).
4119 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size),
4120 (gtk_cell_renderer_pixbuf_render): add padding in _render instead
4123 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
4124 always initialize [xy]_offset.
4125 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto.
4126 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4129 2006-12-03 Kristian Rietveld <kris@gtk.org>
4131 * gtk/gtktreeview.c (validate_visible_area): when not using an
4132 explicit alignment, use the full area of the row (not just dy)
4133 to determine how to implicitly align it. (Fixes #363191, reported
4134 by Federico Mena Quintero).
4136 2006-12-02 Matthias Clasen <mclasen@redhat.com>
4138 * gtk/gtkicontheme.c (insert_theme): Properly clean up
4139 if an icon theme index file has no directories. (#381236)
4141 2006-12-02 Dom Lachowicz <domlachowicz@gmail.com>
4143 * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks
4144 not with PositionType.Top drawn incorrectly. Patch by Cody Russell
4146 2006-11-28 Behdad Esfahbod <behdad@gnome.org>
4148 Remove the broken Thai input method and add a functional Thai and Lao
4149 input method by Theppitak Karoonboonyanan. (#81031)
4151 * modules/input/imthai.c:
4152 * modules/input/gtkimcontextthai.c:
4153 * modules/input/gtkimcontextthai.h:
4154 * modules/input/thai-charprop.c:
4155 * modules/input/thai-charprop.h:
4158 * modules/input/imthai-broken.c:
4161 * modules/input/Makefile.am:
4164 2006-11-27 Christian Persch <chpe@cvs.gnome.org>
4166 * gtk/gtkstatusicon.c: Notify when the screen changes. Bug #379793.
4168 Mon Nov 27 12:27:06 2006 Tim Janik <timj@imendio.com>
4170 * gtk/gtktextview.c: applied patch by Colin Leroy for
4171 Control+GDK_KP_Left to move one word to the left, #356255.
4173 2006-11-26 Benjamin Berg <benjamin@sipsolutions.net>
4175 * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL
4178 2006-11-25 Matthias Clasen <mclasen@redhat.com>
4180 * modules/printbackends/cups/gtkprintbackendcups.c: Make
4181 print dialog work when 'BrowseShortNames Off' is specified
4182 in cups configuration. Patch by Tim Waugh.
4184 2006-11-24 Michael Natterer <mitch@imendio.com>
4186 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
4187 can't go up/down, consult gtk_widget_keynav_failed() and leave the
4188 widget if it returns FALSE (bug #322640).
4190 2006-11-23 Behdad Esfahbod <behdad@gnome.org>
4192 * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
4194 2006-11-22 Emmanuele Bassi <ebassi@gnome.org>
4196 * gtk/gtkrecentmanager.c:
4197 (get_uri_shortname_for_display): g_filename_from_uri() might
4198 fail; catch the failure and fall back to the non-local URI
4201 2006-11-19 Mark McLoughlin <mark@skynet.ie>
4203 Fixes bug #376502 - multi-screen support for GtkStatusIcon
4205 * gtk/gtkstatusicon.[ch]:
4206 (gtk_status_icon_set_screen),
4207 (gtk_status_icon_get_screen): add multi-screen API. Allows
4208 an app to display an icon on a non-default screen
4209 (gtk_status_icon_class_init),
4210 (gtk_status_icon_set_property),
4211 (gtk_status_icon_get_property): add a "screen" property
4213 * tests/teststatusicon.c: update to test on multiple screens
4215 2006-11-17 Matthias Clasen <mclasen@redhat.com>
4217 Fix problems with drag cancellation. (#376535, Michael Natterer)
4219 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
4220 handlers before emitting drag-end.
4221 (gtk_drag_end): Disconnect signal handlers before removing
4224 2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org>
4226 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4227 add gtk-doc blurb on GtkCellRendererText::edited (#376094)
4229 2006-11-16 Michael Natterer <mitch@imendio.com>
4231 * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
4232 gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
4233 and gtk-keynav-wrap-around and wrap around, beep or continue outside
4234 the group manually (bug #322640).
4236 2006-11-16 Michael Natterer <mitch@imendio.com>
4238 Add new infrastructure for notifications of failed keyboard
4239 navigation and navigation with restricted set of keys.
4241 The patch handles configurable beeping, navigating the GUI with
4242 cursor keys only (as in phone environments), and configurable
4243 wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
4246 * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
4247 gtk-keynav-wrap-around and gtk-error-bell.
4249 * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
4250 API to emit it. Added New function gtk_widget_error_bell() which
4251 looks at the gtk-error-bell setting and calls gdk_window_beep()
4254 * gtk/gtk.symbols: add the new widget symbols.
4256 * gtk/gtkcellrendereraccel.c
4257 * gtk/gtkimcontextsimple.c
4259 * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
4260 gtk-error-bell setting instead of calling gdk_display_beep()
4267 * gtk/gtkmenushell.c
4268 * gtk/gtkspinbutton.c
4270 * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
4275 * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
4276 cursor navigation and leave the widget if it returns FALSE.
4278 * gtk/gtkmenushell.c
4279 * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
4282 * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
4283 whether to to wrap-around, and don't select active items on cursor
4284 navigation if gtk-keynav-cursor-only is TRUE. Should look at
4285 gtk-keynav-wrap-around too, will look into that.
4287 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
4289 * gtk/gtkrecentmanager.c:
4290 (gtk_recent_info_get_uri_display): Return the URI
4291 of the GtkRecentInfo object (upgraded to UTF-8 if
4292 needed) in case of non-local file. (#351945)
4294 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
4296 * gtk/gtkrecentchoosermenu.c:
4297 (gtk_recent_chooser_menu_add_tip): Apply the tip only
4298 if we have a displayable name for the item. (#365031,
4299 patch by padraig.obriain(at)sun.com)
4301 2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
4303 * gtk/gtkrecentmanager.c: Provide a fast path returning
4304 NULL when the limit is set to 0.
4306 * gtk/gtkrecentchooserdefault.c:
4307 * gtk/gtkrecentchoosermenu.c: Add the same fast path
4308 inside the RecentChooser implementation; add a check
4309 in the list clamping code. (#373466 and duplicates)
4311 2006-11-15 Matthias Clasen <mclasen@redhat.com>
4313 * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options):
4314 Don't pass NULL to strncpy. (#359537, patch by Carlos Garcia Campos)
4316 2006-11-15 Michael Natterer <mitch@imendio.com>
4318 * gtk/gtkrange.[ch]: added properties "fill-level",
4319 "show-fill-level" and "restrict-to-fill-level" and getters/setters
4320 for them. The "fill level" is an additional marker on the range's
4321 trough than can be e.g. used to indicate the amount of
4322 pre-buffering in a range showing the play position of streamed
4323 media. See the embedded API docs for details. Made GtkRangeLayout
4324 a GTypeInstance private struct and removed finalize()
4325 implementation. Fixes bug #349808
4327 * gtk/gtk.symbols: added the new symbols.
4329 2006-11-14 Behdad Esfahbod <behdad@gnome.org>
4331 * configure.in: Make libtool magic robust. (#352795)
4333 2006-11-13 Paolo Borelli <pborelli@katamail.com>
4335 * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
4338 2006-11-09 Kristian Rietveld <kris@imendio.com>
4340 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
4341 don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
4343 2006-11-09 Carlos Garnacho <carlosg@gnome.org>
4345 * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
4347 2006-11-08 Carlos Garnacho <carlosg@gnome.org>
4349 * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
4350 timeout running if the slider buttons are hidden. (#372527)
4352 2006-11-08 Christian Persch <chpe@cvs.gnome.org>
4354 * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
4355 the "Location" label bold. Bug #372449.
4357 2006-11-07 Carlos Garnacho <carlosg@gnome.org>
4359 * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
4360 non-focused tabs xthickness/ythickness thinner. (#353962)
4362 2006-11-07 Paolo Borelli <pborelli@katamail.com>
4364 * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
4365 corruption (#357050).
4367 2006-11-06 Alexander Larsson <alexl@redhat.com>
4369 * gtk/gtkdnd.c: (gtk_drag_begin_internal),
4370 (gtk_drag_source_info_destroy), (gtk_drag_end),
4371 (gtk_drag_grab_notify_cb):
4372 Cancel drag when the grab is shadowed. (#122688)
4374 2006-11-01 Kristian Rietveld <kris@imendio.com>
4376 * gtk/gtkcombobox.c (gtk_combo_box_class_init),
4377 (gtk_combo_box_size_request): add arrow-size property to control
4378 the minimum size of the arrow, have the arrow scale up with the
4379 font by default. (#357950).
4381 2006-10-30 Kristian Rietveld <kris@gtk.org>
4383 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
4384 forget to queue a draw for the new cursor node. (Fixes #366548,
4385 reported by Sven Herzberg).
4387 2006-10-30 Michael Natterer <mitch@imendio.com>
4389 * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
4390 only if we actually cancel a drag. Fixes bug #58389.
4392 2006-10-30 Kristian Rietveld <kris@gtk.org>
4394 * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
4395 keybindings to collapse/expand rows instead of moving the focus
4396 cursor. (#105895, Brian Bober and others).
4398 2006-10-29 Kristian Rietveld <kris@gtk.org>
4400 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
4401 child removal in row-expanded callback. (#366782, John Ellis).
4403 2006-10-29 Tor Lillqvist <tml@novell.com>
4405 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
4406 of the small icon of the window class. (#152620, Kazuki Iwamoto)
4408 2006-10-29 Tor Lillqvist <tml@novell.com>
4410 * gdk/win32/gdkcursor-win32.c
4411 (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
4412 for instance the built-in GDK ones.
4414 2006-10-27 Kristian Rietveld <kris@gtk.org>
4416 * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
4417 case to not overwrite the variables in the lower scope (which are
4418 used later on ...), get the path correctly and bail out when there
4419 isn't a node above us. (#359231).
4421 2006-10-26 Christian Persch <chpe@cvs.gnome.org>
4423 * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
4425 2006-10-25 Johan Dahlin <jdahlin@async.com.br>
4427 * gtk/gtk.symbols: Add missing symbols to so make check can pass
4429 2006-10-23 Dom Lachowicz <domlachowicz@gmail.com>
4431 * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
4432 to free GDI Pen resources, introduced by bug 340201.(#364514)
4434 2006-10-18 Kristian Rietveld <kris@imendio.com>
4436 * tests/testcombo.c (main): connect to notify::popup-shown instead of
4437 popup-show (the latter does not exist).
4439 2006-10-15 Paolo Borelli <pborelli@katamail.com>
4441 * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
4444 2006-10-12 Michael Natterer <mitch@imendio.com>
4446 * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
4447 (committed the wrong patch).
4449 2006-10-12 Michael Natterer <mitch@imendio.com>
4451 * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
4452 bindings to trigger them. Removed gtk_combo_box_key_press(), it's
4453 obsolete now. Fixes bug #358293.
4455 2006-10-11 Michael Emmel <mike.emmel@gmail.com>
4457 * gdkpixmap-directfb.c: add missing RGB24 case (#361176)
4459 2006-10-11 Tor Lillqvist <tml@novell.com>
4461 * configure.in: Enable having some gdk-pixbuf loaders built-in
4462 even if loading the others dynamically. Define Automake
4463 conditional INCLUDE_FOO for each loader as TRUE if that loader is
4464 built-in. See also gdk-pixbuf/ChangeLog.
4466 Wed Oct 11 14:31:30 2006 Tim Janik <timj@imendio.com>
4468 * docs/reference/gtk/gtk-sections.txt:
4469 * gtk/gtkbindings.c: document gtk_binding_entry_skip().
4471 2006-10-11 Tor Lillqvist <tml@novell.com>
4473 * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
4476 2006-10-11 Tor Lillqvist <tml@novell.com>
4478 Merge from 2.10 branch:
4480 * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
4481 environment variable LC_ALL or LANG is set, set the Win32 thread
4482 locale to the corresponding locale. Then call the C library
4483 setlocale() to set the C library locale accordingly. The
4484 inconsistency mentioned below is gone. (#339756) Do some special
4485 casing for Serbia and Montenegro. Handle the Latin and Cyrillic
4486 scripts for Azeri, Uzbek and Serbian.
4487 (enum_locale_proc): Helper function for the above functionality.
4489 * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
4490 if the environment variables are set here, as they have already
4491 been taken into account and the Win32 thread locale has been
4494 Tue Oct 10 16:38:23 2006 Tim Janik <timj@imendio.com>
4496 * gtk/tmpl/gtkbindings.sgml:
4497 * gtk/gtkbindings.c: applied patch from Michael Natterer to move to
4498 inline docs. applied wording fixes suggested by Martyn Russell.
4500 2006-10-09 Matthias Clasen <mclasen@redhat.com>
4502 * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
4503 Update the docs to state which out parameters may be NULL.
4504 (#360870, Attilio Fiandrotti)
4506 2006-10-08 Matthias Clasen <mclasen@redhat.com>
4508 * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
4509 a typo. (#359542, Ghee Teo)
4511 2006-10-08 Matthias Clasen <mclasen@redhat.com>
4513 * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
4514 reorder tabs if the focus is in the tab. (#350342, Carlos
4517 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
4519 * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611)
4521 2006-10-08 Kristian Rietveld <kris@gtk.org>
4523 * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
4524 (gtk_tree_view_set_show_expanders),
4525 (gtk_tree_view_get_show_expanders): add getter/setter for
4526 show-expanders property, queue a redraw when this property
4527 is toggled (#351167, Martin Ejdestig),
4528 (gtk_tree_view_set_level_indentation),
4529 (gtk_tree_view_get_level_indentation): also add getter/setter
4530 and docs for level-indentation property.
4532 2006-10-08 Matthias Clasen <mclasen@redhat.com>
4534 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
4535 leak a list. (#360350, Benjamin Berg)
4537 * Apply a cleanup patch by Kjartan Maraas (#341812)
4539 2006-10-07 Tor Lillqvist <tml@novell.com>
4541 * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
4542 locale's first day of week setting on Win32. (#339752, Bogdan
4543 Nicula) Don't do this if one of the environment variables that
4544 affect gettext is set, though. In that case use the week start day
4545 from the corresponding message catalog.
4547 Unfortunately the same logic isn't possible in the weekday and
4548 month name lookup; there even if you have set one of the
4549 aforementioned environment variables, you still get the weekday
4550 and month names from the Win32 thread locale. Yes, this is
4553 Use only wide-character API in the Win32 code in this file, too.
4555 2006-10-06 Matthias Clasen <mclasen@redhat.com>
4557 * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
4558 Fix the docs. (#360112)
4560 * gtk/gtkcellview.c: Don't set the background of the
4561 window in a no-window widget. (#359581, Xan Lopez)
4564 2006-10-05 Behdad Esfahbod <behdad@gnome.org>
4566 * gtk/Makefile.am, gtk/aliasfilescheck.sh: Propagate srcdir into the
4567 test correctly. (#359845)
4569 2006-10-05 Michael Natterer <mitch@imendio.com>
4571 * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
4572 rid of a key binding (in fact, it only lets it appear unbound).
4574 * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
4575 "guint marks_unbound : 1"
4577 (gtk_binding_entry_skip): new API which marks the entry as unbound.
4579 Changed code so it returns FALSE when "marks_unbound == TRUE" is
4580 encountered while activating bindings, effectively letting the
4581 binding appear unbound (regardless of still existing bindings in
4582 lower binding priority levels). Fixes bug #358329.
4584 (gtk_binding_entry_add)
4585 (gtk_binding_entry_clear)
4586 (gtk_binding_entry_add_signall)
4587 (gtk_binding_parse_binding): deprected these functions.
4589 (_gtk_binding_parse_binding)
4590 (_gtk_binding_entry_add_signall): new internal API.
4592 * gtk/gtk.symbols: changed accordingly.
4594 2006-10-03 Matthias Clasen <mclasen@redhat.com>
4596 Fix interaction of GtkEntryCompletion with input
4597 methods. (#354495, Diego Escalante Urrelo)
4599 * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
4600 the im context if we actually handle the key event.
4602 * gtk/gtkentrycompletion.c: Also propagate key release events
4605 2006-10-03 Matthias Clasen <mclasen@redhat.com>
4607 * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
4608 Fix a typo. (#359052, Ghee Teo)
4610 * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
4611 reduce relocations. (#359053)
4613 2006-10-03 Matthias Clasen <mclasen@redhat.com>
4615 * modules/printbackends/cups/gtkcupsutils.c:
4616 * modules/printbackends/cups/gtkprintbackendcups.c: Complete
4617 the fix for bug 357280.
4619 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
4621 * gdk-pixbuf/Makefile.am:
4624 Include pltcheck.sh in EXTRA_DIST.
4626 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
4628 * gdk/x11/gdkevents-x11.c: Move all includes before including
4631 2006-10-02 Behdad Esfahbod <behdad@gnome.org>
4633 * gtk/Makefile.am: Fix typo in file name. (#358931)
4635 2006-10-02 Matthias Clasen <mclasen@redhat.com>
4637 * modules/printbackends/cups/gtkprintbackendcups.c (available_choices):
4638 Only use the group name field if cups is new enough. (#357280)
4640 * gtk/gtksizegroup.c: Make sure that the quarks are
4641 initialized before using them. (#353736)
4643 * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
4644 replace existing links. (#354849, James Evans)
4646 2006-10-01 Matthias Clasen <mclasen@redhat.com>
4648 * gtk/gtkexpander.c (gtk_expander_realize)
4649 (gtk_expander_size_allocate): Make the event_window large
4650 enough to cover the full height of the label_widget. (#358351,
4653 2006-10-01 Tor Lillqvist <tml@novell.com>
4655 * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
4657 2006-09-30 Matthias Clasen <mclasen@redhat.com>
4659 * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
4660 against base_path being NULL. (#358405, many reporters)
4662 2006-09-29 Matthias Clasen <mclasen@redhat.com>
4664 * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
4665 to avoid a deadlock.
4667 2006-09-27 Kristian Rietveld <kris@imendio.com>
4669 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
4670 (gtk_tree_model_filter_ref_node),
4671 (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
4672 in sync with each other and the sort model.
4674 2006-09-27 Kristian Rietveld <kris@imendio.com>
4676 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
4677 (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
4678 (gtk_tree_model_filter_new): unref the virtual root path once that
4679 node (or one if its ancestors) is deleted, set virtual_root_deleted
4680 so we only unref it once.
4682 2006-09-27 Kristian Rietveld <kris@imendio.com>
4684 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
4685 (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
4686 (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
4687 (gtk_tree_model_sort_free_level): bring zero ref count loops in
4689 (gtk_tree_model_sort_free_level): free child levels before
4690 decreasing the zero ref count of the current level,
4691 (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
4694 2006-09-25 Matthias Clasen <mclasen@redhat.com>
4696 * demos/gtk-demo/*.c:
4697 * gtk/gtkeventbox.c:
4698 * gtk/gtkprintoperation.c: Fix typos. String change.
4700 2006-09-25 Kristian Rietveld <kris@gtk.org>
4702 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
4703 has already been realized; scroll to background area instead of
4704 cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
4706 2006-09-25 Kristian Rietveld <kris@gtk.org>
4708 * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
4709 to create the GCs if the widget is realized. (Fixes #357578).
4711 2006-09-25 Matthias Clasen <mclasen@redhat.com>
4713 * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
4714 the list of children (#357454, Paolo Borelli)
4716 2006-09-25 Michael Natterer <mitch@imendio.com>
4718 * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
4719 display->input_windows with g_free(), not g_object_unref()
4720 (#357566, Tommi Komulainen).
4722 2006-09-24 Kristian Rietveld <kris@gtk.org>
4724 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4725 (gtk_cell_renderer_text_[sg]et_property): actually add align-set
4726 property to the API (left-over patch from #157439).
4728 2006-09-24 Kristian Rietveld <kris@gtk.org>
4730 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
4731 the indicator if the column has a sort column id (and the model is
4732 sortable) or if the user explicitly requested the indicator
4733 to be shown. (Fixes #352738, Chris Vine).
4735 2006-09-23 Tor Lillqvist <tml@novell.com>
4737 * gtk/Makefile.am: Use EXEEXT.
4739 2006-09-22 Michael Natterer <mitch@imendio.com>
4741 * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
4742 and color hashes. Fixes bug #357132.
4744 2006-09-22 Matthias Clasen <mclasen@redhat.com>
4746 Make remote bookmarks work better (#354887)
4748 * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons):
4749 (shortcuts_insert_path):
4750 * gtk/gtkfilechooserbutton.c (change_icon_theme):
4751 (model_add_bookmarks):
4752 (model_update_current_folder):
4753 (update_label_and_image):
4754 If the bookmark points to a remote file, don't call get_info(),
4755 since that may a) take a long time and b) pop up an auth dialog.
4756 Instead, just use a folder icon and create a display name
4759 * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri):
4760 New function to create a suitable display name for a remote
4761 uri. This should really be done in GtkFileSystem.
4763 2006-09-21 Michael Natterer <mitch@imendio.com>
4765 Implement lots of value setters for GdkGC, based on a heavily
4766 modified patch from Thomas Broyer (bug #328853):
4768 * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
4769 on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
4770 which simply returns RGBA values from a GdkColor's pixel value.
4771 See gdk_quartz_update_context_from_gc() below.
4773 * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
4774 of members for the newly suppored GC values. Added enum
4775 GdkQuartzContextValuesMask which is used for setting up the
4776 CGContext for filling and/or stroking.
4778 * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
4779 (gdk_quartz_gc_set_values)
4780 (_gdk_windowing_gc_copy): support a lot more GC values.
4782 (gdk_quartz_update_context_from_gc): added
4783 GdkQuartzContextValuesMask parameter and set filling/stroking
4784 parameters accordingly. This function also gained full control
4785 over the FG and BG colors (they can't be set separately any more).
4787 The stipple mask part of the patch doesn't work but seems to take
4788 the right approach and doesn't make things worse, so I applied it.
4790 Did *not* apply the clipping part of the patch since I don't
4791 understand it (I don't understand the version in CVS either, but
4792 it at least works :-)
4794 * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
4795 gdk_quartz_update_context_from_gc() and removed separate color
4796 setting calls. Some minor fixes.
4798 * gdk/quartz/gdkwindow-quartz.c
4799 (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
4800 fill color manually. We don't have/need a GC here.
4802 2006-09-21 Michael Natterer <mitch@imendio.com>
4804 * gdk/quartz/gdkwindow-quartz.c
4805 (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
4806 drawable_impl->wrapper that is the GdkWindow, not the
4807 drawable_impl itself.
4809 2006-09-20 Behnam Esfahbod <behnam@zwnj.org>
4811 * gdk/x11/gdkkeys-x11.c:
4812 (get_direction): just check the first shift-level of keyboard
4813 layout for RTL and LTR keysyms() (compliment to #116626)
4815 Wed Sep 20 16:59:38 2006 Tim Janik <timj@imendio.com>
4817 * gtk/gtkviewport.c: always update the bin_window position and size
4818 in size_allocate, even if we don't have a visible child. this fixes
4819 expose artefacts as described in #313508.
4821 * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
4822 have no visible child explicit.
4824 2006-09-19 Ryan Lortie <desrt@desrt.ca>
4826 * docs/reference/gdk/gdk-sections.txt:
4829 * gdk/gdkpango.c: Bug 355343. Add a GdkPangoAttrEmbossColor.
4830 (gdk_pango_layout_get_clip_region): Remove an unused variable.
4831 (gdk_pango_attr_embossed_new): Fix documentation.
4833 Tue Sep 19 17:00:04 2006 Tim Janik <timj@imendio.com>
4835 * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to
4836 control the arrow/border ratio within the allocation.
4838 * tests/testgtk.c: added a GtkArrow to handle box test.
4840 * tests/testgtkrc: test ::arrow-scaling property.
4842 2006-09-19 Matthias Clasen <mclasen@redhat.com>
4844 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
4845 Display an error when we come to the root.
4847 2006-09-16 Matthias Clasen <mclasen@redhat.com>
4849 * gtk/gtkfilechooserbutton.c: Use bookmark labels in
4852 * gtk/gtkfilechooserbutton.c: Don't add remote volumes and
4853 bookmarks to the model in local-only mode, to avoid
4854 authentication dialogs pop up for invisible bookmarks, and
4855 to fix issues with separators not being hidden when
4856 they should. (#354887, Dennis Cranston)
4858 2006-09-16 Matthias Clasen <mclasen@redhat.com>
4860 * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
4861 treeview use in list mode. (#355732, Richard Hult)
4863 * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
4864 change notification for the right property. (#355308,
4867 2006-09-15 Michael Natterer <mitch@imendio.com>
4869 * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
4870 header navigation/resizing/reordering to be more readable and lose
4871 one level of nesting.
4873 2006-09-15 Kristian Rietveld <kris@imendio.com>
4875 * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
4876 return after handling column button focus; we disable wrap around
4877 with this (which actually happened via a really weird code path).
4880 2006-09-15 Kristian Rietveld <kris@imendio.com>
4882 * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
4883 code RTL aware, also break from the loops after we have seen the
4884 focussed column button (Michael Natterer).
4886 Thu Sep 14 12:28:51 2006 Tim Janik <timj@imendio.com>
4888 * tests/testrichtext.c (main): intialize random number generator state
4889 upon program start, to enable truely random testing.
4891 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
4893 * gdk/directfb/gdkcolor-directfb.c small clean ups include order
4894 * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
4895 * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
4896 GDK_DISABLE_DEPRECATED to allow compile per Behdad
4897 * gdk/quartz/Makefile.am same change as directfb Makefile
4898 * gtk/Makefile.am fixed typo that cause socket stubs not to compile
4900 2006-09-13 Matthias Clasen <mclasen@redhat.com>
4902 * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
4903 for the grab widget, to make the color picker work with window
4906 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
4908 signed off by: Dom Lachowicz
4910 * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
4911 a large number of improvements to the Microsoft Windows theme engine
4912 which are fully described in the bug report.
4914 Mon Sep 11 14:22:39 2006 Tim Janik <timj@imendio.com>
4916 * tests/testgtk.c: fixed compiler warnings.
4918 2006-09-10 Matthias Clasen <mclasen@redhat.com>
4920 * gtk/gtkfilechooserbutton.c (model_add_special): Request
4921 the display name too, otherwise "Desktop" does not appear
4922 in the file chooser button.
4924 2006-09-10 Tor Lillqvist <tml@novell.com>
4926 * gdk/win32/gdkprivate-win32.h
4927 * gdk/win32/gdkmain-win32.c
4928 * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
4929 0x0500 in gdkprivate-win32.h instead of doing it in two source
4930 files. (#355212, Mike Edenfield)
4932 * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
4933 GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
4935 2006-09-10 Matthias Clasen <mclasen@redhat.com>
4937 * Commit a patch by Behdad to fix typos, omissions and other
4938 errors in the symbol aliasing, and add checks for local PLT
4939 entries. (#354687, Behdad Esfahbod)
4941 * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
4942 the flush timeout. (#354043, Nelson Benitez)
4944 * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error):
4945 Improve wording. String change! (#355126, David Lodge)
4947 * gtk/updateiconcache.c: Improve wording. String change! (#355128,
4950 * gtk/paper_names_offsets.c: Fix a typo. String change! (#355134,
4953 2006-09-09 Matthias Clasen <mclasen@redhat.com>
4955 * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
4956 (#353916, Chris Wilson)
4958 * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
4959 Don't leak the to_reset list. (#353914, Chris Wilson)
4961 * gtk/gtkwidget.c: Add docs for the parent-set signal.
4962 (#353772, Mariano Suárez-Alvarez)
4964 2006-09-08 Matthias Clasen <mclasen@redhat.com>
4966 * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
4967 Don't clear clipboards here, since we are called from finalize
4968 and can't emit signals.
4970 * configure.in: Set version to 2.11.0
4972 2006-09-06 Richard Hult <richard@imendio.com>
4974 * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case
4975 shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
4977 2006-09-04 Kristian Rietveld <kris@imendio.com>
4979 * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
4980 if setting the given folder failed, try setting the parent folder
4981 until we succeed; display an error box at the end.
4983 2006-09-04 Kristian Rietveld <kris@imendio.com>
4985 * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
4986 operations spawned by buttons here,
4987 (set_button_image_get_info_cb): bail out if button is NULL, but
4988 do free button_data,
4989 (button_data_free): only free the data if non NULL (since this
4990 function can be called multiple times for the same data), cancel
4991 handle if pending but don't free button_data in this case (will
4992 happen in the callback).
4994 2006-09-04 Michael Natterer <mitch@imendio.com>
4996 * gtk/gtkrc.c (rc_parse_token_or_compound)
4997 (gtk_rc_parse_assignment): serialize floating point values using
4998 locale-independent functions. (#346751, Frederic Crozat)
5000 2006-09-04 Tor Lillqvist <tml@novell.com>
5002 * gdk/win32/gdkevents-win32.c
5003 * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
5004 window handling (PeekMessage, PostMessage, SendMessage,
5005 DispatchMessage, DefWindowProc, RegisterClassEx,
5006 CreateWindowEx). (#321597)
5008 2006-09-03 Kristian Rietveld <kris@imendio.com>
5010 * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
5011 (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
5012 change file_exists_and_is_not_folder checks to get the file info
5013 for the path directly instead of querying the current file folder
5016 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
5019 * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
5020 (test_reload_sequence), (test_button_folder_states_for_action): wait
5021 for idle after setting a folder to ensure the async operations to load
5022 the folder are finished,
5023 (test_confirm_overwrite), (test_confirm_overwrite_for_path):
5024 factor out test_confirm_overwrite code so we can add tests for more
5027 2006-09-03 Richard Hult <richard@imendio.com>
5029 * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
5030 exposure isn't in the event mask, plug a leak, and check that the
5031 window isn't destroyed.
5032 (isOpaque): Check that the window isn't destroyed, fixes bug
5035 2006-09-03 Matthias Clasen <mclasen@redhat.com>
5037 * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.
5038 (#354035, Mariano Suárez-Alvarez)
5040 * gtk/gtkmain.c (post_parse_hook):
5041 * gdk/gdk.c (gdk_init): Handle display_name being NULL.
5042 (#354004, Chris Wilson)
5044 2006-09-03 Tor Lillqvist <tml@novell.com>
5046 * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
5047 GDK_WINDOW_DISPLAY in the Win32 backend.
5049 * gtk/gtkfilesystemwin32.c: Copy what Kris did to
5052 2006-09-02 Kristian Rietveld <kris@imendio.com>
5054 First part of file chooser fixes.
5056 * gtk/gtkfilechooserbutton.c (model_add_special): also set the
5057 handle in the model for the desktopdir case.
5059 * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
5060 volume in case we retrieved it but don't pass it on to insert_path,
5061 (shortcuts_model_create): change the column type for the handles
5062 to pointer instead of GObject so our handle ref counting is not
5064 (show_and_select_paths_finished_loading): don't forget to unref
5067 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
5068 (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
5069 remove pending execute_callbacks_idle during dispose, also
5070 execute all callbacks waiting to be run in the next idle,
5071 (queue_*callback), (execute_callbacks_idle): refactor to maintain
5072 a list of callbacks to call per file system instead of globally,
5073 guard the file system during callback invocation,
5074 (gtk_file_system_unix_get_folder): only add load folder idle if
5075 none has been added yet.
5077 2006-09-01 Matthias Clasen <mclasen@redhat.com>
5079 * gtk/gtkentry.c: Don't unnecessarily reset the im context
5080 when deleting the selection. (#353803, Alex Larsson)
5082 2006-09-01 Abel Cheung <abel@oaka.org>
5084 * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
5086 2006-08-31 Matthias Clasen <mclasen@redhat.com>
5088 Stop cursor blinking after a configurable timeout.
5089 (#353670, #352442, Arjan van de Ven, Manu Cornet)
5091 * gtk/gtksettings.c (gtk_settings_class_init): Add a
5092 gtk-cursor-blink-timeout setting, which specifies the number
5093 of seconds that the cursor should blink after a user interaction.
5094 The default value is G_MAXINT to preserve the current behaviour.
5096 * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
5099 * gtk/gtkentry.c (gtk_entry_completion_key_press)
5100 (gtk_entry_button_press, gtk_entry_focus_in): Reset the
5103 * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
5106 * gtk/gtktextview.c (gtk_text_view_key_press_event)
5107 (gtk_text_view_button_press_event, gtk_text_view_focus_in_event):
5108 Reset the blink timer.
5110 2006-08-31 Matthias Clasen <mclasen@redhat.com>
5112 * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
5113 explicit format capabilities. (#346505, Christian Persch)
5115 * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error.
5117 2006-08-31 Michael Natterer <mitch@imendio.com>
5119 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
5121 2006-08-30 Richard Hult <richard@imendio.com>
5123 * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
5125 2006-08-30 Matthias Clasen <mclasen@redhat.com>
5127 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
5128 for beeping if we are using XKB.
5130 2006-08-29 Matthias Clasen <mclasen@redhat.com>
5134 * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep):
5135 * gdk/win32/gdkwindow-win32.c (gdk_window_beep):
5136 * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep):
5137 * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
5138 to beep on a window. For X11, implement this with
5139 XkbBell. (#353455, Mariano Suárez-Alvarez)
5141 2006-08-29 Tor Lillqvist <tml@novell.com>
5143 Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
5144 since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
5145 it isn't being maintained anyway. If somebody is interested, it
5146 can always be found in older GTK+ versions, and in CVS.
5151 * gdk/win32/Makefile.am
5152 * gdk/win32/libie55uid.la
5153 * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
5154 switch and associated stuff. Active IMM and the <dimm.h> header
5155 was used for IM support on NT4 and Win9x. Win2k and later have IM
5158 * gdk/win32/gdkcursor-win32.c
5159 * gdk/win32/gdkdnd-win32.c
5160 * gdk/win32/gdkdrawable-win32.c
5161 * gdk/win32/gdkevents-win32.c
5162 * gdk/win32/gdkgc-win32.c
5163 * gdk/win32/gdkglobals-win32.c
5164 * gdk/win32/gdkkeys-win32.c
5165 * gdk/win32/gdkmain-win32.c
5166 * gdk/win32/gdkproperty-win32.c
5167 * gdk/win32/gdkselection-win32.c
5168 * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
5169 and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
5170 branches, and any variables or static functions used only by the
5173 * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
5174 constants that aren't missing from current mingw and MSVC6
5177 * gdk/win32/gdkmain-win32.c
5178 * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
5179 function. On NT-based Windows GetLastError() returns error codes
5180 also for failed GDI calls, so we can use _gdk_win32_api_failed()
5183 2006-08-29 Emmanuele Bassi <ebassi@gnome.org>
5185 * gtk/gtkrecentchoosermenu.c
5186 (gtk_recent_chooser_menu_set_current_uri): Break when an item
5187 is found and activated. (#353449, based on a patch by Jan Arne
5190 Fri Jul 14 16:13:37 2006 Tim Janik <timj@gtk.org>
5192 * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style
5193 properties which make all hardcoded padding and spacing values
5194 configurable. properly swap ::text-xalign treatment for RTL widgets.
5196 * gtk/gtkprogress.c: fixed style property blurbs. made alignment
5197 proeprty more consistent with GtkMisc alignment blurbs. mention
5198 RTL treatment for text-xalign.
5200 Tue Aug 29 11:57:40 2006 Tim Janik <timj@imendio.com>
5202 * tests/testgtk.c: allow (most) windows to be resizable.
5203 added ellipsization settings to progress bars.
5205 2006-08-28 Matthias Clasen <mclasen@redhat.com>
5207 * modules/printbackend/cups/gtkprintbackendcups.c: Use a
5208 resonable timeout of 3 seconds when polling for printer
5209 list updates, instead of 300000 seconds...
5211 2006-08-28 Michael Natterer <mitch@imendio.com>
5213 * gtk/gtktextbufferserialize.c (serialize_text): don't write out
5214 </apply_tag> for tags that have already been closed by the logic
5215 which turns overlapping spans into XML-able trees. Fixes broken
5216 XML when there are overlapping tags in the buffer. Also free two
5217 leaked GLists and did some cleanup.
5220 * tests/testrichtext.c: new test which creates randomly tagged
5221 GtkTextBuffers and serializes/deserializes them.
5223 2006-08-26 Matthias Clasen <mclasen@redhat.com>
5225 * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data):
5226 Don't leak pixbufs. (#352264, Ross Burton)
5228 * gtk/gtklinkbutton.c (set_link_underline): Don't leak
5229 PangoAttributes. (#352391, Paolo Borelli)
5231 2006-08-25 Matthias Clasen <mclasen@redhat.com>
5233 * demos/gtk-demo/Makefile.am:
5234 * demos/gtk-demo/textscroll.c: Add an example of automatic
5235 scrolling, thanks to Yevgen Muntyan. (#351206)
5237 * gtk/gtkmodules.c (find_module): Use local binding when
5238 loading modules. (#351868)
5240 2006-08-24 Michael Natterer <mitch@imendio.com>
5242 * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
5243 the hostname instead of NULL.
5245 2006-08-23 Matthias Clasen <mclasen@redhat.com>
5247 * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
5248 names and values in comboboxes, and clean up some
5249 coding style issues.
5251 2006-08-23 Tor Lillqvist <tml@novell.com>
5253 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
5254 Revert unintended translatable string addition. Use same string
5255 in GError as in gtkfilesystemunix.c.
5257 * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
5258 Fix logic at the end of strings.
5260 * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
5261 handles and check that we have no outstanding handles at
5262 finalization time. (Copying what Matthias did for
5263 gtkfilesystemunix.c)
5265 2006-08-23 Matthias Clasen <mclasen@redhat.com>
5267 * gtk/gtkfilesystemunix.c: Maintain a hash table
5268 of live handles and check that we have no outstanding
5269 handles at finalization time. (Copying what
5270 Federico did for gtkfilesystemgnomevfs.c)
5272 2007-08-22 Matthias Clasen <mclasen@redhat.com>