1 Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com>
3 * === Released 2.3.1 ===
5 * NEWS: Updates for 2.3.1
7 * configure.in: Version 2.3.1, interface age 0, binary age 301.
9 * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
10 Rename from gtk_menu_item_real_can_activate_accel() to
11 match GTK+ convention, improve comment.
13 * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
14 can ::can-activate-accel signal.
16 * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
19 * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean
22 * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
25 Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com>
27 * gtk/gtkicontheme.c (find_builtin_icon): Fix a
28 missing 'else'. (#128816, Jorn Baayen)
30 2003-12-02 Michael Meeks <michael@ximian.com>
32 Based on a patch by Martin Kretzschmar; #122448
34 * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
35 implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
36 (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
37 function pointers. Deprecate the global gdk_threads_mutex variable.
39 * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
40 extracted from GTK_THREADS_ENTER/LEAVE macros.
41 (gdk_threads_init): init gtk_threads_[un]lock if not set.
42 (gdk_threads_set_lock_functions): impl.
44 * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
46 Sun Dec 7 23:45:40 2003 Matthias Clasen <maclas@gmx.de>
48 * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
49 icon_theme_builtin_icons hasn't been initialized. (#128726, Diego
52 2003-12-07 Tor Lillqvist <tml@iki.fi>
54 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
55 return value from SendMessage(WM_SETICON). That is the old
56 icon. Fixes GDI resource leak. (#128559, Tim Evans)
58 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
59 have a pointer grab active with a grab cursor set, destroy that
60 cursor to avoid a GDI resource leak. (#128410, Tim Evans)
62 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
64 * configure.in: Added Thai (th) to ALL_LINGUAS.
66 Sat Dec 6 01:42:04 2003 Matthias Clasen <maclas@gmx.de>
68 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
69 RTL flipping for GtkAlignment. (#127585)
71 Sat Dec 6 01:13:09 2003 Matthias Clasen <maclas@gmx.de>
73 * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the
74 popup window when in RTL mode. (#127578)
76 Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
78 * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
79 Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
80 before doing anything to prevent garbage returns.
82 Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
84 * gtk/gtkviewport.c: Implement RTL flipping for
85 GtkViewport: Adjust the "gravity" when resizing
86 This is a bit flickery in RTL mode. (#107526)
88 Sat Dec 6 00:22:14 2003 Matthias Clasen <maclas@gmx.de>
90 * gtk/gtkscrolledwindow.c: Implement RTL flipping for
91 GtkScrolledWindow: the vertical scrollbar shows up on the left
92 side in RTL mode. (#107526)
94 Fri Dec 5 01:58:33 2003 Matthias Clasen <maclas@gmx.de>
96 * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
97 tabs displayed at the top/bottom are rearranged, and tabs on
98 the left/right are displayed at the opposite edge. (#96630)
100 2003-12-04 Mark McLoughlin <mark@skynet.ie>
102 * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
103 gtk_label_set_attributes() take NULL. See bug #128517.
105 2003-12-03 Federico Mena Quintero <federico@ximian.com>
107 * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
109 (completion_idle_callback): Use a temporary list store and re-set
110 it on the completion rather than modifying the old one. We are
111 re-reading the folder anyway, and this gets rid of non-atomicity
114 2003-12-01 Federico Mena Quintero <federico@ximian.com>
116 Decouple impl->current_folder from the selection in the folder
117 tree. This is so that going to /home/federico/.foo (e.g. from a
118 bookmark) will work even if show_hidden == FALSE. The folder tree
119 needs to be fixed in this case to show such folders explicitly.
121 * gtk/gtkfilechooserdefault.c
122 (gtk_file_chooser_default_set_current_folder): When changing
123 folders, do the entry and list model work here, instead of
124 tree_selection_changed().
125 (struct _GtkFileChooserDefault): Added a changing_folder flag
127 (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
129 Tue Dec 2 01:01:54 2003 Matthias Clasen <maclas@gmx.de>
131 * gtk/gtkiconfactory.h: Remove duplicate declaration of
132 gtk_icon_source_set_icon_name(). (#Jeff Franks, #128269)
134 2003-12-01 Federico Mena Quintero <federico@ximian.com>
136 Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
137 bookmarks buttons with the location entry.
139 * gtk/gtkfilechooserdefault.c
140 (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
141 bookmarks buttons and the location entry.
143 2003-12-01 Federico Mena Quintero <federico@ximian.com>
145 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
146 shortcuts tree as a drag destination.
147 (shortcuts_drag_data_received_cb): New callback.
148 (get_file_info): Also fetch information on whether the file is a folder.
149 (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
150 (error_could_not_add_bookmark_dialog): New function.
151 (shortcuts_add_bookmark_from_path): New helper function.
152 (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
153 (shortcuts_row_activated): We no longer need the changing_folder flag.
154 (struct _GtkFileChooserDefault): Likewise.
156 Sun Nov 30 17:31:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
158 * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
159 disappearing placeholders that are still visible.
161 * gtk/gtktoolbar.c: formatting fixes
163 * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
164 disappearing, for placeholders that are going to disappear.
166 * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
168 Sat Nov 29 00:55:28 2003 Jonathan Blandford <jrb@gnome.org>
170 * gtk/gtktreeview.c (gtk_tree_view_new_column_width):
171 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
172 Patch from <chinen@jp.ibm.com> to handle RTL support for column
175 Fri Nov 28 00:26:24 2003 Matthias Clasen <maclas@gmx.de>
177 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize):
178 Don't use freed memory. (#127698, Taavi Talvik)
180 Fri Nov 28 00:09:10 2003 Matthias Clasen <maclas@gmx.de>
182 * gtk/gtkfilechooserentry.c: Remove debug g_print()s.
184 Thu Nov 27 22:17:50 2003 Matthias Clasen <maclas@gmx.de>
186 * gtk/gtkuimanager.c: Remove debug define.
188 Thu Nov 27 16:19:03 2003 Tim Janik <timj@gtk.org>
190 * gtk/gtkmenu.c: allow accel activation depending on sensitivity
191 and the attach widget.
193 * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
194 sensitivity and the parent menu.
196 * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
197 checks whether accelerators may activate a widget. the default handler
198 demands the widget be sensitive and visible+viewable.
200 * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
202 Tue Nov 25 00:10:05 2003 Matthias Clasen <maclas@gmx.de>
204 * gtk/gtkuimanager.c (update_node): Don't show accelerators in
205 popup menus. (#127227)
207 Mon Nov 24 13:47:39 GMT 2003 Tony Gale <gale@gtk.org>
209 * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
211 Mon Nov 24 04:05:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
213 * gtk/gtkradiotoolbutton.[ch]
214 (gtk_radio_tool_button_new_from_widget): Make this function take a
215 GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
218 Mon Nov 24 02:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
220 * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
222 Mon Nov 24 02:19:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
224 * gtk/gtktoolbar.c: remove variable
225 n_overflowed_menu_items_when_dnd_started
227 Mon Nov 24 01:47:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
229 Rework sliding algorithm.
230 - No more weird jumping when items are dragged off and added to
232 - More natural item movement
234 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
235 function is now responsible for calculating intermediate positions
236 during item sliding. It is also responsible for starting sliding
237 if items disappear. Also turn off expanding when there is an
239 (gtk_toolbar_begin_sliding, stop_sliding): New functions.
240 (slide_idle_handler): New function. All the sliding is now done by
241 gtk_toolbar_size_allocate(), so the idle handler now just checks
242 if there is more sliding to be done.
243 (compute_intermediate_allocation, position): new functions
244 calculating intermediate steps in the slide animations. The new
245 animation algorithm uses a constant speed instead of a constant
246 must-be-finished-within time.
247 (struct _ToolbarContent): use
248 GtkAllocation goal_allocation; and
249 GtkAllocation start_allocation; instead of
250 gint start/goal_width;
252 * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
255 Sun Nov 23 22:26:25 2003 Matthias Clasen <maclas@gmx.de>
257 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip
258 positioning Xinerama-aware. (#127332)
260 Fri Nov 21 01:57:21 2003 Matthias Clasen <maclas@gmx.de>
262 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
263 boundaries visible in fake Xinerama mode.
265 Thu Nov 20 15:41:56 2003 Manish Singh <yosh@gimp.org>
267 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
268 for the gtk_widget_hide() call.
270 Thu Nov 20 14:51:41 2003 Jonathan Blandford <jrb@redhat.com>
272 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
273 from David Hampton to fix sorting on booleans.
275 Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
277 * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
278 instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
281 Thu Nov 20 13:10:29 GMT 2003 Tony Gale <gale@gtk.org>
283 * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
285 2003-11-19 Federico Mena Quintero <federico@ximian.com>
287 Fixes to problems reported by Iain Holmes:
289 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
290 throw up an error dialog if the desktop doesn't exist.
291 (error_message): Handle the case where there is no real toplevel
294 (list_model_filter_func): Always let folders pass through (patch
297 Wed Nov 19 23:19:23 2003 Kristian Rietveld <kris@gtk.org>
299 * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
300 to a somewhat more logical place,
301 (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
303 Wed Nov 19 22:15:01 2003 Kristian Rietveld <kris@gtk.org>
305 * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
306 the popup when it is visible, popdown when there are less chars
307 than the minimum key length in the entry,
308 (gtk_entry_completion_changed): popdown when the entry is empty.
310 * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
311 size request of the vscrollbar to (-1, 0), to get a nicely sized
312 completion treeview (Fixes #126573, reported by Piers Cornwell),
313 (_gtk_entry_completion_resize_popup): show/hide the action_view
316 2003-11-19 Federico Mena Quintero <federico@ximian.com>
318 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
319 off the dialog's separator (thanks to Iain Holmes).
321 Wed Nov 19 18:15:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
323 * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
324 * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
325 on items that have a submenu. (#120104).
327 Wed Nov 19 18:11:08 2003 Soeren Sandmann <sandmann@daimi.au.dk>
329 * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
330 "ItemState" field indicating the overflowed-ness etc. of the item.
331 (gtk_toolbar_size_allocate): update the field here.
333 2003-11-19 Federico Mena Quintero <federico@ximian.com>
335 * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
336 to the alignment. Use the HIG-specified spacing between the
337 filter label and the combo.
338 (create_filename_entry): Use HIG-specified spacing between the
339 location label and the entry.
340 (gtk_file_chooser_default_constructor): Don't use vertical padding
341 around the filename entry.
343 2003-11-19 Federico Mena Quintero <federico@ximian.com>
345 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
346 render_icon virtual method.
348 * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
350 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
351 Implement as a stub for now.
353 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
354 gtk_file_system_render_icon().
355 (list_icon_data_func): Likewise.
356 (toolbar_create): Set the toolbar style to icons only.
358 * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
361 Wed Nov 19 02:18:37 2003 Matthias Clasen <maclas@gmx.de>
363 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call
364 gtk_widget_hide(menu) when reattaching the menu. (#126057)
366 Wed Nov 19 00:06:04 2003 Kristian Rietveld <kris@gtk.org>
368 * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
369 only unselect all items if the treeview has focus. (Fixes bug
370 reported by Marco Pesenti Gritti).
372 Tue Nov 18 22:26:30 2003 Kristian Rietveld <kris@gtk.org>
374 * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
375 number of actions is "matches + actions - 1". (Fixes #126572).
377 Tue Nov 18 21:05:05 2003 Christian Persch <chp@cvs.gnome.org>
379 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
382 Tue Nov 18 20:51:38 2003 Kristian Rietveld <kris@gtk.org>
384 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
385 try to fetch the child back, since we do know that it is already
386 gone by now (#126493, Marco Pesenti Gritti).
388 Tue Nov 18 19:47:59 2003 Kristian Rietveld <kris@gtk.org>
390 Fixes based on comments from Owen Taylor, #125264.
392 * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
394 (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
396 (gtk_cell_view_get_size_of_row): new function,
397 (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
398 (gtk_cell_view_set_values), (gtk_cell_view_set_model),
399 (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
400 s/cellview/cell_view/ in the function definitions, so they match
401 with the header file.
403 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
404 flag again (:, and use gtk_cell_view_get_size_of_row instead of
405 the measurer, remove _set_size_request call,
406 (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
407 instead of the measurer,
408 (gtk_combo_box_style_set): queue a resize,
409 (gtk_combo_box_size_request): update of _remeasure call,
410 (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
411 (gtk_combo_box_cell_layout_pack_end),
412 (gtk_combo_box_cell_layout_clear),
413 (gtk_combo_box_set_model): get rid of the measurer,
414 (gtk_combo_box_cell_layout_add_attribute),
415 (gtk_combo_box_cell_layout_set_cell_data_func),
416 (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
417 resize instead of calling _remeasure.
419 Mon Nov 17 16:25:04 2003 Manish Singh <yosh@gimp.org>
421 * gdk-pixbuf/Makefile.am
422 * modules/input/Makefile.am: Use install-data-hook for
423 gdk-pixbuf.loaders and gtk.immodules install generation targets.
426 * gtk/gtkexpander.h: Apply missing declarations from #124449.
428 Tue Nov 18 00:12:55 2003 Matthias Clasen <maclas@gmx.de>
430 Fix for #119555, Peter Zelezny:
432 * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
433 * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
434 by removing the _ prefix.
435 * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
436 gdk/gdkwindow.c: Adjust all callers.
438 Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
440 * gtk/gtkaction.c (gtk_action_activate): Only activate if
441 the action is sensitive. (#127187, Christian Persch)
443 Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
445 * gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
447 Mon Nov 17 22:56:09 2003 Kristian Rietveld <kris@gtk.org>
449 * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
451 * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
452 mapped, else resize_popup.
454 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
455 (_gtk_entry_completion_popup): moved all popup resizing code to
456 _gtk_entry_completion_resize_popup, and show the window when there
457 are more than zero items in the completion list again (sigh).
459 2003-11-17 Mark McLoughlin <mark@skynet.ie>
461 Patch from Jaiserca <jaiserca@inf.upv.es> to add a
462 "use_markup" property. See bug #124449.
465 (gtk_expander_class_init),
466 (gtk_expander_init), (gtk_expander_set_property),
467 (gtk_expander_get_property), (gtk_expander_set_label),
468 (gtk_expander_set_use_markup), (gtk_expander_get_use_markup):
469 Add a "use_markup" property and use it when creating the
472 Mon Nov 17 12:58:32 2003 Kristian Rietveld <kris@gtk.org>
474 Temporary size requisition fix. Will fix it for real tonight.
476 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
477 (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
478 a good width for the child,
479 (gtk_combo_box_cell_layout_add_attribute),
480 (gtk_combo_box_set_cell_data_func),
481 (gtk_combo_box_cell_layout_clear_attributes): update.
483 Mon Nov 17 00:11:21 2003 Kristian Rietveld <kris@gtk.org>
485 Fixes #124373, Murray Cumming.
487 * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
488 is no longer construct only,
489 (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
490 (gtk_combo_box_menu_fill): new functions,
491 (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
492 (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
493 (gtk_combo_box_list_destroy): updated,
494 (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
496 (gtk_combo_box_set_model): is now public, updated,
497 (gtk_combo_box_get_model): small update.
499 * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
500 text_column property is no longer construct only,
501 (gtk_combo_box_entry_set_text_column): now public,
502 (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
503 new/changed functions.
505 * tests/testcombo.c: updated.
507 Sun Nov 16 22:50:58 2003 Matthias Clasen <maclas@gmx.de>
509 Reinstate fixes for (#124212, Marco Pesenti Gritti):
511 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
513 (_gtk_menu_is_empty): Return FALSE for non-menus.
515 Sun Nov 16 21:48:40 2003 Kristian Rietveld <kris@gtk.org>
517 * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
518 gtk_cell_view_cell_layout_clear instead of trying to free the
519 structure ourselves here. (#125726, Morten Welinder).
521 Sun Nov 16 00:35:29 2003 Matthias Clasen <maclas@gmx.de>
523 * gtk/gtkfilechooser.[hc]:
524 * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
527 2003-11-15 Hans Breuer <hans@breuer.org>
529 * gdk/makefile.msc gdk/gdk.def
530 gtk/gtk.def gtk/makefile.msc.in : updated
531 * tests/makefile.msc : added all the new tests
533 * gtk/gtkfilefilter.c(finalize) : initialize filter
534 from object not from itself
536 * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
537 modified as less as posible to have aworking implementation
538 on win32. There maybe the desire to merge the unchanged pats into
540 Also implemented a simple glib based bookmark handling, which
541 is currently missing in gtkfilesystemunix.[hc] but can be copied
543 * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
545 * gdk/win32/gdkwindow-win32.c : implement
546 gdk_window_set_keep_above() and gdk_window_set_keep_below()
548 * tests/testmerge.c : don't include unistd.h unconditionally,
549 #define STDOUT_FILENO if it isn't defined
551 * tests/testfilechooser.c : make it compile on win32
553 2003-11-15 Tor Lillqvist <tml@iki.fi>
555 * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
556 maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
558 Thu Nov 13 12:55:29 GMT 2003 Tony Gale <gale@gtk.org>
560 * docs/faq/gtk-faq.sgml: Update the rest of Section 2
562 Thu Nov 13 01:46:32 2003 Matthias Clasen <maclas@gmx.de>
564 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use
565 GTK_DATADIR/{icons,pixmaps} instead of
566 GTK_DATA_PREFIX/{icons,pixmaps}. (#123365, Marco Pesenti Gritti)
568 Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
570 Changes to improve menu positioning on Xinerama (#108328, #126150):
572 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
573 window of the menuitem to determine the monitor. This fixes some
575 * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
576 to store the monitor on which the menu is to be positioned.
578 * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
579 in the GtkMenuPrivate struct and fetch the monitor geometry after
580 calling the position_func, in case it has been changed.
582 * gtk/gtkmenu.c (gtk_menu_set_monitor): New function
583 to be used in GtkMenuPositionFunc implementations for setting
584 the monitor_num field in GtkMenuPrivate.
586 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call
587 gtk_menu_set_monitor.
589 Wed Nov 12 21:00:10 2003 Matthias Clasen <maclas@gmx.de>
591 * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
592 label for the empty list. String change. (#95446, Tomas Ã
\96gren)
594 Wed Nov 12 20:57:50 2003 Matthias Clasen <maclas@gmx.de>
596 * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
597 the definition of the values. (#123361, Marco Pesenti Gritti)
599 Wed Nov 12 20:54:02 2003 Matthias Clasen <maclas@gmx.de>
601 * gdk/gdkkeyuni.c: Map KP_Separator to ','.
602 (#122941, Egmont Koblinger)
604 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
606 *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
607 opacity entry widget. Change tooltip for opacity widgets. (#126426)
609 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
611 * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
612 affect window menu position when popped from keyboard. (#102660)
614 Wed Nov 12 01:29:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
616 * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
617 are using the old API, make all items "is_important". That way
618 BOTH_HORIZ will continue to show both icon and label in old API
621 Mon Nov 10 00:40:41 2003 Matthias Clasen <maclas@gmx.de>
623 * gtk/gtkeventbox.c (gtk_event_box_set_above_child):
624 Remember the new value in all cases. (#126276, Damon Chaplin)
626 Sat Nov 8 23:06:02 2003 Matthias Clasen <maclas@gmx.de>
628 * demos/gtk-demo/main.c (row_activated_cb): Call the do_
629 functions with the toplevel as argument.
631 * demos/gtk-demo/geninclude.pl.in: Change the signature
632 of GDoDemoFunc to take a widget argument
634 * demos/gtk-demo/ui_manager.c (do_ui_manager):
635 * demos/gtk-demo/tree_store.c (do_tree_store):
636 * demos/gtk-demo/textview.c (do_textview):
637 * demos/gtk-demo/stock_browser.c (do_stock_browser):
638 * demos/gtk-demo/sizegroup.c (do_sizegroup):
639 * demos/gtk-demo/pixbufs.c (do_pixbufs):
640 * demos/gtk-demo/panes.c (do_panes):
641 * demos/gtk-demo/menus.c (do_menus):
642 * demos/gtk-demo/list_store.c (do_list_store):
643 * demos/gtk-demo/images.c (do_images):
644 * demos/gtk-demo/hypertext.c (do_hypertext):
645 * demos/gtk-demo/editable_cells.c (do_editable_cells):
646 * demos/gtk-demo/drawingarea.c (do_drawingarea):
647 * demos/gtk-demo/dialog.c (do_dialog):
648 * demos/gtk-demo/colorsel.c (do_colorsel):
649 * demos/gtk-demo/changedisplay.c (do_changedisplay):
650 * demos/gtk-demo/button_box.c (do_button_box):
651 * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
652 as argument, and make new windows or dialogs appear on the
653 same screen. (#80388)
655 Sat Nov 8 21:59:30 2003 Matthias Clasen <maclas@gmx.de>
657 * gtk/gtkeventbox.c (gtk_event_box_class_init): Let
658 visible-window default to TRUE, as documented and
659 implemented. (#126270 Damon Chaplin)
661 Sat Nov 8 01:50:17 2003 Matthias Clasen <maclas@gmx.de>
663 * gtk/gtkicontheme.c:
664 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new):
665 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new):
666 * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
669 2003-11-07 Federico Mena Quintero <federico@ximian.com>
671 Changing GtkFileChooserEntry to use GtkEntryCompletion.
673 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
674 a GtkListStore for the completion list. Create a
675 GtkEntryCompletion and attach it to the chooser entry.
676 (gtk_file_chooser_entry_finalize): Unref the completion store.
677 (completion_match_func): New callback for the GtkEntryCompletion.
678 (completion_idle_callback): Fill the completion store with filenames.
680 Fri Nov 7 22:55:49 2003 Matthias Clasen <maclas@gmx.de>
682 * gtk/gtkwindow.c (gtk_window_set_role):
683 * gtk/gtkwindow.c (gtk_window_set_title):
684 * gtk/gtkwidget.c (gtk_widget_set_name):
685 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title):
686 * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
687 safe for self-assignment. (#122745, Soeren Sandmann)
689 Thu Nov 6 20:41:40 2003 Matthias Clasen <maclas@gmx.de>
691 * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
692 (#126369, Olexiy Avramchenko)
694 Thu Nov 6 00:21:41 2003 Matthias Clasen <maclas@gmx.de>
696 * gtk/gtkcolorbutton.c (gtk_color_button_init):
697 * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the
698 consistency of titles. (#126193, Damon Chaplin)
700 Wed Nov 5 22:49:36 2003 Matthias Clasen <maclas@gmx.de>
702 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off
703 menus to be transient for the toplevel they were torn off from.
704 (gtk_menu_get_toplevel): Auxiliary function to find the
705 toplevel of a menu. (#54775, Jon-Kare Hellan)
707 Wed Nov 5 21:07:58 2003 Matthias Clasen <maclas@gmx.de>
709 * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
710 min-position and max-position. (#58431, Padraig O'Briain)
712 Wed Nov 5 21:02:26 2003 Matthias Clasen <maclas@gmx.de>
714 * gtk/gtkcolorsel.c (update_color):
715 (make_label_spinbutton):
716 (adjustment_changed): Change the ranges for Saturation and
717 Value to be 0-100 instead of 0-255, since these axes of HSV
718 are usually expressed in percent. (#121519, Gregory Merchan)
720 Wed Nov 5 08:51:48 GMT 2003 Tony Gale <gale@gtk.org>
722 * docs/faq/gtk-faq.sgml: More 2.x updates
724 Tue Nov 4 15:00:33 GMT 2003 Tony Gale <gale@gtk.org>
726 * docs/faq/gtk-faq.sgml: More 2.x updates, fix
727 pkg-config command error, update copyright.
729 2003-11-03 Federico Mena Quintero <federico@ximian.com>
731 * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
732 well. Use a helper function.
733 (shortcuts_append_home): Display an error box if necessary.
734 (shortcuts_append_desktop): Likewise.
735 (add_bookmark_button_clicked_cb): Likewise.
736 (gtk_file_chooser_default_select_path): Likewise.
737 (entry_activate): Likewise.
738 (shortcuts_append_paths): New helper function.
739 (shortcuts_append_file_system_roots): Use
740 shortcuts_append_paths().
741 (shortcuts_append_bookmarks): Likewise.
743 Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
745 * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
747 (update_smart_separators): Remove some unneeded ifs.
749 Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
751 * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
752 these usable in C++. Forgot this file in my Oct 11 commit.
754 2003-11-03 Federico Mena Quintero <federico@ximian.com>
756 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
757 icon to the "Add bookmark" button.
759 * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
760 * gtk/gtkfilesystemmodel.c: Likewise.
761 * gtk/gtkfilechooser.c: Likewise.
762 * gtk/gtkfilechooserdefault.c: Likewise.
764 Mon Nov 3 20:56:28 2003 Matthias Clasen <maclas@gmx.de>
767 * gdk/gdkinternals.h:
768 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
769 GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
770 Xinerama mode when no actual Xinerama setup is found.
772 2003-11-03 Federico Mena Quintero <federico@ximian.com>
774 * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
775 (create_shortcuts_tree): Don't call the above.
776 (bookmarks_changed_cb): Likewise.
777 (tree_selection_changed): Unselect everything from the shortcuts
778 list. This is the behavior that Mac OS has.
779 (toolbar_add_item): Return the item.
780 (toolbar_create): Store the up_button in the impl structure.
781 (toolbar_check_sensitivity): New function to set the sensitivity
782 of the "Up" button in the toolbar.
783 (tree_selection_changed): Call toolbar_check_sensitivity().
785 2003-11-02 Federico Mena Quintero <federico@ximian.com>
787 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
788 not set a border width for the toplevel container.
789 (toolbar_create): New function; create a simple toolbar for the
791 (gtk_file_chooser_default_constructor): Use a spacing of 12 for
792 the table, as per the HIG.
793 (gtk_file_chooser_default_init): Likewise, for the default
794 implementation's vbox.
796 * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
797 note that NULL is a valid return value for the parent path.
799 Sat Nov 1 14:59:27 2003 Owen Taylor <otaylor@redhat.com>
801 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated):
802 Change on activation, not selection change (temporary
803 workaround for #125955, needed for keynav, likely
804 the right UI anyways.)
806 * gtk/gtkfilechooserdefault.c (shortcuts_select_func):
807 Don't allow the separator node to be selected.
809 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
810 Set the focus chain so that the entry gets focused first.
811 (Not really right after initial focusing, maybe we
812 should just have a gtk_file_chooser_focus_entry() that
813 we call from gtk_file_chooser_dialog on creation.)
815 Sat Nov 1 12:41:04 2003 Owen Taylor <otaylor@redhat.com>
817 * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
818 residual call to gtk_window_get_private().
820 Sat Nov 1 09:10:13 2003 Owen Taylor <otaylor@redhat.com>
822 * gtk/gtkwindow.[ch]: Move above_initially, below_initially
823 into GtkWindowPrivate structure, fixing ABI breakage
824 on Win32. (Hans Breuer). Switch GtkWindowPrivate over
825 to instance-private-data.
827 Fri Oct 31 02:43:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
829 * gtk/gtktoolbar.c (get_item_requisition): delete this function
830 (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
831 instead of re-calculating for each item.
832 (gtk_toolbar_size_allocate): Update comments
834 Thu Oct 30 22:04:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
836 * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
837 placeholders when include_internals is TRUE.
839 Thu Oct 30 17:57:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
841 * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
842 item 0 is a placeholder. (#125826)
843 * tests/testtoolbar.c: add an assertion that
844 gtk_toolbar_get_nth_item (0) != NULL
846 Thu Oct 30 17:40:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
848 * gtk/gtktoolbar.c (logical_to_physical): Make it work for
849 logical == 0.(#125826)
851 Thu Oct 30 16:20:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
853 * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
854 return the index of a real item.
855 (get_nth_item) assert that the returned items is not a
856 placeholder. (#125826, Marco Pesenti Gritti).
858 2003-10-29 Federico Mena Quintero <federico@ximian.com>
860 * gtk/gtkcellrendererseptext.c
861 (gtk_cell_renderer_sep_text_render): Only paint a separator if the
862 text is NULL, rather than also doing it if it is an empty string.
864 Wed Oct 29 15:40:26 2003 Owen Taylor <otaylor@redhat.com>
866 * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
867 gtk_message_dialog_new_with_format): Allow NULL
868 for message_format, as described in the docs and
869 as worked previously. (#125759, Richard Hult)
871 * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
872 Use g_markup_vprintf_escaped() to escape arguments.
874 * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
875 so there is some way to set literal markup.
877 Wed Oct 29 15:01:32 2003 Owen Taylor <otaylor@redhat.com>
879 * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
880 the call to gdk_error_trap_pop() to the right place,
881 fixing a problem where we'd pop() too many times
882 when bailing out. (#123302, Thomas Leonard)
884 Wed Oct 29 12:50:02 2003 Owen Taylor <otaylor@redhat.com>
886 * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
887 Fix infinite recursion. (#125679, Christian Persch)
889 Wed Oct 29 13:29:15 GMT 2003 Tony Gale <gale@gtk.org>
891 * docs/faq/gtk-faq.sgml: further 2.x updates:
892 mirrors,compiling,g_main_context_iteration
894 Wed Oct 29 02:54:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
896 * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
897 function; remove gtk_toolbar_highlight_drop_location() and
898 gtk_toolbar_unhighlight_drop_location().
900 Also fix bug where the number of overflowed items were miscounted.
902 Tue Oct 28 12:20:16 2003 Owen Taylor <otaylor@redhat.com>
904 * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
905 some accidentally committed duplicate code.
907 Tue Oct 28 17:06:17 GMT 2003 Tony Gale <gale@gtk.org>
909 * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
911 Tue Oct 28 10:34:24 2003 Owen Taylor <otaylor@redhat.com>
913 * gtk/gtkwindow.[ch] (gtk_window_is_active,
914 gtk_has_toplevel_focus): Add getters corresponding to
915 the is_active and has_toplevel_focus properties.
918 2003-10-28 Mark McLoughlin <mark@skynet.ie>
921 (gtk_expander_class_init): hook up the destroy handler.
922 (gtk_expander_destroy), (gtk_expander_unrealize):
923 remove the expand/collapse timeout on destroy instead
924 of unrealize to avoid leaving the expander in a inconsistent
925 state when unrealizing during animation.
926 (gtk_expander_start_animation): remove realized check.
927 (gtk_expander_set_expanded): if the widget isn't realized,
930 Tue Oct 28 09:44:16 2003 Owen Taylor <otaylor@redhat.com>
932 * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
933 do nothing when recipient is NULL, as described in the
934 doc comment. (#123107, Thomas Leonard)
936 Tue Oct 28 09:21:29 2003 Owen Taylor <otaylor@redhat.com>
938 * gtk/gtkmain.c (gtk_check_version): Move docs inline,
939 rewrite docs, mention memory management for the return
940 value. (Partly addresses #125549, Michael Natterer)
942 2003-10-28 Padraig O'Briain <padraig.obriain@sun.com>
944 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
945 Change index to filter_index to fix compilation error.
947 * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
949 Mon Oct 27 15:47:58 2003 Manish Singh <yosh@gimp.org>
951 * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
952 we have RandR support, for XRRUpdateConfiguration declaration.
954 * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
957 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
958 length a gsize variable, since that's what g_file_get_contents()
961 Mon Oct 27 12:18:49 2003 Owen Taylor <otaylor@redhat.com>
963 * NEWS: Fix attribution for above/below EWMH work.
965 Sat Oct 25 23:30:13 2003 Matthias Clasen <maclas@gmx.de>
967 * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name"
968 as a construct-only property. (#125475, Murray Cumming)
970 Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
972 Fix bug 116297 and 125472
974 * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
975 this function take an index and a GtkToolItem.
977 * tests/testtoolbar.c (main): Make "Show Arrow" default to
978 true. Make one of the separators !draw and expand.
979 Update for new highlight_drop_location() API.
981 * gtk/gtktoolitem.[ch]: Remove "pack_end" property
983 * gtk/gtktoolbar.h: Formatting fixes.
985 * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
986 separator tool items to expand.
987 (logical_to_physical, physical_to_logical): Fix off-by-one errors
988 (Fix #125472, Marco Pesenti Gritti)
990 * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
991 (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
992 return FALSE, not TRUE.
993 (gtk_separator_too_item_{set|get}_property,
994 (gtk_separator_tool_item_{set|get}_draw): new functions
996 Fri Oct 24 16:54:04 2003 Owen Taylor <otaylor@redhat.com>
998 * === Released 2.3.0 ===
1000 * configure.in: Remove a stray comma.
1002 * README.in: Fix a few notes about Xft 1 and pango-1.0.
1004 * NEWS: Finish updates for 2.3.0.
1006 * po/Makefile.in.in: Update to latest GLib version.
1008 Fri Oct 24 20:31:35 2003 Kristian Rietveld <kris@gtk.org>
1010 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
1011 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
1012 gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
1013 under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
1016 Fri Oct 24 20:22:40 2003 Kristian Rietveld <kris@gtk.org>
1018 * gtk/gtktreemodelfilter.h: add padding to the class structure.
1020 2003-10-23 Federico Mena Quintero <federico@ximian.com>
1022 * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
1023 (gtk_file_chooser_remove_filter): Likewise.
1024 (gtk_file_chooser_select_all): Added docs.
1025 (gtk_file_chooser_unselect_all): Likewise.
1027 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
1029 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
1031 Thu Oct 23 23:22:15 2003 Matthias Clasen <maclas@gmx.de>
1033 * gtk/gtkfilefilter.c:
1034 * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
1036 Thu Oct 23 22:33:47 2003 Matthias Clasen <maclas@gmx.de>
1038 * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
1040 Thu Oct 23 21:49:05 2003 Matthias Clasen <maclas@gmx.de>
1042 * NEWS: Remove a few duplicates, group the menu changes.
1044 Thu Oct 23 21:12:50 2003 Kristian Rietveld <kris@gtk.org>
1046 * NEWS: Updates for 2.3.0; changed header to match the style we used
1049 Thu Oct 23 20:47:44 2003 Matthias Clasen <maclas@gmx.de>
1051 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
1052 assign the new leader. (#125168, Mariano Suarez-Alvarez)
1054 Thu Oct 23 20:21:16 2003 Kristian Rietveld <kris@gtk.org>
1056 * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
1057 gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
1058 gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
1060 Thu Oct 23 15:13:56 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1062 * NEWS: Partial update for 2.3.0.
1064 Thu Oct 23 01:09:04 2003 Owen Taylor <otaylor@redhat.com>
1066 * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
1069 Wed Oct 22 23:20:04 2003 Owen Taylor <otaylor@redhat.com>
1071 * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
1072 gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
1073 gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
1074 Basic framework for the new file selector widget.
1076 * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
1077 gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
1078 Initial implementation of the GtkFileChooser user interface.
1080 * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
1083 * configure.in gtk/Makefile.am gtk/xdgmime: Build code
1084 for freedesktop.org MIME system on Unix.
1086 * tests/testfilechooser.c: Test program for GtkFileChooser
1088 * tests/prop-editor.c: Add support for properties on interfaces.
1090 Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
1092 * demos/gtk-demo/menus.c (do_menus): Fix some unused
1095 * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
1098 Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
1100 * NEWS: Partial update for 2.3.0.
1102 Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
1104 * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
1105 ctrl_pressed and shift_pressed according to the current event
1106 state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
1108 Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
1110 * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
1111 timeout when the user pressed on Enter/ESC. Fixes the bug where the
1112 completion popup popped up after the user pressed on Enter (which is
1113 just weird). Reported by the Epiphany people (all of them).
1115 Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1117 Add support for OS X like sliding of toolbar items during drag and
1118 drop, (#110919, Dave Bordoley)
1120 Make dnd highlighting the responsibility of the
1121 application. (Fixes #116298, Owen Taylor)
1123 * gtk/gtktoolbar.h: Add prototypes for new API.
1126 (physical_to_logical, logical_to_physical): new functions
1127 converting between "position including placeholders" and "position
1128 excluding placeholders".
1129 (gtk_toolbar_class_init): remove drag_leave and drag_motion
1131 (struct _ToolbarContent): new struct containing information
1132 related to toolbar items.
1133 (gtk_toolbar_highlight_drop_location): new public function
1134 (gtk_toolbar_unhighlight_drop_location): new public function
1136 * tests/testtoolbar.c
1137 (toolbar_drag_motion, toolbar_drag_leave): new functions
1138 (main): connect to dnd signals. Make the "New" item expand to
1139 make drag and drop more exciting.
1141 Wed Oct 15 22:39:23 2003 Kristian Rietveld <kris@gtk.org>
1143 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
1144 _set_active, not _set_active_item.
1146 Wed Oct 15 22:31:09 2003 Kristian Rietveld <kris@gtk.org>
1148 * gtk/gtkcombobox.h: add padding to the class structure.
1149 * gtk/gtkcomboboxentry.h: ditto.
1150 * gtk/gtkentrycompletion.h: ditto.
1152 Wed Oct 15 22:04:59 2003 Kristian Rietveld <kris@gtk.org>
1154 * gtk/gtkcombobox.c (gtk_combo_box_get_active),
1155 (gtk_combo_box_set_active): mention in the docs that -1 is a valid
1156 value and what it means.
1158 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
1159 item to -1 (default),
1160 (gtk_combo_box_entry_active_changed): do nothing when the index is
1163 Tue Oct 14 16:10:21 2003 Jonathan Blandford <jrb@redhat.com>
1165 * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
1166 to set the active row by iter.
1168 * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
1169 to get the active row by iter.
1171 2003-10-13 Federico Mena Quintero <federico@ximian.com>
1173 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
1174 operations on windows if the tree view is not mapped.
1175 (gtk_tree_view_button_press): Compare equal types of pointers, not
1176 GtkWidget* vs. GtkTreeView*.
1178 Mon Oct 13 21:01:43 2003 Kristian Rietveld <kris@gtk.org>
1180 * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
1181 the reset of first_sel_changed, as after the first popup the treeview
1182 will always have a row selected and will thus not focus_to_cursor.
1184 * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
1185 whether the keyval should move the completion selection cursor (used
1186 to avoid ending up with extreme cluttered code), also added
1187 all KP_ equivalents of the keys here,
1188 (gtk_entry_completion_key_press): Keynav tweaks based on comments
1189 from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
1190 as possible current selection, implement Home/End keys, modified
1191 the down key to stop cycling. Maybe page up/down should be implemented
1194 Mon Oct 13 20:58:07 2003 Matthias Clasen <maclas@gmx.de>
1196 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work
1197 as documented when pixmap or mask is NULL. (#124081)
1199 Mon Oct 13 20:21:38 2003 Kristian Rietveld <kris@gtk.org>
1201 * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
1202 I was adding the signal block/unblock code. Oops. (Noticed by
1203 Marco Pesenti Gritti).
1205 Mon Oct 13 20:21:55 2003 Kristian Rietveld <kris@gtk.org>
1207 * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
1208 (set_interp_type), (main): port over from option menu to GtkComboBox.
1210 Mon Oct 13 19:41:55 2003 Kristian Rietveld <kris@gtk.org>
1212 * tests/testmenus.c: Still uses option menus, so turn off
1213 GTK_DISABLE_DEPRECATED.
1215 Sun Oct 12 01:10:29 2003 Matthias Clasen <maclas@gmx.de>
1217 * gtk/gtkalignment.[hc]:
1218 * gtk/gtkcombobox.[hc]:
1219 * gtk/gtkcomboboxentry.[hc]:
1220 * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
1221 from header to implementation.
1223 Sun Oct 12 00:18:02 2003 Matthias Clasen <maclas@gmx.de>
1225 * tests/testtreeview.c:
1226 * demos/testpixbuf-scale.c:
1227 * tests/prop-editor.c: These files still use option menus,
1228 so turn off GTK_DISABLE_DEPRECATED to fix the build.
1230 Sat Oct 11 23:14:36 2003 Matthias Clasen <maclas@gmx.de>
1232 * gtk/gtkactiongroup.h:
1234 * gtk/gtkradioaction.h:
1235 * gtk/gtkradiotoolbutton.h:
1236 * gtk/gtkseparatortoolitem.h:
1237 * gtk/gtktoggleaction.h:
1238 * gtk/gtktoolitem.h:
1239 * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make
1240 these usable in C++. (#124351, Murray Cumming)
1242 Sat Oct 11 19:09:05 2003 Kristian Rietveld <kris@gtk.org>
1244 * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
1245 non-NULL before accessing it. Oops.
1247 Sat Oct 11 15:47:03 2003 Kristian Rietveld <kris@gtk.org>
1249 * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
1250 (gtk_entry_completion_insert_action_text),
1251 (gtk_entry_completion_insert_action_markup): the gchar* parameters
1252 should be const (pointed out by both Marco Pesenti Gritti and
1253 Murray Cumming (#124356).
1255 Sat Oct 11 15:37:19 2003 Kristian Rietveld <kris@gtk.org>
1257 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
1258 child list mode, allocate the height allocation->height to the
1259 button instead of the height requested by the button. (Tiny
1260 size allocation screwup noticed by Macro Pesenti Gritti).
1262 Sat Oct 11 15:23:27 2003 Kristian Rietveld <kris@gtk.org>
1264 Fixes based on comments from Marco Pesenti Gritti.
1266 * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
1267 signal handler, avoids the completion popup to popup when text is
1268 set programmatically in most cases (we actually have to handle this
1269 in the _editable functions as well, but that will break popping up
1270 when the user actually typed something :),
1271 (gtk_entry_completion_key_press): when handling enter, bail out
1272 when nothing has been selected,
1273 (gtk_entry_completion_changed): don't popdown when the entry content
1276 * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
1277 (gtk_entry_completion_selected_changed): unselect_all on the
1278 first selected changed signal. Avoids having a default row selected,
1279 (_gtk_entry_completion_popup): don't select the first row by default.
1281 * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
1282 first_sel_changed field.
1284 Fri Oct 10 23:02:58 2003 Matthias Clasen <maclas@gmx.de>
1286 * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager
1287 in the intro (again).
1289 Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
1291 Fixes for (#124212, Marco Pesenti Gritti):
1293 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
1294 warnings for popups.
1295 (_gtk_menu_is_empty): Return FALSE for non-menus.
1297 Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
1299 * gtk/gtkcombo.h: Deprecate.
1300 * gtk/gtkoptionmenu.h: Ditto.
1302 * gtk/gtkcombobox.c (gtk_combo_box_size_request),
1303 (gtk_combo_box_size_allocate): Rework, things behave better now. Still
1304 needs some work on requesting enough size when taking the items in
1305 the list into account.
1307 * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
1309 * gtk/gtkinputdialog.c: ditto.
1310 * gtk/gtkitemfactory.c: ditto.
1311 * gtk/gtkoptionmenu.c: ditto.
1313 * demos/gtk-demo/menus.c: remove the option menu.
1314 * demos/gtk-demo/sizegroup.c: replace the option menus with
1316 * demos/gtk-demo/textview.c: ditto.
1317 (A general GtkComboBox demo will be added later on).
1319 Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
1321 * demos/gtk-demo/ui_manager.c (activate_radio_action): New
1322 callback to propertly report radio actions.
1324 * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
1326 Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
1328 * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
1329 version in in the right field of the _XEMBED_INFO property.
1330 (#123885, Denis Mikhalkin)
1332 Mon Oct 6 14:18:47 2003 Jonathan Blandford <jrb@redhat.com>
1334 * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
1335 the child if we have one.
1337 (gtk_expander_button_release): use
1338 gtk_widget_activate instead.
1340 Mon Oct 6 21:05:46 2003 Matthias Clasen <maclas@gmx.de>
1342 * gtk/gtktable.c (gtk_table_class_init): Start the blurb for
1343 "right_attach" with a capital. (#123945, Christian Rose)
1345 Sun Oct 5 23:59:03 2003 Matthias Clasen <maclas@gmx.de>
1347 * tests/testsocket.c (child_read_watch): Remove an
1348 extraneous unref. (#122336, Frederic Crozat)
1350 Sun Oct 5 22:38:22 2003 Matthias Clasen <maclas@gmx.de>
1352 * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim
1353 whitespace in "visible-window" blurb. (#123910, Christian Rose)
1355 Sun Oct 5 00:53:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1357 * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
1358 focus arrow before pack_end items (#123851, Matthias Clasen)
1360 Fri Oct 3 20:50:48 2003 Kristian Rietveld <kris@gtk.org>
1362 * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
1363 on ->priv->cell_view if ->priv->cell_view is non-NULL.
1365 * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
1366 field to GtkComboBoxEntryPrivate,
1367 (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
1368 (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
1369 (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
1370 a construct-only "text_column" property and reorder code to use it
1371 and support inheriting this widget.
1373 Thu Oct 2 23:28:02 2003 Kristian Rietveld <kris@gtk.org>
1375 * gtk/gtkcombobox.c: Added API doc comments.
1377 * gtk/gtkcomboboxentry.c: Ditto.
1379 2003-10-02 Matthias Clasen <maclas@gmx.de>
1381 * gtk/gtktoggleaction.c: Documentation tweaks.
1383 Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org>
1385 * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
1386 packing/attribute/cell data functions from the header,
1387 (gtk_cell_view_set_cell_data): added support for cell data funcs.
1389 * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
1390 packing/attribute/cell data functions from the header, implemented
1391 cell data func support.
1393 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
1394 for the move to GtkCellLayout.
1396 * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
1398 2003-10-01 Matthias Clasen <maclas@gmx.de>
1400 * gtk/gtkaction.c (gtk_action_class_init):
1401 (gtk_action_[gs]et_property): Introduce a separate
1402 "hide_if_empty" property for empty menu handling.
1403 (_gtk_action_sync_menu_visible): ...and use it here.
1405 * tests/testmerge.c (main): ...and here.
1407 * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc
1408 comments to pacify gtk-doc.
1410 * gtk/gtkmain.c: Doc formatting tweaks.
1412 * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
1414 * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
1415 Use the same parameter names as in .c file, to pacify gtk-doc.
1417 * gtk/gtktoggletoolbutton.[hc]:
1418 * gtk/gtktoolbutton.[hc]:
1419 * gtk/gtktoolitem.[hc]:
1420 * gtk/gtktoolbar.[hc]:
1421 * gtk/gtkcolorbutton.[hc]:
1422 * gtk/gtkfontbutton.[hc]:
1423 * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
1424 source, not in the header.
1426 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
1427 Document these as 2.4 API additions.
1429 Tue Sep 30 23:42:56 2003 Kristian Rietveld <kris@gtk.org>
1431 * gtk/gtkentry.c (gtk_entry_set_completion),
1432 (gtk_entry_get_completion): Add API doc comments.
1434 * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
1436 Tue Sep 30 23:12:34 2003 Kristian Rietveld <kris@gtk.org>
1438 * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
1440 Tue Sep 30 22:59:58 2003 Kristian Rietveld <kris@gtk.org>
1442 * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
1444 * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
1446 2003-09-30 Matthias Clasen <maclas@gmx.de>
1449 * tests/testmerge.c: Test handling of empty menus.
1451 * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
1452 whether a menu is empty. Used in gtkaction.c.
1453 (update_smart_separators): Also update the visibility of empty menus.
1454 (update_node): When creating a new menu proxy, insert an "Empty" menu
1455 item which only gets shown if the menu is empty.
1457 * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
1458 "is_important" for menu proxies.
1459 (_gtk_action_sync_menu_visible): New function to sync the visibility
1460 of menu proxies. Used in gtkuimanager.c.
1461 (gtk_action_sync_visible): New function to sync the visibility of
1464 Tue Sep 30 21:43:34 2003 Kristian Rietveld <kris@gtk.org>
1466 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
1467 popup_in_progress to TRUE,
1468 (gtk_combo_box_menu_show): and back to FALSE here; the menu now
1469 won't disappear on the first button release. (Reported by Matthias
1472 Tue Sep 30 21:08:43 2003 Kristian Rietveld <kris@gtk.org>
1474 * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
1476 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
1477 Marco Pesenti Gritti).
1479 2003-09-30 Murray Cumming <murrayc@usa.net>
1481 * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
1482 instead of a GdkWindow*, because that what it is given. The
1483 documentation was already correct. This should cause no API/ABI
1484 breakage with C compilers.
1485 * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c,
1486 gtkcellrenderertogger.c: Updated the declarations of the render vfunc
1487 implementation accordingly.
1489 2003-09-30 Matthias Clasen <maclas@gmx.de>
1491 * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
1492 "direction-changed" and "keys-changed" signals.
1494 * gdk/gdkscreen.c (gdk_screen_class_init): Document the
1495 "size-changed" signal.
1497 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init):
1498 Document the "display-opened" signal.
1500 * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
1501 (gdk_display_class_init): Document the "closed" signal.
1503 Sat Sep 27 16:02:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1505 * gtk/gtktextview.[ch]: rename property tab_moves_focus to
1506 accepts_tab. (#122709 again).
1508 2003-09-27 Matthias Clasen <maclas@gmx.de>
1510 * gtk/gtkwindow.c (gtk_window_new):
1511 * gtk/gtkitemfactory.c (gtk_item_factory_new): Document
1512 the fact that the newly created object does not come with
1513 a floating reference. (#103068, patch by Frederic Lespez)
1515 * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor
1516 of GtkUIManager. Just leave GtkTranslateFunc undeprecated,
1517 since GtkActionGroup uses it.
1519 * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
1520 this test uses the soon-to-be-deprecated GtkItemFactory.
1522 * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
1523 remove item_factory.c
1525 * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c
1526 using GtkUIManager instead of GtkItemFactory.
1528 * tests/testmerge.c: Demonstrate the use of the
1529 connect-proxy signal.
1531 * gtk/gtkaction.c (connect_proxy): Add connect-proxy and
1532 disconnect-proxy signals to do small customizations
1533 like displaying tooltips in the statusbar without
1534 custom actions. (#122894, Philip Langdale)
1536 * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
1538 Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org>
1540 Landing the new ComboBox. Note that only gtkcombobox.h and
1541 gtkcomboboxentry.h are public.
1543 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
1544 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
1546 * gtk/Makefile.am, gtk/gtk.h: adding the new files.
1548 * tests/testcombo.c: and a new test.
1550 * tests/Makefile.am: adding the new test.
1552 2003-09-25 Tor Lillqvist <tml@iki.fi>
1554 * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
1556 2003-09-21 Tor Lillqvist <tml@iki.fi>
1558 * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
1559 function. Code split out from gdk_event_translate(). Needed
1560 because gdk_event_get_graphics_expose() couldn't do anything
1561 sensible otherwise. (Not that I think graphics exposes work anyway
1562 in gdk/win32, but at least now the code could work.)
1564 (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
1565 gdk_event_translate(), which couldn't have worked as it doesn't
1566 take any pre-allocated GdkEvent parameter any longer.
1568 (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
1569 GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
1571 2003-09-24 Matthias Clasen <maclas@gmx.de>
1573 * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
1576 * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
1578 * gtk/gtkuimanager.c (update_node): Don't complain about missing
1579 actions on popups. Re-set "tooltip" property on toolitems after
1580 adding them to parent to trigger proxy update.
1582 2003-09-22 Matthias Clasen <maclas@gmx.de>
1584 * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
1585 group member to test the fix for #122904.
1587 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
1588 Add the action to the group before activating it, otherwise we
1589 may end up with multiple active group members. (#122904, Marco
1592 2003-09-21 Matthias Clasen <maclas@gmx.de>
1594 Changes to make cross-process merging feasible:
1596 * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
1597 merged UI definition. Remove the "changed" signal, since its role
1598 is now filled by "notify::ui". Instead add a "actions-changed" signal
1599 which gets emitted when the set of actions changes.
1601 * gtk/gtktoggleactionprivate.h:
1602 * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
1603 Add a "draw_as_radio" property to toggle actions so that they can be
1604 used as proxies for radio actions much like the "draw_as_radio"
1605 property on check menu items enables them to operate as proxies for
1608 Prevent the "show_all" trap for action-based menus (see
1609 http://mail.gnome.org/archives/gtk-devel-list/2003-September/
1612 * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
1613 calls from static functions.
1615 * gtk/gtkuimanager.c (update_node):
1616 * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
1617 widgets whose visibility is externally controlled.
1619 * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
1620 "no_show_all" property with setter and getter. When TRUE, it keeps
1621 gtk_widget_{hide,show}_all() from modifying the visibility of the
1622 widget and its children.
1624 Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1626 * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
1628 2003-09-20 Tor Lillqvist <tml@iki.fi>
1630 * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
1631 including editor backup files. List files we want explicitly.
1633 * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
1634 calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
1635 LC_ALL, LC_CTYPE and LANG environment variables, than calls
1636 g_win32_getlocale().
1638 (gtk_get_default_language): Code snippet moved to above function,
1641 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
1642 * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
1643 _gtk_get_lc_ctype() instead of setlocale().
1645 Fri Sep 19 18:15:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1647 * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
1650 Fri Sep 19 13:24:54 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1652 * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
1653 documentation. (#117306, Steve Chaplin)
1655 2003-09-19 Tor Lillqvist <tml@iki.fi>
1657 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
1658 present on the US-International keyboard. For clarity, order
1659 keysyms in case statement according to numeric value.
1661 (gdk_keymap_translate_keyboard_state): Handle Caps Lock
1662 correctly. (#120176, Ken Rastatter and Owen Taylor)
1664 2003-09-18 Matthias Clasen <maclas@gmx.de>
1666 * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
1667 unref a closure, not g_object_unref(). (#122637, Marco Pesenti Gritti)
1669 Install accelerators on actions, not on proxies, support
1670 accelerator-only actions:
1672 * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
1673 and its lock status either via _gtk_widget_get_accel_path() or by
1674 looking at the accel_path stored in the menu item itself and determining
1675 its lock status by peeking into the contained accel label. This was
1676 already (accidentally) committed a week ago.
1678 * gtk/gtkaction.h (gtk_action_set_accel_group):
1679 (gtk_action_[dis]connect_accelerator): New functions.
1681 * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
1682 accel_closure and accel_count. We must have a reference to the
1683 accel_group, since we need it in connect_proxy. The count is necessary
1684 to ensure that the accelerator isn't removed before the last proxy
1685 requesting it has been unmerged.
1686 (connect_proxy): Connect the accelerator to the
1687 action now, only set the accel_path on the menuitem.
1688 (remove_proxy): Disconnect the accelerator from the action, not from
1690 (gtk_action_set_accel_group): Set the accel group.
1691 (gtk_action_[dis]connect_accelerator): Count the number of times
1692 this functions have been called and install/remove the accelerator if
1693 the count leaves/reaches zero.
1695 * gtk/gtkuimanager.h (GtkUIManagerItemType): Add
1696 GTK_UI_MANAGER_ACCELERATOR.
1698 * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
1699 (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
1700 <accelerator> elements.
1701 (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
1702 type is GTK_UI_MANAGER_ACCELERATOR.
1703 (update_node): Set the accel group on actions before creating their
1704 proxies. Don't set the accel group on created menus. For
1705 NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
1706 (print_node): Also emit <accelerator> elements.
1708 * tests/testmerge.c (dump_accels): Add a "Dump Accels" button.
1710 * gtk/gtkuimanager.c (update_node): Robustness improvements.
1712 2003-09-17 Matthias Clasen <maclas@gmx.de>
1714 * gtk/gtkuimanager.c (text_handler): Report unexpected character
1715 data as error from the GMarkup parser, otherwise things like
1716 gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error)
1719 Wed Sep 17 02:38:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1721 * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
1722 committed redraw_on_allocate change.
1724 Tue Sep 16 10:42:00 2003 Eric Warmenhoven <eric@warmenhoven.org>
1726 * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
1727 stubs to fix compilation
1729 * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
1730 when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
1732 * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
1733 variable. Patch from Marc Welz (#121347).
1735 2003-09-16 Matthias Clasen <maclas@gmx.de>
1737 * gtk/gtkaction.h: Apply egtk-format-protos.
1739 2003-09-15 Matthias Clasen <maclas@gmx.de>
1741 * gtk/gtkuimanager.c: Doc tweaks.
1743 Smart separators; see
1744 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
1746 * gtk/gtkuimanager.c (update_smart_separators): New function which
1747 implements "smart" separators by iterating once over the entries of a
1748 menu, hiding and showing separators as necessary.
1749 (update_node): Mark separators used as fences of placeholders as
1750 hidden. Explicitly added separators are marked as smart. Call
1751 update_smart_separators after updating a menu or toolbar node.
1752 Connect update_smart_separators to "notify::visible" signal on menu
1755 * tests/merge-[12].ui: Test smart separators.
1757 Changes to allow setting action state before connecting signal; see
1758 the thread starting at
1759 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
1761 * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
1762 (gtk_action_group_add_radio_actions_full): Add value parameter to allow
1763 setting the currently selected group member before connecting signals.
1764 (GtkToggleActionEntry): Separate struct for constructing toggle actions,
1765 including a boolean to initialize the action state before connecting
1767 (gtk_action_group_add_toggle_actions):
1768 (gtk_action_group_add_toggle_actions_full): New functions to construct
1769 toggle actions from an array of GtkToggleActionEntries.
1771 * demos/gtk-demo/appwindow.c:
1772 * tests/testactions.c:
1773 * tests/testmerge.c: Adjust to new action group API.
1775 Sun Sep 14 16:59:52 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1777 * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow
1778 "gtk-toolbar-arrow" so themes can special-case it.
1780 Sun Sep 14 16:07:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1782 * gtk/Makefile.am (gtk_c_sources): sort the list of files.
1784 Sun Sep 14 15:49:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1786 * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
1787 PangoFontMetrics. Patch from Steve Chaplin (#122257).
1789 2003-09-14 Tor Lillqvist <tml@iki.fi>
1791 * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
1792 special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
1793 the usefulness of which was already in doubt. Removing it fixes
1794 bugs #118575 and #121851.
1796 Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
1800 * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
1801 pressed button (used to determine if we want to initiate a drag later
1802 on) if the current grab widget is either NULL or tree_view (Reported
1803 by Jeroen Zwartepoorte).
1805 2003-09-12 Matthias Clasen <maclas@gmx.de>
1807 * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)
1808 (gdk_draw_text_wc): Add deprecation notes. (#121955, Martin Pool)
1810 2003-09-11 Matthias Clasen <maclas@gmx.de>
1812 * gdk/gdkpango.c: Doc tweaks.
1814 * tests/testgtk.c: Add table menu tests.
1816 * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the
1817 GtkMenuPrivate struct itself. Pointed out by valgrind.
1819 * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up
1822 Wed Sep 10 22:25:04 2003 Kristian Rietveld <kris@gtk.org>
1824 The table menu patch! Turns GtkMenu into a table, so you can attach
1825 menu items in numerous new ways! Be creative!
1827 Contains some bug fixes and RTL adaptions from Matthias Clasen.
1829 * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
1830 GtkMenuPrivate, introduce AttachInfo, add child properties enum,
1831 (gtk_menu_free_private), (gtk_menu_get_private): we have to free
1832 the heights array in the private struct,
1833 (gtk_menu_class_init): reorder code a bit, install child properties,
1834 (get_attach_info), (get_child_attach): new utility functions,
1835 (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
1836 child properties, for the attach info,
1837 (gtk_menu_remove): remove AttachInfo from menu item,
1838 (gtk_menu_real_insert): implemented algorithm to automagically place
1839 inserted menu items at the correct place in the table,
1840 (gtk_menu_size_request), (gtk_menu_size_allocate),
1841 (compute_child_offset): reworked/rewritten to support table menus,
1842 (gtk_menu_attach): new function,
1843 (find_child_containing), (gtk_menu_move_current): new functions to
1844 get table menu keynav right.
1846 * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
1848 2003-09-10 Matthias Clasen <maclas@gmx.de>
1850 * gtk/gtksocket.c (gtk_socket_filter_func): Only remove
1851 PropertyNotify events from the stream if they have been handled,
1852 in order to enable extending the plug<->socket communication via
1855 Wed Sep 10 01:06:44 2003 Kristian Rietveld <kris@gtk.org>
1857 Big TreeView DnD fixage, makes drops on empty models work, makes
1858 TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
1859 Related bugs #95362 and #113314. I don't want to touch this code
1862 * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
1864 * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
1865 for selection_data->length.
1867 * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
1868 (set_dest_row), (get_dest_row): we don't store just the row ref
1869 anymore, but a struct with the row ref and additional info,
1870 (set_destination_row): handle drops on empty space and some
1872 (get_logical_dest_row): also return path_down_mode/drop_append_mode
1873 flags, handle dropping childs on their new parents, rewrite
1874 drop append handling into something saner,
1875 (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
1877 (gtk_tree_view_drag_drop): updates for updated backend,
1878 (gtk_tree_view_drag_data_received): updates for updated backend,
1879 path down mode (treestore DnD) handling,
1880 (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
1881 when we are trying to drop a row on an empty model,
1882 (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
1884 * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
1885 (gtk_list_store_row_drop_possible): style and drop-append fixes.
1887 * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
1889 2003-09-08 Alexander Larsson <alexl@redhat.com>
1891 * gtk/gtkeventbox.[hc]:
1892 Implement gtk_event_box_get/set_input_only()
1895 Tests for the new input only event boxes
1897 Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
1899 Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
1901 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
1902 the call to gtk_tree_model_filter_add_root,
1903 (gtk_tree_model_filter_row_changed): bail out if c_path is not above
1904 the virtual root, allow building levels on the second try to convert
1905 the child path to a filter path,
1906 (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
1907 root when calling gtk_tree_model_filter_elt_get_path.
1909 2003-09-07 Matthias Clasen <maclas@gmx.de>
1911 * gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
1914 Fixes for accelerator handling during (un)merging:
1916 * gtk/gtkuimanager.c (update_node): Move setting info-action
1917 after the switch, since the old action is needed in some cases.
1918 In cases of proxy type mismatch, disconnect the old proxy from
1921 * gtk/gtkaction.c (remove_proxy): Renamed from
1922 gtk_action_remove_proxy(). Move unsetting of the accelerator
1923 here from disconnect_proxy() in order to catch all cases of
1925 (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
1926 to fail if proxy isn't a proxy of action.
1928 2003-09-07 Pablo Saratxaga <pablo@mandrakesoft.com>
1930 * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
1933 2003-09-07 Matthias Clasen <maclas@gmx.de>
1935 * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
1938 2003-09-06 Matthias Clasen <maclas@gmx.de>
1940 * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
1941 prev_action, not from action. (Fix by David Hampton)
1943 Fri Sep 5 14:15:10 2003 Owen Taylor <otaylor@redhat.com>
1945 * Back out locale-dependent interpretation of
1946 KP_Decimal, the official XFree86 interpretation
1947 is that KP_Decimal => . KP_Separator => ,
1948 always, independent of locale.
1949 (#105161, Frederic Crozat,
1950 http://bugs.xfree86.org/show_bug.cgi?id=534)
1952 2003-09-04 Matthias Clasen <maclas@gmx.de>
1954 * tests/testmerge.c: Test buttons and toggle buttons as proxies.
1956 * gtk/gtktoggleaction.c (connect_proxy):
1957 (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note
1958 that a "draw_as_radio" property is needed for check buttons similar to
1959 check menu items, in order to fully support button proxies for radio actions.
1961 * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
1963 * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui().
1965 * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
1966 'type' argument of gtk_ui_manager_add_ui().
1968 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
1969 to make this function as powerful as the XML methods of adding UI. (#120647)
1971 Thu Sep 4 19:11:23 2003 Kristian Rietveld <kris@gtk.org>
1975 * docs/RELEASE-HOWTO: updates.
1977 2003-09-04 Matthias Clasen <maclas@gmx.de>
1979 * tests/merge-2.ui: Use "position" instead of "pos".
1981 * gtk/gtkuimanager.c (start_element_handler): No need
1982 to be terse: Change the name of the "pos" attribute
1985 2003-09-04 Matthias Clasen <maclas@gmx.de>
1987 * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
1988 GtkUIManagerNode to shorten the names and to make the
1989 GTK_UI_MANAGER_<TYPE> names available for a public enum.
1991 * gtk/gtkactiongroup.c:
1992 * gtk/gtkuimanager.c: Various doc tweaks.
1994 * gtk/gtkuimanager.c (start_element_handler):
1995 (end_element_handler): Improve error reporting.
1997 Wed Sep 3 23:18:17 2003 Kristian Rietveld <kris@gtk.org>
2001 * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
2002 use end_position - page_size instead of G_MAXINT, since
2003 gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
2004 reported by Havoc Pennington).
2006 Wed Sep 3 21:58:03 2003 Kristian Rietveld <kris@gtk.org>
2010 * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
2011 unref it. (Fixes memleak, patch from Kjartan Maraas).
2013 Wed Sep 3 21:38:26 2003 Kristian Rietveld <kris@gtk.org>
2015 * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
2016 gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
2017 gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
2018 gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
2019 gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
2020 gtk/gtktypeutils.h: big patch from Kjartan Maraas
2021 to fix numerous typos.
2023 Wed Sep 3 17:38:01 BST 2003 Tony Gale <gale@gtk.org>
2025 * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
2027 2003-09-02 Tor Lillqvist <tml@iki.fi>
2029 * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
2030 CloseHandle() on the HMODULE returned from GetModuleHandle().
2031 Didn't cause any harm, but didn't do anything useful either. When
2032 running a GTK+ program under MS's debugger, the CloseHandle() call
2033 would cause a "first-chance exception" in ntdll.dll to show up.
2034 (The exception is caught appropriately if you let it proceed, but
2035 it confuses the person using the debugger). Thanks to Bruce
2036 Hochstetler for noticing.
2038 Tue Sep 2 21:01:19 2003 Kristian Rietveld <kris@gtk.org>
2042 * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
2043 to only select when button 1 is pressed introduced in the fix of
2046 2003-09-02 Matthias Clasen <maclas@gmx.de>
2048 * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
2050 * gtk/gtkuimanager.c: Shorten the names of some static
2053 Support adding and removing merge nodes dynamically (#120647,
2056 * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed
2057 gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id
2059 (gtk_ui_manager_add_ui): New function to add UI elements
2060 without juggling XML fragments, currently restricted to menuitems,
2061 toolitems and separators. Actions still come from registered
2064 Mon Sep 1 19:39:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2066 * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
2067 background pixmap was being offset twice, once by the ts_origin in
2068 gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
2070 2003-09-01 Matthias Clasen <maclas@gmx.de>
2072 * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
2073 this public again, since it's occasionally useful. (#121128,
2074 Marco Pesenti Gritti)
2076 * gtk/gtkaction.c: Add an "is_important" property and propagate
2077 it to toolitem proxies. (#121058, Marco Pesenti Gritti)
2079 Mon Sep 1 00:32:30 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2081 * tests/testtoolbar.c (main): connect to "delete_event" so the
2082 application will actually quit when you close the window
2084 2003-09-01 Matthias Clasen <maclas@gmx.de>
2086 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget)
2087 (gtk_ui_manager_get_action): g_return_if_fail() if
2089 (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
2090 (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125,
2091 Marco Pesenti Gritti)
2093 2003-08-31 Matthias Clasen <maclas@gmx.de>
2095 * gtk/gtktoolitem.c: Fix some typos in docs.
2097 * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
2098 replaces gtk_ui_manager_activate(). (#120658)
2100 * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
2101 gtk_ui_manager_activate().
2104 * gtk/gtkactiongroup.c: Some doc tweaks.
2106 * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
2107 wasn't emitted anyway. Some doc tweaks.
2109 2003-08-30 Matthias Clasen <maclas@gmx.de>
2111 * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
2112 rather than to "remove" on handlebox.
2114 * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
2115 activate an action found by following a path. (#120658)
2117 * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
2119 * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
2121 * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
2122 setter and getter. If it is set, add tearoff menu items to regular
2123 menus, but not to popups. Add a signal "changed", which gets emitted
2124 when the merged ui has changed. (#120649, #120656)
2126 * tests/testmerge.c: Add button to test the generation of tearoff
2129 2003-08-29 Matthias Clasen <maclas@gmx.de>
2131 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
2132 Actually group the actions together rather than putting each in its
2135 * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on
2136 proxy menu items for radio actions.
2138 * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
2140 Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2142 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
2143 Fix use of uninitialized variable.
2146 (_gtk_text_util_append_special_char_menuitems): add const cast to
2149 2003-08-29 Matthias Clasen <maclas@gmx.de>
2151 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install
2152 "draw_as_radio" as a separate property, not as an alias of
2154 (gtk_check_menu_item_get_property):
2155 (gtk_check_menu_item_set_property): Also support "draw_as_radio".
2157 Fri Aug 29 20:32:07 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2159 * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
2160 are narrower than 13 time the estimated character width of the
2161 font. (#107781, David Bordoley)
2163 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
2164 here if the GtkToggleButton is active. This may be the case if it
2167 * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
2168 vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
2171 * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
2172 property. (#111207, David Bordoley).
2174 * gtk/gtktoggletoolbutton.c
2175 (gtk_toggle_tool_button_create_menu_proxy): use new
2176 "draw_as_radio" property on the menu item when the item is a radio
2179 * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
2180 to only pay attention to the "use_underline" property when the
2181 button label comes from the "label" property.
2183 2003-08-29 Laurent Dhima <laurenti@alblinux.net>
2185 * configure.in: Added "sq" to ALL_LINGUAS.
2187 2003-08-28 Matthias Clasen <maclas@gmx.de>
2189 * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
2192 * gtk/gtkuimanager.c: Change the XML format:
2193 <Root> element is replaced by <ui>,
2194 <menu> element is replaced by <menubar>,
2195 <submenu> element is replaced by <menu>,
2196 <dockitem> element is replaced by <toolbar>,
2197 <popups> element is gone,
2198 verb attribute is replaced by action,
2199 name defaults to action or the element name.
2201 * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by
2202 GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified
2203 by removing the user_data, entry_type and extra_data fields,
2204 GtkRadioActionEntry is further simplified by removing the callback.
2205 The user_data can now be specified as an argument to
2206 gtk_action_group_add_actions(). There is a new method
2207 gtk_action_group_add_radio_actions(), which is similar to
2208 gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
2209 and a callback parameter in addition to the user_data. The callback
2210 is connected to the ::changed signal of the first group member.
2211 There are _full() variants taking a GDestroyNotify of
2212 gtk_action_group_add_[radio_]actions().
2214 * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
2215 on every member of the radio group when the active member is changed.
2216 Add an integer property "value", and a getter for the value of "value"
2217 on the currently active group member.
2219 * tests/testactions.c:
2220 * tests/testmerge.c:
2221 * tests/merge-[123].ui:
2222 * demos/gtk-demo/appwindow.c: Adjust to these changes.
2224 * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
2226 2003-08-27 Anders Carlsson <andersca@gnome.org>
2228 * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
2229 text view, so the tool bar won't have focus.
2231 Tue Aug 26 09:57:38 2003 Owen Taylor <otaylor@redhat.com>
2233 * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
2234 declaration not at start of block. (#120371, Damien Carbery)
2236 2003-08-26 Matthias Clasen <maclas@gmx.de>
2238 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize
2239 for length, not gsize.
2241 * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to
2242 <ui> and make it optional in strings. Rename verb to action, <dockitem>
2243 to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
2245 * demos/gtk-demo/appwindow.c:
2246 * tests/testactions.c:
2247 * tests/testmerge.c:
2250 * tests/merge-3.ui: Adjust to the new XML format.
2252 Mon Aug 25 19:55:55 2003 Owen Taylor <otaylor@redhat.com>
2254 * gtk/gtktextview.c (gtk_text_view_update_layout_width):
2255 Since we add one to the layout's reported width to
2256 account for the cursor, we need to subtract one when
2257 setting the wrap width for the layout. (Fixes infinite
2258 loop (#120325, Frederic Crozat)
2260 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
2261 Be a bit more careful about rounding when converting
2262 wrapped width from Pango units to pixels.
2264 2003-08-26 Matthias Clasen <maclas@gmx.de>
2266 Rename GtkMenuMerge to GtkUIManager.
2268 * gtk/gtkuimanager.[hc]: New files.
2269 * gtk/gtkmenumerge.[hc]: Removed.
2273 * tests/testmerge.c:
2274 * tests/testactions.c:
2275 * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by
2278 * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating:
2279 add comments to entries array, remove newlines from ui definition. Don't
2280 use the ::add_widget signal.
2282 Mon Aug 25 17:28:04 2003 Owen Taylor <otaylor@redhat.com>
2284 * gtk/gtknotebook.c (gtk_notebook_forall): Don't
2285 include page->menu_label - causes various problems,
2288 Mon Aug 25 23:21:43 2003 Kristian Rietveld <kris@gtk.org>
2292 Fixes #115871, reported by Michael Natterer.
2294 * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
2295 added ctrl_pressed and shift_pressed bitfields,
2296 (_gtk_tree_selection_internal_select_node): replace GdkModifierType
2297 arg with GtkTreeSelectMode.
2299 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
2300 (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
2301 (_gtk_tree_selection_internal_select_node): all updated for
2302 GdkModifierType -> GtkTreeSelectMode move.
2304 * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
2305 and shift_pressed around selection handling block,
2306 (gtk_tree_view_real_select_cursor_row),
2307 (gtk_tree_view_real_toggle_cursor_row),
2308 (gtk_tree_view_real_selection_cursor_parent),
2309 (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
2310 instead of checking the event state. And also updates for the
2311 GdkModifierType -> GtkTreeSelectMode move.
2313 Wed Aug 20 21:26:49 2003 Owen Taylor <otaylor@redhat.com>
2315 * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
2316 to the parent when there was no focus widget before
2317 and no focus widget after - that is, when there are
2318 no focusable widgets. (#108678, help tracking it
2319 down from Padraig O'Briain, Federico Mena Quintero, )
2321 * gtk/gtkxembed.[ch]: Move various shared utilities
2322 for the XEMBED protocol eused by GtkPlug and GtkSocket
2325 * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
2326 a flag bit that is sent with focus mesages to indicate
2327 that the focus has wrapped around on the toplevel;
2328 use this bit to catch infinite loops when there is no
2329 focusable widget at ll in the entire toplevel.
2331 * tests/testsocket.c (child_read_watch): Remove an
2334 * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h:
2335 Up XEMBED protocol version to 1, add logic for
2336 sending the right version in XEMBED_EMBEDDED_NOTIFY.
2338 * gtk/gtksocket.c (gtk_socket_add_window): Send
2339 the embedder window in the XEMBED_EMBEDDED_NOTIFY
2340 as the spec requires.
2342 Mon Aug 25 16:15:41 2003 Owen Taylor <otaylor@redhat.com>
2344 * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and
2345 NumLock handling for non-XKB. Add a special case
2346 hack for NumLock on Sun servers. (Patch from
2347 Robert Basch, #115819)
2349 2003-08-25 Matthias Clasen <maclas@gmx.de>
2351 * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten
2354 * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
2355 gtk_action_group_set_translation_domain): Hooks for translation of
2356 label and tooltip in GtkActionGroupEntries. (#120620)
2358 2003-08-25 Matthias Clasen <maclas@gmx.de>
2360 * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
2361 values properly. Sorry about the resize grip trouble, Owen. (#120621)
2363 * gtk/gtkactiongroup.c:
2364 * demos/gtk-demo/appwindow.c:
2365 * tests/testmerge.c:
2366 * tests/testactions.c: Use new GtkActionGroupEntryType enum.
2368 Sun Aug 24 17:14:44 2003 Owen Taylor <otaylor@redhat.com>
2370 * gtk/gtk.h: Remove reference to gtkresizegrip.h.
2372 Sun Aug 24 17:03:44 2003 Owen Taylor <otaylor@redhat.com>
2374 * gtk/Makefile.am: Fix accidental commit of references
2375 to gtkresizegrip.[ch]
2377 Sun Aug 24 17:00:03 2003 Owen Taylor <otaylor@redhat.com>
2379 * gtk/gtkrc.c: Fix some missing initializations of
2382 2003-08-24 Matthias Clasen <maclas@gmx.de>
2384 * gtk/gtkaction.[ch]:
2385 * gtk/gtktoggleaction.[ch]:
2386 * gtk/gtktoggleactionprivate.h:
2387 * gtk/gtkradioaction.[ch]:
2388 * gtk/gtkactiongroup.[ch]:
2389 * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
2390 toolbars, using the EggMenu code by James Henstridge.
2392 * gtk/gtk.h: Include new headers.
2393 * gtk/Makefile.am: Add new files.
2395 * tests/testactions.c: Test for actions.
2396 * tests/testmerge.c: Test for menu merging.
2397 * tests/merge-[123].ui: Test data for testmerge.
2398 * tests/Makefile.am: Add testactions and testmerge.
2400 * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the
2401 menubar and toolbar.
2403 Sat Aug 23 21:40:18 2003 Owen Taylor <otaylor@redhat.com>
2405 * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix
2406 problem where rc_file->directory wasn't always getting
2407 set. (#120549, Luis Villa)
2409 2003-08-22 Christian Rose <menthos@menthos.com>
2411 * configure.in: Added "ne" to ALL_LINGUAS.
2413 Thu Aug 21 16:00:36 2003 Owen Taylor <otaylor@redhat.com>
2415 * gtk/gtkrc.c: Keep a list of current GtkRcFiles
2416 being parsed, not just the directories for those
2417 files. Use that to catch recursion. (Part of
2420 Thu Aug 21 21:27:45 2003 Kristian Rietveld <kris@gtk.org>
2424 Fix option menu scrolling (#119821, Owen Taylor).
2426 * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
2427 by #80484 and the CLAMP,
2428 (get_menu_height): new function,
2429 (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
2430 new_offset to handle page up/down right.
2432 Thu Aug 21 15:17:42 2003 Owen Taylor <otaylor@redhat.com>
2434 * gdk/x11/gdkkeys-x11.c: Change the interpretation
2435 of consumed_modifiers so that it contains:
2436 - Modifiers combinations actually found in
2438 - Single modifier modifier combinations.
2439 But not multi-modifier combinations that aren't
2440 in event->state. Document. (#100439)
2442 Thu Aug 21 20:53:46 2003 Kristian Rietveld <kris@gtk.org>
2444 Slightly modified patch from Yann Rouillard to improve selection
2445 behavior with the mouse. Fixes #120187.
2447 * gtk/gtktreeview.c (gtk_tree_view_button_press): only
2448 select/deselect items on the first button press of button 1,
2449 expand checks for row_activated to include triple clicks.
2451 Thu Aug 21 01:33:51 2003 Kristian Rietveld <kris@gtk.org>
2455 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
2456 approximate digit widths up, to avoid truncation, convert to
2457 pango pixels when we have the full string width instead of converting
2458 the approx digit width to pango pixels, take inner border and
2459 interior focus into account correctly. (Fixes #116368, patch from
2462 2003-08-20 Noah Levitt <nlevitt@columbia.edu>
2464 * gtk/queryimmodules.c: Don't look at the same directory twice (in
2465 simple cases). (#120342)
2467 Wed Aug 20 22:04:47 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2469 * gdk/gdkwindow.c: Make the layers in the paint stack have their
2470 own pixmap instead of sharing one. (#118317)
2472 * tests/testgtk.c (create_get_image): Fixes to make the window fit
2473 on an 800x600 screen
2475 Wed Aug 20 22:03:25 2003 Kristian Rietveld <kris@gtk.org>
2479 * gtk/gtkspinbutton.c (start_spinning): change the type of step
2480 to gdouble, since it gets it's data from a gdouble (Fixes #113547).
2482 Mon Aug 18 17:19:12 2003 Owen Taylor <otaylor@redhat.com>
2484 * modules/input/gtkimcontextxim.[ch]: Substantially
2485 rework the handling of status windows:
2487 - Store the current StatusWindow in the
2488 GtkIMContextXIM structure and vice-versa, so we
2489 don't have to hunt the window hierarchy on
2491 - Use the Gtkidget hierarchy instead of/or as well
2492 as the GdkWindow hierarchy when finding the toplevel;
2493 this helps for things like GtkHandlebox
2494 - Watch GtkWidget::hierarchy_changed to catch
2495 changes in the toplevel without changes in the
2496 GdkWindow (reparenting)
2497 - Never create the GtkWindow for the status window
2498 unless we have text to display.
2499 - Various cleanups, add lots of comments.
2501 (#115077, much help from Takuro Ashie and Hidetoshi
2502 Tajima in tracking this down and figuring out a fix.)
2504 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in):
2506 * modules/input/gtkimcontextxim.c: Track the current
2507 screen for each toplevel so that we show the status
2508 window on the right screen. (#116340, James Su)
2510 * modules/input/gtkimcontextxim.c: If create a new IC
2511 when we currently have the focus, call XSetICFocus()
2514 * modules/input/gtkimcontextxim.c (get_im): Fix bug
2515 with multiple open screens.
2517 Tue Aug 19 14:37:46 2003 Owen Taylor <otaylor@redhat.com>
2519 * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext):
2520 Replace client_window field with 'priv' pointer,
2521 retaining binary compatibility.
2523 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
2524 save use_preedit/cursor_location/focus status and set
2525 up the new slave appropriately. (#118651, Botond Botyanszki)
2527 Tue Aug 19 13:58:50 2003 Owen Taylor <otaylor@redhat.com>
2529 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
2530 Don't use impl->position_info.clip_rect for toplevels.
2531 (#107068, reported by Thomas Mirlacher)
2533 Mon Aug 18 11:48:51 2003 Owen Taylor <otaylor@redhat.com>
2535 * gdk/x11/gdkdrawable-x11.c (convert_to_format):
2536 Add a fallback for unaligned source data for
2537 FORMAT_ARGB_MASK. (#117217)
2539 Mon Aug 18 10:51:57 2003 Owen Taylor <otaylor@redhat.com>
2541 * configure.in: Rework handling of REBUILD_PNGS,
2542 so that we also don't try to REBUILD_PNGS when
2543 cross-compiling and there is no gdk-pixbuf-csource.
2544 But give an error if gtk/stock-icons/gtkstockpixbufs.h
2545 is not in the source tree. (Note that REBUILDS_PNG
2546 was set backwards before, which is why you always
2547 had to manually recreate gtkstockpixbufs.h!)
2549 Mon Aug 18 10:19:55 2003 Owen Taylor <otaylor@redhat.com>
2551 * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
2552 path to libgtk.la. (#120080, Benedikt Spranger)
2554 Sat Aug 16 10:34:49 2003 Owen Taylor <otaylor@redhat.com>
2556 * modules/input/imcedilla.c: Make the list of default
2557 languages more comprehensive. (Suggestion of
2558 Fco. Javier F. Serrador)
2560 Sat Aug 9 12:47:11 2003 Owen Taylor <otaylor@redhat.com>
2562 * gdk/gdk.c (gdk_arg_context_parse): Fix broken
2563 parentheses when skipping args.
2565 Sat Aug 16 16:22:23 2003 Kristian Rietveld <kris@gtk.org>
2567 Fix major bug in row ref handling, so the new combo box
2568 will actually work right (:. Bug #107748. Patch written
2569 with help from Tim Janik.
2571 The basic idea is to update the row refs in a closure,
2572 before the actual signal is emitted (rather than having
2573 the model connect signal handlers).
2575 * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
2576 g_signal_new calls for row_inserted, row_deleted and
2577 rows_reordered to use the new marshallers,
2578 (row_inserted_marshall), (row_deleted_marshall),
2579 (rows_reordered_marshall): the new marshallers,
2580 (gtk_tree_row_ref_inserted_callback): renamed to
2581 gtk_tree_row_ref_inserted since it isn't a callback
2582 anymore and gets called by the marshaller now,
2583 (gtk_tree_row_ref_deleted_callback): likewise,
2584 (gtk_tree_row_ref_reordered_callback): likewise,
2585 (connect_ref_callbacks), (disconnect_ref_callbacks):
2587 (gtk_tree_row_reference_new_proxy),
2588 (gtk_tree_row_reference_free),
2589 (gtk_tree_row_reference_inserted),
2590 (gtk_tree_row_reference_deleted),
2591 (gtk_tree_row_reference_reordered): updated.
2593 Fri Aug 15 16:54:39 2003 Owen Taylor <otaylor@redhat.com>
2595 Improve Cedilla handling - based on a patch from Gustavo
2598 * modules/input/imcedilla.c po/POTFILES.in: Input method that
2599 produces C_WITH_CEDILLA rather than C_WITH_ACUTE for
2600 dead_acute+c combinations. Make this the default for
2603 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
2604 Use LC_CTYPE instead of LC_MESSAGES to pick the default
2607 Fri Aug 15 17:00:19 2003 Owen Taylor <otaylor@redhat.com>
2609 * gtk/gtkimcontextsimple.c: Fix missing compose sequence
2610 for Multi_key+c+apostrophe.
2612 Fri Aug 15 21:57:34 2003 Kristian Rietveld <kris@gtk.org>
2616 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
2617 on vertical scrolling. (#108035, reported by Tim Janik).
2619 Fri Aug 15 20:06:42 2003 Kristian Rietveld <kris@gtk.org>
2623 * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
2624 (gtk_tree_model_sort_level_find_insert),
2625 (gtk_tree_model_sort_insert_value): fix off-by-one error.
2626 (#109292 continued, patch from Yann Rouillard).
2628 Fri Aug 15 19:43:14 2003 Kristian Rietveld <kris@gtk.org>
2630 (Note: This is not exactly the same as the patch which went in
2633 * gtk/gtktreeview.c (gtk_tree_view_class_init),
2634 (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
2635 Also support the up, down, left, right, home, end, page up and
2636 page down keys on the numpad. (#119419, reported by Alex Larsson).
2638 Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
2640 Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
2642 * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
2643 we link libgtk against X explicitely, since we
2644 make GTK+ calls for plug/socket.
2646 * gtk/queryimmodules.c: Use USE_LA_MODULES and
2647 G_MODULE_SUFFIX here.
2649 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
2650 XShmPutImage with #ifdef USE_SHM.
2652 Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
2654 * gtk/gtkfilesel.c (gtk_file_selection_populate):
2655 Don't reposition the cursor when we aren't trying
2656 to complete. (Fixes problems with selection on
2657 startup, #108433, reported by Mark Finlay.)
2659 * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
2660 code that tried to position the cursor after the common
2661 prefix when there was one, it wasn't working, and
2662 would be hard to fix. Just always put the cursor
2663 at the end when completing.
2665 Thu Aug 14 17:58:23 2003 Owen Taylor <otaylor@redhat.com>
2667 * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
2668 the current directory fails because of encoding
2669 conversion problems, walk up textually to parent
2670 directories until we can convert. (#113627)
2672 Wed Aug 13 17:01:49 2003 Owen Taylor <otaylor@redhat.com>
2674 * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
2675 Remove usage of menu_shell->ignore leave which was
2676 to deal with stray events we no longer get because
2677 we do grabbing differently. Comment it as unused in
2678 the header. (#115837, Keith Bissett)
2680 Wed Aug 13 16:32:43 2003 Owen Taylor <otaylor@redhat.com>
2682 * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request):
2683 Fix some places that weren't properly Xinerama-ified.
2685 * gtk/gtkmenu.c: Fix problem with windows that scroll
2686 at the top of the screen.
2688 Wed Aug 13 11:34:53 2003 Owen Taylor <otaylor@redhat.com>
2690 * gtk/gtkcombo.c (gtk_combo_init): connect_after() to
2691 key-press-event on the entry, so input methods get access to
2692 key presses before GtkCombo customization.
2693 (#115451, Botond Botyanszki)
2695 2003-08-13 Anders Carlsson <andersca@gnome.org>
2697 * tests/testtoolbar.c: (set_important_func), (important_toggled),
2698 (create_items_list):
2699 Add an important column.
2701 Tue Aug 12 15:00:15 2003 Owen Taylor <otaylor@redhat.com>
2703 * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
2704 against reentrancy from ::focus-out handlers.
2705 (#118129, Felipe Heidrich)
2707 Tue Aug 12 14:27:42 2003 Owen Taylor <otaylor@redhat.com>
2709 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
2710 GDK_LOCK_MASK before calling
2711 gdk_keymap_translate_keyboard_state so bindings
2712 and accelerators are independent of the Caps-lock
2713 key. (#115384, reported by Toni Willberg)
2715 Mon Aug 11 12:07:14 2003 Owen Taylor <otaylor@redhat.com>
2717 * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
2718 break statements (#119494, Soeren Sandmann)
2720 Mon Aug 11 11:10:07 2003 Owen Taylor <otaylor@redhat.com>
2722 * gtk/gtkwidget.h: Mark parent public as well; it's
2723 extensively accessed in existing code, so there is
2724 no advantage in making people use get_parent().
2725 (Tweak to #119463 fix)
2727 2003-08-11 Matthias Clasen <maclas@gmx.de>
2729 Add support for EWMH "Above" and "Below" window states. (105100,
2732 * tests/testgtk.c: Add "Above" and "Below" to the the "Window
2735 * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
2736 gtk_window_set_keep_below.
2738 * gtk/gtk.def: Add gtk_window_set_keep_above and
2739 gtk_window_set_keep_below.
2741 * gtk/gtkwindow.c (gtk_window_set_keep_below):
2742 (gtk_window_set_keep_above): New functions, call the corresponding
2745 * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
2746 function, sets _NET_WM_STATE_BELOW.
2747 (gdk_window_set_keep_above): New function, sets
2748 _NET_WM_STATE_ABOVE.
2750 * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
2751 gdk_window_set_keep_below.
2753 * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
2754 GDK_WINDOW_STATE_BELOW.
2756 * gdk/gdk.def: Add gdk_window_set_keep_above and
2757 gdk_window_set_keep_below.
2759 * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
2760 JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
2761 xmlcatalog in PATH. (#119115)
2763 2003-08-10 Matthias Clasen <maclas@gmx.de>
2765 * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
2768 2003-08-09 Noah Levitt <nlevitt@columbia.edu>
2771 * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
2772 docs on GdkFilterFunc and GdkFilterReturn.
2774 2003-08-09 Matthias Clasen <maclas@gmx.de>
2776 * gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
2777 to let the mouse wheels select the month. Scrolling down
2778 moves forward in time. (#53134, Abigail Brady)
2780 * gtk/gtkcalendar.c: Complete the RTL flipping support for
2781 GtkCalendar, make it possible to flip the headings using the
2782 "magic translated string" technique. Translators, note the
2783 comment in gtk_calendar_init() explaining this. (#102416)
2785 * gtk/gtkcalendar.c: Get the information about the first day of
2786 the week from the locale using another instance of the "magic
2787 translated string" technique. Ignore the display option
2788 GTK_CALENDAR_WEEK_START_MONDAY with a warning. (#87977)
2790 * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
2791 date is dragged as text, formatted via strftime %x. Text drops are
2792 accepted if g_date_set_parse() can make sense of the text. A
2793 dedicated data format for date DND has not been introduced yet,
2794 since there didn't seem to be sufficient consensus on such a
2795 format on xdg-list. (#117297)
2797 2003-08-08 Matthias Clasen <maclas@gmx.de>
2799 * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
2800 Fix a segfault. (#115284, Jan Kratochvil)
2802 2003-08-08 Tor Lillqvist <tml@iki.fi>
2804 * gdk/win32/gdkevents-win32.c (print_event): Print also the root
2805 coordinates for events that have such. Print coordinates for enter
2808 (gdk_event_translate): Don't use event uninitialixed in the
2809 return_exposes branch of the WM_PAINT handler.
2811 * gdk/win32/gdkwindow-win32.c (gdk_window_new,
2812 _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer):
2813 Must offset top-level window coordinates here, too.
2815 2003-08-08 Matthias Clasen <maclas@gmx.de>
2817 * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
2818 when maximized or fullscreen.
2820 2003-08-07 Tor Lillqvist <tml@iki.fi>
2822 * gdk/win32/gdkinput-win32.h
2823 * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
2824 _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
2827 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
2828 accordingly, in fact an uninitialised variable was dereferenced.
2831 [Win32] Add support for multiple monitors.
2833 * gdk/win32/gdkprivate-win32.h
2834 * gdk/win32/gdkglobals-win32.c: New global variables for
2835 multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
2836 _gdk_offset_x and _gdk_offset_y.
2838 * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
2839 functions, enumeration functions passed to EnumDisplayMonitors().
2841 (gdk_display_open): If the EnumDisplayMonitors() and
2842 GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
2843 if to find out monitor info.
2845 Calculate the offset between Win32 coordinates (relative to the
2846 primary monitor's origin (and thus negative on monitors to the
2847 left of or above it), and GDK's (visible coordinates should be
2850 * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
2851 gdk_screen_get_monitor_geometry): Use information collected above.
2853 (gdk_window_move, gdk_window_move_resize_window_get_geometry):
2854 Subtract _gdk_offset_{x,y} from GDK root window coordinates.
2856 (gdk_window_get_geometry, gdk_window_get_origin,
2857 gdk_window_get_frame_extents): For top-level windows, add
2858 _gdk_offset_{x,y} to GDK root window coordinates
2860 Still need to handle multiple monitors in
2861 gdk_window_fullscreen(). Probably should make the window
2862 fullscreen on the monitor where the cursor is?
2864 * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
2865 root window coordinates in GdkEvents.
2868 [Win32] Fix geometry hint handling. Add support for resize
2869 increment and base size, and aspect ratio geometry hints. The
2870 "gridded geometry" test in testgtk now works beautifully.
2872 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
2873 Turns out this function shouldn't actually ever modify the
2874 window's size, just store the hints. (Old code kept for a while
2877 (gdk_window_set_hints): Remove presumably broken code that handles
2878 the position hints, this function is obsolete anyway.
2880 * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
2881 variables, not used.
2883 (adjust_drag): New function, used to implement resize increment
2886 (gdk_event_translate): Handle WM_SIZING, implement resize
2887 increment and base size, and aspect ratio geometry hints here. The
2888 WM_GETMINMAXINFO handler takes care of the minimum and maximum
2889 size hints as before. Fix the WM_GETMINMAXINFO handler to take
2890 into account window decorations. No need to modify the
2891 ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
2892 the defaults are fine.
2894 * gdk/win32/gdkprivate-win32.h
2895 * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
2896 _gdk_win32_get_adjusted_client_rect): New helper functions.
2898 2003-08-07 Matthias Clasen <maclas@gmx.de>
2900 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
2901 toplevel->have_* flags before iterating over the _NET_WM_STATE
2904 Thu Aug 7 16:49:29 2003 Owen Taylor <otaylor@redhat.com>
2906 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
2907 Fix a bug where on theme change, resize/redraw wasn't
2908 properly getting queued on toplevel windows. (#116346,
2911 * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
2912 Fix bug where wrong coordinates were used for toplevel
2915 Thu Aug 7 16:40:21 2003 Owen Taylor <otaylor@redhat.com>
2917 * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
2918 page_num variable (Archit Baweja)
2920 2003-08-07 Matthias Clasen <maclas@gmx.de>
2922 * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
2923 cope with C libraries with crippled locale support. (#115293)
2925 2003-08-07 Hans Breuer <hans@breuer.org>
2927 * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
2928 (only if the new window not known to Gdk) to get proper
2929 leave notification, and get rid of the wrong placed
2930 tooltips, bug #102283
2932 (gdk_event_translate) : small code reordering to not get
2933 GDK_MOTION_NOTIFY for still mouse and get back tooltips on
2936 2003-08-07 Tor Lillqvist <tml@iki.fi>
2939 * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
2940 missing function, trivially implement.
2942 2003-08-07 Matthias Clasen <maclas@gmx.de>
2944 * gtk/gtkctree.c (draw_row): Don't cut descenders when
2945 rendering. (#118646, Charles Kerr)
2947 2003-08-06 Hans Breuer <hans@breuer.org>
2949 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
2950 initialize bits to 0 (probably default on NT)
2952 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
2953 now it works as intended ;-)
2955 2003-08-04 Hans Breuer <hans@breuer.org>
2957 * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
2958 set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
2960 * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
2961 (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
2963 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
2964 against all expectations it is basically ony a call with WM_SETICON
2965 needed (the visual effect is there, though colors or mask are
2966 still somewhat wrong).
2967 * gdk/win32/gdkwindow-win32.h : place to store the HICON
2969 * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
2970 pixel drawing as it was fixed at 1999-08-23
2972 gtk/gtk.def : updated
2974 Tue Aug 5 10:07:08 2003 Owen Taylor <otaylor@redhat.com>
2976 * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property):
2977 Add a missing break. (#119156, Callum McKenzie)
2979 Tue Aug 5 00:24:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2981 * gtk/gtkmenu.c (gtk_menu_position): New positioning
2984 Fri Aug 1 15:26:46 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2986 * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
2989 * gtk/gtkradiotoolbutton.c
2990 (gtk_radio_tool_button_new_from_widget): Don't take a stock id
2992 * gtk/gtkradiotoolbutton.c
2993 (gtk_radio_tool_button_new_with_stock_from_widget): make this
2994 function take a stock_id.
2996 * gtk/toolbar: documentation
2998 Mon Aug 4 14:53:46 2003 Owen Taylor <otaylor@redhat.com>
3000 * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init):
3001 Fix problem where use_xshm was getting set wrong if
3002 MIT_SHM wasn't found. (George Lebel)
3004 2003-08-04 Tor Lillqvist <tml@iki.fi
3006 * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
3007 actually use the passed-in filter list. The function also needs a
3008 GdkWindow parameter, as filter functions expect
3009 GdkEvent::any.window to be valid. (#119034, Hans Breuer)
3011 2003-08-03 Matthias Clasen <maclas@gmx.de>
3013 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors):
3014 (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
3015 the term "virtual screen". (#119030, Tor Lillquist)
3017 2003-08-02 Matthias Clasen <maclas@gmx.de>
3019 * tests/testtext.c (test_init):
3020 * tests/testgtk.c (test_init):
3021 * tests/testdnd.c (test_init):
3022 * demos/pixbuf-init.c (pixbuf_init):
3023 * demos/gtk-demo/main.c (main): Use g_setenv().
3025 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
3028 Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
3030 * configure.in: Requires glib-2.3.0, pango-1.2.0.
3032 * configure.in: Require Xft version 2,
3033 remove code for handling older versions of pango and Xft.
3034 Many miscellaneous improvements to X checks
3036 * acinclude.m4: Add GTK_ADD_LIB() macro for adding
3037 a library to a variable, avoiding dups.
3039 * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3042 * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
3045 2003-08-02 Matthias Clasen <maclas@gmx.de>
3047 * gtk/gtkcolorsel.c (color_sample_drop_handle)
3048 (palette_drop_handle):
3049 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept
3050 drops with the wrong format, since the KDE color chooser incorrectly
3051 drops application/x-color with format 8. (#118810)
3053 * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
3054 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
3055 Accept drops with the wrong format, since the KDE color chooser
3056 incorrectly drops application/x-color with format 8. (#118810)
3058 2003-08-02 Tor Lillqvist <tml@iki.fi>
3060 Fix gdk/win32 window geometry handling again. The window position
3061 in a GDK_CONFIGURE event should be that of the client area, not of
3062 the window decorations. (I was confused by the term "window
3063 border" in X11. It does *not* mean the window manager
3064 decorations. There are no X11-style window borders in Win32.)
3065 Also, this time do take the geometry hints into account
3066 appropriately when moving windows. Now testgtk's gravity test's
3067 move buttons work OK. There are stil problems with taking gravity
3068 into account when showing a hidden window.
3070 * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
3071 instead of separate fields.
3073 * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
3074 adjust for decorations.
3076 * gdk/win32/gdkwindow-win32.c (get_outer_rect,
3077 adjust_for_gravity_hints): New functions.
3078 (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
3079 above functions, take geometry hints into account.
3080 (gdk_window_set_geometry_hints): Size hints specicy client area,
3081 not including decorations.
3083 Fri Aug 1 17:10:22 2003 Owen Taylor <otaylor@redhat.com>
3085 * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
3086 return an absolute path (#115590), fix a problem where
3087 you could crash the file selector with a looong name
3088 by returning a newly allocated buffer.
3090 Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
3092 * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
3093 bug in rarely or never hit code path (#118071,
3096 Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
3098 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
3099 If the check for missing depths, try actually creating pixmaps
3100 of the depths to deal with Xinerama not reporting
3101 all the depths it should. (#115822)
3103 Fri Aug 1 15:33:59 2003 Owen Taylor <otaylor@redhat.com>
3105 * gtk/gtksocket.c: Patch from Denis Mikhalkin to
3106 forward KeyRelease events as well as KeyPress events.
3109 Fri Aug 1 15:06:25 2003 Owen Taylor <otaylor@redhat.com>
3111 * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
3112 if argc is 0 as well, instead of leaving it unset.
3113 (#116023, Michael Meeks)
3115 Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3117 * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
3118 default to TRUE; ignore the property when api_mode != NEW_API
3120 2003-07-31 Matthias Clasen <maclas@gmx.de>
3122 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
3123 to icon, to pacify gtk-doc.
3125 * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion
3128 Thu Jul 31 15:33:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3130 * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
3132 Thu Jul 31 15:29:28 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3134 * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
3135 overflow_item field.
3137 Wed Jul 30 21:11:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3139 * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
3140 an internal function
3142 * gtk/gtktoolitem.h: remove unused declaration of
3143 _gtk_tool_item_get_drag_window().
3145 Wed Jul 30 17:03:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3147 * gtk/gtktoolbutton.[ch]:
3148 (gtk_tool_button_new): swap icon_widget and label arguments to
3149 match BonoboUIToolbarButton.
3151 * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
3153 2003-07-30 Matthias Clasen <maclas@gmx.de>
3155 * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
3158 2003-07-29 Tor Lillqvist <tml@iki.fi>
3160 Fix for #108007, #112402, #117042: There was confusion in
3161 gdk/win32 at various places whether a window position refers to
3162 the decoration position or the client area position. Also whether
3163 window size includes decorations or not.
3165 The correct interpretation apparently is that in GDK (like in
3166 X11), a top-level window position means the decoration's position,
3167 but size means the window's inner size (client area size). In the
3168 Win32 API, the window size usually includes the decorations,
3171 * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
3172 #ifdef G_ENABLE_DEBUG.
3173 (handle_configure_event): New function, generates GDK_CONFIGURE
3174 events from WM_SIZE and WM_MOVE messages. Even if no event is
3175 generated because of the event mask, still set the private
3176 position and size fields. Calculate position and size correctly.
3177 (gdk_event_translate): Call handle_configure_event().
3179 * gdk/win32/gdkgeometry-win32.c: Cosmetics.
3181 * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
3182 macros. Cosmetic debugging output changes.
3183 (SafeAdjustWindowRectEx): Remove. If an application wants to
3184 locate a window outside of the screen, it's not GDK's business to
3185 prevent it. And anyway, with multiple monitors, negative
3186 coordinates are perfectly normal.
3187 (gdk_window_new): Adjust the window size for decorations after
3188 _gdk_window_init_position() has done its job. (But the big window
3189 code currently is presumably broken on Win32 anyway.)
3190 (gdk_window_move): The position passed in is supposed to be that
3191 of the window border, so don't need to adjust for decorations.
3192 (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
3194 Tue Jul 29 13:55:44 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3196 * gtk/gtktoolbar.c (gtk_toolbar_set_style,
3197 gtk_toolbar_prepend_element, gtk_toolbar_append_element,
3198 gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
3199 gtk_toolbar_append_space, gtk_toolbar_insert_item,
3200 gtk_toolbar_prepend_item, gtk_toolbar_append_item,
3201 gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
3202 gtk_toolbar_new, gtk_toolbar_prepend_item):
3204 Move documentation inline from template files.
3206 * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
3207 gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
3208 gtk_toolbar_append_widget, gtk_toolbar_remove_space,
3209 gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
3210 gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
3211 gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
3212 gtk_toolbar_get_style, gtk_toolbar_get_orientation)
3214 Copy documentation from stable that was added after the EggToolbar
3217 * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
3219 Mon Jul 28 18:21:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3221 * gtk+/docs/: Commit autogenerated changes, so patches will make
3224 2003-07-27 Tor Lillqvist <tml@iki.fi>
3226 * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
3227 the keyboard state returned by GetKeyboardState() doesn't
3228 distinguish between the left and right Control and Alt keys. Thus
3229 we cannot detect AltGr (which is supposed to be left Control +
3230 right Alt) the same way as on NT-based systems, but have to accept
3231 either Control + either Alt as AltGr.
3233 2003-07-27 Matthias Clasen <maclas@gmx.de>
3235 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
3236 Fix function name in warning message. (#118156, Tim-Philipp
3239 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
3240 is-expander and is-expanded are boolean properties, not ints.
3241 (#118359, Josh Parsons)
3243 Sat Jul 26 15:21:27 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3245 * gtk/gtkimagemenuitem.c
3246 (gtk_image_menu_item_toggle_size_request): don't request
3247 toggle_space when the image width is 0.
3249 2003-07-25 Tor Lillqvist <tml@iki.fi>
3251 * gdk/win32/gdkprivate-win32.h
3252 * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
3253 and _gdk_keyboard_has_altgr.
3255 * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
3256 ones detailled here.
3258 Code that has been ifdeffed out for a long time removed. Remove
3259 some really old doc comments that were left behind for some public
3260 functions, the official ones are in the X11 backend anyway. Change
3261 GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
3262 multi-line boolean expressions to have the operators at ends of
3265 As mouse capture with SetCapture() indeed seems to work OK, no
3266 need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
3268 Ifdef out the gdk-ping-msg stuff. I don't remember why it was
3269 needed at some time, and things seem to work fine now without
3272 Ifdef out the search for some Latin locale keyboard layout being
3273 loaded. Not used currently, but might be needed after all, if we
3274 decide that we want to be able to generate ASCII control character
3275 events with a non-Latin keyboard.
3277 (assign_object): New helper function, handles the g_object_ref()
3278 and unref() calls when assigning GObject pointers.
3280 (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
3281 enter event when the pointer has moved to an ancestor window. Was
3282 left out by mistake.
3284 (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
3286 (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
3287 functionality, using ClipCursor().
3289 (find_window_for_mouse_event): Splice part of code into new
3290 function find_real_window_for_grabbed_mouse_event().
3292 (fixup_event, append_event, apply_filters): New functions, code
3293 refactored out from elsewhere.
3295 (synthesize_enter_or_leave_event, synthesize_leave_event,
3296 synthesize_enter_event,
3297 synthesize_leave_events,synthesize_enter_events): Also take a
3298 GdkCrossingMode parameter, in preparation to generating
3299 GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
3301 (fixup_event, append_event, fill_key_event_string): New functions,
3304 (vk_from_char, build_keypress_event, build_keyrelease_event):
3305 Removed as part of dropping WM_CHAR handling.
3307 (build_key_event_state,gdk_event_translate): Call
3308 GetKeyboardState(), once, for each keyboard message, instead of
3309 several calls to GetKeyState() here and there.
3311 (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
3312 at it, do some major refactoring, and some fixes for potential
3313 problems noticed while going through the code.
3315 Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
3316 WM_KEYUP. Don't need the state variables related to whether to
3317 wait for WM_CHAR or not, and whether the current key is
3318 AltGr. Remove lots of complexity. Thus don't need the
3319 use_ime_composition flag.
3321 Not handling WM_CHAR means dead key handling will have to be taken
3322 care of by GTK, but that seems to work fine, so no worry.
3324 Another side-effect is that Alt+keypad digits don't work any
3325 longer, but it's better to learn to use GTK's ISO14755 support is
3328 Be more careful in checking whether AltGr is involved. Only
3329 attempt to handle it if the keyboard actually has it. And
3330 explicitly check for *left* Control plus *right* Alt being
3331 pressed. Still, allow (left) Alt and/or (right) Control with AltGr
3334 Handle keys using similar code as in the X11 backend. As we have
3335 built a keymap in gdkkeys-win32.c anyway, use it by calling
3336 gdk_keymap_translate_keyboard_state() to look up the keysym from
3337 the virtual key code and keyboard state. Build the key event
3338 string in exactly the same way as the X11 backend.
3340 If an IME is being used, don't generate GDK events for keys
3341 between receiving WM_IME_STARTCOMPOSITION and
3342 WM_IME_ENDCOMPOSITION, as those keys are for the IME.
3344 For WM_IME_COMPOSITION, handle all the Unicode chars returned from
3345 the IME, not just the first one.
3347 gdk_event_translate() is still quite complex, could split the
3348 message handler cases out into separate functions.
3350 On mouse events, when the mouse is grabbed, use
3351 find_real_window_for_grabbed_mouse_event() in order to be able to
3352 generate correct crossing events.
3354 No longer take a pre-allocated GdkEvent as parameter. Instead,
3355 allocate events as needed and append them to the queue. (This is
3356 different from how gdk_event_translate() in the X11 backend
3357 works.) This change made the code much clearer, especially in the
3358 cases where we have to generate several GDK events for one Windows
3359 message. Return FALSE if DefWindowProc() should be called, TRUE
3360 if not. If DefWindowProc() should not be called, also return the
3361 value to be returned from the window procedure.
3363 (Previously, the interaction with gdk_event_translate()'s caller
3364 was much more complex, when we had to indicate whether the
3365 already-queued event should be left in the queue or removed, and
3366 in addition also had to indicate whether to call DefWindowProc()
3367 or not, and what value to return from the window procedure if
3370 Don't use a separate "private" variable required to be pointing to
3371 the GdkWindowObject of the "window" variable at all times. Just
3372 use casts, even if looks a bit uglier.
3374 Notice destroyed windows as early as possible, and break out of
3375 the messsage switch.
3377 Use _gdk_pointer_root as current_window when the pointer is
3378 outside GDK's top-level windows.
3380 On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
3381 appropriate, based on ImmIsIME().
3383 (gdk_event_translate, gdk_event_send_client_message_for_display,
3384 gdk_screen_broadcast_client_message): Implement client messages.
3385 Use a registered Windows message to pass GDK client messages. Note
3386 that the amount of user data is restricted to four bytes, as it is
3387 carried in the LPARAM. (The WPARAM is used for the message type
3390 (real_window_procedure): Adapt for new gdk_event_translate()
3393 * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
3394 _gdk_input_locale_is_ime initially.
3396 * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
3397 of g_colormap_ref()/unref().
3399 (gdk_window_new): Made code a bit more like the X11 one, pretend
3400 to handle screens (although we just have one for now).
3402 * gdk/x11/gdkevents-x11.c
3403 (gdk_event_send_client_message_for_display,
3404 gdk_screen_broadcast_client_message): Document the user data
3405 limitation on Win32.
3407 * gdk/win32/gdkevents-win32.c (print_event): More complete enter
3408 and leave notify detail output.
3410 * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
3411 visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
3412 for those, so that the GtkIMContextCimple compose tables will
3413 work. Deduce if the keyboard layout has the AltGr key, and set the
3414 above flag accordingly.
3416 2003-07-26 Matthias Clasen <maclas@gmx.de>
3418 * gtk/gtkwidget.c: Document DND signals.
3420 2003-07-24 Matthias Clasen <maclas@gmx.de>
3422 * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
3423 insensitive when editing isn't possible. (#118150)
3425 2003-07-23 Matthias Clasen <maclas@gmx.de>
3427 * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue
3428 spinbutton wrap. (#118097, John Darrington)
3430 * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps.
3432 2003-07-20 Hans Breuer <hans@breuer.org>
3434 * makefile.msc : new file to build it all
3435 * Makefile.am : ... added to EXTRA_DIST
3437 * gdk/makefile.msc gtk/stock-icons/makefile.msc
3438 gtk/makefile.msc.in tests/makefile.msc : updated
3440 * gdk/gdk.def gtk/gtk.def : export a bunch of new
3443 * gtk/gtkbbox.c : use g_return_val_if_fail() if
3444 there is a value to return
3446 * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
3449 * gtk/gtkicontheme.c : ported to use GTimeVal instead of
3450 struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
3452 * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
3454 * gtk/gtkimmulticontext.c : use gtkprivate.h
3456 * gtk/stock-icons/stock_color_picker_25.png
3457 gtk/stock-icons/stock_jump_to_rtl_16.png
3458 gtk/stock-icons/stock_jump_to_rtl_24.png
3459 gtk/stock-icons/stock_redo_rtl_16.png
3460 gtk/stock-icons/stock_redo_rtl_24.png
3461 gtk/stock-icons/stock_undelete_rtl_16.png
3462 gtk/stock-icons/stock_undelete_rtl_24.png
3463 gtk/stock-icons/stock_undo_rtl_16.png :
3464 gtk/stock-icons/stock_undo_rtl_24.png :
3467 Sat Jul 19 22:39:24 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3469 * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
3470 leftover request of {xy}thickness
3472 Sat Jul 19 16:26:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3474 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
3475 attempt to add a NULL icon to the box.
3477 Sat Jul 19 12:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3479 * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
3482 2003-07-19 Matthias Clasen <maclas@gmx.de>
3484 * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id.
3485 * gtk/gtkiconfactory.c (get_default_icons): Add
3486 stock_dialog_authentication_48. (#65765)
3487 * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
3488 * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
3491 * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
3494 Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3496 * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
3499 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
3500 (gtk_widget_real_focus_{in|out}_event): queue shallow draws
3501 instead of full draws.
3503 2003-07-18 Matthias Clasen <maclas@gmx.de>
3505 * gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
3507 * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
3508 signal, move_viewport.
3509 (gtk_text_view_move_viewport): New function which implements the
3510 move_viewport functionality.
3511 (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
3512 the viewport. (#78669)
3514 * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
3515 move_viewport argument.
3517 * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
3521 * gtk/gtkwindow.c (gtk_window_set_default_icon): New method. (#95816)
3523 * gtk/gtkmessagedialog.h:
3524 * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
3525 (#65501, Sebastian Rittau)
3527 Fri Jul 18 20:06:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3529 * gtk/gtktextview.c (changed_handler): use
3530 gtk_widget_queue_resize_noredraw().
3532 2003-07-16 Jody Goldberg <jody@gnome.org>
3534 * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
3536 Fri Jul 18 19:55:50 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3538 * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
3541 Fri Jul 18 18:43:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3543 By popular request give toolbuttons a border.
3546 (gtk_tool_item_size_allocate):
3547 (gtk_tool_item_size_request): don't request and allocate a border
3550 * gtk/gtktoolbutton.c
3551 (gtk_tool_button_size_allocate):
3552 (gtk_tool_button_size_request): remove these functions
3555 (gtk_toolbar_size_request):
3556 (gtk_toolbar_size_allocate): request and allocate a border if we
3559 Thu Jul 17 19:24:51 2003 Kristian Rietveld <kris@gtk.org>
3563 Fixes issues pointed out by Morten Welinder in #115140.
3565 * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
3566 (do_validate_rows): update validated_area with a logic OR instead
3568 (validate_rows_handler): make the if statement match the one in
3569 validate_rows(), so we don't leak the timeout.
3571 Thu Jul 17 19:12:02 2003 Kristian Rietveld <kris@gtk.org>
3575 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
3576 should only grab focus back if the "cell_editable" widget still
3577 has focus. (Fixes #110104, testcase provided by Marco Pesenti
3580 Thu Jul 17 19:06:34 2003 Kristian Rietveld <kris@gtk.org>
3584 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3585 Don't set attr.event_mask twice, those things were meant to be
3586 ORred. (#115139, pointed out by Morten Welinder).
3588 Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
3592 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
3593 if needed. (Fixes #115869, reported by Michael Natterer).
3595 2003-07-15 Matthias Clasen <maclas@gmx.de>
3597 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
3598 Fight against gtk-doc stupidity.
3600 2003-07-13 Matthias Clasen <maclas@gmx.de>
3602 * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
3603 targets, to pacify gtk-doc.
3605 Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3607 * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
3608 label_text, label_widget and icon_widget. (#117312,
3611 Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3613 * gtk/gtkmenu.c (gtk_menu_class_init): new properties
3614 "horizontal-offset" and "vertical-offset" that determines the
3615 position of the menu when it is a submenu.
3617 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
3618 submenus according to new vertical- and horizontal-offset
3621 Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
3625 * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
3626 case drags to "0", scroll to the top after dropping. (Fixes #94968,
3627 reported by Alp Toker).
3629 Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
3633 * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
3634 code (#115784, Owen Taylor).
3636 Sat Jul 12 16:01:03 2003 Kristian Rietveld <kris@gtk.org>
3640 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3641 free the old text and extra_attrs *after* we parsed the new
3642 markup string. (Fixes #114485, reported by Owen Taylor).
3644 Sat Jul 12 15:51:33 2003 Kristian Rietveld <kris@gtk.org>
3648 Fixes #113904, testcase provided by Rene Seindal.
3650 * gtk/gtktreeview.c (gtk_tree_view_button_press): set
3651 pressed_button to -1 when a row has been activated,
3652 (gtk_tree_view_motion_bin_window): only start a drag if there's
3653 a button being pressed.
3655 Sat Jul 12 15:51:18 2003 Kristian Rietveld <kris@gtk.org>
3659 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
3660 gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
3661 to avoid a roundtrip (#110272, Owen Taylor).
3663 Sat Jul 12 15:28:26 2003 Kristian Rietveld <kris@gtk.org>
3667 This patch really really fixes scrolling. Related bugs: #81627,
3668 testcase provided by Timo Sirainen, #111500, testcase provided by
3669 manu, #113241, reported by Pedro Gimeno/Michael Natterer.
3671 * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
3672 which is equal to the lower border of the window means scrolling
3673 to an invisible row, always update the dy when scrolling to an
3674 invisible row, corrected area_above/below calculations for
3675 invisible rows, when walking the tree correct the size
3676 subtracted for invalidated rows, fix wrong logic in comment.
3678 2003-07-11 Matthias Clasen <maclas@gmx.de>
3680 * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
3681 mime_types. (#117219, Steve Chaplin)
3683 Tue Jul 8 20:11:04 2003 Owen Taylor <otaylor@redhat.com>
3685 * gdk/x11/gdkevents-x11.c (get_real_window)
3686 gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
3687 gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
3688 gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
3689 Don't assume that all events start with XEventAny - Xkb events
3690 don't! (#105745). So, only do that for core events, and for
3691 non-core events, add a system for registering event types
3692 that start with XEventAny.
3694 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
3695 Check to see if the result of gdk_window_lookup_for_display()
3696 is actually a window.
3698 Fri Jul 11 20:48:14 2003 Kristian Rietveld <kris@gtk.org>
3700 * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
3701 check a silent assert, so it follows the g_free() behaviour.
3703 2003-07-11 Matthias Clasen <maclas@gmx.de>
3705 * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents
3706 vertically. (#109823, Joe Shaw)
3708 2003-07-11 Morten Welinder <terra@gnome.org>
3710 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
3711 access error. (#69436)
3713 Fri Jul 11 14:32:43 2003 Kristian Rietveld <kris@gtk.org>
3715 Landing GtkTreeModelFilter and the completion code. (Test program
3716 and documentation will follow next week).
3718 * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
3719 gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
3721 * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
3722 necessary code to hook up completion.
3724 * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
3725 GtkCellLayout interface.
3727 * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
3729 * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
3732 Wed Jul 9 19:48:26 2003 Kristian Rietveld <kris@gtk.org>
3736 * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
3737 directly return from ->window_at_pointer, but set win_x and win_y
3738 first if needed. (Fixes #110166, reported by Arno Charlet).
3740 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
3741 function to accept GdkDrawables and not just GdkWindows. This was
3742 already done in some other functions a while back, but this patch
3743 got lost for some reason.
3745 2003-07-09 Matthias Clasen <maclas@gmx.de>
3747 * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
3748 direction when sorting children. (#116540, Soeren Sandmann)
3750 Tue Jul 8 17:36:21 2003 Owen Taylor <otaylor@redhat.com>
3752 * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c:
3753 Change _gdk_x11_send_xevent_async() to
3754 _gdk_x11_send_client_message_async() avoid using Xlib
3755 internals that are different on Solaris.
3756 (#116917, Morten Welinder)
3758 2003-07-08 Matthias Clasen <maclas@gmx.de>
3760 * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
3761 (#116501, Doug Quale)
3763 Tue Jul 8 21:35:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3765 * gtk/gtktoggletoolbutton.h: remove strange #define
3766 * gtk/gtktoolbutton.h: fix cut'n'paste error
3767 * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
3769 * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
3770 private data instead of g_new0()
3771 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
3772 instance private data
3774 Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3776 * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
3777 for INPUT_ONLY window
3778 * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
3779 * gtk/gtknotebook.c (gtk_notebook_realize): same
3780 * gtk/gtkexpander.c (gtk_expander_realize): same
3781 * gtk/gtkrange.c (gtk_range_realize): same
3785 Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3787 * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
3788 when detail is "menuitem". With the new menu look is isn't needed
3791 * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
3792 resize here, so that tool items will get a chance to relayout
3793 themselves based on the toolbar configuration.
3795 change DEFAULT_SPACE_SIZE to 4 instead of 5
3798 Get rid of "!GTK_BIN (item)->child means separator". Separators
3799 are widgets in their own right
3801 change DEFAULT_SPACE_SIZE to 4 instead of 5
3803 (get_space_size): remove this function
3804 (toolbar_item_is_homogeneous): new function
3806 * gtk/gtkseparatortoolitem.c
3807 (gtk_separator_tool_item_size_request): new function.
3809 Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3811 * gtk/gtktoggletoolbutton.h: use private data, add new
3812 internal function _gtk_toggle_tool_button_get_button()
3814 * gtk/gtktoolbutton.h: move to private data
3816 * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
3819 Tue Jul 8 12:50:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3821 * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
3822 type check, (#116947, Krasimir Angelov)
3824 * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
3826 * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
3827 data. Not instance private data yet, because of bug 116921.
3829 * gtk/gtktoolitem.h: new accessors:
3830 gtk_tool_item_get_homogeneous ()
3831 gtk_tool_item_get_expand ()
3832 gtk_tool_item_get_pack_end ()
3833 gtk_tool_item_get_use_drag_window ()
3835 Mon Jul 7 16:50:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3837 * gtk/gtkcellrenderertext.c
3838 (gtk_cell_renderer_text_class_init): remove accidentally committed
3842 (gtk_toolbar_paint_space_line): remove this function
3843 (gtk_toolbar_expose): always propagate expose, even if the item is
3846 * gtk/gtkseparatortoolitem.c
3847 (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
3848 (get_space_size): new function.
3849 (get_space_style): new function
3851 Sun Jul 6 13:00:20 2003 Owen Taylor <otaylor@redhat.com>
3853 * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
3854 * gtk/gtkdnd.c (gtk_drag_begin_internal): Remove use
3855 of GDK_POINTER_MOTION_HINT_MASK.
3857 * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
3858 of the drag into an idle as a superior form of
3861 * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
3862 creation here, so that we have an icon at the start
3863 of the drag (e.g., when retrieving the window cache
3866 Sun Jul 6 17:21:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3868 * docs/widget_geometry.txt: better drawing of GtkMenuItem
3869 * docs/widget_geometry.txt: add notes about GtkMenu
3870 * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
3872 Sat Jul 5 10:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3874 * gtk/gtkmenu.c: add vertical_padding style property.
3876 * gtk/gtkmenuitem.c: add style properties toggle_spacing,
3877 arrow_spacing and horizontal_padding. Also center separators and
3878 make them a bit taller.
3880 * gtk/*menuitem.c: use new style properties.
3882 * docs/widget_geometry.txt: Add note about GtkMenuItem
3885 (gtk_default_draw_vline, gtk_default_draw_hline):
3888 (gtk_default_draw_shadow): draw a black border around menus.
3890 * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
3891 calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
3892 x2 and y1, y2 respectively, not x, width and y, height).
3894 Sat Jul 5 09:55:38 2003 Owen Taylor <otaylor@redhat.com>
3896 * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
3897 all the atoms in the target list at once.
3899 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
3900 Local drag short-circuit.
3902 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
3903 local case, poke the actions in directly instead of
3904 going through xdnd_set_actions.
3906 * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
3909 * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
3910 XSelectInput()/add a filter if the drag is local.
3912 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection):
3913 Simplify handling of "XdndSelection".
3915 * gdk/x11/gdkevents-x11.c
3916 (gdk_event_send_client_message_to_all_recurse): Somehow,
3917 a WM_STATE => _NET_WM_STATE change hand been made here.
3919 * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
3920 xatom_names, not atom_names.
3922 * tests/testdnd.c (target_drag_motion): Make the trashcan
3923 open again. (Got lost in deprecation cleanup.)
3925 Sat Jul 5 00:49:32 2003 Owen Taylor <otaylor@redhat.com>
3927 * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
3928 earlier, so we don't get a big pile of uncompressed
3929 motion events before the grab takes effect.
3931 * gtk/gtkdnd.c (gtk_drag_update_icon): Call
3932 gdk_window_process_all_updates() so that the area
3933 we are dragging over gets a change to redraw.
3935 * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use
3936 gdk_window_get_position(), not gdk_window_get_origin().
3938 * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
3939 gdkdisplay-x11.h: use XShapeQueryExtension to
3940 avoid duplicate XQueryExtension when we actually
3941 use it. Remove unnecessary caching in GdkDisplayX11.
3943 Fri Jul 4 23:49:22 2003 Owen Taylor <otaylor@redhat.com>
3945 * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info):
3946 Function to get a range of information about all the
3947 children of a window in a single pass.
3949 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
3950 gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
3951 _gdk_x11_get_window_child_info() to greatly reduce
3952 the number of roundtrips.
3954 Fri Jul 4 22:57:18 2003 Owen Taylor <otaylor@redhat.com>
3956 * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
3957 a function to XSendEvent() and call a calback on
3960 * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
3961 messages to the same process, use _gdk_send_xevent_async().
3963 Fri Jul 4 22:26:27 2003 Owen Taylor <otaylor@redhat.com>
3965 * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
3966 toplevel-specific pieces of GdkWindowImplX11 into
3967 a separate GdkToplevelX11 structure.
3969 Fri Jul 4 22:05:09 2003 Owen Taylor <otaylor@redhat.com>
3971 * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
3972 some leftover fields.
3974 Fri Jul 4 15:57:52 2003 Owen Taylor <otaylor@redhat.com>
3976 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
3977 Use asynchronously _gdk_x11_set_input_focus_safe
3978 to avoid having to trap errors and XSync().
3980 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
3981 _gdk_x11_set_input_focus_safe() here as well.
3983 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
3984 Rework handling of property notifies on _NET_WM_STATE
3985 so that we ignore _NET_WM_DESKTOP notifies unless we
3988 * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
3989 XShmQueryExtension() rather than XQueryExtension() to
3990 avoid extra rountrip.
3992 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
3993 Remove unused call to XGetWindowAttributes()
3995 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
3996 unused call to XGetKeyboardControl().
3998 * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
4001 * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
4002 No-op implementations of gdk_display_flush().
4004 * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
4005 gdk_display_flush() rather than gdk_flush() to avoid
4008 * gdk/x11/gdkwindow-x11.c (update_wm_hints)
4009 gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
4010 so that we don't have to get the property back from the server.
4012 * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
4013 the serial of when we map a toplevel to allow optimizing
4014 out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
4016 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
4017 XTranslateCoordinates() for override-redirect windows.
4019 Fri Jul 4 15:59:27 2003 Owen Taylor <otaylor@redhat.com>
4021 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
4022 about setting window group after the window is mapped from docs
4023 - nothing the ICCCM forbids that.
4025 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
4026 Fix g_return_val_if_fail() in void return function.
4028 * configure.in: Fix misplaced comma that was resulting
4029 in XShm always being disabled.
4031 Fri Jul 4 19:55:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4033 * tests/stresstest-toolbar: remove this accidentally committed
4036 * tests/stresstest-toolbar.c: really add this new test
4038 Fri Jul 4 19:06:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4040 * tests/stresstest-toolbar.c: new test for removing items
4042 * tests/testtoolbar.c: add a popup menu
4044 * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
4045 assert widget->parent == container when the container is a
4048 * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
4049 simpler. Also make correct.
4051 * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
4052 popup_context_menu a boolean handled signal.
4054 2003-07-04 Tor Lillqvist <tml@iki.fi>
4056 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
4057 gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
4058 the width and height of the bounding rectangle only after the
4059 minumum x and y have been found, and need a separate loop for
4060 it. Thanks to Bruce Hochstetler for providing a sample program
4063 2003-07-03 Tor Lillqvist <tml@iki.fi>
4065 * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
4066 (#116537, Peter Zelezny)
4068 Thu Jul 3 03:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4070 * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
4071 fix warning. Assign something to old_value to quiet gcc
4074 (start_spinning): gtk_timeout_add->g_timeout_add
4076 * gtk/gtkicontheme.c
4077 (theme_lookup_icon): Make it compile (remove double semicolon)
4079 * gtk/gtktoolbutton.c
4080 (gtk_tool_button_class_init): Long comment about properties.
4081 (gtk_tool_button_class_init): Improve text for "use_underline"
4083 (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
4084 on whether the passed-in label has use_mnemonic set
4085 (gtk_tool_button_create_menu_proxy): Split image cloning out in
4086 new function. Make that function also handle image with pixbuf
4088 (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
4089 instead of gtk_container_remove().
4090 (gtk_tool_button_construct_contents): Fix eliding bug
4093 (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
4095 (gtk_toolbar_button_press): Make popup_context_menu signal provide
4096 coordinates and button number
4098 * tests/testtoolbar.c (main): Add new pixbuf toolbutton
4100 * tests/apple-red.png: new file
4102 Wed Jul 2 18:00:56 2003 Owen Taylor <otaylor@redhat.com>
4104 * gtk/gtkicontheme.[ch]: Implement a loader for
4105 named themed icon based on from gnome-desktop library
4108 * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
4111 * gtk/gtkiconfactory.[ch]: Add
4112 gtk_icon_source_set/get_icon_name() to allow stock icons
4113 to be based off of named theme icons.
4115 * gtk/gtkiconfactory.c: Rework sources so that the source
4116 is *either* a pixbuf, or a filename, or an icon name,
4117 instead of the pixbuf/filename mix it was before. Put a
4118 workaround for get_pixbuf() so that it can return the
4119 filename pixbuf, e.g, for render_icon().
4121 * gtk/gtkiconfactory.c: Make the default setup use
4122 themed icons, and add builtin icons to the default
4123 icon theme for all the standard pixbufs, so we
4124 don't rely on actually having an icon theme on disk.
4126 * gtk/gtkrc.c: Add support for @"icon-name" to specify
4127 a themed icon for a stock icon source.
4129 * tests/Makefile.am test/testicontheme.c: Add a test
4130 program from gnome-desktop.
4132 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
4133 Net/IconThemeName / gtk-icon-theme-name setting.
4135 * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
4136 update the icon cache serial so we don't continually
4137 think we are out-of-date.
4139 * gtk/gtkwidget.c: Fix a couple of references in doc comments
4140 to ::direction_set that should have been to ::direction-changed
4142 Wed Jul 2 14:45:41 2003 Owen Taylor <otaylor@redhat.com>
4144 * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
4145 style to the widget.
4147 Wed Jul 2 15:42:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4149 * gtk/gtk.h: Add new toolbar headers
4151 * tests/testtoolbar.c: new file
4153 * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
4155 * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
4157 Tue Jul 1 22:49:25 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4160 (gtk_toolbar_remove_tool_item): Fix bug where list is changed
4161 inside a for loop (pointed out by Morten Welinder).
4162 (gtk_toolbar_focus_home_or_end): Minor formatting change
4166 * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
4167 gtk_toolbar_elide_underscores instead.
4169 * gtk/gtktoolbar.c: rename signal from focus_ends to
4171 (_gtk_toolbar_elide_underscores): export this as an internal
4173 (gtk_toolbar_move_focus): add comment explaining difference to
4174 gtk_toolbar_focus();
4175 (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
4176 TAB_BACKWARD focus the right widgets in RTL mode
4178 * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
4179 "label" and "icon" parameters
4181 * gtk/gtktoolbutton.[ch]: remove icon_set property.
4183 2003-07-01 Matthias Clasen <maclas@gmx.de>
4185 * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
4186 (116364, Morten Welinder)
4188 * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
4189 corresponding dialogs.
4191 * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
4193 (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c.
4195 * gtk/gtkfontbutton.[hc]: New files containing a font picker widget.
4197 * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget.
4199 * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
4201 * gtk/gtkexpander.c: Small additions to the docs.
4203 2003-07-01 Tor Lillqvist <tml@iki.fi>
4205 * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
4206 WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
4208 2003-07-01 Matthias Clasen <maclas@gmx.de>
4210 * configure.in: Check for Xcursor.
4212 * gdk/x11/gdkcursor-x11.c:
4214 * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
4215 gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
4216 gdk_display_supports_cursor_color(),
4217 gdk_display_get_default_cursor_size() and
4218 gdk_display_get_maximal_cursor_size(). (#69436)
4220 2003-06-30 Tor Lillqvist <tml@iki.fi>
4222 * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
4223 callback proc for EnumWindows().
4224 (gdk_drag_find_window_for_screen): Actually take the drag_window
4225 argument into account: Instead of using WindowFromPoint(), use
4226 EnumWindows(), to be able to skip the drag_window. (#116320, Tony
4227 M Brown, Herman Bloggs)
4229 * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
4230 gdk_window_ref()/unref() calls with g_object_ref()/unref().
4231 Consistently use %p format in debugging output of pointers and
4234 2003-06-30 Mark McLoughlin <mark@skynet.ie>
4236 * gtk/gtkexpander.h: kill some stray characters
4239 2003-06-30 Mark McLoughlin <mark@skynet.ie>
4241 Add GtkExpander. See discussion in bug #60553.
4243 * gtk/gtkexpander.[ch]: add.
4245 * gtk/Makefile.am: build gtk-expander.[ch].
4247 * docs/widget_geometry.txt: add info on the layout
4250 Mon Jun 30 01:20:19 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4252 * gtkradiotoolbutton.c: new file
4253 * gtkradiotoolbutton.h: "
4254 * gtktoggletoolbutton.c: "
4255 * gtktoggletoolbutton.h: "
4256 * gtktoolbutton.c: "
4257 * gtktoolbutton.h: "
4260 * gtktoolbar.c: many changes
4261 * gtktoolbar.h: many changes
4262 * gtkseparatortoolitem.c: new file
4263 * gtkseparatortoolitem.h "
4267 - Items on a toolbar are now separate widgets, instances of a
4268 subclass of GtkToolItem.
4270 - Items there aren't room for on the toolbar are unmapped, and an
4271 overflow menu with a proxy menu item is added instead.
4273 - The toolbar is keyboard navigatable. Press TAB to focus the
4274 first item, then use arrow keys and Ctrl TAB to move around the
4275 toolbar. TAB moves focus out of the toolbar.
4277 - Bascially all of the old toolbar API is deprecated in favor of
4278 new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
4280 - The toolbar is backwards compatible with the old toolbar.
4282 2003-06-29 Matthias Clasen <maclas@gmx.de>
4284 * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
4285 from docs, some more formatting fixes.
4287 2003-06-28 Tor Lillqvist <tml@iki.fi>
4289 Fix for #111028, thanks to J. Ali Harlow, who writes:
4290 I found that the GdkPixmap->GdkImage reference really isn't
4291 important. It's only really there to have somewhere convenient to
4292 store the location of the pixel data in the pixmap and as an easy
4293 way of accessing the dimensions of that data. I have therefore put
4294 together a fix which removes this reference entirely which seems
4295 to solve the problem.
4297 * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
4298 Instead of a pointer to a GdkImage, keep a pointer to the pixels
4301 * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
4302 (_gdk_win32_new_image): New function, replacing the above. Creates
4303 a GdkImage without any associated GdkPixmap.
4304 (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
4306 * gdk/win32/gdkprivate-win32.h: Remove from here, too.
4308 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
4309 * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
4310 * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
4311 * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
4312 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
4313 gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
4314 Corresponding changes.
4316 Thu Jun 26 21:41:16 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4318 * gtk/gtktreeviewcolumn.c
4319 (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
4320 and "is_expanded" if the new value is different fromt he old one.
4322 Wed Jun 25 18:59:15 BST 2003 Tony Gale <gale@gtk.org>
4324 * docs/faq/gtk-faq.sgml: Fix typos. Update
4325 thread example I missed yesterday.
4327 2003-06-24 Matthias Clasen <maclas@gmx.de>
4329 * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
4332 * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
4333 (gtk_widget_class_list_style_properties): Use same parameter names as in
4334 header (to silence gtk-doc).
4336 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
4338 Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
4340 * docs/faq/gtk-faq.sgml: Thread support updates
4341 from Owen. Various suggestions from Steve Chaplin.
4343 2003-03-24 Mohammad DAMT <mdamt@bisnisweb.com>
4345 * po/id.po: Updated Indonesian translation
4347 2003-06-21 Tor Lillqvist <tml@iki.fi>
4349 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
4350 emulating X11's automatic grab on button down, pass owner_events
4351 as FALSE. According to the XLib spec, automatic grabs use True for
4352 owner_events when OwnerGrabButtonMask is selected, and I don't see
4353 the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
4354 (find_window_for_pointer_event): Improve debugging output.
4356 2003-06-17 Tor Lillqvist <tml@iki.fi>
4358 * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
4359 subdirectory, where libtool 1.5 installs them.
4361 * README.win32: Point to FSF's binary Win32 distribution of
4364 2003-06-17 Matthias Clasen <maclas@gmx.de>
4366 * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
4367 macros to check for XML catalog contents and path, borrowed from
4369 * configure.in: New option --enable-man to enable regeneration of
4370 man pages from Docbook, if the necessary tools are found.
4372 2003-06-15 Matthias Clasen <maclas@gmx.de>
4374 * gtk/gtkcalendar.c (gtk_calendar_class_init):
4375 * gtk/gtknotebook.c (gtk_notebook_class_init):
4376 * gtk/gtkalignment.c (gtk_alignment_class_init):
4377 * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
4380 * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs
4381 to the proper place, immediately before the g_signal_new() call.
4383 * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags
4384 more obvious. (#115122, Jeff Franks)
4386 2003-06-12 Anders Carlsson <andersca@codefactory.se>
4388 * gtk/gtkwidget.c: (event_window_is_still_viewable):
4389 Special case pixmaps. (#114880)
4391 2003-06-12 Matthias Clasen <maclas@gmx.de>
4393 * gtk/gtkwidget.c: Document child-notify and drag-data-received
4394 signals. Owen, we need to figure out where the best place for
4395 these comments in the source is. I currently put them in front of
4398 2003-06-11 Matthias Clasen <maclas@gmx.de>
4400 * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
4402 Thu Jan 12 01:01:19 2003 Kristian Rietveld <kris@gtk.org>
4404 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4405 silly typo fix. s/seperator/separator/. This gets rid of the
4406 assert spam when using TreeView.
4408 Tue Jun 10 11:23:48 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4410 * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
4411 function for XIM instantiate callback.
4412 * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
4413 where call to XOpenIM() or XRegisterIMInstantiateCallback() is
4415 * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
4416 for XIM's destroy callback.
4417 * modules/input/gtkimcontextxim.c (get_im): add a check if info->im
4418 is set or not - if it's not set, call xim_info_try_im() to try to
4420 * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
4421 filter_key_release flag of the context.
4422 * modules/input/gtkimcontextxim.c (get_ic_real): removed
4423 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
4424 code from the removed get_ic_real().
4426 For XIM instantiation, destruction and re-instantiation. With
4427 this, Gtk+ apps will be able to connect or reconnect to the XIM,
4428 when it starts after the apps, or when the XIM gets lost and recover.
4431 Mon Jun 10 01:12:31 2003 Kristian Rietveld <kris@gtk.org>
4435 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
4436 check if width is !null, not *width. Doh.
4438 Tue Jun 10 01:09:33 2003 Kristian Rietveld <kris@gtk.org>
4442 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4443 Remove the weird dx logic, get all cell_area and background_area
4444 calculations right. Not sure what was up with it before. (Fixes
4445 #110989, testcase from Vasco Alexandre da Silva Costa).
4447 Tue Jun 10 00:58:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4449 * tests/testgtk.c: Make it compile with C89 compilers
4451 2003-06-10 Matthias Clasen <maclas@gmx.de>
4453 * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
4454 property "overwrite".
4455 (gtk_text_view_[gs]et_property): Handle "overwrite".
4456 * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
4457 and setter for "overwrite" property. (#110241, Jeroen Zwartepoorte)
4459 2003-06-09 Matthias Clasen <maclas@gmx.de>
4461 * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
4462 properties "resize" and "shrink".
4463 (gtk_paned_[gs]et_child_property): Implementations of
4464 GtkContainer::[gs]et_child_property.
4465 * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
4466 paned child properties instead of remove/add hacks. (#114667,
4469 Mon Jun 9 16:18:11 2003 Owen Taylor <otaylor@redhat.com>
4471 * gtk/gtknotebook.c (gtk_notebook_button_press): Back
4472 out event->window test - it wasn't needed because
4473 of the call to get_widget_coordinates().
4475 * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
4476 call to gtk_widget_grab_focus() when not clicking on
4477 any tabs. (Real fix for #114534)
4479 Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
4481 * tests/testdnd.c: Use application/x-rootwindow-drop for
4482 root window drops. (#108670, Alex Larsson)
4484 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
4485 Accept either application/x-rootwin-drop (what GTK+ has always used)
4486 or application/x-rootwindow-drop (what the XDND standard specifies).
4488 Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
4490 * gtk/gtkwidget.c (event_window_still_viewable):
4491 Before delivering an event to a widget, check that
4492 (if relevant), the event's window is still viewable.
4493 (#105642, Dennis Björklund)
4495 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
4496 NULL out private->parent, since after destruction
4497 it might not be valid any more.
4499 * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
4500 accesses before g_return_val_if_fail(). Treat
4501 DESTROYED windows as unmapped.
4503 Thu Jun 5 09:28:03 2003 Owen Taylor <otaylor@redhat.com>
4505 * gtk/gtkentry.c: Recompute unconditionally in
4506 gtk_entry_style_set, and in a new gtk_label_screen_changed().
4507 Protect the guts of recompute_idle_func() with
4508 gtk_widget_has_screen(). (#114040, Morten Welinder)
4509 Fix FALSE/0 confusion.
4511 Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4513 * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
4516 Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
4518 * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
4519 set_adjustment (viewport, NULL);
4521 2003-06-07 Matthias Clasen <maclas@gmx.de>
4523 * gtk/gtkiconfactory.c (get_default_icons):
4524 * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
4525 * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
4526 undelete and revert. (#96633)
4528 Fri Jun 6 16:25:44 2003 Owen Taylor <otaylor@redhat.com>
4530 * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
4531 refactoring of code to reduce duplication; fixes include:
4533 - gtk_viewport_realize(): Position the window correct from adjustment
4534 values. (#110737, Michael Natterer)
4536 - Remove some division-by-zero checks in places where there is no
4537 longer division. (#110737)
4539 - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
4540 G_PARAM_CONSTRUCT, so that there will always be adjustments, even
4541 if gtk_viewport_new isn't used (#101135, Thomas Leonard).
4543 - Switch over to encapsulated lazy-creation for hadjustment/
4544 vadjustment; even with the CONSTRUCT property, we need this after
4547 - When updating the adjustment, immediate set their values to
4548 match the the current range of the viewport, and update the
4549 viewport position to match the value of the new adjustments.
4552 2003-06-06 Tor Lillqvist <tml@iki.fi>
4554 * gdk/win32/gdkprivate-win32.h: Fix typo.
4556 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
4557 graphics_exposures and subwindow_mode, too, even if they aren't
4560 Fri Jun 6 23:38:23 2003 Kristian Rietveld <kris@gtk.org>
4564 * gtk/gtktreeview.c (do_expand_collapse),
4565 (expand_collapse_timeout), (cancel_arrow_animation): made
4566 expand_collapse_timeout a wrapper with locks around
4567 do_expand_collapse, made cancel_arrow_animation use
4568 do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
4571 Fri Jun 6 11:05:45 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4573 * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
4574 * modules/input/gtkimcontextxim.c (preedit_start_callback,
4575 preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
4576 to keep preedit-[start,changed,end] signals from being called during
4577 finalization (#111861).
4579 2003-06-05 Noah Levitt <nlevitt@columbia.edu>
4581 * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
4582 presses that are not on the tab (#114534).
4584 Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
4586 * demos/Makefile.am: Conditionalize dependencies for
4587 gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe).
4588 Buildtest-inline-pixbufs.h in srcdir. Don't try to build
4589 test-inline-pixbufs.h if we don't have libpng.
4591 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
4592 Add a dependency on gdk-pixbuf.loaders when not
4593 cross-compiling, remove the dependency on gdk-pixbuf-csource
4594 when not cross compiling.
4596 Thu Jun 5 20:12:51 2003 Owen Taylor <otaylor@redhat.com>
4598 * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
4599 gtk_window_get_geometry_info() returning NULL.
4600 (#107311, John Finlay)
4602 Thu Jun 5 19:24:33 2003 Owen Taylor <otaylor@redhat.com>
4604 * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
4605 twice the border width from the width/height, not
4606 1x the border width. (#106336, Rodney Dawes)
4608 Thu Jun 5 15:33:38 2003 Owen Taylor <otaylor@redhat.com>
4610 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
4611 If at the end of the buffer, move to the end iter -
4612 parallels behavior of move_iter_to_previous_line.
4613 (#81960, Padraig O'Briain)
4615 Thu Jun 5 16:12:54 2003 Owen Taylor <otaylor@redhat.com>
4617 #80023, Yao Zhang, TOKUNAGA Hiroyuki
4619 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
4620 Account for the preedit cursor offset if the iter passed
4621 in is at the same place as the insertion cursor.
4623 * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
4624 Encapsulate getting the insertion cursor location.
4626 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
4627 Pass the real y/height to the IM context. Take
4628 text_view->x/yoffset into account.
4630 Thu Jun 5 16:52:54 2003 Owen Taylor <otaylor@redhat.com>
4632 * gtk/gtktextview.[ch]: Never scroll on focus in
4633 (#81893, Patch from Paolo Maggi)
4635 * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
4636 Scroll to the current cursor location before handling
4637 the action, in case the user just tabbed in
4638 and the cursor is offscreen.
4640 Thu Jun 5 17:20:40 2003 Owen Taylor <otaylor@redhat.com>
4642 #107883, Gustavo Giráldez
4644 * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
4645 Split out the case where we know we changed, and
4646 already dealt with our cached line being invalidated
4647 from external calls to gtk_text_layout_changed.
4649 * gtk/gtktextlayout.c (gtk_text_layout_changed):
4650 Check if the invalidate yrange intersects our
4651 cached line, and clear it if necessary.
4653 2003-06-05 Tor Lillqvist <tml@iki.fi>
4655 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
4658 2003-06-05 Matthias Clasen <maclas@gmx.de>
4660 * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
4661 (gtk_text_view_grab_notify):
4662 (gtk_text_view_state_changed): Implement these
4663 to unobscure cursor when grab shadowed or insensitised.
4664 (gtk_text_view_unobscure_mouse_cursor): New function to undo the
4665 effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
4666 gtk_text_view_motion_event().
4667 (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
4669 * gtk/gtktextview.c (select_all): New keybinding signal for
4670 (un)selecting the whole buffer. Bound to C-a/C-\. (see #107889)
4672 * gtk/gtkcalendar.c (calendar_timer):
4673 (stop_spinning): Replace deprecated gtk_timeout_* functions by
4674 their GLib counterparts. (#114429)
4676 * gtk/gtktreestore.c (gtk_tree_store_new):
4677 * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on
4680 Wed Jun 4 19:42:17 2003 Owen Taylor <otaylor@redhat.com>
4682 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
4683 When drawing underlines, join up adjacent runs
4684 where possible, so we don't get changes in
4685 shaper/font/etc. breaking underlines. (#103662,
4688 Wed Jun 4 19:22:58 2003 Jonathan Blandford <jrb@redhat.com>
4690 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
4691 Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
4692 improve the speed of inserting rows into an already sorted list,
4695 Wed Jun 4 19:24:28 2003 Owen Taylor <otaylor@redhat.com>
4697 * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
4698 track of when we have a clip mask set for the GC,
4699 and when we unset it, or switch to a clip region,
4700 immediately call XSetClipMask (..., None) to avoid
4701 Xlib caching stale data. (#111806)
4703 * gtk/gtktextdisplay.c: Don't set a clip mask
4704 when drawing alpha pixmaps; it isn't necessary any more.
4707 Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
4709 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
4710 gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
4711 Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
4714 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
4715 gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
4716 Use state_type = STATE_INSENSITIVE for insensitive menu items.
4718 Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
4722 * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
4723 assert for get_info. (reported by Michael Natterer),
4724 (gtk_tree_view_expand_all_emission_helper),
4725 (gtk_tree_view_expand_all_helper): emit row_expanded for all
4726 expanded rows during an _expand_all operation. (Fixes #111280,
4727 reported by Benjamin Bayart).
4729 Tue Jun 3 18:32:30 2003 Owen Taylor <otaylor@redhat.com>
4731 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
4732 respond to pings on a root window; prevents infinite
4733 loops if we are selecting for SubstructureNotify on the
4734 root window. (#111945, Sergey V. Udaltsov)
4736 Tue Jun 3 17:39:16 2003 Owen Taylor <otaylor@redhat.com>
4738 #71597, reported by Morten Welinder
4740 * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
4741 (Patch from Christian Petig)
4743 * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
4744 Major rewrite of 555 and 565 conversion routines:
4746 - Move all the bit shifting into a small block of macros,
4747 eliminating much duplication of complicated arithmetic.
4748 - Get rid of 2-pixels at a time code, which was buggy,
4749 hard to maintain, caused unaligned accesses, and
4750 probably didn't actually perform any better.
4751 - Simplify cases where different data types were
4752 used for the little and big endian cases, use
4753 GUINT16_SWAP_LE_BE() where appropriate.
4755 Tue Jun 3 15:05:47 2003 Owen Taylor <otaylor@redhat.com>
4757 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
4758 bad optimization for src_rowstride == dest_stride.
4759 (Didn't consider the case where we were copying only
4760 partial widths of a wider source buffer)
4761 (#113034, reported by Hans Petter Jansson)
4763 2003-06-03 Michael Natterer <mitch@gimp.org>
4765 * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
4766 reenabled button_release events for xinput devices. (#113948)
4768 2003-06-03 Christian Rose <menthos@menthos.com>
4770 * configure.in: Added "li" to ALL_LINGUAS.
4772 Mon Jun 2 18:58:54 2003 Owen Taylor <otaylor@redhat.com>
4774 * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
4775 map the event window if the notebook isn't mapped. (#113980,
4778 2003-06-02 Sven Neumann <sven@gimp.org>
4780 * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
4782 * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
4784 2003-06-01 Matthias Clasen <maclas@gmx.de>
4786 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add
4787 Since: 2.4 to the docs.
4789 * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
4790 an example to the docs. (#98427)
4792 2003-05-30 Murray Cumming <murrayc@usa.net>
4794 * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
4795 gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
4796 uses the new private data system - see g_type_class_add_private() in
4797 gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
4799 2003-05-30 Matthias Clasen <maclas@gmx.de>
4801 * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
4802 signature of gtk_notebook_draw_arrow() for Solaris builds to go
4803 through. (#114043, Anand Subramanian)
4805 Thu May 29 18:30:35 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4807 * modules/input/imipa.c:
4808 use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
4810 Thu May 29 18:08:01 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4812 * gtk/gtkimmodule.c (_gtk_im_module_list):
4813 use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
4815 Thu May 29 09:34:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4817 * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
4818 label of default input method localizable.
4819 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
4820 use translations of input method context names
4821 * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
4822 modules/input/iminuktitut.c, modules/input/imthai-broken.c,
4823 modules/input/imti-er.c, modules/input/imti-et.c
4824 modules/input/imviqr.c, modules/input/imxim.c
4825 use GETTEXT_PACKAGE instead of "gtk+" for domain name.
4828 Thu May 29 18:23:01 2003 Kristian Rietveld <kris@gtk.org>
4832 * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
4833 grab separate, the user might clear the tree in the focus-in
4834 callback. (Fixes #113086, testcase from Felipe Heidrich).
4836 Thu May 29 18:06:26 2003 Kristian Rietveld <kris@gtk.org>
4840 * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
4841 of row reference when we unset the model. Also reset
4842 dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
4844 Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
4848 * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
4849 the current editing, if it exists. (Fixes #108956, reported by
4852 Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
4856 * gtk/gtktreeview.c (check_selection_helper): new function,
4857 (gtk_tree_view_row_deleted): traverse the tree from the
4858 deleted node to see whether the selection changed, instead of
4859 just checking this node. (Fixes #107400, reported by 'Duncan').
4861 Thu May 29 16:31:34 2003 Kristian Rietveld <kris@gtk.org>
4865 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
4866 (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
4867 instead of _maybe_begin_dragging_row, so the icon can be
4868 overridden by apps. (Fixes #104374, patch from Daniel Elstner).
4870 Thu May 29 16:14:04 2003 Kristian Rietveld <kris@gtk.org>
4874 * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
4875 cell_area x/width for the expander if needed. (Fixes #101748,
4876 reported by Dave Cook and Mariano Suarez-Alvarez).
4878 Thu May 29 16:01:38 2003 Kristian Rietveld <kris@gtk.org>
4882 * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
4883 if tree/node are still the same after _internal_select_node.
4884 (Fixes #92256, reported by edscott).
4886 Thu May 29 15:38:30 2003 Kristian Rietveld <kris@gtk.org>
4888 Fixes #75745, reported by Richard Hult. Merged from stable.
4890 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
4891 GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
4894 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4895 if we are rendering a cursor row, and the cell the be
4896 processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
4897 flag (else we unset it).
4899 2003-05-27 Matthias Clasen <maclas@gmx.de>
4901 * gtk/gtkwindow-decorate.c:
4902 * gtk/gtktreeprivate.h:
4904 * gdk/win32/gdkwindow-win32.h:
4905 * gdk/linux-fb/gdkprivate-fb.h:
4906 * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
4907 unspecified signedness. (#112919, Morten Welinder)
4909 * gtk/queryimmodules.c (escape_string):
4910 * gtk/gtktextbtree.c (_gtk_text_btree_get_text):
4911 * gtk/gtksettings.c (_gtk_settings_parse_convert):
4912 * gtk/gtkrc.c (gtk_rc_parse_assignment):
4913 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
4914 * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
4915 occurances of g_string_new ("") by g_string_new (NULL). (#106975,
4918 2003-05-27 Tor Lillqvist <tml@iki.fi>
4920 * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
4921 files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
4923 * gdk/Makefile.am: libgdk-win32-2.0.la depends on
4924 win32/libgdk-win32.la.
4926 * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
4928 Sat May 24 22:19:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4930 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
4931 scrollbar slider length 21 instead of 7.
4933 2003-05-23 Matthias Clasen <maclas@gmx.de>
4935 * gtk/gtknotebook.c: Add support for up to four scroll
4936 arrows. Control their display by new style properties
4937 "has_forward_stepper", "has_backward_stepper",
4938 "has_secondary_forward_stepper" and
4939 has_secondary_backward_stepper". (#110540)
4941 * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
4942 click_child three bits wide, add
4943 has_{before,after}_{previous,next} fields.
4945 * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
4946 focus out of hex_entry. (#112665)
4947 (hex_focus_out): New signal handler for focus out of hex entry.
4949 Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
4951 * gtk/gtkwidget.c (gtk_widget_realize):
4952 g_return_if_fail() if
4953 GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
4954 (#107872, Christian Reis)
4956 2003-05-22 Matthias Clasen <maclas@gmx.de>
4958 * gtk/gtkfilesel.c (gtk_file_selection_create_dir):
4959 (gtk_file_selection_rename_file): Some keynav improvements for the
4960 "Rename File" and "Create Directory" subdialogs: Enter in entry
4961 activates default, default is "Create"/"Rename", Escape cancels
4963 (gtk_file_selection_set_filename): Add a hint about opening
4964 directories. (#113175)
4966 2003-05-22 Matthias Clasen <maclas@gmx.de>
4968 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
4969 Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
4972 Wed May 21 15:53:14 2003 Owen Taylor <otaylor@redhat.com>
4974 * gtk/gtkprogress.c (gtk_progress_set_format_string,
4975 gtk_progress_set_show_text): Always queue a resize ...
4976 we rely on the size-allocate to do the update, plus a
4977 different format can actually change our size requisition.
4978 (#111052, Vasco Alexandre da Silva Costa)
4980 * gtk/gtkprogress.c (gtk_progress_changed): Track
4981 ::changed as well as ::value_changed, and queue a
4982 resize on ::changed when necessary.
4984 * gtk/gtkprogress.c (gtk_progress_set_adjustment):
4985 Call gtk_progress_changed() here to update or
4986 queue a resize as necessary.
4988 Wed May 21 14:06:13 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4990 * gtk/gtkimcontextsimple.c: added composing rules of
4991 Greek accented letters, patch by Vasilis Vasaitis (#107507)
4993 Wed May 21 13:19:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
4995 * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle):
4996 * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
4997 gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
4999 Wed May 21 12:10:25 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
5001 * gtk/gtkimcontextsimple.c:
5002 code that can check the compose table for ascending order,
5003 by Vasilis Vasaitis (#104862).
5005 Wed May 21 12:52:01 2003 Owen Taylor <otaylor@redhat.com>
5007 * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
5008 to pass the unmasked state to gdk_keymap_translate_keyboard_state()
5009 to handle the case where a modifier not in the mask
5010 (like Num_Lock) changes the key value, so replace
5011 the masked state with a state/mask pair. (#106913,
5014 * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
5015 in state/mask pair to _gtk_key_hash_lookup()
5017 Tue May 20 21:58:00 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
5019 * modules/input/gtkimcontextxim.c (xim_info_display_closed):
5020 fix a memory leak, free input context list (#113259).
5022 2003-05-21 Matthias Clasen <maclas@gmx.de>
5024 * configure.in (all_loaders): Add pcx.
5026 * gtk/gtkcalendar.c: Make calendar controls spin. (#112540)
5028 Tue May 20 17:27:24 2003 Owen Taylor <otaylor@redhat.com>
5030 * gtk/gtkimmodule.c (gtk_im_module_init): Silently
5031 accept a missing gtk.immodules file, some people
5032 want to run without one. (#112406, patch from
5035 Tue May 20 17:05:31 2003 Owen Taylor <otaylor@redhat.com>
5037 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix
5038 height/width confusion (#113370, Xan Lopez)
5040 Tue May 20 15:48:45 2003 Owen Taylor <otaylor@redhat.com>
5042 * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
5043 zero all unused parts of client messages (Mainly Motif DND
5044 and EWMH). Also, fix a couple places where we were putting
5045 contents into Motif DND messages that didn't belong.
5046 (#113361, EWMH problem reported by Lubos Lunak)
5048 * gtk/gtkselection.c (_gtk_selection_request): Handle the
5049 case where the property type for the multiple atoms is
5050 ATOM_PAIR by doing the conversions ourselve. This is
5051 needed for Xt inter-operation.
5053 2003-05-19 Arafat Medini <lumina@silverpen.de>
5055 * configure.in: Added ar to ALL_LINGUAS
5057 2003-05-19 Matthias Clasen <maclas@gmx.de>
5059 * gtk/gtksettings.c (gtk_rc_property_parse_border,
5060 gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
5061 gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
5064 * gtk/gtkwidget.c (gtk_widget_class_install_style_property,
5065 gtk_widget_class_install_style_property_parser): Add docs.
5067 2003-05-17 Matthias Clasen <maclas@gmx.de>
5069 * tests/prop-editor.c: Add navigation for object properties, so
5070 that you can easily edit the properties of the parent of a widget.
5073 Wed May 14 17:45:32 2003 Owen Taylor <otaylor@redhat.com>
5075 * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
5076 Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis
5077 inconsistency and leave the old name as an aliass (#104873)
5079 Wed May 14 16:40:09 2003 Owen Taylor <otaylor@redhat.com>
5081 * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
5082 from Charles Schmidt to add missing notify (#108305)
5084 Wed May 14 16:00:51 2003 Owen Taylor <otaylor@redhat.com>
5086 * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
5087 (#105500, Morten Welinder.)
5089 Wed May 14 09:05:11 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
5091 * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
5092 instead of gumake for XNFilterEvents event mask(#110493).
5094 2003-05-11 Anders Carlsson <andersca@codefactory.se>
5096 * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
5097 a GObject. (#112762)
5099 2003-05-08 Sven Neumann <sven@gimp.org>
5101 * configure.in: set the HAVE_X11R6 automake conditional to false
5102 if not compiling for X11.
5104 2003-05-08 Matthias Clasen <maclas@gmx.de>
5106 * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options):
5107 (gtk_calendar_get_display_options): New functions.
5108 (gtk_calendar_display_options): Depreate. (#64567)
5109 (gtk_calendar_class_init): Add boolean properties for the display
5112 Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com>
5114 Patch from James Henstridge to update to automake-1.7
5117 * autogen.sh: update to call newer tools.
5119 * configure.in: various updates, to use M4 macros to put
5120 variables that change each release at the top.
5121 Use AC_HELP_STRING to format help strings.
5122 Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
5124 * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and
5125 gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure
5128 * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
5131 * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
5132 Use BUILT_SOURCES where appropriate.
5133 Build generated files in builddir rather than srcdir.
5134 Fix uninstall and distclean targets to satisfy distcheck.
5138 * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
5139 built first, since we are now using BUILT_SOURCES.
5141 * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
5143 * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
5146 * configure.in: Update versions to 2.3.0.
5148 2003-05-06 Tor Lillqvist <tml@iki.fi>
5150 Fix for #110165 (thanks to Arnaud Charlet):
5152 * gdk/win32/gdkevents-win32.c (build_keypress_event,
5153 build_keyrelease_event): For unshifted control char, use
5154 lowercase ASCII keyval.
5155 (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
5156 UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
5157 lowercase keyval. Use build_key_event_state() here, too, instead
5158 of minor code duplication.
5160 2003-05-06 Matthias Clasen <maclas@gmx.de>
5162 * tests/testmultidisplay.c: Don't include strings.h, it's not
5163 needed anymore. (#112388)
5165 * examples/menu/itemfactory.c:
5166 * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
5167 itemfactory example.
5169 2003-05-05 Matthias Clasen <maclas@gmx.de>
5171 * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock): Actually set the
5172 icon type to the stock icon type. (#111735, Dave Bordoley)
5174 2003-05-05 Christian Rose <menthos@menthos.com>
5176 * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
5177 Removed sp, it's replaced by sr@Latn.
5179 Wed Apr 30 22:09:11 BST 2003 Tony Gale <gale@gtk.org>
5181 * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
5184 Mon Apr 28 17:54:39 2003 Jonathan Blandford <jrb@redhat.com>
5186 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
5187 data iff the destroy func isn't NULL.
5189 Thu Apr 24 19:12:05 2003 Owen Taylor <otaylor@redhat.com>
5191 * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
5193 2003-04-23 Abel Cheung <maddog@linux.org.hk>
5195 * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
5197 Tue Apr 22 15:33:51 2003 Owen Taylor <otaylor@redhat.com>
5199 * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
5200 of UTF-8. (#106419, Roozbeh Pournader)
5202 Tue Apr 22 15:17:25 2003 Owen Taylor <otaylor@redhat.com>
5204 * configure.in: Only check for XFT2 if we found pango-xft
5207 Tue Apr 22 15:12:19 2003 Owen Taylor <otaylor@redhat.com>
5209 * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
5210 PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
5212 Tue Apr 22 19:43:01 BST 2003 Tony Gale <gale@gtk.org>
5214 * docs/faq/gtk-faq.sgml: add note about version converage.
5216 Mon Apr 21 19:02:16 2003 Owen Taylor <otaylor@redhat.com>
5218 * gtk/gtksocket.c (activate_key): Fix prototype for
5219 activate_key. (#108927, Jason D. Hildebrand)
5221 Mon Apr 21 18:42:51 2003 Owen Taylor <otaylor@redhat.com>
5223 * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
5224 Remove geninclude.pl from CVS and don't dist it either,
5225 it is generated. (#108970, Rich Kinder)
5227 Mon Apr 21 18:35:48 2003 Owen Taylor <otaylor@redhat.com>
5229 * gtk/gtkobject.h: Remove a couple of obsolete comments,
5230 fix another comment. (#109737, Britton Kerin)
5232 Mon Apr 21 18:29:03 2003 Owen Taylor <otaylor@redhat.com>
5234 * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
5235 the source list, not just it's contents (Patch
5236 from Charles Kerr, #108243)
5238 Mon Apr 21 18:13:46 2003 Owen Taylor <otaylor@redhat.com>
5240 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
5241 from Alex Larsson fixing problem with restacking during
5244 Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
5246 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
5247 Calling XFlush() after ungrabbing, to avoid problems if
5248 the app subsequently blocks on a long-running operation.
5249 (#106520, reported by Rajkumar Siva)
5251 Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
5253 * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
5254 SKIP_TASKBAR/SKIP_PAGER to set of properties we
5255 might set on map. (#110019, problem reported
5258 Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
5260 * gdk/gdkevents.c (gdk_event_copy): Fix for the
5261 case when gdk_event_copy() is called on a non-allocated
5262 event. (#109716, reported by Rich Burridge)
5264 Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
5266 * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
5267 Fix pointer arithmetic on 'void *'. (#108322)
5269 Fri Apr 18 16:31:49 2003 Owen Taylor <otaylor@redhat.com>
5271 * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
5272 Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
5273 use of XAddConnectionWatch. Remove --enable-xim config option.
5274 Should fix building on X11R6 (#110523, Albert Chin)
5276 Fri Apr 18 15:56:46 2003 Owen Taylor <otaylor@redhat.com>
5278 * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
5279 Patch from Morten Welinder to catch Sun servers with a
5280 broken implementation of the RENDER extension. (#108309)
5282 Fri Apr 18 15:30:38 2003 Owen Taylor <otaylor@redhat.com>
5284 * gdk/x11/gdkwindow-x11.c (set_text_property): Use
5285 gdk_free_compound_text(), not g_free(). (#107643,
5288 Fri Apr 18 15:11:50 2003 Owen Taylor <otaylor@redhat.com>
5290 * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
5291 gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
5292 wrong use of base_finalize. (#105126, Sven Neumann)
5294 Fri Apr 18 15:06:00 2003 Owen Taylor <otaylor@redhat.com>
5296 * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
5297 '/' vs. '*' problem in aspect ration computations. (#108237)
5299 Fri Apr 18 14:15:09 2003 Owen Taylor <otaylor@redhat.com>
5301 * gdk/x11/gdkdisplay-x11.c (gdk_display_open):
5302 * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
5303 don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify
5304 event, so select for both. (#108406, Egmont Koblinger)
5306 Thu Apr 17 09:57:44 2003 Jonathan Blandford <jrb@gnome.org>
5308 * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
5309 caused by not clearing the scroll_to_path.
5311 2003-04-16 Matthias Clasen <maclas@gmx.de>
5313 * gtk/gtkstyle.c: Doc additions and fixes.
5315 * gtk/gtktreeviewcolumn.c
5316 (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
5318 2003-04-14 Michael Natterer <mitch@gimp.org>
5320 * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
5321 that the iter is not reordered to its own position. Prevents model
5322 corruption for the case that the store contains only a single item
5323 (fixes bug #108387).
5327 * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
5328 new list element later so we don't leak it if we decide to return
5331 * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
5332 set selection->tree_view->priv->anchor to NULL after freeing it.
5334 2003-04-13 Matthias Clasen <maclas@gmx.de>
5336 * gtk/gtktreeviewcolumn.c
5337 (gtk_tree_view_column_cell_get_position): Document.
5339 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range):
5340 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand):
5341 * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
5342 these as 2.4 additions.
5344 2003-04-09 Matthias Clasen <maclas@gmx.de>
5346 * INSTALL.in: Fix the real thing.
5348 * INSTALL: Typo fix.
5350 Mon Apr 7 19:43:15 2003 Owen Taylor <otaylor@redhat.com>
5352 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
5353 after ungrabbing the server.
5355 * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
5358 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
5359 Use gdk_x11_display_grab/ungrab.
5361 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
5362 use_xshm to TRUE so SHM gets used when present.
5364 2003-04-07 Matthias Clasen <maclas@gmx.de>
5366 * gtk/gtktextlayout.c (set_para_values):
5367 * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR. (#110086,
5370 * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
5371 gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
5372 misspellings of possessive "its". (#110027, Doug Quale)
5374 2003-04-03 Matthias Clasen <maclas@gmx.de>
5376 * demos/gtk-demo/main.c (demo_find_file): Only use files from the
5377 current directory if it looks like the srcdir. (#109357)
5379 Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5381 * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
5384 * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
5385 navigation not wrap around.
5387 2003-04-02 Matthias Clasen <maclas@gmx.de>
5389 * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
5390 Return 0 if lower == upper. (#109155)
5391 (gtk_progress_get_current_percentage): Use
5392 gtk_progress_get_percentage_from_value().
5394 2003-04-01 Matthias Clasen <maclas@gmx.de>
5396 * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
5397 (#109510, Noah Levitt)
5399 Mon Mar 31 13:52:13 2003 Jonathan Blandford <jrb@redhat.com>
5401 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
5402 members so Purify won't complain.
5404 * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
5406 2003-03-31 Matthias Clasen <maclas@gmx.de>
5408 * gtk/gtkwindow.c: Add a new property, role, corresponding to
5409 gtk_window_[gs]et_role(). (#93904)
5411 Sun Mar 30 03:57:42 2003 Jonathan Blandford <jrb@gnome.org>
5413 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
5414 fix crash. Patch from Markus Lausser <sgop@users.sourceforge.net>
5416 2003-03-29 Matthias Clasen <maclas@gmx.de>
5418 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
5419 of labels back to normal before reparenting back. (#102387)
5421 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
5422 a default window title to match the GtkFontSelectionDialog behavior.
5424 (gtk_color_selection_dialog_new): Don't call
5425 gtk_window_set_title() if title is NULL. (bug #101975, Daniel Elstner)
5427 2003-03-29 Matthias Clasen <maclas@gmx.de>
5431 * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
5434 * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
5435 select_lines on double/triple click.
5437 * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
5438 select-by-words and select-by-lines behaviour.
5440 Fixes for bug #56248:
5442 * gtk/gtknotebook.c (stop_scrolling): New function to remove the
5443 timer and queue a redraw.
5444 (gtk_notebook_grab_notify):
5445 (gtk_notebook_state_changed): New functions to call stop_scrolling()
5447 (gtk_notebook_button_release): Use stop_scrolling().
5448 (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
5450 * gtk/gtkrange.c (stop_scrolling): New function to remove the
5451 grab, remove the timer and queue a redraw.
5452 (gtk_range_grab_notify):
5453 (gtk_range_state_changed): New functions to call stop_scrolling()
5455 (gtk_range_button_release): Use stop_scrolling().
5457 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
5458 (gtk_spin_button_state_changed): Redraw after stop_spinning.
5459 (gtk_spin_button_stop_spinning): Reset click_child to correct the
5460 drawing of the arrows.
5461 (gtk_spin_button_button_release): Use a local copy of click_child,
5462 since stop_spinning() resets it.
5464 * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
5465 C-A-PgDown as alternatives to the A-less variants. (This slipped
5466 in accidentally some time ago). (#97860)
5468 2003-03-26 Sven Neumann <sven@gimp.org>
5470 * gtk/gtktreeview.c: rewrote the function that does node and arrow
5471 prelighting, queue all redraws from here (Fixes bug #108792).
5473 2003-03-20 Richard Kinder <r_kinder@yahoo.com>
5475 * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
5478 2003-03-20 Guntupalli Karunakar <karunakar@freedomink.org>
5480 * configure.in: Added "ml" in ALL_LINGUAS
5482 Sat Mar 15 18:49:27 2003 Manish Singh <yosh@gimp.org>
5484 * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
5485 G_DISABLE_DEPRECATED.
5487 2003-03-14 Tor Lillqvist <tml@iki.fi>
5489 * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
5490 GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
5491 DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
5492 multiple monitors can have negative coordinates on some of the
5493 monitors. (partial fix for #99496, Arnaud Charlet)
5495 2003-03-15 Matthias Clasen <maclas@gmx.de>
5497 * gtk/gtktextview.c: Add a "buffer" property. (#108353)
5499 2003-03-13 Sven Neumann <sven@gimp.org>
5501 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
5502 removed redundant calls to g_object_notify().
5503 (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
5506 * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
5507 (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
5508 functions return an integer value).
5510 2003-03-13 Tor Lillqvist <tml@iki.fi>
5512 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
5513 WM_MOUSEMOVE, the test whether we have actually moved (and thus
5514 shouldn't generate an GDK event) moved after the call to
5515 propagate() and translate_mouse_coords(). Otherwise we were
5516 testing wrong values. (#108115, Allin Cottrell)
5517 (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
5518 way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
5520 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
5521 is used, must copy the HCURSOR with CopyCursor(), as it is OK to
5522 destroy the GdkCursor after calling gdk_pointer_grab(). Set the
5523 cursor right away with SetCursor(), as we won't get any
5524 WM_SETCURSOR messages while the mouse is captured.
5525 (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
5526 with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
5528 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
5529 WM_SYSCHAR, return FALSE from the window procedure to prevent the
5530 DefWindowProc from being called. Otherwise Windows would beep,
5531 thinking you are tring to access a (nonexistent) menu when you
5532 press Alt-something. Don't do this for Alt-Space,
5533 though. (#107454, Martyn Russell)
5535 * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
5537 Tue Mar 11 12:01:07 2003 Jonathan Blandford <jrb@gnome.org>
5539 * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
5540 [left/right] expands/collapses the tree, #108092
5542 2003-03-09 Tor Lillqvist <tml@iki.fi>
5544 * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
5545 compensate for LineTo() not drawing the end pixel. It causes more
5546 harm than benefits, see bug #81895.
5548 2003-03-08 Matthias Clasen <maclas@gmx.de>
5550 Bug #107664 continued:
5552 * gdk/x11/gdkinputprivate.h:
5553 * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
5554 (_gdk_input_other_event): Return gboolean.
5555 * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
5556 (_gdk_input_other_event): Return gboolean.
5557 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
5559 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
5560 gboolean, remove pointless call to _gdk_input_window_none_event.
5562 * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
5563 (_gdk_input_window_none_event): Remove.
5565 * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
5566 (_gtk_text_iter_get_any_segment):
5567 (_gtk_text_iter_get_segment_byte):
5568 (_gtk_text_iter_get_segment_char):
5569 (_gtk_text_iter_get_text_line):
5570 (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
5571 * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
5572 * gdk/win32/gdkfont-win32.c (gdk_font_equal):
5573 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
5574 (gdk_window_get_origin):
5575 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
5577 2003-03-06 Matthias Clasen <maclas@gmx.de>
5579 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
5580 (#107664, Morten Welinder)
5582 * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
5583 * gdk/x11/gdkfont-x11.c (gdk_font_equal):
5584 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
5585 Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder)
5587 * gtk/gtktextmark.c (gtk_text_mark_get_buffer):
5588 * gtk/gtkeditable.c (gtk_editable_get_chars):
5589 * gtk/gtkctree.c (gtk_ctree_find_node_ptr):
5590 * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
5591 (#107648, Morten Welinder)Fix NULL/FALSE confusion
5592 (#107648, Morten Welinder)
5594 2003-03-04 Matthias Clasen <maclas@gmx.de>
5596 * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
5598 Sun Mar 2 23:35:57 2003 Jonathan Blandford <jrb@gnome.org>
5600 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
5601 handle rtl code. Thanks to Matthias Clasen for an initial patch
5602 to handle the RTL code.
5604 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
5606 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
5608 * gtk/gtktreeview.c: (invalidate_column),
5609 (invalidate_last_column),
5610 (gtk_tree_view_get_real_requested_width_from_column),
5611 (gtk_tree_view_size_allocate_columns),
5612 (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
5613 (gtk_tree_view_button_release_drag_column),
5614 (gtk_tree_view_update_current_reorder),
5615 (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
5616 (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
5617 (gtk_tree_view_get_background_xrange),
5618 (gtk_tree_view_get_arrow_xrange),
5619 (gtk_tree_view_is_expander_column),
5620 (gtk_tree_view_set_column_drag_info),
5621 (gtk_tree_view_move_cursor_left_right):
5624 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
5627 * gtk/gtktreeviewcolumn.c:
5628 (gtk_tree_view_column_class_init),
5629 (gtk_tree_view_column_set_property),
5630 (gtk_tree_view_column_get_property),
5631 (gtk_tree_view_column_set_expand),
5632 (gtk_tree_view_column_get_expand),
5633 (gtk_tree_view_column_cell_process_action):
5634 Add support for expand flag. Thanks to Kristian Rietveld for an
5635 initial patch for this.
5637 Fri Feb 28 02:06:17 2003 Jonathan Blandford <jrb@gnome.org>
5640 2003-03-02 Tor Lillqvist <tml@iki.fi>
5643 * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
5646 2003-03-01 Matthias Clasen <maclas@gmx.de>
5648 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
5649 (gtk_scrolled_window_set_hadjustment): Replace uses of
5650 gtk_object_new by g_object_new.
5652 Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org>
5654 * demos/gtk-demo/main.c
5655 * demos/gtk-demo/tree_store.c
5656 * gdk/x11/gdkscreen-x11.c
5657 * gtk/gtkcellrenderertoggle.c
5665 * gtk/gtkmenushell.c
5669 * gtk/gtktextbuffer.c
5671 * gtk/gtktreeviewcolumn.c
5674 * tests/testtreeedit.c
5675 * tests/testtreefocus.c
5676 * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
5678 Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
5680 * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
5683 2003-02-24 Sven Neumann <sven@gimp.org>
5685 * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
5687 2003-02-21 Tomas Ogren <stric@ing.umu.se>
5689 * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
5691 2003-02-20 Matthias Clasen <maclas@gmx.de>
5693 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
5694 Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
5696 * gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
5697 (gtk_text_view_update_adjustments): Make sure cursor stays visible
5698 during horizontal scrolling. (#75270)
5700 2003-02-19 Matthias Clasen <maclas@gmx.de>
5702 * tests/testdnd.c: Replace gtk_timeout_* by their GLib
5703 counterparts. (#106532)
5705 * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
5706 keys_changed virtual function with the keys_changed signal.
5707 (#106512, Jeff Franks)
5709 2003-02-15 Larry Ewing <lewing@ximian.com>
5711 * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
5713 2003-02-17 Mohammad DAMT <mdamt@bisnisweb.com>
5715 * po/id.po: Added Indonesian translation
5716 * configure.in: Added "id" to ALL_LINGUAS
5718 2003-02-14 Matthias Clasen <maclas@gmx.de>
5720 * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
5722 2003-02-12 Christian Rose <menthos@menthos.com>
5724 * configure.in: Added "yi" to ALL_LINGUAS.
5726 2003-02-12 Matthias Clasen <maclas@gmx.de>
5728 Fix for #82734 and #78216:
5730 * gtk/gtktextview.c (delete_cb):
5731 (select_all_cb): New callbacks for context menu items.
5732 (popup_targets_received): Add "Delete" and "Select All" to context
5733 menu, mnemonics and title caps for all items.
5735 * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
5737 (popup_targets_received): Add "Delete" to context menu, mnemonics
5738 and title caps for all items.
5740 2003-02-09 Tor Lillqvist <tml@iki.fi>
5742 * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
5743 GetDriveType() to recognize removable drives (in order to avoid
5744 hanging if trying to access an empty floppy drive), instead of
5745 hardcoding A: and B: (#105654).
5747 2003-02-09 Matthias Clasen <maclas@gmx.de>
5749 * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
5752 2003-02-09 Christian Rose <menthos@menthos.com>
5754 * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
5756 Fri Feb 7 04:49:46 2003 Tim Janik <timj@gtk.org>
5758 * gtk/gtkobject.c: remove quark_user_data usage in
5759 gtk_object_{g|s}et_user_data(). fixes get_user_data()
5760 returning NULL for user_data set through property interface.
5762 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
5763 warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
5764 need to be a programming error (in case of loaded data), (b) it breaks
5765 with 2.0 behaviour where extra magic could be used to create empty
5766 images. don't attempt to retrieve pixbufs from NULL extra_data.
5768 2003-02-06 Matthias Clasen <maclas@gmx.de>
5770 * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
5771 a GdkVisual *, not a GdkVisual **. (#105243)
5775 * gtk/gtkcontainer.c:
5780 * gtk/gtkmenuitem.c:
5781 * gtk/gtknotebook.c:
5782 * gtk/gtkselection.c:
5783 * gtk/gtkspinbutton.c:
5785 * gtk/gtktextview.c:
5786 * gtk/gtktooltips.c:
5787 * gtk/gtktreeview.c:
5788 * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
5789 their non-deprecated GLib counterparts.
5791 * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
5793 Sun Feb 2 16:45:57 GMT 2003 Tony Gale <gale@gtk.org>
5795 * docs/tutorial/gtk-tut.sgml: cleanups from
5796 Sebastian Rittau (#104832)
5798 2003-02-01 Tor Lillqvist <tml@iki.fi>
5802 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
5803 gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
5804 (#104108, Naofumi Yasufuku)
5806 * gdk/gdk.def: Export the above. Export
5807 gdk_screen_get_system_visual, noticed by Ed Woods.
5809 Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org>
5811 * demos/pixbuf-demo.c
5812 * demos/testpixbuf.c
5813 * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
5815 Fri Jan 31 17:33:00 2003 Manish Singh <yosh@gimp.org>
5817 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
5818 on the tab_label before unparenting it, in case the unparent
5819 drops the refcount to 0.
5821 2003-02-01 Matthias Clasen <maclas@gmx.de>
5823 * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
5824 headers. Sorry about gtk_selection_clear, Yosh.
5826 Thu Jan 30 17:16:05 2003 Manish Singh <yosh@gimp.org>
5828 * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
5829 too, for gtkwidget.c. Remember people, when introducing new
5830 deprecations, make sure internal code isn't using it, or if so,
5831 reorganize appropriately like I've done in other places.
5833 * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
5835 2003-01-31 Matthias Clasen <maclas@gmx.de>
5837 * gtk/gtkselection.h:
5838 * gtk/gtkselection.c (gtk_selection_clear): Deprecate. (#85683)
5841 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
5842 (gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
5844 * gtk/gtkcolorsel.h:
5845 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
5848 * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
5850 * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
5851 and gtk_input_* functions. (#71596)
5853 * gtk/gtkentry.c (gtk_entry_move_cursor):
5854 * gtk/gtklabel.c (gtk_label_move_cursor): Handle
5855 GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
5857 * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
5859 * gtk/gtkitemfactory.h:
5860 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
5863 Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
5865 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
5866 only count the special cell if it is also visible,
5867 (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
5868 account from visible cells,
5869 (gtk_tree_view_column_cell_get_position): likewise, (Reported and
5870 testcase provided by Vasco Alexandre da Silva Costa, via IRC,
5871 tracking bug was #104563).
5873 Thu Jan 30 23:46:15 2003 Kristian Rietveld <kris@gtk.org>
5875 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
5876 subtract expander space and focus line space from the extra space
5877 we are about the allocate. (Fixes #104635).
5879 Thu Jan 30 23:42:03 2003 Kristian Rietveld <kris@gtk.org>
5881 * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
5882 (Fixes #96242, patch from Soeren Sandmann).
5884 Thu Jan 30 16:54:29 2003 Owen Taylor <otaylor@redhat.com>
5886 * gtk/gtknotebook.c: Patch from Soeren Sandmann
5887 to update the states of the tab label child
5888 widgets to match the state of the tabs.
5889 (#93389, Reported by Tommi Komulainen)
5891 Thu Jan 30 16:30:54 2003 Owen Taylor <otaylor@redhat.com>
5893 * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
5894 EXTRA_DIST, and from dist rules. (#102231)
5896 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
5898 * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
5899 function that sets the icon's and label's packing options and
5900 visibility based on toolbar->style.
5902 (gtk_toolbar_internal_insert_element):
5903 (gtk_real_toolbar_style_changed): Make use of
5904 set_child_packing_and_visibility() to clean up the code and get
5905 the packing right for icon-only/text-only toolbars. (#104679)
5907 (get_first_child): Remove, and use gtk_bin_get_child() instead.
5909 2003-01-30 Matthias Clasen <maclas@gmx.de>
5911 * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
5912 GTK_MOVEMENT_HORIZONTAL_PAGES. (#68947)
5914 * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
5916 Thu Jan 30 16:01:29 2003 Owen Taylor <otaylor@redhat.com>
5918 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the
5919 attempt-to-allocate then free code. To handle multiple
5920 people allocating colors at the same time, we need
5921 to just go ahead and try. (#102213, Shivram U)
5923 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
5925 * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
5926 rectangle using the background color rather than relying on
5927 gdk_window_clear_area(), so that the palette works properly with
5928 pixmap themes. (#101732)
5930 * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
5931 to fill the drawing area in the background color.
5933 Wed Jan 29 14:11:21 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
5935 * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
5936 initialization error for selecting input style (#103549).
5938 Wed Jan 29 17:02:41 2003 Owen Taylor <otaylor@redhat.com>
5940 * gdk/gdkkeyuni.c (get_decimal_char): Make the
5941 translation of GDK_KP_Decimal dependent on LC_NUMERIC.
5944 Wed Jan 29 15:43:56 2003 Owen Taylor <otaylor@redhat.com>
5946 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
5947 Make up from the menu bar go to the end of the submenu.
5948 (#96114, Ian Peters.)
5950 * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate):
5951 Only do the select-but-not-activate stuff if the
5952 menu is already active. Otherwise, just activate.
5953 (#101690, Arvind Samptur)
5955 Tue Jan 28 15:18:24 2003 Owen Taylor <otaylor@redhat.com>
5957 * autogen.sh (have_automake): Fix version in complaint
5958 message about automake. (#104366, Rich Burridge)
5960 Mon Jan 27 16:38:13 2003 Owen Taylor <otaylor@redhat.com>
5962 * configure.in: Remove SOEXT stuff; it doesn't work portably.
5964 Mon Jan 27 22:45:15 2003 Kristian Rietveld <kris@gtk.org>
5966 * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
5967 we appended/prepended, send the rows_reordered signal to the
5968 correct level ... (Reported by Matthew Tuck).
5970 Mon Jan 27 22:43:11 2003 Kristian Rietveld <kris@gtk.org>
5972 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
5973 out if the level only has one item, recurse over the child if there
5974 is one. (Fixes #100458, reported by Gaël Le Mignot).
5976 Mon Jan 27 22:41:26 2003 Kristian Rietveld <kris@gtk.org>
5978 * gtk/gtktreeview.c (gtk_tree_view_set_model),
5979 (gtk_tree_view_search_equal_func): make TreeView search handle
5980 all types which are transformable by GValue. (Fixes #99803, reported
5983 Mon Jan 27 22:39:25 2003 Kristian Rietveld <kris@gtk.org>
5985 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
5986 *really* handle unsetting the ID. Slightly modified patch from
5987 Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
5989 Mon Jan 27 22:33:43 2003 Kristian Rietveld <kris@gtk.org>
5991 Fixes the total GtkTreeSortable mess, and #83195, reported by
5994 * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
5995 (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
5996 (gtk_tree_store_set_default_sort_func): use the constant
5997 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
5998 work as advertised by the documentation.
6000 * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
6001 (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
6002 (gtk_list_store_set_default_sort_func): likewise.
6004 * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
6005 (gtk_tree_model_set_sort_func),
6006 (gtk_tree_model_sort_set_default_sort_func): make functions work
6007 as advertised by the documentation.
6009 Mon Jan 27 22:31:56 2003 Kristian Rietveld <kris@gtk.org>
6011 * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
6012 before we decide if we edit. (fixes #100973, reported by Dave Cook).
6014 Mon Jan 27 22:29:30 2003 Kristian Rietveld <kris@gtk.org>
6016 Bug report and test case from Paolo Maggi via IRC.
6018 * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
6019 (gtk_list_store_move): update tail if needed.
6021 Mon Jan 27 16:19:59 2003 Owen Taylor <otaylor@redhat.com>
6023 * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
6024 might be NULL. Use gtk_widget_get_display (widget)
6025 (#102860, Thomas Leonard)
6027 Mon Jan 27 15:58:31 2003 Owen Taylor <otaylor@redhat.com>
6029 * configure.in: Fix --without-modules/--disable-modules
6030 confusion that was causing --disable-modules not to work.
6031 (#102865, Akira Tagoh)
6033 * configure.in: Fix problem with plain --with-xinput
6034 (#104266, Akira Tagoh)
6036 2003-01-24 Sebastian Rittau <srittau@jroger.in-berlin.de>
6038 * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
6041 Fri Jan 24 17:06:41 GMT 2003 Tony Gale <gale@gtk.org>
6043 * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
6045 Thu Jan 23 21:15:29 GMT 2003 Tony Gale <gale@gtk.org>
6047 * docs/faq/gtk-faq.sgml: Learn to spell Library
6049 Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org>
6050 * Sebastian Rittau <srittau@jroger.in-berlin.de>:
6052 docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
6053 Composite widget" to modern standards. (I.e. use gobject instead of
6054 glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
6056 * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
6057 code in Appendix C to reflect above changes.
6059 * examples/rangewidgets/rangewidgets.c: From Roger Leigh
6060 auto resize on page size change
6062 2003-01-23 Daniel Elstner <daniel.elstner@gmx.net>
6064 * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
6065 in addition to show_all in order to keep them symmetric. (#102201)
6067 Wed Jan 22 14:18:46 2003 Manish Singh <yosh@gimp.org>
6069 * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
6070 the end of the function, so there is a statement following the "out"
6071 label in all cases (fixes #101961)
6073 2003-01-22 Christian Rose <menthos@menthos.com>
6075 * configure.in: Added "mn" to ALL_LINGUAS.
6077 Wed Jan 15 17:02:18 2003 Owen Taylor <otaylor@redhat.com>
6079 * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
6080 Fix off-by-one error on the backward iteration loop,
6081 that was causing the wrong range to be redrawn.
6082 (at least part of #72734)
6084 2003-01-21 Matthias Clasen <maclas@gmx.de>
6086 * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
6087 vadjustment value after changing its bounds. (fixes #101963 and
6090 * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid
6091 unnecessary roundtrip failures. (#93500)
6093 2003-01-19 Tor Lillqvist <tml@iki.fi>
6097 Fix for #103614 and some other problems with GtkFileSelection on
6100 * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
6101 g_ascii_tolower(). Windows file names are case-insensitive for all
6104 * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
6105 G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
6106 earlier, as it includes config.h unconditionally, and gtkprivate.h
6107 redefines GTK_LOCALEDIR.
6108 (struct _CompletionDirSent): Ifdef out the fields not used on
6110 (compare_utf8_filenames, compare_sys_filenames): Need different
6111 comparison implementation for UTF-8 file names and system locale
6112 file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
6113 need to casefold all Unicode letters.
6114 (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
6115 variables not used on Win32 to avoid warnings about unused
6117 (open_ref_dir): Use g_path_skip_root() to skip past potential
6118 drive letter in front of the leading (back)slash.
6119 (open_new_dir): Ifdef out use of CompletionDirSent fields not
6121 (correct_parent): Bypass inode check also on Cygwin.
6123 Fix bug noticed by Alex Shaduri: Tooltips and other
6124 GDK_WINDOW_TEMP windows were activated. This looked very odd, and
6125 was a regression from earlier versions.
6127 * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
6128 behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
6129 (gdk_window_move, gdk_window_resize): Add debug logging.
6131 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
6132 WM_SIZE message for a non-visible (withdrawn) window, don't clear
6133 the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
6134 even if its size changes.
6136 2003-01-16 Matthias Clasen <maclas@gmx.de>
6138 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
6139 (totally_invisible_line): Fix an incorrect optimization which
6140 caused invisible paragraphs to be occasionally misrendered.
6142 Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
6144 * gtk/gtksettings.c: Set the double click speed from
6145 XSETTINGS when creating a new GtkSettings object
6146 as well as when getting a notify. (#103601, reported
6149 Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
6151 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
6152 Show/hide the notebook event window as necessary,
6153 we weren't previously keeping the visibility updated
6156 2003-01-15 Matthias Clasen <maclas@gmx.de>
6158 * examples/menu/itemfactory.c:
6159 * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
6162 2002-12-29 Murray Cumming <murrayc@usa.net>
6166 * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
6167 Actually implement the GtkTreeDragSource::row_draggable virtual
6168 function in GtkListStore and GtkTreeStore instead of just checking
6169 whether it's implemented at all. This means that DnD isn't broken by
6170 gtkmm's virtual function wrappers. The alternative would be to
6171 hard-code the TRUE return value into gtkmm's wrappers, but that's
6172 part of GTK+'s implementation, not it's API.
6174 Tue Jan 14 23:42:29 2003 Kristian Rietveld <kris@gtk.org>
6176 * gtk/gtktreeview.c: fix compiler warning.
6178 Tue Jan 14 23:29:00 2003 Kristian Rietveld <kris@gtk.org>
6180 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
6181 make sure exposed pixbufs are clipped to the exposed area before
6182 drawing, which is a slight speedup. (#102379, patch from Soeren
6185 Tue Jan 14 23:26:41 2003 Kristian Rietveld <kris@gtk.org>
6187 * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
6188 only free scroll_to_path when the complete tree has been validated.
6189 This makes sure that we scrolled to the correct path.
6191 Tue Jan 14 23:25:32 2003 Kristian Rietveld <kris@gtk.org>
6193 * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
6194 background of widget->window and bin->window. (Fixes #96650, reported
6197 Tue Jan 14 23:24:02 2003 Kristian Rietveld <kris@gtk.org>
6199 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
6200 updates before scrolling, avoiding a "selection streak". (Fixes
6201 #101235, patch from Soeren Sandmann).
6203 Tue Jan 14 23:22:13 2003 Kristian Rietveld <kris@gtk.org>
6205 * gtk/gtktreeview.c (validate_visible_area): actually put values
6206 in the requisition using gtk_widget_size_request. (Fixes #100172,
6207 reported by Kjartan Maraas).
6209 Tue Jan 14 23:19:45 2003 Kristian Rietveld <kris@gtk.org>
6211 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
6212 arrow animation timeout before we actually reorder the rbtree. If
6213 we don't do this we can get stuck arrows,
6214 (cancel_arrow_animation): new function. (Fixes #93629, part 2,
6215 reported and testcase provided by Hans Petter Jansson).
6217 Tue Jan 14 23:18:21 2003 Kristian Rietveld <kris@gtk.org>
6219 * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
6220 anchor_path should be start_path, not end_path. (Fixes #102618,
6221 patch from Carlos Garnacho Parro).
6223 Tue Jan 14 23:16:15 2003 Kristian Rietveld <kris@gtk.org>
6225 * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
6226 only correct new_pos if we don't move to the head/tail.
6228 Tue Jan 14 23:11:55 2003 Kristian Rietveld <kris@gtk.org>
6230 * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
6231 the parent_iter if depth >= 1, so we send the reordered signal to
6232 the correct level, remove debugging printfs which I forgot the remove
6233 earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
6234 testcase provided by Matthew Tuck).
6236 Tue Jan 14 20:58:44 2003 Kristian Rietveld <kris@gtk.org>
6238 * gtk/gtktreeview.c (invalite_last_column): split out actual column
6239 invalidation into invalidate_column(),
6240 (gtk_tree_view_size_allocate_columns): invalidate column if the
6241 new width is larger than the old width.
6242 (fixes #102890, reported by Alex Duggan).
6244 2003-01-14 Matthias Clasen <maclas@gmx.de>
6246 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
6247 invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
6250 * gtk/gtktextiter.c,
6251 gtk/gtktextiter.h: Add some variant movement functions which
6252 skip invisible chars, and do some cleanups.
6254 2003-01-12 Tor Lillqvist <tml@iki.fi>
6258 * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
6259 as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
6262 * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
6266 * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
6268 * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
6269 gtk-demo}.exe and share/gtk-2.0.
6271 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
6272 Implement by setting or clearing the WS_EX_TOOLWINDOW extended
6274 (gdk_window_set_type_hint): Add all cases to the switch (not all
6275 do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
6276 calling gdk_window_set_skip_taskbar_hint(). This means that GTK
6277 won't know that the skip_taskbar hint is on for the window, is
6280 Wed Jan 8 18:43:03 2003 Manish Singh <yosh@gimp.org>
6282 * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
6283 <string.h> for strlen.
6285 * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
6286 <string.h> for strrchr.
6288 * tests/testgtk.c (create_saved_position): "x" and "y" properties
6289 for widgets no longer exist, use gtk_window_move instead.
6291 * test/testtextbuffer.c (check_get_set_text): cast strlen to
6294 2003-01-08 Matthias Clasen <maclas@gmx.de>
6296 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
6297 the selection in the presence of invisible segments.
6299 2003-01-07 Matthias Clasen <maclas@gmx.de>
6301 * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
6302 to "select all" and "unselect all". (#102065)
6304 * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
6305 the just_selected_element is unused.
6307 * gtk/gtktextview.c (extend_selection): New helper function to
6308 find the range that should be added to the selection.
6309 (selection_motion_event_handler):
6310 (gtk_text_view_start_selection_drag):
6311 (gtk_text_view_end_selection_drag):
6312 (selection_motion_event_handler):
6313 (selection_scan_timeout): Support select-by-words/lines.
6314 (gtk_text_view_button_press_event): Start a selection drag on
6315 double/triple clicks. (#78499)
6317 2003-01-06 Matthias Clasen <maclas@gmx.de>
6319 Implement a utility function proposed in #102534:
6321 * gtk/gtktextbtree.h:
6322 * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
6323 (_gtk_text_btree_place_cursor): Now a simple wrapper around
6324 _gtk_text_btree_select_range().
6326 * gtk/gtktextbuffer.h:
6327 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
6328 (gtk_text_buffer_place_cursor): Now a simple wrapper around
6329 gtk_text_buffer_select_range().
6331 2003-01-05 Havoc Pennington <hp@pobox.com>
6333 * configure.in: fix a stray bracket that was breaking the build
6335 2003-01-05 Tor Lillqvist <tml@iki.fi>
6337 * gtk-zip.sh.in: Use correct DLL and import library names, with
6338 GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
6339 (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
6341 * configure.in: Improve check for dimm.h.
6343 * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
6344 gdk-pixbuf/Makefile.am.
6346 * gdk-pixbuf/makefile.mingw.in
6347 * gdk-pixbuf/pixops/makefile.mingw.in
6348 * gdk/makefile.mingw.in
6349 * gdk/win32/makefile.mingw.in
6350 * gtk/makefile.mingw.in: Remove. Not maintained anyway.
6352 * gdk-pixbuf/Makefile.am
6353 * gdk-pixbuf/pixops/Makefile.am
6355 * gdk/win32/Makefile.am
6357 * configure.in: Remove makefile.mingw{,.in} from here, too.
6359 * README.win32: Updates. Don't mention the now removed
6360 makefile.mingw files.
6363 * gtk/gtk.def: Add a couple of missing entries.
6365 * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
6367 * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
6370 * gdk/win32/rc/Makefile.am: Add hack to help
6371 build/win32/lt-compile-resource decide which kind of libtool
6372 object file to produce.
6374 2003-01-05 Matthias Clasen <maclas@gmx.de>
6376 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
6377 C-Down step through the sequence of paragraph ends (old behaviour
6378 included paragraph starts). (#80340, patch by Narayana Pattipati)
6380 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
6381 Check for a tag toggle at the start iterator before calling
6382 gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
6385 2003-01-04 Matthias Clasen <maclas@gmx.de>
6387 * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
6388 and /*< private >*/ as appropriate. (#97211)
6390 2003-01-04 Tor Lillqvist <tml@iki.fi>
6392 * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
6393 distribute gtk-zip.sh.in.
6395 * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
6397 2003-01-03 Havoc Pennington <hp@pobox.com>
6399 * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
6401 * docs/text_widget_internals.txt: add a file documenting some of
6402 the text widget internals
6404 2003-01-02 Matthias Clasen <maclas@gmx.de>
6406 * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
6407 return NULL. (#102069)
6409 2003-01-01 Matthias Clasen <maclas@gmx.de>
6411 * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
6412 a main() in the library is obviously bad.
6414 2002-12-27 Matthias Clasen <maclas@gmx.de>
6416 * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
6417 cursor at drop point. (#72384)
6418 (gtk_text_view_size_allocate): Update the horizontal adjustment
6421 2002-12-25 Matthias Clasen <maclas@gmx.de>
6423 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
6424 selection wrt. to empty lines. (#90435, #90582, #91619)
6426 * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
6427 Keep the cursor on screen. (#96929)
6429 2002-12-24 Matthias Clasen <maclas@gmx.de>
6431 * gtk/gtktextbuffer.c (paste_from_buffer):
6432 (clipboard_text_received): Let the user action span the insertion
6433 and the deletion of the old selection. (#82844)
6435 2002-12-23 Matthias Clasen <maclas@gmx.de>
6437 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
6438 Don't call gtk_text_iter_backward_sentence_start() if
6439 count is zero. (#99115)
6441 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
6442 move_cursor() even if the cursor hasn't moved, since it has the
6443 side effect of canceling the selection. (#81395, #98537, #98333)
6445 2002-12-22 Matthias Clasen <maclas@gmx.de>
6447 * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
6448 with empty ranges. (fixes #101564 and #80637)
6450 2002-12-21 Tor Lillqvist <tml@iki.fi>
6452 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
6453 sets the window style and extended window style, and adjusts the
6454 width and height to take the window decorations into account
6455 earlier. The adjusted width and height used to be ignored. Remove
6456 the local x, y, width and height variables, no need to further
6457 confuse the code by having local copies. (Partial fix, I hope, for
6460 (gdk_window_move): When moving top-level windows, take title bar
6461 and border width into account, offsetting the coordinates before
6462 calling SetWindowPos().
6464 (gdk_window_set_decorations, gdk_window_set_functions):
6465 Reimplement, taking into account the peculiar semantics of
6466 GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
6468 (gdk_window_get_decorations): Implement. (#98981)
6470 (gdk_window_set_type_hint): When setting
6471 GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
6474 * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
6476 2002-12-21 Matthias Clasen <maclas@gmx.de>
6478 * gtk/gtktextview.c (gtk_text_view_set_background): New static
6479 function to set the background of all windows.
6480 (gtk_text_view_style_set): Use gtk_text_view_set_background().
6481 (gtk_text_view_state_changed): New function; change background
6482 according to state. (#88126)
6484 2002-12-21 Havoc Pennington <hp@pobox.com>
6486 * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation