1 Mon Feb 23 02:26:53 2004 Jonathan Blandford <jrb@gnome.org>
3 * gtk/gtkpathbar.c (gtk_path_bar_finalize):
4 for (i = 0; i < 10; i++)
5 g_print ("I will compile before committing.\n");
7 Mon Feb 23 02:08:42 2004 Jonathan Blandford <jrb@gnome.org>
9 * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
10 GtkPathBar by default now.
12 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
13 current path from the path.
14 (gtk_path_bar_class_init): new signal
15 (button_clicked_cb): emit the signal when we're selected.
16 (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
17 clearing thr first_scrolled_button.
19 Mon Feb 23 02:26:15 2004 Matthias Clasen <maclas@gmx.de>
21 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the
22 allocation for the toggle button so that it actually shows up
25 * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column):
26 * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column):
27 * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
28 notification, and avoid excessive relayouting.
30 Mon Feb 23 00:38:21 2004 Matthias Clasen <maclas@gmx.de>
32 Fix bug 134982, reported by Morten Welinder:
34 * gtk/gtkpathbar.c (gtk_path_bar_destroy):
35 * gtk/gtktooltips.c (gtk_tooltips_destroy):
36 * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the
37 parent's ::destroy handler.
39 * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the
40 parent's ::dispose handler.
42 Sat Feb 21 19:09:55 2004 Manish Singh <yosh@gimp.org>
44 * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
45 stuff with an #ifdef, so we still build with most fontconfig versions.
47 * configure.in: Bump the fontconfig version requirement down to 1.0.1,
48 to match pango (probably isn't needed at all, but doesn't hurt).
50 Sun Feb 22 03:03:29 2004 Matthias Clasen <maclas@gmx.de>
52 * gtk/gtkaction.c: (gtk_action_finalize):
53 * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
54 * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
55 (gtk_entry_completion_finalize):
56 * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
57 * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
58 (gtk_file_system_model_finalize):
59 * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
60 (gtk_icon_theme_finalize):
61 * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
62 * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
63 (gtk_ui_manager_finalize):
64 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
65 Add chains to the parent's ::finalize() handler (#134901, Morten Welinder,
66 patch by Jan Arne Petersen)
68 Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
70 * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
71 Don't crash if item is NULL. (#131542, Dan Damian)
73 Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
75 * configure.in: Add a check for a new enough fontconfig, since
76 we picked up a direct dependency on it with the Xft settings.
78 Sun Feb 22 00:23:40 2004 Matthias Clasen <maclas@gmx.de>
80 Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
82 * gtk/gtkcheckmenuitem.c: Introduce a new style property
83 indicator_size and use it instead of the hardcoded value.
85 * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu
86 item gets enough vertical space for the label and the indicator.
88 Sat Feb 21 20:20:11 2004 Soeren Sandmann <sandmann@daimi.au.dk>
90 * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
91 _ for the new Xft settings.
93 Sat Feb 21 20:09:53 2004 Soeren Sandmann <sandmann@daimi.au.dk>
95 Bug 130790 (Federico Mena Quintero, Owen Taylor)
97 * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
99 * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
102 Sat Feb 21 19:18:26 2004 Soeren Sandmann <sandmann@daimi.au.dk>
106 * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
107 if we enter a non-selectable menu item.
109 * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
110 when the user has left the item.
112 Sat Feb 21 17:57:35 2004 Soeren Sandmann <sandmann@daimi.au.dk>
114 * gtk/docs: Commit auto-generated changes
116 Fri Feb 20 18:20:22 2004 Jonathan Blandford <jrb@gnome.org>
118 * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
120 * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
121 allocation code. Works fully in RTL languages, I think.
122 (gtk_path_bar_scroll_up): Scroll up.
123 (gtk_path_bar_scroll_down): Scroll down.
125 2004-02-20 Christian Rose <menthos@menthos.com>
127 * configure.in: Added "en_CA" to ALL_LINGUAS.
129 2004-02-20 Michael Meeks <michael@ximian.com>
131 * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
132 (gtk_tool_item_class_init): hook it up.
133 (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
135 * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
136 chain to parent, fix strcmp bug.
138 * tests/testtoolbar.c (main): re-arrange widgets to allow
139 more overflowing toolbar goodness.
141 2004-02-20 Alexander Larsson <alexl@redhat.com>
143 * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
144 Desktop directory is not translated.
146 There might not be volumes for all paths.
147 * gtk/gtkfilechooserwidget.c:
148 (gtk_file_chooser_widget_constructor):
149 Use gtk_file_chooser_set_current_folder to set cwd.
151 Thu Feb 19 19:58:53 2004 Jonathan Blandford <jrb@gnome.org>
153 * gtk/gtkpathbar.[ch]: New widget to handle the path in the
154 fileselector implementation. Not hooked up to anything yet.
156 * gtk/Makefile.am: support the path bar.
158 Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
160 * gtk/gtkstyle.c (gtk_default_draw_handle):
161 (gtk_default_draw_box): Make the paned handles gray when the the
162 widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
164 Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
168 * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
169 and "Gtk/MenuImages" and map them to "gtk-button-images" and
172 * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
173 use it to set the visibility of the embedded image.
175 * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
176 it to set the visibility of an embedded image.
178 Thu Feb 19 21:26:10 2004 Matthias Clasen <maclas@gmx.de>
180 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
181 Give each radio action its own value. (#134889, Paolo Borelli)
183 2004-02-19 Federico Mena Quintero <federico@ximian.com>
185 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
186 Chain to the parent's ::finalize() handler. Fixes #134885; caught
187 by Jan Arne Petersen.
189 2004-02-19 Mark McLoughlin <mark@skynet.ie>
191 Make the entire expander widget width prelight as suggested
192 by Seth in bug #134263.
195 (gtk_expander_paint_prelight): impl.
196 (gtk_expander_paint): use it.
197 (gtk_expander_redraw_expander): don't only redraw the
200 2004-02-19 Alexander Larsson <alexl@redhat.com>
202 * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
203 * gtk/gtkfilechooserutils.c:
204 * gtk/gtkfilechooserutils.h:
205 * gtk/gtkfilechooserwidget.c:
206 Remove old file-system property.
207 Add new file-system-backend string property
209 * gtk/gtkfilechooserdefault.[ch]:
210 Handle the file-system-backend property
212 * gtk/gtkfilechooserdialog.[ch]:
213 (gtk_file_chooser_dialog_new_with_backend):
214 Remove old file-system property.
215 Add new file-system-backend string property
216 Add new function gtk_file_chooser_dialog_new_with_backend
218 * gtk/gtkfilesystem.c:
219 * gtk/gtkfilesystem.h:
220 Add filesystem module support.
222 2004-02-18 Federico Mena Quintero <federico@ximian.com>
224 * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
225 from create_shortcuts_tree().
226 (shortcuts_pane_create): New function.
227 (button_new): Renamed from toolbar_button_new().
228 (shortcuts_pane_create): New function, create the whole shortcuts
230 (current_folder_create): Renamed from toolbar_create(). Don't
231 create the bookmarks buttons here.
232 (file_pane_create): New function.
233 (gtk_file_chooser_default_constructor): Use the new helper
234 functions, and don't use an extra vbox as GtkFileChooserDefault is
237 Thu Feb 19 01:39:30 2004 Matthias Clasen <maclas@gmx.de>
239 * gtk/gtkuimanager.h:
240 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
241 default handlers for all signals; for consistency and for the
242 benefit of language bindings which still rely on header parsing
243 to find the signals. (#134269, Jeroen Zwartepoorte)
245 Thu Feb 19 00:45:02 2004 Matthias Clasen <maclas@gmx.de>
247 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
248 Improve the efficiency here by prepending on the list and reverting
249 it after the loop. (#134435, Christian Biere)
251 Thu Feb 19 00:32:21 2004 Matthias Clasen <maclas@gmx.de>
253 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
254 removing the plug from the socket. (#128546, Christopher Blizzard)
256 Thu Feb 19 00:09:35 2004 Matthias Clasen <maclas@gmx.de>
258 * gtk/gtkradiomenuitem.h:
259 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget):
260 (gtk_radio_menu_item_new_with_label_from_widget):
261 (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
262 convenience functions analogous to similar API on GtkRadioButton.
263 (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
265 Wed Feb 18 17:53:27 2004 Soeren Sandmann <sandmann@daimi.au.dk>
267 * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
268 case where the background is a solid color.
269 (gdk_window_clear_backing_rect): Reset the clip region after use.
271 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
272 back to using a scratch GC. Pointed out by Owen Taylor
274 * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
275 scratch GC if the passed-in one is NULL
277 Wed Feb 18 14:27:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
279 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
280 region back to NULL on cached GC (rest of #134728)
282 Wed Feb 18 13:28:57 2004 Soeren Sandmann <sandmann@daimi.au.dk>
284 Fix bug reported by Nam SungHyun (#134728)
286 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
287 Don't use a cached GC here since the function needs to modify the
290 * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
291 to NULL on the cached GC.
293 2004-02-17 Federico Mena Quintero <federico@ximian.com>
295 * gtk/gtkfilechooserdialog.c
296 (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
299 Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
301 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
302 peculiarities of the ::delete_range signal. (#132135, Grant Gayed)
304 Wed Feb 18 01:44:59 2004 Soeren Sandmann <sandmann@daimi.au.dk>
306 GC caching, bug #125645 (based on patch by Brian Cameron)
308 * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
309 * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
311 * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
313 * gdk/gdkinternals.h: Declare the function here
315 * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
316 _gdk_drawable_get_scratch_gc() instead of creating a new GC.
317 * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
318 * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
319 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
320 * gdk/gdkwindow.c (gdk_window_end_paint): same
321 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
322 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
323 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
325 Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
327 * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
330 Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
332 * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
333 priv->columns >= 1 even for empty menus, since we divide by it
334 somewhere else. (#133428, Vincent Noel)
336 Tue Feb 17 23:02:58 2004 Soeren Sandmann <sandmann@daimi.au.dk>
338 Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
341 * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
343 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
346 * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
347 the colormap, if no colormap, special case depth 1,
349 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
350 _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
352 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
353 Special-case bitmaps without a colormap.
355 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
356 draw_pixbuf() implementation in the bitmap case.
358 2004-02-17 Mark McLoughlin <mark@skynet.ie>
360 * modules/input/Makefile.am: only reference input method
361 modules we've actually built. Fixes re-build failure with
362 stale hangul module lying aroung. Bug #134518.
364 Mon Feb 16 19:13:21 2004 Owen Taylor <otaylor@redhat.com>
366 * gdk/gdkdraw.c: Revert last commit, please don't commit patches
367 without approval, this isn't the right way to do it.
369 2004-02-16 DindinX <david@dindinx.org>
371 * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
372 segments at a time, since XDrawSegments cannot handle more than this.
376 Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
378 * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
379 gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
380 in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
382 Mon Feb 16 00:04:46 2004 Matthias Clasen <maclas@gmx.de>
384 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*):
385 Split declaration and assignment of combo_box.
387 * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a
390 Sun Feb 15 22:08:53 2004 Matthias Clasen <maclas@gmx.de>
392 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add
393 deprecation note pointing people to GtkComboBox.
395 Sun Feb 15 02:49:45 2004 Matthias Clasen <maclas@gmx.de>
398 * gtk/gtktreeview.c: Document the tree DND API.
400 * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source):
401 Call gtk_drag_source_unset().
403 Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
405 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
406 Make stock_size an uint property, to allow custom icon
407 sizes. Also clarify the blurb. (#130047, Erik Grinaker)
409 Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
411 * configure.in: Remove unnecessary STRIP_* definitions, and GNU
414 2004-02-13 Federico Mena Quintero <federico@ximian.com>
416 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
417 Duh, duh, duh! Don't bail out if the bookmarks file doesn't exist
418 the very first time you try to save one.
420 2004-02-13 Federico Mena Quintero <federico@ximian.com>
424 * gtk/gtkfilechooserdialog.c
425 (set_default_size): New function, sets a reasonable default size
427 (gtk_file_chooser_dialog_realize): New function, call
429 (gtk_file_chooser_dialog_style_set): Likewise.
430 (gtk_file_chooser_dialog_screen_changed): Likewise.
432 * tests/testfilechooser.c (main): Don't set a default size for the
435 Sat Feb 14 00:05:18 2004 Matthias Clasen <maclas@gmx.de>
437 * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset):
438 Use do instead of while. (#134031, Morten Welinder);
440 Sat Feb 14 00:00:52 2004 Matthias Clasen <maclas@gmx.de>
442 * configure.in: Suppress xsltproc and xmlcatalog checks
443 if enable_man=no. (#134162, Julio M. Merino Vidal)
445 Fri Feb 13 23:54:48 2004 Matthias Clasen <maclas@gmx.de>
447 * configure.in: Remove checks for sgml2html. It was once
448 used for building the linuxdoc version of the tutorial.
449 Nowadays, we use db2html. (#134164, Julio M. Merino Vidal)
451 Fri Feb 13 08:17:43 2004 Owen Taylor <otaylor@redhat.com>
453 Fix various compilation problems (#134312, David
456 * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use
457 g_return_if_fail(), not g_return_val_if_fail().
459 * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets):
460 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use
461 g_return_if_reached(), not g_return_val_if_reached().
463 * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
466 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
467 extra 'scale' parameter.
469 Thu Feb 12 21:58:20 2004 Owen Taylor <otaylor@redhat.com>
471 Various reentrancy fixes for widgets being destroyed
472 out of focus-out-event. (#128821, Grant Gayed)
474 * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default):
475 Ref window and widget over callbacks.
477 * gtk/gtkwidget.c (gtk_widget_hide)
478 gtk/gtkwidget.c (gtk_widget_set_child_visible):
479 Ref the widget before calling _gtk_window_unset_focus_and_default(),
480 since that can call user callbacks.
482 * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
483 Do nothing if the widget isn't realized.
485 Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
487 * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
488 active, RELIEF_NONE buttons that aren't depressed. This improves
489 the appearance of buttons in notebook tabs. (#109213, reported
490 by Benjamin Otte, patch by Rodney Dawes)
492 Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
494 * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
495 HAVE_FLOCKFILE in all cases. (#134205, Julio M. Merino Vidal)
497 Fri Feb 13 00:54:59 2004 Matthias Clasen <maclas@gmx.de>
499 Fix for #104811, Padraig O'Briain:
502 * gtk/gtkscale.c (_gtk_scale_clear_layout):
503 * gtk/gtkscale.c (gtk_scale_get_layout_offsets):
504 * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
505 text and its position from a GtkScale, to make it more accessible.
506 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
507 * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the
510 Thu Feb 12 17:59:52 2004 Owen Taylor <otaylor@redhat.com>
512 * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path):
513 Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
515 Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
518 * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
519 function to improve the accessibility of tooltips. (#114851,
522 Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
524 * gtk/gtkcombobox.c (gtk_combo_box_popup):
525 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
528 Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
530 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
531 gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
533 * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
534 gdk_property_get call instead of 0.
536 * docs/reference/gdk/tmpl/properties.sgml: Document the above
537 as GDK_NONE instead of simply 0.
539 Thu Feb 12 15:46:26 2004 Soeren Sandmann <sandmann@daimi.au.dk>
541 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
542 correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
544 Thu Feb 12 02:22:02 2004 Matthias Clasen <maclas@gmx.de>
546 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func):
549 Thu Feb 12 01:17:01 2004 Matthias Clasen <maclas@gmx.de>
551 * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
552 gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
553 for automatic DND. (#133485, Tommi Komulainen)
555 Thu Feb 12 00:37:00 2004 Matthias Clasen <maclas@gmx.de>
557 * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
560 2004-02-11 Federico Mena Quintero <federico@ximian.com>
562 * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
563 handler. If no widget has the focus, try to give it to the
564 default widget. If there is no default widget, give it to the
565 first button. Fixes the cause for which #59707 was reopened.
567 2004-02-11 Federico Mena Quintero <federico@ximian.com>
571 * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
572 (icon_info_new): Don't initialize the ref_count field.
574 2004-02-11 Federico Mena Quintero <federico@ximian.com>
576 * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
577 the array correctly. Fixes #134055, patch by Tosten Schoenfeld
578 <kaffeetisch@gmx.de>.
580 Wed Feb 11 02:23:39 2004 Matthias Clasen <maclas@gmx.de>
582 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
583 focus [hv]adjustment correctly when the focus is located deeper
584 down in the hierarchy. (#133489)
586 Wed Feb 11 02:06:38 2004 Matthias Clasen <maclas@gmx.de>
588 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove
589 arbitrary low upper limits on the xpad, ypad, width and height
590 properties. (#129696, John Ellis)
592 Wed Feb 11 01:24:20 2004 Matthias Clasen <maclas@gmx.de>
594 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
595 Ugh. Don't try to free ints, even if they're stored in pointers.
596 (#133997, Morten Welinder)
598 2004-02-10 Federico Mena Quintero <federico@ximian.com>
600 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
601 Free the filters. Fixes #133547, patch by Morten Welinder
604 Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
606 * gdk/x11/xsettings-client.c (read_settings): Avoid
607 triggering an X error when the client->manager_window
608 is None...makes logs look cleaner.
610 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
611 GDK_NONE to mean AnyPropertyType as documented. (Reported
614 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
615 gdk_x11_screen_get_window_manager_name): Fix error trap
616 we've been leaking since 2002... (#129538)
618 2004-02-10 Federico Mena Quintero <federico@ximian.com>
620 Fixes the entry-related part of #133852.
622 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
623 the file part of the entry if the selected item is a folder.
625 2004-02-10 Federico Mena Quintero <federico@ximian.com>
627 Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
629 * tests/prop-editor.c (create_prop_editor): Free the title.
630 (object_changed): Free the children list.
632 Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
634 * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):
635 * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document
638 2004-02-09 Federico Mena Quintero <federico@ximian.com>
640 * gtk/gtkfilechooserdefault.c (set_list_model): Request
641 GTK_FILE_INFO_ALL from the file system model, so that arbitrary
642 filtering will work. Perhaps we should have a way of aggregating
643 info types to the model as filters get installed.
645 Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
647 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
648 Ugh. Don't try to free ints, even if they're stored in pointers.
650 2004-02-09 Federico Mena Quintero <federico@ximian.com>
654 * gtk/gtkfilechooserdefault.c
655 (gtk_file_chooser_default_get_paths): Read the contents of the
656 filename entry in both OPEN and SAVE mode. In multiple-selection
657 mode, add this to the selection from the file/folder list.
658 (struct get_paths_closure): Add a path_from_entry field.
659 (get_paths_foreach): Only add the iterated path if it is not the
660 same as the path from the entry.
662 2004-02-09 Federico Mena Quintero <federico@ximian.com>
664 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
665 the folder is already open, add the requested info types to it.
667 Sun Feb 8 01:28:02 2004 Manish Singh <yosh@gimp.org>
669 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
670 type casts for the gtk_window_set_screen() call.
672 Sun Feb 8 01:44:06 2004 Matthias Clasen <maclas@gmx.de>
674 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups
675 come up on the same screen as the combo box. (#133544,
678 Fri Feb 6 23:40:24 2004 Jonathan Blandford <jrb@gnome.org>
680 * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
681 packing of the file selector.
683 Sat Feb 7 01:21:09 2004 Matthias Clasen <maclas@gmx.de>
685 * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function
686 calls in array initializers, as some compilers seem to hate this.
687 (#133216, Jonas Jonsson)
689 Sat Feb 7 00:06:44 2004 Matthias Clasen <maclas@gmx.de>
691 * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
692 by on-demand instantiating a singleton object with a "changed"
695 * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
696 for GtkAccelMap::changed.
698 Fri Feb 6 23:08:29 2004 Matthias Clasen <maclas@gmx.de>
700 * gtk/gtktextbtree.c (_gtk_text_btree_check):
701 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
702 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
703 Actually free the lists. Pointed out by Morten Welinder.
705 Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
707 * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
708 positions in UTF-8 strings correctly. (#133315, Theppitak
711 2004-02-06 Morten Welinder <terra@gnome.org>
713 * gtk/gtktoolbar.c (show_menu): Cleanup using
714 gtk_menu_attach_to_widget. Also fixes leak, see #133411.
716 2004-02-06 Federico Mena Quintero <federico@ximian.com>
718 * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
721 2004-02-06 Federico Mena Quintero <federico@ximian.com>
725 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
726 folder_hash field to keep a list of live folder objects.
727 (gtk_file_system_unix_init): Create the folder_hash.
728 (gtk_file_system_unix_finalize): Destroy the folder_hash.
729 (gtk_file_system_unix_get_folder): Ref and return an existing
730 folder if we have it around, otherwise return a new folder object.
731 (struct _GtkFileFolderUnix): Add a field for the parent file system.
732 (gtk_file_folder_unix_finalize): Remove the folder from the file
734 (gtk_file_system_unix_create_folder): Emit "files-added" on the
735 newly-created folder's parent. Fixes #132327.
737 Fri Feb 6 00:51:57 2004 Matthias Clasen <maclas@gmx.de>
739 * gtk/gtkstock.c (builtin_items): Change the labels of the
740 ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
741 "Best _Fit", to be HIG compliant. (#124080, Mariano
744 Fri Feb 6 00:45:16 2004 Matthias Clasen <maclas@gmx.de>
746 * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize
747 function to plug a few memory leaks. (#133544, Morten Welinder)
749 Fri Feb 6 00:15:38 2004 Matthias Clasen <maclas@gmx.de>
751 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate):
752 Support mnemonic_activate here as well.
754 * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
755 the button, not the tree_view.
757 Thu Feb 5 23:48:19 2004 Matthias Clasen <maclas@gmx.de>
759 * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
760 function, to make mnemonic_activate work for combo boxes.
761 (#133443, Paolo Borelli)
763 Thu Feb 5 22:05:52 2004 Matthias Clasen <maclas@gmx.de>
765 * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
766 to FALSE. (#133539, Morten Welinder)
768 Thu Feb 5 21:36:43 2004 Matthias Clasen <maclas@gmx.de>
770 * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
771 of the depth one check. (#133488, Christian Persch)
773 Thu Feb 5 01:50:19 2004 Matthias Clasen <maclas@gmx.de>
775 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
776 the drawing of tearoff menu items which don't come first in their
779 Thu Feb 5 00:59:08 2004 Matthias Clasen <maclas@gmx.de>
781 * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use
782 g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
784 2004-02-04 Federico Mena Quintero <federico@ximian.com>
788 * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
790 (gtk_label_button_press): Fix prototype.
791 (gtk_label_button_release): Likewise.
792 (gtk_label_motion): Likewise.
794 * tests/testgtk.c (create_message_dialog): For the dialog with
795 only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
797 2004-02-04 Morten Welinder <terra@gnome.org>
799 * gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
800 bug 133411, apart from the leak.)
802 Tue Feb 3 13:39:27 2004 Manish Singh <yosh@gimp.org>
804 * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
805 in g_object_new, since it depends on lower and upper being set.
807 2004-02-03 Federico Mena Quintero <federico@ximian.com>
809 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
810 window not resizable. Fixes #114032.
812 2004-02-03 Federico Mena Quintero <federico@ximian.com>
814 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
815 documentation for the use_separator style property.
817 2004-02-03 Federico Mena Quintero <federico@ximian.com>
821 * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
822 GtkDialog; right now it only contains an ignore_separator field.
823 (gtk_dialog_class_init): Register the private structure.
824 (gtk_dialog_init): Initialize the priv->ignore_separator field.
825 (_gtk_dialog_set_ignore_separator): New private function.
826 (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
828 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
829 use_separator style property.
830 (gtk_message_dialog_style_set): Change the dialog's separator
831 based on the style property.
832 (gtk_message_dialog_init): Set the dialog box to ignore the
835 Tue Feb 3 02:35:09 2004 Matthias Clasen <maclas@gmx.de>
837 * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
838 also dist gtkfilesystemwin32.[hc].
840 Tue Feb 3 02:04:44 2004 Matthias Clasen <maclas@gmx.de>
842 * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
843 in rtl mode. (#129071, chinen@jp.ibm.com)
845 Tue Feb 3 02:01:25 2004 Matthias Clasen <maclas@gmx.de>
847 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
848 meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
851 Tue Feb 3 01:38:06 2004 Matthias Clasen <maclas@gmx.de>
853 Clip narrow columns in rtl-oriented tree views (#128089,
856 * gtk/gtkstyle.c (gtk_default_draw_option):
857 * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the
860 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
861 Use the right clip area when calling gtk_cell_renderer_render().
862 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus):
863 Use the right clip area when calling gtk_paint_focus().
864 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
865 Use the right clip area when calling gtk_paint_toggle() or
867 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
868 Clip to the expose_area when drawing the background rectangle.
870 Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
872 * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
873 Use a weak reference instead of ref()/unref(). (#60857, reported
874 by Joshua N Pritikin)
876 * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
878 Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
880 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
881 init_hadjust_value and prev_width.
882 * gtk/gtktreeview.c (gtk_tree_view_init): Initialize
884 * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
885 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
886 here to properly handle the initial position of rtl-oriented
887 tree views. (#127581, chinen@jp.ibm.com)
889 2004-01-20 Federico Mena Quintero <federico@ximian.com>
891 Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
893 * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
894 we handle an event in the colums, and FALSE at the end if the
895 event is not handled at all.
897 Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
899 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
900 Don't access the level after removing the node, since that may
901 kill the level. (#132615, Crispin Flowerday)
903 2004-02-02 Tor Lillqvist <tml@iki.fi>
905 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
906 in all cases. If no grab cursor specified, use the grabbing
907 window's cursor. If the grabbing window has no cursor, use the
908 default arrow cursor. (#118025)
910 Mon Feb 2 22:05:36 2004 Matthias Clasen <maclas@gmx.de>
912 * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
913 latest in menu separation technology.
915 Mon Feb 2 19:04:17 2004 Soeren Sandmann <sandmann@daimi.au.dk>
917 * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
918 we have to take our chances with).
922 Mon Feb 2 18:45:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
926 * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
927 Remove unused variable 'result'
929 * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
931 * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
934 Mon Feb 2 14:32:32 2004 Pablo Saratxaga <pablo@mandrakesoft.com>
936 * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
937 is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
939 Sun Feb 1 16:34:07 2004 Soeren Sandmann <sandmann@daimi.au.dk>
941 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
942 sliding when using the new API.
944 Sun Feb 1 16:03:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
946 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
947 item_area is positioned correctly. Fix #133070, reported by Jeroen
950 Sat Jan 31 23:13:43 2004 Matthias Clasen <maclas@gmx.de>
952 * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
953 crash when finalizing an unused GtkTextChildAnchor. (#132260,
956 Sat Jan 31 22:41:57 2004 Matthias Clasen <maclas@gmx.de>
958 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
959 the documentation for new_order. (#124790, Tim-Philipp Müller)
961 Sat Jan 31 22:38:07 2004 Matthias Clasen <maclas@gmx.de>
963 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
964 Reset use_resized_width when setting fixed_width. (#108612,
967 Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
969 * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
970 GtkKeySnooperData. (#132038, R. McFarland)
972 2004-01-30 Federico Mena Quintero <federico@ximian.com>
976 * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
978 (gtk_file_system_volume_render_icon): Likewise.
980 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
983 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
986 * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
989 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
991 (gtk_text_iter_get_bytes_in_line): Likewise.
993 * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
996 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
999 2004-01-30 Not Zed <NotZed@Ximian.com>
1003 * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
1004 handler when we clear the timeout id.
1006 2004-01-30 Federico Mena Quintero <federico@ximian.com>
1008 Fix #129872, based on a patch by Jan Arne Petersen
1009 <jpetersen@uni-bonn.de>
1011 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
1013 (gtk_file_system_unix_add_bookmark): Implement.
1014 (gtk_file_system_unix_remove_bookmark): Implement.
1016 2004-01-29 Federico Mena Quintero <federico@ximian.com>
1020 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
1021 use filename_from_path(). Also, check that the filename is
1023 (gtk_file_system_unix_get_folder): Likewise.
1024 (gtk_file_system_unix_create_folder): Likewise.
1025 (gtk_file_system_unix_make_path): Likewise.
1026 (gtk_file_system_unix_parse): Likewise.
1027 (gtk_file_folder_unix_get_info): Likewise.
1028 (filename_from_path): Removed.
1030 2004-01-30 Federico Mena Quintero <federico@ximian.com>
1032 * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
1033 by Damien Carbery <damien.carbery@sun.com>. Fixes #132956.
1035 Fri Jan 30 11:37:37 2004 Owen Taylor <otaylor@redhat.com>
1037 * gdk/x11/gdkdrawable-x11.c: Revert changes from
1038 #113476 and go back to using XftDrawSetClip, because
1039 XftDrawSetClipRectangles is buggy in XFree86-4.3.
1041 Thu Jan 29 18:08:06 2004 Owen Taylor <otaylor@redhat.com>
1043 * gtk/gtktextlayout.c (line_display_iter_to_index)
1044 * gtk/gtktextlayout.c (line_display_index_to_iter): Only
1045 adjust the preedit position for lines that include the
1046 preedit string. (#132353, Yao Zhang). How the heck
1047 did this work as well as it did?!?!
1049 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
1050 Reverse change to change of XNFilterEvents event mask from
1051 #110493 -- it's documented and in the Xlib code an
1054 * modules/input/gtkimcontextxim.c (preedit_start_callback):
1055 Return -1 rather than void to indicate no length limit.
1058 Fri Jan 30 00:45:46 2004 Matthias Clasen <maclas@gmx.de>
1060 * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
1061 (#64601, Murray Cumming)
1063 Fri Jan 30 00:13:46 2004 Matthias Clasen <maclas@gmx.de>
1065 * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
1066 for strings to clear the list. (#105386, Marco Pesenti Gritti)
1068 2004-01-28 Richard Hult <richard@imendio.com>
1070 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
1071 Free font_desc. Fixes #132805.
1073 2004-01-29 Federico Mena Quintero <federico@ximian.com>
1075 * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
1076 Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
1079 Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
1081 * gtk/gtkselection.c (gtk_selection_default_handler):
1082 nul-terminate the target atoms. (#132656, Christian Persch)
1084 Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
1086 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
1087 Don't leak path if we bail out early. (#132505, Christian Persch)
1089 Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
1091 * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
1092 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
1093 reference counting on the user_data that is shared between
1094 multiple signal handlers, to avoid calling the destroy notify
1095 multiple times. (#132447, Adam Hooper)
1097 2004-01-28 Hans Breuer <hans@breuer.org>
1099 * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
1100 gtk/gtkstock.[hc] : ... define ...
1101 gtk/gtkiconfactory.c : ... register ...
1102 gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
1103 * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent
1106 * gtk/gtk.def : added a bunch of new exported symbols
1108 * tests/testfilechooser.c (no_backup_files_filter) : don't crash
1109 on filter_info->display_name being NULL
1111 * tests/testgtk.c : make testgtk --bench=all work again
1113 Wed Jan 28 21:40:47 2004 Matthias Clasen <maclas@gmx.de>
1115 * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
1116 Don't leak string. (#132482, Christian Persch)
1118 Tue Jan 27 18:45:47 2004 Manish Singh <yosh@gimp.org>
1120 * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
1121 1.8 won't whine at us.
1123 2004-01-28 Tor Lillqvist <tml@iki.fi>
1125 * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
1126 synthesize_enter_event): Don' generate enter or leave events if
1127 the pointer is grabbed with owner_events off, and the grab event
1128 mask doesn't ask for them. (#129242)
1130 (gdk_event_translate): Ditto for focus change events.
1132 2004-01-27 Federico Mena Quintero <federico@ximian.com>
1136 * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
1138 * gtk/gtkfilesystem.c: Likewise.
1140 * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
1142 (gtk_file_system_unix_render_icon): Moved the icon-rendering code
1143 from GtkFileInfo to here.
1144 (gtk_file_system_unix_volume_render_icon): Implement.
1146 2004-01-28 Changwoo Ryu <cwryu@debian.org>
1148 * modules/input/imhangul-defs.h:
1149 * modules/input/imhangul.c:
1150 * modules/input/Makefile.am: Remove broken hangul input module.
1152 Tue Jan 27 01:56:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1154 * gtk/gtktoolbar.c: Remove obsolete comment.
1156 * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START,
1157 SPACE_LINE_END): Make separators wider and taller, so they are
1158 easier to pick up when editing the toolbar.
1160 * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
1163 * gtk/gtktoolbar.c (rect_within): Formatting fix
1165 * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
1166 sliding feel more responsive by only restarting sliding when the
1167 placeholder actually changes its goal allocation.
1169 Tue Jan 27 02:00:37 2004 Matthias Clasen <maclas@gmx.de>
1171 * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a
1172 compiler warning. (#122725, Kjartan Maraas)
1174 Tue Jan 27 01:46:54 2004 Matthias Clasen <maclas@gmx.de>
1176 Make menus work better on Xinerama (#126150):
1178 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the
1179 monitor_num on the screen of the menu, not of the attach widget.
1181 * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num.
1182 (gtk_menu_window_size_request): Remember the monitor_num.
1184 2004-01-26 Federico Mena Quintero <federico@ximian.com>
1186 Fix #105497; constify uses of GdkColor.
1188 * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
1189 (gdk_gc_set_rgb_bg_color): Constify.
1190 (gdk_gc_set_foreground): Constify.
1192 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
1193 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
1194 * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
1196 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
1197 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
1198 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
1200 * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
1201 * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
1202 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
1204 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
1205 (gdk_draw_layout_with_colors): Constify.
1207 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
1208 (gdk_pixmap_colormap_create_from_xpm): Constify.
1209 (gdk_pixmap_create_from_xpm): Constify.
1210 (gdk_pixmap_colormap_create_from_xpm_d): Constify.
1211 (gdk_pixmap_create_from_xpm_d): Constify.
1213 * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
1215 * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
1216 (gtk_clist_set_background): Constify.
1218 * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
1219 (gtk_color_button_set_color): Constify.
1221 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
1222 Constify and add a check for color != NULL.
1223 (gtk_color_selection_get_current_color): Add a check for color != NULL.
1224 (gtk_color_selection_set_previous_color): Constify and add a check
1226 (gtk_color_selection_get_previous_color): Add a check for color != NULL.
1228 * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
1229 (gtk_ctree_node_set_background): Constify.
1231 * gtk/gtktext.c (gtk_text_insert): Constify.
1232 (insert_text_property): Constify.
1233 (text_properties_equal): Constify.
1234 (new_text_property): Constify.
1236 * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
1237 (gtk_widget_modify_fg): Constify.
1238 (gtk_widget_modify_bg): Constify.
1239 (gtk_widget_modify_text): Constify.
1240 (gtk_widget_modify_base): Constify.
1242 2004-01-26 Christian Rose <menthos@menthos.com>
1244 * configure.in: Added "mi" to ALL_LINGUAS.
1246 2004-01-25 Tor Lillqvist <tml@iki.fi>
1248 * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
1249 WM_TRANSIENT_FOR property is being deleted, set the owner of the
1250 window to the root window (i.e., effectively unset it). (#132411)
1252 * gdk/win32/gdkprivate-win32.h
1253 * gdk/win32/gdkglobals-win32.c
1254 * gdk/win32/gdkmain-win32.c: Declare, define and initialize
1255 _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
1257 * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
1259 Sun Jan 25 15:14:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1261 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
1262 to map/unmap items on whether they are actually allocated outside
1263 the toolbar, not on whether that will eventually happen. Improves
1264 animation in the presence of overflown items.
1266 * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
1267 queue_resize() to so that the items will get their new goal
1268 values and the idle handler will not immediately return FALSE.
1270 * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
1271 make sure that a placeholder becoming invisible doesn't cause a
1274 * gtk/gtktoolbar.c (get_item_size): Don't special case
1277 Sat Jan 24 23:17:27 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1279 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
1280 try to pack icon if there actually is one.
1282 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
1283 OVERFLOWN items get an allocation even when they are
1284 unmapped. This ensures they will slide in properly.
1286 * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
1287 when there are overflown items that need to slide in. Also add
1288 comments and make formatting more readable.
1290 Sat Jan 24 17:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1292 * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
1293 Add a write-only property ::group to be consistent with
1294 GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
1297 Fri Jan 23 23:46:12 2004 Matthias Clasen <maclas@gmx.de>
1299 * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the
1300 font description. (#132168)
1302 2004-01-23 Federico Mena Quintero <federico@ximian.com>
1306 * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
1308 (set_select_multiple): Optionally notify about changes to the
1309 select-multiple property.
1310 (list_selection_changed): Change the condition for the editable row to
1311 test for save mode; this is more clear than testing for not being
1312 in multiple selection mode.
1313 (gtk_file_chooser_default_get_paths): Get impl->action directly
1314 rather than calling gtk_file_chooser_get_action().
1315 (entry_activate): Likewise.
1316 (set_select_multiple): Annotate about #133255.
1317 (update_chooser_entry): Likewise.
1318 (check_preview_change): Likewise.
1319 (tree_selection_changed): Likewise.
1321 Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
1323 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
1324 when there are no columns, or all columns are hidden, #131402
1326 Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1328 * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
1329 mistake. Change back to 225.
1331 Thu Jan 22 18:46:05 2004 Owen Taylor <otaylor@redhat.com>
1333 * === Released 2.3.2 ===
1335 Thu Jan 22 18:45:26 2004 Owen Taylor <otaylor@redhat.com>
1337 * gtk/gtkicontheme.c: Patch from Christian Neumair
1338 to make warning string more translator friendly.
1340 * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
1341 gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
1344 * configure.in: Require GLib-2.3.2, version 2.3.2,
1345 interface age 0, binary age 302.
1347 * NEWS: Organized, added some names.
1349 Thu Jan 22 16:59:36 2004 Jonathan Blandford <jrb@gnome.org>
1351 * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
1353 2004-01-22 Federico Mena Quintero <federico@ximian.com>
1355 * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
1356 GtkWidget::popup_menu.
1358 Thu Jan 22 21:45:24 2004 Matthias Clasen <maclas@gmx.de>
1360 * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach
1361 info after calling gtk_menu_do_remove(), since that function
1362 uses the attach info. Doh!
1364 * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns
1365 for being 1 directly after setting it to 0.
1367 Thu Jan 22 21:38:52 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1371 2004-01-22 Alexander Larsson <alexl@redhat.com>
1373 * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
1376 2004-01-21 Federico Mena Quintero <federico@ximian.com>
1378 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1379 Free the path fields.
1381 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
1382 the root_path, reported by <scott@asofyet.org>
1383 (gtk_file_system_model_finalize): Unref the file system.
1385 * gtk/gtkfilefilter.c (filter_rule_free): default:
1386 g_assert_not_reached().
1387 (gtk_file_filter_finalize): Free the filter->name, reported by
1389 (gtk_file_filter_finalize): Free the rules list.
1391 Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
1393 * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
1394 color button when an alpha is set.
1395 (gtk_color_button_set_alpha): redraw the color button when an
1398 Wed Jan 21 23:27:14 2004 Matthias Clasen <maclas@gmx.de>
1402 * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
1403 a reference to the group while emitting the signals.
1405 * gtk/gtkactiongroup.c (gtk_action_group_init): Use a
1406 destroy notify which does not only unref, but also resets
1407 the action_group property of the action.
1409 2004-01-20 Federico Mena Quintero <federico@ximian.com>
1411 * NEWS: Added details about GtkFileChooser changes.
1413 2004-01-20 Federico Mena Quintero <federico@ximian.com>
1415 Fix #99425, add accessor functions for GtkPaned's children.
1417 * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
1418 (gtk_paned_get_child2): New function.
1420 Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
1422 * NEWS: Start of 2.3.2 section.
1424 Tue Jan 20 22:11:31 2004 Matthias Clasen <maclas@gmx.de>
1426 Fixes for #130370, based on a patch by Michael Meeks:
1428 * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
1429 adjust cell positions and recalculate row and column counts after
1432 * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
1434 * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
1437 * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
1438 to avoid an unintended recursion.
1440 2004-01-19 Federico Mena Quintero <federico@ximian.com>
1444 * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
1446 (gtk_file_chooser_default_set_property): Use
1447 set_select_multiple(). Also, re-set this mode to single if the
1448 file chooser is set to Save mode.
1449 (entry_activate): Handle the case where the entry is completely
1450 empty *and* its current folder does exist. Also, there is need to
1451 test for select_multiple here now that we ensure that it won't
1452 happen during Save mode.
1454 Sun Jan 18 15:25:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1456 * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
1457 _gtk_toolbar_get_default_space_size ();
1459 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
1460 get_space_size): Use them here.
1462 Sun Jan 18 13:16:34 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1464 * tests/testgtk.c (create_toolbar): Set a small size request and
1465 make the window resizable, to test mapping/unmapping of buttons.
1467 * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
1468 gtk_toolbar_insert_tool_item): remove these functions.
1470 * gtk/gtktoolbar.c (gtk_toolbar_show_all,
1471 toolbar_content_show_all, gtk_toolbar_hide_all,
1472 toolbar_content_hide_all): New functions.
1474 Ignore show_all/hide_all for buttons created in compatibility mode.
1476 * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
1477 gtk_toolbar_hide_all): Make sure buttons are ignored by
1478 gtk_toolbar_show_all() and gtk_toolbar_hide_all().
1480 * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
1482 * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
1483 GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
1485 * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
1488 * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
1489 instead of prepending them.
1491 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
1492 'elapsed' for all items.
1494 * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
1497 * gtk/gtktoolbar.c: Many formatting fixes
1499 Sun Jan 18 01:51:12 2004 Matthias Clasen <maclas@gmx.de>
1501 * configure.in: Add the necessary magic to create
1502 po-properties/Makefile.
1504 Sat Jan 17 23:05:52 2004 Matthias Clasen <maclas@gmx.de>
1506 The second part of the fix for #114351 (see also
1507 gdk-pixbuf/ChangeLog and po/ChangeLog):
1509 * Makefile.am (SUBDIRS): Add po-properties.
1511 * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in
1513 * gdk/gdkintl.h (P_):
1514 * gtk/gtkintl.h (P_): Use translation domain gtk20-properties.
1516 * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
1517 bind_textdomain_codeset for gtk20-properties as well.
1519 Sat Jan 17 22:00:07 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1523 Fix rest of #128678: Implement all the toolbar_content()
1524 methods for the old API case.
1526 Sat Jan 17 16:53:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1530 Phase 1 of fixing #128678: Only access ToolbarContent through a
1531 set of new functions:
1533 toolbar_content_expose, toolbar_content_visible,
1534 toolbar_content_size_request, toolbar_content_is_homogeneous,
1535 toolbar_content_get_child_requisition,
1536 toolbar_content_is_placeholder, toolbar_content_disappearing,
1537 toolbar_content_get_state, toolbar_content_child_visible,
1538 toolbar_content_get_goal_allocation,
1539 toolbar_content_get_allocation,
1540 toolbar_content_set_start_allocation,
1541 toolbar_content_get_start_allocation, toolbar_content_get_expand,
1542 toolbar_content_set_goal_allocation,
1543 toolbar_content_set_child_visible, toolbar_content_size_allocate,
1544 toolbar_content_set_state, toolbar_content_get_widget,
1545 toolbar_content_set_disappearing,
1546 toolbar_content_set_size_request,
1547 toolbar_content_toolbar_reconfigured,
1548 toolbar_content_retrieve_menu_item,
1549 toolbar_content_new_tool_item, toolbar_content_destroy,
1550 toolbar_content_is_separator
1554 Sat Jan 17 12:55:13 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1556 * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
1559 Sat Jan 17 12:37:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1561 * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
1564 * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public.
1567 2004-01-16 Federico Mena Quintero <federico@ximian.com>
1569 * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
1571 (_gtk_file_system_model_add_editable): New function.
1572 (_gtk_file_system_model_remove_editable): New function.
1573 (gtk_file_system_model_get_value): Return appropriate values for
1574 the temporary editable row.
1575 (_gtk_file_system_model_get_info): Handle the editable row.
1576 (_gtk_file_system_model_get_path): Likewise.
1578 * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
1579 Removed an unused variable.
1580 (toolbar_button_new): Optionally show the button.
1581 (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
1582 (toolbar_create): Add a "New Folder" button for Save mode.
1583 (error_building_filename_dialog): New helper function.
1584 (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
1585 (create_file_list): Connect to the "edited" signal of the text
1586 cell renderer. Store the name column and text renderer in the
1588 (renderer_edited_cb): New callback.
1589 (gtk_file_chooser_default_set_property): Show/hide the "New
1590 folder" button when the save action changes.
1591 (COMPARE_DIRECTORIES): Allow the info values to be NULL.
1592 (COMPARE_DIRECTORIES): Duh, use the list_model, not the
1594 (get_list_file_info): Likewise!
1595 (list_icon_data_func): Handle the path being NULL.
1596 (new_folder_button_clicked): New callback.
1597 (list_name_data_func): If we are on the editable row, set the text
1598 to "Type name of new folder".
1599 (list_selection_changed): Handle the editable row.
1600 (list_mtime_data_func): Likewise.
1602 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
1604 (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
1606 Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
1608 The first part of the fix for #114351 (see also
1609 gdk-pixbuf/ChangeLog and po/ChangeLog):
1612 * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
1614 * gdk/gdkdisplaymanager.c:
1615 * modules/input/gtkimcontextxim.c:
1616 * gtk/*.c: Mark property blurbs and nicks with P_().
1618 2004-01-16 Federico Mena Quintero <federico@ximian.com>
1622 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
1623 editing_canceled signal.
1625 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
1626 "editing-canceled" signal.
1627 (gtk_cell_renderer_editing_canceled): New function.
1629 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
1630 Call gtk_cell_renderer_editing_canceled().
1632 2004-01-16 Federico Mena Quintero <federico@ximian.com>
1634 * gtk/gtkfilechooserdefault.c
1635 (gtk_file_chooser_default_set_property): Do not allow setting
1636 select_multiple when in Save mode.
1637 (set_list_model): No need to nullify the list_model and
1639 (gtk_file_chooser_default_get_paths): Handle folder mode as well.
1640 (get_paths_foreach): Likewise.
1642 * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
1643 documentation about folder mode.
1644 (gtk_file_chooser_get_uri): Likewise.
1646 2004-01-16 Federico Mena Quintero <federico@ximian.com>
1648 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
1649 get_volume_for_path() method.
1650 (struct _GtkFileSystemIface): Finally removed the list_roots() and
1651 get_root_info() methods, and the "roots-changed" signal.
1653 * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
1655 (gtk_file_system_list_roots): Removed.
1656 (gtk_file_system_get_root_info): Removed.
1658 * gtk/gtkfilesystemunix.c
1659 (gtk_file_system_unix_get_volume_for_path): Implement.
1660 (get_root_volume): New helper function.
1661 (gtk_file_system_unix_list_volumes): Use get_root_volume().
1662 (gtk_file_system_unix_list_roots): Removed.
1663 (gtk_file_system_unix_get_root_info): Removed.
1665 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
1666 accept a NULL root_path.
1667 (struct _GtkFileSystemModel): Add a field to remember the
1669 (_gtk_file_system_model_new): Store the root_path in the model
1671 (find_and_ref_path): Stop going up the hierarchy at the root_path
1672 of the model. Also, don't return prematurely when walking up the
1675 * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
1677 (struct _GtkFileChooserDefault): Added a current_volume_path field.
1678 (set_tree_model): New function; create the folder tree model here.
1679 (create_folder_tree): Don't create the model here.
1680 (set_list_model): Set the show_hidden flag on the list model.
1682 Fri Jan 16 00:04:43 2004 Matthias Clasen <maclas@gmx.de>
1684 * gtk/gtknotebook.h:
1685 * gtk/gtknotebook.c (gtk_notebook_append_page):
1686 * gtk/gtknotebook.c (gtk_notebook_append_page_menu):
1687 * gtk/gtknotebook.c (gtk_notebook_prepend_page):
1688 * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu):
1689 * gtk/gtknotebook.c (gtk_notebook_insert_page):
1690 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
1691 index of the newly inserted page. (#130986, Olexiy Avramchenko)
1693 Thu Jan 15 23:17:14 2004 Matthias Clasen <maclas@gmx.de>
1695 * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
1696 a 'newly-allocated' to hint that the list should be freed after
1699 Wed Jan 14 18:01:52 2004 Jonathan Blandford <jrb@gnome.org>
1701 * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
1702 to after handling the button presses in the TreeView to avoid
1703 getting multiple selection_changes()
1705 Wed Jan 14 21:16:20 2004 Matthias Clasen <maclas@gmx.de>
1707 * gtk/gtkimcontext.c: Documentation fix. (#131335, Theppitak
1710 Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
1712 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1713 Don't leak name and stock_id. (#131358, Morten Welinder)
1715 Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
1717 * docs/faq/gtk-faq.sgml: Updates to Section 5
1719 Wed Jan 14 02:34:57 2004 Matthias Clasen <maclas@gmx.de>
1721 * gtk/gtkradioaction.c: Add a writable group property to align
1722 with the GtkRadioButton API. (#129166, Olivier Andrieu)
1724 Tue Jan 13 14:48:27 GMT 2004 Tony Gale <gale@gtk.org>
1726 * docs/faq/gtk-faq.sgml: Update info on using autoconf
1728 Mon Jan 12 23:40:34 2004 Matthias Clasen <maclas@gmx.de>
1730 * tests/testmerge.c: Adjust to the new connect_proxy signals.
1732 * gtk/gtkuimanager.c
1733 * gtk/gtkactiongroup.c
1734 * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
1735 from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
1736 removes the confusion between the disconnect_/connect_proxy signals
1737 and the (unrelated) virtual functions of the same name and aligns
1738 the setup with the pre_/post_activate signals.
1740 2004-01-12 Jody Goldberg <jody@gnome.org>
1742 * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
1743 with no submenus otherwise it looks like we activate every time a
1746 2004-01-12 Jody Goldberg <jody@gnome.org>
1748 * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
1750 Sun Jan 11 01:55:07 2004 Matthias Clasen <maclas@gmx.de>
1752 * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff.
1753 (gtk_accel_map_lock_path):
1754 (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
1755 entry is silently created during lock_path(), and treated as an error
1756 during unlock_path(). These changes have been requested by Tim Janik.
1758 2004-01-10 Jody Goldberg <jody@gnome.org>
1760 * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
1761 s/merge_signals/ui_manager_signals/ for readability.
1762 (gtk_ui_manager_class_init) : add pre_activate and post_activate
1764 (cb_proxy_pre_activate) : new.
1765 (cb_proxy_post_activate) : new.
1766 (gtk_ui_manager_insert_action_group) : connect the proxies for
1767 GtkActionGroup::pre/post_activate
1768 (gtk_ui_manager_remove_action_group) : disconnect them.
1770 * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
1771 'sensitive', and 'visible' properties. Also add pre_activate and
1772 post_activate signals to help deal with activations at a higher
1773 level (eg GtkUIManager)
1774 (gtk_action_group_init) : init sensitive and visible
1775 (gtk_action_group_set_property) : add sensitive and visible
1776 (gtk_action_group_get_property) : add sensitive and visible
1777 (gtk_action_group_get_sensitive) : new.
1778 (gtk_action_group_get_visible) : new.
1779 (cb_set_action_sensitivity) : new with minor optimization that only
1780 signals sensitivity changes if the action could possibly change.
1781 (cb_set_action_visiblility) : ditto.
1782 (gtk_action_group_set_sensitive) : new. walk the actions directly
1783 rather than using notify::sensitive because that is simpler, easier
1784 to read, and more efficient.
1785 (gtk_action_group_set_visible) : ditto.
1786 (gtk_action_group_add_action) : Each action can only be in 1 group,
1787 set GtkAction::action_group.
1788 (gtk_action_group_remove_action) : clear it.
1789 (gtk_action_group_add_toggle_actions_full) : warning suppression.
1790 (gtk_action_group_add_radio_actions_full) : warning suppression.
1791 (_gtk_action_group_emit_pre_activate) : new protected routine for use
1793 (_gtk_action_group_emit_post_activate) : ditto.
1795 * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
1796 (gtk_action_init) : initialize it.
1797 (gtk_action_get_property) : get.
1798 (gtk_action_set_property) : set it via
1799 (gtk_action_set_action_group) : new function.
1800 (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
1801 with the logical sensitivity (action & group) rather than the simple
1802 action::sensitivity.
1803 (gtk_action_sync_visible) : use gtk_action_is_visible to handle
1804 logical visibility (action & group) rather than the simple
1805 action::visible. Use widget show/hide directly.
1806 (connect_proxy) : handle the custom sensitivity handler.
1807 Make the TOOL_BUTTON signals more general and support TOOL_ITEM
1808 directly, with special cases for TOOL_BUTTON. Still not especially
1809 good it might be useful to handle label/use_underline by parmspec
1810 lookup. Those are likely to be implemented by custom types, and are
1811 assumed to exist in GtkToolItem.
1812 (disconnect_proxy) : disconnect the new sensitivity handler.
1813 (_gtk_action_emit_activate) : add pre/post signals.
1814 (gtk_action_activate) : use logical sensitivity.
1815 (gtk_action_is_sensitive) : logical sensitivity.
1816 (gtk_action_get_sensitive) : actual sensitivity.
1817 (closure_accel_activate) : use logical sensitivity.
1819 Fri Jan 9 22:23:45 2004 Matthias Clasen <maclas@gmx.de>
1821 * gtk/gtkuimanager.c: Introduce a new parser state for
1822 accelerator elements to avoid misparsing files containing
1823 such elements. (#131035, Morten Welinder)
1825 Fri Jan 9 11:58:47 2004 Manish Singh <yosh@gimp.org>
1827 * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
1829 Fri Jan 9 15:28:21 GMT 2004 Tony Gale <gale@gtk.org>
1831 * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
1833 Fri Jan 9 00:34:57 2004 Matthias Clasen <maclas@gmx.de>
1835 * gtk/gtkuimanager.h:
1836 * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
1837 obtain a list of toplevel widgets constructed by the ui manager.
1839 * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that
1840 the values can be combined for gtk_ui_manager_get_toplevels().
1842 * tests/testmerge.c: Add a "Dump toplevels" button to test
1843 gtk_ui_manager_get_toplevels().
1845 Wed Jan 7 23:20:06 2004 Matthias Clasen <maclas@gmx.de>
1847 * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
1849 * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion
1850 by Anders Carlsson (#130464).
1852 Wed Jan 7 23:07:28 2004 Matthias Clasen <maclas@gmx.de>
1855 * gtk/gtkmain.c (gtk_events_pending): Change the return value from
1856 gint to gboolean. (#130718, reported by Johannes Weißl)
1858 Wed Jan 7 23:03:32 2004 Matthias Clasen <maclas@gmx.de>
1860 * gtk/gtkactiongroup.h:
1861 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1862 Remove the redundant name and stock_id parameters, adjust all callers.
1864 Wed Jan 7 22:20:20 2004 Matthias Clasen <maclas@gmx.de>
1867 * gtk/gtkaction.c (gtk_action_new):
1868 * gtk/gtktoggleaction.h:
1869 * gtk/gtktoggleaction.c (gtk_toggle_action_new):
1870 * gtk/gtkradioaction.h:
1871 * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation
1872 functions for actions.
1874 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
1875 (gtk_action_group_add_toggle_actions_full):
1876 (gtk_action_group_add_radio_actions_full): and use the
1877 new functions here. (#125322, Patch by Jeff Frank)
1879 Wed Jan 7 21:42:49 2004 Matthias Clasen <maclas@gmx.de>
1881 * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of
1884 2004-01-07 Jan Arne Petersen <jpetersen@uni-bonn.de>
1886 * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
1887 (shortcuts_append_home), (shortcuts_append_desktop),
1888 (shortcuts_append_paths), (shortcuts_add_volumes),
1889 (shortcuts_append_bookmarks), (create_shortcuts_model),
1890 (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
1891 to the shortcuts_model.
1893 (remove_bookmark_button_clicked_cb),
1894 (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
1895 bookmarks can be removed. Fixes #129873
1897 Wed Jan 7 02:50:55 2004 Matthias Clasen <maclas@gmx.de>
1899 * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
1900 i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
1901 and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats,
1902 respectively. Tests #82203.
1904 2004-01-06 Federico Mena Quintero <federico@ximian.com>
1906 * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
1907 0777 as the mode for mkdir() and let the umask do the right
1908 thing. Fixes #121819.
1910 * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
1911 can return NULL; handle this. Fixes #129565.
1913 2004-01-06 Alexander Winston <alexander.winston@comcast.net>
1915 * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
1916 that proceeded the end-of-sentence punctuation. Fixes: #130353.
1918 2004-01-06 Jody Goldberg <jody@gnome.org>
1920 * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call
1921 gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
1923 2004-01-05 Federico Mena Quintero <federico@ximian.com>
1925 * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
1926 call shortcuts_add_bookmarks() here.
1927 (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
1929 (shortcuts_append_paths): Don't display error dialogs here.
1930 (create_file_list): Remove the @#$% rules hint.
1932 2004-01-05 Federico Mena Quintero <federico@ximian.com>
1934 * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
1936 (toolbar_create): Do not use a toolbar widget, just an hbox
1937 instead. Add the bookmarks buttons and the current folder label
1939 (create_filename_entry_and_filter_combo): Create the filter combo
1941 (filter_create): Don't show the filter combo initially.
1942 (up_button_cb): Renamed from toolbar_up_cb().
1943 (create_shortcuts_buttons): Removed.
1945 2004-01-05 Murray Cumming <murrayc@usa.net>
1947 * gdk/gdkimage.h: Added <public> documentation to the struct, as
1948 suggested by Owen Taylor.
1950 2004-01-05 Jody Goldberg <jody@gnome.org>
1952 * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
1953 I would have prefered outdent, but compatibility seems more
1955 * gtk/gtkstock.c (builtin_items) : ditto.
1956 * gtk/gtkstock.h : ditto.
1957 * gtk/stock-icons/Makefile.am : ditto.
1958 * gtk/stock-icons/stock_text_indent_16.png :
1959 * gtk/stock-icons/stock_text_indent_24.png :
1960 * gtk/stock-icons/stock_text_unindent_16.png :
1961 * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
1963 Sun Jan 4 15:29:04 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1965 * gtk/gtkradiotoolbutton.[ch]
1966 (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
1967 group is a GtkRadioButton, not a GtkWidget.
1969 2004-01-04 Hans Breuer <hans@breuer.org>
1971 * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in
1972 gdk_window_set_keep_(above|below) to make DND work again.
1973 Thanks to Alif Wahid for noticing.
1975 * gdk/gdk.def : update externals
1977 * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
1979 * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c
1980 gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
1981 gtk/stock-icons/stock_harddisk_16.png
1982 gtk/stock-icons/stock_harddisk_24.png
1983 Harddisk stock icons for file system implementations. Beside
1984 FLOPPY and CDROM there is now HARDDISK, probably some
1985 GTK_STOCK_NETWORK would be useful, but I could not find one.
1987 Sat Jan 3 11:39:42 2004 Manish Singh <yosh@gimp.org>
1989 * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
1990 Patch from Andrew Moise (#130462).
1992 2004-01-01 Jody Goldberg <jody@gnome.org>
1994 * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
1996 (gtk_action_class_init) : here.
1997 (gtk_action_init) : here.
1998 (gtk_action_set_property) : here.
1999 (gtk_action_get_property) : here.
2000 (connect_proxy) : and here.
2002 2003-12-30 Jody Goldberg <jody@gnome.org>
2004 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) : new
2005 utility routine for use in derived GtkActions with the replicated code
2007 (gtk_action_group_add_actions_full) : here.
2008 (gtk_action_group_add_toggle_actions_full) : here.
2009 (gtk_action_group_add_radio_actions_full) : and here.
2011 2004-01-01 Taneem Ahmed <taneem@bengalinux.org>
2013 * configure.in: Added "bn" to ALL_LINGUAS.
2015 2004-01-01 Taneem Ahmed <taneem@bengalinux.org>
2017 * bn.po: Added Bangla translation by
2018 of Ankur group <gnome-translation@bengalinux.org>.
2020 Fri Jan 2 02:50:11 2004 Matthias Clasen <maclas@gmx.de>
2022 * gtk/gtkcalendar.c (gtk_calendar_compute_days):
2023 * gtk/gtkcalendar.c (gtk_calendar_paint_day_names):
2024 * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support
2025 week_start values other than 0 and 1, e.g. 6 will let weeks start
2026 on Saturday. (#130349, Roozbeh Pournader)
2028 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
2030 * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
2032 Fix to allow reasonable pointer behavior in window mode when an
2033 extended input device reports an incorrect resolution of 0. Fixes
2036 2003-12-31 Christian Neumair <chris@gnome-de.org>
2038 * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
2039 * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
2042 Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
2044 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
2045 (gtk_action_group_add_toggle_actions_full):
2046 (gtk_action_group_add_radio_actions_full): Pull accelerator key
2047 from the stock item if stock_id is given, but accelerator
2048 not. (Noticed by Jeff Franks and Jody Goldberg)
2050 * tests/testmerge.c: Remove the accelerator from the "Open" entry
2051 to test the above change.
2053 2003-12-29 Federico Mena Quintero <federico@ximian.com>
2055 Make show_all() work for the extra and preview widgets; reported
2058 * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
2060 (set_extra_widget): show_all() the extra widget.
2062 Mon Dec 29 12:22:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2064 * gtk/gtkuimanager.c (do_updates):
2065 * gtk/gtktoolbar.c (slide_idle_handler):
2066 * gtk/gtkdnd.c (gtk_drag_update_idle):
2068 Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
2069 functions. (#130157, patch from Olexiy Avramchenko).
2071 2003-12-29 Anders Carlsson <andersca@gnome.org>
2073 * gtk/gtkradiotoolbutton.c:
2074 * gtk/gtkradiotoolbutton.h:
2075 * gtk/gtkseparatortoolitem.c:
2076 * gtk/gtkseparatortoolitem.h:
2077 * gtk/gtktoggletoolbutton.c:
2078 * gtk/gtktoggletoolbutton.h:
2081 * gtk/gtktoolbutton.c:
2082 * gtk/gtktoolbutton.h:
2083 * gtk/gtktoolitem.c:
2084 * gtk/gtktoolitem.h:
2085 Update my e-mail address.
2087 Mon Dec 29 01:36:22 2003 Matthias Clasen <maclas@gmx.de>
2089 * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path,
2090 gtk_accel_map_unlock_path): Add a way to lock individual accelerator
2091 paths. (#73207, reported by Havoc Pennington)
2093 Sat Dec 27 23:17:56 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2095 * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
2096 instead of VISIBLE to determine whether we should stop
2097 sliding. (#130018, reported by Christian Persch).
2099 Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
2101 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
2102 Don't use first_action without initializing it if n_entries is 0.
2104 Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
2106 * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
2107 Add the missing _get_ to the name of the non-Xcursor version of
2108 this function. (noticed by Torsten Schoenfeld)
2110 Tue Dec 23 22:34:50 2003 Manish Singh <yosh@gimp.org>
2112 * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
2115 2003-12-24 Jody Goldberg <jody@gnome.org>
2117 * gtk/gtkactiongroup.h : Add some const to the char * in
2118 GtkActionEntry*. We're reccomending people pass static strings to
2119 them, and not freeing them. This stems to flood of warnings that
2121 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
2122 temp vars to const to match above.
2123 (gtk_action_group_add_toggle_actions_full) : ditto.
2124 (gtk_action_group_add_radio_actions_full) : ditto.
2126 Wed Dec 24 01:12:53 2003 Matthias Clasen <maclas@gmx.de>
2128 * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
2129 gtk_clipboard_request_targets() and
2130 gtk_clipboard_wait_for_targets(). (#101774, Dom Lachowicz)
2132 Mon Dec 22 00:40:39 2003 Matthias Clasen <maclas@gmx.de>
2134 * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use
2135 gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
2136 * gtk/gtkcalendar.c (draw_arrow_left):
2137 (draw_arrow_right): Removed.
2138 * gtk/gtkcalendar.c (gtk_calendar_realize_arrows):
2139 * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
2140 arrow_state to GTK_STATE_INSENSITIVE if the calendar is
2141 insensitive. (#97376)
2143 Sun Dec 21 23:17:01 2003 Matthias Clasen <maclas@gmx.de>
2145 * gtk/gtkuimanager.c (update_node):
2146 (update_smart_separators):
2147 (_gtk_menu_is_empty):
2148 (find_menu_position):
2149 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy):
2150 * gtk/gtkcombobox.c (gtk_combo_box_relayout_item):
2151 (gtk_combo_box_relayout): Fix memory leaks caused by the
2152 failure to free the result of gtk_container_get_children().
2154 Sun Dec 21 17:34:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
2156 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
2157 properties when the window becomes a toplevel. When a window that
2158 was previously a toplevel becomes a toplevel again, restore its
2159 window type. Also make sure the focus window is removed from the
2160 XID hash when it is destroyed. (#117579, reported by Morten
2161 Welinder, patch reviewed by Owen Taylor).
2163 Sun Dec 21 01:54:40 2003 Matthias Clasen <maclas@gmx.de>
2165 * gtk/gtkmenushell.h:
2166 * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function
2167 to emit the "cancel" signal on a menu shell.
2169 * gtk/gtkmenu.c (gtk_menu_key_press):
2170 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu):
2171 * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the
2172 new function instead of directly emitting the
2173 signal. (#81803, Owen Taylor)
2175 Sun Dec 21 00:39:50 2003 Matthias Clasen <maclas@gmx.de>
2177 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2178 Fix the "language_set" blurb.
2180 Sat Dec 20 22:06:03 2003 Kristian Rietveld <kris@gtk.org>
2182 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
2183 all of treeview when resizing (#110074, patch from Soeren Sandmann).
2185 Fri Dec 19 23:36:00 2003 Kristian Rietveld <kris@gtk.org>
2189 * gtk/gtkcelllayout.[ch]: added a reorder method.
2191 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
2192 (gtk_tree_view_column_cell_layout_reorder): implement reorder.
2194 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
2195 (gtk_cell_view_cell_layout_reorder): ditto.
2197 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
2198 (gtk_combo_box_cell_layout_reorder): ditto.
2200 * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
2201 (gtk_entry_completion_reorder): ditto.
2203 Fri Dec 19 22:18:19 2003 Kristian Rietveld <kris@gtk.org>
2205 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
2206 instead of strcmp (#117127, suggestion from Soeren Sandmann).
2208 Fri Dec 19 21:52:46 2003 Kristian Rietveld <kris@gtk.org>
2210 * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
2211 here from gtk_menu_real_insert(),
2212 (gtk_menu_real_insert): just call gtk_menu_do_insert(),
2213 (gtk_menu_reorder_child): run _do_insert after inserting the child
2214 (unbreaks _reorder_child, reported by Tim Janik).
2216 2003-12-19 Federico Mena Quintero <federico@ximian.com>
2218 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
2219 g_date_strftime() for UTF-8 correctness; use Julian dates to
2220 simplify the function.
2222 Fri Dec 19 01:47:34 2003 Matthias Clasen <maclas@gmx.de>
2224 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request):
2225 Test extra_width, not extra_height, when determining whether to
2226 set extra_width. (#129647, Jan Arne Petersen)
2228 Fri Dec 19 01:35:34 2003 Matthias Clasen <maclas@gmx.de>
2230 Fix the behaviour of insensitive actions, which was broken
2231 when gtk_action_activate() was changed to pay attention to
2232 sensitivity (#129557, Christian Persch)
2235 * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
2236 function to emit an activate signal without regard to sensitivity.
2238 * gtk/gtkradioaction.c:
2239 * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
2240 instead of gtk_action_activate().
2242 2003-12-18 Jody Goldberg <jody@gnome.org>
2244 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
2245 to ensure that the base hicolor theme is installed. Silently
2246 failing to produce icons that apps assume exist in the theme seems
2249 Thu Dec 18 19:13:12 2003 Kristian Rietveld <kris@gtk.org>
2251 Fixes #110249, reworked patch from Joshua N Pritikin.
2253 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
2254 (gtk_tree_model_sort_tree_drag_source_init),
2255 (gtk_tree_model_sort_row_draggable),
2256 (gtk_tree_model_sort_drag_data_get),
2257 (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
2259 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
2260 (gtk_tree_model_filter_tree_drag_source_init),
2261 (gtk_tree_model_filter_row_draggable),
2262 (gtk_tree_model_filter_drag_data_get),
2263 (gtk_tree_model_filter_drag_data_delete): ditto.
2265 Thu Dec 18 18:01:01 2003 Kristian Rietveld <kris@gtk.org>
2267 * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
2268 for "*" and "/" (expand/collapse all). (#110195, reported by
2271 Thu Dec 18 17:52:56 2003 Kristian Rietveld <kris@gtk.org>
2273 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
2274 clear the extra_attrs list if we set "text" after "markup".
2275 (Fixes #121933, Federico Mena Quintero).
2277 2003-12-18 Alexander Larsson <alexl@redhat.com>
2279 * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
2280 Fix typo that used the wrong x/y values for the x1, y1 point
2283 Thu Dec 18 01:41:50 2003 Kristian Rietveld <kris@gtk.org>
2285 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
2286 (gtk_cell_renderer_text_finalize),
2287 (gtk_cell_renderer_text_get_property),
2288 (gtk_cell_renderer_text_set_property), (get_layout): added language
2289 and language_set properties like GtkTextTag has. (#103800, reported
2292 Thu Dec 18 01:37:59 2003 Matthias Clasen <maclas@gmx.de>
2294 * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
2295 * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the
2296 "activate" signal. (#129358, Ka-Hing Cheung)
2298 Thu Dec 18 01:21:59 2003 Kristian Rietveld <kris@gtk.org>
2300 * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
2301 the logical flag backwards in the expand_collapse_cursor_row
2303 (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
2304 flag when !logical and in RTL. (Fixes #107527, reported by
2307 Thu Dec 18 01:10:16 2003 Kristian Rietveld <kris@gtk.org>
2309 * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
2310 editing when activated by the left mouse button. (#106869,
2311 patch from Evan Martin).
2313 Thu Dec 18 00:57:18 2003 Kristian Rietveld <kris@gtk.org>
2315 Migrating all cell renderers to use the new instance private data
2318 * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
2321 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
2322 (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
2323 (set_cell_bg_color), (gtk_cell_renderer_render): remove old
2324 GtkCellRendererInfo handling, migrate to instance private data.
2326 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
2327 (gtk_cell_renderer_text_start_editing): moved focus_out_id
2328 from GtkCellRendererInfo to text renderer private data.
2330 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
2331 (gtk_cell_renderer_pixbuf_class_init),
2332 (gtk_cell_renderer_pixbuf_finalize),
2333 (gtk_cell_renderer_pixbuf_get_property),
2334 (gtk_cell_renderer_pixbuf_set_property),
2335 (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
2336 (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
2337 migrate to instance private data.
2339 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
2340 (gtk_cell_renderer_toggle_get_property),
2341 (gtk_cell_renderer_toggle_set_property),
2342 (gtk_cell_renderer_toggle_render): migrate to instance private data.
2344 Thu Dec 18 00:24:32 2003 Kristian Rietveld <kris@gtk.org>
2346 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
2347 (gtk_cell_renderer_text_get_property),
2348 (gtk_cell_renderer_text_set_property), (get_layout): add a
2349 single-paragraph-mode property, use private instance data.
2350 (Fixes #114943, reported by Morten Welinder).
2352 Thu Dec 18 00:07:01 2003 Kristian Rietveld <kris@gtk.org>
2354 * gtk/gtktreemodel.h (gtk_tree_path_new_root),
2355 (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
2356 by Matthias Clasen).
2358 Wed Dec 17 23:50:56 2003 Kristian Rietveld <kris@gtk.org>
2360 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
2361 if we set a new stock_id and there was a previous stock_id, unref
2362 the pixbuf (since it was used to renderer the previous stock_id
2363 and stock_id might have been set to NULL now). (Fixes #122966).
2365 2003-12-17 Marco Pesenti Gritti <marco@gnome.org>
2367 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
2369 Check that index is not bigger than level array length
2370 also when depth is 1. Now get_iter_first correctly return
2371 FALSE when the model is empty (#129411).
2373 Wed Dec 17 23:31:19 2003 Kristian Rietveld <kris@gtk.org>
2375 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
2376 try to strcmp or strlen if we managed to normalize and casefold
2377 the string correctly. Fixes crashes with non-UTF8 strings.
2378 (#121617, Patch from Tim-Philipp Müller).
2380 Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
2382 * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
2383 GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
2384 * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
2385 gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
2386 gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
2387 GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
2389 Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
2391 * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
2392 (#122727, patch from Kjartan Maraas).
2394 Wed Dec 17 21:23:01 2003 Kristian Rietveld <kris@gtk.org>
2396 Yay! Fixed height mode! Hooray! (Part 2 of #80868).
2398 * gtk/gtktreeview.c (gtk_tree_view_class_init),
2399 (gtk_tree_view_init), (gtk_tree_view_set_property),
2400 (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
2401 fixed_height_mode property,
2402 (intialize_fixed_height_mode), (do_validate_rows),
2403 (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
2404 (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
2405 (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
2406 (gtk_tree_view_insert_column): implement fixed height mode,
2407 (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
2408 (gtk_tree_view_insert_column_with_attributes),
2409 (gtk_tree_view_insert_column_with_data_func): update docs.
2411 * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
2413 2003-12-07 Murray Cumming <murrayc@usa.net>
2415 * gtk/gtktreemodel.c:
2416 (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
2417 Actually call the default signal handlers instead of calling the
2418 marshallers themselves in an endless loop. These default signal handler
2419 callbacks are not actually set so this is only noticed by gtkmm at
2420 the moment. Bug 123923.
2422 2003-12-16 Federico Mena Quintero <federico@ximian.com>
2424 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
2425 "volumes-changed" signal. Added the following methods:
2428 volume_get_base_path
2429 volume_get_is_mounted
2431 volume_get_display_name
2434 * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
2435 "volumes-changed" signal.
2436 (gtk_file_system_list_volumes): New function.
2437 (gtk_file_system_volume_free): New function.
2438 (gtk_file_system_volume_get_base_path): New function.
2439 (gtk_file_system_volume_get_is_mounted): New function.
2440 (gtk_file_system_volume_mount): New function.
2441 (gtk_file_system_volume_get_display_name): New function.
2442 (gtk_file_system_volume_render_icon): New function.
2444 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
2445 (gtk_file_system_unix_volume_get_base_path): Implement.
2446 (gtk_file_system_unix_volume_get_is_mounted): Implement.
2447 (gtk_file_system_unix_volume_mount): Implement.
2448 (gtk_file_system_unix_volume_get_display_name): Implement.
2449 (gtk_file_system_unix_volume_render_icon): Implement.
2451 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2452 Added a field for the "volumes-changed" signal connection.
2453 (gtk_file_chooser_default_set_property): Connect to
2454 "volumes-changed" on the file system.
2455 (gtk_file_chooser_default_finalize): Disconnect from
2458 * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
2460 (shortcuts_get_index): New helper function.
2461 (shortcuts_insert_path): Can now insert volumes as well as paths.
2462 (shortcuts_append_paths): Don't take is_file_system_root.
2463 (shortcuts_add_volumes): New function.
2464 (shortcuts_append_file_system_roots): Removed.
2465 (create_shortcuts_model): Use shortcuts_add_volumes().
2466 (remove_bookmark_button_clicked_cb): Check that the index is
2468 (bookmarks_check_add_sensitivity): Take volumes into account.
2469 (shortcuts_get_selected_index): New helper function.
2470 (remove_bookmark_button_clicked_cb): Use
2471 shortcuts_get_selected_index().
2472 (bookmarks_check_remove_sensitivity): Likewise.
2473 (shortcuts_select_func): Likewise.
2474 (shortcuts_row_activated_cb): Handle volumes as well as normal
2476 (shortcuts_activate_volume): New function.
2477 (struct _GtkFileChooserDefault): Removed the bookmarks_set and
2478 bookmarks_iter fields.
2479 (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
2480 (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
2481 (remove_bookmark_rows): Removed.
2482 (shortcuts_add_bookmarks): New function; moved most of the code
2483 over from shortcuts_append_bookmarks().
2484 (shortcuts_append_bookmarks): Add the separator node here, and
2485 then call shortcuts_add_bookmarks().
2487 Tue Dec 16 15:01:10 2003 Manish Singh <yosh@gimp.org>
2489 * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
2490 (G_OS_UNIX/G_OS_WIN32 stuff)
2492 Tue Dec 16 01:46:46 2003 Matthias Clasen <maclas@gmx.de>
2494 Do not interpret distant clicks as double-clicks (#116541,
2497 * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
2498 double_click_distance, button_x and button_y.
2499 * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
2502 * gdk/gdkevents.c (gdk_display_set_double_click_distance):
2503 New function to set the double click distance on a display.
2505 * gdk/gdkevents.c: Take double click distance into account
2506 when generating single, double or triple clicks.
2508 * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
2510 * gdk/x11/gdkevents-x11.c: Add the XSetting
2511 "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
2513 2003-12-15 Federico Mena Quintero <federico@ximian.com>
2515 * gtk/gtkdialog.c: Sigh, revert the change.
2517 2003-12-15 Federico Mena Quintero <federico@ximian.com>
2519 * gtk/gtkdialog.c (dialog_has_cancel): Removed.
2520 (gtk_dialog_close): Don't call dialog_has_cancel(). At least
2521 allows sane behavior for #101293.
2523 Mon Dec 15 00:56:54 2003 Matthias Clasen <maclas@gmx.de>
2525 * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
2526 getter and setter gtk_button_[sg]et_alignment(), to set the
2527 alignment of the child. (#70961, Jody Goldberg)
2529 2003-12-14 Hans Breuer <hans@breuer.org>
2531 * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
2532 similar as the other filesystem placement 'constants' (dynamic
2535 * gtk/gtkfilechooserwidget.c : handle file system to win32
2536 renaming here as will
2537 * gtk/gtkfilesystemwin32.c : implement render_icon
2539 * gtk/gtk.def gdk/gdk.def : updated externals
2541 * gdk/win32/gdkdisplay-win32.c : make it compile without
2542 <multimon.h> - i.e. even older sdk
2544 * gdk/win32/gdkevents-win32.c : match resize_timer_proc
2545 with TIMERPROC prototype
2547 * gdk/win32/gdkwindow-win32.c : older msvc does not know
2548 BITMAPV5HEADER (from win xp) either
2550 * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
2553 * tests/testfilechooser.c : recent GLib crashes on
2554 g_print ("%s", NULL) so avoid this
2556 2003-12-14 Tor Lillqvist <tml@iki.fi>
2558 * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
2559 followed by calls to CloseClipboard(). Add a missing call to
2560 CloseClipboard(). Found by Adam Wright, fixes #104944. Use
2561 API_CALL macro in more places.
2563 2003-12-14 Tor Lillqvist <tml@iki.fi>
2567 * gdk/gdkdisplaymanager.c: Mark default_display static.
2569 * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
2571 * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
2574 * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
2575 --gdk-debug=events. In general, output just one line of debugging
2576 output for each Windows message, plus one line for each GDK event
2577 generated. Indent all lines according to window procedure nesting
2580 (inner_window_procedure): Rename from real_window_procedure.
2582 (find_real_window_for_grabbed_mouse_event): Don't get misled when
2583 the point is in the non-client (decoration) area of the window
2584 returned by WindowFromPoint(). Return the root window in that
2587 (build_pointer_event_state): Test also MK_XBUTTON1 and
2588 MK_XBUTTON2 (buttons 4 and 5).
2590 (synthesize_enter_event): Track the mouse leaving the window in
2591 the event being generated, not the one mentioned in the Windows
2594 (propagate): Test for NULL parent earlier. Improves event
2595 generation from a grabbed pointer. Part of fix for #107320.
2597 (handle_stuff_while_moving_or_resizing): New function, to
2598 dispatch the main loop (once).
2600 (resize_timer_proc): New function, set to be called by an inerval
2601 timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
2603 (gdk_event_translate): Drop unused return_exposes parameter.
2605 Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
2607 On WM_SYSKEYUP, generate a key release event also for just the Alt
2610 On WM_MOUSELEAVE, generate a leave event of type
2611 GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
2612 top-level window, and left the app completely.
2614 On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
2615 calls resize_timer_proc() at regular intervals. On
2616 WM_EXITSIZEMOVE, kill the timer.
2618 On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
2619 and dispatch the main loop (by calling
2620 handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
2623 * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
2624 also wintab messages.
2626 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
2627 Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
2628 the window's owner. Fixes #118093, reported by Maxime Romano.
2630 Tue Dec 8 09:41:00 2003 Tim Evans <t.evans@aranz.com>
2632 * gdk/win32/gdkwindow-win32.[ch]: Implement
2633 gdk_window_set_icon_list() for Win32, with support for big and
2634 small icons and support for alpha-channel icons under Windows
2635 XP. Replaces the previous implementation of gdk_window_set_icon().
2638 Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
2640 * gdk/x11/gdkprivate-x11.h:
2642 * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
2643 Rename from _gdk_x11_register_event_type(), added API docs.
2644 * gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
2645 * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
2646 all callers. (#121471, Bill Haneman)
2648 Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
2650 * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
2651 of gc is ignored. (#101983, Sebastian Rittau)
2653 Sat Dec 13 16:13:27 2003 Kristian Rietveld <kris@gtk.org>
2655 A trick for a faster treeview, step 1. Patch to short circuit
2656 _build_tree(), inspired by Jonathan (#80868).
2658 * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
2660 (gtk_tree_view_build_tree): don't even try to recurse when the
2661 model says that it is a list, remove flag unsetter,
2662 (gtk_tree_view_set_model): change flag setting logic.
2664 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
2665 propagate whether or not the child model has _IS_LIST set.
2667 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
2670 Sat Dec 13 02:33:17 2003 Matthias Clasen <maclas@gmx.de>
2672 * gtk/gtkrange.c (gtk_range_scroll): Undo the last change,
2673 since it broke logical keynav.
2674 * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
2675 direction in inverted scrollbars here instead.
2677 Sat Dec 13 00:39:24 2003 Matthias Clasen <maclas@gmx.de>
2679 * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
2680 "gravity" for RTL mode in a better way: Keep the distance from
2681 the upper end of the page to the upper bound constant. This also
2682 fixes problems with the initial position of the viewport in RTL
2685 Fri Dec 12 21:00:12 2003 Kristian Rietveld <kris@gtk.org>
2687 Combo box flipping support.
2689 * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
2690 (gtk_combo_box_size_allocate): support RTL flipping (#126518,
2691 patch from Matthias Clasen),
2692 (gtk_combo_box_popup): fix popup window alignment if there's a
2693 cell view frame visible (#126518, patch from Semion Chichelnitsky).
2695 * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
2696 (#128348, patch from Semion Chichelnitsky).
2698 Fri Dec 12 01:13:34 2003 Matthias Clasen <maclas@gmx.de>
2700 * examples/gtkdial/gtkdial.c:
2701 * examples/menu/menu.c:
2702 * examples/scribble-xinput/scribble-xinput.c:
2703 * examples/progressbar/progressbar.c:
2704 * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
2705 in examples. (#129074, Olexiy Avramchenko)
2706 * examples/calendar/Makefile:
2707 * examples/rangewidgets/Makefile:
2708 * examples/menu/Makefile: Allow deprecated functions in
2709 examples which use deprecated widgets.
2711 Fri Dec 12 00:43:16 2003 Matthias Clasen <maclas@gmx.de>
2713 * gdk/gdk.c (gdk_threads_set_lock_functions):
2714 * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
2716 Fri Dec 12 00:05:31 2003 Matthias Clasen <maclas@gmx.de>
2718 * gtk/gtkrange.c (gtk_range_scroll): Fix direction of
2719 steppers in inverted scrollbars. (#129084, Olexiy Avramchenko)
2721 Thu Dec 11 23:50:30 2003 Matthias Clasen <maclas@gmx.de>
2723 * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't
2724 unnecessarily reserve space for arrows in RTL mode. (#129075,
2725 Semion Chichelnitsky)
2727 Thu Dec 11 00:35:12 2003 Matthias Clasen <maclas@gmx.de>
2729 Changes to allow "no input" windows (#64613):
2731 * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
2734 * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
2737 * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
2738 and gtk_window_get_focus() and gtk_window_set_focus().
2740 * gdk/win32/gdkwindow-win32.c (gdk_window_new):
2741 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
2742 * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
2743 Initialize the accept_focus field to TRUE.
2745 * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus):
2746 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus):
2747 * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus):
2748 Implementations for the various backends. The Win32 and linux-fb
2749 implementations set the accept_focus field, but don't use it yet
2750 to actually implement noinput windows. The X implementation updates
2751 the WM_HINTS to select the globally active input model (see the
2752 ICCCM) if accept_focus is FALSE.
2754 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
2755 WM_TAKE_FOCUS message if accept_focus is FALSE.
2757 2003-12-10 Federico Mena Quintero <federico@ximian.com>
2759 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2760 Added toolbar items for the filter separator and the filter item.
2761 (toolbar_create): Add the filter widgets here.
2762 (filter_create): Renamed from create_filter(). Don't store the
2763 alignment in the impl structure, just return it.
2764 (toolbar_show_filters): New function.
2765 (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
2766 (gtk_file_chooser_default_remove_filter): Likewise.
2767 (gtk_file_chooser_default_constructor): Don't create the filter
2769 (struct _GtkFileChooserDefault): Added a field for a current
2771 (gtk_file_chooser_default_constructor): Create the folder label.
2772 (gtk_file_chooser_default_set_current_folder): Set the current
2775 * tests/testfilechooser.c (main): Dramatically improved the
2776 usability of the extra widget through careful word choice.
2778 2003-12-10 Mark McLoughlin <mark@skynet.ie>
2780 * gdk/gdk.h: include gdkspawn.h.
2782 2003-12-10 Mark McLoughlin <mark@skynet.ie>
2784 * gdk/linux-fb/gdkspawn-fb.c,
2785 gdk/win32/gdkspawn-win32.c,
2786 gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
2787 s/gdk_spawn/gdk_spawn_on_screen/.
2789 2003-12-10 Mark McLoughlin <mark@skynet.ie>
2791 Utility functions for multi-screen applications which need
2792 to ensure launched applications appear on a certain screen.
2795 * gdk/gdkspawn.h: header for multi-screen launching
2798 * gdk/Makefile.am: install gdkspawn.h.
2800 * gdk/x11/Makefile.am:
2801 * gdk/x11/gdkspawn-x11.c:
2802 (gdk_spawn_make_environment_for_screen): private function
2803 to create an environment vector with DISPLAY set appropriately
2805 (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
2806 (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
2807 (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
2809 * gdk/linux-fb/Makefile.am,
2810 gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
2812 * gdk/win32/Makefile.am,
2813 gdk/win32/gdkspawn-win32.c: win32 impl.
2815 2003-12-09 Federico Mena Quintero <federico@ximian.com>
2817 * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
2818 rather than "Username's Home" (#125964).
2819 (shortcuts_selection_changed_cb): New callback, check the
2820 sensitivity of the Remove Bookmark button at the right time.
2821 (shortcuts_row_activated_cb): It is not necessary to check the
2824 Wed Dec 10 00:06:24 2003 Matthias Clasen <maclas@gmx.de>
2826 Improve the GDK API for dealing with group leaders (#119375):
2829 * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to
2830 get the group leader of a toplevel window as a GdkWindow.
2833 * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New
2834 function to get the default group leader as a GdkWindow.
2836 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
2837 the GdkWindow of the default group leader.
2839 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
2840 for the default group leader.
2842 2003-12-09 Noah Levitt <nlevitt@columbia.edu>
2845 * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
2846 Ukrainian_GHE_WITH_UPTURN. (#128529)
2848 2003-12-08 Jan Arne Petersen <jpetersen@uni-bonn.de>
2850 * gtk/gtkfilechooserdefault.c:
2851 (gtk_file_chooser_default_get_paths), (entry_activate): Use the
2852 behavior of the GtkFileSelection to determine selected paths in
2853 single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
2855 2003-12-08 Federico Mena Quintero <federico@ximian.com>
2857 * gtk/gtkfilechooserdefault.c
2858 (gtk_file_chooser_default_get_paths): Don't declare the closure
2860 (get_paths_foreach): Likewise.
2862 Tue Dec 9 00:12:36 2003 Matthias Clasen <maclas@gmx.de>
2864 * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g.
2866 2003-12-08 Tor Lillqvist <tml@iki.fi>
2868 * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
2869 with MSVC and old headers. (#126933, John Ehresman)
2871 Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com>
2873 * === Released 2.3.1 ===
2875 * NEWS: Updates for 2.3.1
2877 * configure.in: Version 2.3.1, interface age 0, binary age 301.
2879 * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
2880 Rename from gtk_menu_item_real_can_activate_accel() to
2881 match GTK+ convention, improve comment.
2883 * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
2884 can ::can-activate-accel signal.
2886 * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
2889 * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean
2892 * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
2895 Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com>
2897 * gtk/gtkicontheme.c (find_builtin_icon): Fix a
2898 missing 'else'. (#128816, Jorn Baayen)
2900 2003-12-02 Michael Meeks <michael@ximian.com>
2902 Based on a patch by Martin Kretzschmar; #122448
2904 * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
2905 implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
2906 (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
2907 function pointers. Deprecate the global gdk_threads_mutex variable.
2909 * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
2910 extracted from GTK_THREADS_ENTER/LEAVE macros.
2911 (gdk_threads_init): init gtk_threads_[un]lock if not set.
2912 (gdk_threads_set_lock_functions): impl.
2914 * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
2916 Sun Dec 7 23:45:40 2003 Matthias Clasen <maclas@gmx.de>
2918 * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
2919 icon_theme_builtin_icons hasn't been initialized. (#128726, Diego
2922 2003-12-07 Tor Lillqvist <tml@iki.fi>
2924 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
2925 return value from SendMessage(WM_SETICON). That is the old
2926 icon. Fixes GDI resource leak. (#128559, Tim Evans)
2928 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
2929 have a pointer grab active with a grab cursor set, destroy that
2930 cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2932 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
2934 * configure.in: Added Thai (th) to ALL_LINGUAS.
2936 Sat Dec 6 01:42:04 2003 Matthias Clasen <maclas@gmx.de>
2938 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
2939 RTL flipping for GtkAlignment. (#127585)
2941 Sat Dec 6 01:13:09 2003 Matthias Clasen <maclas@gmx.de>
2943 * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the
2944 popup window when in RTL mode. (#127578)
2946 Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
2948 * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
2949 Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
2950 before doing anything to prevent garbage returns.
2952 Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
2954 * gtk/gtkviewport.c: Implement RTL flipping for
2955 GtkViewport: Adjust the "gravity" when resizing
2956 This is a bit flickery in RTL mode. (#107526)
2958 Sat Dec 6 00:22:14 2003 Matthias Clasen <maclas@gmx.de>
2960 * gtk/gtkscrolledwindow.c: Implement RTL flipping for
2961 GtkScrolledWindow: the vertical scrollbar shows up on the left
2962 side in RTL mode. (#107526)
2964 Fri Dec 5 01:58:33 2003 Matthias Clasen <maclas@gmx.de>
2966 * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
2967 tabs displayed at the top/bottom are rearranged, and tabs on
2968 the left/right are displayed at the opposite edge. (#96630)
2970 2003-12-04 Mark McLoughlin <mark@skynet.ie>
2972 * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
2973 gtk_label_set_attributes() take NULL. See bug #128517.
2975 2003-12-03 Federico Mena Quintero <federico@ximian.com>
2977 * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
2979 (completion_idle_callback): Use a temporary list store and re-set
2980 it on the completion rather than modifying the old one. We are
2981 re-reading the folder anyway, and this gets rid of non-atomicity
2984 2003-12-01 Federico Mena Quintero <federico@ximian.com>
2986 Decouple impl->current_folder from the selection in the folder
2987 tree. This is so that going to /home/federico/.foo (e.g. from a
2988 bookmark) will work even if show_hidden == FALSE. The folder tree
2989 needs to be fixed in this case to show such folders explicitly.
2991 * gtk/gtkfilechooserdefault.c
2992 (gtk_file_chooser_default_set_current_folder): When changing
2993 folders, do the entry and list model work here, instead of
2994 tree_selection_changed().
2995 (struct _GtkFileChooserDefault): Added a changing_folder flag
2997 (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
2999 Tue Dec 2 01:01:54 2003 Matthias Clasen <maclas@gmx.de>
3001 * gtk/gtkiconfactory.h: Remove duplicate declaration of
3002 gtk_icon_source_set_icon_name(). (#Jeff Franks, #128269)
3004 2003-12-01 Federico Mena Quintero <federico@ximian.com>
3006 Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
3007 bookmarks buttons with the location entry.
3009 * gtk/gtkfilechooserdefault.c
3010 (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
3011 bookmarks buttons and the location entry.
3013 2003-12-01 Federico Mena Quintero <federico@ximian.com>
3015 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
3016 shortcuts tree as a drag destination.
3017 (shortcuts_drag_data_received_cb): New callback.
3018 (get_file_info): Also fetch information on whether the file is a folder.
3019 (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
3020 (error_could_not_add_bookmark_dialog): New function.
3021 (shortcuts_add_bookmark_from_path): New helper function.
3022 (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
3023 (shortcuts_row_activated): We no longer need the changing_folder flag.
3024 (struct _GtkFileChooserDefault): Likewise.
3026 Sun Nov 30 17:31:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3028 * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
3029 disappearing placeholders that are still visible.
3031 * gtk/gtktoolbar.c: formatting fixes
3033 * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
3034 disappearing, for placeholders that are going to disappear.
3036 * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
3038 Sat Nov 29 00:55:28 2003 Jonathan Blandford <jrb@gnome.org>
3040 * gtk/gtktreeview.c (gtk_tree_view_new_column_width):
3041 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3042 Patch from <chinen@jp.ibm.com> to handle RTL support for column
3045 Fri Nov 28 00:26:24 2003 Matthias Clasen <maclas@gmx.de>
3047 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize):
3048 Don't use freed memory. (#127698, Taavi Talvik)
3050 Fri Nov 28 00:09:10 2003 Matthias Clasen <maclas@gmx.de>
3052 * gtk/gtkfilechooserentry.c: Remove debug g_print()s.
3054 Thu Nov 27 22:17:50 2003 Matthias Clasen <maclas@gmx.de>
3056 * gtk/gtkuimanager.c: Remove debug define.
3058 Thu Nov 27 16:19:03 2003 Tim Janik <timj@gtk.org>
3060 * gtk/gtkmenu.c: allow accel activation depending on sensitivity
3061 and the attach widget.
3063 * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
3064 sensitivity and the parent menu.
3066 * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
3067 checks whether accelerators may activate a widget. the default handler
3068 demands the widget be sensitive and visible+viewable.
3070 * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
3072 Tue Nov 25 00:10:05 2003 Matthias Clasen <maclas@gmx.de>
3074 * gtk/gtkuimanager.c (update_node): Don't show accelerators in
3075 popup menus. (#127227)
3077 Mon Nov 24 13:47:39 GMT 2003 Tony Gale <gale@gtk.org>
3079 * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
3081 Mon Nov 24 04:05:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3083 * gtk/gtkradiotoolbutton.[ch]
3084 (gtk_radio_tool_button_new_from_widget): Make this function take a
3085 GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
3088 Mon Nov 24 02:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3090 * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
3092 Mon Nov 24 02:19:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3094 * gtk/gtktoolbar.c: remove variable
3095 n_overflowed_menu_items_when_dnd_started
3097 Mon Nov 24 01:47:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3099 Rework sliding algorithm.
3100 - No more weird jumping when items are dragged off and added to
3102 - More natural item movement
3104 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
3105 function is now responsible for calculating intermediate positions
3106 during item sliding. It is also responsible for starting sliding
3107 if items disappear. Also turn off expanding when there is an
3109 (gtk_toolbar_begin_sliding, stop_sliding): New functions.
3110 (slide_idle_handler): New function. All the sliding is now done by
3111 gtk_toolbar_size_allocate(), so the idle handler now just checks
3112 if there is more sliding to be done.
3113 (compute_intermediate_allocation, position): new functions
3114 calculating intermediate steps in the slide animations. The new
3115 animation algorithm uses a constant speed instead of a constant
3116 must-be-finished-within time.
3117 (struct _ToolbarContent): use
3118 GtkAllocation goal_allocation; and
3119 GtkAllocation start_allocation; instead of
3120 gint start/goal_width;
3122 * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
3125 Sun Nov 23 22:26:25 2003 Matthias Clasen <maclas@gmx.de>
3127 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip
3128 positioning Xinerama-aware. (#127332)
3130 Fri Nov 21 01:57:21 2003 Matthias Clasen <maclas@gmx.de>
3132 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
3133 boundaries visible in fake Xinerama mode.
3135 Thu Nov 20 15:41:56 2003 Manish Singh <yosh@gimp.org>
3137 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
3138 for the gtk_widget_hide() call.
3140 Thu Nov 20 14:51:41 2003 Jonathan Blandford <jrb@redhat.com>
3142 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
3143 from David Hampton to fix sorting on booleans.
3145 Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3147 * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
3148 instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
3149 by Frederic Crozat).
3151 Thu Nov 20 13:10:29 GMT 2003 Tony Gale <gale@gtk.org>
3153 * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
3155 2003-11-19 Federico Mena Quintero <federico@ximian.com>
3157 Fixes to problems reported by Iain Holmes:
3159 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
3160 throw up an error dialog if the desktop doesn't exist.
3161 (error_message): Handle the case where there is no real toplevel
3164 (list_model_filter_func): Always let folders pass through (patch
3167 Wed Nov 19 23:19:23 2003 Kristian Rietveld <kris@gtk.org>
3169 * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
3170 to a somewhat more logical place,
3171 (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
3173 Wed Nov 19 22:15:01 2003 Kristian Rietveld <kris@gtk.org>
3175 * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
3176 the popup when it is visible, popdown when there are less chars
3177 than the minimum key length in the entry,
3178 (gtk_entry_completion_changed): popdown when the entry is empty.
3180 * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
3181 size request of the vscrollbar to (-1, 0), to get a nicely sized
3182 completion treeview (Fixes #126573, reported by Piers Cornwell),
3183 (_gtk_entry_completion_resize_popup): show/hide the action_view
3186 2003-11-19 Federico Mena Quintero <federico@ximian.com>
3188 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
3189 off the dialog's separator (thanks to Iain Holmes).
3191 Wed Nov 19 18:15:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3193 * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
3194 * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
3195 on items that have a submenu. (#120104).
3197 Wed Nov 19 18:11:08 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3199 * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
3200 "ItemState" field indicating the overflowed-ness etc. of the item.
3201 (gtk_toolbar_size_allocate): update the field here.
3203 2003-11-19 Federico Mena Quintero <federico@ximian.com>
3205 * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
3206 to the alignment. Use the HIG-specified spacing between the
3207 filter label and the combo.
3208 (create_filename_entry): Use HIG-specified spacing between the
3209 location label and the entry.
3210 (gtk_file_chooser_default_constructor): Don't use vertical padding
3211 around the filename entry.
3213 2003-11-19 Federico Mena Quintero <federico@ximian.com>
3215 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
3216 render_icon virtual method.
3218 * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
3220 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
3221 Implement as a stub for now.
3223 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
3224 gtk_file_system_render_icon().
3225 (list_icon_data_func): Likewise.
3226 (toolbar_create): Set the toolbar style to icons only.
3228 * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
3231 Wed Nov 19 02:18:37 2003 Matthias Clasen <maclas@gmx.de>
3233 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call
3234 gtk_widget_hide(menu) when reattaching the menu. (#126057)
3236 Wed Nov 19 00:06:04 2003 Kristian Rietveld <kris@gtk.org>
3238 * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
3239 only unselect all items if the treeview has focus. (Fixes bug
3240 reported by Marco Pesenti Gritti).
3242 Tue Nov 18 22:26:30 2003 Kristian Rietveld <kris@gtk.org>
3244 * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
3245 number of actions is "matches + actions - 1". (Fixes #126572).
3247 Tue Nov 18 21:05:05 2003 Christian Persch <chp@cvs.gnome.org>
3249 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
3250 mem leaks (#119435).
3252 Tue Nov 18 20:51:38 2003 Kristian Rietveld <kris@gtk.org>
3254 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
3255 try to fetch the child back, since we do know that it is already
3256 gone by now (#126493, Marco Pesenti Gritti).
3258 Tue Nov 18 19:47:59 2003 Kristian Rietveld <kris@gtk.org>
3260 Fixes based on comments from Owen Taylor, #125264.
3262 * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
3264 (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
3266 (gtk_cell_view_get_size_of_row): new function,
3267 (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
3268 (gtk_cell_view_set_values), (gtk_cell_view_set_model),
3269 (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
3270 s/cellview/cell_view/ in the function definitions, so they match
3271 with the header file.
3273 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
3274 flag again (:, and use gtk_cell_view_get_size_of_row instead of
3275 the measurer, remove _set_size_request call,
3276 (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
3277 instead of the measurer,
3278 (gtk_combo_box_style_set): queue a resize,
3279 (gtk_combo_box_size_request): update of _remeasure call,
3280 (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
3281 (gtk_combo_box_cell_layout_pack_end),
3282 (gtk_combo_box_cell_layout_clear),
3283 (gtk_combo_box_set_model): get rid of the measurer,
3284 (gtk_combo_box_cell_layout_add_attribute),
3285 (gtk_combo_box_cell_layout_set_cell_data_func),
3286 (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
3287 resize instead of calling _remeasure.
3289 Mon Nov 17 16:25:04 2003 Manish Singh <yosh@gimp.org>
3291 * gdk-pixbuf/Makefile.am
3292 * modules/input/Makefile.am: Use install-data-hook for
3293 gdk-pixbuf.loaders and gtk.immodules install generation targets.
3296 * gtk/gtkexpander.h: Apply missing declarations from #124449.
3298 Tue Nov 18 00:12:55 2003 Matthias Clasen <maclas@gmx.de>
3300 Fix for #119555, Peter Zelezny:
3302 * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
3303 * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
3304 by removing the _ prefix.
3305 * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
3306 gdk/gdkwindow.c: Adjust all callers.
3308 Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
3310 * gtk/gtkaction.c (gtk_action_activate): Only activate if
3311 the action is sensitive. (#127187, Christian Persch)
3313 Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
3315 * gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
3317 Mon Nov 17 22:56:09 2003 Kristian Rietveld <kris@gtk.org>
3319 * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
3321 * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
3322 mapped, else resize_popup.
3324 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
3325 (_gtk_entry_completion_popup): moved all popup resizing code to
3326 _gtk_entry_completion_resize_popup, and show the window when there
3327 are more than zero items in the completion list again (sigh).
3329 2003-11-17 Mark McLoughlin <mark@skynet.ie>
3331 Patch from Jaiserca <jaiserca@inf.upv.es> to add a
3332 "use_markup" property. See bug #124449.
3334 * gtk/gtkexpander.c:
3335 (gtk_expander_class_init),
3336 (gtk_expander_init), (gtk_expander_set_property),
3337 (gtk_expander_get_property), (gtk_expander_set_label),
3338 (gtk_expander_set_use_markup), (gtk_expander_get_use_markup):
3339 Add a "use_markup" property and use it when creating the
3342 Mon Nov 17 12:58:32 2003 Kristian Rietveld <kris@gtk.org>
3344 Temporary size requisition fix. Will fix it for real tonight.
3346 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
3347 (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
3348 a good width for the child,
3349 (gtk_combo_box_cell_layout_add_attribute),
3350 (gtk_combo_box_set_cell_data_func),
3351 (gtk_combo_box_cell_layout_clear_attributes): update.
3353 Mon Nov 17 00:11:21 2003 Kristian Rietveld <kris@gtk.org>
3355 Fixes #124373, Murray Cumming.
3357 * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
3358 is no longer construct only,
3359 (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
3360 (gtk_combo_box_menu_fill): new functions,
3361 (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
3362 (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
3363 (gtk_combo_box_list_destroy): updated,
3364 (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
3366 (gtk_combo_box_set_model): is now public, updated,
3367 (gtk_combo_box_get_model): small update.
3369 * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
3370 text_column property is no longer construct only,
3371 (gtk_combo_box_entry_set_text_column): now public,
3372 (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
3373 new/changed functions.
3375 * tests/testcombo.c: updated.
3377 Sun Nov 16 22:50:58 2003 Matthias Clasen <maclas@gmx.de>
3379 Reinstate fixes for (#124212, Marco Pesenti Gritti):
3381 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
3382 warnings for popups.
3383 (_gtk_menu_is_empty): Return FALSE for non-menus.
3385 Sun Nov 16 21:48:40 2003 Kristian Rietveld <kris@gtk.org>
3387 * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
3388 gtk_cell_view_cell_layout_clear instead of trying to free the
3389 structure ourselves here. (#125726, Morten Welinder).
3391 Sun Nov 16 00:35:29 2003 Matthias Clasen <maclas@gmx.de>
3393 * gtk/gtkfilechooser.[hc]:
3394 * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
3397 2003-11-15 Hans Breuer <hans@breuer.org>
3399 * gdk/makefile.msc gdk/gdk.def
3400 gtk/gtk.def gtk/makefile.msc.in : updated
3401 * tests/makefile.msc : added all the new tests
3403 * gtk/gtkfilefilter.c(finalize) : initialize filter
3404 from object not from itself
3406 * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
3407 modified as less as posible to have aworking implementation
3408 on win32. There maybe the desire to merge the unchanged pats into
3409 a common base class.
3410 Also implemented a simple glib based bookmark handling, which
3411 is currently missing in gtkfilesystemunix.[hc] but can be copied
3413 * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
3415 * gdk/win32/gdkwindow-win32.c : implement
3416 gdk_window_set_keep_above() and gdk_window_set_keep_below()
3418 * tests/testmerge.c : don't include unistd.h unconditionally,
3419 #define STDOUT_FILENO if it isn't defined
3421 * tests/testfilechooser.c : make it compile on win32
3423 2003-11-15 Tor Lillqvist <tml@iki.fi>
3425 * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
3426 maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
3428 Thu Nov 13 12:55:29 GMT 2003 Tony Gale <gale@gtk.org>
3430 * docs/faq/gtk-faq.sgml: Update the rest of Section 2
3432 Thu Nov 13 01:46:32 2003 Matthias Clasen <maclas@gmx.de>
3434 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use
3435 GTK_DATADIR/{icons,pixmaps} instead of
3436 GTK_DATA_PREFIX/{icons,pixmaps}. (#123365, Marco Pesenti Gritti)
3438 Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
3440 Changes to improve menu positioning on Xinerama (#108328, #126150):
3442 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
3443 window of the menuitem to determine the monitor. This fixes some
3445 * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
3446 to store the monitor on which the menu is to be positioned.
3448 * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
3449 in the GtkMenuPrivate struct and fetch the monitor geometry after
3450 calling the position_func, in case it has been changed.
3452 * gtk/gtkmenu.c (gtk_menu_set_monitor): New function
3453 to be used in GtkMenuPositionFunc implementations for setting
3454 the monitor_num field in GtkMenuPrivate.
3456 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call
3457 gtk_menu_set_monitor.
3459 Wed Nov 12 21:00:10 2003 Matthias Clasen <maclas@gmx.de>
3461 * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
3462 label for the empty list. String change. (#95446, Tomas Ögren)
3464 Wed Nov 12 20:57:50 2003 Matthias Clasen <maclas@gmx.de>
3466 * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
3467 the definition of the values. (#123361, Marco Pesenti Gritti)
3469 Wed Nov 12 20:54:02 2003 Matthias Clasen <maclas@gmx.de>
3471 * gdk/gdkkeyuni.c: Map KP_Separator to ','.
3472 (#122941, Egmont Koblinger)
3474 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
3476 *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
3477 opacity entry widget. Change tooltip for opacity widgets. (#126426)
3479 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
3481 * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
3482 affect window menu position when popped from keyboard. (#102660)
3484 Wed Nov 12 01:29:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3486 * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
3487 are using the old API, make all items "is_important". That way
3488 BOTH_HORIZ will continue to show both icon and label in old API
3491 Mon Nov 10 00:40:41 2003 Matthias Clasen <maclas@gmx.de>
3493 * gtk/gtkeventbox.c (gtk_event_box_set_above_child):
3494 Remember the new value in all cases. (#126276, Damon Chaplin)
3496 Sat Nov 8 23:06:02 2003 Matthias Clasen <maclas@gmx.de>
3498 * demos/gtk-demo/main.c (row_activated_cb): Call the do_
3499 functions with the toplevel as argument.
3501 * demos/gtk-demo/geninclude.pl.in: Change the signature
3502 of GDoDemoFunc to take a widget argument
3504 * demos/gtk-demo/ui_manager.c (do_ui_manager):
3505 * demos/gtk-demo/tree_store.c (do_tree_store):
3506 * demos/gtk-demo/textview.c (do_textview):
3507 * demos/gtk-demo/stock_browser.c (do_stock_browser):
3508 * demos/gtk-demo/sizegroup.c (do_sizegroup):
3509 * demos/gtk-demo/pixbufs.c (do_pixbufs):
3510 * demos/gtk-demo/panes.c (do_panes):
3511 * demos/gtk-demo/menus.c (do_menus):
3512 * demos/gtk-demo/list_store.c (do_list_store):
3513 * demos/gtk-demo/images.c (do_images):
3514 * demos/gtk-demo/hypertext.c (do_hypertext):
3515 * demos/gtk-demo/editable_cells.c (do_editable_cells):
3516 * demos/gtk-demo/drawingarea.c (do_drawingarea):
3517 * demos/gtk-demo/dialog.c (do_dialog):
3518 * demos/gtk-demo/colorsel.c (do_colorsel):
3519 * demos/gtk-demo/changedisplay.c (do_changedisplay):
3520 * demos/gtk-demo/button_box.c (do_button_box):
3521 * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
3522 as argument, and make new windows or dialogs appear on the
3523 same screen. (#80388)
3525 Sat Nov 8 21:59:30 2003 Matthias Clasen <maclas@gmx.de>
3527 * gtk/gtkeventbox.c (gtk_event_box_class_init): Let
3528 visible-window default to TRUE, as documented and
3529 implemented. (#126270 Damon Chaplin)
3531 Sat Nov 8 01:50:17 2003 Matthias Clasen <maclas@gmx.de>
3533 * gtk/gtkicontheme.c:
3534 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new):
3535 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new):
3536 * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
3539 2003-11-07 Federico Mena Quintero <federico@ximian.com>
3541 Changing GtkFileChooserEntry to use GtkEntryCompletion.
3543 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
3544 a GtkListStore for the completion list. Create a
3545 GtkEntryCompletion and attach it to the chooser entry.
3546 (gtk_file_chooser_entry_finalize): Unref the completion store.
3547 (completion_match_func): New callback for the GtkEntryCompletion.
3548 (completion_idle_callback): Fill the completion store with filenames.
3550 Fri Nov 7 22:55:49 2003 Matthias Clasen <maclas@gmx.de>
3552 * gtk/gtkwindow.c (gtk_window_set_role):
3553 * gtk/gtkwindow.c (gtk_window_set_title):
3554 * gtk/gtkwidget.c (gtk_widget_set_name):
3555 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title):
3556 * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
3557 safe for self-assignment. (#122745, Soeren Sandmann)
3559 Thu Nov 6 20:41:40 2003 Matthias Clasen <maclas@gmx.de>
3561 * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
3562 (#126369, Olexiy Avramchenko)
3564 Thu Nov 6 00:21:41 2003 Matthias Clasen <maclas@gmx.de>
3566 * gtk/gtkcolorbutton.c (gtk_color_button_init):
3567 * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the
3568 consistency of titles. (#126193, Damon Chaplin)
3570 Wed Nov 5 22:49:36 2003 Matthias Clasen <maclas@gmx.de>
3572 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off
3573 menus to be transient for the toplevel they were torn off from.
3574 (gtk_menu_get_toplevel): Auxiliary function to find the
3575 toplevel of a menu. (#54775, Jon-Kare Hellan)
3577 Wed Nov 5 21:07:58 2003 Matthias Clasen <maclas@gmx.de>
3579 * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
3580 min-position and max-position. (#58431, Padraig O'Briain)
3582 Wed Nov 5 21:02:26 2003 Matthias Clasen <maclas@gmx.de>
3584 * gtk/gtkcolorsel.c (update_color):
3585 (make_label_spinbutton):
3586 (adjustment_changed): Change the ranges for Saturation and
3587 Value to be 0-100 instead of 0-255, since these axes of HSV
3588 are usually expressed in percent. (#121519, Gregory Merchan)
3590 Wed Nov 5 08:51:48 GMT 2003 Tony Gale <gale@gtk.org>
3592 * docs/faq/gtk-faq.sgml: More 2.x updates
3594 Tue Nov 4 15:00:33 GMT 2003 Tony Gale <gale@gtk.org>
3596 * docs/faq/gtk-faq.sgml: More 2.x updates, fix
3597 pkg-config command error, update copyright.
3599 2003-11-03 Federico Mena Quintero <federico@ximian.com>
3601 * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
3602 well. Use a helper function.
3603 (shortcuts_append_home): Display an error box if necessary.
3604 (shortcuts_append_desktop): Likewise.
3605 (add_bookmark_button_clicked_cb): Likewise.
3606 (gtk_file_chooser_default_select_path): Likewise.
3607 (entry_activate): Likewise.
3608 (shortcuts_append_paths): New helper function.
3609 (shortcuts_append_file_system_roots): Use
3610 shortcuts_append_paths().
3611 (shortcuts_append_bookmarks): Likewise.
3613 Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
3615 * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
3617 (update_smart_separators): Remove some unneeded ifs.
3619 Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
3621 * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
3622 these usable in C++. Forgot this file in my Oct 11 commit.
3624 2003-11-03 Federico Mena Quintero <federico@ximian.com>
3626 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
3627 icon to the "Add bookmark" button.
3629 * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
3630 * gtk/gtkfilesystemmodel.c: Likewise.
3631 * gtk/gtkfilechooser.c: Likewise.
3632 * gtk/gtkfilechooserdefault.c: Likewise.
3634 Mon Nov 3 20:56:28 2003 Matthias Clasen <maclas@gmx.de>
3637 * gdk/gdkinternals.h:
3638 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
3639 GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
3640 Xinerama mode when no actual Xinerama setup is found.
3642 2003-11-03 Federico Mena Quintero <federico@ximian.com>
3644 * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
3645 (create_shortcuts_tree): Don't call the above.
3646 (bookmarks_changed_cb): Likewise.
3647 (tree_selection_changed): Unselect everything from the shortcuts
3648 list. This is the behavior that Mac OS has.
3649 (toolbar_add_item): Return the item.
3650 (toolbar_create): Store the up_button in the impl structure.
3651 (toolbar_check_sensitivity): New function to set the sensitivity
3652 of the "Up" button in the toolbar.
3653 (tree_selection_changed): Call toolbar_check_sensitivity().
3655 2003-11-02 Federico Mena Quintero <federico@ximian.com>
3657 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
3658 not set a border width for the toplevel container.
3659 (toolbar_create): New function; create a simple toolbar for the
3661 (gtk_file_chooser_default_constructor): Use a spacing of 12 for
3662 the table, as per the HIG.
3663 (gtk_file_chooser_default_init): Likewise, for the default
3664 implementation's vbox.
3666 * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
3667 note that NULL is a valid return value for the parent path.
3669 Sat Nov 1 14:59:27 2003 Owen Taylor <otaylor@redhat.com>
3671 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated):
3672 Change on activation, not selection change (temporary
3673 workaround for #125955, needed for keynav, likely
3674 the right UI anyways.)
3676 * gtk/gtkfilechooserdefault.c (shortcuts_select_func):
3677 Don't allow the separator node to be selected.
3679 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
3680 Set the focus chain so that the entry gets focused first.
3681 (Not really right after initial focusing, maybe we
3682 should just have a gtk_file_chooser_focus_entry() that
3683 we call from gtk_file_chooser_dialog on creation.)
3685 Sat Nov 1 12:41:04 2003 Owen Taylor <otaylor@redhat.com>
3687 * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
3688 residual call to gtk_window_get_private().
3690 Sat Nov 1 09:10:13 2003 Owen Taylor <otaylor@redhat.com>
3692 * gtk/gtkwindow.[ch]: Move above_initially, below_initially
3693 into GtkWindowPrivate structure, fixing ABI breakage
3694 on Win32. (Hans Breuer). Switch GtkWindowPrivate over
3695 to instance-private-data.
3697 Fri Oct 31 02:43:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3699 * gtk/gtktoolbar.c (get_item_requisition): delete this function
3700 (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
3701 instead of re-calculating for each item.
3702 (gtk_toolbar_size_allocate): Update comments
3704 Thu Oct 30 22:04:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3706 * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
3707 placeholders when include_internals is TRUE.
3709 Thu Oct 30 17:57:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3711 * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
3712 item 0 is a placeholder. (#125826)
3713 * tests/testtoolbar.c: add an assertion that
3714 gtk_toolbar_get_nth_item (0) != NULL
3716 Thu Oct 30 17:40:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3718 * gtk/gtktoolbar.c (logical_to_physical): Make it work for
3719 logical == 0.(#125826)
3721 Thu Oct 30 16:20:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3723 * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
3724 return the index of a real item.
3725 (get_nth_item) assert that the returned items is not a
3726 placeholder. (#125826, Marco Pesenti Gritti).
3728 2003-10-29 Federico Mena Quintero <federico@ximian.com>
3730 * gtk/gtkcellrendererseptext.c
3731 (gtk_cell_renderer_sep_text_render): Only paint a separator if the
3732 text is NULL, rather than also doing it if it is an empty string.
3734 Wed Oct 29 15:40:26 2003 Owen Taylor <otaylor@redhat.com>
3736 * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
3737 gtk_message_dialog_new_with_format): Allow NULL
3738 for message_format, as described in the docs and
3739 as worked previously. (#125759, Richard Hult)
3741 * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
3742 Use g_markup_vprintf_escaped() to escape arguments.
3744 * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
3745 so there is some way to set literal markup.
3747 Wed Oct 29 15:01:32 2003 Owen Taylor <otaylor@redhat.com>
3749 * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
3750 the call to gdk_error_trap_pop() to the right place,
3751 fixing a problem where we'd pop() too many times
3752 when bailing out. (#123302, Thomas Leonard)
3754 Wed Oct 29 12:50:02 2003 Owen Taylor <otaylor@redhat.com>
3756 * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
3757 Fix infinite recursion. (#125679, Christian Persch)
3759 Wed Oct 29 13:29:15 GMT 2003 Tony Gale <gale@gtk.org>
3761 * docs/faq/gtk-faq.sgml: further 2.x updates:
3762 mirrors,compiling,g_main_context_iteration
3764 Wed Oct 29 02:54:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3766 * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
3767 function; remove gtk_toolbar_highlight_drop_location() and
3768 gtk_toolbar_unhighlight_drop_location().
3770 Also fix bug where the number of overflowed items were miscounted.
3772 Tue Oct 28 12:20:16 2003 Owen Taylor <otaylor@redhat.com>
3774 * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
3775 some accidentally committed duplicate code.
3777 Tue Oct 28 17:06:17 GMT 2003 Tony Gale <gale@gtk.org>
3779 * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
3781 Tue Oct 28 10:34:24 2003 Owen Taylor <otaylor@redhat.com>
3783 * gtk/gtkwindow.[ch] (gtk_window_is_active,
3784 gtk_has_toplevel_focus): Add getters corresponding to
3785 the is_active and has_toplevel_focus properties.
3788 2003-10-28 Mark McLoughlin <mark@skynet.ie>
3790 * gtk/gtkexpander.c:
3791 (gtk_expander_class_init): hook up the destroy handler.
3792 (gtk_expander_destroy), (gtk_expander_unrealize):
3793 remove the expand/collapse timeout on destroy instead
3794 of unrealize to avoid leaving the expander in a inconsistent
3795 state when unrealizing during animation.
3796 (gtk_expander_start_animation): remove realized check.
3797 (gtk_expander_set_expanded): if the widget isn't realized,
3800 Tue Oct 28 09:44:16 2003 Owen Taylor <otaylor@redhat.com>
3802 * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
3803 do nothing when recipient is NULL, as described in the
3804 doc comment. (#123107, Thomas Leonard)
3806 Tue Oct 28 09:21:29 2003 Owen Taylor <otaylor@redhat.com>
3808 * gtk/gtkmain.c (gtk_check_version): Move docs inline,
3809 rewrite docs, mention memory management for the return
3810 value. (Partly addresses #125549, Michael Natterer)
3812 2003-10-28 Padraig O'Briain <padraig.obriain@sun.com>
3814 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
3815 Change index to filter_index to fix compilation error.
3817 * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
3819 Mon Oct 27 15:47:58 2003 Manish Singh <yosh@gimp.org>
3821 * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
3822 we have RandR support, for XRRUpdateConfiguration declaration.
3824 * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
3827 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
3828 length a gsize variable, since that's what g_file_get_contents()
3831 Mon Oct 27 12:18:49 2003 Owen Taylor <otaylor@redhat.com>
3833 * NEWS: Fix attribution for above/below EWMH work.
3835 Sat Oct 25 23:30:13 2003 Matthias Clasen <maclas@gmx.de>
3837 * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name"
3838 as a construct-only property. (#125475, Murray Cumming)
3840 Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3842 Fix bug 116297 and 125472
3844 * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
3845 this function take an index and a GtkToolItem.
3847 * tests/testtoolbar.c (main): Make "Show Arrow" default to
3848 true. Make one of the separators !draw and expand.
3849 Update for new highlight_drop_location() API.
3851 * gtk/gtktoolitem.[ch]: Remove "pack_end" property
3853 * gtk/gtktoolbar.h: Formatting fixes.
3855 * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
3856 separator tool items to expand.
3857 (logical_to_physical, physical_to_logical): Fix off-by-one errors
3858 (Fix #125472, Marco Pesenti Gritti)
3860 * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
3861 (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
3862 return FALSE, not TRUE.
3863 (gtk_separator_too_item_{set|get}_property,
3864 (gtk_separator_tool_item_{set|get}_draw): new functions
3866 Fri Oct 24 16:54:04 2003 Owen Taylor <otaylor@redhat.com>
3868 * === Released 2.3.0 ===
3870 * configure.in: Remove a stray comma.
3872 * README.in: Fix a few notes about Xft 1 and pango-1.0.
3874 * NEWS: Finish updates for 2.3.0.
3876 * po/Makefile.in.in: Update to latest GLib version.
3878 Fri Oct 24 20:31:35 2003 Kristian Rietveld <kris@gtk.org>
3880 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
3881 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
3882 gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
3883 under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
3886 Fri Oct 24 20:22:40 2003 Kristian Rietveld <kris@gtk.org>
3888 * gtk/gtktreemodelfilter.h: add padding to the class structure.
3890 2003-10-23 Federico Mena Quintero <federico@ximian.com>
3892 * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
3893 (gtk_file_chooser_remove_filter): Likewise.
3894 (gtk_file_chooser_select_all): Added docs.
3895 (gtk_file_chooser_unselect_all): Likewise.
3897 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
3899 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
3901 Thu Oct 23 23:22:15 2003 Matthias Clasen <maclas@gmx.de>
3903 * gtk/gtkfilefilter.c:
3904 * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
3906 Thu Oct 23 22:33:47 2003 Matthias Clasen <maclas@gmx.de>
3908 * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
3910 Thu Oct 23 21:49:05 2003 Matthias Clasen <maclas@gmx.de>
3912 * NEWS: Remove a few duplicates, group the menu changes.
3914 Thu Oct 23 21:12:50 2003 Kristian Rietveld <kris@gtk.org>
3916 * NEWS: Updates for 2.3.0; changed header to match the style we used
3919 Thu Oct 23 20:47:44 2003 Matthias Clasen <maclas@gmx.de>
3921 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
3922 assign the new leader. (#125168, Mariano Suarez-Alvarez)
3924 Thu Oct 23 20:21:16 2003 Kristian Rietveld <kris@gtk.org>
3926 * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
3927 gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
3928 gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
3930 Thu Oct 23 15:13:56 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3932 * NEWS: Partial update for 2.3.0.
3934 Thu Oct 23 01:09:04 2003 Owen Taylor <otaylor@redhat.com>
3936 * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
3939 Wed Oct 22 23:20:04 2003 Owen Taylor <otaylor@redhat.com>
3941 * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
3942 gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
3943 gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
3944 Basic framework for the new file selector widget.
3946 * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
3947 gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
3948 Initial implementation of the GtkFileChooser user interface.
3950 * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
3953 * configure.in gtk/Makefile.am gtk/xdgmime: Build code
3954 for freedesktop.org MIME system on Unix.
3956 * tests/testfilechooser.c: Test program for GtkFileChooser
3958 * tests/prop-editor.c: Add support for properties on interfaces.
3960 Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
3962 * demos/gtk-demo/menus.c (do_menus): Fix some unused
3965 * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
3968 Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
3970 * NEWS: Partial update for 2.3.0.
3972 Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
3974 * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
3975 ctrl_pressed and shift_pressed according to the current event
3976 state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
3978 Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
3980 * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
3981 timeout when the user pressed on Enter/ESC. Fixes the bug where the
3982 completion popup popped up after the user pressed on Enter (which is
3983 just weird). Reported by the Epiphany people (all of them).
3985 Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
3987 Add support for OS X like sliding of toolbar items during drag and
3988 drop, (#110919, Dave Bordoley)
3990 Make dnd highlighting the responsibility of the
3991 application. (Fixes #116298, Owen Taylor)
3993 * gtk/gtktoolbar.h: Add prototypes for new API.
3996 (physical_to_logical, logical_to_physical): new functions
3997 converting between "position including placeholders" and "position
3998 excluding placeholders".
3999 (gtk_toolbar_class_init): remove drag_leave and drag_motion
4001 (struct _ToolbarContent): new struct containing information
4002 related to toolbar items.
4003 (gtk_toolbar_highlight_drop_location): new public function
4004 (gtk_toolbar_unhighlight_drop_location): new public function
4006 * tests/testtoolbar.c
4007 (toolbar_drag_motion, toolbar_drag_leave): new functions
4008 (main): connect to dnd signals. Make the "New" item expand to
4009 make drag and drop more exciting.
4011 Wed Oct 15 22:39:23 2003 Kristian Rietveld <kris@gtk.org>
4013 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
4014 _set_active, not _set_active_item.
4016 Wed Oct 15 22:31:09 2003 Kristian Rietveld <kris@gtk.org>
4018 * gtk/gtkcombobox.h: add padding to the class structure.
4019 * gtk/gtkcomboboxentry.h: ditto.
4020 * gtk/gtkentrycompletion.h: ditto.
4022 Wed Oct 15 22:04:59 2003 Kristian Rietveld <kris@gtk.org>
4024 * gtk/gtkcombobox.c (gtk_combo_box_get_active),
4025 (gtk_combo_box_set_active): mention in the docs that -1 is a valid
4026 value and what it means.
4028 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
4029 item to -1 (default),
4030 (gtk_combo_box_entry_active_changed): do nothing when the index is
4033 Tue Oct 14 16:10:21 2003 Jonathan Blandford <jrb@redhat.com>
4035 * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
4036 to set the active row by iter.
4038 * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
4039 to get the active row by iter.
4041 2003-10-13 Federico Mena Quintero <federico@ximian.com>
4043 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
4044 operations on windows if the tree view is not mapped.
4045 (gtk_tree_view_button_press): Compare equal types of pointers, not
4046 GtkWidget* vs. GtkTreeView*.
4048 Mon Oct 13 21:01:43 2003 Kristian Rietveld <kris@gtk.org>
4050 * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
4051 the reset of first_sel_changed, as after the first popup the treeview
4052 will always have a row selected and will thus not focus_to_cursor.
4054 * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
4055 whether the keyval should move the completion selection cursor (used
4056 to avoid ending up with extreme cluttered code), also added
4057 all KP_ equivalents of the keys here,
4058 (gtk_entry_completion_key_press): Keynav tweaks based on comments
4059 from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
4060 as possible current selection, implement Home/End keys, modified
4061 the down key to stop cycling. Maybe page up/down should be implemented
4064 Mon Oct 13 20:58:07 2003 Matthias Clasen <maclas@gmx.de>
4066 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work
4067 as documented when pixmap or mask is NULL. (#124081)
4069 Mon Oct 13 20:21:38 2003 Kristian Rietveld <kris@gtk.org>
4071 * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
4072 I was adding the signal block/unblock code. Oops. (Noticed by
4073 Marco Pesenti Gritti).
4075 Mon Oct 13 20:21:55 2003 Kristian Rietveld <kris@gtk.org>
4077 * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
4078 (set_interp_type), (main): port over from option menu to GtkComboBox.
4080 Mon Oct 13 19:41:55 2003 Kristian Rietveld <kris@gtk.org>
4082 * tests/testmenus.c: Still uses option menus, so turn off
4083 GTK_DISABLE_DEPRECATED.
4085 Sun Oct 12 01:10:29 2003 Matthias Clasen <maclas@gmx.de>
4087 * gtk/gtkalignment.[hc]:
4088 * gtk/gtkcombobox.[hc]:
4089 * gtk/gtkcomboboxentry.[hc]:
4090 * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
4091 from header to implementation.
4093 Sun Oct 12 00:18:02 2003 Matthias Clasen <maclas@gmx.de>
4095 * tests/testtreeview.c:
4096 * demos/testpixbuf-scale.c:
4097 * tests/prop-editor.c: These files still use option menus,
4098 so turn off GTK_DISABLE_DEPRECATED to fix the build.
4100 Sat Oct 11 23:14:36 2003 Matthias Clasen <maclas@gmx.de>
4102 * gtk/gtkactiongroup.h:
4104 * gtk/gtkradioaction.h:
4105 * gtk/gtkradiotoolbutton.h:
4106 * gtk/gtkseparatortoolitem.h:
4107 * gtk/gtktoggleaction.h:
4108 * gtk/gtktoolitem.h:
4109 * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make
4110 these usable in C++. (#124351, Murray Cumming)
4112 Sat Oct 11 19:09:05 2003 Kristian Rietveld <kris@gtk.org>
4114 * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
4115 non-NULL before accessing it. Oops.
4117 Sat Oct 11 15:47:03 2003 Kristian Rietveld <kris@gtk.org>
4119 * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
4120 (gtk_entry_completion_insert_action_text),
4121 (gtk_entry_completion_insert_action_markup): the gchar* parameters
4122 should be const (pointed out by both Marco Pesenti Gritti and
4123 Murray Cumming (#124356).
4125 Sat Oct 11 15:37:19 2003 Kristian Rietveld <kris@gtk.org>
4127 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
4128 child list mode, allocate the height allocation->height to the
4129 button instead of the height requested by the button. (Tiny
4130 size allocation screwup noticed by Macro Pesenti Gritti).
4132 Sat Oct 11 15:23:27 2003 Kristian Rietveld <kris@gtk.org>
4134 Fixes based on comments from Marco Pesenti Gritti.
4136 * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
4137 signal handler, avoids the completion popup to popup when text is
4138 set programmatically in most cases (we actually have to handle this
4139 in the _editable functions as well, but that will break popping up
4140 when the user actually typed something :),
4141 (gtk_entry_completion_key_press): when handling enter, bail out
4142 when nothing has been selected,
4143 (gtk_entry_completion_changed): don't popdown when the entry content
4146 * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
4147 (gtk_entry_completion_selected_changed): unselect_all on the
4148 first selected changed signal. Avoids having a default row selected,
4149 (_gtk_entry_completion_popup): don't select the first row by default.
4151 * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
4152 first_sel_changed field.
4154 Fri Oct 10 23:02:58 2003 Matthias Clasen <maclas@gmx.de>
4156 * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager
4157 in the intro (again).
4159 Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
4161 Fixes for (#124212, Marco Pesenti Gritti):
4163 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
4164 warnings for popups.
4165 (_gtk_menu_is_empty): Return FALSE for non-menus.
4167 Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
4169 * gtk/gtkcombo.h: Deprecate.
4170 * gtk/gtkoptionmenu.h: Ditto.
4172 * gtk/gtkcombobox.c (gtk_combo_box_size_request),
4173 (gtk_combo_box_size_allocate): Rework, things behave better now. Still
4174 needs some work on requesting enough size when taking the items in
4175 the list into account.
4177 * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
4179 * gtk/gtkinputdialog.c: ditto.
4180 * gtk/gtkitemfactory.c: ditto.
4181 * gtk/gtkoptionmenu.c: ditto.
4183 * demos/gtk-demo/menus.c: remove the option menu.
4184 * demos/gtk-demo/sizegroup.c: replace the option menus with
4186 * demos/gtk-demo/textview.c: ditto.
4187 (A general GtkComboBox demo will be added later on).
4189 Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
4191 * demos/gtk-demo/ui_manager.c (activate_radio_action): New
4192 callback to propertly report radio actions.
4194 * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
4196 Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
4198 * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
4199 version in in the right field of the _XEMBED_INFO property.
4200 (#123885, Denis Mikhalkin)
4202 Mon Oct 6 14:18:47 2003 Jonathan Blandford <jrb@redhat.com>
4204 * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
4205 the child if we have one.
4207 (gtk_expander_button_release): use
4208 gtk_widget_activate instead.
4210 Mon Oct 6 21:05:46 2003 Matthias Clasen <maclas@gmx.de>
4212 * gtk/gtktable.c (gtk_table_class_init): Start the blurb for
4213 "right_attach" with a capital. (#123945, Christian Rose)
4215 Sun Oct 5 23:59:03 2003 Matthias Clasen <maclas@gmx.de>
4217 * tests/testsocket.c (child_read_watch): Remove an
4218 extraneous unref. (#122336, Frederic Crozat)
4220 Sun Oct 5 22:38:22 2003 Matthias Clasen <maclas@gmx.de>
4222 * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim
4223 whitespace in "visible-window" blurb. (#123910, Christian Rose)
4225 Sun Oct 5 00:53:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4227 * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
4228 focus arrow before pack_end items (#123851, Matthias Clasen)
4230 Fri Oct 3 20:50:48 2003 Kristian Rietveld <kris@gtk.org>
4232 * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
4233 on ->priv->cell_view if ->priv->cell_view is non-NULL.
4235 * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
4236 field to GtkComboBoxEntryPrivate,
4237 (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
4238 (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
4239 (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
4240 a construct-only "text_column" property and reorder code to use it
4241 and support inheriting this widget.
4243 Thu Oct 2 23:28:02 2003 Kristian Rietveld <kris@gtk.org>
4245 * gtk/gtkcombobox.c: Added API doc comments.
4247 * gtk/gtkcomboboxentry.c: Ditto.
4249 2003-10-02 Matthias Clasen <maclas@gmx.de>
4251 * gtk/gtktoggleaction.c: Documentation tweaks.
4253 Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org>
4255 * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
4256 packing/attribute/cell data functions from the header,
4257 (gtk_cell_view_set_cell_data): added support for cell data funcs.
4259 * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
4260 packing/attribute/cell data functions from the header, implemented
4261 cell data func support.
4263 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
4264 for the move to GtkCellLayout.
4266 * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
4268 2003-10-01 Matthias Clasen <maclas@gmx.de>
4270 * gtk/gtkaction.c (gtk_action_class_init):
4271 (gtk_action_[gs]et_property): Introduce a separate
4272 "hide_if_empty" property for empty menu handling.
4273 (_gtk_action_sync_menu_visible): ...and use it here.
4275 * tests/testmerge.c (main): ...and here.
4277 * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc
4278 comments to pacify gtk-doc.
4280 * gtk/gtkmain.c: Doc formatting tweaks.
4282 * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
4284 * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
4285 Use the same parameter names as in .c file, to pacify gtk-doc.
4287 * gtk/gtktoggletoolbutton.[hc]:
4288 * gtk/gtktoolbutton.[hc]:
4289 * gtk/gtktoolitem.[hc]:
4290 * gtk/gtktoolbar.[hc]:
4291 * gtk/gtkcolorbutton.[hc]:
4292 * gtk/gtkfontbutton.[hc]:
4293 * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
4294 source, not in the header.
4296 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
4297 Document these as 2.4 API additions.
4299 Tue Sep 30 23:42:56 2003 Kristian Rietveld <kris@gtk.org>
4301 * gtk/gtkentry.c (gtk_entry_set_completion),
4302 (gtk_entry_get_completion): Add API doc comments.
4304 * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
4306 Tue Sep 30 23:12:34 2003 Kristian Rietveld <kris@gtk.org>
4308 * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
4310 Tue Sep 30 22:59:58 2003 Kristian Rietveld <kris@gtk.org>
4312 * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
4314 * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
4316 2003-09-30 Matthias Clasen <maclas@gmx.de>
4319 * tests/testmerge.c: Test handling of empty menus.
4321 * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
4322 whether a menu is empty. Used in gtkaction.c.
4323 (update_smart_separators): Also update the visibility of empty menus.
4324 (update_node): When creating a new menu proxy, insert an "Empty" menu
4325 item which only gets shown if the menu is empty.
4327 * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
4328 "is_important" for menu proxies.
4329 (_gtk_action_sync_menu_visible): New function to sync the visibility
4330 of menu proxies. Used in gtkuimanager.c.
4331 (gtk_action_sync_visible): New function to sync the visibility of
4334 Tue Sep 30 21:43:34 2003 Kristian Rietveld <kris@gtk.org>
4336 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
4337 popup_in_progress to TRUE,
4338 (gtk_combo_box_menu_show): and back to FALSE here; the menu now
4339 won't disappear on the first button release. (Reported by Matthias
4342 Tue Sep 30 21:08:43 2003 Kristian Rietveld <kris@gtk.org>
4344 * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
4346 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
4347 Marco Pesenti Gritti).
4349 2003-09-30 Murray Cumming <murrayc@usa.net>
4351 * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
4352 instead of a GdkWindow*, because that what it is given. The
4353 documentation was already correct. This should cause no API/ABI
4354 breakage with C compilers.
4355 * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c,
4356 gtkcellrenderertogger.c: Updated the declarations of the render vfunc
4357 implementation accordingly.
4359 2003-09-30 Matthias Clasen <maclas@gmx.de>
4361 * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
4362 "direction-changed" and "keys-changed" signals.
4364 * gdk/gdkscreen.c (gdk_screen_class_init): Document the
4365 "size-changed" signal.
4367 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init):
4368 Document the "display-opened" signal.
4370 * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
4371 (gdk_display_class_init): Document the "closed" signal.
4373 Sat Sep 27 16:02:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4375 * gtk/gtktextview.[ch]: rename property tab_moves_focus to
4376 accepts_tab. (#122709 again).
4378 2003-09-27 Matthias Clasen <maclas@gmx.de>
4380 * gtk/gtkwindow.c (gtk_window_new):
4381 * gtk/gtkitemfactory.c (gtk_item_factory_new): Document
4382 the fact that the newly created object does not come with
4383 a floating reference. (#103068, patch by Frederic Lespez)
4385 * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor
4386 of GtkUIManager. Just leave GtkTranslateFunc undeprecated,
4387 since GtkActionGroup uses it.
4389 * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
4390 this test uses the soon-to-be-deprecated GtkItemFactory.
4392 * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
4393 remove item_factory.c
4395 * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c
4396 using GtkUIManager instead of GtkItemFactory.
4398 * tests/testmerge.c: Demonstrate the use of the
4399 connect-proxy signal.
4401 * gtk/gtkaction.c (connect_proxy): Add connect-proxy and
4402 disconnect-proxy signals to do small customizations
4403 like displaying tooltips in the statusbar without
4404 custom actions. (#122894, Philip Langdale)
4406 * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
4408 Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org>
4410 Landing the new ComboBox. Note that only gtkcombobox.h and
4411 gtkcomboboxentry.h are public.
4413 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
4414 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
4416 * gtk/Makefile.am, gtk/gtk.h: adding the new files.
4418 * tests/testcombo.c: and a new test.
4420 * tests/Makefile.am: adding the new test.
4422 2003-09-25 Tor Lillqvist <tml@iki.fi>
4424 * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
4426 2003-09-21 Tor Lillqvist <tml@iki.fi>
4428 * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
4429 function. Code split out from gdk_event_translate(). Needed
4430 because gdk_event_get_graphics_expose() couldn't do anything
4431 sensible otherwise. (Not that I think graphics exposes work anyway
4432 in gdk/win32, but at least now the code could work.)
4434 (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
4435 gdk_event_translate(), which couldn't have worked as it doesn't
4436 take any pre-allocated GdkEvent parameter any longer.
4438 (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
4439 GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
4441 2003-09-24 Matthias Clasen <maclas@gmx.de>
4443 * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
4446 * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
4448 * gtk/gtkuimanager.c (update_node): Don't complain about missing
4449 actions on popups. Re-set "tooltip" property on toolitems after
4450 adding them to parent to trigger proxy update.
4452 2003-09-22 Matthias Clasen <maclas@gmx.de>
4454 * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
4455 group member to test the fix for #122904.
4457 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
4458 Add the action to the group before activating it, otherwise we
4459 may end up with multiple active group members. (#122904, Marco
4462 2003-09-21 Matthias Clasen <maclas@gmx.de>
4464 Changes to make cross-process merging feasible:
4466 * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
4467 merged UI definition. Remove the "changed" signal, since its role
4468 is now filled by "notify::ui". Instead add a "actions-changed" signal
4469 which gets emitted when the set of actions changes.
4471 * gtk/gtktoggleactionprivate.h:
4472 * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
4473 Add a "draw_as_radio" property to toggle actions so that they can be
4474 used as proxies for radio actions much like the "draw_as_radio"
4475 property on check menu items enables them to operate as proxies for
4478 Prevent the "show_all" trap for action-based menus (see
4479 http://mail.gnome.org/archives/gtk-devel-list/2003-September/
4482 * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
4483 calls from static functions.
4485 * gtk/gtkuimanager.c (update_node):
4486 * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
4487 widgets whose visibility is externally controlled.
4489 * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
4490 "no_show_all" property with setter and getter. When TRUE, it keeps
4491 gtk_widget_{hide,show}_all() from modifying the visibility of the
4492 widget and its children.
4494 Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4496 * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
4498 2003-09-20 Tor Lillqvist <tml@iki.fi>
4500 * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
4501 including editor backup files. List files we want explicitly.
4503 * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
4504 calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
4505 LC_ALL, LC_CTYPE and LANG environment variables, than calls
4506 g_win32_getlocale().
4508 (gtk_get_default_language): Code snippet moved to above function,
4511 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
4512 * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
4513 _gtk_get_lc_ctype() instead of setlocale().
4515 Fri Sep 19 18:15:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4517 * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
4520 Fri Sep 19 13:24:54 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4522 * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
4523 documentation. (#117306, Steve Chaplin)
4525 2003-09-19 Tor Lillqvist <tml@iki.fi>
4527 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
4528 present on the US-International keyboard. For clarity, order
4529 keysyms in case statement according to numeric value.
4531 (gdk_keymap_translate_keyboard_state): Handle Caps Lock
4532 correctly. (#120176, Ken Rastatter and Owen Taylor)
4534 2003-09-18 Matthias Clasen <maclas@gmx.de>
4536 * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
4537 unref a closure, not g_object_unref(). (#122637, Marco Pesenti Gritti)
4539 Install accelerators on actions, not on proxies, support
4540 accelerator-only actions:
4542 * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
4543 and its lock status either via _gtk_widget_get_accel_path() or by
4544 looking at the accel_path stored in the menu item itself and determining
4545 its lock status by peeking into the contained accel label. This was
4546 already (accidentally) committed a week ago.
4548 * gtk/gtkaction.h (gtk_action_set_accel_group):
4549 (gtk_action_[dis]connect_accelerator): New functions.
4551 * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
4552 accel_closure and accel_count. We must have a reference to the
4553 accel_group, since we need it in connect_proxy. The count is necessary
4554 to ensure that the accelerator isn't removed before the last proxy
4555 requesting it has been unmerged.
4556 (connect_proxy): Connect the accelerator to the
4557 action now, only set the accel_path on the menuitem.
4558 (remove_proxy): Disconnect the accelerator from the action, not from
4560 (gtk_action_set_accel_group): Set the accel group.
4561 (gtk_action_[dis]connect_accelerator): Count the number of times
4562 this functions have been called and install/remove the accelerator if
4563 the count leaves/reaches zero.
4565 * gtk/gtkuimanager.h (GtkUIManagerItemType): Add
4566 GTK_UI_MANAGER_ACCELERATOR.
4568 * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
4569 (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
4570 <accelerator> elements.
4571 (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
4572 type is GTK_UI_MANAGER_ACCELERATOR.
4573 (update_node): Set the accel group on actions before creating their
4574 proxies. Don't set the accel group on created menus. For
4575 NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
4576 (print_node): Also emit <accelerator> elements.
4578 * tests/testmerge.c (dump_accels): Add a "Dump Accels" button.
4580 * gtk/gtkuimanager.c (update_node): Robustness improvements.
4582 2003-09-17 Matthias Clasen <maclas@gmx.de>
4584 * gtk/gtkuimanager.c (text_handler): Report unexpected character
4585 data as error from the GMarkup parser, otherwise things like
4586 gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error)
4589 Wed Sep 17 02:38:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4591 * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
4592 committed redraw_on_allocate change.
4594 Tue Sep 16 10:42:00 2003 Eric Warmenhoven <eric@warmenhoven.org>
4596 * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
4597 stubs to fix compilation
4599 * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
4600 when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
4602 * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
4603 variable. Patch from Marc Welz (#121347).
4605 2003-09-16 Matthias Clasen <maclas@gmx.de>
4607 * gtk/gtkaction.h: Apply egtk-format-protos.
4609 2003-09-15 Matthias Clasen <maclas@gmx.de>
4611 * gtk/gtkuimanager.c: Doc tweaks.
4613 Smart separators; see
4614 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
4616 * gtk/gtkuimanager.c (update_smart_separators): New function which
4617 implements "smart" separators by iterating once over the entries of a
4618 menu, hiding and showing separators as necessary.
4619 (update_node): Mark separators used as fences of placeholders as
4620 hidden. Explicitly added separators are marked as smart. Call
4621 update_smart_separators after updating a menu or toolbar node.
4622 Connect update_smart_separators to "notify::visible" signal on menu
4625 * tests/merge-[12].ui: Test smart separators.
4627 Changes to allow setting action state before connecting signal; see
4628 the thread starting at
4629 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
4631 * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
4632 (gtk_action_group_add_radio_actions_full): Add value parameter to allow
4633 setting the currently selected group member before connecting signals.
4634 (GtkToggleActionEntry): Separate struct for constructing toggle actions,
4635 including a boolean to initialize the action state before connecting
4637 (gtk_action_group_add_toggle_actions):
4638 (gtk_action_group_add_toggle_actions_full): New functions to construct
4639 toggle actions from an array of GtkToggleActionEntries.
4641 * demos/gtk-demo/appwindow.c:
4642 * tests/testactions.c:
4643 * tests/testmerge.c: Adjust to new action group API.
4645 Sun Sep 14 16:59:52 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4647 * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow
4648 "gtk-toolbar-arrow" so themes can special-case it.
4650 Sun Sep 14 16:07:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4652 * gtk/Makefile.am (gtk_c_sources): sort the list of files.
4654 Sun Sep 14 15:49:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4656 * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
4657 PangoFontMetrics. Patch from Steve Chaplin (#122257).
4659 2003-09-14 Tor Lillqvist <tml@iki.fi>
4661 * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
4662 special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
4663 the usefulness of which was already in doubt. Removing it fixes
4664 bugs #118575 and #121851.
4666 Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
4670 * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
4671 pressed button (used to determine if we want to initiate a drag later
4672 on) if the current grab widget is either NULL or tree_view (Reported
4673 by Jeroen Zwartepoorte).
4675 2003-09-12 Matthias Clasen <maclas@gmx.de>
4677 * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)
4678 (gdk_draw_text_wc): Add deprecation notes. (#121955, Martin Pool)
4680 2003-09-11 Matthias Clasen <maclas@gmx.de>
4682 * gdk/gdkpango.c: Doc tweaks.
4684 * tests/testgtk.c: Add table menu tests.
4686 * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the
4687 GtkMenuPrivate struct itself. Pointed out by valgrind.
4689 * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up
4692 Wed Sep 10 22:25:04 2003 Kristian Rietveld <kris@gtk.org>
4694 The table menu patch! Turns GtkMenu into a table, so you can attach
4695 menu items in numerous new ways! Be creative!
4697 Contains some bug fixes and RTL adaptions from Matthias Clasen.
4699 * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
4700 GtkMenuPrivate, introduce AttachInfo, add child properties enum,
4701 (gtk_menu_free_private), (gtk_menu_get_private): we have to free
4702 the heights array in the private struct,
4703 (gtk_menu_class_init): reorder code a bit, install child properties,
4704 (get_attach_info), (get_child_attach): new utility functions,
4705 (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
4706 child properties, for the attach info,
4707 (gtk_menu_remove): remove AttachInfo from menu item,
4708 (gtk_menu_real_insert): implemented algorithm to automagically place
4709 inserted menu items at the correct place in the table,
4710 (gtk_menu_size_request), (gtk_menu_size_allocate),
4711 (compute_child_offset): reworked/rewritten to support table menus,
4712 (gtk_menu_attach): new function,
4713 (find_child_containing), (gtk_menu_move_current): new functions to
4714 get table menu keynav right.
4716 * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
4718 2003-09-10 Matthias Clasen <maclas@gmx.de>
4720 * gtk/gtksocket.c (gtk_socket_filter_func): Only remove
4721 PropertyNotify events from the stream if they have been handled,
4722 in order to enable extending the plug<->socket communication via
4725 Wed Sep 10 01:06:44 2003 Kristian Rietveld <kris@gtk.org>
4727 Big TreeView DnD fixage, makes drops on empty models work, makes
4728 TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
4729 Related bugs #95362 and #113314. I don't want to touch this code
4732 * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
4734 * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
4735 for selection_data->length.
4737 * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
4738 (set_dest_row), (get_dest_row): we don't store just the row ref
4739 anymore, but a struct with the row ref and additional info,
4740 (set_destination_row): handle drops on empty space and some
4742 (get_logical_dest_row): also return path_down_mode/drop_append_mode
4743 flags, handle dropping childs on their new parents, rewrite
4744 drop append handling into something saner,
4745 (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
4747 (gtk_tree_view_drag_drop): updates for updated backend,
4748 (gtk_tree_view_drag_data_received): updates for updated backend,
4749 path down mode (treestore DnD) handling,
4750 (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
4751 when we are trying to drop a row on an empty model,
4752 (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
4754 * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
4755 (gtk_list_store_row_drop_possible): style and drop-append fixes.
4757 * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
4759 2003-09-08 Alexander Larsson <alexl@redhat.com>
4761 * gtk/gtkeventbox.[hc]:
4762 Implement gtk_event_box_get/set_input_only()
4765 Tests for the new input only event boxes
4767 Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
4769 Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
4771 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
4772 the call to gtk_tree_model_filter_add_root,
4773 (gtk_tree_model_filter_row_changed): bail out if c_path is not above
4774 the virtual root, allow building levels on the second try to convert
4775 the child path to a filter path,
4776 (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
4777 root when calling gtk_tree_model_filter_elt_get_path.
4779 2003-09-07 Matthias Clasen <maclas@gmx.de>
4781 * gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
4784 Fixes for accelerator handling during (un)merging:
4786 * gtk/gtkuimanager.c (update_node): Move setting info-action
4787 after the switch, since the old action is needed in some cases.
4788 In cases of proxy type mismatch, disconnect the old proxy from
4791 * gtk/gtkaction.c (remove_proxy): Renamed from
4792 gtk_action_remove_proxy(). Move unsetting of the accelerator
4793 here from disconnect_proxy() in order to catch all cases of
4795 (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
4796 to fail if proxy isn't a proxy of action.
4798 2003-09-07 Pablo Saratxaga <pablo@mandrakesoft.com>
4800 * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
4803 2003-09-07 Matthias Clasen <maclas@gmx.de>
4805 * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
4808 2003-09-06 Matthias Clasen <maclas@gmx.de>
4810 * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
4811 prev_action, not from action. (Fix by David Hampton)
4813 Fri Sep 5 14:15:10 2003 Owen Taylor <otaylor@redhat.com>
4815 * Back out locale-dependent interpretation of
4816 KP_Decimal, the official XFree86 interpretation
4817 is that KP_Decimal => . KP_Separator => ,
4818 always, independent of locale.
4819 (#105161, Frederic Crozat,
4820 http://bugs.xfree86.org/show_bug.cgi?id=534)
4822 2003-09-04 Matthias Clasen <maclas@gmx.de>
4824 * tests/testmerge.c: Test buttons and toggle buttons as proxies.
4826 * gtk/gtktoggleaction.c (connect_proxy):
4827 (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note
4828 that a "draw_as_radio" property is needed for check buttons similar to
4829 check menu items, in order to fully support button proxies for radio actions.
4831 * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
4833 * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui().
4835 * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
4836 'type' argument of gtk_ui_manager_add_ui().
4838 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
4839 to make this function as powerful as the XML methods of adding UI. (#120647)
4841 Thu Sep 4 19:11:23 2003 Kristian Rietveld <kris@gtk.org>
4845 * docs/RELEASE-HOWTO: updates.
4847 2003-09-04 Matthias Clasen <maclas@gmx.de>
4849 * tests/merge-2.ui: Use "position" instead of "pos".
4851 * gtk/gtkuimanager.c (start_element_handler): No need
4852 to be terse: Change the name of the "pos" attribute
4855 2003-09-04 Matthias Clasen <maclas@gmx.de>
4857 * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
4858 GtkUIManagerNode to shorten the names and to make the
4859 GTK_UI_MANAGER_<TYPE> names available for a public enum.
4861 * gtk/gtkactiongroup.c:
4862 * gtk/gtkuimanager.c: Various doc tweaks.
4864 * gtk/gtkuimanager.c (start_element_handler):
4865 (end_element_handler): Improve error reporting.
4867 Wed Sep 3 23:18:17 2003 Kristian Rietveld <kris@gtk.org>
4871 * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
4872 use end_position - page_size instead of G_MAXINT, since
4873 gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
4874 reported by Havoc Pennington).
4876 Wed Sep 3 21:58:03 2003 Kristian Rietveld <kris@gtk.org>
4880 * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
4881 unref it. (Fixes memleak, patch from Kjartan Maraas).
4883 Wed Sep 3 21:38:26 2003 Kristian Rietveld <kris@gtk.org>
4885 * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
4886 gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
4887 gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
4888 gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
4889 gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
4890 gtk/gtktypeutils.h: big patch from Kjartan Maraas
4891 to fix numerous typos.
4893 Wed Sep 3 17:38:01 BST 2003 Tony Gale <gale@gtk.org>
4895 * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
4897 2003-09-02 Tor Lillqvist <tml@iki.fi>
4899 * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
4900 CloseHandle() on the HMODULE returned from GetModuleHandle().
4901 Didn't cause any harm, but didn't do anything useful either. When
4902 running a GTK+ program under MS's debugger, the CloseHandle() call
4903 would cause a "first-chance exception" in ntdll.dll to show up.
4904 (The exception is caught appropriately if you let it proceed, but
4905 it confuses the person using the debugger). Thanks to Bruce
4906 Hochstetler for noticing.
4908 Tue Sep 2 21:01:19 2003 Kristian Rietveld <kris@gtk.org>
4912 * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
4913 to only select when button 1 is pressed introduced in the fix of
4916 2003-09-02 Matthias Clasen <maclas@gmx.de>
4918 * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
4920 * gtk/gtkuimanager.c: Shorten the names of some static
4923 Support adding and removing merge nodes dynamically (#120647,
4926 * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed
4927 gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id
4929 (gtk_ui_manager_add_ui): New function to add UI elements
4930 without juggling XML fragments, currently restricted to menuitems,
4931 toolitems and separators. Actions still come from registered
4934 Mon Sep 1 19:39:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4936 * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
4937 background pixmap was being offset twice, once by the ts_origin in
4938 gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
4940 2003-09-01 Matthias Clasen <maclas@gmx.de>
4942 * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
4943 this public again, since it's occasionally useful. (#121128,
4944 Marco Pesenti Gritti)
4946 * gtk/gtkaction.c: Add an "is_important" property and propagate
4947 it to toolitem proxies. (#121058, Marco Pesenti Gritti)
4949 Mon Sep 1 00:32:30 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4951 * tests/testtoolbar.c (main): connect to "delete_event" so the
4952 application will actually quit when you close the window
4954 2003-09-01 Matthias Clasen <maclas@gmx.de>
4956 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget)
4957 (gtk_ui_manager_get_action): g_return_if_fail() if
4959 (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
4960 (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125,
4961 Marco Pesenti Gritti)
4963 2003-08-31 Matthias Clasen <maclas@gmx.de>
4965 * gtk/gtktoolitem.c: Fix some typos in docs.
4967 * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
4968 replaces gtk_ui_manager_activate(). (#120658)
4970 * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
4971 gtk_ui_manager_activate().
4974 * gtk/gtkactiongroup.c: Some doc tweaks.
4976 * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
4977 wasn't emitted anyway. Some doc tweaks.
4979 2003-08-30 Matthias Clasen <maclas@gmx.de>
4981 * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
4982 rather than to "remove" on handlebox.
4984 * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
4985 activate an action found by following a path. (#120658)
4987 * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
4989 * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
4991 * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
4992 setter and getter. If it is set, add tearoff menu items to regular
4993 menus, but not to popups. Add a signal "changed", which gets emitted
4994 when the merged ui has changed. (#120649, #120656)
4996 * tests/testmerge.c: Add button to test the generation of tearoff
4999 2003-08-29 Matthias Clasen <maclas@gmx.de>
5001 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
5002 Actually group the actions together rather than putting each in its
5005 * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on
5006 proxy menu items for radio actions.
5008 * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
5010 Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5012 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
5013 Fix use of uninitialized variable.
5016 (_gtk_text_util_append_special_char_menuitems): add const cast to
5019 2003-08-29 Matthias Clasen <maclas@gmx.de>
5021 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install
5022 "draw_as_radio" as a separate property, not as an alias of
5024 (gtk_check_menu_item_get_property):
5025 (gtk_check_menu_item_set_property): Also support "draw_as_radio".
5027 Fri Aug 29 20:32:07 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5029 * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
5030 are narrower than 13 time the estimated character width of the
5031 font. (#107781, David Bordoley)
5033 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
5034 here if the GtkToggleButton is active. This may be the case if it
5037 * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
5038 vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
5041 * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
5042 property. (#111207, David Bordoley).
5044 * gtk/gtktoggletoolbutton.c
5045 (gtk_toggle_tool_button_create_menu_proxy): use new
5046 "draw_as_radio" property on the menu item when the item is a radio
5049 * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
5050 to only pay attention to the "use_underline" property when the
5051 button label comes from the "label" property.
5053 2003-08-29 Laurent Dhima <laurenti@alblinux.net>
5055 * configure.in: Added "sq" to ALL_LINGUAS.
5057 2003-08-28 Matthias Clasen <maclas@gmx.de>
5059 * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
5062 * gtk/gtkuimanager.c: Change the XML format:
5063 <Root> element is replaced by <ui>,
5064 <menu> element is replaced by <menubar>,
5065 <submenu> element is replaced by <menu>,
5066 <dockitem> element is replaced by <toolbar>,
5067 <popups> element is gone,
5068 verb attribute is replaced by action,
5069 name defaults to action or the element name.
5071 * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by
5072 GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified
5073 by removing the user_data, entry_type and extra_data fields,
5074 GtkRadioActionEntry is further simplified by removing the callback.
5075 The user_data can now be specified as an argument to
5076 gtk_action_group_add_actions(). There is a new method
5077 gtk_action_group_add_radio_actions(), which is similar to
5078 gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
5079 and a callback parameter in addition to the user_data. The callback
5080 is connected to the ::changed signal of the first group member.
5081 There are _full() variants taking a GDestroyNotify of
5082 gtk_action_group_add_[radio_]actions().
5084 * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
5085 on every member of the radio group when the active member is changed.
5086 Add an integer property "value", and a getter for the value of "value"
5087 on the currently active group member.
5089 * tests/testactions.c:
5090 * tests/testmerge.c:
5091 * tests/merge-[123].ui:
5092 * demos/gtk-demo/appwindow.c: Adjust to these changes.
5094 * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
5096 2003-08-27 Anders Carlsson <andersca@gnome.org>
5098 * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
5099 text view, so the tool bar won't have focus.
5101 Tue Aug 26 09:57:38 2003 Owen Taylor <otaylor@redhat.com>
5103 * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
5104 declaration not at start of block. (#120371, Damien Carbery)
5106 2003-08-26 Matthias Clasen <maclas@gmx.de>
5108 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize
5109 for length, not gsize.
5111 * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to
5112 <ui> and make it optional in strings. Rename verb to action, <dockitem>
5113 to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
5115 * demos/gtk-demo/appwindow.c:
5116 * tests/testactions.c:
5117 * tests/testmerge.c:
5120 * tests/merge-3.ui: Adjust to the new XML format.
5122 Mon Aug 25 19:55:55 2003 Owen Taylor <otaylor@redhat.com>
5124 * gtk/gtktextview.c (gtk_text_view_update_layout_width):
5125 Since we add one to the layout's reported width to
5126 account for the cursor, we need to subtract one when
5127 setting the wrap width for the layout. (Fixes infinite
5128 loop (#120325, Frederic Crozat)
5130 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
5131 Be a bit more careful about rounding when converting
5132 wrapped width from Pango units to pixels.
5134 2003-08-26 Matthias Clasen <maclas@gmx.de>
5136 Rename GtkMenuMerge to GtkUIManager.
5138 * gtk/gtkuimanager.[hc]: New files.
5139 * gtk/gtkmenumerge.[hc]: Removed.
5143 * tests/testmerge.c:
5144 * tests/testactions.c:
5145 * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by
5148 * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating:
5149 add comments to entries array, remove newlines from ui definition. Don't
5150 use the ::add_widget signal.
5152 Mon Aug 25 17:28:04 2003 Owen Taylor <otaylor@redhat.com>
5154 * gtk/gtknotebook.c (gtk_notebook_forall): Don't
5155 include page->menu_label - causes various problems,
5158 Mon Aug 25 23:21:43 2003 Kristian Rietveld <kris@gtk.org>
5162 Fixes #115871, reported by Michael Natterer.
5164 * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
5165 added ctrl_pressed and shift_pressed bitfields,
5166 (_gtk_tree_selection_internal_select_node): replace GdkModifierType
5167 arg with GtkTreeSelectMode.
5169 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
5170 (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
5171 (_gtk_tree_selection_internal_select_node): all updated for
5172 GdkModifierType -> GtkTreeSelectMode move.
5174 * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
5175 and shift_pressed around selection handling block,
5176 (gtk_tree_view_real_select_cursor_row),
5177 (gtk_tree_view_real_toggle_cursor_row),
5178 (gtk_tree_view_real_selection_cursor_parent),
5179 (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
5180 instead of checking the event state. And also updates for the
5181 GdkModifierType -> GtkTreeSelectMode move.
5183 Wed Aug 20 21:26:49 2003 Owen Taylor <otaylor@redhat.com>
5185 * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
5186 to the parent when there was no focus widget before
5187 and no focus widget after - that is, when there are
5188 no focusable widgets. (#108678, help tracking it
5189 down from Padraig O'Briain, Federico Mena Quintero, )
5191 * gtk/gtkxembed.[ch]: Move various shared utilities
5192 for the XEMBED protocol eused by GtkPlug and GtkSocket
5195 * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
5196 a flag bit that is sent with focus mesages to indicate
5197 that the focus has wrapped around on the toplevel;
5198 use this bit to catch infinite loops when there is no
5199 focusable widget at ll in the entire toplevel.
5201 * tests/testsocket.c (child_read_watch): Remove an
5204 * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h:
5205 Up XEMBED protocol version to 1, add logic for
5206 sending the right version in XEMBED_EMBEDDED_NOTIFY.
5208 * gtk/gtksocket.c (gtk_socket_add_window): Send
5209 the embedder window in the XEMBED_EMBEDDED_NOTIFY
5210 as the spec requires.
5212 Mon Aug 25 16:15:41 2003 Owen Taylor <otaylor@redhat.com>
5214 * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and
5215 NumLock handling for non-XKB. Add a special case
5216 hack for NumLock on Sun servers. (Patch from
5217 Robert Basch, #115819)
5219 2003-08-25 Matthias Clasen <maclas@gmx.de>
5221 * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten
5224 * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
5225 gtk_action_group_set_translation_domain): Hooks for translation of
5226 label and tooltip in GtkActionGroupEntries. (#120620)
5228 2003-08-25 Matthias Clasen <maclas@gmx.de>
5230 * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
5231 values properly. Sorry about the resize grip trouble, Owen. (#120621)
5233 * gtk/gtkactiongroup.c:
5234 * demos/gtk-demo/appwindow.c:
5235 * tests/testmerge.c:
5236 * tests/testactions.c: Use new GtkActionGroupEntryType enum.
5238 Sun Aug 24 17:14:44 2003 Owen Taylor <otaylor@redhat.com>
5240 * gtk/gtk.h: Remove reference to gtkresizegrip.h.
5242 Sun Aug 24 17:03:44 2003 Owen Taylor <otaylor@redhat.com>
5244 * gtk/Makefile.am: Fix accidental commit of references
5245 to gtkresizegrip.[ch]
5247 Sun Aug 24 17:00:03 2003 Owen Taylor <otaylor@redhat.com>
5249 * gtk/gtkrc.c: Fix some missing initializations of
5252 2003-08-24 Matthias Clasen <maclas@gmx.de>
5254 * gtk/gtkaction.[ch]:
5255 * gtk/gtktoggleaction.[ch]:
5256 * gtk/gtktoggleactionprivate.h:
5257 * gtk/gtkradioaction.[ch]:
5258 * gtk/gtkactiongroup.[ch]:
5259 * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
5260 toolbars, using the EggMenu code by James Henstridge.
5262 * gtk/gtk.h: Include new headers.
5263 * gtk/Makefile.am: Add new files.
5265 * tests/testactions.c: Test for actions.
5266 * tests/testmerge.c: Test for menu merging.
5267 * tests/merge-[123].ui: Test data for testmerge.
5268 * tests/Makefile.am: Add testactions and testmerge.
5270 * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the
5271 menubar and toolbar.
5273 Sat Aug 23 21:40:18 2003 Owen Taylor <otaylor@redhat.com>
5275 * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix
5276 problem where rc_file->directory wasn't always getting
5277 set. (#120549, Luis Villa)
5279 2003-08-22 Christian Rose <menthos@menthos.com>
5281 * configure.in: Added "ne" to ALL_LINGUAS.
5283 Thu Aug 21 16:00:36 2003 Owen Taylor <otaylor@redhat.com>
5285 * gtk/gtkrc.c: Keep a list of current GtkRcFiles
5286 being parsed, not just the directories for those
5287 files. Use that to catch recursion. (Part of
5290 Thu Aug 21 21:27:45 2003 Kristian Rietveld <kris@gtk.org>
5294 Fix option menu scrolling (#119821, Owen Taylor).
5296 * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
5297 by #80484 and the CLAMP,
5298 (get_menu_height): new function,
5299 (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
5300 new_offset to handle page up/down right.
5302 Thu Aug 21 15:17:42 2003 Owen Taylor <otaylor@redhat.com>
5304 * gdk/x11/gdkkeys-x11.c: Change the interpretation
5305 of consumed_modifiers so that it contains:
5306 - Modifiers combinations actually found in
5308 - Single modifier modifier combinations.
5309 But not multi-modifier combinations that aren't
5310 in event->state. Document. (#100439)
5312 Thu Aug 21 20:53:46 2003 Kristian Rietveld <kris@gtk.org>
5314 Slightly modified patch from Yann Rouillard to improve selection
5315 behavior with the mouse. Fixes #120187.
5317 * gtk/gtktreeview.c (gtk_tree_view_button_press): only
5318 select/deselect items on the first button press of button 1,
5319 expand checks for row_activated to include triple clicks.
5321 Thu Aug 21 01:33:51 2003 Kristian Rietveld <kris@gtk.org>
5325 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
5326 approximate digit widths up, to avoid truncation, convert to
5327 pango pixels when we have the full string width instead of converting
5328 the approx digit width to pango pixels, take inner border and
5329 interior focus into account correctly. (Fixes #116368, patch from
5332 2003-08-20 Noah Levitt <nlevitt@columbia.edu>
5334 * gtk/queryimmodules.c: Don't look at the same directory twice (in
5335 simple cases). (#120342)
5337 Wed Aug 20 22:04:47 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5339 * gdk/gdkwindow.c: Make the layers in the paint stack have their
5340 own pixmap instead of sharing one. (#118317)
5342 * tests/testgtk.c (create_get_image): Fixes to make the window fit
5343 on an 800x600 screen
5345 Wed Aug 20 22:03:25 2003 Kristian Rietveld <kris@gtk.org>
5349 * gtk/gtkspinbutton.c (start_spinning): change the type of step
5350 to gdouble, since it gets it's data from a gdouble (Fixes #113547).
5352 Mon Aug 18 17:19:12 2003 Owen Taylor <otaylor@redhat.com>
5354 * modules/input/gtkimcontextxim.[ch]: Substantially
5355 rework the handling of status windows:
5357 - Store the current StatusWindow in the
5358 GtkIMContextXIM structure and vice-versa, so we
5359 don't have to hunt the window hierarchy on
5361 - Use the Gtkidget hierarchy instead of/or as well
5362 as the GdkWindow hierarchy when finding the toplevel;
5363 this helps for things like GtkHandlebox
5364 - Watch GtkWidget::hierarchy_changed to catch
5365 changes in the toplevel without changes in the
5366 GdkWindow (reparenting)
5367 - Never create the GtkWindow for the status window
5368 unless we have text to display.
5369 - Various cleanups, add lots of comments.
5371 (#115077, much help from Takuro Ashie and Hidetoshi
5372 Tajima in tracking this down and figuring out a fix.)
5374 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in):
5376 * modules/input/gtkimcontextxim.c: Track the current
5377 screen for each toplevel so that we show the status
5378 window on the right screen. (#116340, James Su)
5380 * modules/input/gtkimcontextxim.c: If create a new IC
5381 when we currently have the focus, call XSetICFocus()
5384 * modules/input/gtkimcontextxim.c (get_im): Fix bug
5385 with multiple open screens.
5387 Tue Aug 19 14:37:46 2003 Owen Taylor <otaylor@redhat.com>
5389 * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext):
5390 Replace client_window field with 'priv' pointer,
5391 retaining binary compatibility.
5393 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
5394 save use_preedit/cursor_location/focus status and set
5395 up the new slave appropriately. (#118651, Botond Botyanszki)
5397 Tue Aug 19 13:58:50 2003 Owen Taylor <otaylor@redhat.com>
5399 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
5400 Don't use impl->position_info.clip_rect for toplevels.
5401 (#107068, reported by Thomas Mirlacher)
5403 Mon Aug 18 11:48:51 2003 Owen Taylor <otaylor@redhat.com>
5405 * gdk/x11/gdkdrawable-x11.c (convert_to_format):
5406 Add a fallback for unaligned source data for
5407 FORMAT_ARGB_MASK. (#117217)
5409 Mon Aug 18 10:51:57 2003 Owen Taylor <otaylor@redhat.com>
5411 * configure.in: Rework handling of REBUILD_PNGS,
5412 so that we also don't try to REBUILD_PNGS when
5413 cross-compiling and there is no gdk-pixbuf-csource.
5414 But give an error if gtk/stock-icons/gtkstockpixbufs.h
5415 is not in the source tree. (Note that REBUILDS_PNG
5416 was set backwards before, which is why you always
5417 had to manually recreate gtkstockpixbufs.h!)
5419 Mon Aug 18 10:19:55 2003 Owen Taylor <otaylor@redhat.com>
5421 * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
5422 path to libgtk.la. (#120080, Benedikt Spranger)
5424 Sat Aug 16 10:34:49 2003 Owen Taylor <otaylor@redhat.com>
5426 * modules/input/imcedilla.c: Make the list of default
5427 languages more comprehensive. (Suggestion of
5428 Fco. Javier F. Serrador)
5430 Sat Aug 9 12:47:11 2003 Owen Taylor <otaylor@redhat.com>
5432 * gdk/gdk.c (gdk_arg_context_parse): Fix broken
5433 parentheses when skipping args.
5435 Sat Aug 16 16:22:23 2003 Kristian Rietveld <kris@gtk.org>
5437 Fix major bug in row ref handling, so the new combo box
5438 will actually work right (:. Bug #107748. Patch written
5439 with help from Tim Janik.
5441 The basic idea is to update the row refs in a closure,
5442 before the actual signal is emitted (rather than having
5443 the model connect signal handlers).
5445 * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
5446 g_signal_new calls for row_inserted, row_deleted and
5447 rows_reordered to use the new marshallers,
5448 (row_inserted_marshall), (row_deleted_marshall),
5449 (rows_reordered_marshall): the new marshallers,
5450 (gtk_tree_row_ref_inserted_callback): renamed to
5451 gtk_tree_row_ref_inserted since it isn't a callback
5452 anymore and gets called by the marshaller now,
5453 (gtk_tree_row_ref_deleted_callback): likewise,
5454 (gtk_tree_row_ref_reordered_callback): likewise,
5455 (connect_ref_callbacks), (disconnect_ref_callbacks):
5457 (gtk_tree_row_reference_new_proxy),
5458 (gtk_tree_row_reference_free),
5459 (gtk_tree_row_reference_inserted),
5460 (gtk_tree_row_reference_deleted),
5461 (gtk_tree_row_reference_reordered): updated.
5463 Fri Aug 15 16:54:39 2003 Owen Taylor <otaylor@redhat.com>
5465 Improve Cedilla handling - based on a patch from Gustavo
5468 * modules/input/imcedilla.c po/POTFILES.in: Input method that
5469 produces C_WITH_CEDILLA rather than C_WITH_ACUTE for
5470 dead_acute+c combinations. Make this the default for
5473 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
5474 Use LC_CTYPE instead of LC_MESSAGES to pick the default
5477 Fri Aug 15 17:00:19 2003 Owen Taylor <otaylor@redhat.com>
5479 * gtk/gtkimcontextsimple.c: Fix missing compose sequence
5480 for Multi_key+c+apostrophe.
5482 Fri Aug 15 21:57:34 2003 Kristian Rietveld <kris@gtk.org>
5486 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
5487 on vertical scrolling. (#108035, reported by Tim Janik).
5489 Fri Aug 15 20:06:42 2003 Kristian Rietveld <kris@gtk.org>
5493 * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
5494 (gtk_tree_model_sort_level_find_insert),
5495 (gtk_tree_model_sort_insert_value): fix off-by-one error.
5496 (#109292 continued, patch from Yann Rouillard).
5498 Fri Aug 15 19:43:14 2003 Kristian Rietveld <kris@gtk.org>
5500 (Note: This is not exactly the same as the patch which went in
5503 * gtk/gtktreeview.c (gtk_tree_view_class_init),
5504 (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
5505 Also support the up, down, left, right, home, end, page up and
5506 page down keys on the numpad. (#119419, reported by Alex Larsson).
5508 Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
5510 Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
5512 * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
5513 we link libgtk against X explicitely, since we
5514 make GTK+ calls for plug/socket.
5516 * gtk/queryimmodules.c: Use USE_LA_MODULES and
5517 G_MODULE_SUFFIX here.
5519 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
5520 XShmPutImage with #ifdef USE_SHM.
5522 Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
5524 * gtk/gtkfilesel.c (gtk_file_selection_populate):
5525 Don't reposition the cursor when we aren't trying
5526 to complete. (Fixes problems with selection on
5527 startup, #108433, reported by Mark Finlay.)
5529 * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
5530 code that tried to position the cursor after the common
5531 prefix when there was one, it wasn't working, and
5532 would be hard to fix. Just always put the cursor
5533 at the end when completing.
5535 Thu Aug 14 17:58:23 2003 Owen Taylor <otaylor@redhat.com>
5537 * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
5538 the current directory fails because of encoding
5539 conversion problems, walk up textually to parent
5540 directories until we can convert. (#113627)
5542 Wed Aug 13 17:01:49 2003 Owen Taylor <otaylor@redhat.com>
5544 * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
5545 Remove usage of menu_shell->ignore leave which was
5546 to deal with stray events we no longer get because
5547 we do grabbing differently. Comment it as unused in
5548 the header. (#115837, Keith Bissett)
5550 Wed Aug 13 16:32:43 2003 Owen Taylor <otaylor@redhat.com>
5552 * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request):
5553 Fix some places that weren't properly Xinerama-ified.
5555 * gtk/gtkmenu.c: Fix problem with windows that scroll
5556 at the top of the screen.
5558 Wed Aug 13 11:34:53 2003 Owen Taylor <otaylor@redhat.com>
5560 * gtk/gtkcombo.c (gtk_combo_init): connect_after() to
5561 key-press-event on the entry, so input methods get access to
5562 key presses before GtkCombo customization.
5563 (#115451, Botond Botyanszki)
5565 2003-08-13 Anders Carlsson <andersca@gnome.org>
5567 * tests/testtoolbar.c: (set_important_func), (important_toggled),
5568 (create_items_list):
5569 Add an important column.
5571 Tue Aug 12 15:00:15 2003 Owen Taylor <otaylor@redhat.com>
5573 * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
5574 against reentrancy from ::focus-out handlers.
5575 (#118129, Felipe Heidrich)
5577 Tue Aug 12 14:27:42 2003 Owen Taylor <otaylor@redhat.com>
5579 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
5580 GDK_LOCK_MASK before calling
5581 gdk_keymap_translate_keyboard_state so bindings
5582 and accelerators are independent of the Caps-lock
5583 key. (#115384, reported by Toni Willberg)
5585 Mon Aug 11 12:07:14 2003 Owen Taylor <otaylor@redhat.com>
5587 * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
5588 break statements (#119494, Soeren Sandmann)
5590 Mon Aug 11 11:10:07 2003 Owen Taylor <otaylor@redhat.com>
5592 * gtk/gtkwidget.h: Mark parent public as well; it's
5593 extensively accessed in existing code, so there is
5594 no advantage in making people use get_parent().
5595 (Tweak to #119463 fix)
5597 2003-08-11 Matthias Clasen <maclas@gmx.de>
5599 Add support for EWMH "Above" and "Below" window states. (105100,
5602 * tests/testgtk.c: Add "Above" and "Below" to the the "Window
5605 * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
5606 gtk_window_set_keep_below.
5608 * gtk/gtk.def: Add gtk_window_set_keep_above and
5609 gtk_window_set_keep_below.
5611 * gtk/gtkwindow.c (gtk_window_set_keep_below):
5612 (gtk_window_set_keep_above): New functions, call the corresponding
5615 * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
5616 function, sets _NET_WM_STATE_BELOW.
5617 (gdk_window_set_keep_above): New function, sets
5618 _NET_WM_STATE_ABOVE.
5620 * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
5621 gdk_window_set_keep_below.
5623 * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
5624 GDK_WINDOW_STATE_BELOW.
5626 * gdk/gdk.def: Add gdk_window_set_keep_above and
5627 gdk_window_set_keep_below.
5629 * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
5630 JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
5631 xmlcatalog in PATH. (#119115)
5633 2003-08-10 Matthias Clasen <maclas@gmx.de>
5635 * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
5638 2003-08-09 Noah Levitt <nlevitt@columbia.edu>
5641 * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
5642 docs on GdkFilterFunc and GdkFilterReturn.
5644 2003-08-09 Matthias Clasen <maclas@gmx.de>
5646 * gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
5647 to let the mouse wheels select the month. Scrolling down
5648 moves forward in time. (#53134, Abigail Brady)
5650 * gtk/gtkcalendar.c: Complete the RTL flipping support for
5651 GtkCalendar, make it possible to flip the headings using the
5652 "magic translated string" technique. Translators, note the
5653 comment in gtk_calendar_init() explaining this. (#102416)
5655 * gtk/gtkcalendar.c: Get the information about the first day of
5656 the week from the locale using another instance of the "magic
5657 translated string" technique. Ignore the display option
5658 GTK_CALENDAR_WEEK_START_MONDAY with a warning. (#87977)
5660 * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
5661 date is dragged as text, formatted via strftime %x. Text drops are
5662 accepted if g_date_set_parse() can make sense of the text. A
5663 dedicated data format for date DND has not been introduced yet,
5664 since there didn't seem to be sufficient consensus on such a
5665 format on xdg-list. (#117297)
5667 2003-08-08 Matthias Clasen <maclas@gmx.de>
5669 * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
5670 Fix a segfault. (#115284, Jan Kratochvil)
5672 2003-08-08 Tor Lillqvist <tml@iki.fi>
5674 * gdk/win32/gdkevents-win32.c (print_event): Print also the root
5675 coordinates for events that have such. Print coordinates for enter
5678 (gdk_event_translate): Don't use event uninitialixed in the
5679 return_exposes branch of the WM_PAINT handler.
5681 * gdk/win32/gdkwindow-win32.c (gdk_window_new,
5682 _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer):
5683 Must offset top-level window coordinates here, too.
5685 2003-08-08 Matthias Clasen <maclas@gmx.de>
5687 * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
5688 when maximized or fullscreen.
5690 2003-08-07 Tor Lillqvist <tml@iki.fi>
5692 * gdk/win32/gdkinput-win32.h
5693 * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
5694 _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
5697 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
5698 accordingly, in fact an uninitialised variable was dereferenced.
5701 [Win32] Add support for multiple monitors.
5703 * gdk/win32/gdkprivate-win32.h
5704 * gdk/win32/gdkglobals-win32.c: New global variables for
5705 multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
5706 _gdk_offset_x and _gdk_offset_y.
5708 * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
5709 functions, enumeration functions passed to EnumDisplayMonitors().
5711 (gdk_display_open): If the EnumDisplayMonitors() and
5712 GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
5713 if to find out monitor info.
5715 Calculate the offset between Win32 coordinates (relative to the
5716 primary monitor's origin (and thus negative on monitors to the
5717 left of or above it), and GDK's (visible coordinates should be
5720 * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
5721 gdk_screen_get_monitor_geometry): Use information collected above.
5723 (gdk_window_move, gdk_window_move_resize_window_get_geometry):
5724 Subtract _gdk_offset_{x,y} from GDK root window coordinates.
5726 (gdk_window_get_geometry, gdk_window_get_origin,
5727 gdk_window_get_frame_extents): For top-level windows, add
5728 _gdk_offset_{x,y} to GDK root window coordinates
5730 Still need to handle multiple monitors in
5731 gdk_window_fullscreen(). Probably should make the window
5732 fullscreen on the monitor where the cursor is?
5734 * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
5735 root window coordinates in GdkEvents.
5738 [Win32] Fix geometry hint handling. Add support for resize
5739 increment and base size, and aspect ratio geometry hints. The
5740 "gridded geometry" test in testgtk now works beautifully.
5742 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
5743 Turns out this function shouldn't actually ever modify the
5744 window's size, just store the hints. (Old code kept for a while
5747 (gdk_window_set_hints): Remove presumably broken code that handles
5748 the position hints, this function is obsolete anyway.
5750 * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
5751 variables, not used.
5753 (adjust_drag): New function, used to implement resize increment
5756 (gdk_event_translate): Handle WM_SIZING, implement resize
5757 increment and base size, and aspect ratio geometry hints here. The
5758 WM_GETMINMAXINFO handler takes care of the minimum and maximum
5759 size hints as before. Fix the WM_GETMINMAXINFO handler to take
5760 into account window decorations. No need to modify the
5761 ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
5762 the defaults are fine.
5764 * gdk/win32/gdkprivate-win32.h
5765 * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
5766 _gdk_win32_get_adjusted_client_rect): New helper functions.
5768 2003-08-07 Matthias Clasen <maclas@gmx.de>
5770 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
5771 toplevel->have_* flags before iterating over the _NET_WM_STATE
5774 Thu Aug 7 16:49:29 2003 Owen Taylor <otaylor@redhat.com>
5776 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
5777 Fix a bug where on theme change, resize/redraw wasn't
5778 properly getting queued on toplevel windows. (#116346,
5781 * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
5782 Fix bug where wrong coordinates were used for toplevel
5785 Thu Aug 7 16:40:21 2003 Owen Taylor <otaylor@redhat.com>
5787 * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
5788 page_num variable (Archit Baweja)
5790 2003-08-07 Matthias Clasen <maclas@gmx.de>
5792 * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
5793 cope with C libraries with crippled locale support. (#115293)
5795 2003-08-07 Hans Breuer <hans@breuer.org>
5797 * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
5798 (only if the new window not known to Gdk) to get proper
5799 leave notification, and get rid of the wrong placed
5800 tooltips, bug #102283
5802 (gdk_event_translate) : small code reordering to not get
5803 GDK_MOTION_NOTIFY for still mouse and get back tooltips on
5806 2003-08-07 Tor Lillqvist <tml@iki.fi>
5809 * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
5810 missing function, trivially implement.
5812 2003-08-07 Matthias Clasen <maclas@gmx.de>
5814 * gtk/gtkctree.c (draw_row): Don't cut descenders when
5815 rendering. (#118646, Charles Kerr)
5817 2003-08-06 Hans Breuer <hans@breuer.org>
5819 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
5820 initialize bits to 0 (probably default on NT)
5822 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
5823 now it works as intended ;-)
5825 2003-08-04 Hans Breuer <hans@breuer.org>
5827 * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
5828 set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
5830 * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
5831 (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
5833 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
5834 against all expectations it is basically ony a call with WM_SETICON
5835 needed (the visual effect is there, though colors or mask are
5836 still somewhat wrong).
5837 * gdk/win32/gdkwindow-win32.h : place to store the HICON
5839 * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
5840 pixel drawing as it was fixed at 1999-08-23
5842 gtk/gtk.def : updated
5844 Tue Aug 5 10:07:08 2003 Owen Taylor <otaylor@redhat.com>
5846 * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property):
5847 Add a missing break. (#119156, Callum McKenzie)
5849 Tue Aug 5 00:24:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5851 * gtk/gtkmenu.c (gtk_menu_position): New positioning
5854 Fri Aug 1 15:26:46 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5856 * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
5859 * gtk/gtkradiotoolbutton.c
5860 (gtk_radio_tool_button_new_from_widget): Don't take a stock id
5862 * gtk/gtkradiotoolbutton.c
5863 (gtk_radio_tool_button_new_with_stock_from_widget): make this
5864 function take a stock_id.
5866 * gtk/toolbar: documentation
5868 Mon Aug 4 14:53:46 2003 Owen Taylor <otaylor@redhat.com>
5870 * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init):
5871 Fix problem where use_xshm was getting set wrong if
5872 MIT_SHM wasn't found. (George Lebel)
5874 2003-08-04 Tor Lillqvist <tml@iki.fi
5876 * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
5877 actually use the passed-in filter list. The function also needs a
5878 GdkWindow parameter, as filter functions expect
5879 GdkEvent::any.window to be valid. (#119034, Hans Breuer)
5881 2003-08-03 Matthias Clasen <maclas@gmx.de>
5883 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors):
5884 (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
5885 the term "virtual screen". (#119030, Tor Lillqvist)
5887 2003-08-02 Matthias Clasen <maclas@gmx.de>
5889 * tests/testtext.c (test_init):
5890 * tests/testgtk.c (test_init):
5891 * tests/testdnd.c (test_init):
5892 * demos/pixbuf-init.c (pixbuf_init):
5893 * demos/gtk-demo/main.c (main): Use g_setenv().
5895 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
5898 Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
5900 * configure.in: Requires glib-2.3.0, pango-1.2.0.
5902 * configure.in: Require Xft version 2,
5903 remove code for handling older versions of pango and Xft.
5904 Many miscellaneous improvements to X checks
5906 * acinclude.m4: Add GTK_ADD_LIB() macro for adding
5907 a library to a variable, avoiding dups.
5909 * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
5912 * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
5915 2003-08-02 Matthias Clasen <maclas@gmx.de>
5917 * gtk/gtkcolorsel.c (color_sample_drop_handle)
5918 (palette_drop_handle):
5919 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept
5920 drops with the wrong format, since the KDE color chooser incorrectly
5921 drops application/x-color with format 8. (#118810)
5923 * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
5924 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
5925 Accept drops with the wrong format, since the KDE color chooser
5926 incorrectly drops application/x-color with format 8. (#118810)
5928 2003-08-02 Tor Lillqvist <tml@iki.fi>
5930 Fix gdk/win32 window geometry handling again. The window position
5931 in a GDK_CONFIGURE event should be that of the client area, not of
5932 the window decorations. (I was confused by the term "window
5933 border" in X11. It does *not* mean the window manager
5934 decorations. There are no X11-style window borders in Win32.)
5935 Also, this time do take the geometry hints into account
5936 appropriately when moving windows. Now testgtk's gravity test's
5937 move buttons work OK. There are stil problems with taking gravity
5938 into account when showing a hidden window.
5940 * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
5941 instead of separate fields.
5943 * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
5944 adjust for decorations.
5946 * gdk/win32/gdkwindow-win32.c (get_outer_rect,
5947 adjust_for_gravity_hints): New functions.
5948 (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
5949 above functions, take geometry hints into account.
5950 (gdk_window_set_geometry_hints): Size hints specicy client area,
5951 not including decorations.
5953 Fri Aug 1 17:10:22 2003 Owen Taylor <otaylor@redhat.com>
5955 * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
5956 return an absolute path (#115590), fix a problem where
5957 you could crash the file selector with a looong name
5958 by returning a newly allocated buffer.
5960 Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
5962 * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
5963 bug in rarely or never hit code path (#118071,
5966 Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
5968 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
5969 If the check for missing depths, try actually creating pixmaps
5970 of the depths to deal with Xinerama not reporting
5971 all the depths it should. (#115822)
5973 Fri Aug 1 15:33:59 2003 Owen Taylor <otaylor@redhat.com>
5975 * gtk/gtksocket.c: Patch from Denis Mikhalkin to
5976 forward KeyRelease events as well as KeyPress events.
5979 Fri Aug 1 15:06:25 2003 Owen Taylor <otaylor@redhat.com>
5981 * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
5982 if argc is 0 as well, instead of leaving it unset.
5983 (#116023, Michael Meeks)
5985 Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5987 * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
5988 default to TRUE; ignore the property when api_mode != NEW_API
5990 2003-07-31 Matthias Clasen <maclas@gmx.de>
5992 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
5993 to icon, to pacify gtk-doc.
5995 * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion
5998 Thu Jul 31 15:33:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6000 * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
6002 Thu Jul 31 15:29:28 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6004 * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
6005 overflow_item field.
6007 Wed Jul 30 21:11:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6009 * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
6010 an internal function
6012 * gtk/gtktoolitem.h: remove unused declaration of
6013 _gtk_tool_item_get_drag_window().
6015 Wed Jul 30 17:03:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6017 * gtk/gtktoolbutton.[ch]:
6018 (gtk_tool_button_new): swap icon_widget and label arguments to
6019 match BonoboUIToolbarButton.
6021 * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
6023 2003-07-30 Matthias Clasen <maclas@gmx.de>
6025 * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
6028 2003-07-29 Tor Lillqvist <tml@iki.fi>
6030 Fix for #108007, #112402, #117042: There was confusion in
6031 gdk/win32 at various places whether a window position refers to
6032 the decoration position or the client area position. Also whether
6033 window size includes decorations or not.
6035 The correct interpretation apparently is that in GDK (like in
6036 X11), a top-level window position means the decoration's position,
6037 but size means the window's inner size (client area size). In the
6038 Win32 API, the window size usually includes the decorations,
6041 * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
6042 #ifdef G_ENABLE_DEBUG.
6043 (handle_configure_event): New function, generates GDK_CONFIGURE
6044 events from WM_SIZE and WM_MOVE messages. Even if no event is
6045 generated because of the event mask, still set the private
6046 position and size fields. Calculate position and size correctly.
6047 (gdk_event_translate): Call handle_configure_event().
6049 * gdk/win32/gdkgeometry-win32.c: Cosmetics.
6051 * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
6052 macros. Cosmetic debugging output changes.
6053 (SafeAdjustWindowRectEx): Remove. If an application wants to
6054 locate a window outside of the screen, it's not GDK's business to
6055 prevent it. And anyway, with multiple monitors, negative
6056 coordinates are perfectly normal.
6057 (gdk_window_new): Adjust the window size for decorations after
6058 _gdk_window_init_position() has done its job. (But the big window
6059 code currently is presumably broken on Win32 anyway.)
6060 (gdk_window_move): The position passed in is supposed to be that
6061 of the window border, so don't need to adjust for decorations.
6062 (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
6064 Tue Jul 29 13:55:44 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6066 * gtk/gtktoolbar.c (gtk_toolbar_set_style,
6067 gtk_toolbar_prepend_element, gtk_toolbar_append_element,
6068 gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
6069 gtk_toolbar_append_space, gtk_toolbar_insert_item,
6070 gtk_toolbar_prepend_item, gtk_toolbar_append_item,
6071 gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
6072 gtk_toolbar_new, gtk_toolbar_prepend_item):
6074 Move documentation inline from template files.
6076 * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
6077 gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
6078 gtk_toolbar_append_widget, gtk_toolbar_remove_space,
6079 gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
6080 gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
6081 gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
6082 gtk_toolbar_get_style, gtk_toolbar_get_orientation)
6084 Copy documentation from stable that was added after the EggToolbar
6087 * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
6089 Mon Jul 28 18:21:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6091 * gtk+/docs/: Commit autogenerated changes, so patches will make
6094 2003-07-27 Tor Lillqvist <tml@iki.fi>
6096 * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
6097 the keyboard state returned by GetKeyboardState() doesn't
6098 distinguish between the left and right Control and Alt keys. Thus
6099 we cannot detect AltGr (which is supposed to be left Control +
6100 right Alt) the same way as on NT-based systems, but have to accept
6101 either Control + either Alt as AltGr.
6103 2003-07-27 Matthias Clasen <maclas@gmx.de>
6105 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6106 Fix function name in warning message. (#118156, Tim-Philipp
6109 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
6110 is-expander and is-expanded are boolean properties, not ints.
6111 (#118359, Josh Parsons)
6113 Sat Jul 26 15:21:27 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6115 * gtk/gtkimagemenuitem.c
6116 (gtk_image_menu_item_toggle_size_request): don't request
6117 toggle_space when the image width is 0.
6119 2003-07-25 Tor Lillqvist <tml@iki.fi>
6121 * gdk/win32/gdkprivate-win32.h
6122 * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
6123 and _gdk_keyboard_has_altgr.
6125 * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
6126 ones detailled here.
6128 Code that has been ifdeffed out for a long time removed. Remove
6129 some really old doc comments that were left behind for some public
6130 functions, the official ones are in the X11 backend anyway. Change
6131 GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
6132 multi-line boolean expressions to have the operators at ends of
6135 As mouse capture with SetCapture() indeed seems to work OK, no
6136 need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
6138 Ifdef out the gdk-ping-msg stuff. I don't remember why it was
6139 needed at some time, and things seem to work fine now without
6142 Ifdef out the search for some Latin locale keyboard layout being
6143 loaded. Not used currently, but might be needed after all, if we
6144 decide that we want to be able to generate ASCII control character
6145 events with a non-Latin keyboard.
6147 (assign_object): New helper function, handles the g_object_ref()
6148 and unref() calls when assigning GObject pointers.
6150 (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
6151 enter event when the pointer has moved to an ancestor window. Was
6152 left out by mistake.
6154 (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
6156 (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
6157 functionality, using ClipCursor().
6159 (find_window_for_mouse_event): Splice part of code into new
6160 function find_real_window_for_grabbed_mouse_event().
6162 (fixup_event, append_event, apply_filters): New functions, code
6163 refactored out from elsewhere.
6165 (synthesize_enter_or_leave_event, synthesize_leave_event,
6166 synthesize_enter_event,
6167 synthesize_leave_events,synthesize_enter_events): Also take a
6168 GdkCrossingMode parameter, in preparation to generating
6169 GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
6171 (fixup_event, append_event, fill_key_event_string): New functions,
6174 (vk_from_char, build_keypress_event, build_keyrelease_event):
6175 Removed as part of dropping WM_CHAR handling.
6177 (build_key_event_state,gdk_event_translate): Call
6178 GetKeyboardState(), once, for each keyboard message, instead of
6179 several calls to GetKeyState() here and there.
6181 (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
6182 at it, do some major refactoring, and some fixes for potential
6183 problems noticed while going through the code.
6185 Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
6186 WM_KEYUP. Don't need the state variables related to whether to
6187 wait for WM_CHAR or not, and whether the current key is
6188 AltGr. Remove lots of complexity. Thus don't need the
6189 use_ime_composition flag.
6191 Not handling WM_CHAR means dead key handling will have to be taken
6192 care of by GTK, but that seems to work fine, so no worry.
6194 Another side-effect is that Alt+keypad digits don't work any
6195 longer, but it's better to learn to use GTK's ISO14755 support is
6198 Be more careful in checking whether AltGr is involved. Only
6199 attempt to handle it if the keyboard actually has it. And
6200 explicitly check for *left* Control plus *right* Alt being
6201 pressed. Still, allow (left) Alt and/or (right) Control with AltGr
6204 Handle keys using similar code as in the X11 backend. As we have
6205 built a keymap in gdkkeys-win32.c anyway, use it by calling
6206 gdk_keymap_translate_keyboard_state() to look up the keysym from
6207 the virtual key code and keyboard state. Build the key event
6208 string in exactly the same way as the X11 backend.
6210 If an IME is being used, don't generate GDK events for keys
6211 between receiving WM_IME_STARTCOMPOSITION and
6212 WM_IME_ENDCOMPOSITION, as those keys are for the IME.
6214 For WM_IME_COMPOSITION, handle all the Unicode chars returned from
6215 the IME, not just the first one.
6217 gdk_event_translate() is still quite complex, could split the
6218 message handler cases out into separate functions.
6220 On mouse events, when the mouse is grabbed, use
6221 find_real_window_for_grabbed_mouse_event() in order to be able to
6222 generate correct crossing events.
6224 No longer take a pre-allocated GdkEvent as parameter. Instead,
6225 allocate events as needed and append them to the queue. (This is
6226 different from how gdk_event_translate() in the X11 backend
6227 works.) This change made the code much clearer, especially in the
6228 cases where we have to generate several GDK events for one Windows
6229 message. Return FALSE if DefWindowProc() should be called, TRUE
6230 if not. If DefWindowProc() should not be called, also return the
6231 value to be returned from the window procedure.
6233 (Previously, the interaction with gdk_event_translate()'s caller
6234 was much more complex, when we had to indicate whether the
6235 already-queued event should be left in the queue or removed, and
6236 in addition also had to indicate whether to call DefWindowProc()
6237 or not, and what value to return from the window procedure if
6240 Don't use a separate "private" variable required to be pointing to
6241 the GdkWindowObject of the "window" variable at all times. Just
6242 use casts, even if looks a bit uglier.
6244 Notice destroyed windows as early as possible, and break out of
6245 the messsage switch.
6247 Use _gdk_pointer_root as current_window when the pointer is
6248 outside GDK's top-level windows.
6250 On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
6251 appropriate, based on ImmIsIME().
6253 (gdk_event_translate, gdk_event_send_client_message_for_display,
6254 gdk_screen_broadcast_client_message): Implement client messages.
6255 Use a registered Windows message to pass GDK client messages. Note
6256 that the amount of user data is restricted to four bytes, as it is
6257 carried in the LPARAM. (The WPARAM is used for the message type
6260 (real_window_procedure): Adapt for new gdk_event_translate()
6263 * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
6264 _gdk_input_locale_is_ime initially.
6266 * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
6267 of g_colormap_ref()/unref().
6269 (gdk_window_new): Made code a bit more like the X11 one, pretend
6270 to handle screens (although we just have one for now).
6272 * gdk/x11/gdkevents-x11.c
6273 (gdk_event_send_client_message_for_display,
6274 gdk_screen_broadcast_client_message): Document the user data
6275 limitation on Win32.
6277 * gdk/win32/gdkevents-win32.c (print_event): More complete enter
6278 and leave notify detail output.
6280 * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
6281 visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
6282 for those, so that the GtkIMContextCimple compose tables will
6283 work. Deduce if the keyboard layout has the AltGr key, and set the
6284 above flag accordingly.
6286 2003-07-26 Matthias Clasen <maclas@gmx.de>
6288 * gtk/gtkwidget.c: Document DND signals.
6290 2003-07-24 Matthias Clasen <maclas@gmx.de>
6292 * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
6293 insensitive when editing isn't possible. (#118150)
6295 2003-07-23 Matthias Clasen <maclas@gmx.de>
6297 * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue
6298 spinbutton wrap. (#118097, John Darrington)
6300 * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps.
6302 2003-07-20 Hans Breuer <hans@breuer.org>
6304 * makefile.msc : new file to build it all
6305 * Makefile.am : ... added to EXTRA_DIST
6307 * gdk/makefile.msc gtk/stock-icons/makefile.msc
6308 gtk/makefile.msc.in tests/makefile.msc : updated
6310 * gdk/gdk.def gtk/gtk.def : export a bunch of new
6313 * gtk/gtkbbox.c : use g_return_val_if_fail() if
6314 there is a value to return
6316 * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
6319 * gtk/gtkicontheme.c : ported to use GTimeVal instead of
6320 struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
6322 * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
6324 * gtk/gtkimmulticontext.c : use gtkprivate.h
6326 * gtk/stock-icons/stock_color_picker_25.png
6327 gtk/stock-icons/stock_jump_to_rtl_16.png
6328 gtk/stock-icons/stock_jump_to_rtl_24.png
6329 gtk/stock-icons/stock_redo_rtl_16.png
6330 gtk/stock-icons/stock_redo_rtl_24.png
6331 gtk/stock-icons/stock_undelete_rtl_16.png
6332 gtk/stock-icons/stock_undelete_rtl_24.png
6333 gtk/stock-icons/stock_undo_rtl_16.png :
6334 gtk/stock-icons/stock_undo_rtl_24.png :
6337 Sat Jul 19 22:39:24 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6339 * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
6340 leftover request of {xy}thickness
6342 Sat Jul 19 16:26:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6344 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
6345 attempt to add a NULL icon to the box.
6347 Sat Jul 19 12:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6349 * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
6352 2003-07-19 Matthias Clasen <maclas@gmx.de>
6354 * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id.
6355 * gtk/gtkiconfactory.c (get_default_icons): Add
6356 stock_dialog_authentication_48. (#65765)
6357 * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
6358 * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
6361 * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
6364 Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6366 * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
6369 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
6370 (gtk_widget_real_focus_{in|out}_event): queue shallow draws
6371 instead of full draws.
6373 2003-07-18 Matthias Clasen <maclas@gmx.de>
6375 * gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
6377 * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
6378 signal, move_viewport.
6379 (gtk_text_view_move_viewport): New function which implements the
6380 move_viewport functionality.
6381 (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
6382 the viewport. (#78669)
6384 * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
6385 move_viewport argument.
6387 * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
6391 * gtk/gtkwindow.c (gtk_window_set_default_icon): New method. (#95816)
6393 * gtk/gtkmessagedialog.h:
6394 * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
6395 (#65501, Sebastian Rittau)
6397 Fri Jul 18 20:06:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6399 * gtk/gtktextview.c (changed_handler): use
6400 gtk_widget_queue_resize_noredraw().
6402 2003-07-16 Jody Goldberg <jody@gnome.org>
6404 * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
6406 Fri Jul 18 19:55:50 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6408 * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
6411 Fri Jul 18 18:43:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6413 By popular request give toolbuttons a border.
6416 (gtk_tool_item_size_allocate):
6417 (gtk_tool_item_size_request): don't request and allocate a border
6420 * gtk/gtktoolbutton.c
6421 (gtk_tool_button_size_allocate):
6422 (gtk_tool_button_size_request): remove these functions
6425 (gtk_toolbar_size_request):
6426 (gtk_toolbar_size_allocate): request and allocate a border if we
6429 Thu Jul 17 19:24:51 2003 Kristian Rietveld <kris@gtk.org>
6433 Fixes issues pointed out by Morten Welinder in #115140.
6435 * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
6436 (do_validate_rows): update validated_area with a logic OR instead
6438 (validate_rows_handler): make the if statement match the one in
6439 validate_rows(), so we don't leak the timeout.
6441 Thu Jul 17 19:12:02 2003 Kristian Rietveld <kris@gtk.org>
6445 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
6446 should only grab focus back if the "cell_editable" widget still
6447 has focus. (Fixes #110104, testcase provided by Marco Pesenti
6450 Thu Jul 17 19:06:34 2003 Kristian Rietveld <kris@gtk.org>
6454 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
6455 Don't set attr.event_mask twice, those things were meant to be
6456 ORred. (#115139, pointed out by Morten Welinder).
6458 Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
6462 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
6463 if needed. (Fixes #115869, reported by Michael Natterer).
6465 2003-07-15 Matthias Clasen <maclas@gmx.de>
6467 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
6468 Fight against gtk-doc stupidity.
6470 2003-07-13 Matthias Clasen <maclas@gmx.de>
6472 * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
6473 targets, to pacify gtk-doc.
6475 Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6477 * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
6478 label_text, label_widget and icon_widget. (#117312,
6481 Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6483 * gtk/gtkmenu.c (gtk_menu_class_init): new properties
6484 "horizontal-offset" and "vertical-offset" that determines the
6485 position of the menu when it is a submenu.
6487 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
6488 submenus according to new vertical- and horizontal-offset
6491 Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
6495 * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
6496 case drags to "0", scroll to the top after dropping. (Fixes #94968,
6497 reported by Alp Toker).
6499 Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
6503 * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
6504 code (#115784, Owen Taylor).
6506 Sat Jul 12 16:01:03 2003 Kristian Rietveld <kris@gtk.org>
6510 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
6511 free the old text and extra_attrs *after* we parsed the new
6512 markup string. (Fixes #114485, reported by Owen Taylor).
6514 Sat Jul 12 15:51:33 2003 Kristian Rietveld <kris@gtk.org>
6518 Fixes #113904, testcase provided by Rene Seindal.
6520 * gtk/gtktreeview.c (gtk_tree_view_button_press): set
6521 pressed_button to -1 when a row has been activated,
6522 (gtk_tree_view_motion_bin_window): only start a drag if there's
6523 a button being pressed.
6525 Sat Jul 12 15:51:18 2003 Kristian Rietveld <kris@gtk.org>
6529 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
6530 gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
6531 to avoid a roundtrip (#110272, Owen Taylor).
6533 Sat Jul 12 15:28:26 2003 Kristian Rietveld <kris@gtk.org>
6537 This patch really really fixes scrolling. Related bugs: #81627,
6538 testcase provided by Timo Sirainen, #111500, testcase provided by
6539 manu, #113241, reported by Pedro Gimeno/Michael Natterer.
6541 * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
6542 which is equal to the lower border of the window means scrolling
6543 to an invisible row, always update the dy when scrolling to an
6544 invisible row, corrected area_above/below calculations for
6545 invisible rows, when walking the tree correct the size
6546 subtracted for invalidated rows, fix wrong logic in comment.
6548 2003-07-11 Matthias Clasen <maclas@gmx.de>
6550 * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
6551 mime_types. (#117219, Steve Chaplin)
6553 Tue Jul 8 20:11:04 2003 Owen Taylor <otaylor@redhat.com>
6555 * gdk/x11/gdkevents-x11.c (get_real_window)
6556 gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
6557 gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
6558 gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
6559 Don't assume that all events start with XEventAny - Xkb events
6560 don't! (#105745). So, only do that for core events, and for
6561 non-core events, add a system for registering event types
6562 that start with XEventAny.
6564 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
6565 Check to see if the result of gdk_window_lookup_for_display()
6566 is actually a window.
6568 Fri Jul 11 20:48:14 2003 Kristian Rietveld <kris@gtk.org>
6570 * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
6571 check a silent assert, so it follows the g_free() behaviour.
6573 2003-07-11 Matthias Clasen <maclas@gmx.de>
6575 * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents
6576 vertically. (#109823, Joe Shaw)
6578 2003-07-11 Morten Welinder <terra@gnome.org>
6580 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
6581 access error. (#69436)
6583 Fri Jul 11 14:32:43 2003 Kristian Rietveld <kris@gtk.org>
6585 Landing GtkTreeModelFilter and the completion code. (Test program
6586 and documentation will follow next week).
6588 * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
6589 gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
6591 * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
6592 necessary code to hook up completion.
6594 * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
6595 GtkCellLayout interface.
6597 * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
6599 * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
6602 Wed Jul 9 19:48:26 2003 Kristian Rietveld <kris@gtk.org>
6606 * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
6607 directly return from ->window_at_pointer, but set win_x and win_y
6608 first if needed. (Fixes #110166, reported by Arno Charlet).
6610 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
6611 function to accept GdkDrawables and not just GdkWindows. This was
6612 already done in some other functions a while back, but this patch
6613 got lost for some reason.
6615 2003-07-09 Matthias Clasen <maclas@gmx.de>
6617 * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
6618 direction when sorting children. (#116540, Soeren Sandmann)
6620 Tue Jul 8 17:36:21 2003 Owen Taylor <otaylor@redhat.com>
6622 * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c:
6623 Change _gdk_x11_send_xevent_async() to
6624 _gdk_x11_send_client_message_async() avoid using Xlib
6625 internals that are different on Solaris.
6626 (#116917, Morten Welinder)
6628 2003-07-08 Matthias Clasen <maclas@gmx.de>
6630 * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
6631 (#116501, Doug Quale)
6633 Tue Jul 8 21:35:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6635 * gtk/gtktoggletoolbutton.h: remove strange #define
6636 * gtk/gtktoolbutton.h: fix cut'n'paste error
6637 * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
6639 * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
6640 private data instead of g_new0()
6641 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
6642 instance private data
6644 Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6646 * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
6647 for INPUT_ONLY window
6648 * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
6649 * gtk/gtknotebook.c (gtk_notebook_realize): same
6650 * gtk/gtkexpander.c (gtk_expander_realize): same
6651 * gtk/gtkrange.c (gtk_range_realize): same
6655 Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6657 * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
6658 when detail is "menuitem". With the new menu look is isn't needed
6661 * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
6662 resize here, so that tool items will get a chance to relayout
6663 themselves based on the toolbar configuration.
6665 change DEFAULT_SPACE_SIZE to 4 instead of 5
6668 Get rid of "!GTK_BIN (item)->child means separator". Separators
6669 are widgets in their own right
6671 change DEFAULT_SPACE_SIZE to 4 instead of 5
6673 (get_space_size): remove this function
6674 (toolbar_item_is_homogeneous): new function
6676 * gtk/gtkseparatortoolitem.c
6677 (gtk_separator_tool_item_size_request): new function.
6679 Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6681 * gtk/gtktoggletoolbutton.h: use private data, add new
6682 internal function _gtk_toggle_tool_button_get_button()
6684 * gtk/gtktoolbutton.h: move to private data
6686 * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
6689 Tue Jul 8 12:50:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6691 * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
6692 type check, (#116947, Krasimir Angelov)
6694 * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
6696 * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
6697 data. Not instance private data yet, because of bug 116921.
6699 * gtk/gtktoolitem.h: new accessors:
6700 gtk_tool_item_get_homogeneous ()
6701 gtk_tool_item_get_expand ()
6702 gtk_tool_item_get_pack_end ()
6703 gtk_tool_item_get_use_drag_window ()
6705 Mon Jul 7 16:50:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6707 * gtk/gtkcellrenderertext.c
6708 (gtk_cell_renderer_text_class_init): remove accidentally committed
6712 (gtk_toolbar_paint_space_line): remove this function
6713 (gtk_toolbar_expose): always propagate expose, even if the item is
6716 * gtk/gtkseparatortoolitem.c
6717 (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
6718 (get_space_size): new function.
6719 (get_space_style): new function
6721 Sun Jul 6 13:00:20 2003 Owen Taylor <otaylor@redhat.com>
6723 * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
6724 * gtk/gtkdnd.c (gtk_drag_begin_internal): Remove use
6725 of GDK_POINTER_MOTION_HINT_MASK.
6727 * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
6728 of the drag into an idle as a superior form of
6731 * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
6732 creation here, so that we have an icon at the start
6733 of the drag (e.g., when retrieving the window cache
6736 Sun Jul 6 17:21:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6738 * docs/widget_geometry.txt: better drawing of GtkMenuItem
6739 * docs/widget_geometry.txt: add notes about GtkMenu
6740 * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
6742 Sat Jul 5 10:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6744 * gtk/gtkmenu.c: add vertical_padding style property.
6746 * gtk/gtkmenuitem.c: add style properties toggle_spacing,
6747 arrow_spacing and horizontal_padding. Also center separators and
6748 make them a bit taller.
6750 * gtk/*menuitem.c: use new style properties.
6752 * docs/widget_geometry.txt: Add note about GtkMenuItem
6755 (gtk_default_draw_vline, gtk_default_draw_hline):
6758 (gtk_default_draw_shadow): draw a black border around menus.
6760 * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
6761 calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
6762 x2 and y1, y2 respectively, not x, width and y, height).
6764 Sat Jul 5 09:55:38 2003 Owen Taylor <otaylor@redhat.com>
6766 * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
6767 all the atoms in the target list at once.
6769 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
6770 Local drag short-circuit.
6772 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
6773 local case, poke the actions in directly instead of
6774 going through xdnd_set_actions.
6776 * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
6779 * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
6780 XSelectInput()/add a filter if the drag is local.
6782 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection):
6783 Simplify handling of "XdndSelection".
6785 * gdk/x11/gdkevents-x11.c
6786 (gdk_event_send_client_message_to_all_recurse): Somehow,
6787 a WM_STATE => _NET_WM_STATE change hand been made here.
6789 * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
6790 xatom_names, not atom_names.
6792 * tests/testdnd.c (target_drag_motion): Make the trashcan
6793 open again. (Got lost in deprecation cleanup.)
6795 Sat Jul 5 00:49:32 2003 Owen Taylor <otaylor@redhat.com>
6797 * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
6798 earlier, so we don't get a big pile of uncompressed
6799 motion events before the grab takes effect.
6801 * gtk/gtkdnd.c (gtk_drag_update_icon): Call
6802 gdk_window_process_all_updates() so that the area
6803 we are dragging over gets a change to redraw.
6805 * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use
6806 gdk_window_get_position(), not gdk_window_get_origin().
6808 * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
6809 gdkdisplay-x11.h: use XShapeQueryExtension to
6810 avoid duplicate XQueryExtension when we actually
6811 use it. Remove unnecessary caching in GdkDisplayX11.
6813 Fri Jul 4 23:49:22 2003 Owen Taylor <otaylor@redhat.com>
6815 * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info):
6816 Function to get a range of information about all the
6817 children of a window in a single pass.
6819 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
6820 gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
6821 _gdk_x11_get_window_child_info() to greatly reduce
6822 the number of roundtrips.
6824 Fri Jul 4 22:57:18 2003 Owen Taylor <otaylor@redhat.com>
6826 * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
6827 a function to XSendEvent() and call a calback on
6830 * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
6831 messages to the same process, use _gdk_send_xevent_async().
6833 Fri Jul 4 22:26:27 2003 Owen Taylor <otaylor@redhat.com>
6835 * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
6836 toplevel-specific pieces of GdkWindowImplX11 into
6837 a separate GdkToplevelX11 structure.
6839 Fri Jul 4 22:05:09 2003 Owen Taylor <otaylor@redhat.com>
6841 * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
6842 some leftover fields.
6844 Fri Jul 4 15:57:52 2003 Owen Taylor <otaylor@redhat.com>
6846 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
6847 Use asynchronously _gdk_x11_set_input_focus_safe
6848 to avoid having to trap errors and XSync().
6850 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
6851 _gdk_x11_set_input_focus_safe() here as well.
6853 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
6854 Rework handling of property notifies on _NET_WM_STATE
6855 so that we ignore _NET_WM_DESKTOP notifies unless we
6858 * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
6859 XShmQueryExtension() rather than XQueryExtension() to
6860 avoid extra rountrip.
6862 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
6863 Remove unused call to XGetWindowAttributes()
6865 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
6866 unused call to XGetKeyboardControl().
6868 * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
6871 * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
6872 No-op implementations of gdk_display_flush().
6874 * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
6875 gdk_display_flush() rather than gdk_flush() to avoid
6878 * gdk/x11/gdkwindow-x11.c (update_wm_hints)
6879 gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
6880 so that we don't have to get the property back from the server.
6882 * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
6883 the serial of when we map a toplevel to allow optimizing
6884 out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
6886 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
6887 XTranslateCoordinates() for override-redirect windows.
6889 Fri Jul 4 15:59:27 2003 Owen Taylor <otaylor@redhat.com>
6891 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
6892 about setting window group after the window is mapped from docs
6893 - nothing the ICCCM forbids that.
6895 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
6896 Fix g_return_val_if_fail() in void return function.
6898 * configure.in: Fix misplaced comma that was resulting
6899 in XShm always being disabled.
6901 Fri Jul 4 19:55:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6903 * tests/stresstest-toolbar: remove this accidentally committed
6906 * tests/stresstest-toolbar.c: really add this new test
6908 Fri Jul 4 19:06:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6910 * tests/stresstest-toolbar.c: new test for removing items
6912 * tests/testtoolbar.c: add a popup menu
6914 * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
6915 assert widget->parent == container when the container is a
6918 * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
6919 simpler. Also make correct.
6921 * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
6922 popup_context_menu a boolean handled signal.
6924 2003-07-04 Tor Lillqvist <tml@iki.fi>
6926 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
6927 gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
6928 the width and height of the bounding rectangle only after the
6929 minumum x and y have been found, and need a separate loop for
6930 it. Thanks to Bruce Hochstetler for providing a sample program
6933 2003-07-03 Tor Lillqvist <tml@iki.fi>
6935 * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
6936 (#116537, Peter Zelezny)
6938 Thu Jul 3 03:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6940 * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
6941 fix warning. Assign something to old_value to quiet gcc
6944 (start_spinning): gtk_timeout_add->g_timeout_add
6946 * gtk/gtkicontheme.c
6947 (theme_lookup_icon): Make it compile (remove double semicolon)
6949 * gtk/gtktoolbutton.c
6950 (gtk_tool_button_class_init): Long comment about properties.
6951 (gtk_tool_button_class_init): Improve text for "use_underline"
6953 (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
6954 on whether the passed-in label has use_mnemonic set
6955 (gtk_tool_button_create_menu_proxy): Split image cloning out in
6956 new function. Make that function also handle image with pixbuf
6958 (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
6959 instead of gtk_container_remove().
6960 (gtk_tool_button_construct_contents): Fix eliding bug
6963 (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
6965 (gtk_toolbar_button_press): Make popup_context_menu signal provide
6966 coordinates and button number
6968 * tests/testtoolbar.c (main): Add new pixbuf toolbutton
6970 * tests/apple-red.png: new file
6972 Wed Jul 2 18:00:56 2003 Owen Taylor <otaylor@redhat.com>
6974 * gtk/gtkicontheme.[ch]: Implement a loader for
6975 named themed icon based on from gnome-desktop library
6978 * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
6981 * gtk/gtkiconfactory.[ch]: Add
6982 gtk_icon_source_set/get_icon_name() to allow stock icons
6983 to be based off of named theme icons.
6985 * gtk/gtkiconfactory.c: Rework sources so that the source
6986 is *either* a pixbuf, or a filename, or an icon name,
6987 instead of the pixbuf/filename mix it was before. Put a
6988 workaround for get_pixbuf() so that it can return the
6989 filename pixbuf, e.g, for render_icon().
6991 * gtk/gtkiconfactory.c: Make the default setup use
6992 themed icons, and add builtin icons to the default
6993 icon theme for all the standard pixbufs, so we
6994 don't rely on actually having an icon theme on disk.
6996 * gtk/gtkrc.c: Add support for @"icon-name" to specify
6997 a themed icon for a stock icon source.
6999 * tests/Makefile.am test/testicontheme.c: Add a test
7000 program from gnome-desktop.
7002 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
7003 Net/IconThemeName / gtk-icon-theme-name setting.
7005 * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
7006 update the icon cache serial so we don't continually
7007 think we are out-of-date.
7009 * gtk/gtkwidget.c: Fix a couple of references in doc comments
7010 to ::direction_set that should have been to ::direction-changed
7012 Wed Jul 2 14:45:41 2003 Owen Taylor <otaylor@redhat.com>
7014 * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
7015 style to the widget.
7017 Wed Jul 2 15:42:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7019 * gtk/gtk.h: Add new toolbar headers
7021 * tests/testtoolbar.c: new file
7023 * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
7025 * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
7027 Tue Jul 1 22:49:25 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7030 (gtk_toolbar_remove_tool_item): Fix bug where list is changed
7031 inside a for loop (pointed out by Morten Welinder).
7032 (gtk_toolbar_focus_home_or_end): Minor formatting change
7036 * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
7037 gtk_toolbar_elide_underscores instead.
7039 * gtk/gtktoolbar.c: rename signal from focus_ends to
7041 (_gtk_toolbar_elide_underscores): export this as an internal
7043 (gtk_toolbar_move_focus): add comment explaining difference to
7044 gtk_toolbar_focus();
7045 (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
7046 TAB_BACKWARD focus the right widgets in RTL mode
7048 * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
7049 "label" and "icon" parameters
7051 * gtk/gtktoolbutton.[ch]: remove icon_set property.
7053 2003-07-01 Matthias Clasen <maclas@gmx.de>
7055 * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
7056 (116364, Morten Welinder)
7058 * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
7059 corresponding dialogs.
7061 * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
7063 (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c.
7065 * gtk/gtkfontbutton.[hc]: New files containing a font picker widget.
7067 * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget.
7069 * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
7071 * gtk/gtkexpander.c: Small additions to the docs.
7073 2003-07-01 Tor Lillqvist <tml@iki.fi>
7075 * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
7076 WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
7078 2003-07-01 Matthias Clasen <maclas@gmx.de>
7080 * configure.in: Check for Xcursor.
7082 * gdk/x11/gdkcursor-x11.c:
7084 * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
7085 gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
7086 gdk_display_supports_cursor_color(),
7087 gdk_display_get_default_cursor_size() and
7088 gdk_display_get_maximal_cursor_size(). (#69436)
7090 2003-06-30 Tor Lillqvist <tml@iki.fi>
7092 * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
7093 callback proc for EnumWindows().
7094 (gdk_drag_find_window_for_screen): Actually take the drag_window
7095 argument into account: Instead of using WindowFromPoint(), use
7096 EnumWindows(), to be able to skip the drag_window. (#116320, Tony
7097 M Brown, Herman Bloggs)
7099 * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
7100 gdk_window_ref()/unref() calls with g_object_ref()/unref().
7101 Consistently use %p format in debugging output of pointers and
7104 2003-06-30 Mark McLoughlin <mark@skynet.ie>
7106 * gtk/gtkexpander.h: kill some stray characters
7109 2003-06-30 Mark McLoughlin <mark@skynet.ie>
7111 Add GtkExpander. See discussion in bug #60553.
7113 * gtk/gtkexpander.[ch]: add.
7115 * gtk/Makefile.am: build gtk-expander.[ch].
7117 * docs/widget_geometry.txt: add info on the layout
7120 Mon Jun 30 01:20:19 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7122 * gtkradiotoolbutton.c: new file
7123 * gtkradiotoolbutton.h: "
7124 * gtktoggletoolbutton.c: "
7125 * gtktoggletoolbutton.h: "
7126 * gtktoolbutton.c: "
7127 * gtktoolbutton.h: "
7130 * gtktoolbar.c: many changes
7131 * gtktoolbar.h: many changes
7132 * gtkseparatortoolitem.c: new file
7133 * gtkseparatortoolitem.h "
7137 - Items on a toolbar are now separate widgets, instances of a
7138 subclass of GtkToolItem.
7140 - Items there aren't room for on the toolbar are unmapped, and an
7141 overflow menu with a proxy menu item is added instead.
7143 - The toolbar is keyboard navigatable. Press TAB to focus the
7144 first item, then use arrow keys and Ctrl TAB to move around the
7145 toolbar. TAB moves focus out of the toolbar.
7147 - Bascially all of the old toolbar API is deprecated in favor of
7148 new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
7150 - The toolbar is backwards compatible with the old toolbar.
7152 2003-06-29 Matthias Clasen <maclas@gmx.de>
7154 * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
7155 from docs, some more formatting fixes.
7157 2003-06-28 Tor Lillqvist <tml@iki.fi>
7159 Fix for #111028, thanks to J. Ali Harlow, who writes:
7160 I found that the GdkPixmap->GdkImage reference really isn't
7161 important. It's only really there to have somewhere convenient to
7162 store the location of the pixel data in the pixmap and as an easy
7163 way of accessing the dimensions of that data. I have therefore put
7164 together a fix which removes this reference entirely which seems
7165 to solve the problem.
7167 * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
7168 Instead of a pointer to a GdkImage, keep a pointer to the pixels
7171 * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
7172 (_gdk_win32_new_image): New function, replacing the above. Creates
7173 a GdkImage without any associated GdkPixmap.
7174 (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
7176 * gdk/win32/gdkprivate-win32.h: Remove from here, too.
7178 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
7179 * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
7180 * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
7181 * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
7182 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
7183 gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
7184 Corresponding changes.
7186 Thu Jun 26 21:41:16 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7188 * gtk/gtktreeviewcolumn.c
7189 (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
7190 and "is_expanded" if the new value is different fromt he old one.
7192 Wed Jun 25 18:59:15 BST 2003 Tony Gale <gale@gtk.org>
7194 * docs/faq/gtk-faq.sgml: Fix typos. Update
7195 thread example I missed yesterday.
7197 2003-06-24 Matthias Clasen <maclas@gmx.de>
7199 * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
7202 * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
7203 (gtk_widget_class_list_style_properties): Use same parameter names as in
7204 header (to silence gtk-doc).
7206 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
7208 Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
7210 * docs/faq/gtk-faq.sgml: Thread support updates
7211 from Owen. Various suggestions from Steve Chaplin.
7213 2003-03-24 Mohammad DAMT <mdamt@bisnisweb.com>
7215 * po/id.po: Updated Indonesian translation
7217 2003-06-21 Tor Lillqvist <tml@iki.fi>
7219 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
7220 emulating X11's automatic grab on button down, pass owner_events
7221 as FALSE. According to the XLib spec, automatic grabs use True for
7222 owner_events when OwnerGrabButtonMask is selected, and I don't see
7223 the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
7224 (find_window_for_pointer_event): Improve debugging output.
7226 2003-06-17 Tor Lillqvist <tml@iki.fi>
7228 * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
7229 subdirectory, where libtool 1.5 installs them.
7231 * README.win32: Point to FSF's binary Win32 distribution of
7234 2003-06-17 Matthias Clasen <maclas@gmx.de>
7236 * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
7237 macros to check for XML catalog contents and path, borrowed from
7239 * configure.in: New option --enable-man to enable regeneration of
7240 man pages from Docbook, if the necessary tools are found.
7242 2003-06-15 Matthias Clasen <maclas@gmx.de>
7244 * gtk/gtkcalendar.c (gtk_calendar_class_init):
7245 * gtk/gtknotebook.c (gtk_notebook_class_init):
7246 * gtk/gtkalignment.c (gtk_alignment_class_init):
7247 * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
7250 * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs
7251 to the proper place, immediately before the g_signal_new() call.
7253 * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags
7254 more obvious. (#115122, Jeff Franks)
7256 2003-06-12 Anders Carlsson <andersca@codefactory.se>
7258 * gtk/gtkwidget.c: (event_window_is_still_viewable):
7259 Special case pixmaps. (#114880)
7261 2003-06-12 Matthias Clasen <maclas@gmx.de>
7263 * gtk/gtkwidget.c: Document child-notify and drag-data-received
7264 signals. Owen, we need to figure out where the best place for
7265 these comments in the source is. I currently put them in front of
7268 2003-06-11 Matthias Clasen <maclas@gmx.de>
7270 * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
7272 Thu Jan 12 01:01:19 2003 Kristian Rietveld <kris@gtk.org>
7274 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7275 silly typo fix. s/seperator/separator/. This gets rid of the
7276 assert spam when using TreeView.
7278 Tue Jun 10 11:23:48 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7280 * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
7281 function for XIM instantiate callback.
7282 * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
7283 where call to XOpenIM() or XRegisterIMInstantiateCallback() is
7285 * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
7286 for XIM's destroy callback.
7287 * modules/input/gtkimcontextxim.c (get_im): add a check if info->im
7288 is set or not - if it's not set, call xim_info_try_im() to try to
7290 * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
7291 filter_key_release flag of the context.
7292 * modules/input/gtkimcontextxim.c (get_ic_real): removed
7293 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
7294 code from the removed get_ic_real().
7296 For XIM instantiation, destruction and re-instantiation. With
7297 this, Gtk+ apps will be able to connect or reconnect to the XIM,
7298 when it starts after the apps, or when the XIM gets lost and recover.
7301 Mon Jun 10 01:12:31 2003 Kristian Rietveld <kris@gtk.org>
7305 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
7306 check if width is !null, not *width. Doh.
7308 Tue Jun 10 01:09:33 2003 Kristian Rietveld <kris@gtk.org>
7312 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7313 Remove the weird dx logic, get all cell_area and background_area
7314 calculations right. Not sure what was up with it before. (Fixes
7315 #110989, testcase from Vasco Alexandre da Silva Costa).
7317 Tue Jun 10 00:58:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7319 * tests/testgtk.c: Make it compile with C89 compilers
7321 2003-06-10 Matthias Clasen <maclas@gmx.de>
7323 * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
7324 property "overwrite".
7325 (gtk_text_view_[gs]et_property): Handle "overwrite".
7326 * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
7327 and setter for "overwrite" property. (#110241, Jeroen Zwartepoorte)
7329 2003-06-09 Matthias Clasen <maclas@gmx.de>
7331 * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
7332 properties "resize" and "shrink".
7333 (gtk_paned_[gs]et_child_property): Implementations of
7334 GtkContainer::[gs]et_child_property.
7335 * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
7336 paned child properties instead of remove/add hacks. (#114667,
7339 Mon Jun 9 16:18:11 2003 Owen Taylor <otaylor@redhat.com>
7341 * gtk/gtknotebook.c (gtk_notebook_button_press): Back
7342 out event->window test - it wasn't needed because
7343 of the call to get_widget_coordinates().
7345 * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
7346 call to gtk_widget_grab_focus() when not clicking on
7347 any tabs. (Real fix for #114534)
7349 Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
7351 * tests/testdnd.c: Use application/x-rootwindow-drop for
7352 root window drops. (#108670, Alex Larsson)
7354 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
7355 Accept either application/x-rootwin-drop (what GTK+ has always used)
7356 or application/x-rootwindow-drop (what the XDND standard specifies).
7358 Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
7360 * gtk/gtkwidget.c (event_window_still_viewable):
7361 Before delivering an event to a widget, check that
7362 (if relevant), the event's window is still viewable.
7363 (#105642, Dennis Björklund)
7365 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
7366 NULL out private->parent, since after destruction
7367 it might not be valid any more.
7369 * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
7370 accesses before g_return_val_if_fail(). Treat
7371 DESTROYED windows as unmapped.
7373 Thu Jun 5 09:28:03 2003 Owen Taylor <otaylor@redhat.com>
7375 * gtk/gtkentry.c: Recompute unconditionally in
7376 gtk_entry_style_set, and in a new gtk_label_screen_changed().
7377 Protect the guts of recompute_idle_func() with
7378 gtk_widget_has_screen(). (#114040, Morten Welinder)
7379 Fix FALSE/0 confusion.
7381 Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7383 * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
7386 Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
7388 * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
7389 set_adjustment (viewport, NULL);
7391 2003-06-07 Matthias Clasen <maclas@gmx.de>
7393 * gtk/gtkiconfactory.c (get_default_icons):
7394 * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
7395 * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
7396 undelete and revert. (#96633)
7398 Fri Jun 6 16:25:44 2003 Owen Taylor <otaylor@redhat.com>
7400 * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
7401 refactoring of code to reduce duplication; fixes include:
7403 - gtk_viewport_realize(): Position the window correct from adjustment
7404 values. (#110737, Michael Natterer)
7406 - Remove some division-by-zero checks in places where there is no
7407 longer division. (#110737)
7409 - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
7410 G_PARAM_CONSTRUCT, so that there will always be adjustments, even
7411 if gtk_viewport_new isn't used (#101135, Thomas Leonard).
7413 - Switch over to encapsulated lazy-creation for hadjustment/
7414 vadjustment; even with the CONSTRUCT property, we need this after
7417 - When updating the adjustment, immediate set their values to
7418 match the the current range of the viewport, and update the
7419 viewport position to match the value of the new adjustments.
7422 2003-06-06 Tor Lillqvist <tml@iki.fi>
7424 * gdk/win32/gdkprivate-win32.h: Fix typo.
7426 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
7427 graphics_exposures and subwindow_mode, too, even if they aren't
7430 Fri Jun 6 23:38:23 2003 Kristian Rietveld <kris@gtk.org>
7434 * gtk/gtktreeview.c (do_expand_collapse),
7435 (expand_collapse_timeout), (cancel_arrow_animation): made
7436 expand_collapse_timeout a wrapper with locks around
7437 do_expand_collapse, made cancel_arrow_animation use
7438 do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
7441 Fri Jun 6 11:05:45 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7443 * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
7444 * modules/input/gtkimcontextxim.c (preedit_start_callback,
7445 preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
7446 to keep preedit-[start,changed,end] signals from being called during
7447 finalization (#111861).
7449 2003-06-05 Noah Levitt <nlevitt@columbia.edu>
7451 * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
7452 presses that are not on the tab (#114534).
7454 Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
7456 * demos/Makefile.am: Conditionalize dependencies for
7457 gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe).
7458 Buildtest-inline-pixbufs.h in srcdir. Don't try to build
7459 test-inline-pixbufs.h if we don't have libpng.
7461 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
7462 Add a dependency on gdk-pixbuf.loaders when not
7463 cross-compiling, remove the dependency on gdk-pixbuf-csource
7464 when not cross compiling.
7466 Thu Jun 5 20:12:51 2003 Owen Taylor <otaylor@redhat.com>
7468 * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
7469 gtk_window_get_geometry_info() returning NULL.
7470 (#107311, John Finlay)
7472 Thu Jun 5 19:24:33 2003 Owen Taylor <otaylor@redhat.com>
7474 * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
7475 twice the border width from the width/height, not
7476 1x the border width. (#106336, Rodney Dawes)
7478 Thu Jun 5 15:33:38 2003 Owen Taylor <otaylor@redhat.com>
7480 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
7481 If at the end of the buffer, move to the end iter -
7482 parallels behavior of move_iter_to_previous_line.
7483 (#81960, Padraig O'Briain)
7485 Thu Jun 5 16:12:54 2003 Owen Taylor <otaylor@redhat.com>
7487 #80023, Yao Zhang, TOKUNAGA Hiroyuki
7489 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
7490 Account for the preedit cursor offset if the iter passed
7491 in is at the same place as the insertion cursor.
7493 * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
7494 Encapsulate getting the insertion cursor location.
7496 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
7497 Pass the real y/height to the IM context. Take
7498 text_view->x/yoffset into account.
7500 Thu Jun 5 16:52:54 2003 Owen Taylor <otaylor@redhat.com>
7502 * gtk/gtktextview.[ch]: Never scroll on focus in
7503 (#81893, Patch from Paolo Maggi)
7505 * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
7506 Scroll to the current cursor location before handling
7507 the action, in case the user just tabbed in
7508 and the cursor is offscreen.
7510 Thu Jun 5 17:20:40 2003 Owen Taylor <otaylor@redhat.com>
7512 #107883, Gustavo Giráldez
7514 * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
7515 Split out the case where we know we changed, and
7516 already dealt with our cached line being invalidated
7517 from external calls to gtk_text_layout_changed.
7519 * gtk/gtktextlayout.c (gtk_text_layout_changed):
7520 Check if the invalidate yrange intersects our
7521 cached line, and clear it if necessary.
7523 2003-06-05 Tor Lillqvist <tml@iki.fi>
7525 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
7528 2003-06-05 Matthias Clasen <maclas@gmx.de>
7530 * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
7531 (gtk_text_view_grab_notify):
7532 (gtk_text_view_state_changed): Implement these
7533 to unobscure cursor when grab shadowed or insensitised.
7534 (gtk_text_view_unobscure_mouse_cursor): New function to undo the
7535 effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
7536 gtk_text_view_motion_event().
7537 (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
7539 * gtk/gtktextview.c (select_all): New keybinding signal for
7540 (un)selecting the whole buffer. Bound to C-a/C-\. (see #107889)
7542 * gtk/gtkcalendar.c (calendar_timer):
7543 (stop_spinning): Replace deprecated gtk_timeout_* functions by
7544 their GLib counterparts. (#114429)
7546 * gtk/gtktreestore.c (gtk_tree_store_new):
7547 * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on
7550 Wed Jun 4 19:42:17 2003 Owen Taylor <otaylor@redhat.com>
7552 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
7553 When drawing underlines, join up adjacent runs
7554 where possible, so we don't get changes in
7555 shaper/font/etc. breaking underlines. (#103662,
7558 Wed Jun 4 19:22:58 2003 Jonathan Blandford <jrb@redhat.com>
7560 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
7561 Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
7562 improve the speed of inserting rows into an already sorted list,
7565 Wed Jun 4 19:24:28 2003 Owen Taylor <otaylor@redhat.com>
7567 * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
7568 track of when we have a clip mask set for the GC,
7569 and when we unset it, or switch to a clip region,
7570 immediately call XSetClipMask (..., None) to avoid
7571 Xlib caching stale data. (#111806)
7573 * gtk/gtktextdisplay.c: Don't set a clip mask
7574 when drawing alpha pixmaps; it isn't necessary any more.
7577 Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
7579 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
7580 gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
7581 Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
7584 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
7585 gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
7586 Use state_type = STATE_INSENSITIVE for insensitive menu items.
7588 Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
7592 * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
7593 assert for get_info. (reported by Michael Natterer),
7594 (gtk_tree_view_expand_all_emission_helper),
7595 (gtk_tree_view_expand_all_helper): emit row_expanded for all
7596 expanded rows during an _expand_all operation. (Fixes #111280,
7597 reported by Benjamin Bayart).
7599 Tue Jun 3 18:32:30 2003 Owen Taylor <otaylor@redhat.com>
7601 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
7602 respond to pings on a root window; prevents infinite
7603 loops if we are selecting for SubstructureNotify on the
7604 root window. (#111945, Sergey V. Udaltsov)
7606 Tue Jun 3 17:39:16 2003 Owen Taylor <otaylor@redhat.com>
7608 #71597, reported by Morten Welinder
7610 * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
7611 (Patch from Christian Petig)
7613 * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
7614 Major rewrite of 555 and 565 conversion routines:
7616 - Move all the bit shifting into a small block of macros,
7617 eliminating much duplication of complicated arithmetic.
7618 - Get rid of 2-pixels at a time code, which was buggy,
7619 hard to maintain, caused unaligned accesses, and
7620 probably didn't actually perform any better.
7621 - Simplify cases where different data types were
7622 used for the little and big endian cases, use
7623 GUINT16_SWAP_LE_BE() where appropriate.
7625 Tue Jun 3 15:05:47 2003 Owen Taylor <otaylor@redhat.com>
7627 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
7628 bad optimization for src_rowstride == dest_stride.
7629 (Didn't consider the case where we were copying only
7630 partial widths of a wider source buffer)
7631 (#113034, reported by Hans Petter Jansson)
7633 2003-06-03 Michael Natterer <mitch@gimp.org>
7635 * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
7636 reenabled button_release events for xinput devices. (#113948)
7638 2003-06-03 Christian Rose <menthos@menthos.com>
7640 * configure.in: Added "li" to ALL_LINGUAS.
7642 Mon Jun 2 18:58:54 2003 Owen Taylor <otaylor@redhat.com>
7644 * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
7645 map the event window if the notebook isn't mapped. (#113980,
7648 2003-06-02 Sven Neumann <sven@gimp.org>
7650 * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
7652 * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
7654 2003-06-01 Matthias Clasen <maclas@gmx.de>
7656 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add
7657 Since: 2.4 to the docs.
7659 * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
7660 an example to the docs. (#98427)
7662 2003-05-30 Murray Cumming <murrayc@usa.net>
7664 * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
7665 gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
7666 uses the new private data system - see g_type_class_add_private() in
7667 gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
7669 2003-05-30 Matthias Clasen <maclas@gmx.de>
7671 * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
7672 signature of gtk_notebook_draw_arrow() for Solaris builds to go
7673 through. (#114043, Anand Subramanian)
7675 Thu May 29 18:30:35 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7677 * modules/input/imipa.c:
7678 use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
7680 Thu May 29 18:08:01 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7682 * gtk/gtkimmodule.c (_gtk_im_module_list):
7683 use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
7685 Thu May 29 09:34:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7687 * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
7688 label of default input method localizable.
7689 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7690 use translations of input method context names
7691 * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
7692 modules/input/iminuktitut.c, modules/input/imthai-broken.c,
7693 modules/input/imti-er.c, modules/input/imti-et.c
7694 modules/input/imviqr.c, modules/input/imxim.c
7695 use GETTEXT_PACKAGE instead of "gtk+" for domain name.
7698 Thu May 29 18:23:01 2003 Kristian Rietveld <kris@gtk.org>
7702 * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
7703 grab separate, the user might clear the tree in the focus-in
7704 callback. (Fixes #113086, testcase from Felipe Heidrich).
7706 Thu May 29 18:06:26 2003 Kristian Rietveld <kris@gtk.org>
7710 * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
7711 of row reference when we unset the model. Also reset
7712 dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
7714 Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
7718 * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
7719 the current editing, if it exists. (Fixes #108956, reported by
7722 Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
7726 * gtk/gtktreeview.c (check_selection_helper): new function,
7727 (gtk_tree_view_row_deleted): traverse the tree from the
7728 deleted node to see whether the selection changed, instead of
7729 just checking this node. (Fixes #107400, reported by 'Duncan').
7731 Thu May 29 16:31:34 2003 Kristian Rietveld <kris@gtk.org>
7735 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
7736 (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
7737 instead of _maybe_begin_dragging_row, so the icon can be
7738 overridden by apps. (Fixes #104374, patch from Daniel Elstner).
7740 Thu May 29 16:14:04 2003 Kristian Rietveld <kris@gtk.org>
7744 * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
7745 cell_area x/width for the expander if needed. (Fixes #101748,
7746 reported by Dave Cook and Mariano Suarez-Alvarez).
7748 Thu May 29 16:01:38 2003 Kristian Rietveld <kris@gtk.org>
7752 * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
7753 if tree/node are still the same after _internal_select_node.
7754 (Fixes #92256, reported by edscott).
7756 Thu May 29 15:38:30 2003 Kristian Rietveld <kris@gtk.org>
7758 Fixes #75745, reported by Richard Hult. Merged from stable.
7760 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
7761 GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
7764 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7765 if we are rendering a cursor row, and the cell the be
7766 processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
7767 flag (else we unset it).
7769 2003-05-27 Matthias Clasen <maclas@gmx.de>
7771 * gtk/gtkwindow-decorate.c:
7772 * gtk/gtktreeprivate.h:
7774 * gdk/win32/gdkwindow-win32.h:
7775 * gdk/linux-fb/gdkprivate-fb.h:
7776 * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
7777 unspecified signedness. (#112919, Morten Welinder)
7779 * gtk/queryimmodules.c (escape_string):
7780 * gtk/gtktextbtree.c (_gtk_text_btree_get_text):
7781 * gtk/gtksettings.c (_gtk_settings_parse_convert):
7782 * gtk/gtkrc.c (gtk_rc_parse_assignment):
7783 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
7784 * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
7785 occurances of g_string_new ("") by g_string_new (NULL). (#106975,
7788 2003-05-27 Tor Lillqvist <tml@iki.fi>
7790 * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
7791 files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
7793 * gdk/Makefile.am: libgdk-win32-2.0.la depends on
7794 win32/libgdk-win32.la.
7796 * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
7798 Sat May 24 22:19:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7800 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
7801 scrollbar slider length 21 instead of 7.
7803 2003-05-23 Matthias Clasen <maclas@gmx.de>
7805 * gtk/gtknotebook.c: Add support for up to four scroll
7806 arrows. Control their display by new style properties
7807 "has_forward_stepper", "has_backward_stepper",
7808 "has_secondary_forward_stepper" and
7809 has_secondary_backward_stepper". (#110540)
7811 * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
7812 click_child three bits wide, add
7813 has_{before,after}_{previous,next} fields.
7815 * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
7816 focus out of hex_entry. (#112665)
7817 (hex_focus_out): New signal handler for focus out of hex entry.
7819 Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
7821 * gtk/gtkwidget.c (gtk_widget_realize):
7822 g_return_if_fail() if
7823 GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
7824 (#107872, Christian Reis)
7826 2003-05-22 Matthias Clasen <maclas@gmx.de>
7828 * gtk/gtkfilesel.c (gtk_file_selection_create_dir):
7829 (gtk_file_selection_rename_file): Some keynav improvements for the
7830 "Rename File" and "Create Directory" subdialogs: Enter in entry
7831 activates default, default is "Create"/"Rename", Escape cancels
7833 (gtk_file_selection_set_filename): Add a hint about opening
7834 directories. (#113175)
7836 2003-05-22 Matthias Clasen <maclas@gmx.de>
7838 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
7839 Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
7842 Wed May 21 15:53:14 2003 Owen Taylor <otaylor@redhat.com>
7844 * gtk/gtkprogress.c (gtk_progress_set_format_string,
7845 gtk_progress_set_show_text): Always queue a resize ...
7846 we rely on the size-allocate to do the update, plus a
7847 different format can actually change our size requisition.
7848 (#111052, Vasco Alexandre da Silva Costa)
7850 * gtk/gtkprogress.c (gtk_progress_changed): Track
7851 ::changed as well as ::value_changed, and queue a
7852 resize on ::changed when necessary.
7854 * gtk/gtkprogress.c (gtk_progress_set_adjustment):
7855 Call gtk_progress_changed() here to update or
7856 queue a resize as necessary.
7858 Wed May 21 14:06:13 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7860 * gtk/gtkimcontextsimple.c: added composing rules of
7861 Greek accented letters, patch by Vasilis Vasaitis (#107507)
7863 Wed May 21 13:19:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7865 * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle):
7866 * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
7867 gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
7869 Wed May 21 12:10:25 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7871 * gtk/gtkimcontextsimple.c:
7872 code that can check the compose table for ascending order,
7873 by Vasilis Vasaitis (#104862).
7875 Wed May 21 12:52:01 2003 Owen Taylor <otaylor@redhat.com>
7877 * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
7878 to pass the unmasked state to gdk_keymap_translate_keyboard_state()
7879 to handle the case where a modifier not in the mask
7880 (like Num_Lock) changes the key value, so replace
7881 the masked state with a state/mask pair. (#106913,
7884 * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
7885 in state/mask pair to _gtk_key_hash_lookup()
7887 Tue May 20 21:58:00 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7889 * modules/input/gtkimcontextxim.c (xim_info_display_closed):
7890 fix a memory leak, free input context list (#113259).
7892 2003-05-21 Matthias Clasen <maclas@gmx.de>
7894 * configure.in (all_loaders): Add pcx.
7896 * gtk/gtkcalendar.c: Make calendar controls spin. (#112540)
7898 Tue May 20 17:27:24 2003 Owen Taylor <otaylor@redhat.com>
7900 * gtk/gtkimmodule.c (gtk_im_module_init): Silently
7901 accept a missing gtk.immodules file, some people
7902 want to run without one. (#112406, patch from
7905 Tue May 20 17:05:31 2003 Owen Taylor <otaylor@redhat.com>
7907 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix
7908 height/width confusion (#113370, Xan Lopez)
7910 Tue May 20 15:48:45 2003 Owen Taylor <otaylor@redhat.com>
7912 * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
7913 zero all unused parts of client messages (Mainly Motif DND
7914 and EWMH). Also, fix a couple places where we were putting
7915 contents into Motif DND messages that didn't belong.
7916 (#113361, EWMH problem reported by Lubos Lunak)
7918 * gtk/gtkselection.c (_gtk_selection_request): Handle the
7919 case where the property type for the multiple atoms is
7920 ATOM_PAIR by doing the conversions ourselve. This is
7921 needed for Xt inter-operation.
7923 2003-05-19 Arafat Medini <lumina@silverpen.de>
7925 * configure.in: Added ar to ALL_LINGUAS
7927 2003-05-19 Matthias Clasen <maclas@gmx.de>
7929 * gtk/gtksettings.c (gtk_rc_property_parse_border,
7930 gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
7931 gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
7934 * gtk/gtkwidget.c (gtk_widget_class_install_style_property,
7935 gtk_widget_class_install_style_property_parser): Add docs.
7937 2003-05-17 Matthias Clasen <maclas@gmx.de>
7939 * tests/prop-editor.c: Add navigation for object properties, so
7940 that you can easily edit the properties of the parent of a widget.
7943 Wed May 14 17:45:32 2003 Owen Taylor <otaylor@redhat.com>
7945 * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
7946 Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis
7947 inconsistency and leave the old name as an aliass (#104873)
7949 Wed May 14 16:40:09 2003 Owen Taylor <otaylor@redhat.com>
7951 * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
7952 from Charles Schmidt to add missing notify (#108305)
7954 Wed May 14 16:00:51 2003 Owen Taylor <otaylor@redhat.com>
7956 * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
7957 (#105500, Morten Welinder.)
7959 Wed May 14 09:05:11 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7961 * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
7962 instead of gumake for XNFilterEvents event mask(#110493).
7964 2003-05-11 Anders Carlsson <andersca@codefactory.se>
7966 * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
7967 a GObject. (#112762)
7969 2003-05-08 Sven Neumann <sven@gimp.org>
7971 * configure.in: set the HAVE_X11R6 automake conditional to false
7972 if not compiling for X11.
7974 2003-05-08 Matthias Clasen <maclas@gmx.de>
7976 * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options):
7977 (gtk_calendar_get_display_options): New functions.
7978 (gtk_calendar_display_options): Depreate. (#64567)
7979 (gtk_calendar_class_init): Add boolean properties for the display
7982 Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com>
7984 Patch from James Henstridge to update to automake-1.7
7987 * autogen.sh: update to call newer tools.
7989 * configure.in: various updates, to use M4 macros to put
7990 variables that change each release at the top.
7991 Use AC_HELP_STRING to format help strings.
7992 Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
7994 * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and
7995 gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure
7998 * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
8001 * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
8002 Use BUILT_SOURCES where appropriate.
8003 Build generated files in builddir rather than srcdir.
8004 Fix uninstall and distclean targets to satisfy distcheck.
8008 * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
8009 built first, since we are now using BUILT_SOURCES.
8011 * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
8013 * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
8016 * configure.in: Update versions to 2.3.0.
8018 2003-05-06 Tor Lillqvist <tml@iki.fi>
8020 Fix for #110165 (thanks to Arnaud Charlet):
8022 * gdk/win32/gdkevents-win32.c (build_keypress_event,
8023 build_keyrelease_event): For unshifted control char, use
8024 lowercase ASCII keyval.
8025 (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
8026 UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
8027 lowercase keyval. Use build_key_event_state() here, too, instead
8028 of minor code duplication.
8030 2003-05-06 Matthias Clasen <maclas@gmx.de>
8032 * tests/testmultidisplay.c: Don't include strings.h, it's not
8033 needed anymore. (#112388)
8035 * examples/menu/itemfactory.c:
8036 * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
8037 itemfactory example.
8039 2003-05-05 Matthias Clasen <maclas@gmx.de>
8041 * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock): Actually set the
8042 icon type to the stock icon type. (#111735, Dave Bordoley)
8044 2003-05-05 Christian Rose <menthos@menthos.com>
8046 * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
8047 Removed sp, it's replaced by sr@Latn.
8049 Wed Apr 30 22:09:11 BST 2003 Tony Gale <gale@gtk.org>
8051 * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
8054 Mon Apr 28 17:54:39 2003 Jonathan Blandford <jrb@redhat.com>
8056 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
8057 data iff the destroy func isn't NULL.
8059 Thu Apr 24 19:12:05 2003 Owen Taylor <otaylor@redhat.com>
8061 * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
8063 2003-04-23 Abel Cheung <maddog@linux.org.hk>
8065 * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
8067 Tue Apr 22 15:33:51 2003 Owen Taylor <otaylor@redhat.com>
8069 * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
8070 of UTF-8. (#106419, Roozbeh Pournader)
8072 Tue Apr 22 15:17:25 2003 Owen Taylor <otaylor@redhat.com>
8074 * configure.in: Only check for XFT2 if we found pango-xft
8077 Tue Apr 22 15:12:19 2003 Owen Taylor <otaylor@redhat.com>
8079 * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
8080 PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
8082 Tue Apr 22 19:43:01 BST 2003 Tony Gale <gale@gtk.org>
8084 * docs/faq/gtk-faq.sgml: add note about version converage.
8086 Mon Apr 21 19:02:16 2003 Owen Taylor <otaylor@redhat.com>
8088 * gtk/gtksocket.c (activate_key): Fix prototype for
8089 activate_key. (#108927, Jason D. Hildebrand)
8091 Mon Apr 21 18:42:51 2003 Owen Taylor <otaylor@redhat.com>
8093 * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
8094 Remove geninclude.pl from CVS and don't dist it either,
8095 it is generated. (#108970, Rich Kinder)
8097 Mon Apr 21 18:35:48 2003 Owen Taylor <otaylor@redhat.com>
8099 * gtk/gtkobject.h: Remove a couple of obsolete comments,
8100 fix another comment. (#109737, Britton Kerin)
8102 Mon Apr 21 18:29:03 2003 Owen Taylor <otaylor@redhat.com>
8104 * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
8105 the source list, not just it's contents (Patch
8106 from Charles Kerr, #108243)
8108 Mon Apr 21 18:13:46 2003 Owen Taylor <otaylor@redhat.com>
8110 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
8111 from Alex Larsson fixing problem with restacking during
8114 Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
8116 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
8117 Calling XFlush() after ungrabbing, to avoid problems if
8118 the app subsequently blocks on a long-running operation.
8119 (#106520, reported by Rajkumar Siva)
8121 Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
8123 * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
8124 SKIP_TASKBAR/SKIP_PAGER to set of properties we
8125 might set on map. (#110019, problem reported
8128 Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
8130 * gdk/gdkevents.c (gdk_event_copy): Fix for the
8131 case when gdk_event_copy() is called on a non-allocated
8132 event. (#109716, reported by Rich Burridge)
8134 Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
8136 * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
8137 Fix pointer arithmetic on 'void *'. (#108322)
8139 Fri Apr 18 16:31:49 2003 Owen Taylor <otaylor@redhat.com>
8141 * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
8142 Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
8143 use of XAddConnectionWatch. Remove --enable-xim config option.
8144 Should fix building on X11R6 (#110523, Albert Chin)
8146 Fri Apr 18 15:56:46 2003 Owen Taylor <otaylor@redhat.com>
8148 * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
8149 Patch from Morten Welinder to catch Sun servers with a
8150 broken implementation of the RENDER extension. (#108309)
8152 Fri Apr 18 15:30:38 2003 Owen Taylor <otaylor@redhat.com>
8154 * gdk/x11/gdkwindow-x11.c (set_text_property): Use
8155 gdk_free_compound_text(), not g_free(). (#107643,
8158 Fri Apr 18 15:11:50 2003 Owen Taylor <otaylor@redhat.com>
8160 * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
8161 gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
8162 wrong use of base_finalize. (#105126, Sven Neumann)
8164 Fri Apr 18 15:06:00 2003 Owen Taylor <otaylor@redhat.com>
8166 * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
8167 '/' vs. '*' problem in aspect ration computations. (#108237)
8169 Fri Apr 18 14:15:09 2003 Owen Taylor <otaylor@redhat.com>
8171 * gdk/x11/gdkdisplay-x11.c (gdk_display_open):
8172 * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
8173 don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify
8174 event, so select for both. (#108406, Egmont Koblinger)
8176 Thu Apr 17 09:57:44 2003 Jonathan Blandford <jrb@gnome.org>
8178 * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
8179 caused by not clearing the scroll_to_path.
8181 2003-04-16 Matthias Clasen <maclas@gmx.de>
8183 * gtk/gtkstyle.c: Doc additions and fixes.
8185 * gtk/gtktreeviewcolumn.c
8186 (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
8188 2003-04-14 Michael Natterer <mitch@gimp.org>
8190 * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
8191 that the iter is not reordered to its own position. Prevents model
8192 corruption for the case that the store contains only a single item
8193 (fixes bug #108387).
8197 * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
8198 new list element later so we don't leak it if we decide to return
8201 * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
8202 set selection->tree_view->priv->anchor to NULL after freeing it.
8204 2003-04-13 Matthias Clasen <maclas@gmx.de>
8206 * gtk/gtktreeviewcolumn.c
8207 (gtk_tree_view_column_cell_get_position): Document.
8209 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range):
8210 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand):
8211 * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
8212 these as 2.4 additions.
8214 2003-04-09 Matthias Clasen <maclas@gmx.de>
8216 * INSTALL.in: Fix the real thing.
8218 * INSTALL: Typo fix.
8220 Mon Apr 7 19:43:15 2003 Owen Taylor <otaylor@redhat.com>
8222 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
8223 after ungrabbing the server.
8225 * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
8228 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
8229 Use gdk_x11_display_grab/ungrab.
8231 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
8232 use_xshm to TRUE so SHM gets used when present.
8234 2003-04-07 Matthias Clasen <maclas@gmx.de>
8236 * gtk/gtktextlayout.c (set_para_values):
8237 * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR. (#110086,
8240 * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
8241 gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
8242 misspellings of possessive "its". (#110027, Doug Quale)
8244 2003-04-03 Matthias Clasen <maclas@gmx.de>
8246 * demos/gtk-demo/main.c (demo_find_file): Only use files from the
8247 current directory if it looks like the srcdir. (#109357)
8249 Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8251 * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
8254 * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
8255 navigation not wrap around.
8257 2003-04-02 Matthias Clasen <maclas@gmx.de>
8259 * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
8260 Return 0 if lower == upper. (#109155)
8261 (gtk_progress_get_current_percentage): Use
8262 gtk_progress_get_percentage_from_value().
8264 2003-04-01 Matthias Clasen <maclas@gmx.de>
8266 * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
8267 (#109510, Noah Levitt)
8269 Mon Mar 31 13:52:13 2003 Jonathan Blandford <jrb@redhat.com>
8271 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
8272 members so Purify won't complain.
8274 * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
8276 2003-03-31 Matthias Clasen <maclas@gmx.de>
8278 * gtk/gtkwindow.c: Add a new property, role, corresponding to
8279 gtk_window_[gs]et_role(). (#93904)
8281 Sun Mar 30 03:57:42 2003 Jonathan Blandford <jrb@gnome.org>
8283 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
8284 fix crash. Patch from Markus Lausser <sgop@users.sourceforge.net>
8286 2003-03-29 Matthias Clasen <maclas@gmx.de>
8288 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
8289 of labels back to normal before reparenting back. (#102387)
8291 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
8292 a default window title to match the GtkFontSelectionDialog behavior.
8294 (gtk_color_selection_dialog_new): Don't call
8295 gtk_window_set_title() if title is NULL. (bug #101975, Daniel Elstner)
8297 2003-03-29 Matthias Clasen <maclas@gmx.de>
8301 * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
8304 * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
8305 select_lines on double/triple click.
8307 * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
8308 select-by-words and select-by-lines behaviour.
8310 Fixes for bug #56248:
8312 * gtk/gtknotebook.c (stop_scrolling): New function to remove the
8313 timer and queue a redraw.
8314 (gtk_notebook_grab_notify):
8315 (gtk_notebook_state_changed): New functions to call stop_scrolling()
8317 (gtk_notebook_button_release): Use stop_scrolling().
8318 (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
8320 * gtk/gtkrange.c (stop_scrolling): New function to remove the
8321 grab, remove the timer and queue a redraw.
8322 (gtk_range_grab_notify):
8323 (gtk_range_state_changed): New functions to call stop_scrolling()
8325 (gtk_range_button_release): Use stop_scrolling().
8327 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
8328 (gtk_spin_button_state_changed): Redraw after stop_spinning.
8329 (gtk_spin_button_stop_spinning): Reset click_child to correct the
8330 drawing of the arrows.
8331 (gtk_spin_button_button_release): Use a local copy of click_child,
8332 since stop_spinning() resets it.
8334 * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
8335 C-A-PgDown as alternatives to the A-less variants. (This slipped
8336 in accidentally some time ago). (#97860)
8338 2003-03-26 Sven Neumann <sven@gimp.org>
8340 * gtk/gtktreeview.c: rewrote the function that does node and arrow
8341 prelighting, queue all redraws from here (Fixes bug #108792).
8343 2003-03-20 Richard Kinder <r_kinder@yahoo.com>
8345 * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
8348 2003-03-20 Guntupalli Karunakar <karunakar@freedomink.org>
8350 * configure.in: Added "ml" in ALL_LINGUAS
8352 Sat Mar 15 18:49:27 2003 Manish Singh <yosh@gimp.org>
8354 * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
8355 G_DISABLE_DEPRECATED.
8357 2003-03-14 Tor Lillqvist <tml@iki.fi>
8359 * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
8360 GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
8361 DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
8362 multiple monitors can have negative coordinates on some of the
8363 monitors. (partial fix for #99496, Arnaud Charlet)
8365 2003-03-15 Matthias Clasen <maclas@gmx.de>
8367 * gtk/gtktextview.c: Add a "buffer" property. (#108353)
8369 2003-03-13 Sven Neumann <sven@gimp.org>
8371 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
8372 removed redundant calls to g_object_notify().
8373 (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
8376 * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
8377 (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
8378 functions return an integer value).
8380 2003-03-13 Tor Lillqvist <tml@iki.fi>
8382 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
8383 WM_MOUSEMOVE, the test whether we have actually moved (and thus
8384 shouldn't generate an GDK event) moved after the call to
8385 propagate() and translate_mouse_coords(). Otherwise we were
8386 testing wrong values. (#108115, Allin Cottrell)
8387 (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
8388 way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
8390 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
8391 is used, must copy the HCURSOR with CopyCursor(), as it is OK to
8392 destroy the GdkCursor after calling gdk_pointer_grab(). Set the
8393 cursor right away with SetCursor(), as we won't get any
8394 WM_SETCURSOR messages while the mouse is captured.
8395 (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
8396 with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
8398 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
8399 WM_SYSCHAR, return FALSE from the window procedure to prevent the
8400 DefWindowProc from being called. Otherwise Windows would beep,
8401 thinking you are tring to access a (nonexistent) menu when you
8402 press Alt-something. Don't do this for Alt-Space,
8403 though. (#107454, Martyn Russell)
8405 * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
8407 Tue Mar 11 12:01:07 2003 Jonathan Blandford <jrb@gnome.org>
8409 * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
8410 [left/right] expands/collapses the tree, #108092
8412 2003-03-09 Tor Lillqvist <tml@iki.fi>
8414 * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
8415 compensate for LineTo() not drawing the end pixel. It causes more
8416 harm than benefits, see bug #81895.
8418 2003-03-08 Matthias Clasen <maclas@gmx.de>
8420 Bug #107664 continued:
8422 * gdk/x11/gdkinputprivate.h:
8423 * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
8424 (_gdk_input_other_event): Return gboolean.
8425 * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
8426 (_gdk_input_other_event): Return gboolean.
8427 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
8429 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
8430 gboolean, remove pointless call to _gdk_input_window_none_event.
8432 * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
8433 (_gdk_input_window_none_event): Remove.
8435 * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
8436 (_gtk_text_iter_get_any_segment):
8437 (_gtk_text_iter_get_segment_byte):
8438 (_gtk_text_iter_get_segment_char):
8439 (_gtk_text_iter_get_text_line):
8440 (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
8441 * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
8442 * gdk/win32/gdkfont-win32.c (gdk_font_equal):
8443 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
8444 (gdk_window_get_origin):
8445 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
8447 2003-03-06 Matthias Clasen <maclas@gmx.de>
8449 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
8450 (#107664, Morten Welinder)
8452 * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
8453 * gdk/x11/gdkfont-x11.c (gdk_font_equal):
8454 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
8455 Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder)
8457 * gtk/gtktextmark.c (gtk_text_mark_get_buffer):
8458 * gtk/gtkeditable.c (gtk_editable_get_chars):
8459 * gtk/gtkctree.c (gtk_ctree_find_node_ptr):
8460 * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
8461 (#107648, Morten Welinder)Fix NULL/FALSE confusion
8462 (#107648, Morten Welinder)
8464 2003-03-04 Matthias Clasen <maclas@gmx.de>
8466 * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
8468 Sun Mar 2 23:35:57 2003 Jonathan Blandford <jrb@gnome.org>
8470 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
8471 handle rtl code. Thanks to Matthias Clasen for an initial patch
8472 to handle the RTL code.
8474 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
8476 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
8478 * gtk/gtktreeview.c: (invalidate_column),
8479 (invalidate_last_column),
8480 (gtk_tree_view_get_real_requested_width_from_column),
8481 (gtk_tree_view_size_allocate_columns),
8482 (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
8483 (gtk_tree_view_button_release_drag_column),
8484 (gtk_tree_view_update_current_reorder),
8485 (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
8486 (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
8487 (gtk_tree_view_get_background_xrange),
8488 (gtk_tree_view_get_arrow_xrange),
8489 (gtk_tree_view_is_expander_column),
8490 (gtk_tree_view_set_column_drag_info),
8491 (gtk_tree_view_move_cursor_left_right):
8494 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
8497 * gtk/gtktreeviewcolumn.c:
8498 (gtk_tree_view_column_class_init),
8499 (gtk_tree_view_column_set_property),
8500 (gtk_tree_view_column_get_property),
8501 (gtk_tree_view_column_set_expand),
8502 (gtk_tree_view_column_get_expand),
8503 (gtk_tree_view_column_cell_process_action):
8504 Add support for expand flag. Thanks to Kristian Rietveld for an
8505 initial patch for this.
8507 Fri Feb 28 02:06:17 2003 Jonathan Blandford <jrb@gnome.org>
8510 2003-03-02 Tor Lillqvist <tml@iki.fi>
8513 * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
8516 2003-03-01 Matthias Clasen <maclas@gmx.de>
8518 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
8519 (gtk_scrolled_window_set_hadjustment): Replace uses of
8520 gtk_object_new by g_object_new.
8522 Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org>
8524 * demos/gtk-demo/main.c
8525 * demos/gtk-demo/tree_store.c
8526 * gdk/x11/gdkscreen-x11.c
8527 * gtk/gtkcellrenderertoggle.c
8535 * gtk/gtkmenushell.c
8539 * gtk/gtktextbuffer.c
8541 * gtk/gtktreeviewcolumn.c
8544 * tests/testtreeedit.c
8545 * tests/testtreefocus.c
8546 * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
8548 Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
8550 * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
8553 2003-02-24 Sven Neumann <sven@gimp.org>
8555 * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
8557 2003-02-21 Tomas Ogren <stric@ing.umu.se>
8559 * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
8561 2003-02-20 Matthias Clasen <maclas@gmx.de>
8563 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
8564 Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
8566 * gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
8567 (gtk_text_view_update_adjustments): Make sure cursor stays visible
8568 during horizontal scrolling. (#75270)
8570 2003-02-19 Matthias Clasen <maclas@gmx.de>
8572 * tests/testdnd.c: Replace gtk_timeout_* by their GLib
8573 counterparts. (#106532)
8575 * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
8576 keys_changed virtual function with the keys_changed signal.
8577 (#106512, Jeff Franks)
8579 2003-02-15 Larry Ewing <lewing@ximian.com>
8581 * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
8583 2003-02-17 Mohammad DAMT <mdamt@bisnisweb.com>
8585 * po/id.po: Added Indonesian translation
8586 * configure.in: Added "id" to ALL_LINGUAS
8588 2003-02-14 Matthias Clasen <maclas@gmx.de>
8590 * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
8592 2003-02-12 Christian Rose <menthos@menthos.com>
8594 * configure.in: Added "yi" to ALL_LINGUAS.
8596 2003-02-12 Matthias Clasen <maclas@gmx.de>
8598 Fix for #82734 and #78216:
8600 * gtk/gtktextview.c (delete_cb):
8601 (select_all_cb): New callbacks for context menu items.
8602 (popup_targets_received): Add "Delete" and "Select All" to context
8603 menu, mnemonics and title caps for all items.
8605 * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
8607 (popup_targets_received): Add "Delete" to context menu, mnemonics
8608 and title caps for all items.
8610 2003-02-09 Tor Lillqvist <tml@iki.fi>
8612 * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
8613 GetDriveType() to recognize removable drives (in order to avoid
8614 hanging if trying to access an empty floppy drive), instead of
8615 hardcoding A: and B: (#105654).
8617 2003-02-09 Matthias Clasen <maclas@gmx.de>
8619 * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
8622 2003-02-09 Christian Rose <menthos@menthos.com>
8624 * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
8626 Fri Feb 7 04:49:46 2003 Tim Janik <timj@gtk.org>
8628 * gtk/gtkobject.c: remove quark_user_data usage in
8629 gtk_object_{g|s}et_user_data(). fixes get_user_data()
8630 returning NULL for user_data set through property interface.
8632 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
8633 warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
8634 need to be a programming error (in case of loaded data), (b) it breaks
8635 with 2.0 behaviour where extra magic could be used to create empty
8636 images. don't attempt to retrieve pixbufs from NULL extra_data.
8638 2003-02-06 Matthias Clasen <maclas@gmx.de>
8640 * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
8641 a GdkVisual *, not a GdkVisual **. (#105243)
8645 * gtk/gtkcontainer.c:
8650 * gtk/gtkmenuitem.c:
8651 * gtk/gtknotebook.c:
8652 * gtk/gtkselection.c:
8653 * gtk/gtkspinbutton.c:
8655 * gtk/gtktextview.c:
8656 * gtk/gtktooltips.c:
8657 * gtk/gtktreeview.c:
8658 * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
8659 their non-deprecated GLib counterparts.
8661 * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
8663 Sun Feb 2 16:45:57 GMT 2003 Tony Gale <gale@gtk.org>
8665 * docs/tutorial/gtk-tut.sgml: cleanups from
8666 Sebastian Rittau (#104832)
8668 2003-02-01 Tor Lillqvist <tml@iki.fi>
8672 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
8673 gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
8674 (#104108, Naofumi Yasufuku)
8676 * gdk/gdk.def: Export the above. Export
8677 gdk_screen_get_system_visual, noticed by Ed Woods.
8679 Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org>
8681 * demos/pixbuf-demo.c
8682 * demos/testpixbuf.c
8683 * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
8685 Fri Jan 31 17:33:00 2003 Manish Singh <yosh@gimp.org>
8687 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
8688 on the tab_label before unparenting it, in case the unparent
8689 drops the refcount to 0.
8691 2003-02-01 Matthias Clasen <maclas@gmx.de>
8693 * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
8694 headers. Sorry about gtk_selection_clear, Yosh.
8696 Thu Jan 30 17:16:05 2003 Manish Singh <yosh@gimp.org>
8698 * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
8699 too, for gtkwidget.c. Remember people, when introducing new
8700 deprecations, make sure internal code isn't using it, or if so,
8701 reorganize appropriately like I've done in other places.
8703 * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
8705 2003-01-31 Matthias Clasen <maclas@gmx.de>
8707 * gtk/gtkselection.h:
8708 * gtk/gtkselection.c (gtk_selection_clear): Deprecate. (#85683)
8711 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
8712 (gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
8714 * gtk/gtkcolorsel.h:
8715 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8718 * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
8720 * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
8721 and gtk_input_* functions. (#71596)
8723 * gtk/gtkentry.c (gtk_entry_move_cursor):
8724 * gtk/gtklabel.c (gtk_label_move_cursor): Handle
8725 GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
8727 * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
8729 * gtk/gtkitemfactory.h:
8730 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
8733 Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
8735 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
8736 only count the special cell if it is also visible,
8737 (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
8738 account from visible cells,
8739 (gtk_tree_view_column_cell_get_position): likewise, (Reported and
8740 testcase provided by Vasco Alexandre da Silva Costa, via IRC,
8741 tracking bug was #104563).
8743 Thu Jan 30 23:46:15 2003 Kristian Rietveld <kris@gtk.org>
8745 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
8746 subtract expander space and focus line space from the extra space
8747 we are about the allocate. (Fixes #104635).
8749 Thu Jan 30 23:42:03 2003 Kristian Rietveld <kris@gtk.org>
8751 * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
8752 (Fixes #96242, patch from Soeren Sandmann).
8754 Thu Jan 30 16:54:29 2003 Owen Taylor <otaylor@redhat.com>
8756 * gtk/gtknotebook.c: Patch from Soeren Sandmann
8757 to update the states of the tab label child
8758 widgets to match the state of the tabs.
8759 (#93389, Reported by Tommi Komulainen)
8761 Thu Jan 30 16:30:54 2003 Owen Taylor <otaylor@redhat.com>
8763 * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
8764 EXTRA_DIST, and from dist rules. (#102231)
8766 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
8768 * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
8769 function that sets the icon's and label's packing options and
8770 visibility based on toolbar->style.
8772 (gtk_toolbar_internal_insert_element):
8773 (gtk_real_toolbar_style_changed): Make use of
8774 set_child_packing_and_visibility() to clean up the code and get
8775 the packing right for icon-only/text-only toolbars. (#104679)
8777 (get_first_child): Remove, and use gtk_bin_get_child() instead.
8779 2003-01-30 Matthias Clasen <maclas@gmx.de>
8781 * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
8782 GTK_MOVEMENT_HORIZONTAL_PAGES. (#68947)
8784 * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
8786 Thu Jan 30 16:01:29 2003 Owen Taylor <otaylor@redhat.com>
8788 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the
8789 attempt-to-allocate then free code. To handle multiple
8790 people allocating colors at the same time, we need
8791 to just go ahead and try. (#102213, Shivram U)
8793 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
8795 * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
8796 rectangle using the background color rather than relying on
8797 gdk_window_clear_area(), so that the palette works properly with
8798 pixmap themes. (#101732)
8800 * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
8801 to fill the drawing area in the background color.
8803 Wed Jan 29 14:11:21 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
8805 * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
8806 initialization error for selecting input style (#103549).
8808 Wed Jan 29 17:02:41 2003 Owen Taylor <otaylor@redhat.com>
8810 * gdk/gdkkeyuni.c (get_decimal_char): Make the
8811 translation of GDK_KP_Decimal dependent on LC_NUMERIC.
8814 Wed Jan 29 15:43:56 2003 Owen Taylor <otaylor@redhat.com>
8816 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
8817 Make up from the menu bar go to the end of the submenu.
8818 (#96114, Ian Peters.)
8820 * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate):
8821 Only do the select-but-not-activate stuff if the
8822 menu is already active. Otherwise, just activate.
8823 (#101690, Arvind Samptur)
8825 Tue Jan 28 15:18:24 2003 Owen Taylor <otaylor@redhat.com>
8827 * autogen.sh (have_automake): Fix version in complaint
8828 message about automake. (#104366, Rich Burridge)
8830 Mon Jan 27 16:38:13 2003 Owen Taylor <otaylor@redhat.com>
8832 * configure.in: Remove SOEXT stuff; it doesn't work portably.
8834 Mon Jan 27 22:45:15 2003 Kristian Rietveld <kris@gtk.org>
8836 * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
8837 we appended/prepended, send the rows_reordered signal to the
8838 correct level ... (Reported by Matthew Tuck).
8840 Mon Jan 27 22:43:11 2003 Kristian Rietveld <kris@gtk.org>
8842 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
8843 out if the level only has one item, recurse over the child if there
8844 is one. (Fixes #100458, reported by Gaël Le Mignot).
8846 Mon Jan 27 22:41:26 2003 Kristian Rietveld <kris@gtk.org>
8848 * gtk/gtktreeview.c (gtk_tree_view_set_model),
8849 (gtk_tree_view_search_equal_func): make TreeView search handle
8850 all types which are transformable by GValue. (Fixes #99803, reported
8853 Mon Jan 27 22:39:25 2003 Kristian Rietveld <kris@gtk.org>
8855 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
8856 *really* handle unsetting the ID. Slightly modified patch from
8857 Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
8859 Mon Jan 27 22:33:43 2003 Kristian Rietveld <kris@gtk.org>
8861 Fixes the total GtkTreeSortable mess, and #83195, reported by
8864 * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
8865 (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
8866 (gtk_tree_store_set_default_sort_func): use the constant
8867 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
8868 work as advertised by the documentation.
8870 * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
8871 (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
8872 (gtk_list_store_set_default_sort_func): likewise.
8874 * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
8875 (gtk_tree_model_set_sort_func),
8876 (gtk_tree_model_sort_set_default_sort_func): make functions work
8877 as advertised by the documentation.
8879 Mon Jan 27 22:31:56 2003 Kristian Rietveld <kris@gtk.org>
8881 * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
8882 before we decide if we edit. (fixes #100973, reported by Dave Cook).
8884 Mon Jan 27 22:29:30 2003 Kristian Rietveld <kris@gtk.org>
8886 Bug report and test case from Paolo Maggi via IRC.
8888 * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
8889 (gtk_list_store_move): update tail if needed.
8891 Mon Jan 27 16:19:59 2003 Owen Taylor <otaylor@redhat.com>
8893 * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
8894 might be NULL. Use gtk_widget_get_display (widget)
8895 (#102860, Thomas Leonard)
8897 Mon Jan 27 15:58:31 2003 Owen Taylor <otaylor@redhat.com>
8899 * configure.in: Fix --without-modules/--disable-modules
8900 confusion that was causing --disable-modules not to work.
8901 (#102865, Akira Tagoh)
8903 * configure.in: Fix problem with plain --with-xinput
8904 (#104266, Akira Tagoh)
8906 2003-01-24 Sebastian Rittau <srittau@jroger.in-berlin.de>
8908 * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
8911 Fri Jan 24 17:06:41 GMT 2003 Tony Gale <gale@gtk.org>
8913 * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
8915 Thu Jan 23 21:15:29 GMT 2003 Tony Gale <gale@gtk.org>
8917 * docs/faq/gtk-faq.sgml: Learn to spell Library
8919 Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org>
8920 * Sebastian Rittau <srittau@jroger.in-berlin.de>:
8922 docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
8923 Composite widget" to modern standards. (I.e. use gobject instead of
8924 glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
8926 * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
8927 code in Appendix C to reflect above changes.
8929 * examples/rangewidgets/rangewidgets.c: From Roger Leigh
8930 auto resize on page size change
8932 2003-01-23 Daniel Elstner <daniel.elstner@gmx.net>
8934 * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
8935 in addition to show_all in order to keep them symmetric. (#102201)
8937 Wed Jan 22 14:18:46 2003 Manish Singh <yosh@gimp.org>
8939 * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
8940 the end of the function, so there is a statement following the "out"
8941 label in all cases (fixes #101961)
8943 2003-01-22 Christian Rose <menthos@menthos.com>
8945 * configure.in: Added "mn" to ALL_LINGUAS.
8947 Wed Jan 15 17:02:18 2003 Owen Taylor <otaylor@redhat.com>
8949 * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
8950 Fix off-by-one error on the backward iteration loop,
8951 that was causing the wrong range to be redrawn.
8952 (at least part of #72734)
8954 2003-01-21 Matthias Clasen <maclas@gmx.de>
8956 * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
8957 vadjustment value after changing its bounds. (fixes #101963 and
8960 * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid
8961 unnecessary roundtrip failures. (#93500)
8963 2003-01-19 Tor Lillqvist <tml@iki.fi>
8967 Fix for #103614 and some other problems with GtkFileSelection on
8970 * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
8971 g_ascii_tolower(). Windows file names are case-insensitive for all
8974 * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
8975 G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
8976 earlier, as it includes config.h unconditionally, and gtkprivate.h
8977 redefines GTK_LOCALEDIR.
8978 (struct _CompletionDirSent): Ifdef out the fields not used on
8980 (compare_utf8_filenames, compare_sys_filenames): Need different
8981 comparison implementation for UTF-8 file names and system locale
8982 file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
8983 need to casefold all Unicode letters.
8984 (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
8985 variables not used on Win32 to avoid warnings about unused
8987 (open_ref_dir): Use g_path_skip_root() to skip past potential
8988 drive letter in front of the leading (back)slash.
8989 (open_new_dir): Ifdef out use of CompletionDirSent fields not
8991 (correct_parent): Bypass inode check also on Cygwin.
8993 Fix bug noticed by Alex Shaduri: Tooltips and other
8994 GDK_WINDOW_TEMP windows were activated. This looked very odd, and
8995 was a regression from earlier versions.
8997 * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
8998 behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
8999 (gdk_window_move, gdk_window_resize): Add debug logging.
9001 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
9002 WM_SIZE message for a non-visible (withdrawn) window, don't clear
9003 the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
9004 even if its size changes.
9006 2003-01-16 Matthias Clasen <maclas@gmx.de>
9008 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
9009 (totally_invisible_line): Fix an incorrect optimization which
9010 caused invisible paragraphs to be occasionally misrendered.
9012 Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
9014 * gtk/gtksettings.c: Set the double click speed from
9015 XSETTINGS when creating a new GtkSettings object
9016 as well as when getting a notify. (#103601, reported
9019 Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
9021 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
9022 Show/hide the notebook event window as necessary,
9023 we weren't previously keeping the visibility updated
9026 2003-01-15 Matthias Clasen <maclas@gmx.de>
9028 * examples/menu/itemfactory.c:
9029 * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
9032 2002-12-29 Murray Cumming <murrayc@usa.net>
9036 * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
9037 Actually implement the GtkTreeDragSource::row_draggable virtual
9038 function in GtkListStore and GtkTreeStore instead of just checking
9039 whether it's implemented at all. This means that DnD isn't broken by
9040 gtkmm's virtual function wrappers. The alternative would be to
9041 hard-code the TRUE return value into gtkmm's wrappers, but that's
9042 part of GTK+'s implementation, not it's API.
9044 Tue Jan 14 23:42:29 2003 Kristian Rietveld <kris@gtk.org>
9046 * gtk/gtktreeview.c: fix compiler warning.
9048 Tue Jan 14 23:29:00 2003 Kristian Rietveld <kris@gtk.org>
9050 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
9051 make sure exposed pixbufs are clipped to the exposed area before
9052 drawing, which is a slight speedup. (#102379, patch from Soeren
9055 Tue Jan 14 23:26:41 2003 Kristian Rietveld <kris@gtk.org>
9057 * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
9058 only free scroll_to_path when the complete tree has been validated.
9059 This makes sure that we scrolled to the correct path.
9061 Tue Jan 14 23:25:32 2003 Kristian Rietveld <kris@gtk.org>
9063 * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
9064 background of widget->window and bin->window. (Fixes #96650, reported
9067 Tue Jan 14 23:24:02 2003 Kristian Rietveld <kris@gtk.org>
9069 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
9070 updates before scrolling, avoiding a "selection streak". (Fixes
9071 #101235, patch from Soeren Sandmann).
9073 Tue Jan 14 23:22:13 2003 Kristian Rietveld <kris@gtk.org>
9075 * gtk/gtktreeview.c (validate_visible_area): actually put values
9076 in the requisition using gtk_widget_size_request. (Fixes #100172,
9077 reported by Kjartan Maraas).
9079 Tue Jan 14 23:19:45 2003 Kristian Rietveld <kris@gtk.org>
9081 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
9082 arrow animation timeout before we actually reorder the rbtree. If
9083 we don't do this we can get stuck arrows,
9084 (cancel_arrow_animation): new function. (Fixes #93629, part 2,
9085 reported and testcase provided by Hans Petter Jansson).
9087 Tue Jan 14 23:18:21 2003 Kristian Rietveld <kris@gtk.org>
9089 * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
9090 anchor_path should be start_path, not end_path. (Fixes #102618,
9091 patch from Carlos Garnacho Parro).
9093 Tue Jan 14 23:16:15 2003 Kristian Rietveld <kris@gtk.org>
9095 * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
9096 only correct new_pos if we don't move to the head/tail.
9098 Tue Jan 14 23:11:55 2003 Kristian Rietveld <kris@gtk.org>
9100 * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
9101 the parent_iter if depth >= 1, so we send the reordered signal to
9102 the correct level, remove debugging printfs which I forgot the remove
9103 earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
9104 testcase provided by Matthew Tuck).
9106 Tue Jan 14 20:58:44 2003 Kristian Rietveld <kris@gtk.org>
9108 * gtk/gtktreeview.c (invalite_last_column): split out actual column
9109 invalidation into invalidate_column(),
9110 (gtk_tree_view_size_allocate_columns): invalidate column if the
9111 new width is larger than the old width.
9112 (fixes #102890, reported by Alex Duggan).
9114 2003-01-14 Matthias Clasen <maclas@gmx.de>
9116 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
9117 invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
9120 * gtk/gtktextiter.c,
9121 gtk/gtktextiter.h: Add some variant movement functions which
9122 skip invisible chars, and do some cleanups.
9124 2003-01-12 Tor Lillqvist <tml@iki.fi>
9128 * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
9129 as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
9132 * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
9136 * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
9138 * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
9139 gtk-demo}.exe and share/gtk-2.0.
9141 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
9142 Implement by setting or clearing the WS_EX_TOOLWINDOW extended
9144 (gdk_window_set_type_hint): Add all cases to the switch (not all
9145 do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
9146 calling gdk_window_set_skip_taskbar_hint(). This means that GTK
9147 won't know that the skip_taskbar hint is on for the window, is
9150 Wed Jan 8 18:43:03 2003 Manish Singh <yosh@gimp.org>
9152 * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
9153 <string.h> for strlen.
9155 * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
9156 <string.h> for strrchr.
9158 * tests/testgtk.c (create_saved_position): "x" and "y" properties
9159 for widgets no longer exist, use gtk_window_move instead.
9161 * test/testtextbuffer.c (check_get_set_text): cast strlen to
9164 2003-01-08 Matthias Clasen <maclas@gmx.de>
9166 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
9167 the selection in the presence of invisible segments.
9169 2003-01-07 Matthias Clasen <maclas@gmx.de>
9171 * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
9172 to "select all" and "unselect all". (#102065)
9174 * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
9175 the just_selected_element is unused.
9177 * gtk/gtktextview.c (extend_selection): New helper function to
9178 find the range that should be added to the selection.
9179 (selection_motion_event_handler):
9180 (gtk_text_view_start_selection_drag):
9181 (gtk_text_view_end_selection_drag):
9182 (selection_motion_event_handler):
9183 (selection_scan_timeout): Support select-by-words/lines.
9184 (gtk_text_view_button_press_event): Start a selection drag on
9185 double/triple clicks. (#78499)
9187 2003-01-06 Matthias Clasen <maclas@gmx.de>
9189 Implement a utility function proposed in #102534:
9191 * gtk/gtktextbtree.h:
9192 * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
9193 (_gtk_text_btree_place_cursor): Now a simple wrapper around
9194 _gtk_text_btree_select_range().
9196 * gtk/gtktextbuffer.h:
9197 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
9198 (gtk_text_buffer_place_cursor): Now a simple wrapper around
9199 gtk_text_buffer_select_range().
9201 2003-01-05 Havoc Pennington <hp@pobox.com>
9203 * configure.in: fix a stray bracket that was breaking the build
9205 2003-01-05 Tor Lillqvist <tml@iki.fi>
9207 * gtk-zip.sh.in: Use correct DLL and import library names, with
9208 GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
9209 (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
9211 * configure.in: Improve check for dimm.h.
9213 * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
9214 gdk-pixbuf/Makefile.am.
9216 * gdk-pixbuf/makefile.mingw.in
9217 * gdk-pixbuf/pixops/makefile.mingw.in
9218 * gdk/makefile.mingw.in
9219 * gdk/win32/makefile.mingw.in
9220 * gtk/makefile.mingw.in: Remove. Not maintained anyway.
9222 * gdk-pixbuf/Makefile.am
9223 * gdk-pixbuf/pixops/Makefile.am
9225 * gdk/win32/Makefile.am
9227 * configure.in: Remove makefile.mingw{,.in} from here, too.
9229 * README.win32: Updates. Don't mention the now removed
9230 makefile.mingw files.
9233 * gtk/gtk.def: Add a couple of missing entries.
9235 * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
9237 * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
9240 * gdk/win32/rc/Makefile.am: Add hack to help
9241 build/win32/lt-compile-resource decide which kind of libtool
9242 object file to produce.
9244 2003-01-05 Matthias Clasen <maclas@gmx.de>
9246 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
9247 C-Down step through the sequence of paragraph ends (old behaviour
9248 included paragraph starts). (#80340, patch by Narayana Pattipati)
9250 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
9251 Check for a tag toggle at the start iterator before calling
9252 gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
9255 2003-01-04 Matthias Clasen <maclas@gmx.de>
9257 * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
9258 and /*< private >*/ as appropriate. (#97211)
9260 2003-01-04 Tor Lillqvist <tml@iki.fi>
9262 * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
9263 distribute gtk-zip.sh.in.
9265 * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
9267 2003-01-03 Havoc Pennington <hp@pobox.com>
9269 * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
9271 * docs/text_widget_internals.txt: add a file documenting some of
9272 the text widget internals
9274 2003-01-02 Matthias Clasen <maclas@gmx.de>
9276 * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
9277 return NULL. (#102069)
9279 2003-01-01 Matthias Clasen <maclas@gmx.de>
9281 * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
9282 a main() in the library is obviously bad.
9284 2002-12-27 Matthias Clasen <maclas@gmx.de>
9286 * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
9287 cursor at drop point. (#72384)
9288 (gtk_text_view_size_allocate): Update the horizontal adjustment
9291 2002-12-25 Matthias Clasen <maclas@gmx.de>
9293 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
9294 selection wrt. to empty lines. (#90435, #90582, #91619)
9296 * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
9297 Keep the cursor on screen. (#96929)
9299 2002-12-24 Matthias Clasen <maclas@gmx.de>
9301 * gtk/gtktextbuffer.c (paste_from_buffer):
9302 (clipboard_text_received): Let the user action span the insertion
9303 and the deletion of the old selection. (#82844)
9305 2002-12-23 Matthias Clasen <maclas@gmx.de>
9307 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
9308 Don't call gtk_text_iter_backward_sentence_start() if
9309 count is zero. (#99115)
9311 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
9312 move_cursor() even if the cursor hasn't moved, since it has the
9313 side effect of canceling the selection. (#81395, #98537, #98333)
9315 2002-12-22 Matthias Clasen <maclas@gmx.de>
9317 * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
9318 with empty ranges. (fixes #101564 and #80637)
9320 2002-12-21 Tor Lillqvist <tml@iki.fi>
9322 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
9323 sets the window style and extended window style, and adjusts the
9324 width and height to take the window decorations into account
9325 earlier. The adjusted width and height used to be ignored. Remove
9326 the local x, y, width and height variables, no need to further
9327 confuse the code by having local copies. (Partial fix, I hope, for
9330 (gdk_window_move): When moving top-level windows, take title bar
9331 and border width into account, offsetting the coordinates before
9332 calling SetWindowPos().
9334 (gdk_window_set_decorations, gdk_window_set_functions):
9335 Reimplement, taking into account the peculiar semantics of
9336 GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
9338 (gdk_window_get_decorations): Implement. (#98981)
9340 (gdk_window_set_type_hint): When setting
9341 GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
9344 * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
9346 2002-12-21 Matthias Clasen <maclas@gmx.de>
9348 * gtk/gtktextview.c (gtk_text_view_set_background): New static
9349 function to set the background of all windows.
9350 (gtk_text_view_style_set): Use gtk_text_view_set_background().
9351 (gtk_text_view_state_changed): New function; change background
9352 according to state. (#88126)
9354 2002-12-21 Havoc Pennington <hp@pobox.com>
9356 * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation