1 2004-11-11 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtkuimanager.c (update_node): Remove two more places
4 where we were unconditionally setting "visible", causing
5 unnecessary notifications.
6 (update_node): Fix some C99isms.
8 * gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
9 (gtk_clipboard_get): Clarify the docs. (#156638, Torsten
11 (gtk_clipboard_finalize): Warn if the clipboard is still in
12 its displays clipboard list.
14 Considerably speed up GtkUIManager, by changing the semantics
15 of the dirty flag. It is now propagated up the tree, and
16 update_node() doesn't descend into clean subtrees. (#143668,
17 Dave Neary, Michael Natterer, Sven Neumann, fix proposed
20 * gtk/gtkuimanager.c (node_prepend_ui_reference): Only prepend
21 a new node reference if the merge_id is different. Take a GNode,
22 so we can walk up the tree, adjust all callers.
23 (node_remove_ui_reference): Only mark a node dirty if the first
24 ui reference is removed. Take a GNode here as well for
26 (update_node): Don't descend into clean subtrees.
27 (mark_node_dirty): New function to mark a node and its
30 Thu Nov 11 11:34:32 2004 Jonathan Blandford <jrb@redhat.com>
32 * gtk/gtkfilechooserbutton.c (update_idler): return FALSE instead
33 of TRUE. This is just a quick fix to prevent the idle from
36 2004-11-11 J. Ali Harlow <ali@juiblex.co.uk>
39 * gdk-pixbuf/Makefile.am:
40 * gtk/Makefile.am (gtk.def): Use embedded tab rather than '\t'
41 escape sequence. (#157949)
43 2004-11-10 Tor Lillqvist <tml@iki.fi>
45 * gdk/win32/gdkevents-win32.c (_gdk_win32_get_next_tick):
46 Event timestamps don't have to be unique. As long as they are
47 nondecreasing we should be fine. Solves problems with for instance
48 long menus not staying up on first click. (#152035, Robert Ögren)
50 2004-11-10 Matthias Clasen <mclasen@redhat.com>
52 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only
53 shorten the label if it actually overlaps the resize grip.
54 (gtk_statusbar_size_allocate): Handle extra children
55 by leaving room for the resize grip. (#157778, Christian Persch)
57 * gdk/linux-fb/*: Fix many sparse warnings. (#157253,
62 2004-11-09 Matthias Clasen <mclasen@redhat.com>
64 * gtk/gtkrange.c (gtk_range_real_change_value): Make
66 (gtk_range_class_init): s/digits/decimal digits/ in doc
69 * gtk/gtkfilechooserbutton.c (update_idler): Remove debugging
72 * gtk/gtkicontheme.[ch]: Improve the docs. (#157785,
75 * gdk/x11/gdkwindow-x11.c (gdk_window_get_geometry): Add
76 a hint about using gdk_drawable_get_size() instead.
78 * gtk/gtk.symbols: Add new symbols.
80 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Make
81 it work with *big* icon views. (#154466)
83 * tests/testiconview.c: Add a real "Add many" button.
86 * gtk/gtkactiongroup.[hc]: Make return types G_CONST_RETURN
91 * gtk/gtkaction.c (gtk_action_get_accel_path): Add
92 a function to obtain the accel path of an action. (#148106,
95 * tests/testiconview.c: Fix double-click activation.
97 * gtk/gtkstatusbar.c (gtk_statusbar_init): Raise the grip
98 window when appropriate.
99 (gtk_statusbar_init): Instead of cutting the text off, make
101 (gtk_statusbar_size_allocate): Don't let the label extend
102 under the resize grip.
104 * gtk/gtkcombobox.c (find_menu_by_path)
105 (gtk_combo_box_menu_fill_level, gtk_combo_box_menu_row_inserted):
106 Use a row reference, not a path, to associate separators
109 * gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
110 Show the grip_window if necessary.
112 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only
113 clear the triangle below the grip to the background,
116 * gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose):
117 Clip when drawing the cursor. This prevents bits of a
118 selectable label leaking out from underneath the resize
119 grip in a statusbar. (#73359)
121 * gtk/gtkstatusbar.c: Apply a patch by Owen Taylor to
122 get reasonable allocations for the statusbar and its
125 * tests/testgtk.c: Apply a patch by Soeren Sandmann to
126 test long statusbar texts.
128 * gtk/gtk.symbols: Add new symbols.
130 Avoid resizing GtkStatusbar if the text of the label
131 changes (#90955, He Qiangqiang, fix proposed by
132 Owen Taylor, patch by Christian Persch)
134 * gtk/gtklabel.[hc]: Add a boolean single-line-mode property
135 which causes the label height not to depend on the actual
136 text, but only on the font.
138 * gtk/gtkstatusbar.c (gtk_statusbar_init): Turn on
139 single-line-mode for the label.
141 2004-11-08 Matthias Clasen <mclasen@redhat.com>
143 * gtk/gtkfilefilter.c (gtk_file_filter_filter): Use
144 xdg_mime_mime_type_subclass() to match mime types. This
145 also gives use wildcard matching. (#143760, #141224,
146 Tommi Komulainen, David A Knight)
148 * gtk/gtkaction.c (_gtk_action_sync_menu_visible): Use
149 gtk_widget_{hide,show} instead of g_object_set (..."visible"...).
151 * tests/testfilechooserbutton.c (main): Disable the SAVE
152 and CREATE_FOLDER modes. (#157675, Christian Persch)
154 * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the
155 website button if the url is unset. (#157630, John Finlay)
157 * gtk/gtkaboutdialog.[hc]: Change the return types of the
158 gchar ** getters to be more const correct. (#157566, Mariano
161 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add
162 uri targets before text targets, to make file dnd work
163 better. (#157651, Christian Persch)
165 * gtk/gtktreedatalist.c: Support columns whose declared type is
166 an interface better, by treating them like G_TYPE_OBJECT if
167 the interface types requires G_TYPE_OBJECT.
169 2004-11-08 Bastien Nocera <hadess@hadess.net>
171 * gtk/stock-icons/stock_media_play_rtl_16.png:
172 * gtk/stock-icons/stock_media_play_rtl_24.png: add the icons again
173 with the binary flag (Closes: #157665)
175 2004-11-07 Matthias Clasen <mclasen@redhat.com>
177 * gtk/gtkfilefilter.h:
178 * gtk/gtkfilefilter.c (gtk_file_filter_add_pixbuf_formats):
179 New convenience function to add a filter for image files
180 which can be loaded by GdkPixbuf. (#145388, Anders Carlsson)
182 * tests/testfilechooser.c: Test the image filter.
184 * gtk/gtkmenu.c (menu_change_screen): Remove some warnings.
186 Show files in folder modes. (#157013, Nickolay V. Shmyrev)
188 * gtk/gtkfilechooserdefault.c (create_file_list): Use a selection
189 function to determine which rows can be selected.
190 (update_appearance): Always show files. Also queue a redraw.
191 (set_list_model): Always show files.
192 (list_select_func): The selection function used for the file list.
193 Don't allow to select files when in select/create folder mode.
194 (list_row_activated): Don't activate files in folder modes.
195 (list_icon_data_func, list_mtime_data_func, list_size_data_func):
196 Render files insensitive in folder modes.
198 2004-11-06 Matthias Clasen <mclasen@redhat.com>
200 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
201 Don't support CREATE_FOLDER and SAVE for now. UI authorities
202 object to it. (#157384, Seth Nickell)
204 * gtk/gtkfilechooserdefault.c (file_pane_create): Jump through
205 a few hoops to make the tooltip on the filter combo box work
206 a bit better. This fixes #157273 and #157074.
208 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end):
209 Add the ComboCellInfo to the list. (#157528, Carlos Garnacho
212 2004-11-05 Matthias Clasen <mclasen@redhat.com>
214 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_state_changed):
215 Remove this unneeded function, as it breaks state propagation.
217 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
218 Queue the resize before setting the tearoff state, to
219 make sure the torn-off menu picks up the size increase due
220 to the arrow in the torn off menu item. (#157286, Adam
221 Hooper, fix proposed by Owen Taylor)
223 * gtk/gtkmenu.c (menu_change_screen): Don't unnecessarily
224 call gtk_menu_position(), since that function has issues
225 when called on a menu whose parent is unrealized. (#157354,
228 * gtk/gtkmain.c: Document new functions.
230 2004-11-04 Matthias Clasen <mclasen@redhat.com>
232 * gtk/stock-icons/Makefile.am: Typo fix.
234 * gtk/gtkaboutdialog.c: Documentation updates.
236 2004-11-04 Bastien Nocera <hadess@hadess.net>
238 * gtk/gtkiconfactory.c: (get_default_icons): Make sure the RTL
239 variants are used for media icons
240 * gtk/stock-icons/Makefile.am: update following the addition of
241 the 2 Play icon RTL variants
242 * gtk/stock-icons/stock_media_play_rtl_16.png: added
243 * gtk/stock-icons/stock_media_play_rtl_24.png: added
245 2004-11-03 Matthias Clasen <mclasen@redhat.com>
247 * gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
248 Don't leak the path. (#157301, Carlos Garnacho Parro)
250 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the
251 case that the protocol version in the context is not
252 set yet. (#157123, James Henstridge)
254 * gtk/gtktreeview.c (gtk_tree_view_search_activate): Don't
255 try to activate a node if the cursor is not valid.
257 2004-11-03 James M. Cape <jcape@ignore-your.tv>
259 * gtk/gtkfilechooserbutton.c (update_dialog), (dialog_response_cb):
260 Don't mysteriously go to the parent dir when hitting "Cancel" in
261 folder mode (fixes #156971).
263 2004-11-03 Matthias Clasen <mclasen@redhat.com>
265 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Don't
266 access label->layout directly. (#157080, Adam Hooper)
268 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
269 unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
271 * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
272 if the active_row reference has become invalid. (#157156,
275 2004-11-02 Matthias Clasen <mclasen@redhat.com>
277 * gtk/gtkwindow.c (gtk_window_activate_key_after): As
278 a last stage in GtkWindow key press handing, try adding
279 window->mnemonic_modifier to event->state and see if it
280 matches a mnemonic. (#53709, based on a patch by
281 Pasupathi Duraisamy, patch by Owen Taylor)
283 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
286 * gtk/gtkfilechooserbutton.h: Fix trigraphs in private markers.
288 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_class_init):
291 2004-11-01 Matthias Clasen <mclasen@redhat.com>
293 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
294 Remove a debug printf(). (#157087, Christian Persch)
296 * gtk/gtkicontheme.c: Actually commit the "stat less" patch
297 which appeared in the ChangeLog a few days ago.
299 * gtk/gtkfilechooserbutton.c: Move some docs inline.
301 * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Doc update.
303 * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
304 iter. (#156924, Murray Cumming)
306 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
307 broken ClientMessage events. (#157056, Owen Taylor)
309 * gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
310 the docs. (#157044, Masao Mutoh)
312 2004-10-31 Matthias Clasen <mclasen@redhat.com>
314 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Update the
315 state of the cell view when the state of the button changes (to
316 get prelighted drawing right). (#138650, Frances Keenan,
319 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
320 Don't force the height of the action area, we don't scroll
321 it anyway, and the current way of calculating the height can lead
322 to broken display. (#156573, Christian Persch)
324 * tests/testentrycompletion.c (animation_timer): Don't try to
325 remove stuff from an empty model. (#156575, Christian Persch)
327 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
328 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
331 2004-10-31 Tor Lillqvist <tml@iki.fi>
333 * gdk/win32/gdkprivate-win32.h
334 * gdk/win32/gdkglobals-win32.c
335 * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
338 * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
340 2004-10-31 Matthias Clasen <mclasen@redhat.com>
342 Add api for image transfer via copy-and-paste (#156408)
344 * gtk/gtkclipboard.c (gtk_clipboard_set_image)
345 (gtk_clipboard_request_image, gtk_clipboard_wait_for_image)
346 (gtk_clipboard_wait_is_image_available): New functions for image
349 * gtk/gtkselection.h:
350 * gtk/gtkselection.c (gtk_selection_data_targets_include_image):
351 New function, similar to gtk_selection_data_targets_include_text().
353 * gtk/gtkprogressbar.[hc]: Add an ellipsize property with
354 getter and setter. (#156845, Morten Welinder)
356 2004-10-29 Robert Ögren <gtk@roboros.com>
358 * gdk/win32/gdkwindow-win32.c (gdk_window_begin_resize_drag),
359 (gdk_window_begin_move_drag): Implement these on win32, currently
360 only for button 1. Fixes the resize grip of GtkStatusbar on
363 2004-10-30 Matthias Clasen <mclasen@redhat.com>
365 * gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
368 * gtk/gtktextview.c (gtk_text_view_select_all): Use
369 gtk_text_buffer_select_range().
371 * tests/testtext.c: Add a "Select All" menuitem. (#156792,
374 * gtk/gtkicontheme.c (insert_theme): Sort the dir_mtimes
375 list in the same way as the search path.
376 (theme_subdir_load): Avoid stat()ing subdirs if the theme
377 directory doesn't exist. (#156866)
379 2004-10-29 Matthias Clasen <mclasen@redhat.com>
381 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
382 Drop the reference to the pixbuf, regardless whether it is
383 a stock pixbuf. (#156863, Philip Langdale)
385 2004-10-29 Hans Breuer <hans@breuer.org>
387 * gdk/makefile.msc gtk/makefile.msc.in : updated
389 * gdk/win32/gdkdisplay-win32.c : dummy implementations for
390 gdk_display_supports_clipboard_persistence, gdk_display_store_clipboard
392 * gtk/gtkmodules.c : #include "gtkprivate.h" for GTK_LIBDIR
394 2004-10-29 Matthias Clasen <mclasen@redhat.com>
396 * gtk/gtkclipboard.c (gtk_clipboard_set_text): Don't hardwire
397 the supported text targets here, use
398 gtk_target_list_add_text_targets(). (#156404)
400 * gtk/gtkliststore.c (gtk_list_store_reorder): Don't
401 loop over the sentinel node. (#156298, Torsten Schoenfeld)
403 2004-10-28 Matthias Clasen <mclasen@redhat.com>
405 * gtk/gtkcombobox.c (gtk_combo_box_start_editing): Use
406 g_signal_connect_object() to prevent premature finalization
407 of the cell_editable while the key_press_event signal is
408 handled. (#156325, Olivier Andrieu)
410 * *: Clean up many sparse warnings. (#156698, Kjartan Maraas)
412 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Disconnect
413 from the remove-widget signal after removing the signal.
415 * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Destroy
416 the dialog with the parent. (#156557, Paolo Borelli)
418 2004-10-27 Matthias Clasen <mclasen@redhat.com>
422 * === Released 2.5.4 ===
424 * Makefile.am (EXTRA_DIST): Remove po/makefile.mingw
426 2004-10-28 Anders Carlsson <andersca@gnome.org>
428 * gtk/gtkclipboard.c: (gtk_clipboard_set_can_store):
429 * gtk/gtkclipboard.h:
432 2004-10-27 Matthias Clasen <mclasen@redhat.com>
434 * gtk/Makefile.am (gtkalias.h):
435 * gdk/Makefile.am (gdkalias.h): Fix srcdir != builddir build.
436 (#156547, Thomas Fitzsimmons)
440 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): Silently
441 ignore non-CLIPBOARD clipboards. (#156610, Christian Persch)
443 * gtk/gtksettings.c: Make it build on windows. (#156618,
446 2004-10-26 Matthias Clasen <mclasen@redhat.com>
448 * gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul
449 couldn't parse the complete preedit string. (#156434)
451 * gtk/gtkmessagedialog.c:
452 * gtk/gtkfilechooserbutton.c: Add missing includes. (#156503,
456 * gtk/gtkimage.c (gtk_image_get_icon_name): Make the icon_name
457 parameter G_CONST_RETURN.
459 * gtk/gtkimage.c: It is enough to listen for screen changes and
460 style-set to catch all icon theme changes.
461 (gtk_image_set_property): Reset the image size if the pixel size
464 * gtk/gtk.symbols: Add new symbols.
466 * gdk/x11/gdkdisplay-x11.c (gdk_display_store_clipboard): Fix the
469 2004-10-26 Anders Carlsson <andersca@imendio.com>
471 * gtk/gtktextbuffer.c: (gtk_text_buffer_finalize),
472 (create_clipboard_contents_buffer), (clipboard_get_contents_cb),
473 (clipboard_clear_contents_cb), (cut_or_copy):
474 Rewrite clipboard handling so that the clipboard contents
475 won't be freed when the text buffer is finalized. Also add
476 clipboard manager support. Fixes #95496.
478 2004-10-25 Anders Carlsson <andersca@gnome.org>
480 * gtk/gtkentry.c: (gtk_entry_completion_timeout):
481 * gtk/gtkentrycompletion.c: (gtk_entry_completion_set_model),
482 (gtk_entry_completion_get_model), (gtk_entry_completion_complete):
483 Really handle a NULL model, fixes #137211 for real.
485 * gtk/gtkfilechooserentry.c:
486 (gtk_file_chooser_entry_maybe_update_directory):
487 Remove _clear, #137211 is fixed.
489 * tests/testentrycompletion.c: (main):
490 Add completion with an empty model.
492 2004-10-25 Carlos Garnacho Parro <carlosg@gnome.org>
494 Fix for #118764, David Bordoley:
496 * gtk/gtkmessagedialog.[ch]
497 (gtk_message_dialog_format_secondary_text),
498 (gtk_message_dialog_format_secondary_format): API additions to
499 create HIG-like dialogs
501 * demos/gtk-demo/dialog.c: Use the new API in the example
503 * docs/reference/gtk/gtk-sections.txt:
504 * docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API
507 2004-10-25 James M. Cape <jcape@ignore-your.tv>
509 Rework of GtkFileChooserButton, some cleanups. Fixes #154388,
510 #154390, #154390, #156272.
512 * docs/reference/gtk/gtk-docs.sgml: Moved GtkFileChooserButton
513 below GtkFileChooser.
514 * docs/reference/gtk/gtk-sections.txt: Added
515 gtk_file_chooser_button_get_width_chars(),
516 gtk_file_chooser_button_set_width_chars(),
517 gtk_label_set_width_chars(), gtk_label_get_width_chars().
518 * docs/reference/gtk/gtk.types: Added
519 gtk_cell_renderer_combo_get_type,
520 gtk_cell_view_get_type,
521 gtk_text_iter_get_type.
522 * docs/reference/gtk/tmpl/gtkaboutdialog.sgml: Add
523 "logo-icon-name" property.
524 * docs/reference/gtk/tmpl/gtkcellview.sgml: Updates for properties
525 (b/c of get_type() inclusion above).
526 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml:
527 * docs/reference/gtk/tmpl/gtklabel.sgml: Add "width-chars" property,
529 * docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml: Added.
530 * gtk/gtkentrycompletion.c:
531 (_gtk_entry_completion_popdown): Don't show if the entry isn't
533 * gtk/gtkfilechooserbutton.[c,h]: (*): About 45%
534 rewritten, adds "width-chars" property, icons, working save modes,
535 volume/Home/Desktop friendly-naming support.
536 * gtk/gtklabel.[c,h]:
537 (gtk_label_class_init), (gtk_label_init),
538 (gtk_label_get_property), (gtk_label_set_property),
539 (gtk_label_get_width_chars), (gtk_label_set_width_chars),
540 (gtk_label_size_request): Add "width-chars" property.
541 * tests/testfilechooserbutton.c: Update, use 4 different buttons for
542 the different ACTIONs.
543 * gtk/.cvsignore: Ignore gtk-update-icon-cache.
544 * tests/.cvsignore: Ignore testimage.
546 2004-10-25 Matthias Clasen <mclasen@redhat.com>
548 * gtk/gtkcellrenderercombo.c (find_text): Don't leak text. (#156325,
551 2004-10-25 Anders Carlsson <andersca@imendio.com>
555 * gdk/x11/gdkdisplay-x11.c:
556 (gdk_display_supports_clipboard_persistence),
557 (gdk_display_store_clipboard):
558 New API to handle the clipboard manager.
561 * gtk/gtkclipboard.c: (gtk_clipboard_class_init),
562 (gtk_clipboard_finalize), (selection_clear_event_cb),
563 (clipboard_unset), (gtk_clipboard_set_text),
564 (gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets),
565 (clipboard_peek), (gtk_clipboard_owner_change),
566 (gtk_clipboard_wait_is_target_available),
567 (gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store),
568 (gtk_clipboard_selection_notify), (gtk_clipboard_store),
569 (_gtk_clipboard_store_all):
570 * gtk/gtkclipboard.h:
571 Add API for clipboard persistence and implement it, also add
572 gtk_clipboard_wait_is_target_available.
574 * gtk/gtkmain.c: (gtk_main):
575 Call _gtk_clipboard_store_all before exiting.
577 2004-10-25 Matthias Clasen <mclasen@redhat.com>
579 * gtk/gtkaboutdialog.h:
580 * gtk/gtkaboutdialog.c (gtk_about_dialog_set_logo_icon_name)
581 (gtk_about_dialog_get_logo_icon_name): Support named icons as
582 logos. (#156378, James Henstridge)
584 * gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order): Fix the
587 * gtk/gtkcellview.[hc]: Make function parameter names consistent.
589 * tests/Makefile.am (noinst_PROGRAMS): Add testimage.
591 * tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
593 2004-10-25 Matthias Clasen <mclasen@redhat.com>
595 Add a public setting for button ordering (#74669, Owen Taylor)
597 * gtk/gtksettings.c (gtk_settings_class_init): Add a
598 gtk-alternative-button-order setting.
601 * gtk/gtkdialog.c (gtk_alternative_dialog_button_order): A
602 getter for the alternative button order setting.
603 * gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order):
604 New function to install an alternative button order for a
607 * gtk/gtkfilesel.c (gtk_file_selection_init):
608 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init):
609 * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons):
610 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
611 * gtk/gtkfilechooserdefault.c (location_popup_handler):
612 Set up an alternative button order.
614 2004-10-25 Matthias Clasen <mclasen@redhat.com>
617 * gtk/gtkimage.c (gtk_image_new_from_icon_name)
618 (gtk_image_set_from_icon_name, gtk_image_get_icon_name)
619 (gtk_image_set_pixel_size, gtk_image_get_pixel_size): Add a
620 new type GTK_IMAGE_ICON_NAME for named icons, update the size
621 and content of stock, icon set and named icon images upon style
622 changes, and allow to set a fixed pixel size for named icon
623 images. (#155688, James Henstridge)
625 * tests/testimage.c: Test application for theming behaviour of
626 different image types and for image dnd.
628 2004-10-24 Matthias Clasen <mclasen@redhat.com>
630 * gtk/gtkcellrenderercombo.c: Use G_DEFINE_TYPE, initialize the
631 has_entry property, ref the model and add a finalizer. (#156325,
634 Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
636 * docs/tools/widgets.c: Update GtkFileChooserButton doc shot.
638 2004-10-24 Matthias Clasen <mclasen@redhat.com>
640 * gtk/gtkicontheme.c: Use the new g_key_file api in GLib.
642 * gtk/Makefile.am (gtk_c_sources): Remove gtkiconthemeparser.[hc]
644 * gtk/gtkiconthemeparser.[hc]: Removed.
646 * gtk/gtkfilechooserdefault.c (location_popup_handler): If the
647 location dialog is brought up by typing '/', insert the slash
648 in the entry. (#155370, Warren Togami)
650 2004-10-23 Matthias Clasen <mclasen@redhat.com>
652 * gtk/gtkfilechooserdefault.c (tree_view_keybinding_cb)
653 (trap_activate_cb): Accept shift-/ for bringing up the location
654 popup, since German and French keyboards generate such
655 events. (#154163, Frederic Crozat)
657 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Invalidate
658 the window if the tree is empty, to avoid resizing artifacts
659 from the focus rectangle. (#155881, Vincent Noel, patch by
662 Sat Oct 23 16:14:37 2004 Søren Sandmann <sandmann@redhat.com>
664 * gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
665 assertion that can get triggered by broken sort functions.
667 Sat Oct 23 16:07:46 2004 Søren Sandmann <sandmann@redhat.com>
669 * gtk/gtksequence.c (_gtk_sequence_swap): Replace broken, overly
670 clever implementation with one that works.
672 * gtk/gtkliststore.c (gtk_list_store_swap): emit "rows_reordered"
673 instead of "changed" twice.
677 Sat Oct 23 15:17:55 2004 Søren Sandmann <sandmann@redhat.com>
679 * gtk/gtkmenutoolbutton.c (button_state_changed_cb): Remove check
680 for previous state being ACTIVE. Bug 153876.
682 2004-10-22 Matthias Clasen <mclasen@redhat.com>
684 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_drag_data_received)
685 (gtk_file_chooser_button_init): Use the new file DND api.
688 * gtk/gtkdnd.c (gtk_drag_dest_add_uri_targets)
689 (gtk_drag_source_add_uri_targets):
691 * gtk/gtkselection.h:
692 * gtk/gtkselection.c (gtk_target_list_add_uri_targets):
693 (gtk_selection_data_set_uris):
694 (gtk_selection_data_get_uris): New functions to allow
695 handling file DND "without knowing jack shit".
697 * configure.in: Bump glib requirement to 2.5.4.
699 * gtk/gtkfilechooserdefault.c (shortcuts_drop_uris): Use
700 g_uri_list_extract_uris().
702 Fri Oct 22 13:25:25 2004 Owen Taylor <otaylor@redhat.com>
704 * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix
705 backspacing on the empty last line of a buffer
706 (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
709 2004-10-22 Matthias Clasen <mclasen@redhat.com>
711 * gtk/gtkdnd.c: Document how to use info with text/image
714 * gtk/gtkselection.h:
715 * gtk/gtkselection.c (gtk_target_list_add_text_targets):
716 (gtk_target_list_add_image_targets): Add info argument.
718 * gtk/gtkcalendar.c (gtk_calendar_motion_notify):
719 * gtk/gtkentry.c (gtk_entry_init):
720 * gtk/gtktextview.c (gtk_text_view_init): Adjust all callers.
722 2004-10-22 Anders Carlsson <andersca@gnome.org>
724 * gtk/gtktexttag.c: (gtk_text_tag_get_property):
725 GdkBitmap is a GObject, not a boxed type.
727 Thu Oct 21 15:01:09 2004 Owen Taylor <otaylor@redhat.com>
731 * gtk/gtkentry.c: Fix checking the wrong position for
732 the backspace_deletes_character PangoLogAttr.
734 * gtk/gtktextbuffer.[ch] gtk/gtk.symbols (gtk_text_buffer_backspace):
735 Move backspace logic from GtkTextView to here, check
736 backspace_deletes_char.
738 * gtk/gtktextview.c: Use gtk_text_buffer_backspace().
740 2004-10-21 Matthias Clasen <mclasen@redhat.com>
742 * gtk/gtkiconcache.c: Include io.h on windows. (#156075,
744 (_gtk_icon_cache_new_for_path): Don't use MAP_FAILED if we don't
747 * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Implement for
750 * gtk/gtkiconcache.h:
751 * gtk/gtkiconcache.c (_gtk_icon_cache_has_icon): New function.
753 * gtk/updateiconcache.c (scan_directory): Don't skip .icon
754 files which are listed before their images.
755 (foreach_remove_func): Instead filter lonely .icon files out
758 * gtk/gtkicontheme.c (theme_dir_get_icon_suffix): Filter out
759 the HAS_ICON_FILE flag.
761 2004-10-21 Matthias Clasen <mclasen@redhat.com>
763 * gtk/gtkiconcache.c: Make it compile without mmap() and
764 add some more checks. (#155973, Morten Welinder)
766 Add convenience api for image dnd (#150165):
768 * gtk/gtkselection.h:
769 * gtk/gtkselection.c (gtk_target_list_add_image_targets)
770 (gtk_selection_data_set_pixbuf, gtk_selection_data_get_pixbuf):
771 New functions to handle the image formats readable/writable
775 * gtk/gtkdnd.c (gtk_drag_dest_add_image_targets)
776 (gtk_drag_source_add_text_targets): New functions to handle
777 the image formats readable/writable by gdk-pixbuf.
779 2004-10-20 Matthias Clasen <mclasen@redhat.com>
781 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
782 the code clearer. (#155239, Murray Cumming)
784 * gtk/gtkicontheme.c: Small fixes.
786 * gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO)
788 * gtk/gtktoolbar.h: Add _gtk_toolbar_rebuild_menu(). (#155885)
790 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
791 Fix a wrong blurb. (#155838, Morten Welinder)
793 2004-10-19 Matthias Clasen <mclasen@redhat.com>
795 Implement icon theme caching. (#154034, Martijn Vernooij,
796 caching schema proposed by Owen Taylor, initial implementation
800 * gtk/gtkmain.c: Add a "icontheme" debug flag.
802 * gtk/Makefile.am (gtk_c_sources): Add gtkiconcache.c
803 (gtk_private_h_sources): Add gtkiconcache.h
804 (bin_PROGRAMS): Add gtk-update-icon-cache
806 * gtk/gtkicontheme.c: Use icon caches if they are available.
807 Currently, GTK+ uses the cache to get information about the
808 available sizes, image file formats and .icon files. The
809 actual image data, and the .icon file contents are not
812 * gtk/updateiconcache.c: A cmdline utility for generating
815 * gtk/gtkiconcache.h:
816 * gtk/gtkiconcache.c: The glue code to mmap an icon cache
817 file and manage the information it contains.
819 * tests/testicontheme.c: Add a "display" option.
821 2004-10-19 Matthias Clasen <mclasen@redhat.com>
823 * tests/testicontheme.c: Set the locale, tidy up output.
825 2004-10-18 Matthias Clasen <mclasen@redhat.com>
827 Fix #155658, Sebastien Bacher:
829 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Add a new
832 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set wm hints on
833 leader windows even if they are withdrawn.
834 (gdk_window_set_group): Mark the new leader window as such. We
835 never remove the flag again, but that should a) be vanishingly
836 rare and b) not a problem, since the flag just turns off an
839 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Mark the default
840 leader window as such.
842 2004-10-17 Matthias Clasen <mclasen@redhat.com>
844 * gtk/gtkaboutdialog.c (gtk_about_dialog_new): Destroy secondary
845 dialogs if the main dialog is hidden. (#155084, Paolo Borelli)
847 2004-10-16 Matthias Clasen <mclasen@redhat.com>
849 * gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
850 the secondary dialogs. (#155084, Paolo Borelli)
852 * gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
855 2004-10-15 Matthias Clasen <mclasen@redhat.com>
857 * gdk/makegdkalias.pl: Include linux-fb/gdkfb.h when building
858 the framebuffer backend. (#155486, Olexiy Avramchenko)
860 2004-10-15 Matthias Clasen <mclasen@redhat.com>
862 * gtk/gtksizegroup.c (do_size_request): Unset GTK_REQUEST_NEEDED
863 before emitting ::size-request, following this weeks discussion
864 on gtk-devel-list@gnome.org.
866 * gtk/gtkcellview.c (gtk_cell_view_get_size_of_row): Restore
867 the size info for the current row after measuring another
868 row. (#154945, William Jon McCann)
870 2004-10-14 Matthias Clasen <mclasen@redhat.com>
872 * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
873 get text unnecessarily. (#155384, Morten Welinder)
874 (gtk_file_chooser_default_finalize): Don't forget to
875 unref the tooltips. (#155412, Morten Welinder)
876 (shortcuts_add_current_folder): Don't leak volume. (#155400,
879 2004-10-12 Matthias Clasen <mclasen@redhat.com>
881 * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge
882 the fact that invariants are broken and loop all the way up to
883 the resize container.
885 Tue Oct 12 17:11:02 2004 <timj@birnet.org>
887 * gtk/gtkwidget.c (gtk_widget_set_usize_internal): don't queue the
888 widget for resize or emit change notification if the usize didn't
889 change. this works around a buggy signal connection in #155139.
891 2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
893 * docs/tools/widgets.c: Create scrolledwindow, statusbar,
894 scale and image images.
896 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
898 * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
899 notebook and messagedialog images.
901 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all):
904 Sun Oct 10 11:24:56 2004 Jonathan Blandford <jrb@redhat.com>
906 * gtk/gtkcontainer.h (struct _GtkContainer): add /*< private >*/
909 2004-10-09 Matthias Clasen <mclasen@redhat.com>
911 * docs/tools/widgets.c: Shrink panes and separators images to MEDIUM.
913 * gtk/gtkcellview.c: Add docs.
915 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_get_menu): Fix
918 * gtk/gtkactiongroup.h:
919 * gtk/gtkactiongroup.c: Reinstate the accidentally lost addition
920 of gtk_action_group_translate_string().
922 * gtk/gtkaccelgroup.h: Declare gtk_accelerator_get_label.
924 2004-10-08 Matthias Clasen <mclasen@redhat.com>
926 * gdk/x11/gdkx.h: Declare gdk_x11_window_set_user_time here.
928 * gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a
929 drag if we loose the grab.
931 * gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
932 renderer to inert mode to avoid bug #154921. This fixes a crash
933 which would otherwise occur if the editing is stopped for the second
934 time. (#154767, Manuel Baena García)
937 * gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
938 flag, geometry, to debug size allocation.
940 * gtk/gtktreeview.c (gtk_tree_view_button_press): Set cell data
941 unconditionally. (#152562, Federico Mena Quintero)
943 2004-10-08 Matthias Clasen <mclasen@redhat.com>
945 * gtk/gtkuimanager.c (update_node): Also update smart separators
946 if the visibility of a menuitem with a submenu changes. (#153791,
949 2004-10-08 Matthias Clasen <mclasen@redhat.com>
953 * gtk/gtkentrycompletion.c:
954 * gtk/gtkspinbutton.c: Share the three copies of get_borders()
955 under the name _gtk_entry_get_borders(). (#116368, Owen Taylor)
957 2004-10-07 Matthias Clasen <mclasen@redhat.com>
959 * gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
960 info too early. (#154703, Morten Welinder)
962 * gtk/gtkfilechooserdefault.c: Include gtkeventbox.h.
963 (#154798, Morten Welinder)
965 2004-10-06 Matthias Clasen <mclasen@redhat.com>
967 * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
968 error. (#154658, John Cupitt)
970 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
971 the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
973 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
974 the completions again after tab. (#147700, Jens Bech Madsen)
976 * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
977 before changing the selection to make the file chooser preview
978 update work better. (#143826, Tommi Komulainen)
980 2004-10-06 Matthias Clasen <mclasen@redhat.com>
982 * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
983 gross way of rounding to a specified number of digits. (#145232,
984 Peter Zelezny, patch by Soeren Sandmann)
986 Wed Oct 6 00:45:04 2004 <timj@birnet.org>
988 * gdk/gdkwindow.c (gdk_window_is_viewable): check the iteration window
989 variable, not just the window passed in. fixes #145270.
991 Tue Oct 5 21:00:54 2004 Tim Janik <timj@gtk.org>
993 * gtk/gtkwidget.c (gtk_widget_size_allocate): reverted my last change
994 and applied owen's leaner conditional flag update which should be good
995 enough to preserve resizing flag invariants.
997 2004-10-05 Matthias Clasen <mclasen@redhat.com>
1001 Tue Oct 5 19:29:06 2004 Tim Janik <timj@gtk.org>
1003 * gtk/gtkentry.h: removed redundant gtk_entry_get_layout() decl.
1005 2004-10-05 Matthias Clasen <mclasen@redhat.com>
1007 * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf): Go back to
1008 not scaling up at all. Less magic.
1010 Tue Oct 5 17:06:26 2004 Tim Janik <timj@gtk.org>
1012 * gtk/gtkwidget.c (gtk_widget_size_allocate): if REQUEST_NEEDED is still
1013 set on ::size-allocate, another size-request has been queued since
1014 ::size-request and needs to be requeued.
1016 2004-10-05 Paolo Borelli <pborelli@katamail.com>
1018 * gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
1019 show-menu as discussed in bug #153873.
1021 2004-10-05 Matthias Clasen <mclasen@redhat.com>
1023 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set
1024 action_name. (#154526, John Finlay)
1026 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new_for_display):
1027 Return a new reference to an existing GdkWindow if one already
1028 exists. (#151378, Gustavo Carneiro)
1030 2004-10-05 Matthias Clasen <mclasen@redhat.com>
1032 Provide access to the string representation of accelerators used
1033 in GtkAccelLabel. (#154068, John Spray)
1035 * gtk/gtkaccelgroup.h:
1036 * gtk/gtkaccelgroup.c (gtk_accelerator_get_label): New function
1037 to return the accelerator label used in GtkAccelLabel.
1038 (gtk_accelerator_name): Update docs to point to
1039 gtk_accelerator_get_label().
1040 * gtk/gtkaccellabel.h:
1041 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1042 New auxiliary function which creates the string representing the
1045 2004-10-05 Matthias Clasen <mclasen@redhat.com>
1047 * gtk/gtkcombobox.c (gtk_combo_box_set_model): Resize the
1048 popup if a new model is set. (#154129, Bernd Demian)
1050 2004-10-04 Matthias Clasen <mclasen@redhat.com>
1052 * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf):
1053 Make the code work as intended for unthemed icons; don't scale
1054 them up too much. Allow to scale them down, and do so
1055 exactly. (#154142, Ross Burton)
1056 (gtk_icon_info_load_icon): Amend docs.
1058 * gtk/gtkcelllayout.c (gtk_cell_layout_clear): Improve
1059 docs. (#154504, Dave Cook)
1061 * gtk/gtkwindow.c (gtk_window_set_icon_list):
1062 (gtk_window_set_default_icon_list): Ref the new icons
1063 before unreffing the old ones. (#154468, Morten Welinder)
1064 (gtk_window_realize_icon): Only set using_themed_icon if
1065 we actually got an icon list from the theme. (#154472, Morten
1068 2004-10-03 Matthias Clasen <mclasen@redhat.com>
1070 * gtk/gtkiconview.c (gtk_icon_view_set_model): Reset pointers
1071 pointing to the old model. (#154350)
1073 * gtk/gtkwindow.c (icon_list_from_theme): Don't leak the
1074 sizes array. (#154310, Christian Persch)
1076 * gtk/gtktreeviewcolumn.c
1077 (gtk_tree_view_column_setup_sort_column_id_callback):
1078 Set sort_indicator to FALSE when appropriate. (#153714,
1079 Reinout van Schouwen)
1081 * gtk/gtktreeview.c (gtk_tree_view_search_position_func):
1082 Fix positioning near the monitor boundaries. (#154341,
1085 2004-10-01 Paolo Borelli <pborelli@katamail.com>
1087 * gtk/gtkmenutoolbutton.c: deactivate the menu before setting it
1088 to something else. Bug #153887.
1090 2004-10-01 Matthias Clasen <mclasen@redhat.com>
1094 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): Fix the
1095 calculation of x_offset when ellipsized and in RTL mode.
1096 (gtk_cell_renderer_text_render): Fix the calculation of the layout
1097 width when ellipsized.
1099 2004-10-01 Tor Lillqvist <tml@iki.fi>
1101 * gdk/win32/gdkglobals-win32.c: Set _gdk_input_ignore_wintab to
1102 FALSE, thus enabling tablet input by default.
1104 * gdk/win32/gdkmain-win32.c (_gdk_windowing_args): Accept the
1105 --use-wintab option again (but without effect, as this is now the
1106 default, see above). (#153788)
1108 * modules/input/gtkimcontextime.c: Numerous changes.
1110 Remove the ifdef UNICODE conditionals. Always use the
1111 wide-character Imm* API. It is present also in Windows 98 and
1112 Me. (Not Windows 95, but I think we don't care about that.) Using
1113 the multibyte API wouldn't work anyway on systems where the system
1114 codepage doesn't support the language the user uses an IME for, so
1115 for instance I wouldn't be able to test this module on my English
1116 Windows 2000 although I do have C, J and K IMEs available.
1118 Guard against IMM not being active, always check ImmGetContext()
1119 returning NULL. Work to some extent even without any IME. Fixes
1120 #153800 at least partially.
1122 * modules/input/imime.c (ime_info): Rename to "ime" to match the
1123 naming pattern of other input modules. Make it default for
1126 2004-10-01 Matthias Clasen <mclasen@redhat.com>
1128 * gtk/gtkcombobox.c (gtk_combo_box_set_model): Add a comment regarding
1129 cell renderers to the docs.
1131 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
1132 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear_attributes):
1133 Silently ignore info being NULL. This is unavoidable with the
1134 current design where we have every implementation of layout_clear
1135 call layout_clear_attributes, and also delegate calls to dependent
1136 cell layouts. (#154191, Martyn Russell)
1138 2004-10-01 Matthias Clasen <mclasen@redhat.com>
1140 * modules/input/iminuktitut.c: Fix the spelling of Inuktitut
1141 in several places. (#154176, John Austin)
1143 2004-09-30 Paolo Borelli <pborelli@katamail.com>
1145 * tests/testellipsize.c: exit on close.
1147 2004-09-29 Matthias Clasen <mclasen@redhat.com>
1149 * gtk/gtkmain.c: Make --g-fatal-warnings a G_OPTION_ARG_NONE,
1150 since it doesn't take an argument.
1152 2004-09-29 Christopher Blizzard <blizzard@redhat.com>
1154 * gtk/gtkmenutoolbutton.h: Remove trailing semicolon on
1157 2004-09-29 Paolo Borelli <pborelli@katamail.com>
1159 * tests/testtoolbar.c: add a GtkMenuToolButton.
1161 2004-09-29 Matthias Clasen <mclasen@redhat.com>
1163 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
1164 (gtk_icon_view_move_cursor_start_end)
1165 (gtk_icon_view_move_cursor_page_up_down)
1166 (gtk_icon_view_move_cursor_up_down): Handle an empty icon
1167 view gracefully. (#152486)
1169 Allow keynav to selectable labels (#138085, David Hawthorne):
1171 * gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when
1172 looking for the initial focus widget.
1174 * gtk/gtklabel.c (gtk_label_focus): Remove to put selectable labels
1175 in the regular focus chain again.
1177 2004-09-28 Matthias Clasen <mclasen@redhat.com>
1179 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Don't
1180 reuse insensitive pixbufs across multiple rows. (#153984, Milosz
1183 * gtk/gtkmain.c (gtk_parse_args): Use gtk_get_option_group()
1184 to obtain an option group with correctly set pre- and post-
1185 parse hooks, instead of manually calling the hooks. This fixes
1186 a problem with setting the program class in the gdk preparse
1187 hook. (#153788, Robert Ögren)
1189 2004-09-27 Matthias Clasen <mclasen@redhat.com>
1193 * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
1194 here, we don't want to parse args twice.
1195 (gtk_init_with_args): Add the ugid check here as well.
1196 (gtk_parse_args): Add the gdk options to the main option group as well.
1198 2004-09-27 Paolo Borelli <pborelli@katamail.com>
1202 * gtk/gtkmenutoolbutton.[ch]: add the GtkMenuToolButton widget
1203 discussed in bug #151441.
1205 * docs/reference/gtk/gtk-docs.sgml:
1206 * docs/reference/gtk/gtk-sections.txt:
1207 * docs/reference/gtk/gtk.types:
1208 * docs/reference/gtk/tmpl/gtkmenutoolbutton.sgml: docs for the
1211 2004-09-27 Matthias Clasen <mclasen@redhat.com>
1213 * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_list_children):
1214 Emit ::finished-loading.
1216 2004-09-27 Roozbeh Pournader <roozbeh@farsiweb.info>
1218 * configure.in: Added Iranian Azerbaijani (az_IR) to ALL_LINUGAS.
1220 2004-09-27 Matthias Clasen <mclasen@redhat.com>
1222 * gtk/gtktreeview.c (gtk_tree_view_append_column): Fix typo in
1223 docs. (#153811, Billy Biggs)
1225 * gtk/gtkpathbar.h (struct _GtkPathBar): Only need a bit for
1228 2004-09-26 Matthias Clasen <mclasen@redhat.com>
1230 * gtk/gtknotebook.c (gtk_notebook_class_init): Add a missing _
1231 to the name of the has_secondary_backward_stepper property.
1232 Noticed by Michèle Garoche.
1234 Sun Sep 26 02:06:43 2004 Jonathan Blandford <jrb@gnome.org>
1236 * gtk/gtkpathbar.h (struct _GtkPathBar): add missing structures.
1238 2004-09-26 Matthias Clasen <mclasen@redhat.com>
1240 * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll
1241 to make the current folder visible. (#152921)
1243 * gtk/gtkbutton.c: Revert the button state to !button_down,
1244 if we're missing the release event due to grab shadowing
1247 * gtk/gtkpathbar.c: Make the slider buttons scroll.
1249 * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Remove
1251 (bookmarks_check_remove_sensitivity): Don't free an uninitialized
1254 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string):
1255 cursor_pos is in characters, not bytes. (#153332, Owen Taylor)
1257 2004-09-25 Robert Ögren <gtk@roboros.com>
1259 * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
1260 lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
1261 a further fix for bug #145467.
1263 2004-09-25 Matthias Clasen <mclasen@redhat.com>
1265 * gtk/gtktextiter.c (inside_word_func): Don't access
1266 attr[-1]. (#153628, Padraig O'Briain)
1268 2004-09-23 Matthias Clasen <mclasen@redhat.com>
1270 * gtk/gtkfilechooserdefault.c: Add some tooltips.
1272 2004-09-22 Matthias Clasen <mclasen@redhat.com>
1274 * gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
1275 * gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
1276 unnecessary g_return_if_fail()s from virtual functions. (#153469,
1277 (Tristan Van Berkom)
1279 * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
1280 cursors. (#153468, Christian Persch)
1282 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't leak old_text.
1283 (#153467, Christian Persch)
1285 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
1287 (gtk_file_chooser_default_should_respond): Make it easier to
1288 select folders in SELECT_FOLDER mode.
1290 Wed Sep 22 00:54:34 2004 Matthias Clasen <mclasen@redhat.com>
1292 * demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame
1295 Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org>
1297 * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
1298 other minor cleanups.
1300 Tue Sep 21 16:27:19 2004 Manish Singh <yosh@gimp.org>
1302 * gdk/gdk.c: remove now unused arg variables.
1304 * gdk/gdkinternals.h: declare _gdk_windowing_init ().
1306 * gtk/gtkmain.c (do_pre_parse_initialization): call gdk_parse_args ()
1307 here instead of gdk_pre_parse_libgtk_only (). Should fix #153082.
1309 2004-09-21 Matthias Clasen <mclasen@redhat.com>
1311 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
1312 Don't assert that current_focus != NULL, just return FALSE.
1314 * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
1315 bar arrows some more space.
1317 * configure.in: Check for mallinfo.
1319 * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
1320 is defined. (#153168, Darren Creutz)
1322 * gtk/gtkactiongroup.c: Fix typos in signal docs. (#153224,
1325 Mon Sep 20 19:44:58 2004 Matthias Clasen <mclasen@redhat.com>
1327 * gtk/gtkfilechooserdefault.c (shortcuts_activate_iter): Don't
1328 return FALSE from a void function. (#153185, Joel Fredrikson)
1330 2004-09-20 Matthias Clasen <mclasen@redhat.com>
1332 * gtk/gtkbutton.c (gtk_button_class_init): Add a boolean ::displace-focus
1333 style property and apply child displacement to the focus rectangle
1334 if it is TRUE. (#141170, Soeren Sandmann)
1336 Sun Sep 19 23:56:18 2004 Søren Sandmann <sandmann@redhat.com>
1338 * gtk/gtkmenu.c (MENU_SCROLL_TIMEOUT2): Change from 50 to 20 to
1339 make the menus scroll faster.
1341 2004-09-19 Matthias Clasen <mclasen@redhat.com>
1343 * configure.in: Bump version
1345 * === Released 2.5.3 ===
1347 2004-09-18 Matthias Clasen <mclasen@redhat.com>
1349 Make GtkFileChooserButton activatable via mnemonics.
1350 (#152925, Dennis Cranston, patch by James M. Cape)
1352 * gtk/gtkfilechooserbutton.c: Add a ::mnemonic-activate signal
1353 and a suitable default handler.
1355 * tests/testfilechooserbutton.c: Add a mnemonic.
1357 2004-09-18 Matthias Clasen <mclasen@redhat.com>
1359 Fix win32 build errors. (#153032, #153028, Robert Ögren)
1361 * gdk/win32/gdkmain-win32.c: Make it compile.
1363 * gtk/gtkmain.c: Include glib.h.
1365 2004-09-18 Federico Mena Quintero <federico@ximian.com>
1369 * gtk/gtkfilesystem.h: Removed the GTK_FILE_PATH() and
1370 GTK_IS_FILE_PATH() macros. They are not supposed to exist, as
1371 GtkFilePath is not an object. And they never worked, anyway.
1373 2004-09-18 Marco Pesenti Gritti <marco@gnome.org>
1375 * gtk/gtkentry.c: (gtk_entry_completion_key_press):
1377 Make numeric pad enter activate the selected completion
1378 entry. Fix bug 143486 reported by Edd Dumbill.
1380 2004-09-17 Matthias Clasen <mclasen@redhat.com>
1384 * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected
1385 row. (#143868, Christian Persch)
1387 2004-09-17 Matthias Clasen <mclasen@redhat.com>
1389 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove
1390 leftover debug code.
1392 Improve the behaviour of the file chooser in save mode. Fixes bugs
1393 #151031, #151608, #151994 reported by Owen Taylor and Alexander
1396 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property):
1397 (location_entry_create): Propagate the action to the file
1399 (gtk_file_chooser_default_should_respond): Switch folders if
1400 the user enters a directory name in the entry and clear the entry
1401 after switching folders.
1402 (gtk_file_chooser_default_should_respond, shortcuts_row_activated_cb):
1403 Move focus to the file list when activating a shortcut.
1404 (gtk_file_chooser_default_should_respond): Handle the case where the
1405 user clicks on "Save" after selecting a folder in the file list.
1407 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
1408 Propagate the action to the file chooser entries.
1410 * gtk/gtkfilechooserentry.h:
1411 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
1412 (_gtk_file_chooser_entry_get_action): New functions to propagate
1413 the GtkFileChooserAction of the file chooser to the file chooser
1415 (check_completion_callback): If we are in save mode, only do
1416 inline completion for directories.
1418 Fri Sep 17 11:20:03 2004 Jonathan Blandford <jrb@gnome.org>
1420 * gtk/gtklabel.c (gtk_label_set_markup): Add an example to the
1423 Thu Sep 16 23:20:05 2004 Matthias Clasen <maclas@gmx.de>
1425 * gtk/gtkselection.c (selection_get_text_plain):
1426 * gdk/x11/gdkselection-x11.c (make_list): Warn if a UTF8_STRING
1427 or text/plain;charset=utf-8 roperty contains invalid
1428 UTF-8. (#152845, Owen Taylor)
1430 2004-09-16 Matthias Clasen <mclasen@redhat.com>
1432 Fix #152760, Christian Persch:
1434 * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
1436 (gtk_about_dialog_set_translator_credits): Recommend the msg
1437 id translator-credits.
1438 (display_credits_dialog): Show translator credits if they're
1439 translated, not if they're untranslated.
1441 Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
1443 * docs/tools/widgets.c (create_icon_view): load images at normal
1446 * docs/reference/gtk/images/*png: Update shots.
1448 Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
1450 * docs/tools/widgets.c (new_widget_info): Add constrained sizing
1451 to the widgets. This gives us all images running the same size,
1452 which will make the table layout look better.
1454 2004-09-15 Tor Lillqvist <tml@iki.fi>
1456 * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
1457 Remove bogus code that tried to do what the X11 backend does in
1458 its version of this function. There are no "frame windows" (for
1459 toplevel window decoration) on Windows. The desktop ("root")
1460 window is not the parent of a toplevel window. (#152481)
1462 2004-09-15 Matthias Clasen <mclasen@redhat.com>
1466 Wed Sep 15 00:57:37 2004 Matthias Clasen <maclas@gmx.de>
1468 * docs/tools/widgets.c: Add accel label, file button
1471 Tue Sep 14 22:01:49 2004 Matthias Clasen <maclas@gmx.de>
1473 * configure.in: New option --disable-visibility to disable
1474 the use of ELF visibility attributes for PLT reduction.
1476 * gtk/makegtkalias.pl:
1477 * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY
1480 Tue Sep 14 23:20:56 2004 Søren Sandmann <sandmann@redhat.com>
1482 * gtk/gtkaction.c (connect_proxy): Call
1483 gtk_tool_item_rebuild_menu().
1485 * gtk/gtktoolitem.c (gtk_tool_item_class_init): Update
1486 documentation for GtkToolItem::create_menu_proxy.
1488 * gtk/gtktoolitem.c (gtk_tool_item_rebuild_menu): New
1489 API to make the toolbar update itself when the proxy menu item
1490 for a tool item changes.
1492 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Call
1493 gtk_tool_item_rebuild_menu here()
1495 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
1496 Remove redundant check for need_label.
1498 2004-09-14 Matthias Clasen <mclasen@redhat.com>
1500 * gtk/gtkmain.c (do_post_parse_initialization): Remove an unused
1501 variable, spotted by Morten Welinder.
1503 * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
1504 which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO)
1506 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
1507 to the first selected row instead of always to the first row if there
1508 is no cursor. (#143270, Jean Bréfort)
1510 * tests/testfilechooser.c (main): Fix a few typos.
1512 2004-09-13 Matthias Clasen <mclasen@redhat.com>
1514 * gtk/gtkexpander.c:
1515 * gtk/gtktreeview.c: Change the default expander size to 12 to compensate
1516 for the recent change to gtk_default_draw_expander().
1518 * gtk/gtkstyle.c (gtk_default_draw_expander): Use a linewidth of one
1519 for expander sizes up to 16
1521 * gtk/gtkentrycompletion.c (gtk_entry_completion_get_model): Resize the
1522 popup if the model is replaced. (#152333)
1524 Mon Sep 13 09:11:53 2004 Manish Singh <yosh@gimp.org>
1526 * gtk/gtkrange.c: fix gtk_range_real_change_value args. Addresses part
1529 2004-09-13 Matthias Clasen <mclasen@redhat.com>
1531 Fix some problems reported by Morten Welinder:
1533 * gtk/gtkfilesystem.c: Include gtkmodules.h, not gtkmain.h, since
1534 the modules stuff moved.
1536 * gtk/gtkmain.c (gtk_arg_no_debug_cb): Add a missing return
1538 * gtk/gtksettings.c: Add missing include.
1539 (settings_update_modules): Remove an unused variable.
1541 2004-09-13 Matthias Clasen <mclasen@redhat.com>
1543 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1544 Improve positioning of entry completion popup.
1546 2004-09-09 Matthias Clasen <mclasen@redhat.com>
1548 * gtk/makegtkalias.pl:
1549 * gdk/makegdkalias.pl: Use the short prefix "IA__" for
1550 aliases instead of the long suffix "__internal_alias".
1552 * tests/testfilechooser.c (main): Update sensitivity of the "Select all"
1555 Wed Sep 8 18:38:08 2004 Soeren Sandmann <sandmann@redhat.com>
1557 Make dropping of expandable items look nicer.
1559 * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
1560 placeholder expand if highlight item is expanding.
1562 * gtk/gtktoolbar.c (toolbar_content_set_expand): New function.
1564 * gtk/gtktoolbar.c (toolbar_content_get_expand): Return TRUE only
1565 if the item is not disappering.
1567 2004-09-07 Matthias Clasen <mclasen@redhat.com>
1569 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Use the proper node type
1570 for placeholders in toolbars. (#151963, Olivier Andrieu)
1572 * gtk/gtkstyle.c (gtk_default_draw_expander): Draw expanders a bit
1575 Sun Sep 5 17:14:16 2004 Matthias Clasen <maclas@gmx.de>
1579 * gdk/x11/gdkmain-x11.c:
1580 * gdk/win32/gdkmain-win32.c: Add descriptions for the
1581 commandline arguments. The actual descriptions are mostly
1582 taken from libbonoboui, so translators should be able to
1583 copy existing translations from there.
1585 2004-09-05 Anders Carlsson <andersca@gnome.org>
1591 2004-09-05 Anders Carlsson <andersca@gnome.org>
1593 * gdk/gdk.c: (gdk_arg_class_cb), (gdk_arg_name_cb),
1594 (gdk_add_option_entries_libgtk_only), (gdk_pre_parse_libgtk_only),
1597 * gdk/gdkinternals.h:
1598 * gdk/linux-fb/gdkmain-fb.c: (_gdk_windowing_init):
1599 * gdk/win32/gdkmain-win32.c: (_gdk_windowing_init):
1600 * gdk/x11/gdkdisplay-x11.c: (gdk_display_open):
1601 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init):
1602 * gtk/gtkmain.c: (gtk_arg_debug_cb), (gtk_arg_no_debug_cb),
1603 (gtk_arg_module_cb), (gtk_arg_warnings_cb),
1604 (do_pre_parse_initialization), (do_post_parse_initialization),
1605 (pre_parse_hook), (post_parse_hook), (gtk_get_option_group),
1606 (gtk_init_with_args), (gtk_parse_args):
1608 Make gtk argument parsing use goption. Add gtk_get_option_group and
1611 * tests/testtreemodel.c: (main):
1612 Use gtk_init_with_args.
1614 Sun Sep 5 01:04:01 2004 Matthias Clasen <maclas@gmx.de>
1616 Allow sorting of tree models to be turned off
1617 again. (#151139, Torsten Schoenfeld)
1619 * gtk/gtktreesortable.h:
1620 Add GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID.
1622 * gtk/gtktreestore.c (gtk_tree_store_sort):
1623 * gtk/gtkliststore.c (gtk_list_store_sort): Don't sort if
1624 the list store is not sorted.
1626 Sat Sep 4 23:37:56 2004 Matthias Clasen <maclas@gmx.de>
1628 * configure.in: Fix the Solaris Xinerama checks. (#151754)
1630 Sat Sep 4 22:45:49 2004 Matthias Clasen <maclas@gmx.de>
1632 * gtk/gtkentry.c (gtk_entry_backspace): Don't refuse to delete
1633 text in passwords. (#151723, Owen Taylor)
1635 Sat Sep 4 16:51:00 2004 Søren Sandmann <sandmann@redhat.com>
1637 * gdk/x11/gdkevents-x11.c (gdk_event_prepare): Revert accidental
1638 change from Aug 02 that removed a flush of the X connection from
1639 gdk_event_prepare() causing applications to get stuck. (#151732,
1642 Fri Sep 3 22:45:03 2004 Matthias Clasen <maclas@gmx.de>
1644 * gtk/gtkuimanager.c (print_node): Don't print out attributes
1645 for the <ui> root node. (#151752, Lorenzo Gil Sánchez)
1647 Sat Sep 4 02:38:57 2004 Søren Sandmann <sandmann@redhat.com>
1649 * gtk/gtktoolbar.c (position): Accelerate the animation when it
1650 has been running for a while. (#143647).
1652 2004-09-03 Tor Lillqvist <tml@iki.fi>
1654 * gtk-zip.sh.in: List the three theme gtkrc files separately, zip
1655 doesn't do anything if one of the files on its command line
1658 Handle changes of screen resolution on Win32. (#151581, reported by
1661 * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_init,
1662 _gdk_root_window_size_init): Factor out setting the root window's
1663 size (as the size of the union of all monitors) to a new function.
1665 * gdk/win32/gdkdisplay-win32.c (gdk_display_open,
1666 _gdk_monitor_init): Factor out the monitor query to a new
1669 * gdk/win32/gdkprivate-win32.h: Declare above new functions.
1671 * gdk/win32/gdkevents-win32.c (gdk_event_translate,
1672 handle_display_change): Handle WM_DISPLAYCHANGE by calling the
1673 above two functions, and emitting the "size_changed" signal on our
1676 2004-09-01 Matthias Clasen <mclasen@redhat.com>
1678 * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible):
1679 Document the return value.
1681 2004-09-01 Matthias Clasen <mclasen@redhat.com>
1683 Make it possible to specify additional modules to load
1684 via a setting. (#117236, Alex Graveley)
1687 * gtk/gtkmodules.c: New files which contain the module
1688 handling code which was previously in gtkmain.[hc].
1689 Additionally, the code now looks for the gtk-modules
1690 setting, which can specify additional modules to load.
1693 * gtk/gtkmain.h: Remove all the module handling code.
1695 * gtk/gtkdebug.h: Add a debug flag for modules.
1697 * gtk/gtk.h: Include gtkmodules.h
1699 * gtk/Makefile.am (gtk_public_h_sources): Add gtkmodules.h
1700 (gtk_c_sources): Add gtkmodules.c
1702 * gtk/gtksettings.c: Add the gtk-modules setting.
1704 * gdk/x11/gdkevents-x11.c: Add the Gtk/Modules XSetting.
1706 Wed Sep 1 19:11:44 2004 Søren Sandmann <sandmann@redhat.com>
1708 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
1709 children of the toolbar are given positive dimensions. (149540,
1712 2004-09-01 Matthias Clasen <mclasen@redhat.com>
1714 * gtk/gtkfilesystemunix.c:
1715 * gtk/gtkfilechooserbutton.c: Protect the unistd.h include
1718 Wed Sep 1 02:38:48 2004 Matthias Clasen <maclas@gmx.de>
1720 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Make
1721 accel labels ellipsize correctly. (#151559, Christian Persch)
1723 Wed Sep 1 00:55:56 2004 Matthias Clasen <maclas@gmx.de>
1725 * gtk/gtkimage.c (gtk_image_clear): Don't leak the iter
1726 of a running animation. (#151542)
1728 Tue Aug 31 23:40:29 2004 Matthias Clasen <maclas@gmx.de>
1730 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
1731 "ms-windows" the default theme on Win32.
1733 Tue Aug 31 23:24:49 2004 Matthias Clasen <maclas@gmx.de>
1735 * gtk/gtkcalendar.c (gtk_calendar_main_button): Only start
1736 a drag if the left button is pressed. (#151490, Frederic Croszat)
1738 Tue Aug 31 23:20:58 2004 Matthias Clasen <maclas@gmx.de>
1740 * gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
1742 Tue Aug 31 17:07:41 2004 Jonathan Blandford <jrb@redhat.com>
1744 * gtk/gtktreeviewcolumn.c
1745 (gtk_tree_view_column_cell_process_action): constrain cell area to
1746 passed in cell_area, #147867
1748 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): if
1749 ellipsizing, get_size is only 3 chars wide.
1751 * docs/tree-column-sizing.png: Add Matthias's excellent image.
1753 2004-08-28 Robert Ögren <gtk@roboros.com>
1755 On Win32, do not produce tablet motion or button events while a
1756 window is being moved or resized. (#151090, reported by Shaneyfelt)
1758 * gdk/win32/gdkprivate-win32.h
1759 * gdk/win32/gdkglobals-win32.c
1760 * gdk/win32/gdkevents-win32.c: Rename the variable resizing to
1761 _sizemove_in_progress and make it extern.
1763 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Ignore
1764 motion and button events if _sizemove_in_progress is true.
1766 2004-08-30 Tor Lillqvist <tml@iki.fi>
1768 Make the ms-windows theme engine build with mingw.
1770 * configure.in: Expand also modules/engines/ms-windows/Theme/
1771 Makefile and .../Theme/gtk-2.0/Makefile.
1773 * modules/engines/ms-windows/Makefile.am: Adapt for building
1774 inside the GTK sources.
1776 * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
1777 GTK and GDK headers. Use correct path for gdkwin32.h header.
1779 * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
1782 * modules/engines/ms-windows/xp_theme_defs.h
1783 * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
1784 to xp_theme.c, as they are neither in mingw's nor Platform
1787 * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
1788 0x0501 to get the necesssary stuff from mingw's uxtheme.h.
1790 2004-08-30 Matthias Clasen <mclasen@redhat.com>
1792 Integrate the ms-windows theme engine (better known as Wimp)
1793 into the autotools build. Wimp (http://gtk-wimp.sourceforge.net/)
1794 was written by Raymond Penners and Dom Lachowicz. The Wimp 0.6.2
1795 sources have been added to the GTK+ source tree in
1796 modules/engines/ms-windows, and there is a ChangeLog detailing
1797 the history of Wimp. (#109615, Havoc Pennington)
1799 * configure.in: Generate modules/engines/Makefile and
1800 modules/engines/ms-windows/Makefile.
1802 * modules/Makefile.am (SUBDIRS): Add engines.
1804 * modules/engines/Makefile.am: Compile ms-windows for win32.
1806 2004-08-30 Matthias Clasen <mclasen@redhat.com>
1808 * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
1811 2004-08-27 Matthias Clasen <mclasen@redhat.com>
1813 Fix #151112, Olexiy Avramchenko:
1815 * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout):
1816 * gtk/gtkiconview.c (scroll_timeout, layout_callback)
1817 (gtk_icon_view_item_accessible_idle_do_action):
1818 * gtk/gtkcombobox.c (list_popup_resize_idle, popdown_idle)
1819 (popup_idle): Protect idle callbacks and timeouts with
1820 GDK_THREADS_ENTER/_LEAVE.
1822 * gtk/gtkfilechooserbutton.c (update_dialog_idle): New function to
1823 call update_dialog() from an idle with the necessary protection.
1825 Mon Aug 30 01:34:42 2004 Matthias Clasen <maclas@gmx.de>
1827 Changes to make sure input methods respect the editability
1828 of entries and text views. #114173, Noah Levitt.
1830 * gtk/gtkentry.c (popup_targets_received): Make the Input
1831 Methods menuitem insensitive if we're not editable.
1833 * gtk/gtkentry.c (gtk_entry_delete_surrounding_cb):
1834 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb):
1835 * gtk/gtkentry.c (gtk_entry_commit_cb): Don't change anything
1836 if we're not editable.
1838 * gtk/gtkentry.c (gtk_entry_focus_out):
1839 * gtk/gtkentry.c (gtk_entry_focus_in): Only send focus_in and
1840 focus_out to the im context if we're editable.
1842 * gtk/gtkentry.c (gtk_entry_set_property): Reset the im context
1843 if the entry just became non-editable.
1845 * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
1846 Use gtk_text_buffer_delete_interactive() to not delete
1847 non-editable portions of text.
1849 2004-08-30 Tor Lillqvist <tml@iki.fi>
1851 * modules/input/Makefile.am (im_ime_la_LIBADD): Link with -limm32.
1853 * modules/input/gtkimcontextime.c: Use quotes in #includes, to
1854 find headers when building inside GTK+ sources.
1856 2004-08-27 Tor Lillqvist <tml@iki.fi>
1858 * gdk/win32/gdkdnd-win32.c (GdkDragContextPrivateWin32): Add
1859 drop_failed, like in the X11 backend. Nothing sets it, though.
1860 (gdk_drag_drop_succeeded): Copy from X11 backend.
1862 Thu Aug 26 23:58:11 2004 Matthias Clasen <maclas@gmx.de>
1864 * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
1865 if model is not set. Noted by Mariano Suarez-Alvarez.
1867 Thu Aug 26 22:44:12 2004 Matthias Clasen <maclas@gmx.de>
1869 Provide information about how an adjustment change in a range
1870 widget happened. Add a "change-value" signal which reports how
1871 a user is interacting with the range, whether they are clicking
1872 on a stepper or the trough, or dragging the slider. (#133263,
1875 * gtk/gtkmarshalers.list: Add signal type BOOLEAN:ENUM,DOUBLE.
1876 * gtk/gtkrange.c (gtk_range_class_init): Add "change-value"
1878 (gtk_range_internal_set_value): Rename to
1879 gtk_range_real_change_value. Add GtkScrollType parameter. Emit
1880 the change-value signal when the range's value changes.
1881 (update_slider_position, gtk_range_scroll_event, step_back,
1882 step_forward, page_back, page_forward, scroll_begin,
1883 scroll_end): Change gtk_range_internal_set_value to
1884 gtk_range_real_change_value.
1885 * gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
1888 2004-08-26 Matthias Clasen <mclasen@redhat.com>
1890 * modules/input/Makefile.am: Build imime.la on Windows.
1892 * modules/input/gtkimcontextime.h:
1893 * modules/input/gtkimcontextime.c:
1894 * modules/input/imime.c:
1895 * modules/input/imm-extra.h: Add the IME input method for Win32
1896 written by Takuro Ashie and Kazuki IWAMOTO. The code was previously
1897 hosted at http://sourceforge.jp/projects/imime. (#135195)
1899 2004-08-26 Bill Haneman <billh@gnome.org>
1902 (gtk_tree_view_move_cursor_up_down):
1903 If a multi-selection list contains only one item,
1904 select it on cursor_up or cursor_down.
1906 [patch from Padraig O'Briain]
1908 2004-08-26 Matthias Clasen <mclasen@redhat.com>
1910 Make gdk_window_process_[all]_updates() respect
1911 update_freeze_counter (#144272, Soeren Sandmann)
1913 * gdk/gdkwindow.c (gdk_window_schedule_update): New function to
1914 install an idle for gdk_window_update_idle() if one isn't there
1916 (gdk_window_process_all_updates):
1917 (gdk_window_process_updates): Only process the updates if the
1918 window isn't frozen.
1919 (gdk_window_invalidate_maybe_recurse): Schedule an update when
1921 (gdk_window_thaw_updates): Use gdk_window_schedule_update() instead
1922 of directly installing the idle.
1924 2004-08-22 Robert Ögren <gtk@roboros.com>
1926 On Win32, make graphical tablets work on multi-monitor systems.
1927 (#145467, reported by buttknock1@ya...)
1929 * gdk/win32/gdkinput-win32.c (gdk_input_translate_coordinates):
1930 Use dimensions of _gdk_parent_root as screen size.
1931 (gdk_input_get_root_relative_geometry): Get coordinates relative
1932 to GDK root window instead of Win32 coordinates.
1933 (_gdk_input_other_event): Updated accordingly.
1935 Wed Aug 25 17:24:17 2004 Manish Singh <yosh@gimp.org>
1937 * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
1940 * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
1941 variables num_extensions and extensions.
1943 * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
1945 Wed Aug 25 17:14:58 2004 Manish Singh <yosh@gimp.org>
1947 * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
1948 path so we don't potentially use an undefined pointer.
1950 * gtk/gtkfilechooserdefault.c (shortcuts_list_create): add G_CALLBACK
1951 cast for tree_view_keybinding_cb.
1953 * gtk/gtkfilechooserdefault.c (location_entry_create): cast to
1954 GTK_FILE_CHOOSER_ENTRY for _gtk_file_chooser_entry_set_file_part()
1957 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_start_editing):
1958 cast to GTK_COMBO_BOX for gtk_combo_box_set_active_iter() call.
1960 * gtk/gtkselection.c (selection_get_text_plain): make len a gsize,
1961 since that's what g_convert_with_fallback() expects.
1963 Wed Aug 25 16:14:34 2004 Jonathan Blandford <jrb@redhat.com>
1965 * gtk/gtktreeview.c (gtk_tree_view_search_activate): activate the
1966 typeahead entry on enter.
1968 2004-08-25 Matthias Clasen <mclasen@redhat.com>
1970 * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
1971 list so its tail isn't freed when we re-set it, noticed
1972 by Hans Petter Jansson.
1974 * gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
1975 a typo, noticed by Tim Janik.
1977 Wed Aug 25 15:15:56 2004 Jonathan Blandford <jrb@redhat.com>
1979 * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Change the Down
1980 button to be end-justified, so that clicking on it is a stable
1983 Tue Aug 24 02:06:37 2004 Jonathan Blandford <jrb@gnome.org>
1986 (gtk_tree_view_real_expand_collapse_cursor_row): Don't handle the
1987 event if we have no children.
1989 * gtk/gtkfilechooserdefault.c (trap_activate_cb):
1990 (tree_view_keybinding_cb):Since GtkTreeView has a keybinding
1991 attached to '/', we need to catch keypresses before the TreeView
1993 (gtk_file_chooser_default_class_init): add '/' to be a keybinding
1995 (location_entry_create): Clear the text to "" when loading a file.
1996 This has a much better feel than putting the currently selected
1998 * #include <errno.h>
2000 2004-08-25 Matthias Clasen <mclasen@redhat.com>
2002 * gtk/gtkfilechooserdefault.c (check_is_folder): Use get_file_info() rather
2003 than trying get_folder() and checking for an error directly because older
2004 versions of the gnome-vfs backend don't return an error
2005 immediately. (#150852, Zack Cerza )
2007 2004-08-25 Matthias Clasen <mclasen@redhat.com>
2009 * configure.in: Post-release version bump.
2011 * === Released 2.5.2 ===
2014 * gtk/abicheck.sh: Make work during make distcheck.
2016 * docs/RELEASE-HOWTO: Add hint about doing make check
2017 before make distcheck.
2019 * gtk/gtk.symbols: Add some missing symbols.
2021 * gtk/gtkiconview.c: Add some missing statics.
2023 2004-08-24 Matthias Clasen <mclasen@redhat.com>
2025 * NEWS: Updates for 2.5.2
2027 Wed Aug 25 00:22:48 2004 Søren Sandmann <sandmann@redhat.com>
2029 * gtk/gtksequence.c: Remove debug spew
2031 Wed Aug 25 00:09:07 2004 Søren Sandmann <sandmann@redhat.com>
2033 * gtk/gtkliststore.c (gtk_list_store_move_after): Fix logical
2034 errors in gtk_list_store_move_before/after(). (#150983, patch by
2037 Tue Aug 24 21:46:42 2004 Søren Sandmann <sandmann@redhat.com>
2039 * gtk/gtksequence.c (_gtk_sequence_move): Just return if the
2040 parameters are identical. (#150159, Robert Ögren)
2042 2004-08-24 Matthias Clasen <mclasen@redhat.com>
2044 * gtk/gtkaction.c (connect_proxy, disconnect_proxy): Handle
2045 action_group being NULL. (#150869, Tommi Komulainen)
2047 2004-08-24 Matthias Clasen <mclasen@redhat.com>
2049 * gdk/gdkimage.c (allocate_scratch_images): Use the correct
2050 index variable. (#150941, Tommi Komulainen)
2052 2004-08-24 Matthias Clasen <mclasen@redhat.com>
2054 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Take header
2055 height and adjustment into account. (#136496, Pawek Salek)
2057 Mon Aug 23 17:19:19 2004 Jonathan Blandford <jrb@redhat.com>
2060 * docs/tools/Makefile.am (clean-local): add the doc shooter to the
2061 docs dir as an uninstalled helper tool.
2063 2004-08-23 Matthias Clasen <mclasen@redhat.com>
2065 * gdk/x11/gdkwindow-x11.c (show_window_internal): Make it compile.
2067 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Add a
2070 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Update
2071 toplevel->user_time.
2072 (show_window_internal): Update the user time when re-mapping a
2073 toplevel window. (#150502, Elijah Newren)
2075 2004-08-23 Matthias Clasen <mclasen@redhat.com>
2077 Fix #150822, reported by Christian Persch
2079 * gtk/gtklabel.c (gtk_label_ensure_layout): Set the layout width
2080 appropriately when ellipsized.
2081 (gtk_label_size_allocate): Only set the layout width if there
2084 2004-08-23 Matthias Clasen <mclasen@redhat.com>
2086 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest
2087 EWMH additions to the _NET_ACTIVE_WINDOW client message
2088 format. (#150668, Elijah Newren)
2090 Mon Aug 23 01:17:59 2004 Matthias Clasen <maclas@gmx.de>
2092 * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused
2093 bits in pixel to 1s in case they are used as alpha; copying
2094 code from gdk_colormap_alloc_colors(). (#150466, Rich Wareham)
2096 2004-08-22 Philip Langdale <plangdale@vmware.com>
2098 * gtk/gtkaction.c (gtk_action_disconnect_proxy): Two signals
2099 (gtk_action_sync_property and gtk_action_sync_sensitive) were
2100 not being correctly disconnected, leading to actions continuing
2101 to affect disconnected proxies. (#150607)
2103 2004-08-22 Tor Lillqvist <tml@iki.fi>
2105 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal,
2106 gdk_window_new, gdk_window_set_skip_taskbar_hint): Don't show TEMP
2107 windows in the Task Manager. Implement by calling
2108 gdk_window_set_skip_taskbar_hint(TRUE) on them. (#145481, Tim
2111 * gdk/win32/gdkdisplay-win32.c (enum_monitor, gdk_display_open):
2112 Report whole of (primary) monitor, including any taskbars.
2113 Excluding the taskbar area from the "root window" reported to GDK
2114 doesn't seem to be that useful although gdk/win32 had been doing it
2115 for a very long time. (#149013, see also #145467 and #148526)
2117 Sun Aug 22 16:55:15 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2120 * gtk/gtkalignment.c:
2122 Make enums match property names. Found by a script by Tommi
2125 * gtk/gtkpaned.c (gtk_paned_class_init): fix min/max mixup.
2127 Sun Aug 22 16:09:49 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2129 * gtk/gtkliststore.h (struct _GtkListStore):
2130 * gtk/gtkliststore.c (gtk_list_store_init):
2131 * gtk/gtkliststore.c (gtk_list_store_insert):
2132 * gtk/gtkliststore.c (gtk_list_store_remove):
2133 Restore length field; PyGTK and maybe others use it directly.
2135 Sun Aug 22 15:46:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2137 * gtk/gtkpaned.c (gtk_paned_class_init):
2138 s/CYCLE_HANDLE_FOCUS/CYCLE_CHILD_FOCUS/
2140 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
2141 s/PROP_SHOW_SIZE/PROP_SHOW_STYLE/
2143 Both pointed out by Tommi Komulainen.
2145 Sun Aug 22 13:44:53 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2147 * gtk/gtkpaned.c (gtk_paned_class_init): Use PROP_MAX_POSITION,
2148 not PROP_MIN_POSITION for the max_position property. Fix pointed
2149 out by Tommi Komulainen.
2151 Sun Aug 22 13:32:33 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2153 * gtk/gtkliststore.c (gtk_list_store_insert): Normalize the
2154 position so we don't create paths with off-list
2157 Sun Aug 22 12:04:59 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2159 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Use the
2160 correct tree path (#150289, Morten Welinder).
2162 Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de>
2164 Fix #150406, reported by Fernando San Martín Woerner, patch
2165 by Gustavo Carneiro.
2167 * gtk/gtkentrycompletion.c
2168 (gtk_entry_completion_default_completion_func): Check that
2169 column is of type G_TYPE_STRING before proceeding.
2171 Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
2173 * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
2174 uninitialized tree iter. (#150414, Torsten Schoenfeld)
2176 Sat Aug 21 23:29:54 2004 Matthias Clasen <maclas@gmx.de>
2178 Fix #150738, Tomislav Jonjic.
2180 * gtk/gtktoolitem.h (GTK_IS_TOOL_ITEM_CLASS):
2181 * gtk/gtktoolbutton.h (GTK_IS_TOOL_BUTTON_CLASS):
2182 * gtk/gtktoggleaction.h (GTK_IS_TOGGLE_ACTION_CLASS):
2183 * gtk/gtkseparatortoolitem.h (GTK_IS_SEPARATOR_TOOL_ITEM_CLASS):
2184 * gtk/gtkradiotoolbutton.h (GTK_IS_RADIO_TOOL_BUTTON_CLASS):
2185 * gtk/gtkradioaction.h (GTK_IS_RADIO_ACTION_CLASS):
2186 * gtk/gtkuimanager.h (GTK_IS_UI_MANAGER_CLASS):
2187 * gtk/gtkaction.h (GTK_IS_ACTION_CLASS): Fix macro definitions.
2189 Wed Aug 18 17:25:26 2004 Manish Singh <yosh@gimp.org>
2191 * demos/testpixbuf-save.c
2192 * demos/gtk-demo/hypertext.c: Get rid of some unnecessary casts.
2194 * demos/gtk-demo/appwindow.c: Make activate_email and activate_url
2195 match the arguments for GtkAboutDialogActivateLinkFunc.
2197 Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org>
2199 * gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
2200 from fixed_height before we do anything, so it always has a valid
2203 * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
2204 to gtk_tree_model_get (missing "," in param list).
2206 2004-08-18 Federico Mena Quintero <federico@ximian.com>
2212 * gtk/gtkfilechooserdefault.c: Renamed SHORTCUTS_COL_PATH to
2213 SHORTCUTS_COL_DATA. Add SHORTCUTS_COL_IS_VOLUME, to determine
2214 easily whether the SHORTCUTS_COL_DATA points to a GtkFilePath or a
2215 GtkFileSystemVolume.
2216 (shortcuts_model_create): Create a boolean column for
2217 SHORTCUTS_COL_IS_VOLUME.
2218 (shortcuts_reload_icons): Simplify with the use of the
2219 SHORTCUTS_COL_IS_VOLUME column. Don't leak the pixbuf.
2220 (shortcuts_insert_path): Add the SHORTCUTS_COL_IS_VOLUME data.
2221 (shortcuts_free_row_data): New helper function; frees the data
2222 columns for an iter.
2223 (shortcuts_remove_rows): Don't take a callback for freeing the
2224 data; free everything here instead. Use
2225 shortcuts_free_row_data().
2226 (volume_remove_cb): Removed.
2227 (remove_bookmark_cb): Removed.
2228 (remove_row_cb): Make this a single generic function to delete
2230 (shortcuts_add_volumes): Use remove_row_cb().
2231 (shortcuts_add_bookmarks): Likewise.
2232 (struct _GtkFileChooserDefault): Removed the
2233 shortcuts_current_folder_is_volume field.
2234 (shortcuts_add_current_folder): Oops, don't free the volume.
2235 (remove_current_folder_cb): Removed.
2236 (shortcut_find_position): Simplify through the use of the
2237 SHORTCUTS_COL_IS_VOLUME column.
2238 (remove_selected_bookmarks): Assert that we don't get a volume.
2239 (shortcuts_reorder): Likewise; also, plug a leak.
2240 (gtk_file_chooser_default_remove_shortcut_folder): Simplify
2241 through the use of shortcuts_remove_rows().
2242 (gtk_file_chooser_default_list_shortcut_folders): Assert that we
2244 (shortcuts_activate_iter): Simplify.
2245 (home_folder_handler): Simplify by using
2246 shortcuts_activate_iter().
2247 (shortcuts_free): New function; frees all the data columns.
2248 (gtk_file_chooser_default_finalize): Unref the
2249 shortcuts_filter_model and the shortcuts model data first.
2251 Wed Aug 18 08:31:17 2004 Manish Singh <yosh@gimp.org>
2253 * gtk/gtkiconview.c: Applied patch from Olivier Andrieu to fix
2256 * gtk/gtkicontheme.c (gtk_icon_theme_init): xdg_data_dirs should
2257 match constness attributes of g_get_system_data_dirs ().
2259 2004-08-17 Matthias Clasen <mclasen@redhat.com>
2261 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look up icon themes in the
2262 directories specified in the icon theme spec: $HOME/.icons,
2263 $XDG_DATA_DIRS/icons, /usr/share/pixmaps. Note that GTK+ used to also look
2264 in $GTK_DATA_DIR/icons, $GTK_DATA_DIR/pixmaps and /usr/share/icons. (#148694)
2267 * gtk/gtkframe.c (gtk_frame_paint): Take widget->state into account when
2268 painting the shadows. (#150351, Tim Janik)
2270 2004-08-17 Matthias Clasen <mclasen@redhat.com>
2272 * gtk/abicheck.sh: No need for INCLUDE_INTERNAL_SYMBOLS anymore.
2274 * gdk/gdk.symbols: Don't use #if defined().
2276 * gdk/Makefile.am (gdkalias.h):
2277 * gtk/Makefile.am (gtkalias.h): Don't use cpp to filter gtk.symbols.
2279 * gdk/makegdkalias.pl:
2280 * gtk/makegtkalias.pl: Move the #ifdef processing into the perl script, and
2281 keep the #ifdefs which differentiate between platforms.
2283 * gtk/Makefile.am (gtk_private_h_sources): Remove gtkinternals.h, it is no
2286 2004-08-17 Matthias Clasen <mclasen@redhat.com>
2288 * tests/testfilechooserbutton.c: Use g_message() throughout, add RTL envar for
2291 * gtk/gtkfilechooserbutton.c: Get rid of HAVE_CONFIG_H.
2292 (gtk_file_chooser_button_init): Use gtk_drag_dest_add_text_targets().
2293 (gtk_file_chooser_button_drag_data_received): Use gtk_selection_data_get_text().
2294 (gtk_file_chooser_button_set_dialog): _gtk_file_chooser_entry_set_base_folder()
2295 seems to expect a path, not an uri.
2296 (update_dialog): Handle g_filename_from_uri() returning NULL, don't free
2299 * gtk/gtkfilechooserbutton.h: Minor stylistic changes.
2301 2004-08-17 Matthias Clasen <mclasen@redhat.com>
2303 * gtk/gtkfilechooserbutton.[hc]: New widget to go along with
2304 GtkFontButton and GtkColorButton for use in preference dialogs.
2305 Replaces GnomeFileEntry. (#148108, James M. Cape)
2307 * gtk/gtk.h: Include gtkfilechooserbutton.h
2309 * gtk/Makefile.am (gtk_public_h_sources): Add gtkfilechooserbutton.h
2310 (gtk_c_sources): Add gtkfilechooserbutton.c
2312 * gtk/gtk.symbols: Add the GtkFileChooserButton symbols.
2314 * gtk/gtkfilechooserutils.[hc]: Make the delegate quark available.
2316 * gtk/gtkfilechooserentry.[hc] (_gtk_file_chooser_entry_new): Allow
2317 to suppress tab-eating using the new eat_tabs argument. Adjust all
2320 * tests/testfilechooserbutton.c: Test for GtkFileChooserButton.
2322 * tests/Makefile.am (noinst_PROGRAMS): Add testfilechooserbutton
2324 2004-08-16 Matthias Clasen <mclasen@redhat.com>
2326 * gtk/gtkwidget.c (gtk_widget_render_icon): Doc update.
2328 * gtk/gtkiconfactory.c (render_icon_name_pixbuf): When the size is -1,
2329 use the available size closest to 48. (#150147)
2331 * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): Actually return
2332 a pointer to the beginning of the sizes array, not the end.
2334 2004-08-16 Morten Welinder <terra@gnome.org>
2336 * tests/testtreemodel.c (test_run): Comment out mallinfo stuff.
2337 Fix g_print %-strings.
2339 * gtk/gtksequence.c (_gtk_sequence_set): Fix C99ism.
2341 2004-08-16 Christian Rose <menthos@menthos.com>
2343 * configure.in: Added "bs" to ALL_LINGUAS.
2345 Mon Aug 16 01:35:25 2004 Matthias Clasen <maclas@gmx.de>
2348 * gtk/gtkcombobox.[hc]: Add a ::focus-on-click property and
2349 change the default behaviour to focus on click.
2351 * gtk/gtkbutton.c (gtk_button_set_focus_on_click): Typo fix.
2353 Mon Aug 16 01:03:08 2004 Matthias Clasen <maclas@gmx.de>
2355 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset):
2356 (gtk_text_iter_set_visible_line_index): Count from the
2357 beginning of the line, not from the current position. (#150101,
2360 2004-08-15 Tor Lillqvist <tml@iki.fi>
2362 * gtk-zip.sh.in: Fix typo. The gtk.immodules file had never been
2363 included in my zipfiles...!
2365 * gtk/gtkfilesystemwin32.c (extract_icon): Improve handling of
2366 icon alpha channel (on Windows XP) and mask (older Windows
2367 versions). (#148641, Tim Evans)
2369 Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de>
2371 * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make
2372 the use of S_ISFIFO and S_ISSOCK conditional. (#150146,
2375 2004-08-14 Tor Lillqvist <tml@iki.fi>
2377 * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
2378 shortcuts_append_desktop, set_local_only)
2379 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_render_icon)
2380 * gtk/gtkpathbar.c (find_button_type, _gtk_path_bar_set_file_system):
2381 Guard against g_get_home_dir() returning NULL. (#150007)
2383 Sat Aug 14 17:56:33 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2385 * gtk/gtkentry.c (gtk_entry_get_pixel_ranges): New function.
2387 * gtk/gtkentry.c (in_selection): New function using
2388 gtk_entry_get_pixel_ranges() to determine whether a click is in
2389 the selection. Improve entry behavior wrt. dragging and
2390 selecting. Bug #143249.
2392 Sat Aug 14 17:53:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2394 * configure.in: Require glib 2.5.2
2396 * gtk/gtksequence.[ch]: New internal data structure.
2398 * gtk/gtkliststore.[hc]: Reimplement in terms of new data
2401 * tests/Makefile.am (testtreemodel_SOURCES):
2402 * tests/testtreemodel.c: New test program written by Matthias.
2404 2004-08-13 Matthias Clasen <mclasen@redhat.com>
2406 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_style_set):
2407 Don't install the settings_notify_cb from here, since it
2408 may be called before the first screen_changed signal,
2409 confusing the logic in gtk_file_chooser_screen_changed().
2410 (#148803, Abel Daniel)
2412 * gtk/gtkcombobox.c: Make re-sensitivation work
2415 * gtk/gtkaction.c (gtk_action_new): Fix the docs.
2417 Fri Aug 13 01:06:56 2004 Matthias Clasen <maclas@gmx.de>
2419 * gtk/gtktreeview.c (gtk_tree_view_row_inserted):
2420 Make fixed height mode handle insertions. (#135955,
2421 Michael Vogt, testcase by Tim-Philipp Müller, fix by
2424 Fri Aug 13 00:40:18 2004 Matthias Clasen <maclas@gmx.de>
2426 * gtk/gtkhandlebox.c: Add missing include.
2428 Thu Aug 12 23:52:12 2004 Matthias Clasen <maclas@gmx.de>
2430 Fix #149547, Markus Lausser:
2432 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate):
2433 * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't
2434 crash if size_request or size_allocate are called early.
2436 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
2437 against being allocated too small.
2439 Thu Aug 12 21:02:57 2004 Matthias Clasen <maclas@gmx.de>
2441 * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog
2444 * gtk/gtkaboutdialog.h:
2445 * gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook):
2446 (gtk_about_dialog_set_url_hook): Add callback data and destroy notify
2447 for language bindings. (#149999, Olivier Andrieu)
2449 2004-08-12 Matthias Clasen <mclasen@redhat.com>
2451 * gtk/gtkfilesystem.c: Underscore-prefix gtk_file_system_module_get_type().
2452 * gtk/gtkfilechooserdefault.c: Underscore-prefix shortcuts_model_filter_get_type().
2454 * gtk/gtkimmodule.c: Make gtk_im_module_get_type() static.
2456 * gtk/gtkinternals.h: Remove the no longer exported get_type functions.
2458 Thu Aug 12 01:35:46 2004 Matthias Clasen <maclas@gmx.de>
2460 * gtk/gtkiconview.c: Make the icon view accessible by
2461 implementing the necessary ATK interfaces. (#149728,
2464 Thu Aug 12 00:02:29 2004 Matthias Clasen <maclas@gmx.de
2466 * gtk/gtkaction.c (gtk_action_new): Link to information about
2467 allowed action names. (#149620, David Malcolm)
2469 Wed Aug 11 23:14:25 2004 Matthias Clasen <maclas@gmx.de>
2473 * gtk/gtkaction.c (gtk_action_set_sensitive):
2474 (gtk_action_set_visible): Add setters for the ::sensitive
2475 and ::visible properties of GtkAction. (#149622, David Malcolm)
2477 2004-08-11 Federico Mena Quintero <federico@ximian.com>
2479 Fix #149422, #143457:
2481 * gtk/gtkfilechooserdefault.c
2482 (gtk_file_chooser_default_should_respond): Rewrite to take the
2483 current focus into account, the contents of the save entry, and
2484 the last focus for the shortcuts list.
2485 (switch_to_selected_folder): We don't need an assertion on the
2488 Wed Aug 11 20:56:00 2004 Matthias Clasen <maclas@gmx.de>
2490 * gtk/gtkinternals.h:
2491 * gtk/gtk.symbols: Add shortcuts_model_filter_get_type.
2493 * gtk/abicheck.sh: Check all symbols.
2495 Wed Aug 11 19:20:34 2004 Matthias Clasen <maclas@gmx.de>
2497 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
2498 Don't start a drag if the treeview is only a
2499 drag destination. (#149836, Pawel Salek)
2501 2004-08-11 Matthias Clasen <mclasen@redhat.com>
2503 * gtk/gtktreedatalist.[hc]:
2504 * gtk/gtkliststore.c:
2505 * gtk/gtktreestore.c: Underscore-prefix
2506 gtk_tree_data_list_compare_func.
2508 * gtk/gtk.symbols: Remove gtk_tree_data_list_compare_func.
2510 * gtk/makegtkalias.pl: No need to include gtktreedatalist.h
2513 2004-08-10 Matthias Clasen <mclasen@redhat.com>
2516 * gtk/Makefile.am: Define TESTS, not TEST, so that make check
2517 actually triggers abicheck.sh.
2519 * gdk/makegdkalias.pl:
2520 * gtk/makegtkalias.pl: Include glib.h before using glib symbols. D'oh.
2522 * gdk/makegdkalias.pl:
2523 * gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
2525 * gtk/Makefile.am: Include gtkalias.h in the generated
2526 sources gtkmarhalers.c and gtkmarshal.c.
2528 * gtk/makegtkalias.pl: Cosmetic fix.
2530 * gdk/Makefile.am: Remove the . which was accidentally added
2531 to SUBDIRS. Include gdkalias.h in the generated sources
2532 gdkenumtypes.c and gdkmarshalers.c.
2534 * gdk/makegdkalias.pl: Cosmetic fix.
2536 * gdk/Makefile.am: Add gdkalias.h to BUILT_SOURCES.
2538 2004-08-09 Hans Breuer <hans@breuer.org>
2540 * gtk/makefile.msc.in : autogenerate gtk.def, cleanup
2542 * gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
2543 removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
2544 removed duplicated call to gdk_window_set_cursor()
2546 Mon Aug 9 15:41:17 2004 Matthias Clasen <maclas@gmx.de>
2548 Add hidden aliases for exported symbols which are
2549 used internally in order to get rid of many PLT
2550 entries. (#145519, Arjan van de Ven)
2552 * gdk/Makefile.am: Add rules to generate gdk.def and
2553 gdkalias.h from gdk.symbols, and make make check check
2554 the abi with abicheck.sh.
2556 * gdk/gdk.symbols: New file. Definition of the GDK ABI.
2557 The file can be processed by cpp to filter out certain
2560 * gdk/abicheck.sh: New file. Script to check the actually
2561 symbols exported from libgdk-x11.2.0.so against the symbols
2562 found in gdk.symbols.
2564 * gdk/makegdkalias.pl: New file. Perl script to generate the
2565 header containing the alias definitions for internally used
2566 exported symbols from a list of symbols.
2568 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h
2570 2004-08-09 Morten Welinder <terra@gnome.org>
2572 * gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): Fix C99ism.
2574 Mon Aug 9 15:27:01 2004 Matthias Clasen <maclas@gmx.de>
2576 * gtk/makegtkalias.pl: Also revert
2577 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API to its old status.
2579 Mon Aug 9 15:19:34 2004 Matthias Clasen <maclas@gmx.de>
2582 * gdk/gdkrgb.h: Add the exported functions
2583 gdk_rgb_colormap_ditherable(), gdk_pointer_grab_info_libgtk_only(),
2584 gdk_keyboard_grab_info_libgtk_only() to the appropriate
2587 Mon Aug 9 14:24:46 2004 Matthias Clasen <maclas@gmx.de>
2589 * gdk/x11/gdkevents-x11.c (gdk_event_send_client_message_to_all_recurse):
2592 Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de>
2594 Add hidden aliases for exported symbols which are
2595 used internally in order to get rid of many PLT
2596 entries. (#145519, Arjan van de Ven)
2598 * gtk/Makefile.am: Add rules to generate gtk.def and
2599 gtkalias.h from gtk.symbols, and make make check check
2600 the abi with abicheck.sh.
2601 (gtk_private_h_sources): Add gtkinternals.h
2602 (gtk_built_private_headers): Add gtkalias.h
2603 (gtk_extra_sources): Add gtk.symbols
2604 (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
2606 * gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
2607 The file can be processed by cpp to filter out certain
2610 * gtk/abicheck.sh: New file. Script to check the actually
2611 symbols exported from libgtk-x11.2.0.so against the symbols
2612 found in gtk.symbols.
2614 * gtk/makegtkalias.pl: New file. Perl script to generate the
2615 header containing the alias definitions for internally used
2616 exported symbols from a list of symbols.
2618 * gtk/gtkinternals.h: New file. An uninstalled header listing
2619 symbols which must be exported for some reason and do not appear
2620 in any other header.
2622 * gtk/*.c: Include gtkalias.h
2624 Mon Aug 9 11:49:46 2004 Matthias Clasen <maclas@gmx.de>
2626 * gtk/gtkmain.c: Only undef gtk_init_check and gtk_init on win32.
2628 Mon Aug 9 10:50:05 2004 Matthias Clasen <maclas@gmx.de>
2630 * gtk/gtkentry.h: Add gtk_entry_layout_index_to_text_index()
2631 and its inverse. The have always been exported and are meant
2634 Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
2636 * gtk/gtkicontheme.c (load_svg_at_size): Don't leak the
2639 Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
2641 * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
2642 leak the icon source.
2644 Sun Aug 8 23:46:20 2004 Matthias Clasen <maclas@gmx.de>
2646 * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
2647 leak a reference to the pixbufs.
2649 Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de>
2651 * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref
2652 and sink the column.
2653 (gtk_combo_box_menu_destroy): Unref the column.
2655 Sun Aug 8 23:35:00 2004 Matthias Clasen <maclas@gmx.de>
2657 * gtk/gtkdnd.c (gtk_drag_source_add_text_targets):
2658 (gtk_drag_dest_add_text_targets): Don't leak a reference
2661 Sun Aug 8 22:52:26 2004 Matthias Clasen <maclas@gmx.de>
2663 * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
2664 separators which are not backed by model rows.
2666 Sun Aug 8 11:01:23 2004 Matthias Clasen <maclas@gmx.de>
2668 * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
2671 2004-08-08 Hans Breuer <hans@breuer.org>
2673 * gtk/gtkdnd.c (gtk_drag_dest_set) : take targets into
2674 account again to allow dnd of other things than text
2676 * gdk/win32/gdkselection-win32.c : offer windows bitmap to
2677 be pasted from clipboard (makes The GIMP 2.1's
2678 "File/Acquire/Paste as New" work, only using gtk+ API)
2680 Sun Aug 8 01:32:36 2004 Matthias Clasen <maclas@gmx.de>
2682 * gtk/gtk.def: Add gtk_cell_renderer_progress_get_type.
2684 Sun Aug 8 01:29:08 2004 Matthias Clasen <maclas@gmx.de>
2686 * gtk/gtk.def: Replace duplicate gtk_tree_view_get_hover_expand
2687 by gtk_tree_view_set_hover_expand.
2689 Sun Aug 8 01:23:08 2004 Matthias Clasen <maclas@gmx.de>
2691 * gtk/gtk.def: Remove the static function gtk_menu_get_private.
2693 2004-08-07 Tor Lillqvist <tml@iki.fi>
2695 * gdk/win32/gdkkeys-win32.c (update_keymap): Don't hardcode
2696 mapping of VK_DECIMAL to GDK_KP_Decimal. Instead, let ToAsciiEx()
2697 map it to what's printed on the keypad decimal key for the current
2698 input locale (keyboard layout). (#149404)
2700 Sat Aug 7 18:19:03 2004 Matthias Clasen <maclas@gmx.de>
2702 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
2703 (shortcuts_list_create): Use GtkTreeViewRowSeparatorFunc
2704 instead of GtkCellRendererSepText. (#147864)
2706 * gtk/gtkcellrendererseptext.[hc]: Removed.
2708 * gtk/Makefile.am: Remove gtkcellrendererseptext.[hc]
2710 Sat Aug 7 18:15:15 2004 Matthias Clasen <maclas@gmx.de>
2712 * gtk/gtkcombobox.c (gtk_combo_box_menu_row_deleted):
2713 (gtk_combo_box_menu_row_inserted):
2714 (gtk_combo_box_menu_row_changed): Correctly handle
2715 insertion and deletion of separators in menu mode.
2717 2004-08-07 Tor Lillqvist <tml@iki.fi>
2719 * gdk/win32/gdkevents-win32.c (handle_configure_event,
2720 gdk_event_translate:WM_WINDOWPOSCHANGED): Add _gdk_offset_{x,y} to
2721 top-level window coordinates, not just in generated
2722 events. (#148526, Robert Ögren)
2724 Sat Aug 7 01:26:08 2004 Matthias Clasen <maclas@gmx.de>
2726 Make the column drag code a bit more robust (still scary,
2727 though). (#106992, Christian Biere)
2729 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Assert
2730 that cur_reorder is NULL here.
2732 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
2733 Reset cur_reorder to NULL, and only hide drag_highlight_window
2736 2004-08-06 Federico Mena Quintero <federico@ximian.com>
2740 * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a
2741 GtkFileChooserEntry for the file name, rather than a GtkEntry.
2742 (update_chooser_entry): Set the contents of the file chooser entry
2743 rather than the plain entry's.
2744 (gtk_file_chooser_default_set_current_folder): Set the new folder
2746 (gtk_file_chooser_default_set_current_name): Set the name on the
2748 (check_save_entry): Use the file chooser entry rather than the
2751 * gtk/gtkfilechooserentry.c
2752 (_gtk_file_chooser_entry_set_base_folder): Call
2753 gtk_file_chooser_entry_changed() so that we recompute the current
2754 folder based on the new base folder.
2756 2004-08-06 Hans Breuer <hans@breuer.org>
2758 * gdk/win32/gdkwindow-win32.c : make it compile and more
2759 similar to the X11 implementation [backward compatibility
2760 for GDK_WINDOW_TEMP, GDK_INPUT_ONLY (fixes bug #148702),
2761 use the *screen* function variants, dont reparent already
2763 (get_visible_region) : take the win32 part into account
2764 (_gdk_windowing_window_destroy) : remove from handle table
2766 * gdk/win32/gdkdisplay-win32.c : added
2767 gdk_display_(request|supports)_selection_notification ()
2768 with a currently mostly pointless implementation ;-)
2770 * gtk/gtkfilesystemwin32.c (*_to_path) : same changes as on *NIX,
2772 (gtk_file_system_win32_render_icon) : use new GTK_STOCK_DIRECTORY
2774 * gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in
2775 gtk/stock-icons/makefile.msc tests/makefile.msc : updated
2777 * gdk/gdk.def gtk/gtk.def : updated externals
2779 * tests/testiconview.c : remove unneeded dirent.h inclusion
2781 2004-08-06 Matthias Clasen <mclasen@redhat.com>
2783 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
2784 an off-by-one error. (#141809, Markku Vire)
2786 * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
2787 fix the initialization of the target list.
2789 Support XDND v5. (#10220, Owen Taylor)
2791 * gdk/x11/gdkdnd-x11.c: Record the XDND version and whether the
2792 drop was successful in the GdkDragContextPrivateX11 struct.
2793 (xdnd_finished_filter): Store the success status of the drop
2794 for an XDND version 5 interaction. For other versions, always
2795 assume the drop was successful.
2796 (xdnd_check_dest): Return the protocol version.
2797 (_gdk_drag_get_protocol_for_display): Return the protocol version.
2798 (gdk_drag_find_window_for_screen): Store the used protocol version
2799 in the GdkDragContext.
2800 (xdnd_send_enter): Send the used protocol version from the context,
2801 instead of hardwiring 3.
2802 (xdnd_enter_filter): Accept protocol versions >= 3 and store the
2803 used protocol version in the context.
2806 * gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): New function
2807 to find out whether a drop was successful.
2809 2004-07-28 Robert Ögren <gtk@roboros.com>
2811 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Set x_root
2812 and y_root in button and motion events from the tablet. (#148715)
2814 Thu Aug 5 19:58:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2816 * gtk/gtkplug.c (gtk_plug_realize): Call
2817 gdk_window_enable_synchronized_configure()
2819 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Make
2820 noop if gdk_window_enable_synchronized_configure() has not been
2823 2004-08-04 Matthias Clasen <mclasen@redhat.com>
2825 * gtk/gtkfilechooser.[hc]: Add setter and getter for the
2826 ::show-hidden property. (#145610, Jeff Franks)
2828 * tests/testiconview.c: Add buttons to select and unselect all
2829 nodes, make the popup menu actually work.
2831 * gtk/gtkiconview.c: Make GTK_SELECTION_BROWSE work as intended,
2832 let button 3 presses through to the app, to make popup menus
2835 * tests/Makefile.am: Add testiconview.
2836 * tests/testiconview.c: A test for GtkIconView
2837 * tests/gnome-textfile.png: ...which uses this image.
2839 Wed Aug 4 01:37:57 2004 Matthias Clasen <maclas@gmx.de>
2841 * gtk/gtktreeview.c:
2842 * gtk/gtktreestore.c:
2843 * gtk/gtktreemodelfilter.c:
2844 * gtk/gtknotebook.c: s/childs/children/g.
2846 Wed Aug 4 01:04:48 2004 Matthias Clasen <maclas@gmx.de>
2848 Fix #133446, noticed by Christian Persch:
2850 * gtk/gtkaction.c (gtk_action_class_init): Add a new boolean
2851 property ::visible-overflown.
2852 * gtk/gtkaction.c (gtk_action_create_menu_proxy): Don't create
2853 a menu proxy if visible_overflown is FALSE.
2855 Tue Aug 3 20:16:26 2004 Matthias Clasen <maclas@gmx.de>
2857 * gtk/gtkactiongroup.[hc]: Make the the GtkAction{Toggle,Radio,}Entry*
2858 arguments to the gtk_action_group_add_..._actions() functions const,
2859 since the most common use case is to use a static array. (142334,
2860 Mariano Suarez-Alvarez)
2862 Tue Aug 3 20:03:33 2004 Matthias Clasen <maclas@gmx.de>
2864 * gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
2865 accept paths with a leading "/ui". (#149077, David Malcolm)
2867 Tue Aug 3 19:59:29 2004 Matthias Clasen <maclas@gmx.de>
2869 * gtk/gtkiconview.c: Fix some warnings.
2871 Tue Aug 3 18:38:40 2004 Matthias Clasen <maclas@gmx.de>
2873 * gtk/gtktreemodelfilter.c: Correct the return type
2874 of gtk_tree_model_filter_get_flags(). (#149195, Morten Welinder)
2876 Tue Aug 3 18:16:55 2004 Matthias Clasen <maclas@gmx.de>
2878 Fix #149191, reported by Morten Welinder:
2880 * gtk/gtkmain.c: Include gtkclipboard.h,
2881 * gtk/gtkwidget.h: Declare _gtk_widget_grab_notify, not
2882 _gtk_widget_emit_grab_notify.
2884 Tue Aug 3 14:50:14 2004 Matthias Clasen <maclas@gmx.de>
2886 * gtk/gtkicontheme.c (add_size): Add missing parens.
2887 (#149190, Morten Welinder)
2889 Tue Aug 3 14:29:49 2004 Matthias Clasen <maclas@gmx.de>
2891 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill): Remove
2892 accidentally committed debug code.
2894 Tue Aug 3 01:19:12 2004 Matthias Clasen <maclas@gmx.de>
2896 * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): Optimize
2897 for the case that row_column and col_column are unset.
2898 (#148868, Lorenzo Gil Sánchez)
2900 Mon Aug 2 21:52:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2902 * gdk/x11/gdkwindow-x11.c (ensure_sync_counter): New
2903 function. Make sure the sync counter is recreated when a window is
2904 reparented to become a toplevel. (#148358)
2906 2004-08-02 Matthias Clasen <mclasen@redhat.com>
2908 * tests/testcombo.c: Some trees in combo boxes.
2910 * gtk/gtkcombobox.c: Rework the combo box to handle
2911 tree models. (#139582, Matt Walton)
2913 * gtk/gtktreeview.h:
2914 * gtk/gtktreeview.c:
2915 * gtk/gtktreeprivate.h: Add a new boolean property
2916 ::hover-expand and make the treeview expand/collapse rows
2917 on mouseover if it is set.
2919 * gtk/gtkiconview.h: Remove some erroneous declarations.
2921 * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
2922 crash if the displayed row is gone.
2924 2004-08-02 Morten Welinder <terra@gnome.org>
2926 * gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.
2928 Mon Aug 2 01:30:03 2004 Matthias Clasen <maclas@gmx.de>
2930 * gtk/gtktextview.[hc]:
2931 * gtk/gtkentry.[hc]: Add a new binding signal ::backspace,
2932 bind it to the backspace key, and make it pay attention
2933 to the Pango backspace_deletes_character
2934 attribute. (#119891, Noah Levitt, patch by Theppitak
2937 Mon Aug 2 01:02:57 2004 Matthias Clasen <maclas@gmx.de>
2939 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
2940 (gdk_check_wm_desktop_changed): Add missing error
2941 traps. (#149011, Thomas Leonard)
2943 Mon Aug 2 00:21:26 2004 Matthias Clasen <maclas@gmx.de>
2945 * gtk/gtktextview.c (blink_cb): Add the same warning
2946 that the blink_cb() in GtkEntry already has. (#148733)
2948 Mon Aug 2 00:12:16 2004 Matthias Clasen <maclas@gmx.de>
2950 * gtk/gtkentry.c (gtk_entry_class_init):
2951 (gtk_entry_get_alignment):
2952 (gtk_entry_set_alignment): Document the xalign property
2953 and its getter and setter as 2.4 additions. (#148978,
2956 Mon Aug 2 00:11:31 2004 Matthias Clasen <maclas@gmx.de>
2958 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
2959 * gtk/gtkactiongroup.c (gtk_action_group_class_init): Use
2960 canonical signal names in doc comments, since gtk-doc won't
2961 pick up signal docs with underscores.
2963 2004-08-01 Matthias Clasen <mclasen@redhat.com>
2965 * configure.in: Post-release version bump
2967 * === Released 2.5.1 ===
2969 Thu Jul 29 16:36:42 2004 Jonathan Blandford <jrb@redhat.com>
2971 * gtk/gtktreeprivate.h: New arguments
2973 * gtk/gtktreeview.c:
2974 (gtk_tree_view_class_init): Add key_release callback
2975 (gtk_tree_view_init): Initialize timeout handler
2976 (gtk_tree_view_unrealize): clear timeout if needed
2977 (gtk_tree_view_key_press): Typeahead support
2978 (gtk_tree_view_key_release): Not used yet -- will be needed for
2980 (gtk_tree_view_search_entry_flush_timeout): Remove typeahead entry
2982 (gtk_tree_view_ensure_interactive_directory):
2983 (gtk_tree_view_real_start_interactive_search):
2984 (gtk_tree_view_search_init):
2985 (gtk_tree_view_start_interactive_search): Typeahead support added.
2986 (gtk_tree_view_search_dialog_hide): Clear timeout and text when we
2989 Sat Jul 31 23:17:44 2004 Matthias Clasen <maclas@gmx.de>
2993 Sat Jul 31 01:13:01 2004 Matthias Clasen <maclas@gmx.de>
2997 * gtk/gtkaction.c: Use the canonical form of signal names
2998 after "notify::". Otherwise, no notification arrives.
2999 GObject should have a warning for that, really. (#148879,
3000 Lorenzo Gil Sánchez)
3002 Sat Jul 31 00:42:08 2004 Matthias Clasen <maclas@gmx.de>
3004 * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below):
3005 * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_above): Don't
3006 set both states at once. (#148789, Matthew Garrett)
3008 2004-07-30 Matthias Clasen <mclasen@redhat.com>
3010 * gtk/gtkcombobox.c: Don't forget to destroy the row separator
3011 function user data when the combo box is destroyed.
3013 2004-07-30 Matthias Clasen <mclasen@redhat.com>
3015 * gtk/gtkcombobox.h:
3016 * gtk/gtkcombobox.c: Change the api for separators to use a
3017 separator function instead of a boolean column.
3019 * tests/testcombo.c: Update to match the api change.
3021 Fri Jul 30 02:21:41 2004 Matthias Clasen <maclas@gmx.de>
3023 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
3024 Fix the positioning of the popup.
3026 Fri Jul 30 00:56:31 2004 Matthias Clasen <maclas@gmx.de>
3028 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed):
3029 Implement this in terms of gtk_combo_box_get_active_iter(),
3030 instead of gtk_combo_box_get_active().
3032 2004-07-29 Federico Mena Quintero <federico@ximian.com>
3034 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
3035 a field for an "add to shortcuts" menu item.
3036 (popup_menu_detach_cb): Clear out the field.
3037 (file_list_build_popup_menu): Only build the menu here.
3038 (file_list_update_popup_menu): Build the menu, then update the
3039 sensitivity of its items.
3040 (file_list_popup_menu): Use file_list_update_popup_menu().
3041 (bookmarks_check_add_sensitivity): Also set the sensitivity of the
3042 popup menu item. Correctly handle the case for a *single* file.
3044 (bookmarks_add_selected_folder): New helper function; code moved
3045 over from add_bookmark_button_clicked_cb().
3046 (add_bookmark_button_clicked_cb): Use the function above.
3047 (selection_check): Rather than returning a boolean value for
3048 emptiness, actually return the number of selected rows. Also,
3050 (get_selected_path): New helper function.
3052 2004-07-29 Anders Carlsson <andersca@gnome.org>
3054 * demos/gtk-demo/Makefile.am:
3055 * demos/gtk-demo/clipboard.c: (copy_button_clicked),
3056 (paste_received), (paste_button_clicked), (do_clipboard):
3059 2004-07-28 Federico Mena Quintero <federico@ximian.com>
3061 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
3062 Store signal IDs in gulongs, not guints!
3063 (gtk_file_chooser_default_hierarchy_changed): We now monitor the
3064 focus widget on our toplevel to know which widget was last focused
3065 at the time our "should_respond" method gets called.
3066 (shortcuts_activate_selected): New helper function.
3067 (shortcuts_get_selected): New helper function.
3068 (remove_selected_bookmarks): Use shortcuts_get_selected().
3069 (bookmarks_check_remove_sensitivity): Likewise.
3070 (shortcuts_reorder): Likewise.
3071 (shortcuts_activate_iter): Renamed from shortcuts_activate_item().
3072 Activate by iter, not by item number.
3073 (save_folder_combo_changed_cb): Use shortcuts_activate_iter().
3074 (shortcuts_row_activated_cb): Likewise.
3075 (gtk_file_chooser_default_should_respond): If the last focused
3076 widget on the toplevel was the shortcuts list, activate the
3079 2004-07-28 Matthias Clasen <mclasen@redhat.com>
3081 * gdk/linux-fb/gdkprivate-fb.h: Make the fb backend compile against
3082 current freetype. (#148558, Nicolas Deves)
3084 * gtk/gtktreeview.c: Replace the EXPANDER_MAX macro by
3085 ROW_HEIGHT. (#145528)
3087 * gtk/gtkuimanager.c: Warning fixes.
3089 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix
3090 prototype mismatch. (#148589, Nicolas Deves)
3092 2004-07-28 Anders Carlsson <andersca@gnome.org>
3094 * gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
3095 Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
3097 2004-07-27 Anders Carlsson <andersca@gnome.org>
3099 * demos/gtk-demo/iconview.c: (do_iconview):
3100 Change selection mode to multiple.
3102 * gdk/gdkdrawable.h:
3103 * gdk/linux-fb/gdkdrawable-fb2.c:
3104 (gdk_draw_rectangle_alpha_libgtk_only):
3105 * gdk/win32/gdkdrawable-win32.c:
3106 (gdk_draw_rectangle_alpha_libgtk_only):
3107 * gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image),
3108 (get_impl_drawable), (gdk_x11_draw_pixbuf),
3109 (gdk_draw_rectangle_alpha_libgtk_only):
3110 Add gdk_draw_rectangle_alpha_libgtk_only which uses
3111 XRenderFillRectangle on X11. It's stubbed out on the
3112 Win32 and fb backends.
3114 * gtk/gtkiconview.c:
3115 (gtk_icon_view_paint_rubberband):
3116 Use gdk_draw_rectangle_alpha_libgtk_only here.
3118 2004-07-27 Anders Carlsson <andersca@gnome.org>
3120 * gtk/gtkaboutdialog.c: (gtk_about_dialog_init),
3121 (text_view_style_set), (add_credits_page),
3122 (display_credits_dialog), (display_license_dialog):
3123 Remove dialog separators, fix text view background setting,
3124 use Close buttons instead of OK buttons.
3126 2004-07-27 Matthias Clasen <mclasen@redhat.com>
3128 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
3129 Add a frame around the C-f popup to stop it from merging visually
3130 in whatever is underneath.
3132 * gtk/gtkcombobox.h:
3133 * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New
3134 function necessary to make GtkComboBox accessible. (#132847,
3137 Tue Jul 27 02:34:06 2004 Matthias Clasen <maclas@gmx.de>
3139 * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless
3140 windows when disposing them. (#133231, Michael Natterer)
3142 2004-07-26 Matthias Clasen <mclasen@redhat.com>
3144 * gtk/gtklabel.c (gtk_label_class_init): Expand the documentation
3145 for GtkLabel::ellipsize.
3147 Mon Jul 26 00:38:27 2004 Matthias Clasen <maclas@gmx.de>
3149 Make the GtkComboBox in list mode scroll if the list is too
3150 large to fit in the popup. (#135543)
3152 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a
3153 o scrolled window to the popup in list mode.
3154 (gtk_combo_box_list_position): Calculate the height of the
3155 popup so that it fits on the screen, set the scrollbar policy
3156 of the scrolled window appropriately.
3157 (gtk_combo_box_popup): Use the height calculated by
3158 gtk_combo_box_list_position().
3159 (gtk_combo_box_remeasure): Don't add unnecessary padding.
3160 (gtk_combo_box_size_request): But add the focus with here.
3161 (gtk_combo_box_list_setup): Connect to enter notify on the
3162 popup window to activate auto scrolling.
3163 (gtk_combo_box_list_enter_notify): Activate auto scrolling.
3164 (gtk_combo_box_list_button_pressed): Setup a timeout for
3166 (gtk_combo_box_list_scroll_timeout): Timeout function for
3168 (gtk_combo_box_list_auto_scroll): Scroll the list when the
3169 pointer leaves the window.
3171 Sun Jul 25 19:51:17 2004 Matthias Clasen <maclas@gmx.de>
3173 * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll
3174 events from the content of the page. (#148409, Gabriel
3177 Sat Jul 24 21:38:12 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3179 * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
3180 add a tool item to a toolbar using the deprecated API.
3182 Fri Jul 23 13:04:10 2004 Matthias Clasen <maclas@gmx.de>
3184 * gtk/gtkdnd.c (gtk_drag_dest_set): Revert the change to
3185 initialize target_list to an empty list instead of NULL,
3186 since it broke tree dnd. (#148215, Ernst Persson)
3188 * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
3189 * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead
3190 handle target list being NULL here.
3192 2004-07-23 Dafydd Harries <daf@muse.19inch.net>
3194 * gtk/gtkradioaction.c:
3195 * gtk/gtkradiobutton.c:
3198 Improve various translatable messages. (#137616)
3200 Fri Jul 23 11:11:10 2004 Matthias Clasen <maclas@gmx.de>
3202 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
3203 Align the entry in the same way as the cell. (#136749)
3205 Fri Jul 23 11:01:00 2004 Matthias Clasen <maclas@gmx.de>
3207 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
3208 Don't iterate too far up. (#147965, Olivier Sessink)
3210 Fri Jul 23 10:28:43 2004 Matthias Clasen <maclas@gmx.de>
3212 * gtk/gtktreeview.c (gtk_tree_view_finalize):
3213 * gtk/gtkradioaction.c (gtk_radio_action_finalize):
3214 * gtk/gtkfontsel.c (gtk_font_selection_finalize):
3215 * gtk/gtkcellview.c (gtk_cell_view_finalize):
3216 * gtk/gtkcalendar.c (gtk_calendar_finalize):
3217 * gtk/gtkactiongroup.c (gtk_action_group_finalize): Remove
3218 unnecessary checks. (#148175, Morten Welinder)
3220 Thu Jul 22 01:42:16 2004 Matthias Clasen <maclas@gmx.de>
3222 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3223 Add a new :ellipsize property which controls ellipsization of the
3224 rendered text. (#144835, Vincent Untz, patch by Jonathan Blandford
3225 and Anders Carlsson)
3227 * gtk/gtkfilechooserdefault.c (create_file_list): Use ellipsization
3228 for the name column.
3230 Thu Jul 22 01:21:28 2004 Matthias Clasen <maclas@gmx.de>
3232 * gtk/gtkfontsel.c (gtk_font_selection_init): Add additional
3233 accessability relations. (#141804, Padraig O'Briain)
3235 Thu Jul 22 01:16:23 2004 Matthias Clasen <maclas@gmx.de>
3237 * gtk/gtkcombobox.c: Avoid some warnings.
3239 Thu Jul 22 01:05:16 2004 Matthias Clasen <maclas@gmx.de>
3241 * configure.in: Require Pango 1.5.1 (for ellipsisation).
3244 * gtk/gtklabel.c (gtk_label_class_init): Add a new :ellipsize
3245 property which controls ellipsization of the label. (#125250,
3246 Tim Van Wassenhove, patch by James M. Cape)
3248 * tests/testellipsise.c: Simple test for ellipsizsation.
3250 Wed Jul 21 22:46:27 2004 Matthias Clasen <maclas@gmx.de>
3252 * gtk/gtkcombobox.c (gtk_combo_box_new_text): Don't leak the
3253 list store. (#148134, Crispin Flowerday)
3255 Wed Jul 21 22:35:47 2004 Matthias Clasen <maclas@gmx.de>
3257 * gtk/gtkcombobox.c (gtk_combo_box_destroy): Don't leak the
3258 menu. (#148110, Tommi Komulainen)
3260 Wed Jul 21 22:24:10 2004 Matthias Clasen <maclas@gmx.de>
3262 * gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
3263 tree model and tree row reference. (#148125, Crispin Flowerday)
3265 Wed Jul 21 22:17:06 2004 Matthias Clasen <maclas@gmx.de>
3267 * tests/testcombo.c (main): Don't leak models. (#148128,
3270 Wed Jul 21 21:26:08 2004 Matthias Clasen <maclas@gmx.de>
3272 * gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
3273 the adjustments. (#148089, Tommi Komulainen)
3275 Wed Jul 21 21:20:21 2004 Matthias Clasen <maclas@gmx.de>
3277 * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
3278 the adjustments. (#148073, Tommi Komulainen)
3280 Wed Jul 21 21:04:50 2004 Matthias Clasen <maclas@gmx.de>
3282 * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
3283 arrow. (#148064, Tommi Komulainen)
3285 2004-07-21 Matthias Clasen <mclasen@redhat.com>
3287 * gtk/gtkcalendar.c: Use the new text target functionality
3288 in GtkTargetList instead of hardcoding a subset of text targets.
3290 Tue Jul 20 23:11:23 2004 Matthias Clasen <maclas@gmx.de>
3292 * gdk/x11/gdkevents-x11.c: Hook up gtk-menu-bar-accel to
3293 an XSetting, Gtk/MenuBarAccel. (#120859, Scott James Remnant)
3295 Tue Jul 20 22:26:29 2004 Matthias Clasen <maclas@gmx.de>
3297 * gtk/gtkfilechooserutils.h:
3298 * gtk/gtktoolbutton.c:
3300 * gtk/gtkicontheme.c:
3301 * gtk/gtkcalendar.c:
3302 * demos/gtk-demo/ui_manager.c:
3303 * demos/gtk-demo/appwindow.c: Remove trailing commas
3304 from enumerations. (#148035)
3306 2004-07-20 Federico Mena Quintero <federico@ximian.com>
3308 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Fix the
3309 documentation comment for the editing-started signal.
3311 * gtk/gtkmarshalers.list: Added VOID:OBJECT,STRING for
3312 GtkCellRenderer::editing-started.
3314 2004-07-20 Matthias Clasen <mclasen@redhat.com>
3316 * tests/testactions.c (main):
3317 * tests/testmerge.c (main): Add some refcount debugging.
3319 * gtk/gtkuimanager.c (update_node, free_node): Ref an sink
3320 all proxies, so that we can properly clean up floating proxies
3321 which the app didn't adopt. (#147926, Tommi Komulainen)
3323 2004-07-20 Matthias Clasen <mclasen@redhat.com>
3325 Allow custom initialization of cell editables. (#147221)
3327 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass):
3328 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a
3329 ::editing-started signal as a hook for setting up the
3331 (gtk_cell_renderer_start_editing): ...and emit it here.
3333 Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
3335 * gtk/gtktreeview.c (gtk_tree_view_button_press): Set drag_pos
3336 before grabbing the focus, since we may reenter into
3337 gtk_tree_view_motion_resize_column() which requires drag_pos
3338 to be set. (#147913, Guilherme Salgado, patch by John Finlay)
3340 Mon Jul 19 23:51:50 2004 Matthias Clasen <maclas@gmx.de>
3342 * gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
3343 use uninitialized node pointer. (#147911, Peter Zelezny)
3345 Tue Jul 20 04:34:56 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3347 * configure.in: Bump version number
3349 Sun Jul 18 17:21:10 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3351 * === Released 2.5.0 ===
3355 * tests/testcombo.c: Fix compilation
3357 2004-07-19 Matthias Clasen <mclasen@redhat.com>
3359 * gtk/gtkentrycompletion.c (gtk_entry_completion_set_popup_completion):
3362 2004-07-19 Matthias Clasen <mclasen@redhat.com>
3364 Make GtkCellView public, since people seem to have uses for it,
3365 it is clean API and we were just conservative in not making it
3366 public initially. At the same time, get rid of GtkCellViewMenuItem,
3367 which doesn't have any function which can't be served by a
3368 GtkMenuItem with a GtkCellView child. (#136637, Padraig O'Briain)
3370 * gtk/gtk.h: Include gtkcellview.h
3372 * gtk/Makefile.am (gtk_public_h_sources):
3374 * gtk/Makefile.am (gtk_private_h_sources):
3375 (gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
3376 * gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
3377 GtkMenuItem with a GtkCellView child.
3379 * gtk/gtkcellviewmenuitem.[hc]: Removed.
3381 2004-07-19 Matthias Clasen <mclasen@redhat.com>
3383 Support inline autocompletion in entries (#135953)
3385 * gtk/gtkentryprivate.h:
3386 * gtk/gtkentrycompletion.h:
3387 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3388 Add a new signal ::insert-prefix which can be used to override
3389 the default inline-completion behaviour. Add two new boolean
3390 properties, :popup_completion and :inline_completion which
3391 determine how the possible completions should be presented.
3392 (gtk_entry_completion_insert_prefix): New function to request
3395 * gtk/gtkentry.c: Add the necessary glue for inline completion.
3397 Sun Jul 18 15:28:24 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3399 * gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
3400 empty target list if targets is NULL.
3402 * configure.in: Add check for X11/extensions/sync.h. (#147416,
3405 Sun Jul 18 01:24:31 2004 Matthias Clasen <maclas@gmx.de>
3407 * NEWS: Updates for 2.5.0
3409 Sat Jul 17 23:11:04 2004 Matthias Clasen <maclas@gmx.de>
3411 * gtk/gtkiconview.h:
3412 * gtk/gtkiconview.c (gtk_icon_view_class_init):
3413 * gtk/gtkiconview.c (gtk_icon_view_set_orientation):
3414 * gtk/gtkiconview.c (gtk_icon_view_get_orientation):
3415 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size):
3416 * gtk/gtkiconview.c (gtk_icon_view_layout_single_row):
3417 Add a new :orientation property to determine whether text
3418 is positioned below or beside icons. (#147463)
3420 Sat Jul 17 23:03:30 2004 Matthias Clasen <maclas@gmx.de>
3422 * gtk/gtkiconview.c (gtk_icon_view_paint_item):
3423 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size):
3424 * gtk/gtkiconview.c (gtk_icon_view_layout_single_row): Draw
3425 focus indicator outside the selection, respect focus
3426 line width. (#147460)
3428 Sat Jul 17 01:17:33 2004 Matthias Clasen <maclas@gmx.de>
3430 * gdk/x11/gdkdnd-x11.c (xdnd_check_dest): Fix a warning
3433 Sat Jul 17 00:48:27 2004 Matthias Clasen <maclas@gmx.de>
3435 Support text/plain selection target (#55117, Owen Taylor)
3437 * gtk/gtkselection.h:
3439 * gtk/gtkselection.c (gtk_target_list_add_text_targets):
3440 * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
3441 * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
3442 functions to facilitate handling of text targets.
3445 * gtk/gtktextview.c: Use the new text target handling
3446 functions instead of hardwiring the list of supported
3447 text targets everywhere.
3449 * gtk/gtkselection.c (gtk_selection_data_get_text):
3450 (gtk_selection_data_set_text):
3451 Support the targets text/plain, text/plain?charset=utf-8
3452 and text/plain?charset=<LOCALE-CHARSET> as outlined in
3454 For text/plain send only ASCII, but accept 8-bit text
3455 and treat it as ISO-8859-1 as specified by the Xdnd spec.
3456 Always send CRLF terminators. Accept either and convert
3457 into the native terminator for the platform.
3459 Fri Jul 16 23:20:34 2004 Matthias Clasen <maclas@gmx.de>
3461 Support themed window icons. (#92346, Calum Benson)
3463 * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): New
3464 function to obtain information about the sizes in which an
3468 * gtk/gtkwindow.c (gtk_window_class_init):
3469 (gtk_window_set_icon_name):
3470 (gtk_window_get_icon_name): Add an "icon_name" property
3471 (gtk_window_set_default_icon_name): ...and a default icon name.
3472 (icon_list_from_theme):
3473 (update_themed_icon): New auxiliary functions to create a
3474 list of all available sizes of a themed icon and update the
3475 window icon list from it.
3477 2004-07-16 Matthias Clasen <mclasen@redhat.com>
3479 * gtk/gtkcombobox.c (gtk_combo_box_scroll_event): Make
3480 scrolling work if no item is selected.
3481 (gtk_cell_editable_key_press): Don't eat space.
3483 Add a combo box cell renderer (#139347, Lorenzo Gil Sanchez)
3485 * gtk/gtkcellrenderercombo.[hc]: New Files.
3488 * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources):
3491 * gtk/gtkcombobox.[hc]: Implement GtkCellEditable, add a
3492 :has-frame property for suppressing the frame around
3493 the child and redo the size allocation logic to take
3494 focus width into account.
3496 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init):
3497 Acknowledge the GtkComboBox:has-frame property and make
3498 the entry fill its allocation vertically.
3500 * gtk/gtkmarshalers.list: Add BOOLEAN:STRING.
3502 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Queue
3503 a draw here to keep non-widget windows from leaving
3506 2004-07-16 Matthias Clasen <mclasen@redhat.com>
3508 * gtk/gtkcombobox.c (gtk_combo_box_forall): Don't iterate
3509 multiple times over some of the children.
3511 Thu Jul 15 22:19:40 2004 Matthias Clasen <maclas@gmx.de>
3513 Fix #60128, #58307, #144706:
3515 * gtk/gtkstyle.c (gtk_style_real_copy): Handle references
3516 to bg_pixmaps properly.
3517 (gtk_style_real_unrealize): Don't keep dangling references
3519 (gtk_style_attach): Split the loop into two loops, first
3520 looking for a matching style, then for an empty one.
3521 (gtk_style_finalize):
3522 (gtk_style_duplicate): Add comments explaining the handling
3525 Thu Jul 15 20:31:28 2004 Matthias Clasen <maclas@gmx.de>
3527 * gtk/gtkspinbutton.c (start_spinning): Install the timeout
3528 before changing the value, so that a ::value_changed handler
3529 has a chance to remove it. (#122427, Elke Meier)
3531 Thu Jul 15 19:20:05 2004 Matthias Clasen <maclas@gmx.de>
3533 * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale):
3534 * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
3535 instead of 'can not' in messages. (#144226, Morten Welinder)
3537 2004-07-15 Matthias Clasen <mclasen@redhat.com>
3539 * gtk/gtktreeview.c (gtk_tree_view_class_init):
3540 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
3541 Correct the declared default values of several properties
3542 to be in sync with the actual initial values.
3544 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
3545 Make spacing a property, correct the declared default values
3546 of several properties to be in sync with the actual initial
3547 values. (#147654, Matthias Clasen)
3549 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Don't reparent
3550 back to menu->toplevel if it is already gone because we're
3551 shutting down. (#147656, John Cupitt)
3553 2004-07-14 Federico Mena Quintero <federico@ximian.com>
3557 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw a focus
3558 indicator along the edge of the bin_window when the tree is empty.
3559 (grab_focus_and_unset_draw_keyfocus): New helper function.
3560 (gtk_tree_view_button_press): Remove a bit of superfluous code.
3561 Use the helper function to save on duplicated code.
3562 (gtk_tree_view_button_press): Grab the focus if the tree is empty.
3563 (gtk_tree_view_focus): Allow focusing into an empty tree.
3565 2004-07-14 Matthias Clasen <mclasen@redhat.com>
3567 * gtk/gtkaboutdialog.c (add_credits_page): Don't use
3568 gcc extensions for the ternary ?: operator. (#147590,
3571 2004-07-14 Federico Mena Quintero <federico@ximian.com>
3573 Fix #144405, patch by Padraig O'Briain <padraig.obriain@sun.com>:
3575 * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Set the
3576 accessible object name for the tree view.
3577 (create_file_list): Likewise.
3579 Tue Jul 13 21:53:08 2004 Matthias Clasen <maclas@gmx.de>
3581 * gtk/gtkicontheme.c (free_unthemed_icon): Don't leak
3582 no_svg_filename. (#147399, Kjartan Maraas)
3584 2004-07-13 Matthias Clasen <mclasen@redhat.com>
3586 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes):
3587 Make this work in RTL context.
3589 2004-07-13 Federico Mena Quintero <federico@ximian.com>
3591 * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Set a
3592 busy cursor while mounting the volume. Also, ref the chooser
3593 while mounting, as we may re-enter. Fixes #139376.
3595 2004-07-13 Matthias Clasen <mclasen@redhat.com>
3597 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed):
3598 Prepare to handle composite implementations of
3599 GtkCellEditable, but recursively poking at
3600 allocation->y (hack stolen from GtkCList).
3601 (check_expander_max): Tweak the warning.
3603 * gtk/gtkmain.h: Add gtk_parse_args(), its a public
3604 function. (#147476, Owen Taylor)
3606 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't
3607 crash if unrealized.
3609 Tue Jul 13 01:50:06 2004 Matthias Clasen <maclas@gmx.de>
3611 * gtk/gtkaboutdialog.c (display_credits_dialog): Don't
3612 display untranslated translator credits.
3614 Tue Jul 13 01:15:05 2004 Matthias Clasen <maclas@gmx.de>
3616 * gtk/gtkiconview.c: Some documentation updates.
3618 Tue Jul 13 00:40:29 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3620 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Do an
3621 empty begin_paint_region()/end_paint() for windows without
3624 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_unset_bg,
3625 _gdk_x11_window_tmp_reset_bg): Remove checks for EXPOSURE_MASK.
3627 2004-07-12 Matthias Clasen <mclasen@redhat.com>
3629 * demos/gtk-demo/appwindow.c: Use a GtkAboutDialog.
3631 * gtk/gtkaboutdialog.h:
3632 * gtk/gtkaboutdialog.c: New widget: GtkAboutDialog.
3634 * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources):
3635 * gtk/gtk.h: Add GtkAboutDialog. (#109435, Paolo Borelli,
3636 patch by Matthias Clasen)
3638 * gtk/gtkrc.c (_gtk_rc_init): Apply the gtk-default-menu-item-style
3639 to cell view menu items as well. (#147405, John Cupitt)
3641 * gtk/gtkentrycompletion.c: Warning fixes. (#147420,
3644 * gtk/gtkcombobox.c (gtk_combo_box_destroy): Pop down
3645 first. (#147399, John Cupitt)
3647 Mon Jul 12 01:56:26 2004 Matthias Clasen <maclas@gmx.de>
3649 * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
3650 Include the update_counter check in the HAVE_XSYNC condition,
3651 since update_counter isn't present in the !HAVE_XSYNC case.
3653 Mon Jul 12 00:52:04 2004 Matthias Clasen <maclas@gmx.de>
3655 * gtk/stock-icons/Makefile.am:
3656 * gtk/stock-icons/stock_about_{16,24}.png:
3657 * gtk/stock-icons/stock_connect_{16,24}.png:
3658 * gtk/stock-icons/stock_disconnect_{16,24}.png:
3659 * gtk/stock-icons/stock_edit_{16,24}.png:
3660 * gtk/stock-icons/stock_media_forward_{16,24}.png:
3661 * gtk/stock-icons/stock_media_next_{16,24}.png:
3662 * gtk/stock-icons/stock_media_pause_{16,24}.png:
3663 * gtk/stock-icons/stock_media_play_{16,24}.png:
3664 * gtk/stock-icons/stock_media_previous_{16,24}.png:
3665 * gtk/stock-icons/stock_media_record_{16,24}.png:
3666 * gtk/stock-icons/stock_media_rewind_{16,24}.png:
3667 * gtk/stock-icons/stock_media_stop_{16,24}.png:
3668 * gtk/gtkstock.h (GTK_STOCK_ABOUT):
3669 * gtk/gtkstock.h (GTK_STOCK_CONNECT):
3670 * gtk/gtkstock.h (GTK_STOCK_DISCONNECT):
3671 * gtk/gtkstock.h (GTK_STOCK_EDIT):
3672 * gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD):
3673 * gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT):
3674 * gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE):
3675 * gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY):
3676 * gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS):
3677 * gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD):
3678 * gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND):
3679 * gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP):
3680 * gtk/gtkiconfactory.c (get_default_icons):
3681 * gtk/gtkstock.c (builtin_items): Add a number of new stock
3682 items. (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte,
3685 Sun Jul 11 15:24:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3687 Bug 143330, support update counter spec.
3689 * configure.in: Add check for the Sync extension
3691 * gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
3692 gdk_window_configure_finished()
3694 * gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
3695 * gtk/gtkwindow.c (gtk_window_realize): Automatically enable
3696 synchronized configures.
3698 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
3699 and pending counter values.
3701 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
3702 * gdk/x11/gdkwindow-x11.c
3703 (gdk_window_enable_synchronized_configure): New function.
3704 * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
3705 Delete update counter.
3706 * gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
3707 _NET_WM_SYNC_REQUEST when Sync is available
3709 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
3710 _NET_WM_SYNC_REQUEST messages
3711 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
3712 value for use by gdk_window_configure_finished() when receiving
3715 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
3716 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
3717 extension is available
3718 * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
3719 _NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
3721 * gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
3722 stubs for enable_synchronized_configure() and configure_finished()
3724 Sat Jul 10 23:35:13 2004 Matthias Clasen <maclas@gmx.de>
3726 * gtk/gtkentry.c (paste_received): Make middle-button pasting
3727 work as expected inside the entry. (#116789, Scott Bronson)
3729 Sat Jul 10 22:13:53 2004 Matthias Clasen <maclas@gmx.de>
3731 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): Update
3732 clipboards. (#142805, Mikael Hallendal)
3734 Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3736 * gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
3737 code. Just use &paned->handle_pos.
3739 Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3743 * gtk/gtknotebook.c (gtk_notebook_size_allocate): Remove an
3744 unnecessary redraw..
3746 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Remove some
3749 Sat Jul 10 01:33:25 2004 Matthias Clasen <maclas@gmx.de>
3751 * docs/RELEASE-HOWTO: Updates.
3753 Sat Jul 10 01:55:29 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3755 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg):
3756 Insert checks for root window. The root window is never mapped.
3758 Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3760 * gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
3761 * gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
3764 Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3768 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg):
3769 New functions that can do a recursive unset/reset bg.
3771 * gdk/x11/gdkgeometry-x11.c: Remove
3772 gdk_window_tmp_{un|re}set_bg().
3774 * gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions
3775 called before and after unmapping a window. They unset the
3776 background of all other windows to prevent flicker from the X
3777 server repainting the background. post_unmap() also invalidates
3778 the parent of the unmapped window to draw it without roundtrips.
3780 * gdk/x11/gdkwindow-x11.c (show_window_internal): Unset
3781 background of newly mapped windows and all desendants to prevent
3784 Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
3786 * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
3787 statements to avoid gcc warnings about not all enum values handled.
3789 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
3792 Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3796 * gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an
3797 "override_redirect" bit.
3799 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here.
3801 * gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize,
3802 gdk_window_move_resize):
3803 Update the local size/position cache
3804 immediately for override redirect windows.
3806 * gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate
3807 newly mapped child and override redirect windows.
3809 2004-07-09 Federico Mena Quintero <federico@ximian.com>
3813 * gtk/gtkfilesystemunix.c (get_fallback_icon): New helper
3814 function, fetches a stock icon as a fallback.
3815 (gtk_file_system_unix_volume_render_icon): Fall back to a stock
3817 (gtk_file_system_unix_render_icon): Fall back to a stock icon.
3818 Use helper functions rather than being a mega-function.
3819 (get_icon_name_for_directory): Renamed from
3820 get_icon_for_directory().
3821 (get_icon_type_from_path): New helper function; code pulled out
3822 from gtk_file_system_unix_render_icon().
3823 (get_special_icon): Likewise.
3824 (get_icon_for_mime_type): Likewise.
3826 2004-07-09 Federico Mena Quintero <federico@ximian.com>
3828 * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
3831 2004-07-09 Matthias Clasen <mclasen@redhat.com>
3833 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the
3834 requisition of the widget instead of relying on the style
3835 drawing function to supply the size of the drawable. (#146531)
3837 2004-07-09 Matthias Clasen <mclasen@redhat.com>
3839 Make GtkEntry work harder to protect passwords: (#143955,
3842 * gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
3843 to clear the password even if the widget is leaked.
3845 * gtk/gtkentry.c (gtk_entry_real_delete_text):
3846 * gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
3849 * gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
3850 the old memory instead of just reallocating it.
3852 * gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
3853 direction information for passwords.
3855 2004-07-09 Matthias Clasen <mclasen@redhat.com>
3857 * gtk/gtkstyle.c: Fix some cases where style functions were
3858 not handling widget == NULL properly. (#146282)
3860 Thu Jul 8 22:38:58 2004 Matthias Clasen <maclas@gmx.de>
3862 * gtk/gtktreeview.c: Improve the EXPANDER_MAX warning.
3864 2004-07-08 Federico Mena Quintero <federico@ximian.com>
3868 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
3869 GError argument. Do check for errors when getting the
3870 GtkFileFolder: get the folder and read the children before
3871 actually creating the model. Removed obsolete code that handled
3872 roots-changed on the file system.
3873 (file_model_node_get_info): Assert that we don't reach the old
3874 case to display file system roots.
3875 (roots_changed_callback): Removed.
3877 * gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
3878 argument, and a boolean return value. Return an error if we
3879 cannot create the file system model. On error, set a NULL model
3881 (gtk_file_chooser_default_set_current_folder): Use the error value
3882 from set_list_model().
3883 (gtk_file_chooser_default_set_property): Set the show_hidden
3884 property only if the browse_files_model exists.
3885 (gtk_file_chooser_default_unselect_path): Only operate if the
3886 browse_files_model exists.
3887 (check_preview_change): Check whether we have the sort_model.
3888 (change_folder_and_display_error): Copy the path we get passed
3889 before using it. There's a comment in there that explains why we
3890 need to copy it; basically, if the passed path belongs to the
3891 model, the model may go away in the middle of this function and
3892 we'll be left with a dangling pointer.
3893 (install_list_model_filter): Assert that the model is not NULL.
3894 (set_current_filter): Check whether the model exists.
3896 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
3897 g_return_if_fail if the model is NULL.
3898 (gtk_tree_selection_get_selected_rows): Likewise.
3899 (gtk_tree_selection_count_selected_rows): Likewise.
3900 (gtk_tree_selection_selected_foreach): Likewise.
3901 (gtk_tree_selection_path_is_selected): Likewise; rather just
3903 (gtk_tree_selection_select_all): Likewise.
3904 (gtk_tree_selection_unselect_all): Likewise.
3905 (gtk_tree_selection_select_range): Do g_return_if_fail() if the
3907 (gtk_tree_selection_unselect_range): Likewise.
3909 * gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
3910 g_dir_open() fails: there is no need to set the error ourselves,
3911 as g_dir_open() already does it.
3913 2004-07-08 Matthias Clasen <mclasen@redhat.com>
3915 * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow
3916 to restore the default search function. (#145365, John Finlay)
3918 * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
3919 references to the drag context. (#144324, Alex Larsson)
3921 Thu Jul 8 00:31:34 2004 Matthias Clasen <maclas@gmx.de>
3923 * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
3924 when a new model is set. (#145566, Dmitry M. Shatrov)
3926 Wed Jul 7 23:44:32 2004 Matthias Clasen <maclas@gmx.de>
3928 * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
3929 are properly aligned for gdk_pixbuf_saturate_and_pixelate(),
3930 in order to avoid rendering artifacts from misaligned
3931 pixelation patterns. (#145585, Felipe Heidrich, Billy Biggs)
3933 2004-07-07 Matthias Clasen <mclasen@redhat.com>
3935 * gtk/gtktreeview.c:
3936 * gtk/gtktreeview.h: Small documentation fixes.
3938 2004-07-07 Matthias Clasen <mclasen@redhat.com>
3940 Support separators in combo boxes and more generally in tree
3943 * gtk/gtkcombobox.h:
3944 * gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
3945 * gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
3946 Add a ::row-separator-column property with getter and setter,
3947 which can indicate a boolean model column to determine which
3948 rows are separators.
3950 * gtk/gtkcombobox.c: Display separator rows as separator menu
3951 items in menu mode, and by using the new treeview separator
3952 functionality in list mode.
3954 * gtk/gtktreeview.h:
3955 * gtk/gtktreeprivate.h:
3956 * gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
3957 * gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
3958 Add a callback to determine whether a row is a separator.
3960 * gtk/gtktreeview.c (gtk_tree_view_bin_expose):
3961 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
3962 * gtk/gtktreeview.c (validate_row): Use the new callback
3963 to determine whether a row is a separator, and draw it
3964 as a separator then. Since separators should take up less
3965 vertical space than regular rows, this requires removing
3966 the redundant MAX(...,expander_size) calls which appear in
3967 many places. Instead, the MAX() is now only done in
3968 validate_row(), and only if the row is not a separator.
3969 To catch possible side effects of this intrusive change,
3970 I have left EXPANDER_MAX() calls in place of the MAX() calls
3971 which will emit a warning if something breaks. They should
3972 be removed before 2.6.
3974 * gtk/gtktreeselection.c (row_is_selectable): Don't let
3975 separator rows be selected.
3977 * tests/testcombo.c (create_blaat): Add a separator column.
3979 Tue Jul 6 22:58:00 2004 Matthias Clasen <maclas@gmx.de>
3981 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix
3982 a 64bit alignment issue. (#144302, Sunil)
3984 2004-07-07 Tor Lillqvist <tml@iki.fi>
3986 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
3987 * gdk/win32/gdkfont-win32.c (gdk_text_extents)
3988 * gdk/win32/gdkproperty-win32.c (find_common_locale,
3989 gdk_property_change)
3990 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
3991 g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
3994 * gdk/win32/gdkglobals-win32.c
3995 * gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
3996 * gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
3997 atom. Initialize it. Declare it. Drop the variable for the
4000 * gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
4001 function is supposed to return the string in the locale's charset
4002 and encoding. Use g_convert().
4004 (gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
4005 string in the locale's charset. Use g_convert().
4007 (_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
4008 Delete. The UCS-2 functions didn't handle surrogates anyway. Use
4009 GLib's UTF-16 functions instead. Windows uses UTF-16.
4011 * gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
4012 functions mentioned above.
4014 * gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
4015 also if the string is of type STRING, i.e. ISO-8859-1, and the
4016 current codepage is 1252, and contains no C1 chars. Accept
4019 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
4020 Mark as static. When storing STRING data, convert to
4022 (gdk_selection_owner_set_for_display): Now that STRING is always
4023 ISO-8859-1, use UTF8_STRING when sending the selection request
4026 (gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
4029 (gdk_text_property_to_text_list_for_display): Make work more like
4030 X11 version. Do obey the encoding parameter.
4032 (gdk_string_to_compound_text_for_display,
4033 gdk_utf8_to_compound_text_for_display): Don't even pretend
4034 supporting COMPOUND_TEXT.
4036 (gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
4038 (sanitize_utf8): Zero-terminate string.
4040 2004-07-06 Matthias Clasen <mclasen@redhat.com>
4042 * gtk/stock-icons/Makefile.am: Add stock_file_16.png,
4043 stock_file_24.png, stock_directory_16.png and stock_directory_24.png.
4045 * gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY):
4046 * gtk/gtkiconfactory.c (get_default_icons): New stock icons as
4047 fallbacks for gtkfilechooser. Currently these are the same images
4048 as the "new" and "open" items...
4050 Tue Jul 6 10:00:22 2004 Jonathan Blandford <jrb@redhat.com>
4052 Fix for #136496, Pawel Salek:
4054 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
4055 a node when it changes in fixed_height mode.
4057 (gtk_tree_view_node_queue_redraw): new function to queue a redraw
4060 2004-07-06 Matthias Clasen <mclasen@redhat.com>
4062 * gtk/gtkmenu.c (gtk_menu_position): Make sure
4063 private->monitor_num is a valid monitor number before
4064 using it. (#139187, Michael Natterer)
4066 Tue Jul 6 02:00:28 2004 Matthias Clasen <maclas@gmx.de>
4068 * gtk/gtkfilechooserdefault.c (popup_position_func):
4069 * gtk/gtkentry.c (popup_position_func):
4070 * gtk/gtktextview.c (popup_position_func): Improve positioning
4071 of keyboard-activated menus with Xinerama.
4073 Tue Jul 6 00:29:03 2004 Matthias Clasen <maclas@gmx.de>
4075 * gtk/gtkuimanager.c (do_updates):
4076 (do_updates_idle): Only call GDK_THREADS_ENTER() / _LEAVE()
4077 when called from an idle handler. (#145429, Jan-Marek Glogowski)
4079 Mon Jul 5 23:47:38 2004 Matthias Clasen <maclas@gmx.de>
4081 * gtk/gtkfilechooserutils.c (delegate_notify): Use
4082 the less efficient g_object_interface_find_property () instead
4083 of the param_id range check, since the GParamSpecs we're
4084 dealing with are the overridden onces on the interface, whose
4085 param_id is always zero. (#145312, Alex Roitman, fix proposed
4088 2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
4090 * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
4091 virtual method of GtkContainer.
4092 (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
4093 method slot of the container class.
4095 2004-07-05 Anders Carlsson <andersca@gnome.org>
4097 * gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
4098 * gtk/gtkiconview.h:
4099 Use gint, not int in gtk_icon_view_set_markup_column,
4102 2004-07-05 Anders Carlsson <andersca@gnome.org>
4104 * gtk/gtkiconview.c: (gtk_icon_view_class_init),
4105 (gtk_icon_view_real_select_cursor_item),
4106 (gtk_icon_view_real_activate_cursor_item):
4107 * gtk/gtkiconview.h:
4108 Add an "activate_cursor_item" action signal
4109 and bind it to the return key.
4111 2004-07-04 Anders Carlsson <andersca@gnome.org>
4113 * demos/gtk-demo/Makefile.am:
4114 * demos/gtk-demo/gnome-fs-directory.png:
4115 * demos/gtk-demo/gnome-fs-regular.png:
4116 * demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store),
4117 (sort_func), (create_store), (item_activated), (up_clicked),
4118 (home_clicked), (do_iconview):
4119 Add a simple file browser based on the icon view.
4122 Add gtk/gtkiconview.h
4124 * gtk/gtkiconview.c: (gtk_icon_view_layout),
4125 (gtk_icon_view_item_new), (gtk_icon_view_item_activated):
4126 Fix a few bugs discovered while writing the demo.
4128 2004-07-04 Anders Carlsson <andersca@gnome.org>
4132 * gtk/gtkiconview.h:
4133 Add GtkIconView to the build, remove debugging output.
4135 Sun Jul 4 01:29:35 2004 Matthias Clasen <maclas@gmx.de>
4137 * gtk/gtkcalendar.c (gtk_calendar_drag_data_get):
4138 (gtk_calendar_drag_data_received): Fix off-by-one error.
4139 GDate month is one-based and GtkCalendar month is zero-based.
4140 (#145134, William Jon McCann)
4142 Sun Jul 4 01:11:07 2004 Matthias Clasen <maclas@gmx.de>
4144 * gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if
4145 somebody tries to move a node after itself in a list of
4146 length 1. (#145291, Sampo Nurmentaus)
4148 Sat Jul 3 23:43:23 2004 Matthias Clasen <maclas@gmx.de>
4150 * docs/faq/gtk-faq.sgml:
4151 * gtk/gtkwindow.c: Fix links to www.freedesktop.org. (#145210,
4154 Sat Jul 3 02:09:51 2004 Matthias Clasen <maclas@gmx.de>
4156 * gtk/gtksocket.c (gtk_socket_end_embedding): Reset current_width
4157 and current_height to 0 when ending the embedding. (#143675,
4158 Nickolay V. Shmyrev)
4160 Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
4162 * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
4163 to the right end of the entry text, even if it ends in combining
4164 marks. (#141728, Theppitak Karoonboonyanan)
4166 Fri Jul 2 23:34:33 2004 Matthias Clasen <maclas@gmx.de>
4168 * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
4169 row when unsetting the model. (#138560, Christian Persch)
4171 Fri Jul 2 23:01:07 2004 Matthias Clasen <maclas@gmx.de>
4173 * gtk/gtkcombobox.c (update_menu_sensitivity): Don't crash if there
4176 Fri Jul 2 22:41:27 2004 Matthias Clasen <maclas@gmx.de>
4178 * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
4179 pixbuf if a subarea is exposed. (#135423, fix by John Ehresman)
4181 Fri Jul 2 21:40:21 2004 Matthias Clasen <maclas@gmx.de>
4183 * gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
4184 to the event mask, set a scroll_event handler.
4185 * gtk/gtknotebook.c (gtk_notebook_scroll): Handle scroll events
4186 by switching tabs. (#145244, Gabriel de Perthuis)
4188 2004-07-02 Anders Carlsson <andersca@gnome.org>
4190 * gtk/gtktreeview.c (gtk_tree_view_set_model):
4191 Make sure we check for a NULL model first.
4193 2004-07-01 J. Ali Harlow <ali@juiblex.co.uk>
4195 * gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix
4196 win32 build problem w/o wintab. Fixed #145242
4198 2004-06-30 Anders Carlsson <andersca@gnome.org>
4200 * gtk/gtktreeview.c (gtk_tree_view_set_model): Use
4201 g_return_if_fail to make sure that the model is a GtkTreeModel.
4203 Sat Jun 26 17:41:10 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4205 * gtk/gtk[hv]separator.c (gtk_[hv]separator_expose): Draw line with the
4206 current state, not GTK_STATE_NORMAL
4208 * gtk/gtkframe.c (gtk_frame_paint): Fix a rounding error
4210 Sat Jun 26 15:07:25 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4212 * gtk/gtkstyle.c, gtk/gtkrc.c: small color tweak. (#141173)
4214 Sat Jun 26 01:15:40 2004 Matthias Clasen <maclas@gmx.de>
4216 * gdk/x11/gdkwindow-x11.c (set_initial_hints): Handle
4217 _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW. (#144851,
4220 Sat Jun 26 01:04:31 2004 Matthias Clasen <maclas@gmx.de>
4222 * gtk/gtkiconfactory.c (clear_cache): Prevent unwanted
4223 recursion by resetting icon_set->cache before freeing
4224 the cache. (#144947, Tim Janik)
4226 Sat Jun 26 00:40:02 2004 Matthias Clasen <maclas@gmx.de>
4228 * gtk/gtkiconfactory.c (render_icon_name_pixbuf):
4229 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon):
4230 * gtk/gtkstyle.c (gtk_default_render_icon): Accept a NULL
4233 Sat Jun 26 00:04:36 2004 Matthias Clasen <maclas@gmx.de>
4235 * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
4236 * gtk/gtkcombobox.c (gtk_combo_box_set_model): Reflect the
4237 last change in the docs.
4239 Fri Jun 25 23:35:42 2004 Matthias Clasen <maclas@gmx.de>
4241 * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
4242 * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
4243 NULL to unset the model. (#137211, patch by Mariano Suárez-Alvarez)
4245 Fri Jun 25 23:33:05 2004 Matthias Clasen <maclas@gmx.de>
4247 * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
4248 placement policy for GtkComboBoxEntry to be: if it fits below,
4249 place below, if it fits above place above, else place in the
4250 larger space and scroll so that the scroll arrow appear at the
4251 far end. (#144362, David A. Knight)
4253 Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de>
4255 * gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
4256 use of &parent_iter. (#145007, John Finlay)
4258 2004-06-25 Bastien Nocera <hadess@hadess.net>
4260 reviewed by: Matthias Clasen <maclas@gmx.de>
4262 * gdk/x11/gdkkeys-x11.c: (get_symbol), (update_keymaps),
4263 (gdk_keymap_lookup_key), (translate_keysym): fix keys parsing when
4264 the number of keysyms per keycode is odd. Fixes #144808.
4266 2004-06-25 Matthias Clasen <mclasen@redhat.com>
4268 * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
4269 a crash if the font doesn't exist. (#144967, Yevgen Muntyan)
4271 Fri Jun 25 00:32:15 2004 Matthias Clasen <maclas@gmx.de>
4273 * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
4274 which was mentioned below.
4276 Thu Jun 24 23:35:09 2004 Matthias Clasen <maclas@gmx.de>
4278 * gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
4279 string change. (#139503, Baris Cicek)
4281 2004-06-22 Federico Mena Quintero <federico@ximian.com>
4283 * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a Save
4284 or an Open stock button for the C-l dialog depending on the action
4285 in which the file chooser operates. Fixes #141753.
4287 2004-06-22 Federico Mena Quintero <federico@ximian.com>
4289 Fixes the GTK+ part of #142308:
4291 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
4292 Use filename_to_path().
4293 (gtk_file_system_unix_uri_to_path): Likewise.
4294 (filename_to_path): Use remove_trailing_slash().
4296 2004-06-22 Matthias Clasen <mclasen@redhat.com>
4298 * gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
4299 for the ::move_cursor signal.
4301 * gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
4302 "<WINDOWTYPE>" as a valid accel path. (#144427, Philip
4305 * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
4306 this gets defined for all backends, so linux-fb has a
4307 chance of compiling.
4309 * gdk/x11/gdkgc-x11.c:
4310 * gdk/gdkgc.c: Move function docs inline, add hints about
4311 obtaining rgb colors from gcs. (#144688, Steve Chaplin)
4313 * gtk/gtktreestore.c (gtk_tree_store_swap): Make this work
4314 for children of the root. (#139785, Jean-François Wauthy,
4315 patch by John Finlay)
4317 * gtk/gtkicontheme.h (GTK_ICON_THEME_GET_CLASS): Typo
4318 fix. (#144750, Jeff Franks)
4320 2004-06-21 Michael Natterer <mitch@gimp.org>
4323 * gdk/x11/gdkdrawable-x11.[ch]: made convert_format() utility
4324 function public as _gdk_x11_convert_to_format().
4326 * gdk/x11/gdkcursor-x11.c (create_cursor_image): premultiply
4327 the pixels from the GdkPixbuf when putting them in the
4328 Xcursor image. Fixes bug #144350.
4330 2004-06-16 Federico Mena Quintero <federico@ximian.com>
4332 * gtk/gtkfilesystemmodel.c (do_files_added): When inserting a
4333 visible node, free the old path before creating the new one.
4336 Tue Jun 15 01:10:32 2004 Matthias Clasen <maclas@gmx.de>
4338 * gtk/gtkcombobox.c: Make GtkComboBox work without model.
4339 (#144198, Mariano Suárez-Alvarez)
4341 Fri Jun 11 22:05:56 2004 Matthias Clasen <maclas@gmx.de>
4343 * gtk/gtkfilechooserdefault.c: Don't use
4344 contractions like "don't" or "isn't" in error messages.
4345 It isn't nice to use them in log entries either...
4346 (#137774, Morten Welinder, patch by Alexander Winston)
4348 2004-06-11 Federico Mena Quintero <federico@ximian.com>
4352 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_add_editable):
4353 Don't ref the editable node.
4354 (_gtk_file_system_model_remove_editable): Don't unref the editable node.
4355 (_gtk_file_system_model_remove_editable): Ahem, free the node.
4357 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4358 Added fields for edited_idle and edited_new_text.
4359 (renderer_edited_cb): Queue the
4360 creation of the folder in an idle handler.
4361 (renderer_editing_canceled_cb): Likewise for the cancellation.
4362 (gtk_file_chooser_default_finalize): Free the impl->edited_new_text.
4364 Thu Jun 10 22:12:26 2004 Matthias Clasen <maclas@gmx.de>
4366 * gtk/gtkmain.c (gtk_parse_args): Typo fix.
4368 2004-06-10 Federico Mena Quintero <federico@ximian.com>
4370 Fixes #144110, patch by Bastien Nocera <hadess@hadess.net>.
4372 * gtk/gtkfilechooser.c (gtk_file_chooser_list_shortcut_folders):
4373 Refer to gtk_file_chooser_add_shortcut_folder().
4374 (gtk_file_chooser_list_shortcut_folder_uris): Refer to
4375 gtk_file_chooser_add_shortcut_folder_uri().
4377 Thu Jun 10 00:36:15 2004 Matthias Clasen <maclas@gmx.de>
4379 * gtk/gtkcalendar.c (gtk_calendar_main_button): Start
4380 the drag before focusing the selected.day.
4381 * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
4382 a beginning drag if the widget becomes insensitive.
4384 Thu Jun 10 00:09:06 2004 Matthias Clasen <maclas@gmx.de>
4386 * gtk/gtkcalendar.c (gtk_calendar_button_press): Start
4387 spinning before calling arrow_action(), so that a signal
4388 handler triggered from arrow_action() has a chance to
4389 stop the spinning. (#143966, Davyd Madeley)
4391 Wed Jun 9 23:11:23 2004 Matthias Clasen <maclas@gmx.de>
4393 * gtk/gtkstyle.c (_gtk_style_init_for_settings): Fix a
4394 typo. (#144070, Kent Sandvik)
4396 Thu Jun 10 00:22:51 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4398 * gtk/gtkmenu.c: Revert the "drag select" part of
4401 Mon Jun 7 23:07:40 2004 Matthias Clasen <maclas@gmx.de>
4403 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): Handle
4404 priv->model being NULL. (#143856, Mariano Suárez-Alvarez)
4406 2004-06-07 Federico Mena Quintero <federico@ximian.com>
4408 * gtk/gtktreeview.c (gtk_tree_view_button_press): Revert the patch
4409 from 2003/Sep/12. This kept DnD in tree views within modal
4410 dialogs from working, which is especially bad for the file
4411 chooser. Fixes #135168.
4413 Sun Jun 6 23:57:21 2004 Matthias Clasen <maclas@gmx.de>
4415 Make the entry context menu work in editable text cells. The changes
4416 are based on a patch by Kristian Rietveld, which implemented an
4417 approach outlined by Owen Taylor. (#50075)
4419 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
4420 Ignore focus out if the entry menu is posted.
4421 (gtk_cell_renderer_text_populate_popup): Mark the entry menu as
4422 posted, and set up a signal handler to clear the flag if the menu
4424 (gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag,
4425 set up a timeout to stop editing if the focus is lost.
4426 (popdown_timeout): Stop editing if the entry doesn't have focus anymore.
4427 (gtk_cell_renderer_text_start_editing): Connect to the populate_popup
4428 signal on the entry and keep a pointer to the entry.
4429 (gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup,
4430 clear the pointer to the entry.
4432 Sun Jun 6 23:24:43 2004 Matthias Clasen <maclas@gmx.de>
4434 * gtk/gtktexttag.c (gtk_text_tag_class_init): Improve the description
4435 of the ::language property. (#143802, Owen Taylor)
4437 Sat Jun 5 23:07:30 2004 Matthias Clasen <maclas@gmx.de>
4439 * gtk/gtkentrycompletion.c: (gtk_entry_completion_init),
4440 (gtk_entry_completion_list_enter_notify),
4441 (gtk_entry_completion_list_motion_notify),
4442 (_gtk_entry_completion_popup), (_gtk_entry_completion_popdown):
4443 * gtk/gtkentryprivate.h: Add an ignore_enter flag and
4444 use it as in the menu code to avoid the initial selection if
4445 the window pops up under the pointer. (Anders Carlsson)
4447 Sat Jun 5 20:05:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4449 * tests/testmerge.c: Add a checkbox to queue an
4450 merge/unmerge. Patch from Matthias Clasen.
4452 * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag
4454 (rebuild_menu): New function that rebuilds the overflow menu and
4455 makes sure it doesn't start or end with a separator.
4456 (toolbar_content_new_tool_item)
4457 (toolbar_content_remove)
4458 (toolbar_content_new_compatibility): Set the rebuild_needed flag
4459 (gtk_toolbar_size_allocate): Only show the overflow arrow when we
4460 have actually overflown an item with a proxy menu item. Also make
4461 sure we rebuild the menu if needed.
4463 Fix #125504, #142377, #143463
4465 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose):
4466 Obey the "priv->draw" flag. (#143692)
4468 2004-06-04 Matthias Clasen <mclasen@redhat.com>
4470 * docs/widget_geometry.txt: Add a note about the !CAN_FOCUS
4471 quirk in the button size allocation code.
4473 * gtk/gtkbutton.c (gtk_button_size_allocate): Give the space
4474 requested for drawing the focus indicator to the child in the
4475 !CAN_FOCUS case. This should fix issues which the Gimp has with
4476 the button allocation changes in 2.4.2.
4478 Thu Jun 3 21:17:29 2004 Matthias Clasen <maclas@gmx.de>
4480 * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
4481 length of the entry contents in characters, not in bytes.
4483 * gtk/gtkentry.c (paste_received): Don't pop up the completion
4484 window on paste, noticed by Anders Carlsson.
4486 Thu Jun 3 20:56:19 2004 Matthias Clasen <maclas@gmx.de>
4488 * gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
4489 values and default value for the ::active property. (#143669,
4492 2004-06-03 Michael Natterer <mitch@gimp.org>
4494 * gtk/gtkimagemenuitem.c: use gtk_widget_get_child_requisition()
4495 instead of accessing item->image->allocation.width/height
4496 directly. Makes widgets which only have a requisition set using
4497 gtk_widget_set_size_request() work and fixes bug #142789.
4499 Thu Jun 3 08:07:59 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4501 * gtk/gtkmenu.c: Revert previous commit. It caused the problem
4502 of sticky right click menus to return.
4504 Wed Jun 2 01:56:02 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4506 * gtk/gtkmenu.c: Fix the stay up algorithm for combo boxes to
4507 better handle the "click" case. bug Better fix for #141169.
4509 2004-06-02 Federico Mena Quintero <federico@ximian.com>
4511 * gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
4512 model is empty. Fixes #143536.
4514 2004-06-02 Matthias Clasen <mclasen@redhat.com>
4516 * gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
4517 close the dialog on focus out of the size entry. (#143505,
4520 2004-06-02 Federico Mena Quintero <federico@ximian.com>
4524 * gtk/fnmatch.c (_gtk_fnmatch): Take a no_leading_period argument.
4525 (gtk_fnmatch_intern): Likewise; also implement this option.
4527 * gtk/gtkprivate.h (_gtk_fnmatch): Updated prototype.
4529 * gtk/gtkfilesel.c (find_completion_dir): Pass TRUE for the
4530 no_leading_period argument of _gtk_fnmatch().
4531 (attempt_file_completion): Likewise.
4533 * gtk/gtkfilefilter.c (gtk_file_filter_filter): Pass FALSE for the
4534 no_leading_period argument of _gtk_fnmatch().
4536 Wed Jun 2 00:47:11 2004 Matthias Clasen <maclas@gmx.de>
4538 * gtk/gtkselection.c (_gtk_selection_request): Remove leftover
4541 Wed Jun 2 00:13:57 2004 Matthias Clasen <maclas@gmx.de>
4543 * gtk/gtktreeselection.c (gtk_tree_selection_select_range): Don't
4544 allow unless selection mode is multiple. (#142634, John Finlay)
4546 Tue Jun 1 23:00:20 2004 Matthias Clasen <maclas@gmx.de>
4550 * gtk/gtkentrycompletion.h:
4551 * gtk/gtkentrycompletion.c:
4552 * gtk/gtkcombobox.h:
4553 * gtk/gtkcombobox.c: Rename function parameters from
4554 index to index_ to prevent clash with BSD index(). (#143001)
4556 Tue Jun 1 22:45:42 2004 Matthias Clasen <maclas@gmx.de>
4558 * gtk/gtkmenu.c (get_accel_path): Handle accel_closure being
4559 NULL on an accel label. (#139641, Sam Stephenson, patch by
4562 Tue Jun 1 22:19:55 2004 Matthias Clasen <maclas@gmx.de>
4564 * gtk/gtkicontheme.c (theme_subdir_load): Prevent icon
4565 lookup finding icons in the wrong prefix. (#143328,
4568 Wed Jun 2 00:39:58 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4572 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Make menus
4573 only stay up if you release within 500 milliseconds.
4574 (gtk_menu_shell_button_press): Set the activate_time to the event
4575 time when a button is pressed.
4577 * gtk/gtkmenu.c (gtk_menu_motion_notify, gtk_menu_enter_notify):
4578 Interprete button releases as activate when we have seen both an
4579 enter an a motion event.
4581 2004-06-01 Federico Mena Quintero <federico@ximian.com>
4583 * gtk/gtkfilesystemmodel.c (do_files_removed): Don't insert a
4584 dummy node if there is no parent node. Fixes #143362.
4586 2004-05-31 Federico Mena Quintero <federico@ximian.com>
4588 * gtk/gtkfilechooserdefault.c (renderer_edited_cb): Change to the
4589 newly-created folder. Fixes #138932.
4590 (trap_activate_cb): Only return TRUE if we did handle the event.
4591 Fixes #143359; patch by jylefort@brutele.be.
4593 Mon May 31 02:39:32 2004 Matthias Clasen <maclas@gmx.de>
4595 * gtk/gtkimage.c (gtk_image_new_from_pixmap): Fix typo in
4596 docs. (#142892, Tommi Komulainen)
4598 Mon May 31 02:16:37 2004 Matthias Clasen <maclas@gmx.de>
4600 * gtk/gtkhandlebox.c: Make detached handleboxes work when their
4601 parent is minimized, porting the fix from 1.2. (#1923, #57182)
4603 Mon May 31 02:03:17 2004 Matthias Clasen <maclas@gmx.de>
4605 * gtk/gtkwindow.c (gtk_window_show): Make moving realized,
4606 unmapped windows work.
4608 Mon May 31 00:27:33 2004 Matthias Clasen <maclas@gmx.de>
4610 * gtk/gtkfilechooserutils.c (_gtk_file_chooser_set_delegate): Fix
4613 Mon May 31 00:23:55 2004 Matthias Clasen <maclas@gmx.de>
4615 * gtk/gtkfilechooser.c (gtk_file_chooser_set_preview_widget):
4616 Refer to ::update-preview, not ::selection-changed.
4618 2004-05-29 Christian Rose <menthos@menthos.com>
4620 * configure.in: Added "tk" to ALL_LINGUAS.
4622 Fri May 28 15:00:01 2004 Matthias Clasen <maclas@gmx.de>
4624 * gtk/gtkwidget.c (gtk_widget_set_parent): Add informative
4625 messages for common problems. (#137974, Owen Taylor)
4627 Fri May 28 14:20:17 2004 Matthias Clasen <maclas@gmx.de>
4629 * gdk/x11/gdkevents-x11.c: Fix off-by-one allocation
4630 errors. (#143337, Billy Biggs)
4632 Thu May 27 16:36:22 2004 Owen Taylor <otaylor@redhat.com>
4634 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): Set
4635 bits within visual->depth that aren't used for color to
4636 1s, in case they are alpha.
4638 2004-05-27 Anders Carlsson <andersca@gnome.org>
4640 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
4641 Make separator rows insensitive.
4643 Thu May 27 00:48:16 2004 Matthias Clasen <maclas@gmx.de>
4645 * gtk/gtkentrycompletion.c (gtk_entry_completion_set_text_column):
4648 Thu May 27 00:45:07 2004 Matthias Clasen <maclas@gmx.de>
4650 * gtk/gtkentrycompletion.h:
4651 * gtk/gtkentrycompletion.c (gtk_entry_completion_get_text_column):
4652 Getter for text_column. Also make ::text_column a property.
4654 Thu May 27 00:11:01 2004 Matthias Clasen <maclas@gmx.de>
4656 * gtk/gtkmenuitem.c (gtk_menu_item_size_request): Fix a typo.
4658 Thu May 27 00:07:47 2004 Jonathan Blandford <jrb@gnome.org>
4660 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
4661 signal if the box exists.
4663 Wed May 26 23:26:51 2004 Matthias Clasen <maclas@gmx.de>
4665 Support insensitive cells in tree views and combo boxes:
4667 * gtk/gtkcellrenderer.h:
4668 * gtk/gtkcellrenderer.c: Add a ::sensitive property.
4670 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4671 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4672 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4673 Support drawing insensitive.
4675 * gtk/gtkcellview.h:
4676 * gtk/gtkcellview.c (gtk_cell_view_get_cell_renderers): New
4677 function to obtain the cell renderers from a cell view. Also
4678 export gtk_cell_view_set_cell_data().
4680 * gtk/gtktreeselection.c (tree_column_is_sensitive):
4681 * gtk/gtktreeselection.c (row_is_selectable): Helper functions
4682 to determine whether all visible cells in a row are insensitive
4683 and whether a row is selectable. A row is not selectable if the
4684 user function says so or if all visible cells are insensitive.
4685 * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
4686 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4687 Use row_is_selectable().
4689 * gtk/gtkcombobox.c (row_is_sensitive):
4690 * gtk/gtkcombobox.c (tree_column_row_is_sensitive):
4691 * gtk/gtkcombobox.c (menu_row_is_sensitive): Helper functions
4692 to determine row sensitivity in menu or list mode.
4694 * gtk/gtkcombobox.c (update_menu_sensitivity): Helper function
4695 to set up sensitivity menu items from the underlying rows.
4697 * gtk/gtkcombobox.c (gtk_combo_box_popup):
4698 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): Use
4699 update_menu_sensitivity().
4701 * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Setup the cell
4704 * gtk/gtkcombobox.c (gtk_combo_box_key_press): Skip insensitive
4707 * tests/testcombo.c (main): Make some rows insensitive.
4709 2004-05-26 Robert Ögren <gtk@roboros.com>
4711 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Send key
4712 modifiers (shift, ctrl etc) in button and motion events from the
4715 2004-05-26 Robert Ögren <gtk@roboros.com>
4717 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): Simple
4718 implementation for extended input devices using last known
4719 device state (#143237)
4721 Tue May 25 21:54:00 2004 Matthias Clasen <maclas@gmx.de>
4723 * gtk/gtkframe.c: Move docs inline, fixing them on the
4724 way. (#143029, Steve Chaplin)
4726 2004-05-11 Robert Ögren <gtk@roboros.com>
4728 * gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
4729 events to windows that want extended input events. (#142943)
4730 (gdk_event_translate): Move check for extended input devices to
4731 propagate, new parameter to propagate.
4732 (gdk_pointer_grab, gdk_display_pointer_ungrab): Enable calls to
4733 _gdk_input_(un)grab_pointer. (#142943)
4735 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Check for
4736 input grab. [Fix missing update of impl in "dijkstra" event
4737 propagation loop] Drop the parallel "impl" pointer, just use a
4738 cast. Don't propagate beyond windows that want normal input
4740 (gdk_input_grab_pointer, gdk_input_ungrab_pointer): Limited
4741 implementation of input grab. (#142943)
4743 2004-05-22 Tor Lillqvist <tml@iki.fi>
4745 * gdk/win32/gdkinput-win32.c (print_lc): Remove duplicated
4746 line. (Spotted by Benoît Carpentier.)
4748 2004-05-18 Matthias Clasen <mclasen@redhat.com>
4750 * configure.in: Check for XFIXES extension.
4752 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
4753 a gboolean have_xfixes member.
4755 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
4756 XFIXES events and set have_xfixes.
4758 * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
4759 (GdkEventOwnerChange): New event struct for owner change events.
4760 (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.
4762 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate
4763 XFixesSelectionNotify events into GdkEventOwnerChange events.
4766 * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
4767 (gdk_display_request_selection_notification): New api
4768 to support selection ownership notification.
4770 * gtk/gtkclipboard.h:
4771 * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
4772 api to handle owner change events.
4773 (clipboard_peek): Refactored out the body of
4774 gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().
4776 * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
4777 by calling _gtk_clipboard_handle_event().
4779 2004-05-18 Matthias Clasen <mclasen@redhat.com>
4781 * gtk/gtkintl.h: Include glib/gi18n-lib.h and only define
4782 the P_() macros ourselves.
4784 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
4785 Restrict the width of the popup to be no larger than the
4786 monitor. (#142678, DmD Ljungmark)
4788 * gtk/gtkbutton.c: Go back to the initial fix for the
4789 focus-overdrawing problem, which was actually correct
4790 according to docs/widget_geometry.txt.
4792 * gtk/gtkarrow.c (gtk_arrow_class_init): Bump the initial
4793 arrow size from 11 to 15 to compensate for that.
4795 * gtk/gtktextview.c (gtk_text_view_class_init): Document the
4796 arguments of the ::move-cursor signal. (#142725)
4798 2004-05-17 Matthias Clasen <mclasen@redhat.com>
4802 * gtk/gtkbutton.c (gtk_button_size_request)
4803 (gtk_button_size_allocate, _gtk_button_paint): Allocate
4804 space for the focus rectangle only if necessary. (#142668,
4807 Sun May 16 23:11:47 2004 Matthias Clasen <maclas@gmx.de>
4811 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove two useless
4812 lines. (#142479, Morten Welinder)
4814 Sun May 16 22:27:17 2004 Matthias Clasen <maclas@gmx.de>
4816 * gtk/gtkintl.h (Q_): Add a Q_() macro.
4818 * gtk/gtkcellrendererprogress.h: Remove GTK_PROGRESS_CELL_UNKNOWN
4819 and GTK_PROGRESS_CELL_FAILED. With the ability the set the label,
4820 they are not really needed.
4822 * gtk/gtkcellrendererprogress.c: Use the xpad and ypad properties
4823 instead of hardwired padding, use Q_() for the default label,
4824 compute a reasonable minimal size. (#142571, #142572, #142573,
4825 Tommi Komulainen, Christian Persch)
4827 2004-05-15 Tor Lillqvist <tml@iki.fi>
4829 * gdk/win32/gdkdnd-win32.c: Put back the ref_count field in the
4830 GdkDragContextPrivateWin32 struct (but inside ifdef OLE2_DND this
4831 time). It is used by the OLE2_DND code, which is unfinished and
4832 presumably horribly broken, but still, let's not make it not
4833 compile on purpose. Silence some gcc warnings in the OLE2_DND
4836 2004-05-14 Matthias Clasen <mclasen@redhat.com>
4838 * gtk/gtktreeview.c (gtk_tree_view_tree_window_to_tree_coords):
4839 New function to go from tree window to tree coordinates, kept
4840 static for now until we figure out the multiple coordinate
4841 system mess in GtkTreeView API-wise.
4842 (gtk_tree_view_scroll_to_cell): Transform the coordinates
4843 from tree window to tree coordinates, using the new function.
4844 Previously, the x coordinate was wrongly transformed. (#142494)
4846 * gdk/gdktypes.h (GdkModifierType): Add a comment about unused
4849 * gtk/gtkstock.c (real_add, gtk_stock_lookup): Use an unused
4850 modifier bit to mark stock item which need to be freed
4851 eventually. (#140654, Michal Pasternak, Scott Tsai)
4853 2004-05-11 Robert Ögren <gtk@roboros.com>
4855 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Add missing
4856 call to g_object_ref in Wintab code. (#138341)
4858 * gdk/win32/gdkinput-win32.c: Fix numerous Wintab problems
4859 including unallocated buffers for event->motion.axes and
4860 event->button.axes, unsigned wraparound problem in the code for
4861 detecting missing press/release events and assigning min instead
4862 of max when setting up axes.
4864 2004-05-12 Matthias Clasen <mclasen@redhat.com>
4866 * tests/testtreeedit.c: Add a progress column.
4868 * gtk/Makefile.am: Add gtkcellrendererprogress.[hc] in the right
4871 * gtk/gtk.h: Include gtkcellrendererprogress.h.
4873 * gtk/gtkcellrendererprogress.[hc]: A progress cell renderer,
4874 based on the one found in Epiphany.
4876 2004-05-11 Michael Natterer <mitch@gimp.org>
4878 * gtk/gtkcombobox.c (gtk_combo_box_popup)
4879 (gtk_combo_box_menu_button_press): don't allocate the popup
4880 smaller than the combobox. Fixes bug #59660.
4882 2004-05-11 Matthias Clasen <mclasen@redhat.com>
4884 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
4885 previous change to this function, clarify the docs instead.
4887 * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
4888 GTK_SELECTION_BROWSE.
4890 * gtk/gtktreeview.c: Make hover selection work for
4891 GTK_SELECTION_BROWSE as well.
4893 Tue May 11 00:38:25 2004 Matthias Clasen <maclas@gmx.de>
4895 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init):
4896 Document the ::toggled signal.
4898 Mon May 10 23:04:25 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4900 * gtk/gtkwidget.h: Add prototype for _gtk_widget_grab_notify()
4902 2004-05-10 Matthias Clasen <mclasen@redhat.com>
4904 * gtk/gtkwindow.c (get_screen_icon_info): Make static.
4906 * gdk/gdkdisplay.c (singlehead_...):
4907 * gdk/x11/gdkkeys-x11.c (get_effective_keymap):
4908 * gdk/x11/gdkgeometry-x11.c (expose_serial_predicate):
4909 * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Make static.
4911 * gtk/gtktreeview.c (gtk_tree_view_set_fixed_height_mode): Add a
4912 note about COLUMN_FIXED restriction.
4914 * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press):
4915 Set the entry in the default handler of the ::match-selected signal.
4918 * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): If we don't
4919 do the move-selected-item below pointer thingie, do the
4920 place-below-or-above one.
4922 * tests/testentrycompletion.c: Make the second example use the
4923 ::match-selected signal to make it actually work.
4925 * gtk/gtkentrycompletion.c (gtk_entry_completion_init):
4926 * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use hover selection
4927 mode. (#127648, Dave Bordoley)
4929 * gtk/gtktreeview.h:
4930 * gtk/gtktreeview.c: Add a new property "hover_selection", which
4931 when TRUE makes the selection follow the mouse. Also add setter
4932 and getter for the fixed_height property.
4934 2004-05-10 Matthias Clasen <mclasen@redhat.com>
4936 * gtk/gtkcombobox.c (gtk_combo_box_popup)
4937 (gtk_combo_box_menu_button_press): Make sure the menu pops up
4938 as wide as the combobox. (#59660, Havoc Pennington)
4940 2004-05-10 Matthias Clasen <mclasen@redhat.com>
4942 * gtk/gtkcombobox.h:
4943 * gtk/gtkcombobox.c: Support tearoffable combo boxes (in menu
4944 mode). Add a new property, add-tearoffs, for this. (#135956)
4946 * gtk/gtkfontsel.c (list_row_activated): Make Return activate the
4947 default button. (#118921)
4949 Mon May 10 15:03:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4951 * gtk/gtkwidget.c (_gtk_widget_grab_notify): New internal function
4952 that emits the grab notify signal.
4954 * gtk/gtkmain.c (gtk_grab_notify_foreach): Use it here.
4956 Mon May 10 00:48:08 2004 Matthias Clasen <maclas@gmx.de>
4958 * gtk/gtkmenu.c: Make destruction of a torn off menu work
4959 like un-tearing off.
4961 Sun May 9 21:05:38 2004 Matthias Clasen <maclas@gmx.de>
4965 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
4966 Allow to suppress the stock accelerator by using "". (#142196,
4969 Sun May 9 02:01:13 2004 Matthias Clasen <maclas@gmx.de>
4973 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released):
4974 In list mode, accept the same mouse/wheel bindings on
4975 the cellview as on the button. (#136967)
4977 Sun May 9 01:25:37 2004 Matthias Clasen <maclas@gmx.de>
4979 * gtk/gtkiconfactory.c (add_to_cache): Actually count the
4980 cached icons. (#135888, Crispin Flowerday)
4982 Sun May 9 00:03:03 2004 Matthias Clasen <maclas@gmx.de>
4984 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
4985 that we actually return menus for nodes of type menu, not the
4986 menuitems they're attached to.
4988 Sat May 8 22:50:55 2004 Matthias Clasen <maclas@gmx.de>
4990 * gtk/gtkactiongroup.c (gtk_action_group_set_translation_domain):
4991 Add a note regarding UTF-8 requirements, proposed by
4992 Mariano Suárez-Alvarez.
4994 Sat May 8 22:43:11 2004 Matthias Clasen <maclas@gmx.de>
4996 * gtk/gtktearoffmenuitem.h:
4997 * gtk/gtktearoffmenuitem.c: Put the torn_off flag back
4998 into the GtkTearoffMenuItem struct, since it is used
4999 by the Gimp, and keep it synchronized with the
5000 tearoff_state property of the parent menu.
5002 2004-05-08 Hans Breuer <hans@breuer.org>
5004 * gtk/gtkfilesystemwin32.c (extract_icon) : finally also
5005 create the correct mask for 'pseudo mime' icons
5007 * gdk/win32/gdkwindow-win32.c(show_window_internal) : also
5008 take focus_on_map into account
5010 * gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
5012 * gtk/gtkactiongroup.c gtk/gtkcombobox.c :
5013 ... must return a value
5015 * gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
5017 2004-05-07 Matthias Clasen <mclasen@redhat.com>
5019 * gtk/gtkbutton.c (gtk_button_size_allocate): Don't let the child
5020 draw over the focus rectangle.
5022 * gtk/gtkhsv.c: Draw focus indication in the color wheel using
5023 standard focus style. (#63071, Bill Haneman, idea for new
5024 style by Owen Taylor)
5026 * gtk/gtkstyle.c (gtk_default_draw_focus): Support drawing on
5027 focus on the colorwheel via details.
5029 2004-05-06 Matthias Clasen <mclasen@redhat.com>
5033 * gtk/gtkcombobox.c (gtk_combo_box_menu_state_changed): Remove
5034 this no longer needed signal handler. (#141817, Paul Pogonyshev)
5036 Fri May 7 00:41:46 2004 Matthias Clasen <maclas@gmx.de>
5038 * gtk/gtktearoffmenuitem.h:
5039 * gtk/gtktearoffmenuitem.c: Make the tearoff
5040 functionality model/view, the tearoffmenuitem being
5041 the view and the tearoff_state property of the menu
5042 being the model. (#101185, Owen Taylor)
5044 * gtk/gtkmenu.c: Add a tearoff_state property.
5046 Thu May 6 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
5050 * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Also
5051 popup the submenu for items in torn off menus. (#122051)
5053 2004-05-06 Sven Neumann <sven@gimp.org>
5055 * gtk/gtkexpander.c (gtk_expander_size_allocate): in RTL mode,
5056 position the title lable next to the arrow just as we do for LTR
5057 rendering. Fixes bug #141825.
5059 2004-05-06 Matthias Clasen <mclasen@redhat.com>
5061 * docs/RELEASE-HOWTO: Document the new policy of
5062 bumping version numbers after release.
5064 * configure.in: Bump version number to 2.5.0.
5066 2004-05-06 Padraig O'Briain <padraig.obriain@sun.com>
5069 * gtk/gtkmenu.c: Add new function gtk_menu_get_for_attach_widget.
5072 Thu May 6 00:24:11 2004 Matthias Clasen <maclas@gmx.de>
5074 * gtk/gtkactiongroup.h:
5075 * gtk/gtkactiongroup.c (gtk_action_group_translate_string):
5076 New function to translate a string with translate_func.
5079 Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de>
5081 * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width):
5082 (gtk_combo_box_get_row_span_column):
5083 (gtk_combo_box_get_column_span_column): Add missing getters
5084 for readwrite properies. (#135649)
5086 Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de>
5088 * gtk/gtkcombobox.h:
5089 * gtk/gtkcombobox.c (gtk_combo_box_get_active_text):
5090 Add gtk_combo_box_get_active_text() convenience
5091 function. (#136372, Christian Neumeir, patch by Olivier Andrieu)
5093 2004-05-05 Elijah Newren <newren@math.utah.edu>
5095 Changes to support do-not-focus-on-map hint in conjunction with
5096 _NET_WM_USER_TIME (#115650):
5098 * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5101 * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5104 * gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map"
5105 and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map().
5107 * gdk/win32/gdkwindow-win32.c (gdk_window_new):
5108 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
5109 * gdk/x11/gdkwindow-x11.c (gdk_window_new):
5110 Initialize the focus_on_map field to TRUE.
5112 * gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map):
5113 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map):
5114 * gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map):
5115 * gdk/x11/gdkwindow-x11.c (setup_toplevel_window):
5116 Implementations for the various backends. The Win32 and linux-fb
5117 implementations set the focus_on_map field, but don't use it yet
5118 to actually implement noinput windows. The X implementation sets
5119 _NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH).
5121 * gdk/x11/gdkwindow-x11.h:
5122 * gdk/x11/gdkevents-x11.c (set_user_time):
5123 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5124 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time):
5125 s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/,
5126 since we want that function to be part of the public API.
5128 Wed May 5 22:20:21 2004 Matthias Clasen <maclas@gmx.de>
5132 * gtk/gtkiconfactory.c (icon_source_clear): Don't
5133 call g_free() on a pixbuf. (#141961, Crispin Flowerday)
5135 2004-05-05 Matthias Clasen <mclasen@redhat.com>
5139 * gtk/gtkuimanager.c (print_node): Make the output
5140 parseable. (#141929, Sven Neumann)
5142 2004-05-05 Tor Lillqvist <tml@iki.fi>
5144 * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
5145 multi-monitor offset. (#141842, John Ehresman)
5147 2004-05-04 Federico Mena Quintero <federico@ximian.com>
5149 Fixes #139562, based on a patch by Christian Neumair.
5151 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
5152 a filter_combo_hbox field to contain the filter combo.
5153 (show_filters): Show/hide the filter_combo_hbox.
5154 (create_filename_entry_and_filter_combo): Removed.
5155 (file_pane_create): Create the filter_combo_hbox here.
5157 2004-05-04 Matthias Clasen <mclasen@redhat.com>
5159 * modules/input/gtkimcontextxim.c: Fix the recent
5160 string_conversion_callback change to work on
5161 Solaris. (#141190, Padraig O'Briain)
5163 * gtk/gtkselection.c: Disable debug logging again.
5165 2004-05-03 Matthias Clasen <mclasen@redhat.com>
5167 * gtk/gtkselection.c: Make the chunk size for
5168 incremental transfers depend on the maximal request
5169 size, capped at 256k. This should allow most selections
5170 to be transferred nonincrementally, avoiding many
5171 roundtrips and protocol overhead.
5173 2004-05-03 Federico Mena Quintero <federico@ximian.com>
5175 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Call
5176 g_signal_new() correctly and initialize the signal fields. Fixes
5177 #141749; patch based on Michael Natterer's.
5179 u2004-05-03 Matthias Clasen <mclasen@redhat.com>
5181 * gtk/gtkselection.c (_gtk_selection_request): Fix
5182 a debug message to show correct information.
5183 (_gtk_selection_incr_event): Make INCRemental transfer
5184 of MULTIPLE targets work. This was broken since 1997!
5186 2004-05-02 Hans Breuer <hans@breuer.org>
5188 * gdk/win32/gdkdrawable-win32.c (draw_segments) : don't
5189 modify the passed in GdkSegment(s) in place, we may get
5190 them again to draw at the same place. Fixes bug #129095,
5192 (draw_segments) draw the end pixel again to get the
5193 pixmap mask right, fixes bug #126710, #130202
5195 * gdk/win32/gdkwindow-win32.c : use SetForegroundWindow,
5196 fixes bug #106013, John Ehresman
5198 * gtk/makefile.msc.in : don't try to link gtk.res but
5199 use gtk-win32.res (as supposed to be fixed below :)
5201 2004-05-01 Hans Breuer <hans@breuer.org>
5203 * tests/Makefile.am : tests/makefile.msc is in CVS for
5204 a long time, finally added to EXTRA_DIST : fixes bug
5205 #141334, John Ehresman
5207 2004-04-30 Matthias Clasen <mclasen@redhat.com>
5209 * === Released 2.4.1 ===
5211 * configure.in: Version 2.4.1, interface age 1.
5215 2004-04-29 Federico Mena Quintero <federico@ximian.com>
5219 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): New
5220 function; moved the code over from
5221 remove_bookmark_button_clicked_cb().
5222 (remove_selected_bookmarks): Now, getting a non-removable bookmark
5223 is not an error, as we may be called as a result of hitting the
5225 (shortcuts_key_press_event_cb): New handler; delete the bookmark
5226 if the user presses Backspace, Delete, or KP_Delete.
5228 2004-04-29 Matthias Clasen <mclasen@redhat.com>
5230 * gtk/gtkaction.c (closure_accel_activate): Use
5231 _gtk_action_emit_activate() instead of directly
5232 emitting the activate signal. (#141429, Jody Goldberg)
5234 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
5235 Warn people when the accelerator can not be
5236 parsed. (#141429, Jody Goldberg)
5238 2004-04-29 Matthias Clasen <mclasen@redhat.com>
5240 * tests/testentrycompletion.c (main): Add a missing
5241 cat. (#141070, Chris Sherlock)
5243 * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused
5244 variable. (#141022, Chris Sherlock)
5246 * gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing
5247 cast. (#141013, Chris Sherlock)
5249 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove
5250 unused variable. (#141011, Chris Sherlock)
5252 2004-04-29 Tor Lillqvist <tml@iki.fi>
5254 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
5255 leak. (#140775, John Ehresman)
5257 Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de>
5259 * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
5260 to index the cached gcs, not depth. (#139494)
5262 2004-04-28 Matthias Clasen <mclasen@redhat.com>
5264 * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.
5266 Sun Apr 25 15:36:02 2004 Soeren Sandmann <sandmann@daimi.au.dk>
5268 * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget): Fix
5269 cut'n'paste-o from previous commit. (#141046, Torsten Schoenfeld).
5271 2004-04-24 Theppitak Karoonboonyanan <thep@linux.thai.net>
5273 Patch to add support for string conversion callbacks to
5274 GtkIMContextXIM (#101814)
5276 * modules/input/gtkimcontextxim.c: Set the string conversion callback
5277 if supported by the XIC.
5279 (struct _GtkIMContextXIM): Add string_conversion_callback member.
5281 (struct _GtkXIMInfo, setup_im): Check and keep flag inidicating
5282 whether string conversion callback is supported.
5284 (gtk_im_context_get_ic, +set_string_conversion_callback,
5285 +string_conversion_callback): Also initialize string conversion
5286 callback, if supported, along with the IC initialization.
5288 * modules/input/imxim.c: Make "xim" module default for Thai as well.
5290 2004-04-23 Matthias Clasen <mclasen@redhat.com>
5292 * gtk/gtkclipboard.c (gtk_clipboard_wait_for_targets): Correctly
5293 initialize targets. (#139883, John Finlay)
5295 * gdk/gdkdraw.c (gdk_draw_drawable): Small doc improvement.
5297 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
5298 Don't recommend gtk_tree_row_reference_new_proxy(). (#138309,
5301 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_cell_data):
5302 Remove an excessive g_return_if_fail().
5304 * gdk/x11/gdkevents-x11.c (set_user_time): Make set_user_time()
5306 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
5307 _-prefix calls of gdk_x11_window_set_user_time().
5309 2004-04-22 Matthias Clasen <mclasen@redhat.com>
5311 * gtk/gtkuimanager.c (update_node): Make sure the separators
5312 used to demarkate placeholder ends don't show up on
5313 show_all(). (#140496, Murray Cumming)
5315 * gtk/gtkspinbutton.c (spin_button_at_limit): Make spinbuttons
5316 work with negative increments. (#137975, Tim Gerla)
5318 Wed Apr 21 21:38:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
5320 * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
5321 gtk_tool_button_set_icon_widget): Remove the old widget from the
5322 tool button before overwriting it with the new widget.
5324 (#140508, Todd Goyen)
5326 2004-04-22 Tor Lillqvist <tml@iki.fi>
5328 Fix the file chooser on Windows. I can't make it misbehave or
5329 crash any more now. But presumably there are still corner cases
5330 not handled. I haven't really checked behaviour of UNC paths, for
5333 * gtk/gtkfilesystemwin32.c: Accept both backslash and slash in
5334 several places. Use G_IS_DIR_SEPARATOR macro (which could be added
5337 (gtk_file_system_win32_get_parent): Like the Unix version, assert
5338 filename is absolute, and avoid one unnecessary string allocation
5341 (canonicalize_filename,gtk_file_system_win32_parse): Handle drive
5342 letters more correctly.
5344 (gtk_file_system_win32_render_icon): Assure correct syntax is used
5345 for root folder of a drive. (#137962, Morten Welinder)
5347 (filename_is_some_root): New function that accepts also root
5348 without any drive specified.
5350 (filename_is_drive_root): Rename from filename_is_root.
5352 * gtk/gtkfilechooserentry.c (completion_match_func): Casefold on
5355 2004-04-21 Matthias Clasen <mclasen@redhat.com>
5357 * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the
5358 completion window if there are no completions anymore.
5360 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
5361 Don't call gtk_tree_view_scroll_to_cell() on an empty tree view.
5362 It doesn't like that. (#140642, Christian Persch)
5364 * demos/gtk-demo/expander.c (do_expander): A new demo.
5366 * demos/gtk-demo/Makefile.am (demos): Add expander.c.
5368 2004-04-20 Matthias Clasen <mclasen@redhat.com>
5370 * gtk/gtktextview.c (gtk_text_view_allocate_children): Make
5371 sure anchored children get size allocated, even if the layout
5372 is valid. (#122323, Andrew E. Makeev)
5373 (gtk_text_view_scroll_pages):
5374 (gtk_text_view_scroll_hpages): Don't scroll to cursor position
5375 if we already have pending scrolls. Bandaid fix for #78513.
5377 Mon Apr 19 17:59:17 2004 Owen Taylor <otaylor@redhat.com>
5379 * INSTALL.in: Update libpng and libjpeg URLs, remove
5380 note about building without since that's not the normal
5383 Sun Apr 11 09:45:11 2004 Owen Taylor <otaylor@redhat.com>
5385 * gtk/gtkicontheme.c (load_themes): Fix a couple of typos in
5386 handling of SVG/non-SVG unthemed icons.
5388 2004-04-19 Morten Welinder <terra@gnome.org>
5390 * gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
5393 2004-04-19 Matthias Clasen <mclasen@redhat.com>
5395 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
5396 Don't stop the iteration up to the tag_root too
5397 early. (#109945, Dongho Shin)
5399 Sun Apr 18 17:06:03 2004 Soeren Sandmann <sandmann@daimi.au.dk>
5401 * gdk/x11/gdkkeys-x11.c (get_effective_keymap): Make
5402 gdk_keymap_translate_keyboard_state() handle NULL
5403 keymaps. (#139715, Torsten Schoenfeld).
5405 Sun Apr 18 16:59:21 2004 Soeren Sandmann <sandmann@daimi.au.dk>
5407 * configure.in: Don't erase GDK_EXTRA_CFLAGS. Fixes bug 139586,
5408 reported by Pedro RODRIGUEZ, about compilation problems when
5409 Xcursor is installed in a non-standard location.
5411 Sun Apr 18 16:15:15 2004 Soeren Sandmann <sandmann@daimi.au.dk>
5413 Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah
5416 * gdk/x11/gdkwindow-x11.[ch]: Add new internal function
5417 _gdk_x11_set_user_time() to set the _NET_WM_USER_TIME property.
5419 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add user_time field
5421 * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_USER_TIME to list of
5424 * gdk/x11/gdkinput-x11.c, gdk/x11/gdkevents-x11.c: Set the
5425 property on user interaction.
5427 2004-04-15 Federico Mena Quintero <federico@ximian.com>
5429 * gtk/gtkfilesel.c (open_new_dir): Tell the user to use
5430 G_FILENAME_ENCODING, not G_BROKEN_FILENAMES. Fixes #114065.
5432 * gtk/gtkfilechooserdefault.c (split_uris): Use a variant of the
5433 code from gtkfilesel.c to parse a "text/uri-list" blob. Fixes
5436 2004-04-15 Matthias Clasen <mclasen@redhat.com>
5438 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
5439 * gtk/gtkbutton.c (gtk_button_class_init): Doc fixes.
5441 2004-04-14 Matthias Clasen <mclasen@redhat.com>
5443 * gtk/gtkcombobox.c:
5445 Make all style properties readonly.
5447 2004-04-14 Matthias Clasen <mclasen@redhat.com>
5449 * gtk/gtkcolorsel.c: Add a11y relations between the color
5450 wheel and the spin buttons. (#132745, Padraig O'Briain)
5452 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): Document
5453 the meaning of size == -1.
5455 * gtk/gtkwidget.c (gtk_widget_render_icon): Explicitly accept
5456 a size of -1. (#137436, Brian Cameron)
5458 * gtk/gtkcombobox.c: Make the arrow and separator regular
5459 children of an hbox inside the button, and propagate state
5460 changes from the button to the cell view. (part of the fix
5461 for #138650, should also fix #137535)
5463 * gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
5464 state to gtk_cell_renderer_render() when prelighted. (part
5465 of the fix for #138650)
5467 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5468 Use PRELIGHT state when appropriate. (part of the fix for
5471 * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit
5472 out warnings if called before the combo box is
5473 realized. (#139742, Philip Langdale)
5475 Wed Apr 14 03:45:39 2004 Jonathan Blandford <jrb@gnome.org>
5477 * gtk/gtktreeview.c (gtk_tree_view_expose): propagate expose
5480 Wed Apr 14 03:32:58 2004 Jonathan Blandford <jrb@gnome.org>
5482 * gtk/gtkpathbar.c (make_directory_button): remove spurious
5485 Tue Apr 13 16:19:23 2004 Jonathan Blandford <jrb@redhat.com>
5487 * gtk/gtkpathbar.c (make_directory_button): patch from Owen to
5488 make the buttons sized by a bold label. This makes the text
5489 'swim' a little, but stops the buttons from resizing, #137210
5491 2004-04-13 Matthias Clasen <mclasen@redhat.com>
5493 * gtk/gtkuimanager.c (get_child_node): Don't crash if a node
5495 (start_element_handler): Accept separators without unique
5496 names. (#133302, Anders Carlsson)
5498 * gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
5499 possible accelerator gotcha when using this function. (#139641,
5502 * gtk/gtkuimanager.c (node_remove_ui_reference): Don't leak
5503 list nodes. (#138862, Morten Welinder)
5505 Tue Apr 13 12:24:49 2004 Jonathan Blandford <jrb@redhat.com>
5507 * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
5509 (gtk_tree_view_button_press): If we activated the row we don't
5510 want to grab focus back, as moving focus to another widget is
5511 pretty common, #138458
5513 2004-04-12 Federico Mena Quintero <federico@ximian.com>
5515 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
5516 documentation to all the signals.
5518 2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
5520 * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
5521 model if it is NULL. (#139770)
5523 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
5525 * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
5526 a shadow inside the scrolled window, add it around the vbox.
5528 * gtk/gtkentryprivate.h:
5529 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
5530 Return a boolean indicating whether the popup is positioned above
5531 or below. Scroll the completions to the beginning or the end,
5532 depending on the positioning.
5534 * gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
5535 wrap around in the entry completion popup, and allow GDK_UP to
5536 enter the popup. (#137440)
5538 2004-04-12 Matthias Clasen <mclasen@redhat.com>
5540 * gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is
5541 there before using it.
5543 Sun Apr 11 15:08:45 2004 Jonathan Blandford <jrb@gnome.org>
5545 * gtk/gtktreeprivate.h: Moved search entries into priv data.
5547 * gtk/gtktreeview.c: Prep for type-ahead support.
5549 (gtk_tree_view_destroy): Destroy the search window explicitly.
5550 (gtk_tree_view_key_press): Minor change; prep for type-ahead
5551 (gtk_tree_view_ensure_interactive_directory): New function
5552 (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
5553 (gtk_tree_view_real_start_interactive_search): rework
5554 (gtk_tree_view_search_dialog_hide): ditto
5555 (gtk_tree_view_search_delete_event): ditto
5556 (gtk_tree_view_search_button_press_event): ditto
5557 (gtk_tree_view_search_key_press_event): ditto
5558 (gtk_tree_view_search_move): ditto
5559 (gtk_tree_view_search_init): ditto
5561 * gtk/gtktreeviewcolumn.c:
5562 (gtk_tree_view_column_cell_layout_clear): remove unused variable.
5564 * tests/testfilechooser.c: (main): change
5566 2004-04-11 Hans Breuer <hans@breuer.org>
5568 * gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
5569 the real fix would involve just another small API breakage,
5570 i.e. gdk_spawn_* using GPid not just gint.
5572 * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
5574 2004-04-10 Tor Lillqvist <tml@iki.fi>
5576 * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
5577 If both Shift and CapsLock pressed, ignore the shift only for
5578 letters (that would have been affected by the CapsLock). (#139095)
5580 * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
5581 seems to be even buggier now than it used to be. (#138341)
5582 Initialize _gdk_input_ignore_wintab to TRUE.
5584 * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
5585 GDK_USE_WINTAB environment variable to turn on tablet support.
5587 2004-04-09 Christian Persch <chpe@cvs.gnome.org>
5589 * gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
5590 (gtk_ui_manager_remove_action_group): Terminate
5591 g_object_[dis]connect() calls with NULL instead of 0.
5594 2004-04-09 Guntupalli Karunakar <karunakar@freedomink.org>
5596 * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
5598 2004-04-07 Federico Mena Quintero <federico@ximian.com>
5602 * gtk/gtkfilesystem.c (gtk_file_system_parse): Ensure that the
5603 passed-in 'str' is not NULL.
5605 * gtk/gtkfilesystemunix.c (expand_tilde): New helper function;
5606 expands "~/" or "~foo/" at the beginning of a filename.
5607 (gtk_file_system_unix_parse): Use expand_tilde() before doing
5610 * gtk/gtkfilechooserentry.c
5611 (gtk_file_chooser_entry_maybe_update_directory): Take in a
5612 force_reload argument.
5613 (gtk_file_chooser_entry_changed): If gtk_file_system_parse()
5614 returns an error, set the file_part_pos to -1.
5615 (load_directory_callback): Only populate the model if the
5616 file_part_pos is not -1.
5618 2004-04-06 Pablo Saratxaga <pablo@mandrakesoft.com>
5620 * configure.in: Added Icelandic (is) to ALL_LINGUAS
5622 2004-04-05 Federico Mena Quintero <federico@ximian.com>
5624 * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a
5625 title for SAVE and CREATE_FOLDER modes. Fixes #137272.
5627 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Look
5628 for G_DIR_SEPARATOR in the display_name, and err out if it is
5629 present; use the same error message as Nautilus. Fixes #136467.
5631 * gtk/gtkfilechooserdefault.c (file_pane_create): Make the
5632 new-folder button say "Create Fo_lder" rather than "Create
5633 _Folder", so that the mnemonic doesn't conflict with the "Save in
5634 _folder" label. Fixes #136975.
5636 2004-04-05 Federico Mena Quintero <federico@ximian.com>
5638 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Ref/sink the
5639 buttons. Also, free them correctly upon failure. Based on a
5640 patch by Morten Welinder, fixes #137956.
5642 2004-04-05 Anders Carlsson <andersca@gnome.org>
5644 * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
5646 Fri Apr 2 17:57:33 2004 Jonathan Blandford <jrb@redhat.com>
5648 * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set the height
5649 correctly for fixed height when inserting a node, #138082
5651 2004-04-01 Federico Mena Quintero <federico@ximian.com>
5655 * gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
5656 "child_is_hidden" boolean argument to the "path-clicked" signal.
5658 * gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
5660 (make_directory_button): Take a file_is_hidden argument; put it in
5662 (_gtk_path_bar_set_path): See whether each path component path is
5664 (gtk_path_bar_class_init): Add the file_is_hidden argument to the
5665 "path-clicked" signal.
5666 (button_clicked_cb): See if the downwards button represents a
5667 hidden file for the file_is_hidden argument in the signal
5670 * gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
5672 * gtk/gtkfilechooserdefault.c
5673 (gtk_file_chooser_default_select_path): If we fail to switch
5674 folders, don't try to select the path in the file system model.
5675 Also, return the result from _gtk_file_system_model_path_do().
5676 (gtk_file_chooser_default_select_path): Turn on show_hidden in the
5677 file system model if we are asked to select a hidden file.
5678 (path_bar_clicked): Show hidden files based on whether the
5679 immediate downwards folder in the path bar is a hidden file
5681 (struct _GtkFileChooserDefault): Added fields
5682 browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
5683 (create_file_list): Set an object data key of
5684 "GtkFileChooserDefault" on the tree view so that we can find the
5685 impl from the popup menu callbacks. Also, hook up to the
5686 "button-press-event" and "popup-menu" signals in the file list to
5687 bring up a popup menu.
5688 (list_popup_menu_cb): New callback.
5689 (list_button_press_event_cb): New callback.
5693 * gtk/gtkfilesystemmodel.c
5694 (_gtk_file_system_model_new): Oops, connect_object to
5697 2004-03-31 Tor Lillqvist <tml@iki.fi>
5699 * configure.in: Move AC_CANONICAL_HOST earlier, before the check
5700 for native Win32. (#136559, J. Ali Harlow)
5702 * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for
5703 angles. Thanks to Tim Newsham.
5705 2004-03-29 Federico Mena Quintero <federico@ximian.com>
5709 * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
5710 for an ::is_finished_loading() method and a ::finished_loading()
5711 signal at the end of the struct.
5713 * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
5714 "finished-loading" signal.
5715 (gtk_file_folder_is_finished_loading): New function.
5717 * gtk/gtkfilesystemunix.c
5718 (gtk_file_folder_unix_is_finished_loading): Implement.
5720 * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
5721 slot for a "finished-loading" signal.
5722 (gtk_file_system_model_class_init): Create the "finished-loading"
5724 (struct _GtkFileSystemModel): New field
5725 idle_finished_loading_source. We emit the "finished-loading"
5726 signal in an idle if the root folder was done loading right in
5727 _gtk_file_system_model_new(), so that the caller has a chance to
5728 connect to the signal.
5729 (_gtk_file_system_model_new): Connect to the normal signals of the
5730 folder even if the initial _list_children() fails. Also, see if
5731 the folder is finished loading; connect to the "finished-loading"
5733 (gtk_file_system_model_finalize): Remove the idle handler.
5735 * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
5736 and connect to the model's "finished-loading" signal.
5737 (get_toplevel): New helper function.
5738 (error_message): Use get_toplevel().
5739 (trap_activate_cb): Likewise.
5740 (location_popup_handler): Likewise.
5741 (set_busy_cursor): New function.
5742 (browse_files_model_finished_loading_cb): New callback.
5744 2004-03-25 Federico Mena Quintero <federico@ximian.com>
5746 * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
5747 file under the cursor; we don't need the logic from
5748 GtkFileSelection after all. Fixes #132255.
5750 2004-03-25 Federico Mena Quintero <federico@ximian.com>
5752 * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
5753 location entry with the display name of the file under the cursor
5754 for Open mode, or the typed filename in Save mode.
5756 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
5758 * gtk/gtkfilesystemwin32.c
5759 (filename_is_root): Bare drive designators (eg., "c:") are
5760 no longer considered as root filenames. Fixed #137942
5762 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
5764 * gtk/gtkfilesystemwin32.c
5765 (gtk_file_system_win32_create_folder): Invert test for error in
5766 mkdir. Fixes #137945
5768 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
5770 Fixed #138004 using Federico's code from #132327.
5772 * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
5773 folder_hash field to keep a list of live folder objects.
5774 (gtk_file_system_win32_init): Create the folder_hash.
5775 (gtk_file_system_win32_finalize): Destroy the folder_hash.
5776 (gtk_file_system_win32_get_folder): Ref and return an existing
5777 folder if we have it around, otherwise return a new folder object.
5778 (struct _GtkFileFolderWin32): Add a field for the parent file system.
5779 (gtk_file_folder_win32_finalize): Remove the folder from the file
5780 system's hash table.
5781 (gtk_file_system_win32_create_folder): Emit "files-added" on the
5782 newly-created folder's parent. Fixes #138004.
5784 2004-03-24 J. Ali Harlow <ali@juiblex.co.uk>
5786 * gtk/gtkfilesystemwin32.c
5787 (gtk_file_system_win32_get_folder): Test that path is actually
5788 a directory and throw error if not. Fixed bug #137950
5790 2004-03-22 J. Ali Harlow <ali@juiblex.co.uk>
5792 * gtk/gtkfilesystemwin32.c
5793 (gtk_file_system_win32_volume_get_display_name): Ignore empty
5794 volume labels; assume that GetVolumeInformation would fail if
5795 GetVolumeInformationW does; catches a small memory leak;
5796 pass the buffer size to GetVolumeInformationW in wide
5797 characters instead of bytes. Fixes bug #137543
5798 (list_volumes): Cope with the theoretical possibility of
5799 more than 26 logical drives. Fixes bug #137940
5800 (bookmarks_serialize): Now actually removes bookmarks.
5803 2004-03-22 Guntupalli Karunakar <karunakar@freedomink.org>
5805 * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
5807 2004-03-21 Tor Lillqvist <tml@iki.fi>
5809 * gtk/gtkfilesystemwin32.c
5810 (gtk_file_system_win32_volume_get_base_path): Include the
5811 backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
5812 NULL for a volume base path, as g_filename_to_uri() requires an
5813 absolute path, and just a drive letter and colon isn't. (#137543)
5815 2004-03-20 Hans Breuer <hans@breuer.org>
5817 * gtk/gtkfilesystemwin32.c : applied the undisputable and
5818 required [due to recent gtkfilesystem internal api semantic
5819 changes] part of patches to fix bug #137543 (Tor Lillqvist,
5822 * gdk/gdkevents-win32.c (handle_configure_event) :
5823 (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
5824 GdkWindowObject::x, y with screen coords to make
5825 gdk_window_get_position () return the right thing and thus fix
5826 drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
5828 2004-03-19 Federico Mena Quintero <federico@ximian.com>
5830 * Revert the patch to #137520, as 2.4.1 is for conservative bug
5831 fixes only. The patch is attached to the bug report, for
5834 2004-03-19 Morten Welinder <terra@gnome.org>
5836 * gtk/gtkfilechooserdefault.c
5837 (gtk_file_chooser_default_set_current_folder): Test existance of
5838 the path after checking for locality, if needed.
5840 2004-03-19 Federico Mena Quintero <federico@ximian.com>
5844 * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
5845 for an ::is_finished_loading() method and a ::finished_loading()
5846 signal at the end of the struct.
5848 * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
5849 "finished-loading" signal.
5850 (gtk_file_folder_is_finished_loading): New function.
5852 * gtk/gtkfilesystemunix.c
5853 (gtk_file_folder_unix_is_finished_loading): Implement.
5855 * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
5856 slot for a "finished-loading" signal.
5857 (gtk_file_system_model_class_init): Create the "finished-loading"
5859 (struct _GtkFileSystemModel): New field
5860 idle_finished_loading_source. We emit the "finished-loading"
5861 signal in an idle if the root folder was done loading right in
5862 _gtk_file_system_model_new(), so that the caller has a chance to
5863 connect to the signal.
5864 (_gtk_file_system_model_new): Connect to the normal signals of the
5865 folder even if the initial _list_children() fails. Also, see if
5866 the folder is finished loading; connect to the "finished-loading"
5868 (gtk_file_system_model_finalize): Remove the idle handler.
5870 * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
5871 and connect to the model's "finished-loading" signal.
5872 (get_toplevel): New helper function.
5873 (error_message): Use get_toplevel().
5874 (trap_activate_cb): Likewise.
5875 (location_popup_handler): Likewise.
5876 (set_busy_cursor): New function.
5877 (browse_files_model_finished_loading_cb): New callback.
5879 Thu Mar 18 12:10:45 2004 Owen Taylor <otaylor@redhat.com>
5881 * gtk/gtktreeitem.c (gtk_tree_item_forall): Include
5882 eventbox for expander. (#137564, reported by
5885 2004-03-18 Guntupalli Karunakar <karunakar@freedomink.org>
5887 * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
5889 2004-03-17 Morten Welinder <terra@gnome.org>
5891 * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
5892 volumes not actually put into the shortcut list.
5894 * tests/prop-editor.c (object_changed): Plug leak.
5896 * tests/testfilechooser.c (main): Plug some leaks and expose
5899 * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
5900 object. Fixed #136652.
5902 * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
5903 have no screen. Fixes #137260.
5904 (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
5905 thereby fixing leak. Fixes #137259.
5907 * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
5908 slider buttons have been destroyed.
5909 (gtk_path_bar_remove): Make this work for slider buttons too.
5912 2004-03-15 Morten Welinder <terra@gnome.org>
5914 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
5915 Sanitize and plug leak.
5916 (check_icon_theme): Only do something if the widget has a screen.
5918 Wed Mar 17 01:20:28 2004 Matthias Clasen <maclas@gmx.de>
5920 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
5921 Move the repositioning logic from _gtk_entry_completion() popup
5922 over here. Fixes #137355, reported by Niklas Knutsson.