1 Sun Mar 14 23:36:15 2004 Owen Taylor <otaylor@redhat.com>
3 * gtk/gtkfilechooserdefault.c: Implement local_only by
4 filtering the shortcuts and bookmarks list by
5 gtk_file_system_path_to_filename (file_system, path) != NULL.
8 * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
9 a convenience function, may by interesting to push to the
10 file system vtable later for performance.
12 2004-03-14 Federico Mena Quintero <federico@ximian.com>
14 * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
15 to be NULL, so that people can ask for information about a
16 parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
18 * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
19 the condition describe above.
21 * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
22 information of root paths.
24 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
26 Sun Mar 14 22:32:36 2004 Owen Taylor <otaylor@redhat.com>
28 * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
29 GtkTreeViewSearchEqualFunc return value oddity here as well.
31 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
32 to get a string to compare to, return TRUE (no match), not
33 FALSE (match). Handle %NULL string values gracefully.
34 Remove unused variable. (#135962, Mark McLoughlin)
36 2004-03-14 Morten Welinder <terra@gnome.org>
38 * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
40 Sun Mar 14 21:03:15 2004 Owen Taylor <otaylor@redhat.com>
42 * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
45 * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
46 _gtk_path_bar_down() as bindings for Alt-Up
47 and new Alt-Down. (Partly based on a patch by
48 Mark McLoughlin, #136987)
50 2004-03-14 Federico Mena Quintero <federico@ximian.com>
52 Fixes #136185, patch by Morten Welinder, with some changes.
54 * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
55 (shortcuts_insert_path): Check the path first with check_is_folder().
56 (gtk_file_chooser_default_set_current_folder): Likewise.
57 (gtk_file_chooser_default_add_shortcut_folder): Likewise.
58 (browse_widgets_create): Unref the size group.
60 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
61 Handle the case where the file exists but it is not a directory.
62 (IconType): Add value for ICON_UNDECIDED.
63 (struct stat_info_entry): New structure to hold a file's struct
64 stat, its MIME type and its icon type.
65 (struct _GtkFileFolderUnix): Added a hash of struct
66 stat_info_entry, and flags to remember which info types we've read
68 (get_icon_type): Use a helper function for the icons-from-stat
70 (gtk_file_system_unix_render_icon): Use the cached file info.
71 (gtk_file_folder_unix_get_info): Put the info in the cache.
72 (gtk_file_system_unix_get_folder): Create the cache of file info
75 * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
76 case where display_name is the same as the existing
79 Sun Mar 14 19:26:48 2004 Owen Taylor <otaylor@redhat.com>
81 #136672, reported by Christian Persch; fixes based
82 on a patch by Soeren Sandmann.
84 * gtk/gtkmenu.c: Change the handling of mixed gridded
85 and non-gridded menu items; the old method was causing
86 major performance problems even with the "avoid relayout
87 on destruction" hack put in recently.
89 Now we first lay out the gridded items and then put the
90 non-gridded items into empty rows / after the gridded items.
91 Layout is done in a central menu_shell_ensure_layout(). Also
92 avoid emitting property notifications when we initially
93 insert or attach items.
95 * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
96 unused menu_shell->menu_flag, and document it as unused
99 * tests/testactions.c: Add a test of creating/removing
102 * test/testgtk.c: Add some more cruft to the menu test.
104 Mon Mar 15 02:36:07 2004 Matthias Clasen <maclas@gmx.de>
106 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
109 Sun Mar 14 15:38:39 2004 Jonathan Blandford <jrb@gnome.org>
111 * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
112 always use the match_func, even if text_column is set.
114 2004-03-14 Morten Welinder <terra@gnome.org>
116 * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
118 (gtk_file_system_unix_get_folder): Use the same value for lookup
119 as for insertion. Make sure we have a directory.
121 * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
122 path; don't crash on NULL error.
124 2004-03-14 Hans Breuer <hans@breuer.org>
126 gtk/gtkcombobox.c : prototype cell_view_sync_cells() before
129 gtk/makefile.msc.in : updated 'gtk_public_h_sources'
131 tests/makefile.msc : added testspinbutton
133 Sun Mar 14 01:01:18 2004 Matthias Clasen <maclas@gmx.de>
135 * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
136 this function with gtk_tree_view_column_set_cell_data();
137 call the cell data func after setting the attributes.
139 Sun Mar 14 01:00:08 2004 Matthias Clasen <maclas@gmx.de>
141 * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
142 make sure not to call gtk_cell_view_set_cell_data() when
143 displayed_row is NULL.
145 Sat Mar 13 18:13:13 2004 Owen Taylor <otaylor@redhat.com>
147 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
148 wrapping, do the offset of the line for justification ourselves.
149 (#120256, Felipe Heidrich)
151 Sun Mar 14 00:03:18 2004 Matthias Clasen <maclas@gmx.de>
153 * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
154 model-less use of GtkCellView shown in testcombo.c.
156 2004-03-13 Tor Lillqvist <tml@iki.fi>
158 * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
159 when compiling with gcc. Mingw's headers do have the required
162 * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
163 filled polygons, don't draw the outline, similarily as
164 draw_rectangle(). Apparently GTK and GIMP don't use
165 gdk_draw_polygon() much (or always draw the outline, too), as this
166 has gone undetected for so long. Thanks to Bruce Hochstetler.
168 Sat Mar 13 15:19:17 2004 Owen Taylor <otaylor@redhat.com>
170 * gtk/gtkwindow.c (gtk_window_destroy): Remove
171 the window from the toplevel_list here rather in destroy.
172 While this is theoretically speaking wrong, it fits
173 in better with the current reality that destroyed
174 widgets are not reusable. (#126808, Michael Natterer)
176 Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
178 * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
179 beyond clearing to the background if there is no active row.
180 (#137066, reported by Owen Taylor)
182 Sat Mar 13 21:37:44 2004 Matthias Clasen <maclas@gmx.de>
184 * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
185 list when an item is selected via the keyboard.
187 2004-03-13 Anders Carlsson <andersca@gnome.org>
189 * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
190 (gtk_file_system_unix_get_folder),
191 (gtk_file_system_unix_create_folder), (get_parent_dir),
192 (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
193 Remove trailing slashes in path names.
195 Sat Mar 13 12:17:16 2004 Owen Taylor <otaylor@redhat.com>
197 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
198 this a total no-op when the new or old parent is
199 destroyed. (#134230, patch from Soeren Sandmann)
201 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
202 For foreign windows in our heirarchy, call
203 _gdk_windowing_window_destroy_foreign (window) and skip
204 all the normal destruction logic.
206 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
207 Move code to request destruction of a foreign window
208 code into a separate _gdk_windowing_window_destroy_foreign().
210 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
211 Call GDK_WINDOW_DISPLAY() on the wrapper not on the
212 impl. (Also from Soeren's patch)
214 Sat Mar 13 10:49:46 2004 Owen Taylor <otaylor@redhat.com>
216 * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
217 GTK_IS_PLUG toplevels, call gdk_window_get_origin()
218 not gtk_window_get_position, as a hackround for not
219 having accurate notification of window position for
220 embedded windows. (#136112, Dan Winship)
222 Sat Mar 13 10:34:03 2004 Owen Taylor <otaylor@redhat.com>
224 * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
225 it causes problems for pastes from other applications; see
226 comments in bugzilla for #81880.
228 Sat Mar 13 02:55:51 2004 Matthias Clasen <maclas@gmx.de>
230 Fix middle button pasting in the TextView (#81880, reported
231 by Evert Verhellen, patch by Paolo Borelli):
233 * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve
234 the insert mark and move the cursor to it making sure of also
235 scroll the window if needed.
237 * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
238 to the insertion point.
240 Sat Mar 13 01:38:55 2004 Matthias Clasen <maclas@gmx.de>
242 * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove
243 implemenatation which restores the cell_view when the custom
244 child is removed. (#136555, Owen Taylor)
246 Sat Mar 13 00:07:51 2004 Matthias Clasen <maclas@gmx.de>
248 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear):
249 Keep the cell_list in a consistent state while iterating over it,
250 since clear_attributes() also iterates over it. (another instance
251 of #136585, Morten Welinder)
253 Fri Mar 12 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
255 * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
256 and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
257 Semion Chichelnitsky)
259 * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed
260 gtk_toolbar_direction-changed handlers and explicit
261 flipping of GtkArrow widgets.
263 Fri Mar 12 23:37:15 2004 Soeren Sandmann <sandmann@daimi.au.dk>
265 * gtk/gtkfilechooserdialog.c
266 (file_chooser_widget_default_realized_size_changed): Clamp the
267 new size to the screen.
269 Fri Mar 12 15:06:44 2004 Owen Taylor <otaylor@redhat.com>
271 * gtk/gtkexpander.c (gtk_expander_realize): Create the
272 event_window at the right size using the same logic as
273 in size_allocate. (#136994, Niklas Knuttson)
275 2004-03-12 Federico Mena Quintero <federico@ximian.com>
277 * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
278 return value of gtk_widget_activate().
279 (gtk_window_activate_default): Likewise. Fixes #137008.
281 * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
282 response IDs we recognize, rather than bailing out on cancellation
283 ones. Fixes #136237; patch by Olivier Andrieu
284 <oliv__a@users.sourceforge.net>.
285 (file_chooser_widget_file_activated): If the dialog doesn't have a
286 default widget, try to find a suitable response widget on our own.
287 People should *really* be using gtk_dialog_set_default_response(),
288 but this is to help lazy programmers.
290 * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
292 (get_response_data): Add a "create" argument so that we don't
293 unconditionally create the response data.
295 2004-03-12 Morten Welinder <terra@gnome.org>
297 * tests/Makefile.am: Add new testspinbutton.c
299 2004-03-11 Federico Mena Quintero <federico@ximian.com>
301 * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
302 Put the trash icon on the right for LTR locales, or on the left
304 (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
305 (shortcuts_drag_leave_cb): Test whether the idle is present.
306 (shortcuts_drag_data_received_cb): Ahem, don't assert here.
308 Thu Mar 11 17:51:10 2004 Owen Taylor <otaylor@redhat.com>
310 * modules/input/gtkimcontextxim.c (preedit_done_callback):
311 Clear preedit string and emit preedit_changed as needed
312 on AIX. (#130617, Philip K Warren)
314 2004-03-11 Morten Welinder <terra@gnome.org>
316 * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
318 Thu Mar 11 16:28:15 2004 Owen Taylor <otaylor@redhat.com>
320 * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
321 type. (#136919, Tim Mooney)
323 Thu Mar 11 16:18:51 2004 Jonathan Blandford <jrb@redhat.com>
325 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
326 earlier change to insert_path so that we test that the directory
329 * gtk/gtkfilechooserdialog.c
330 (gtk_file_chooser_dialog_constructor): move focus.
332 Thu Mar 11 22:12:14 2004 Matthias Clasen <maclas@gmx.de>
334 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
335 logic as GtkEntry when calculating border width. (#116368, reported
338 Thu Mar 11 15:59:05 2004 Owen Taylor <otaylor@redhat.com>
340 * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
341 rather than gtk_widget_set_size_request().
343 2004-03-11 Federico Mena Quintero <federico@ximian.com>
345 * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
346 function, copied from gtkpathbar.c.
347 (gtk_file_chooser_default_dispose): Use remove_settings_signal()
348 rather than our own code.
349 (gtk_file_chooser_default_screen_changed): Use
350 remove_settings_signal(); this should handle per-screen settings
353 Thu Mar 11 14:07:18 2004 Owen Taylor <otaylor@redhat.com>
355 * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
358 Thu Mar 11 13:58:24 2004 Owen Taylor <otaylor@redhat.com>
360 * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
361 put-labels-into-the-standard-focus-chain patches
364 * gtk/gtklabel.c (gtk_label_focus): Only put the
365 label in the tab chain when the control key is pressed.
367 2004-03-11 Federico Mena Quintero <federico@ximian.com>
369 * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
370 single OK button, not a Close button, as per the HIG.
372 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
374 2004-03-11 Federico Mena Quintero <federico@ximian.com>
376 * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
377 initialize "action" before jumping. Fixes #136900.
379 2004-03-11 Mark McLoughlin <mark@skynet.ie>
381 * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
382 application properties. Fixes bug #136802.
384 2004-03-11 Dov Grobgeld <dov@imagic.weizmann.ac.il>
386 * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
387 call to gtk_text_layout_update_cursor_line() to solve in
388 problem of switching keyboard direction at widget creation:
391 Thu Mar 11 10:28:30 2004 Owen Taylor <otaylor@redhat.com>
393 * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
394 stray 'return' statement. (#136855, David L. Cooper II)
396 2004-03-11 Mark McLoughlin <mark@skynet.ie>
398 * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
399 fg color for drawing the expander when prelit. Fixes problem
400 with the HighContrast theme: bug #136789.
402 2004-03-11 Federico Mena Quintero <federico@ximian.com>
404 Fix #135912 and #135913.
406 * gtk/gtkfilechooserdefault.c
407 (shortcuts_filter_model_row_draggable): Implement.
408 (shortcuts_model_filter_new): New function, create a
409 ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
410 we can implement our own DnD interface methods.
411 (shortcuts_model_create): Use shortcuts_model_filter_new().
412 (shortcuts_list_create): Enable the shortcuts list as a drag
414 (file_list_source_targets): Renamed from shortcuts_targets.
415 (shortcuts_list_create): Change the options for
416 gtk_drag_dest_set(). Connect to more drag signals so that we can
417 implement drops by hand.
418 (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
419 (shortcuts_drag_motion_cb): New handler; validate the drop.
420 (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
421 (shortcuts_drag_drop_cb): New handler; just stop the emission and
422 remove the idle handler for the drag cursor.
423 (shortcuts_add_bookmark_from_path): Add a position argument,
424 return a boolean success code.
425 (shortcuts_drag_data_received_cb): Handle two cases: 1) Insert
426 the bookmarks at the proper position, rather than always appending
427 them to the list; 2) alternatively, reorder the bookmarks.
428 (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
429 (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
430 (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
432 (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
434 Thu Mar 11 01:08:25 2004 Jonathan Blandford <jrb@gnome.org>
436 * gtk/gtkfilechooserdefault.c (location_entry_create): up the
437 width of the entry a tad.
439 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
440 gtk_entry_completion_selection_changed. Also, unref the
441 completion as we were leaking a reference to it.
443 2004-03-10 Federico Mena Quintero <federico@ximian.com>
445 * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon. Thanks to
446 Kjartan Maraas for pointing it out.
448 Wed Mar 10 23:40:15 2004 Matthias Clasen <maclas@gmx.de>
450 * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
451 background on the action view cell renderer here, not in init, so
452 that a) we catch style changes, and b) we get the real style, not
453 the default one. Partial fix for #127648, reported by Dave Bordoley.
455 2004-03-10 Tor Lillqvist <tml@iki.fi>
457 * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
458 the pointer button bits. (#136636, Dave Neary)
460 * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
461 transparent (input only) windows using SetWindowPos(). (#132331,
464 (gdk_window_set_type_hint): For splash screens, remove the resize
465 handles, menu, and minimize/maximize/close buttons. (#132896)
467 Wed Mar 10 22:30:23 2004 Matthias Clasen <maclas@gmx.de>
469 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
470 cell_list in a consistent state while iterating over it, since
471 clear_attributes() also iterates over it. (#136585, Morten Welinder)
473 2004-03-10 Mark McLoughlin <mark@skynet.ie>
475 * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
476 the expose to the label. The expose handler for GtkContainer
477 already does that. Fixes bug #136719. Reported by Dennis
478 Cranston, exact cause nailed down by Owen.
480 2004-03-10 Federico Mena Quintero <federico@ximian.com>
482 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
483 untranslatable "%x" for dates, rather than a custom format. Fixes
486 2004-03-10 Morten Welinder <terra@gnome.org>
488 * gtk/gtkfilechooserdefault.c
489 (gtk_file_chooser_default_add_shortcut_folder): Test validity of
491 (shortcuts_insert_path): Don't check here.
492 (get_file_info): Barf if name-only fails.
494 * tests/testfilechooser.c (main): Add support for --multiple.
496 Wed Mar 10 02:41:05 2004 Jonathan Blandford <jrb@gnome.org>
498 * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
499 (remove_settings_signal), (gtk_path_bar_dispose),
500 (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
501 (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
502 (settings_notify_cb), (gtk_path_bar_check_icon_theme),
503 (get_button_image), (gtk_path_bar_update_button_appearance),
504 (make_directory_button), (gtk_path_bar_check_parent_path): Support
505 changes in icon themes.
507 * gtk/gtkpathbar.h: add two elements
509 * tests/testfilechooser.c: (main): use gnome-vfs method again to
512 Wed Mar 10 01:17:40 2004 Jonathan Blandford <jrb@gnome.org>
514 * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes. We
515 don't have any more untranlated strings in the dialog.
517 Wed Mar 10 00:24:24 2004 Jonathan Blandford <jrb@gnome.org>
519 * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
520 the pathname for UTF-8 safety.
522 Wed Mar 10 00:10:47 2004 Jonathan Blandford <jrb@gnome.org>
524 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
525 check to see if the shortcuts exists. We don't want to put
526 invalid dirs in the shortcuts pane.
528 Tue Mar 9 16:40:34 2004 Jonathan Blandford <jrb@gnome.org>
530 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
531 remove unneeded shortuts_swin;
533 Wed Mar 10 01:49:27 2004 Matthias Clasen <maclas@gmx.de>
535 Fix #136614 in a better way:
537 * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
538 * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
539 * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
540 * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
541 alignment if priv->align_set is set.
542 * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
544 Wed Mar 10 01:21:05 2004 Matthias Clasen <maclas@gmx.de>
546 * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
547 grid mode popups left aligned, not right aligned.
549 Tue Mar 9 23:09:46 2004 Matthias Clasen <maclas@gmx.de>
551 * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
552 the label that is reparented from the menuitem. (#136614, Dennis
555 Tue Mar 9 16:19:09 2004 Jonathan Blandford <jrb@gnome.org>
557 * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
558 information about a button in a struct instead of ugly
560 (gtk_path_bar_size_request): Use ButtonData.
561 (gtk_path_bar_update_slider_buttons): ditto
562 (gtk_path_bar_size_allocate): ditto
563 (gtk_path_bar_remove): ditto
564 (gtk_path_bar_forall): ditto
565 (gtk_path_bar_scroll_down): ditto
566 (gtk_path_bar_clear_buttons): ditto
567 (button_clicked_cb): ditto. Also, add an ignore_changes variable
568 (button_data_free): destroy ButtonData
569 (update_button_appearance): Use ButtonData
570 (make_directory_button): ditto
571 (gtk_path_bar_check_parent_path): ditto
572 (_gtk_path_bar_set_path): ditto
574 2004-03-09 Federico Mena Quintero <federico@ximian.com>
578 * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
580 (check_icon_theme): New helper function, installs a handler for
581 changes in the icon theme.
582 (gtk_file_chooser_default_style_set): Use check_icon_theme().
583 (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
584 (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
585 (change_icon_theme): New function, updates impl->icon_size and
587 (struct _GtkFileChooserDefault): New field settings_signal_id.
588 (struct _GtkFileChooserDefault): New field icon_size.
589 (shortcuts_insert_path): Use impl->icon_size.
590 (list_icon_data_func): Likewise.
592 2004-03-09 Federico Mena Quintero <federico@ximian.com>
594 * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
595 parent_path being NULL. Fixes #136662.
597 2004-03-09 Federico Mena Quintero <federico@ximian.com>
599 * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
600 Stop the emission so that GtkTreeView's handler won't try to poke
601 the filter model. Fixes #136127.
603 Tue Mar 9 13:49:14 2004 Owen Taylor <otaylor@redhat.com>
605 * gtk/gtkstyle.c (gtk_paint_polygon): Fix
606 g_return_if_fail() that was checking draw_shadow.
607 (#136669, Morten Welinder)
609 Tue Mar 9 09:57:25 2004 Owen Taylor <otaylor@redhat.com>
611 * === Released 2.3.6 ===
613 * configure.in: Version 2.3.6, interface age 0.
617 Tue Mar 9 11:01:45 2004 Jonathan Blandford <jrb@gnome.org>
619 * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
620 icon. Reported by Michael Natterer <mitch@gimp.org>.
622 2004-03-09 Morten Welinder <terra@gnome.org>
624 * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
626 Tue Mar 9 02:11:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
628 * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
629 (struct _GtkMenuPrivate): Add boolean destroying
630 (gtk_menu_destroy): Set priv->destroying
631 (gtk_menu_remove): don't update the table information when the
632 menu is being destroyed.
634 * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
636 * gtk/gtktoolbar.[ch]: Some formatting fixes
638 Tue Mar 9 01:25:10 2004 Matthias Clasen <maclas@gmx.de>
640 * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
642 2004-03-08 Federico Mena Quintero <federico@ximian.com>
646 * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
648 (filename_get_info): Likewise.
650 2004-03-08 Federico Mena Quintero <federico@ximian.com>
652 * gtk/gtkfilechooserdefault.c
653 (gtk_file_chooser_default_initial_focus): Use
654 gtk_tree_view_set_cursor().
656 2004-03-08 Federico Mena Quintero <federico@ximian.com>
658 Patch "1a" from #136185, by Morten Welinder.
660 * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
661 that says whether the caller just wants the display name.
662 (shortcuts_insert_path): We only want the name in the call to
665 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
666 info than needed from the file_folder.
668 2004-03-08 Federico Mena Quintero <federico@ximian.com>
672 * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
673 Added an ::initial_focus() method.
675 * gtk/gtkfilechooserembed.c
676 (_gtk_file_chooser_embed_delegate_iface_init): Set the
677 initial_focus method.
678 (delegate_initial_focus): Implement.
679 (_gtk_file_chooser_embed_initial_focus): New function.
681 * gtk/gtkfilechooserdialog.c
682 (gtk_file_chooser_dialog_constructor): Call
683 _gtk_file_chooser_embed_initial_focus().
685 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
686 Install the ::initial_focus() handler.
687 (gtk_file_chooser_default_initial_focus): Implement.
689 2004-03-08 Federico Mena Quintero <federico@ximian.com>
691 * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
692 boolean success code.
693 (location_popup_handler): Refocus the file chooser if appropriate.
695 (save_widgets_create): Don't set the text of the save_folder_label
697 (update_appearance): Set the text here as appropriate for the save
698 mode. Also fixes #136387.
699 (update_appearance): Don't show the Create Folder button in
701 (update_appearance): Show the extra widget in all Save modes
704 Mon Mar 8 11:57:27 2004 Owen Taylor <otaylor@redhat.com>
706 * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
707 call g_signal_handler_disonnect() if priv->model is
708 NULL. (#136551, Damon Chaplin)
710 * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
711 Back out code to set the active item when the first
712 item is added to the model; this causes problems for
713 GtkComboBoxText. (#136535)
715 * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
716 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
717 * gtk/gtkcombobox.c (gtk_combo_box_list_setup):
718 * gtk/gtkcombobox.c (gtk_combo_box_menu_setup):
719 Remove calls to gtk_combo_box_unset_model.
721 * gtk/gtkcombobox.c (gtk_combo_box_check_appearance):
722 Clean up handling of wrap->width > 0.
724 * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
725 switch list/menu mode here.
727 * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
728 against the same model being set back.
730 * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
731 gtk_combo_box_menu_fill() rather than duplicating
732 a large chunk of code.
734 2004-03-08 Anders Carlsson <andersca@gnome.org>
736 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags):
737 If max_depth is 0 then we have a list.
739 2004-03-08 Morten Welinder <terra@gnome.org>
741 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
742 widget unchanged. Explicitly verify final directory.
744 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
745 get_icon_type, filename_get_info): Protect errno.
747 2004-03-08 Marco Pesenti Gritti <marco@gnome.org>
749 * gtk/gtkentry.c: (gtk_entry_completion_key_press):
751 When an action is selected stop the event to be propagated
752 otherwise the activate signal is emitted too. (Bug #133394)
754 Mon Mar 8 04:50:12 2004 Jonathan Blandford <jrb@gnome.org>
756 * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
757 consolidate creating the path_bar.
758 (gtk_file_chooser_default_set_current_folder): no longer need to
759 pass in the filesystem.
761 * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
762 of just setting the filesystem.
764 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
766 (get_button_image): Add images to path_bar.
767 (update_button_appearance): use images
768 (make_directory_button): Clasify buttons based upon location.
769 (_gtk_path_bar_set_path): no longer need a file-system. Also, add
770 rerooting, #135845, #135914
772 * tests/testfilechooser.c: Fix reused error handling.
774 2004-03-08 Anders Carlsson <andersca@gnome.org>
776 * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
777 (gtk_file_system_unix_render_icon):
778 Use better icons for home and desktop.
780 2004-03-08 Anders Carlsson <andersca@gnome.org>
782 * gtk/gtkfilechooserentry.c:
783 (_gtk_file_chooser_entry_set_base_folder):
784 Set the base folder path in the entry.
786 2004-03-08 Christian Neumair <chris@gnome-de.org>
788 * tests/testentrycompletion.c: Fix typo.
790 2004-03-08 Tor Lillqvist <tml@iki.fi>
792 * README.win32: Update.
794 * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
796 * tests/testfilechooser.c: Correct localtime_r() emulation on
797 Win32. Remove a couple of unnecessary Win32-only includes.
799 Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
801 * tests/testentrycompletion.c: Test dynamic addition/removal.
803 Sun Mar 7 22:38:49 2004 Matthias Clasen <maclas@gmx.de>
805 * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not
806 xthickness in the calculation of vertical dimensions.
808 Sun Mar 7 17:38:03 2004 Jonathan Blandford <jrb@gnome.org>
810 * gtk/gtkbutton.c (gtk_button_class_init): actually use
813 * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
814 use the uri, not the path, #136317
815 (renderer_edited_cb): ditto
816 (shortcuts_add_bookmark_from_path): ditto
817 (remove_bookmark_button_clicked_cb): ditto
818 (gtk_file_chooser_default_remove_shortcut): ditto
819 (update_from_entry): ditto
820 (up_folder_handler): ditto
822 Sun Mar 7 16:07:08 2004 Jonathan Blandford <jrb@gnome.org>
824 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
825 redraw_on_allocate, #135902.
827 * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
828 Damon Chaplin to set a node to be visible before emitting the
829 inserted signal, #135555.
831 Sun Mar 7 22:24:28 2004 Matthias Clasen <maclas@gmx.de>
833 * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
836 Sun Mar 7 14:34:04 2004 Jonathan Blandford <jrb@gnome.org>
840 * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
841 from unselecting rows when pressed in multiple-selection mode.
843 2004-03-07 Hans Breuer <hans@breuer.org>
845 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
846 some more settings from system, also reflect some name changes
847 done a while ago in the x11 backend
849 * gdk/win32/makefile.msc : build gdkspawn-win32.c
851 * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
853 * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
855 * tests/makefile.msc : some more tests get build
857 Sun Mar 7 03:03:57 2004 Jonathan Blandford <jrb@gnome.org>
859 * gtk/gtkfilechooserdefault.c
860 (gtk_file_chooser_default_get_paths): if action is
861 SELECT_FOLDER, then return the currentd folder if none is
863 (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
864 no directory is selected in SELECT_FOLDER mode.
866 Sat Mar 6 23:31:18 2004 Jonathan Blandford <jrb@gnome.org>
868 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
869 remove unneeded elements.
870 (tree_selection_changed): removed
871 (tree_name_data_func): removed
872 (gtk_file_chooser_default_finalize): don't unref dir model
873 (create_folder_tree): removed
874 (get_selection): no longer need to abstract away the selection
876 (create_file_list): We now create a tree for all actions.
877 (file_pane_create): Make one tree.
878 (update_appearance) We really change the mode only, now.
880 Sun Mar 7 02:38:00 2004 Matthias Clasen <maclas@gmx.de>
882 * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a
883 size_request on the button and cell_view_frame, otherwise
884 their style will still be the default here in the initial
885 size_request. (#136301, Mark McLoughlin)
887 2004-03-06 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
889 * gtk/gtktoolbar.c (internal_insert_element): Check return value
890 of gtk_stock_lookup; if stock lookup fails, just use stock_id as
891 label, instead of crashing. Fixes #136202.
893 2004-03-05 Federico Mena Quintero <federico@ximian.com>
895 * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
897 * gdk/linux-fb/gdkwindow-fb.c: Likewise.
898 * gdk/linux-fb/gdkinput.c: Likewise.
900 2004-03-05 Federico Mena Quintero <federico@ximian.com>
902 Fixes #136082 and #135265, patch by Morten Welinder.
904 * configure.in: Use AC_SYS_LARGEFILE.
906 * */*.c: #include <config.h>
908 2004-03-05 Federico Mena Quintero <federico@ximian.com>
910 * gtk/gtkfilechooserdefault.c
911 (gtk_file_chooser_default_select_path): No need to have a
912 temporary error variable.
914 2004-03-05 Tor Lillqvist <tml@iki.fi>
916 * configure.in: Move check for native Win32 (mingw) a bit
917 earlier. If Win32, disable static builds (as in GLib). Remove
918 unnecessary AC_LIBTOOL_WIN32_DLL.
920 * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
922 * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
924 (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
927 (gdk_display_supports_cursor_alpha,
928 gdk_display_supports_cursor_color): Dummy implementations.
930 (gdk_display_get_default_cursor_size,
931 gdk_display_get_maximal_cursor_size): Implement.
933 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
934 Dummy implementation.
936 * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
939 * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
941 * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
944 * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
947 Fri Mar 5 18:00:36 2004 Jonathan Blandford <jrb@redhat.com>
949 * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
952 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
953 allocation when scrolling instead of cancelling editing.
955 Fri Mar 5 23:52:34 2004 Matthias Clasen <maclas@gmx.de>
957 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func):
958 Improve the docs. (#127727, Murray Cumming)
960 Fri Mar 5 23:37:16 2004 Matthias Clasen <maclas@gmx.de>
962 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
963 doc comment. (#118602)
965 Fri Mar 5 22:37:15 2004 Matthias Clasen <maclas@gmx.de>
967 * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
968 the priv->image pointer dangle. (#136259, Padraig O'Briain)
970 2004-03-05 Federico Mena Quintero <federico@ximian.com>
972 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
973 gboolean return values and GError arguments to
974 ::set_current_folder() and ::select_path().
976 * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
977 Return a boolean value for success/failure.
978 (gtk_file_chooser_set_current_folder_uri): Likewise.
979 (gtk_file_chooser_select_filename): Likewise.
980 (gtk_file_chooser_select_uri): Likewise.
981 (gtk_file_chooser_set_filename): Likewise.
982 (gtk_file_chooser_set_uri): Likewise.
983 (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
985 (_gtk_file_chooser_select_path): Likewise.
987 * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
989 (delegate_select_path): Likewise.
991 * gtk/gtkfilechooserdefault.c
992 (gtk_file_chooser_default_select_path): Likewise.
993 (gtk_file_chooser_default_set_current_folder): Likewise; this also
995 (error_changing_folder_dialog): New helper function.
996 (change_folder_and_display_error): New helper function.
997 (switch_to_selected_folder): Use change_folder_and_display_error().
998 (tree_selection_changed): Likewise.
999 (shortcuts_activate_volume): Likewise.
1000 (shortcuts_activate_item): Likewise.
1001 (list_row_activated): Likewise.
1002 (path_bar_clicked): Likewise.
1003 (update_from_entry): Likewise.
1004 (up_folder_handler): Likewise.
1005 (home_folder_handler): Get the home path from the shortcuts model,
1006 and use change_folder_and_display_error().
1008 * tests/testfilechooser.c (set_current_folder): New helper
1009 function; pops up a simple error dialog if necessary.
1010 (set_filename): Likewise.
1011 (set_folder_nonexistent_cb): Use set_current_folder().
1012 (set_folder_existing_nonexistent_cb): Likewise.
1013 (set_filename_nonexistent_cb): Use set_filename().
1014 (set_filename_existing_nonexistent_cb): Likewise.
1016 Fri Mar 5 11:17:35 2004 Owen Taylor <otaylor@redhat.com>
1018 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy):
1019 Improve the docs (reported by Vitaly Tishkov,
1020 #74362) Add some comments to the code about the
1021 row reference handling that are hopefully not entirely
1024 2004-03-05 Michael Natterer <mitch@gimp.org>
1026 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1027 s/object/widget/. Makes it compile again.
1029 Fri Mar 5 03:37:14 2004 Jonathan Blandford <jrb@gnome.org>
1031 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1032 chain to the extra_widget.
1034 Fri Mar 5 02:53:41 2004 Jonathan Blandford <jrb@gnome.org>
1036 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1037 Patch from Damon Chaplin to free models when we're finalized,
1040 2004-03-05 Alexander Larsson <alexl@redhat.com>
1042 * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1043 Document the fact that there might not be a volume for all
1046 * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1047 Don't assume there is a volume for all paths.
1049 Fri Mar 5 01:45:04 2004 Jonathan Blandford <jrb@gnome.org>
1051 * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1052 the correct place instead of naïvely appending.
1053 (shortcuts_add_volumes): refilter the model
1054 (shortcuts_add_bookmarks): refilter the model
1055 (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1057 2004-03-04 Federico Mena Quintero <federico@ximian.com>
1059 * gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the
1060 GtkFileChooser widget if it wants to do something special rather
1061 than letting us terminate the dialog.
1062 (gtk_file_chooser_dialog_init): Connect to "response"; see the
1063 comment in the sources to see why we don't override the method in
1066 * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1067 Added a ::should_respond() method.
1069 * gtk/gtkfilechooserembed.c
1070 (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1071 (delegate_should_respond): New delegate.
1072 (_gtk_file_chooser_embed_should_respond): New function.
1074 * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1075 Use dashes in signal names rather than underscores.
1076 (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1077 (gtk_file_chooser_default_should_respond): Implement. go into a
1078 folder rather than responding if we are in File mode and the
1079 selected file is a folder.
1080 (get_selection): New helper function.
1081 (add_bookmark_button_clicked_cb): Use get_selection().
1082 (bookmarks_check_add_sensitivity): Likewise.
1083 (gtk_file_chooser_default_get_paths): Likewise.
1084 (check_save_entry): New helper function.
1085 (gtk_file_chooser_default_get_paths): Use check_save_entry().
1086 (selection_check): Renamed from selection_is_folders(). Now
1087 checks whether the selection is empty, all files, all folders.
1088 (bookmarks_check_add_sensitivity): Use selection_check().
1090 Fri Mar 5 00:05:59 2004 Matthias Clasen <maclas@gmx.de>
1092 * gtk/gtkcombobox.c (gtk_combo_box_list_setup):
1093 * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to
1094 key_press_event and handle Alt-Down/Alt-Up to show or hide the
1095 list popup. Also handle Down/Up/PageDown/PageUp/Home/End and
1096 make them change the active item without popping up the list.
1097 These keybindings are inherited from GtkCombo.
1099 Thu Mar 4 23:15:58 2004 Matthias Clasen <maclas@gmx.de>
1101 * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially
1102 select the active item when using optionmenu-like positioning.
1104 Thu Mar 4 16:54:30 2004 Owen Taylor <otaylor@redhat.com>
1106 * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1107 open/close the file, just check for existence
1108 with g_file_test(). This is considerably cheaper,
1109 and lack-of-permissions for pixmap dirs is
1112 Wed Mar 3 17:53:21 2004 Owen Taylor <otaylor@redhat.com>
1114 * gtk/gtksocket.c (gtk_socket_class_init): Overide
1115 show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1116 since we don't want to propagate to the in-process
1117 plug, if any. (#122949, Michael Meeks)
1119 Thu Mar 4 15:20:55 2004 Jonathan Blandford <jrb@gnome.org>
1121 * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1122 Folder' button in SAVE mode again.
1124 Thu Mar 4 21:53:46 2004 Matthias Clasen <maclas@gmx.de>
1126 * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1127 count of the style when copying the cached icon. (#135890, Crispin
1130 Thu Mar 4 21:45:43 2004 Matthias Clasen <maclas@gmx.de>
1132 * gtk/gtkcombobox.c: In list mode, set the background color
1133 of the cell view to the base color of the style, instead of
1134 hardwiring white. (#136158)
1136 Thu Mar 4 01:32:19 2004 Jonathan Blandford <jrb@gnome.org>
1138 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1139 muppet <scott@asofyet.org> to keep child directories around if we
1142 * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1143 icon-setting functions. Not used yet.
1144 (_gtk_path_bar_set_root_icon): Ditto.
1146 Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
1148 * gtk/gtktextview.c (extend_selection):
1149 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1150 to select the last word in the buffer. (#135487, Paolo Borelli)
1152 Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
1154 * gtk/gtkentrycompletion.c: Doc update.
1156 Wed Mar 3 17:30:18 2004 Owen Taylor <otaylor@redhat.com>
1158 * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1159 whether widgets are viewable, not just if they are
1160 mapped. (#122912, reported by Tim Evans)
1162 Wed Mar 3 23:28:48 2004 Matthias Clasen <maclas@gmx.de>
1164 * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1165 implementation into a new gtk_combo_box_set_active_internal()
1166 function, which doesn't do the short-circuiting.
1167 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1168 set_active_internal() here, since the active item may change here,
1169 although the index is unchanged.
1171 Wed Mar 3 23:26:49 2004 Matthias Clasen <maclas@gmx.de>
1173 * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1174 traditional option menu placement of the popup for regular combo
1175 boxes. Grids and editable combo boxes use the combo-like placement
1176 below the entry. (#136021)
1177 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press):
1178 * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1179 before popping up the menu, to make the placement work.
1181 Wed Mar 3 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
1183 * gtk/gtkmain.c (gtk_propagate_event): Special case
1184 scroll events so that they propagate up the widget
1185 heirarchy when received on insensitive widgets.
1186 (#101102, reported by Geoff Reedy)
1188 Wed Mar 3 16:47:10 2004 Owen Taylor <otaylor@redhat.com>
1190 #109594, reported by Olivier Ripoll
1192 * gtk/gtkentry.c (gtk_entry_size_request): Use max of
1193 width and digit width for gtk_entry_set_width_chars,
1196 * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1197 width of the entry to 7 chars.
1199 Wed Mar 3 16:00:10 2004 Owen Taylor <otaylor@redhat.com>
1201 * configure.in: Strip out the "export-dynamic" libtool
1202 option from library link lines. (#124687, James Henstridge)
1204 Wed Mar 3 16:06:03 2004 Jonathan Blandford <jrb@gnome.org>
1206 * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1207 Don't activate the combo if we're in the midst of changing
1210 2004-03-03 Mark McLoughlin <mark@skynet.ie>
1212 * tests/testsocket_common.c: (print_hello): don't try and store
1213 pointers in ints. Fixes 64-bit build.
1215 2004-03-03 Federico Mena Quintero <federico@ximian.com>
1217 * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1218 not using a temporary variable, and clarify the documentation.
1221 2004-03-03 Mark McLoughlin <mark@skynet.ie>
1223 * gtk/gtkexpander.c:
1224 (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1225 (gtk_expander_set_label_widget): Set the label widget's
1226 state to prelight if we're prelit. Fixes bug #136078.
1228 2004-03-03 Murray Cumming <murrayc@murrayc.com>
1230 * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1231 signal vfunc declaration, adding the first parameter, which is the
1232 widget emitting the signal.
1234 2004-03-03 Morten Welinder <terra@gnome.org>
1236 * tests/testfilechooser.c (update_preview_cb): Plug leak.
1238 Tue Mar 2 23:39:55 2004 Jonathan Blandford <jrb@gnome.org>
1240 * gtk/gtkfilechooserdialog.c
1241 (file_chooser_widget_default_realized_size_changed): Split
1242 function into realized and unrealized variants, and consolidate
1243 the handling fo size-changing and default changing.
1245 * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1246 remove resizable-hints-changed, as it just complicated things.
1248 * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1249 resizable-hints-changed.
1251 2004-03-03 Tor Lillqvist <tml@iki.fi>
1253 * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1255 * NEWS: Correct spelling of my name in one place.
1257 2004-03-02 Federico Mena Quintero <federico@ximian.com>
1259 * gtk/gtkfilechooserdefault.c
1260 (gtk_file_chooser_default_set_current_folder): Handle errors in
1261 setting the path bar's path. Fixes #136000, based on a patch by
1264 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1265 Don't free our own propagated error.
1267 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1268 parent_path upon error. Fixes #136006, patch by Morten Welinder.
1269 (gtk_path_bar_set_path): Unref the file_folder upon error.
1270 (gtk_path_bar_set_path): Return a boolean success code.
1272 Wed Mar 3 00:28:59 2004 Matthias Clasen <maclas@gmx.de>
1274 * tests/testcombochange.c: Add an animation mode, to test
1275 how the combobox behaves if the model changes while it is popped
1278 Tue Mar 2 17:06:05 2004 Owen Taylor <otaylor@redhat.com>
1280 * === Released 2.3.5 ===
1284 * configure.in: Version 2.3.5, interface age 0.
1285 Require glib-2.3.5, pango-1.3.5.
1287 Tue Mar 2 23:08:12 2004 Matthias Clasen <maclas@gmx.de>
1289 * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1290 popping up the completions across the edge of the monitor.
1293 Tue Mar 2 16:47:40 2004 Owen Taylor <otaylor@redhat.com>
1295 * tests/testfilechooser.c (set_filename_existing_nonexistent_cb):
1296 Move the /nonexistant stuff out of the main window,
1297 keep the main window somewhat normal looking.
1299 Tue Mar 2 16:18:43 2004 Owen Taylor <otaylor@redhat.com>
1301 * gtk/gtktreestore.c (gtk_tree_store_reorder)
1302 * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1303 up the interpretation of new_order to match what
1304 it means elsewhere, document the meaning of new_order.
1306 * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1307 Fix interpretation of new_order.
1309 * tests/testcombochange.c (on_reorder): Fix interpretation
1312 * tests/testcombochange.c (on_reorder): Fix hitting
1313 "reorder" with an empty list.
1315 Tue Mar 2 21:23:30 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1317 Patch from Frederic Crozat, test code from Jean-Philippe
1318 Chancelier. Fixes bug #120479.
1320 * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1321 to the right window group.
1323 * gtk/gtkmenu.c (gtk_menu_popup): Same
1325 * tests/testsocket.c (main): Pack the plugs into an hbox instead
1328 * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1329 GtkComboBox to the children.
1331 Tue Mar 2 14:38:23 2004 Owen Taylor <otaylor@redhat.com>
1333 * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1334 If the model was empty before, select the first inserted
1337 * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1338 Fix up the logic for the new row to select.
1340 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1341 Rename "appearance" property to "appears-as-list".
1343 * tests/testcombochange.c tests/Makefile.am: Test case
1344 for combos and dynamically changing models.
1346 Tue Mar 2 15:19:52 2004 Jonathan Blandford <jrb@redhat.com>
1348 * gtk/gtkfilechooserdefault.c
1349 (gtk_file_chooser_default_get_resizable_hints): set the default
1350 value, spotted by Morten Welinder.
1352 Tue Mar 2 15:03:15 2004 Jonathan Blandford <jrb@redhat.com>
1354 * gtk/gtkfilechooserdefault.c
1355 (gtk_file_chooser_default_get_resizable_hints): get the logic
1356 correct. This will fix sizing on save dialogs.
1358 (save_widgets_create): set_mnemonic_widget.
1360 2004-03-02 Federico Mena Quintero <federico@ximian.com>
1362 * gtk/gtkfilechooserdefault.c
1363 (gtk_file_chooser_default_set_current_folder): Don't update the
1364 save folder combo if we are already switching folders; based on a
1365 patch by Jonathan Blandford.
1367 * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1368 Handle failure to insert the path. Based on a patch by Morten
1369 Welinder attached to bug #135380.
1371 * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1372 buttons to test various things.
1374 Tue Mar 2 20:59:23 2004 Matthias Clasen <maclas@gmx.de>
1376 * tests/Makefile.am: Add testentrycompletion.
1378 * tests/testentrycompletion.c: New file to test some of the
1379 more exotic GtkEntryCompletion features.
1381 Tue Mar 2 14:38:10 2004 Jonathan Blandford <jrb@redhat.com>
1383 * tests/testfilechooser.c (main): improve tests a little.
1385 Tue Mar 2 11:45:50 2004 Owen Taylor <otaylor@redhat.com>
1387 * gtk/gtkcombobox.c: Always connect to the changed
1388 signals on the model, update the active item as
1389 appropriate when rows are inserted/deleted/reordered,
1390 re-layout the menu on ::rows-reordered.
1392 * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
1393 Allow %NULL for path to unset and leave no current
1396 Tue Mar 2 19:54:53 2004 Matthias Clasen <maclas@gmx.de>
1398 * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
1399 the popup above the sample if there is not enough room below.
1402 Tue Mar 2 19:53:36 2004 Matthias Clasen <maclas@gmx.de>
1404 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the
1405 frame for the list mode etched in, to give the popup a slightly
1406 less flat appearance.
1408 Tue Mar 2 17:55:31 2004 Matthias Clasen <maclas@gmx.de>
1410 * gtk/gtk.def: Add gtk_combo_box_entry_new_text().
1412 2004-03-02 Morten Welinder <terra@gnome.org>
1414 * tests/testfilechooser.c (size_prepared_cb): Don't scale images
1415 that are small enough to fit. Avoid using incompatibly typed data
1418 * gtk/gtkfilechooserdefault.c
1419 (gtk_file_chooser_default_get_resizable_hints): Test the
1420 resize_horizontally pointer, not the deferenced pointer.
1422 2004-03-01 Federico Mena Quintero <federico@ximian.com>
1424 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
1425 flag shortcuts_current_folder_is_volume.
1426 (shortcuts_add_current_folder): Set
1427 impl->shortcuts_current_folder_is_volume as appropriate.
1428 (remove_current_folder_cb): Handle the flag.
1429 (shortcuts_activate_item): Likewise.
1430 (shortcuts_update_current_folder): Handle the
1431 impl->shortcuts_current_folder_active flag; only add the folder if
1432 it doesn't already exist in the list.
1433 (shortcuts_model_create): Don't insert the current folder
1435 (shortcuts_add_current_folder): Insert the separator here.
1436 (shortcut_find_position): Renamed from shortcut_exists(); now
1438 (shortcuts_add_current_folder): Set the active item in the combo.
1440 2004-03-01 Federico Mena Quintero <federico@ximian.com>
1442 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
1443 use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
1445 2004-03-01 Federico Mena Quintero <federico@ximian.com>
1447 * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
1448 unref an old model; there isn't one. This was a leftover from
1449 when we recreated the model on every change.
1450 (save_widgets_create): Create the save folder combo.
1451 (shortcuts_model_create): Don't set the model on the tree view
1453 (gtk_file_chooser_default_constructor): Create the shortcuts model
1454 here, before the rest of the widgets.
1455 (shortcuts_list_create): Don't call shortcuts_model_create() here;
1456 just set the model on the tree.
1457 (save_folder_combo_create): New function, provided by Jonathan
1459 (update_appearance): Set the sensitivity of the folder combo.
1460 (shortcuts_activate_iter): New helper function; code moved from
1461 shortcuts_row_activated_cb().
1462 (shortcuts_activate_item): New helper function.
1463 (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
1464 (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
1465 SHORTCUTS_BOOKMARKS_SEPARATOR.
1466 (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
1467 (shortcuts_insert_separator): Add a position argument.
1468 (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR
1469 and SHORTCUTS_CURRENT_FOLDER positions.
1470 (shortcut_exists): Ignore the current folder row.
1471 (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
1472 (shortcuts_model_create): Create a filter model for the shortcuts list.
1473 (shortcuts_list_create): Set the model to the shortcuts_filter_model.
1474 (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
1475 (bookmarks_check_remove_sensitivity): Likewise.
1476 (shortcuts_row_activated_cb): Likewise.
1477 (gtk_file_chooser_default_set_current_folder): New function.
1478 (gtk_file_chooser_default_set_current_folder): Update the current
1479 folder row in the shortcuts list.
1481 * gtk/gtkfilechooserwidget.c
1482 (gtk_file_chooser_widget_constructor): Cast correctly for
1483 _gtk_file_chooser_embed_set_delegate().
1485 Mon Mar 1 19:30:25 2004 Owen Taylor <otaylor@redhat.com>
1487 * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
1488 (#127499, based on patch from Michael Natterer)
1490 * tests/testgtk.c: Fix bidi strings to display correctly
1493 Tue Mar 2 01:34:40 2004 Matthias Clasen <maclas@gmx.de>
1495 * gtk/gtksettings.c: Remove the include of Xft.h, which is already
1496 dragged in via pangoxft.h. (#135496, David Hawthorne)
1498 Mon Mar 1 23:52:15 2004 Tim Janik <timj@gtk.org>
1500 * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
1503 * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
1504 the key event propagation mechanism used for focus widgets.
1505 (gtk_window_key_release_event): use the same key event propagation logic
1506 as gtk_window_key_press_event().
1508 2004-03-01 Simon Budig <simon@gimp.org>
1510 * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
1511 for the XInput extension. We want to see them all.
1512 We now get Proximity Out events again. Fixes bug #135320.
1514 Tue Mar 2 00:47:21 2004 Matthias Clasen <maclas@gmx.de>
1516 * gtk/gtkimmodule.c (match_locale): Use case-insensitive
1517 comparison. Fixes XIM module loading on AIX. (#131277)
1519 Mon Mar 1 23:59:18 2004 Matthias Clasen <maclas@gmx.de>
1521 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted):
1522 Make it work correctly when the child model is cleared
1523 completely. (#121633)
1525 2004-03-01 Michael Natterer <mitch@gimp.org>
1527 * gtk/gtkfilechooserwidget.h: removed accidentially committed char
1528 which broke the build.
1530 Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com>
1532 * gtk/gtkfilechooserdialog.c
1533 (file_chooser_widget_default_size_changed): only store the size if
1534 we can resize in that direction.
1536 Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
1538 * gtk/gtkfilechooserwidget.c
1539 (gtk_file_chooser_widget_new_with_backend): new function. Long
1542 2004-03-01 Morten Welinder <terra@gnome.org>
1544 * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
1547 * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
1548 semantics and check for errors.
1550 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
1552 * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
1553 display_name is NULL.
1555 Mon Mar 1 14:16:52 2004 Owen Taylor <otaylor@redhat.com>
1557 Based on patch by Alex Larsson
1559 * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
1560 GtkSetting to set the backend if the app doesn't specify one.
1562 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
1563 Add Gtk/FileChooserBackend.
1565 Mon Mar 1 20:32:06 2004 Tim Janik <timj@gtk.org>
1568 - exit with $? instead of 1 in case of failure
1569 - exit with $? if ./configure failed
1570 (that's so autogen.sh && make lines work)
1571 - removed --enable-gtk-doc option
1572 - added $AUTOGEN_CONFIGURE_ARGS
1574 2004-03-01 Federico Mena Quintero <federico@ximian.com>
1576 * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
1577 filter_info.uri correctly. Fixes #135379, pointed out by Damon
1579 (shortcuts_get_index): Compute the bookmarks index correctly.
1580 Fixes #135714, pointed out by Damon Chaplin.
1581 (gtk_file_chooser_default_list_shortcut_folders): Handle the case
1582 with no shortcuts, and don't run off the end of the list if there
1583 are no bookmarks and their separator. Fixes #135572, patch by
1586 Mon Mar 1 12:23:06 2004 Owen Taylor <otaylor@redhat.com>
1588 * gtk/gtklabel.c: Handle dynamically resolved bidi direction
1589 when drawing the cursor. (#118541)
1591 * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
1593 * gtk/gtkentry.c (draw_insertion_cursor): Fix up
1594 some confusion in parameter ordering.
1596 Mon Mar 1 12:05:54 2004 Jonathan Blandford <jrb@redhat.com>
1598 * gtk/gtkfilechooserdialog.c
1599 (file_chooser_widget_resizable_hints_changed): Handle
1602 2004-03-01 Michael Natterer <mitch@gimp.org>
1604 * gtk/gtktextbtree.c: removed underscores from calls to
1605 gtk_text_btree_resolve_bidi().
1607 Mon Mar 1 10:41:27 2004 Owen Taylor <otaylor@redhat.com>
1609 Patch from Dov Grobgeld to implement auto-bidi-direction
1610 for GtkTextView (#118543)
1612 * gtk/gtktextbtree.[ch]: Resolve bidi base direction
1613 for each line by propagating backwards/forwards as
1616 * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the
1617 bidi base direction for the ;ine with the cursor from
1618 the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
1620 Mon Mar 1 10:31:11 2004 Owen Taylor <otaylor@redhat.com>
1622 * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
1623 based on a patch from Dov Grobgeld. (#118540)
1625 Sun Feb 29 22:01:49 2004 Owen Taylor <otaylor@redhat.com>
1627 * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment()
1628 to allow right-aligned entries and a "xalign"
1629 property. (#59799, patch from Egon Andersen and
1632 * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
1633 xalign property description here too.
1635 * tests/testtext.c: UNDERLINE_ERROR test addition
1636 from Nicolas Settons' patch.
1638 Sun Feb 29 20:34:06 2004 Owen Taylor <otaylor@redhat.com>
1640 * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
1641 gtk_window_activate_key() (Request from Tim Janik)
1643 Mon Mar 1 01:00:11 2004 Matthias Clasen <maclas@gmx.de>
1645 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
1646 Make DND operations within a buffer move the dragged
1647 text instead of copying it; also make DND operations
1648 a single user action for undo purposes. (#135191,
1649 #93139, reported by Tommi Komulainen, patch by Paolo Borelli
1652 Mon Mar 1 00:51:11 2004 Matthias Clasen <maclas@gmx.de>
1654 * NEWS: News for 2.3.5.
1656 Sun Feb 29 23:25:35 2004 Matthias Clasen <maclas@gmx.de>
1658 * gtk/gtkentry.c (gtk_entry_completion_key_press):
1659 Fix the Shift-Tab support to go backwards.
1661 Sun Feb 29 16:40:40 2004 Owen Taylor <otaylor@redhat.com>
1663 * gtk/gtktextview.c (gtk_text_view_class_init): Fix
1664 capitalization to match other style properties.
1666 Sun Feb 29 16:38:53 2004 Owen Taylor <otaylor@redhat.com>
1668 * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
1669 typo in property string.
1671 Sun Feb 29 16:35:23 2004 Owen Taylor <otaylor@redhat.com>
1673 * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
1674 PANGO_UNDERLINE_ERROR (Based on a patch by
1675 Nicolas Setton, #114237)
1677 * gtk/gtktextview.c: Add a error-underline-color style
1680 Sun Feb 29 19:04:33 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1682 * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
1683 function returning a good step value for the mouse wheel. For
1684 scrollbars, base the step on page_size^(2/3), for other ranges,
1685 use 2 * step_increment.
1687 * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
1689 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event):
1692 * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
1694 Sun Feb 29 01:51:27 2004 Jonathan Blandford <jrb@gnome.org>
1696 * gtk/gtkfilechooserembed.c
1697 (_gtk_file_chooser_embed_get_default_size): Add g_return_if_fail()
1698 (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
1700 * gtk/gtkfilechooserdialog.c
1701 (file_chooser_widget_default_size_changed): Get the correct
1702 initial size for the dialog. Also, don't bother with
1703 gtk_window_set_default_size(). It's not really meaningful.
1705 * gtk/gtkfilechooserdefault.c
1706 (gtk_file_chooser_default_get_default_size): Get the correct
1707 spacing for the preview_widget
1708 (update_preview_widget_visibility): Clear widget field after we
1711 2004-02-29 Federico Mena Quintero <federico@ximian.com>
1713 * gtk/gtkfilechooserdefault.c
1714 (gtk_file_chooser_default_set_property): Handle
1715 GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
1716 (gtk_file_chooser_default_get_property): Likewise.
1717 (struct _GtkFileChooserDefault): Added fields for preview_label,
1718 use_preview_label, preview_display_name, preview_box. Removed
1720 (set_preview_widget): Reorder the widget in relation to the label.
1721 (update_preview_widget_visibility): Create or destroy the preview
1723 (check_preview_change): Update impl->preview_display_name and the
1725 (find_good_size_from_style): Use the preview_box.
1726 (gtk_file_chooser_default_finalize): Free
1727 impl->preview_display_name.
1728 (gtk_file_chooser_default_init): Initialize
1729 impl->use_preview_label.
1731 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
1732 "use-preview-label" property.
1733 (gtk_file_chooser_set_use_preview_label): New function. This sets
1734 whether one wants the file chooser to display a stock label with
1735 the previewed filename. Apps that do really fancy previews can
1736 turn this off and draw the name themselves.
1737 (gtk_file_chooser_get_use_preview_label): New function.
1738 (gtk_file_chooser_get_preview_widget_active): Documentation fix.
1740 * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
1741 GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
1743 * gtk/gtkfilechooserutils.c
1744 (_gtk_file_chooser_install_properties): Override the
1745 "use-preview-label" property.
1747 Sun Feb 29 04:43:29 2004 Matthias Clasen <maclas@gmx.de>
1749 * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
1750 Shift-Tab work when the completion popup is shown.
1752 2004-02-28 Federico Mena Quintero <federico@ximian.com>
1754 * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
1755 the title of the filename column.
1756 (create_file_list): Likewise.
1758 Sun Feb 29 03:31:42 2004 Matthias Clasen <maclas@gmx.de>
1760 * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up
1761 and Page_Down in the completion popup to move page-wise if we're
1764 2004-02-28 Federico Mena Quintero <federico@ximian.com>
1766 * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
1768 (list_name_data_func): Don't call the function above.
1769 (list_mtime_data_func): Likewise.
1771 Sun Feb 29 02:34:35 2004 Matthias Clasen <maclas@gmx.de>
1773 * gtk/gtkcombobox.c (gtk_combo_box_list_position): New
1774 function which calculates position and size for the popup in
1775 list mode. Currently it only pushes the popup horizontally
1778 Sun Feb 29 01:10:09 2004 Matthias Clasen <maclas@gmx.de>
1780 * gtk/gtkcombobox.c: Implement the previous fix in a better way,
1783 2004-02-28 Hans Breuer <hans@breuer.org>
1785 * gtk/gtkfilesystemwin32.c : applied patch from
1786 J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
1788 Sat Feb 28 23:30:36 2004 Matthias Clasen <maclas@gmx.de>
1790 * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
1791 popup window before popping up. (#135651)
1793 Sat Feb 28 23:29:35 2004 Matthias Clasen <maclas@gmx.de>
1795 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1796 * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
1797 handler for style_set in class_init instead of connecting to
1798 the signal in init. (noticed by Yosh).
1800 Sat Feb 28 14:48:35 2004 Owen Taylor <otaylor@redhat.com>
1802 * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE,
1803 not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
1805 2004-02-28 Hans Breuer <hans@breuer.org>
1807 * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
1808 change. Also merged some crossplatform code from
1810 * gtk/gtk.def : updated externals
1812 * gtk/makefile.msc.in : added gtkfilechooserembed.obj
1814 2004-02-28 Hans Breuer <hans@breuer.org>
1816 * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
1817 when destroying, fixes bug #120007. Also removed the mirrored
1818 ref counting for deprecated gdk_drag_context_<ref|unref>()
1819 cause it wasn't reliable anymore anyway.
1821 * gdk/win32/gdkdisplay-win32.c : fix typo, which should
1822 have broken the win32 build for everyone not using msvc
1824 * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
1825 return negative values for ptMaxTrackSize, it caused snapping
1826 windows to their minimum size
1828 Sat Feb 28 01:39:01 2004 Matthias Clasen <maclas@gmx.de>
1830 * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
1831 switching back to non-gridded mode. (#135169)
1833 Fri Feb 27 22:29:46 2004 Matthias Clasen <maclas@gmx.de>
1835 * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
1837 Fri Feb 27 18:52:19 2004 Jonathan Blandford <jrb@redhat.com>
1839 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
1840 Whoops. Didn't mean to commit the size change.
1842 Fri Feb 27 18:46:27 2004 Jonathan Blandford <jrb@redhat.com>
1844 * gtk/gtkfilechooserembed.h: New private interface to help
1845 negotiate the default size of the widget. Still a bit buggy, but
1846 better than the old behavior.
1848 * gtk/gtkfilechooserdefault.c: Implement the embed interface.
1850 * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
1852 * gtk/gtkfilechooserdialog.c: Use the embed interface.
1854 2004-02-27 Federico Mena Quintero <federico@ximian.com>
1856 * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
1857 "position" argument.
1859 * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for
1860 GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
1861 (struct _GtkFileSystemIface): Added a "position" argument to the
1862 ::insert_bookmark() method.
1864 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1865 Updated; renamed from gtk_file_system_unix_add_bookmark(). Return
1866 an error if the path already exists in the bookmarks list.
1867 (gtk_file_system_unix_remove_bookmark): Return an error if the
1868 path does not exist in the bookmarks list.
1870 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
1871 For now, use gtk_file_system_insert_bookmark() with -1 for the
1872 position. DnD will come next.
1874 Fri Feb 27 21:42:28 2004 Matthias Clasen <maclas@gmx.de>
1876 * gtk/gtkcombobox.c (gtk_combo_box_relayout):
1877 * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only
1878 create a new setup if appearance actually changed.
1879 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear):
1880 * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make
1881 these more robust. (#127623, Damon Chaplin)
1883 Fri Feb 27 15:06:00 2004 Jonathan Blandford <jrb@redhat.com>
1885 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
1886 folder-mode property.
1888 * gtk/gtkfilechooserutils.c
1889 (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
1891 Thu Feb 26 17:38:40 2004 Manish Singh <yosh@gimp.org>
1893 * gtk/gtkcombobox.c: Add function declaration for
1894 gtk_combo_box_list_remove_grabs().
1896 Fri Feb 27 02:33:21 2004 Matthias Clasen <maclas@gmx.de>
1898 * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
1899 cursor move, but not Home and End.
1901 * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
1902 jump to the ends of the list, not Home and End - since we're not
1903 scrolling yet, a "page" is always the complete list. (#127430, Marco
1906 Fri Feb 27 00:39:11 2004 Matthias Clasen <maclas@gmx.de>
1908 * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
1909 * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
1910 the priv pointers dangle. (#127623, Damon Chaplin)
1912 Thu Feb 26 17:31:34 2004 Manish Singh <yosh@gimp.org>
1914 * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
1916 Thu Feb 26 19:53:32 2004 Owen Taylor <otaylor@redhat.com>
1918 * gdk/x11/xsettings-common.h (xsettings_client_process_event):
1919 Add xsettings_client_set_grab_func,
1920 Add xsettings_client_set_ungrab_func to the list of renames.
1922 Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
1924 * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
1925 in case of mismatched property type.
1927 Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
1929 * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
1932 * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
1933 (gtk_file_chooser_get_folder_mode): Remove
1935 Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
1937 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
1938 GDK_FILTER_CONTINUE for unhandled message types.
1940 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
1941 multiple filters for the same event type with the standard
1942 "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
1944 * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
1945 Append to the filter list not prepend, since order now matters.
1947 * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
1948 Append to the filter list not prepend, since order now matters.
1950 Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
1952 Fixes for #135333, analysed by Damon Chaplin:
1954 * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
1956 * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here,
1957 so that we don't forget to grab when the menu is popped via
1959 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
1961 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
1963 Thu Feb 26 23:26:00 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1965 * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
1966 cursors for resize grips. (Bug #129621)
1968 * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
1969 fix - patch by Torsten Schoenfeld.
1971 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
1972 space between the items. (Bug #110775)
1974 * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
1975 inside menu items that are inside a menu bar. (Bug #110775)
1977 * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
1978 not GDK_PACKAGES, to prevent applications from getting linked to
1981 * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
1982 ipadding inside the item. (Bug #61843)
1984 Thu Feb 26 22:56:40 2004 Matthias Clasen <maclas@gmx.de>
1986 * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets()
1987 by list_mnemonic_widgets() in doc comments as well.
1989 Thu Feb 26 16:36:38 2004 Owen Taylor <otaylor@redhat.com>
1991 Fixes from Torsten Schoenfeld.
1993 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label):
1994 Fix name in doc comment.
1996 * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
1997 not get_mnemonic_labels.
1999 Thu Feb 26 22:20:44 2004 Matthias Clasen <maclas@gmx.de>
2001 * gtk/gtkcomboboxentry.h:
2002 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2003 convenience API to construct simple text combos, implemented by
2006 * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2008 Thu Feb 26 22:19:29 2004 Matthias Clasen <maclas@gmx.de>
2010 * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2012 Thu Feb 26 15:43:43 2004 Owen Taylor <otaylor@redhat.com>
2014 * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2015 in a simplified form as gtk_draw_insertion_cursor().
2016 (#99031, request from Alex Larsson)
2018 * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2019 Adapt to new gtk_draw_insertion_cursor().
2021 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2022 gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2025 * gtk/gtkiconfactory.c (icon_size_settings_changed)
2026 gtk/gtkicontheme.c (do_theme_change)
2027 gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2028 * gtk/gtksettings.c (gtk_settings_notify):
2029 _gtk_rc_reset_styles => gtk_rc_reset_styles.
2031 Thu Feb 26 21:52:58 2004 Matthias Clasen <maclas@gmx.de>
2033 Fixes for #127804 and #134722, Damon Chaplin:
2035 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end):
2036 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start):
2037 Ref and sink the cell renderers here.
2039 * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2040 renderers here, and free attributes and func_data.
2042 Thu Feb 26 21:41:38 2004 Matthias Clasen <maclas@gmx.de>
2044 * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2046 Thu Feb 26 14:47:22 2004 Dom Lachowicz <cinamod@hotmail.com>
2048 * gtk/gtk.def: Export gtk_rc_reset_styles()
2050 Thu Feb 26 14:47:22 2004 Owen Taylor <otaylor@redhat.com>
2052 * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles().
2053 (Request from Dom Lachowicz, #123769)
2055 Wed Feb 25 19:11:31 2004 Owen Taylor <otaylor@redhat.com>
2057 * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2058 ::group-changed signal emitted when the radio button/menu item
2059 is moved from one group of radio buttons to another.
2060 (#79563, based partially on a patch from Padraig O'Briain)
2062 Thu Feb 26 13:23:47 2004 Owen Taylor <otaylor@redhat.com>
2064 * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2065 free() function. (#135511, George Bronnikov)
2067 2004-02-26 Federico Mena Quintero <federico@ximian.com>
2069 * configure.in: Added a comment to inform translators that they
2070 must add .po files to both po/ and po-properties/ when they add
2071 new languages to ALL_LINGUAS.
2073 Wed Feb 25 15:36:50 2004 Owen Taylor <otaylor@redhat.com>
2075 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2076 Call g_convert(), not g_convert() with fallback, since Emacs is
2077 happier if we reject the COMPOUND_TEXT request and it can
2078 then ask for UTF-8. (#114527)
2080 * gtk/gtkselection.c (gtk_selection_data_set_text): When
2081 TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2083 Wed Feb 25 22:35:00 2004 Tomasz KÅ‚oczko <kloczek@pld.org.pl>
2085 * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2086 vesion for build gtk+ is now 2.3.3.
2088 Wed Feb 25 16:00:40 2004 Jonathan Blandford <jrb@gnome.org>
2090 * gtk/gtkfilechooserdefault.c (update_appearance): move the
2093 2004-02-25 Danilo Å egan <dsegan@gmx.net>
2095 * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2098 2004-02-25 Federico Mena Quintero <federico@ximian.com>
2100 * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2103 Wed Feb 25 12:44:49 2004 Owen Taylor <otaylor@redhat.com>
2105 * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2107 Wed Feb 25 12:21:32 2004 Owen Taylor <otaylor@redhat.com>
2109 * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2110 Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2111 gtk_widget_get_mnemonic_labels(). (#103456)
2113 2004-02-25 Danilo Å egan <dsegan@gmx.net>
2115 * configure.in: Added sr@ije to ALL_LINGUAS.
2117 Wed Feb 25 09:46:34 2004 Owen Taylor <otaylor@redhat.com>
2119 * gtk/gtkstyle.c (gtk_style_finalize): Free
2120 style->icon_factories (#130128)
2122 Wed Feb 25 03:52:58 2004 Jonathan Blandford <jrb@gnome.org>
2124 * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2127 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2128 rename some widgets to make it clear where they are packed.
2129 (update_appearance): New function to handle all the 'logic' of
2130 layout in one place. We aren't trying to keep all our properties
2132 (gtk_file_chooser_default_set_property): use update_appearance()
2134 2004-02-24 Federico Mena Quintero <federico@ximian.com>
2136 * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2137 from create_shortcuts_model().
2138 (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2140 (shortcuts_list_create): Renamed from shortcuts_tree_create().
2141 (create_file_list): Enable the tree view as a model drag source.
2142 (create_folder_tree): Likewise.
2144 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2145 Register the drag source interface.
2146 (drag_source_iface_init): New function.
2147 (drag_source_row_draggable): New function.
2148 (drag_source_drag_data_get): New function.
2150 Tue Feb 24 19:12:07 2004 Owen Taylor <otaylor@redhat.com>
2152 * === Released 2.3.4 ===
2154 * configure.in: Bump version to 2.3.4, fix broken
2155 gtk_binary_age value by copying the GLib logic
2156 to automatically set it to the right values.
2158 Wed Feb 25 00:13:24 2004 Matthias Clasen <maclas@gmx.de>
2160 * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed):
2161 * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed):
2162 Don't resize priv->cell_view if it is NULL. (#127804,
2165 Wed Feb 25 00:06:50 2004 Matthias Clasen <maclas@gmx.de>
2167 * gtk/gtkcombobox.c: Add a comment about the different
2168 modi of this widget. Get rid of priv->hbox, and some other
2169 cleanups. Make sure that gtk_combo_box_unset_model() is
2170 always called before setting up a different mode.
2172 Tue Feb 24 17:51:49 2004 Owen Taylor <otaylor@redhat.com>
2174 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2175 underscores in keyval names to spaces. (#131480)
2177 Tue Feb 24 17:35:59 2004 Owen Taylor <otaylor@redhat.com>
2179 * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2182 Tue Feb 24 14:45:03 2004 Owen Taylor <otaylor@redhat.com>
2184 * === Released 2.3.3 ===
2186 * configure.in: Version 2.3.3, interface age 0.
2188 * NEWS: Finish updates for 2.3.3.
2190 2004-02-24 Federico Mena Quintero <federico@ximian.com>
2192 * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2193 GtkEntry for the filename, not a GtkFileChooserEntry.
2194 (update_chooser_entry): Use gtk_entry_set_text() rather than
2195 _gtk_file_chooser_entry_set_file_part().
2196 (gtk_file_chooser_default_set_current_name): Likewise.
2197 (gtk_file_chooser_default_set_current_folder): Don't set the base
2198 folder of the entry, and don't call update_chooser_entry().
2199 (gtk_file_chooser_default_get_paths): Use the plain entry.
2200 (save_widgets_create): Store the "Save in Folder" label in the
2202 (expander_activate_cb): Set the sensitivity of the label and
2204 (save_widgets_create): Connect to "notify::expanded" rather than
2205 "activate" on the expander.
2206 (expander_changed_cb): Renamed from expander_activate_cb(). Flip
2207 the conditions again...
2209 Tue Feb 24 14:43:07 2004 Jonathan Blandford <jrb@gnome.org>
2211 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2212 column as different if there are 3 or more visible columns.
2214 2004-02-24 Anders Carlsson <andersca@gnome.org>
2216 * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2217 Fix compilation (#135278, Padraig O'Briain).
2219 2004-02-24 Anders Carlsson <andersca@gnome.org>
2221 * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2222 Translate the desktop label.
2224 (shortcuts_get_index), (shortcuts_add_bookmarks),
2225 (shortcuts_insert_separator), (create_shortcuts_model):
2226 Don't show the bookmark separator if there are no bookmarks.
2228 Tue Feb 24 01:41:30 2004 Jonathan Blandford <jrb@gnome.org>
2230 * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2231 dialog look like the nautilus dialog.
2232 (expander_activate_cb): get the order correct.
2234 2004-02-23 Federico Mena Quintero <federico@ximian.com>
2236 * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2237 bookmarks_check_add_sensitivity().
2238 (shortcut_exists): New helper function; moved the testing code
2239 over from bookmarks_check_add_sensitivity().
2240 (bookmarks_check_add_sensitivity): Check the contents of the
2241 selection in the file/folder list. Use shortcut_exists().
2242 (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2243 the path is already in the shortcuts list.
2244 (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2245 selection or from the current folder, as appropriate.
2247 Mon Feb 23 21:09:06 2004 Jonathan Blandford <jrb@gnome.org>
2249 * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2250 mnemonics. Sorry translators.
2252 Tue Feb 24 02:24:58 2004 Matthias Clasen <maclas@gmx.de>
2254 * NEWS: Additions. This should be complete for the main ChangeLog
2255 now, still need to sift through gdk-pixbuf, docs, and translations.
2257 Mon Feb 23 19:57:45 2004 Jonathan Blandford <jrb@gnome.org>
2259 * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2260 Add a get_size implementation so that we are no longer the same
2263 2004-02-24 Anders Carlsson <andersca@gnome.org>
2265 * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2266 (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2267 (create_shortcuts_model), (shortcuts_tree_create),
2268 (gtk_file_chooser_default_remove_shortcut_folder):
2269 Improve bookmark list rendering by controlling the visibility
2270 of the pixbuf cell so that it will be invisible for the separator
2271 row, also use a list store instead of a tree store for the model
2272 so we won't get unnecessary space for an expander.
2274 Tue Feb 24 01:08:27 2004 Matthias Clasen <maclas@gmx.de>
2276 * gtk/gtkcombobox.c: Add a destroy implementation in order to
2277 set priv->cell_view to NULL before finalize stumbles over the
2278 dangling pointer. This big array of pointers into the widget
2279 tree in GtkComboBoxPrivate is really fragile and should be
2282 Mon Feb 23 17:52:43 2004 Jonathan Blandford <jrb@gnome.org>
2284 * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2285 group when allocating space for the buttons at the bottom just in
2286 case. Also, move the filter to below the file list.
2288 Mon Feb 23 16:52:12 2004 Jonathan Blandford <jrb@gnome.org>
2290 * gtk/gtkfilechooserdefault.c
2291 (gtk_file_chooser_default_class_init): Seth was confused by
2292 keybindings. They should be Alt, not Ctl. Also, A-Home should go
2295 Mon Feb 23 15:23:23 2004 Jonathan Blandford <jrb@gnome.org>
2297 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2300 * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2302 2004-02-23 Federico Mena Quintero <federico@ximian.com>
2304 Rework the user interface of the file chooser, as per
2305 Seth Nickell's design.
2307 * gtk/gtkfilechooserdefault.c
2308 (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2309 "location-popup" - C-l
2311 "home-folder" - C-Home
2312 (up_folder_handler): New function; moved the code from up_button_clicked().
2313 (up_button_clicked_cb): Call up_folder_handler().
2314 (home_folder_handler): New function.
2315 (location_popup_handler): New function.
2316 (struct _GtkFileChooserDefault): Add an hpaned field.
2317 (gtk_file_chooser_default_set_current_name): Check that we are in
2319 (save_widgets_create): New function, create the widgets specific
2321 (main_paned_create): New function, create the hpaned's widgets here.
2322 (gtk_file_chooser_default_constructor): Create the open and save
2323 widgets, and show only one set.
2324 (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2325 (gtk_file_chooser_default_get_paths): Only pay attention to the
2327 (update_chooser_entry): Update the entry only in Save mode.
2328 (entry_activate): Removed.
2330 Mon Feb 23 11:20:34 2004 Owen Taylor <otaylor@redhat.com>
2332 * configure.in: Remove the configure.in check for fontconfig
2333 entirely; it's not needed, since PangoXft implies that sufficiently
2334 new fontconfig is present.
2336 Mon Feb 23 02:26:53 2004 Jonathan Blandford <jrb@gnome.org>
2338 * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2339 for (i = 0; i < 10; i++)
2340 g_print ("I will compile before committing.\n");
2342 Mon Feb 23 02:08:42 2004 Jonathan Blandford <jrb@gnome.org>
2344 * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2345 GtkPathBar by default now.
2347 * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2348 current path from the path.
2349 (gtk_path_bar_class_init): new signal
2350 (button_clicked_cb): emit the signal when we're selected.
2351 (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2352 clearing thr first_scrolled_button.
2354 Mon Feb 23 02:26:15 2004 Matthias Clasen <maclas@gmx.de>
2356 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the
2357 allocation for the toggle button so that it actually shows up
2360 * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column):
2361 * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column):
2362 * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2363 notification, and avoid excessive relayouting.
2365 Mon Feb 23 00:38:21 2004 Matthias Clasen <maclas@gmx.de>
2367 Fix bug 134982, reported by Morten Welinder:
2369 * gtk/gtkpathbar.c (gtk_path_bar_destroy):
2370 * gtk/gtktooltips.c (gtk_tooltips_destroy):
2371 * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the
2372 parent's ::destroy handler.
2374 * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the
2375 parent's ::dispose handler.
2377 Sat Feb 21 19:09:55 2004 Manish Singh <yosh@gimp.org>
2379 * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
2380 stuff with an #ifdef, so we still build with most fontconfig versions.
2382 Sun Feb 22 03:03:29 2004 Matthias Clasen <maclas@gmx.de>
2384 * gtk/gtkaction.c: (gtk_action_finalize):
2385 * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
2386 * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
2387 (gtk_entry_completion_finalize):
2388 * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
2389 * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
2390 (gtk_file_system_model_finalize):
2391 * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
2392 (gtk_icon_theme_finalize):
2393 * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
2394 * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
2395 (gtk_ui_manager_finalize):
2396 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
2397 Add chains to the parent's ::finalize() handler (#134901, Morten Welinder,
2398 patch by Jan Arne Petersen)
2400 Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
2402 * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
2403 Don't crash if item is NULL. (#131542, Dan Damian)
2405 Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
2407 * configure.in: Add a check for a new enough fontconfig, since
2408 we picked up a direct dependency on it with the Xft settings.
2410 Sun Feb 22 00:23:40 2004 Matthias Clasen <maclas@gmx.de>
2412 Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
2414 * gtk/gtkcheckmenuitem.c: Introduce a new style property
2415 indicator_size and use it instead of the hardcoded value.
2417 * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu
2418 item gets enough vertical space for the label and the indicator.
2420 Sat Feb 21 20:20:11 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2422 * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
2423 _ for the new Xft settings.
2425 Sat Feb 21 20:09:53 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2427 Bug 130790 (Federico Mena Quintero, Owen Taylor)
2429 * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
2431 * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
2434 Sat Feb 21 19:18:26 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2438 * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
2439 if we enter a non-selectable menu item.
2441 * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
2442 when the user has left the item.
2444 Sat Feb 21 17:57:35 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2446 * gtk/docs: Commit auto-generated changes
2448 Fri Feb 20 18:20:22 2004 Jonathan Blandford <jrb@gnome.org>
2450 * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
2452 * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
2453 allocation code. Works fully in RTL languages, I think.
2454 (gtk_path_bar_scroll_up): Scroll up.
2455 (gtk_path_bar_scroll_down): Scroll down.
2457 2004-02-20 Christian Rose <menthos@menthos.com>
2459 * configure.in: Added "en_CA" to ALL_LINGUAS.
2461 2004-02-20 Michael Meeks <michael@ximian.com>
2463 * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
2464 (gtk_tool_item_class_init): hook it up.
2465 (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
2467 * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
2468 chain to parent, fix strcmp bug.
2470 * tests/testtoolbar.c (main): re-arrange widgets to allow
2471 more overflowing toolbar goodness.
2473 2004-02-20 Alexander Larsson <alexl@redhat.com>
2475 * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2476 Desktop directory is not translated.
2478 There might not be volumes for all paths.
2479 * gtk/gtkfilechooserwidget.c:
2480 (gtk_file_chooser_widget_constructor):
2481 Use gtk_file_chooser_set_current_folder to set cwd.
2483 Thu Feb 19 19:58:53 2004 Jonathan Blandford <jrb@gnome.org>
2485 * gtk/gtkpathbar.[ch]: New widget to handle the path in the
2486 fileselector implementation. Not hooked up to anything yet.
2488 * gtk/Makefile.am: support the path bar.
2490 Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
2492 * gtk/gtkstyle.c (gtk_default_draw_handle):
2493 (gtk_default_draw_box): Make the paned handles gray when the the
2494 widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
2496 Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
2500 * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
2501 and "Gtk/MenuImages" and map them to "gtk-button-images" and
2504 * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
2505 use it to set the visibility of the embedded image.
2507 * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
2508 it to set the visibility of an embedded image.
2510 Thu Feb 19 21:26:10 2004 Matthias Clasen <maclas@gmx.de>
2512 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
2513 Give each radio action its own value. (#134889, Paolo Borelli)
2515 2004-02-19 Federico Mena Quintero <federico@ximian.com>
2517 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
2518 Chain to the parent's ::finalize() handler. Fixes #134885; caught
2519 by Jan Arne Petersen.
2521 2004-02-19 Mark McLoughlin <mark@skynet.ie>
2523 Make the entire expander widget width prelight as suggested
2524 by Seth in bug #134263.
2526 * gtk/gtkexpander.c:
2527 (gtk_expander_paint_prelight): impl.
2528 (gtk_expander_paint): use it.
2529 (gtk_expander_redraw_expander): don't only redraw the
2532 2004-02-19 Alexander Larsson <alexl@redhat.com>
2534 * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
2535 * gtk/gtkfilechooserutils.c:
2536 * gtk/gtkfilechooserutils.h:
2537 * gtk/gtkfilechooserwidget.c:
2538 Remove old file-system property.
2539 Add new file-system-backend string property
2541 * gtk/gtkfilechooserdefault.[ch]:
2542 Handle the file-system-backend property
2544 * gtk/gtkfilechooserdialog.[ch]:
2545 (gtk_file_chooser_dialog_new_with_backend):
2546 Remove old file-system property.
2547 Add new file-system-backend string property
2548 Add new function gtk_file_chooser_dialog_new_with_backend
2550 * gtk/gtkfilesystem.c:
2551 * gtk/gtkfilesystem.h:
2552 Add filesystem module support.
2554 2004-02-18 Federico Mena Quintero <federico@ximian.com>
2556 * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
2557 from create_shortcuts_tree().
2558 (shortcuts_pane_create): New function.
2559 (button_new): Renamed from toolbar_button_new().
2560 (shortcuts_pane_create): New function, create the whole shortcuts
2562 (current_folder_create): Renamed from toolbar_create(). Don't
2563 create the bookmarks buttons here.
2564 (file_pane_create): New function.
2565 (gtk_file_chooser_default_constructor): Use the new helper
2566 functions, and don't use an extra vbox as GtkFileChooserDefault is
2569 Thu Feb 19 01:39:30 2004 Matthias Clasen <maclas@gmx.de>
2571 * gtk/gtkuimanager.h:
2572 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
2573 default handlers for all signals; for consistency and for the
2574 benefit of language bindings which still rely on header parsing
2575 to find the signals. (#134269, Jeroen Zwartepoorte)
2577 Thu Feb 19 00:45:02 2004 Matthias Clasen <maclas@gmx.de>
2579 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
2580 Improve the efficiency here by prepending on the list and reverting
2581 it after the loop. (#134435, Christian Biere)
2583 Thu Feb 19 00:32:21 2004 Matthias Clasen <maclas@gmx.de>
2585 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
2586 removing the plug from the socket. (#128546, Christopher Blizzard)
2588 Thu Feb 19 00:09:35 2004 Matthias Clasen <maclas@gmx.de>
2590 * gtk/gtkradiomenuitem.h:
2591 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget):
2592 (gtk_radio_menu_item_new_with_label_from_widget):
2593 (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
2594 convenience functions analogous to similar API on GtkRadioButton.
2595 (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
2597 Wed Feb 18 17:53:27 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2599 * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
2600 case where the background is a solid color.
2601 (gdk_window_clear_backing_rect): Reset the clip region after use.
2603 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
2604 back to using a scratch GC. Pointed out by Owen Taylor
2606 * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
2607 scratch GC if the passed-in one is NULL
2609 Wed Feb 18 14:27:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2611 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
2612 region back to NULL on cached GC (rest of #134728)
2614 Wed Feb 18 13:28:57 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2616 Fix bug reported by Nam SungHyun (#134728)
2618 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
2619 Don't use a cached GC here since the function needs to modify the
2622 * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
2623 to NULL on the cached GC.
2625 2004-02-17 Federico Mena Quintero <federico@ximian.com>
2627 * gtk/gtkfilechooserdialog.c
2628 (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
2631 Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
2633 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
2634 peculiarities of the ::delete_range signal. (#132135, Grant Gayed)
2636 Wed Feb 18 01:44:59 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2638 GC caching, bug #125645 (based on patch by Brian Cameron)
2640 * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
2641 * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
2643 * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
2645 * gdk/gdkinternals.h: Declare the function here
2647 * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
2648 _gdk_drawable_get_scratch_gc() instead of creating a new GC.
2649 * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
2650 * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
2651 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
2652 * gdk/gdkwindow.c (gdk_window_end_paint): same
2653 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
2654 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
2655 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
2657 Tue Feb 17 23:28:33 2004 Matthias Clasen <maclas@gmx.de>
2659 * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
2662 Tue Feb 17 23:11:21 2004 Matthias Clasen <maclas@gmx.de>
2664 * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
2665 priv->columns >= 1 even for empty menus, since we divide by it
2666 somewhere else. (#133428, Vincent Noel)
2668 Tue Feb 17 23:02:58 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2670 Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
2673 * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
2675 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
2678 * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
2679 the colormap, if no colormap, special case depth 1,
2681 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
2682 _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
2684 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
2685 Special-case bitmaps without a colormap.
2687 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
2688 draw_pixbuf() implementation in the bitmap case.
2690 2004-02-17 Mark McLoughlin <mark@skynet.ie>
2692 * modules/input/Makefile.am: only reference input method
2693 modules we've actually built. Fixes re-build failure with
2694 stale hangul module lying aroung. Bug #134518.
2696 Mon Feb 16 19:13:21 2004 Owen Taylor <otaylor@redhat.com>
2698 * gdk/gdkdraw.c: Revert last commit, please don't commit patches
2699 without approval, this isn't the right way to do it.
2701 2004-02-16 DindinX <david@dindinx.org>
2703 * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
2704 segments at a time, since XDrawSegments cannot handle more than this.
2708 Mon Feb 16 18:26:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2710 * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
2711 gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
2712 in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
2714 Mon Feb 16 00:04:46 2004 Matthias Clasen <maclas@gmx.de>
2716 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*):
2717 Split declaration and assignment of combo_box.
2719 * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a
2722 Sun Feb 15 22:08:53 2004 Matthias Clasen <maclas@gmx.de>
2724 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add
2725 deprecation note pointing people to GtkComboBox.
2727 Sun Feb 15 02:49:45 2004 Matthias Clasen <maclas@gmx.de>
2730 * gtk/gtktreeview.c: Document the tree DND API.
2732 * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source):
2733 Call gtk_drag_source_unset().
2735 Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
2737 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
2738 Make stock_size an uint property, to allow custom icon
2739 sizes. Also clarify the blurb. (#130047, Erik Grinaker)
2741 Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
2743 * configure.in: Remove unnecessary STRIP_* definitions, and GNU
2746 2004-02-13 Federico Mena Quintero <federico@ximian.com>
2748 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
2749 Duh, duh, duh! Don't bail out if the bookmarks file doesn't exist
2750 the very first time you try to save one.
2752 2004-02-13 Federico Mena Quintero <federico@ximian.com>
2756 * gtk/gtkfilechooserdialog.c
2757 (set_default_size): New function, sets a reasonable default size
2759 (gtk_file_chooser_dialog_realize): New function, call
2761 (gtk_file_chooser_dialog_style_set): Likewise.
2762 (gtk_file_chooser_dialog_screen_changed): Likewise.
2764 * tests/testfilechooser.c (main): Don't set a default size for the
2767 Sat Feb 14 00:05:18 2004 Matthias Clasen <maclas@gmx.de>
2769 * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset):
2770 Use do instead of while. (#134031, Morten Welinder);
2772 Sat Feb 14 00:00:52 2004 Matthias Clasen <maclas@gmx.de>
2774 * configure.in: Suppress xsltproc and xmlcatalog checks
2775 if enable_man=no. (#134162, Julio M. Merino Vidal)
2777 Fri Feb 13 23:54:48 2004 Matthias Clasen <maclas@gmx.de>
2779 * configure.in: Remove checks for sgml2html. It was once
2780 used for building the linuxdoc version of the tutorial.
2781 Nowadays, we use db2html. (#134164, Julio M. Merino Vidal)
2783 Fri Feb 13 08:17:43 2004 Owen Taylor <otaylor@redhat.com>
2785 Fix various compilation problems (#134312, David
2788 * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use
2789 g_return_if_fail(), not g_return_val_if_fail().
2791 * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets):
2792 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use
2793 g_return_if_reached(), not g_return_val_if_reached().
2795 * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
2798 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
2799 extra 'scale' parameter.
2801 Thu Feb 12 21:58:20 2004 Owen Taylor <otaylor@redhat.com>
2803 Various reentrancy fixes for widgets being destroyed
2804 out of focus-out-event. (#128821, Grant Gayed)
2806 * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default):
2807 Ref window and widget over callbacks.
2809 * gtk/gtkwidget.c (gtk_widget_hide)
2810 gtk/gtkwidget.c (gtk_widget_set_child_visible):
2811 Ref the widget before calling _gtk_window_unset_focus_and_default(),
2812 since that can call user callbacks.
2814 * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
2815 Do nothing if the widget isn't realized.
2817 Fri Feb 13 01:31:44 2004 Matthias Clasen <maclas@gmx.de>
2819 * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
2820 active, RELIEF_NONE buttons that aren't depressed. This improves
2821 the appearance of buttons in notebook tabs. (#109213, reported
2822 by Benjamin Otte, patch by Rodney Dawes)
2824 Fri Feb 13 01:06:08 2004 Matthias Clasen <maclas@gmx.de>
2826 * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by
2827 HAVE_FLOCKFILE in all cases. (#134205, Julio M. Merino Vidal)
2829 Fri Feb 13 00:54:59 2004 Matthias Clasen <maclas@gmx.de>
2831 Fix for #104811, Padraig O'Briain:
2834 * gtk/gtkscale.c (_gtk_scale_clear_layout):
2835 * gtk/gtkscale.c (gtk_scale_get_layout_offsets):
2836 * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
2837 text and its position from a GtkScale, to make it more accessible.
2838 * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
2839 * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the
2842 Thu Feb 12 17:59:52 2004 Owen Taylor <otaylor@redhat.com>
2844 * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path):
2845 Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
2847 Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de>
2849 * gtk/gtktooltips.h:
2850 * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New
2851 function to improve the accessibility of tooltips. (#114851,
2854 Thu Feb 12 23:16:04 2004 Matthias Clasen <maclas@gmx.de>
2856 * gtk/gtkcombobox.c (gtk_combo_box_popup):
2857 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
2860 Thu Feb 12 11:05:16 2004 Manish Singh <yosh@gimp.org>
2862 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
2863 gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
2865 * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
2866 gdk_property_get call instead of 0.
2868 * docs/reference/gdk/tmpl/properties.sgml: Document the above
2869 as GDK_NONE instead of simply 0.
2871 Thu Feb 12 15:46:26 2004 Soeren Sandmann <sandmann@daimi.au.dk>
2873 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
2874 correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
2876 Thu Feb 12 02:22:02 2004 Matthias Clasen <maclas@gmx.de>
2878 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func):
2881 Thu Feb 12 01:17:01 2004 Matthias Clasen <maclas@gmx.de>
2883 * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
2884 gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
2885 for automatic DND. (#133485, Tommi Komulainen)
2887 Thu Feb 12 00:37:00 2004 Matthias Clasen <maclas@gmx.de>
2889 * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
2892 2004-02-11 Federico Mena Quintero <federico@ximian.com>
2894 * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
2895 handler. If no widget has the focus, try to give it to the
2896 default widget. If there is no default widget, give it to the
2897 first button. Fixes the cause for which #59707 was reopened.
2899 2004-02-11 Federico Mena Quintero <federico@ximian.com>
2903 * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
2904 (icon_info_new): Don't initialize the ref_count field.
2906 2004-02-11 Federico Mena Quintero <federico@ximian.com>
2908 * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
2909 the array correctly. Fixes #134055, patch by Tosten Schoenfeld
2910 <kaffeetisch@gmx.de>.
2912 Wed Feb 11 02:23:39 2004 Matthias Clasen <maclas@gmx.de>
2914 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
2915 focus [hv]adjustment correctly when the focus is located deeper
2916 down in the hierarchy. (#133489)
2918 Wed Feb 11 02:06:38 2004 Matthias Clasen <maclas@gmx.de>
2920 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove
2921 arbitrary low upper limits on the xpad, ypad, width and height
2922 properties. (#129696, John Ellis)
2924 Wed Feb 11 01:24:20 2004 Matthias Clasen <maclas@gmx.de>
2926 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
2927 Ugh. Don't try to free ints, even if they're stored in pointers.
2928 (#133997, Morten Welinder)
2930 2004-02-10 Federico Mena Quintero <federico@ximian.com>
2932 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
2933 Free the filters. Fixes #133547, patch by Morten Welinder
2934 <mortenw@gnome.org>.
2936 Tue Feb 10 12:02:14 2004 Owen Taylor <otaylor@redhat.com>
2938 * gdk/x11/xsettings-client.c (read_settings): Avoid
2939 triggering an X error when the client->manager_window
2940 is None...makes logs look cleaner.
2942 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
2943 GDK_NONE to mean AnyPropertyType as documented. (Reported
2946 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
2947 gdk_x11_screen_get_window_manager_name): Fix error trap
2948 we've been leaking since 2002... (#129538)
2950 2004-02-10 Federico Mena Quintero <federico@ximian.com>
2952 Fixes the entry-related part of #133852.
2954 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
2955 the file part of the entry if the selected item is a folder.
2957 2004-02-10 Federico Mena Quintero <federico@ximian.com>
2959 Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
2961 * tests/prop-editor.c (create_prop_editor): Free the title.
2962 (object_changed): Free the children list.
2964 Tue Feb 10 01:58:55 2004 Matthias Clasen <maclas@gmx.de>
2966 * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment):
2967 * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document
2970 2004-02-09 Federico Mena Quintero <federico@ximian.com>
2972 * gtk/gtkfilechooserdefault.c (set_list_model): Request
2973 GTK_FILE_INFO_ALL from the file system model, so that arbitrary
2974 filtering will work. Perhaps we should have a way of aggregating
2975 info types to the model as filters get installed.
2977 Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
2979 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
2980 Ugh. Don't try to free ints, even if they're stored in pointers.
2982 2004-02-09 Federico Mena Quintero <federico@ximian.com>
2986 * gtk/gtkfilechooserdefault.c
2987 (gtk_file_chooser_default_get_paths): Read the contents of the
2988 filename entry in both OPEN and SAVE mode. In multiple-selection
2989 mode, add this to the selection from the file/folder list.
2990 (struct get_paths_closure): Add a path_from_entry field.
2991 (get_paths_foreach): Only add the iterated path if it is not the
2992 same as the path from the entry.
2994 2004-02-09 Federico Mena Quintero <federico@ximian.com>
2996 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
2997 the folder is already open, add the requested info types to it.
2999 Sun Feb 8 01:28:02 2004 Manish Singh <yosh@gimp.org>
3001 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3002 type casts for the gtk_window_set_screen() call.
3004 Sun Feb 8 01:44:06 2004 Matthias Clasen <maclas@gmx.de>
3006 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups
3007 come up on the same screen as the combo box. (#133544,
3010 Fri Feb 6 23:40:24 2004 Jonathan Blandford <jrb@gnome.org>
3012 * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3013 packing of the file selector.
3015 Sat Feb 7 01:21:09 2004 Matthias Clasen <maclas@gmx.de>
3017 * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function
3018 calls in array initializers, as some compilers seem to hate this.
3019 (#133216, Jonas Jonsson)
3021 Sat Feb 7 00:06:44 2004 Matthias Clasen <maclas@gmx.de>
3023 * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3024 by on-demand instantiating a singleton object with a "changed"
3027 * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3028 for GtkAccelMap::changed.
3030 Fri Feb 6 23:08:29 2004 Matthias Clasen <maclas@gmx.de>
3032 * gtk/gtktextbtree.c (_gtk_text_btree_check):
3033 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes):
3034 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
3035 Actually free the lists. Pointed out by Morten Welinder.
3037 Fri Feb 6 22:38:54 2004 Matthias Clasen <maclas@gmx.de>
3039 * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character
3040 positions in UTF-8 strings correctly. (#133315, Theppitak
3043 2004-02-06 Morten Welinder <terra@gnome.org>
3045 * gtk/gtktoolbar.c (show_menu): Cleanup using
3046 gtk_menu_attach_to_widget. Also fixes leak, see #133411.
3048 2004-02-06 Federico Mena Quintero <federico@ximian.com>
3050 * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3051 list. Fixes #133546.
3053 2004-02-06 Federico Mena Quintero <federico@ximian.com>
3057 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3058 folder_hash field to keep a list of live folder objects.
3059 (gtk_file_system_unix_init): Create the folder_hash.
3060 (gtk_file_system_unix_finalize): Destroy the folder_hash.
3061 (gtk_file_system_unix_get_folder): Ref and return an existing
3062 folder if we have it around, otherwise return a new folder object.
3063 (struct _GtkFileFolderUnix): Add a field for the parent file system.
3064 (gtk_file_folder_unix_finalize): Remove the folder from the file
3065 system's hash table.
3066 (gtk_file_system_unix_create_folder): Emit "files-added" on the
3067 newly-created folder's parent. Fixes #132327.
3069 Fri Feb 6 00:51:57 2004 Matthias Clasen <maclas@gmx.de>
3071 * gtk/gtkstock.c (builtin_items): Change the labels of the
3072 ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3073 "Best _Fit", to be HIG compliant. (#124080, Mariano
3076 Fri Feb 6 00:45:16 2004 Matthias Clasen <maclas@gmx.de>
3078 * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize
3079 function to plug a few memory leaks. (#133544, Morten Welinder)
3081 Fri Feb 6 00:15:38 2004 Matthias Clasen <maclas@gmx.de>
3083 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate):
3084 Support mnemonic_activate here as well.
3086 * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3087 the button, not the tree_view.
3089 Thu Feb 5 23:48:19 2004 Matthias Clasen <maclas@gmx.de>
3091 * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3092 function, to make mnemonic_activate work for combo boxes.
3093 (#133443, Paolo Borelli)
3095 Thu Feb 5 22:05:52 2004 Matthias Clasen <maclas@gmx.de>
3097 * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3098 to FALSE. (#133539, Morten Welinder)
3100 Thu Feb 5 21:36:43 2004 Matthias Clasen <maclas@gmx.de>
3102 * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3103 of the depth one check. (#133488, Christian Persch)
3105 Thu Feb 5 01:50:19 2004 Matthias Clasen <maclas@gmx.de>
3107 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3108 the drawing of tearoff menu items which don't come first in their
3111 Thu Feb 5 00:59:08 2004 Matthias Clasen <maclas@gmx.de>
3113 * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use
3114 g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3116 2004-02-04 Federico Mena Quintero <federico@ximian.com>
3120 * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3122 (gtk_label_button_press): Fix prototype.
3123 (gtk_label_button_release): Likewise.
3124 (gtk_label_motion): Likewise.
3126 * tests/testgtk.c (create_message_dialog): For the dialog with
3127 only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3129 2004-02-04 Morten Welinder <terra@gnome.org>
3131 * gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
3132 bug 133411, apart from the leak.)
3134 Tue Feb 3 13:39:27 2004 Manish Singh <yosh@gimp.org>
3136 * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3137 in g_object_new, since it depends on lower and upper being set.
3139 2004-02-03 Federico Mena Quintero <federico@ximian.com>
3141 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3142 window not resizable. Fixes #114032.
3144 2004-02-03 Federico Mena Quintero <federico@ximian.com>
3146 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3147 documentation for the use_separator style property.
3149 2004-02-03 Federico Mena Quintero <federico@ximian.com>
3153 * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3154 GtkDialog; right now it only contains an ignore_separator field.
3155 (gtk_dialog_class_init): Register the private structure.
3156 (gtk_dialog_init): Initialize the priv->ignore_separator field.
3157 (_gtk_dialog_set_ignore_separator): New private function.
3158 (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3160 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3161 use_separator style property.
3162 (gtk_message_dialog_style_set): Change the dialog's separator
3163 based on the style property.
3164 (gtk_message_dialog_init): Set the dialog box to ignore the
3167 Tue Feb 3 02:35:09 2004 Matthias Clasen <maclas@gmx.de>
3169 * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3170 also dist gtkfilesystemwin32.[hc].
3172 Tue Feb 3 02:04:44 2004 Matthias Clasen <maclas@gmx.de>
3174 * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3175 in rtl mode. (#129071, chinen@jp.ibm.com)
3177 Tue Feb 3 02:01:25 2004 Matthias Clasen <maclas@gmx.de>
3179 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3180 meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3183 Tue Feb 3 01:38:06 2004 Matthias Clasen <maclas@gmx.de>
3185 Clip narrow columns in rtl-oriented tree views (#128089,
3188 * gtk/gtkstyle.c (gtk_default_draw_option):
3189 * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the
3192 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
3193 Use the right clip area when calling gtk_cell_renderer_render().
3194 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus):
3195 Use the right clip area when calling gtk_paint_focus().
3196 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3197 Use the right clip area when calling gtk_paint_toggle() or
3199 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3200 Clip to the expose_area when drawing the background rectangle.
3202 Tue Feb 3 00:14:36 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3204 * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3205 Use a weak reference instead of ref()/unref(). (#60857, reported
3206 by Joshua N Pritikin)
3208 * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3210 Tue Feb 3 00:15:17 2004 Matthias Clasen <maclas@gmx.de>
3212 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
3213 init_hadjust_value and prev_width.
3214 * gtk/gtktreeview.c (gtk_tree_view_init): Initialize
3216 * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3217 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3218 here to properly handle the initial position of rtl-oriented
3219 tree views. (#127581, chinen@jp.ibm.com)
3221 2004-01-20 Federico Mena Quintero <federico@ximian.com>
3223 Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3225 * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3226 we handle an event in the colums, and FALSE at the end if the
3227 event is not handled at all.
3229 Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
3231 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
3232 Don't access the level after removing the node, since that may
3233 kill the level. (#132615, Crispin Flowerday)
3235 2004-02-02 Tor Lillqvist <tml@iki.fi>
3237 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3238 in all cases. If no grab cursor specified, use the grabbing
3239 window's cursor. If the grabbing window has no cursor, use the
3240 default arrow cursor. (#118025)
3242 Mon Feb 2 22:05:36 2004 Matthias Clasen <maclas@gmx.de>
3244 * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3245 latest in menu separation technology.
3247 Mon Feb 2 19:04:17 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3249 * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3250 we have to take our chances with).
3254 Mon Feb 2 18:45:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3258 * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3259 Remove unused variable 'result'
3261 * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3263 * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3266 Mon Feb 2 14:32:32 2004 Pablo Saratxaga <pablo@mandrakesoft.com>
3268 * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3269 is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3271 Sun Feb 1 16:34:07 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3273 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3274 sliding when using the new API.
3276 Sun Feb 1 16:03:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3278 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3279 item_area is positioned correctly. Fix #133070, reported by Jeroen
3282 Sat Jan 31 23:13:43 2004 Matthias Clasen <maclas@gmx.de>
3284 * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3285 crash when finalizing an unused GtkTextChildAnchor. (#132260,
3288 Sat Jan 31 22:41:57 2004 Matthias Clasen <maclas@gmx.de>
3290 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3291 the documentation for new_order. (#124790, Tim-Philipp Müller)
3293 Sat Jan 31 22:38:07 2004 Matthias Clasen <maclas@gmx.de>
3295 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3296 Reset use_resized_width when setting fixed_width. (#108612,
3299 Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
3301 * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3302 GtkKeySnooperData. (#132038, R. McFarland)
3304 2004-01-30 Federico Mena Quintero <federico@ximian.com>
3308 * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3310 (gtk_file_system_volume_render_icon): Likewise.
3312 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3315 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3318 * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3321 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3323 (gtk_text_iter_get_bytes_in_line): Likewise.
3325 * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3328 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3331 2004-01-30 Not Zed <NotZed@Ximian.com>
3335 * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3336 handler when we clear the timeout id.
3338 2004-01-30 Federico Mena Quintero <federico@ximian.com>
3340 Fix #129872, based on a patch by Jan Arne Petersen
3341 <jpetersen@uni-bonn.de>
3343 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3345 (gtk_file_system_unix_add_bookmark): Implement.
3346 (gtk_file_system_unix_remove_bookmark): Implement.
3348 2004-01-29 Federico Mena Quintero <federico@ximian.com>
3352 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3353 use filename_from_path(). Also, check that the filename is
3355 (gtk_file_system_unix_get_folder): Likewise.
3356 (gtk_file_system_unix_create_folder): Likewise.
3357 (gtk_file_system_unix_make_path): Likewise.
3358 (gtk_file_system_unix_parse): Likewise.
3359 (gtk_file_folder_unix_get_info): Likewise.
3360 (filename_from_path): Removed.
3362 2004-01-30 Federico Mena Quintero <federico@ximian.com>
3364 * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3365 by Damien Carbery <damien.carbery@sun.com>. Fixes #132956.
3367 Fri Jan 30 11:37:37 2004 Owen Taylor <otaylor@redhat.com>
3369 * gdk/x11/gdkdrawable-x11.c: Revert changes from
3370 #113476 and go back to using XftDrawSetClip, because
3371 XftDrawSetClipRectangles is buggy in XFree86-4.3.
3373 Thu Jan 29 18:08:06 2004 Owen Taylor <otaylor@redhat.com>
3375 * gtk/gtktextlayout.c (line_display_iter_to_index)
3376 * gtk/gtktextlayout.c (line_display_index_to_iter): Only
3377 adjust the preedit position for lines that include the
3378 preedit string. (#132353, Yao Zhang). How the heck
3379 did this work as well as it did?!?!
3381 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
3382 Reverse change to change of XNFilterEvents event mask from
3383 #110493 -- it's documented and in the Xlib code an
3386 * modules/input/gtkimcontextxim.c (preedit_start_callback):
3387 Return -1 rather than void to indicate no length limit.
3390 Fri Jan 30 00:45:46 2004 Matthias Clasen <maclas@gmx.de>
3392 * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
3393 (#64601, Murray Cumming)
3395 Fri Jan 30 00:13:46 2004 Matthias Clasen <maclas@gmx.de>
3397 * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
3398 for strings to clear the list. (#105386, Marco Pesenti Gritti)
3400 2004-01-28 Richard Hult <richard@imendio.com>
3402 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
3403 Free font_desc. Fixes #132805.
3405 2004-01-29 Federico Mena Quintero <federico@ximian.com>
3407 * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
3408 Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
3411 Thu Jan 29 11:00:18 2004 Owen Taylor <otaylor@redhat.com>
3413 * gtk/gtkselection.c (gtk_selection_default_handler):
3414 nul-terminate the target atoms. (#132656, Christian Persch)
3416 Thu Jan 29 00:59:03 2004 Matthias Clasen <maclas@gmx.de>
3418 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
3419 Don't leak path if we bail out early. (#132505, Christian Persch)
3421 Thu Jan 29 00:48:47 2004 Matthias Clasen <maclas@gmx.de>
3423 * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
3424 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
3425 reference counting on the user_data that is shared between
3426 multiple signal handlers, to avoid calling the destroy notify
3427 multiple times. (#132447, Adam Hooper)
3429 2004-01-28 Hans Breuer <hans@breuer.org>
3431 * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
3432 gtk/gtkstock.[hc] : ... define ...
3433 gtk/gtkiconfactory.c : ... register ...
3434 gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
3435 * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent
3438 * gtk/gtk.def : added a bunch of new exported symbols
3440 * tests/testfilechooser.c (no_backup_files_filter) : don't crash
3441 on filter_info->display_name being NULL
3443 * tests/testgtk.c : make testgtk --bench=all work again
3445 Wed Jan 28 21:40:47 2004 Matthias Clasen <maclas@gmx.de>
3447 * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
3448 Don't leak string. (#132482, Christian Persch)
3450 Tue Jan 27 18:45:47 2004 Manish Singh <yosh@gimp.org>
3452 * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
3453 1.8 won't whine at us.
3455 2004-01-28 Tor Lillqvist <tml@iki.fi>
3457 * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
3458 synthesize_enter_event): Don' generate enter or leave events if
3459 the pointer is grabbed with owner_events off, and the grab event
3460 mask doesn't ask for them. (#129242)
3462 (gdk_event_translate): Ditto for focus change events.
3464 2004-01-27 Federico Mena Quintero <federico@ximian.com>
3468 * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
3470 * gtk/gtkfilesystem.c: Likewise.
3472 * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
3474 (gtk_file_system_unix_render_icon): Moved the icon-rendering code
3475 from GtkFileInfo to here.
3476 (gtk_file_system_unix_volume_render_icon): Implement.
3478 2004-01-28 Changwoo Ryu <cwryu@debian.org>
3480 * modules/input/imhangul-defs.h:
3481 * modules/input/imhangul.c:
3482 * modules/input/Makefile.am: Remove broken hangul input module.
3484 Tue Jan 27 01:56:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3486 * gtk/gtktoolbar.c: Remove obsolete comment.
3488 * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START,
3489 SPACE_LINE_END): Make separators wider and taller, so they are
3490 easier to pick up when editing the toolbar.
3492 * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
3495 * gtk/gtktoolbar.c (rect_within): Formatting fix
3497 * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
3498 sliding feel more responsive by only restarting sliding when the
3499 placeholder actually changes its goal allocation.
3501 Tue Jan 27 02:00:37 2004 Matthias Clasen <maclas@gmx.de>
3503 * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a
3504 compiler warning. (#122725, Kjartan Maraas)
3506 Tue Jan 27 01:46:54 2004 Matthias Clasen <maclas@gmx.de>
3508 Make menus work better on Xinerama (#126150):
3510 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the
3511 monitor_num on the screen of the menu, not of the attach widget.
3513 * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num.
3514 (gtk_menu_window_size_request): Remember the monitor_num.
3516 2004-01-26 Federico Mena Quintero <federico@ximian.com>
3518 Fix #105497; constify uses of GdkColor.
3520 * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
3521 (gdk_gc_set_rgb_bg_color): Constify.
3522 (gdk_gc_set_foreground): Constify.
3524 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
3525 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
3526 * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
3528 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
3529 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
3530 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
3532 * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
3533 * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
3534 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
3536 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
3537 (gdk_draw_layout_with_colors): Constify.
3539 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
3540 (gdk_pixmap_colormap_create_from_xpm): Constify.
3541 (gdk_pixmap_create_from_xpm): Constify.
3542 (gdk_pixmap_colormap_create_from_xpm_d): Constify.
3543 (gdk_pixmap_create_from_xpm_d): Constify.
3545 * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
3547 * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
3548 (gtk_clist_set_background): Constify.
3550 * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
3551 (gtk_color_button_set_color): Constify.
3553 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
3554 Constify and add a check for color != NULL.
3555 (gtk_color_selection_get_current_color): Add a check for color != NULL.
3556 (gtk_color_selection_set_previous_color): Constify and add a check
3558 (gtk_color_selection_get_previous_color): Add a check for color != NULL.
3560 * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
3561 (gtk_ctree_node_set_background): Constify.
3563 * gtk/gtktext.c (gtk_text_insert): Constify.
3564 (insert_text_property): Constify.
3565 (text_properties_equal): Constify.
3566 (new_text_property): Constify.
3568 * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
3569 (gtk_widget_modify_fg): Constify.
3570 (gtk_widget_modify_bg): Constify.
3571 (gtk_widget_modify_text): Constify.
3572 (gtk_widget_modify_base): Constify.
3574 2004-01-26 Christian Rose <menthos@menthos.com>
3576 * configure.in: Added "mi" to ALL_LINGUAS.
3578 2004-01-25 Tor Lillqvist <tml@iki.fi>
3580 * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
3581 WM_TRANSIENT_FOR property is being deleted, set the owner of the
3582 window to the root window (i.e., effectively unset it). (#132411)
3584 * gdk/win32/gdkprivate-win32.h
3585 * gdk/win32/gdkglobals-win32.c
3586 * gdk/win32/gdkmain-win32.c: Declare, define and initialize
3587 _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
3589 * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
3591 Sun Jan 25 15:14:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3593 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
3594 to map/unmap items on whether they are actually allocated outside
3595 the toolbar, not on whether that will eventually happen. Improves
3596 animation in the presence of overflown items.
3598 * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
3599 queue_resize() to so that the items will get their new goal
3600 values and the idle handler will not immediately return FALSE.
3602 * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
3603 make sure that a placeholder becoming invisible doesn't cause a
3606 * gtk/gtktoolbar.c (get_item_size): Don't special case
3609 Sat Jan 24 23:17:27 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3611 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
3612 try to pack icon if there actually is one.
3614 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3615 OVERFLOWN items get an allocation even when they are
3616 unmapped. This ensures they will slide in properly.
3618 * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
3619 when there are overflown items that need to slide in. Also add
3620 comments and make formatting more readable.
3622 Sat Jan 24 17:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3624 * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
3625 Add a write-only property ::group to be consistent with
3626 GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
3629 Fri Jan 23 23:46:12 2004 Matthias Clasen <maclas@gmx.de>
3631 * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the
3632 font description. (#132168)
3634 2004-01-23 Federico Mena Quintero <federico@ximian.com>
3638 * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
3640 (set_select_multiple): Optionally notify about changes to the
3641 select-multiple property.
3642 (list_selection_changed): Change the condition for the editable row to
3643 test for save mode; this is more clear than testing for not being
3644 in multiple selection mode.
3645 (gtk_file_chooser_default_get_paths): Get impl->action directly
3646 rather than calling gtk_file_chooser_get_action().
3647 (entry_activate): Likewise.
3648 (set_select_multiple): Annotate about #133255.
3649 (update_chooser_entry): Likewise.
3650 (check_preview_change): Likewise.
3651 (tree_selection_changed): Likewise.
3653 Fri Jan 23 14:56:18 2004 Jonathan Blandford <jrb@gnome.org>
3655 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
3656 when there are no columns, or all columns are hidden, #131402
3658 Fri Jan 23 16:58:28 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3660 * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
3661 mistake. Change back to 225.
3663 Thu Jan 22 18:46:05 2004 Owen Taylor <otaylor@redhat.com>
3665 * === Released 2.3.2 ===
3667 Thu Jan 22 18:45:26 2004 Owen Taylor <otaylor@redhat.com>
3669 * gtk/gtkicontheme.c: Patch from Christian Neumair
3670 to make warning string more translator friendly.
3672 * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
3673 gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
3676 * configure.in: Require GLib-2.3.2, version 2.3.2,
3677 interface age 0, binary age 302.
3679 * NEWS: Organized, added some names.
3681 Thu Jan 22 16:59:36 2004 Jonathan Blandford <jrb@gnome.org>
3683 * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
3685 2004-01-22 Federico Mena Quintero <federico@ximian.com>
3687 * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
3688 GtkWidget::popup_menu.
3690 Thu Jan 22 21:45:24 2004 Matthias Clasen <maclas@gmx.de>
3692 * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach
3693 info after calling gtk_menu_do_remove(), since that function
3694 uses the attach info. Doh!
3696 * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns
3697 for being 1 directly after setting it to 0.
3699 Thu Jan 22 21:38:52 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3703 2004-01-22 Alexander Larsson <alexl@redhat.com>
3705 * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
3708 2004-01-21 Federico Mena Quintero <federico@ximian.com>
3710 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3711 Free the path fields.
3713 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
3714 the root_path, reported by <scott@asofyet.org>
3715 (gtk_file_system_model_finalize): Unref the file system.
3717 * gtk/gtkfilefilter.c (filter_rule_free): default:
3718 g_assert_not_reached().
3719 (gtk_file_filter_finalize): Free the filter->name, reported by
3721 (gtk_file_filter_finalize): Free the rules list.
3723 Wed Jan 21 18:10:40 2004 Jonathan Blandford <jrb@gnome.org>
3725 * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
3726 color button when an alpha is set.
3727 (gtk_color_button_set_alpha): redraw the color button when an
3730 Wed Jan 21 23:27:14 2004 Matthias Clasen <maclas@gmx.de>
3734 * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
3735 a reference to the group while emitting the signals.
3737 * gtk/gtkactiongroup.c (gtk_action_group_init): Use a
3738 destroy notify which does not only unref, but also resets
3739 the action_group property of the action.
3741 2004-01-20 Federico Mena Quintero <federico@ximian.com>
3743 * NEWS: Added details about GtkFileChooser changes.
3745 2004-01-20 Federico Mena Quintero <federico@ximian.com>
3747 Fix #99425, add accessor functions for GtkPaned's children.
3749 * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
3750 (gtk_paned_get_child2): New function.
3752 Tue Jan 20 23:49:52 2004 Matthias Clasen <maclas@gmx.de>
3754 * NEWS: Start of 2.3.2 section.
3756 Tue Jan 20 22:11:31 2004 Matthias Clasen <maclas@gmx.de>
3758 Fixes for #130370, based on a patch by Michael Meeks:
3760 * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
3761 adjust cell positions and recalculate row and column counts after
3764 * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
3766 * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
3769 * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
3770 to avoid an unintended recursion.
3772 2004-01-19 Federico Mena Quintero <federico@ximian.com>
3776 * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
3778 (gtk_file_chooser_default_set_property): Use
3779 set_select_multiple(). Also, re-set this mode to single if the
3780 file chooser is set to Save mode.
3781 (entry_activate): Handle the case where the entry is completely
3782 empty *and* its current folder does exist. Also, there is need to
3783 test for select_multiple here now that we ensure that it won't
3784 happen during Save mode.
3786 Sun Jan 18 15:25:39 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3788 * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
3789 _gtk_toolbar_get_default_space_size ();
3791 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
3792 get_space_size): Use them here.
3794 Sun Jan 18 13:16:34 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3796 * tests/testgtk.c (create_toolbar): Set a small size request and
3797 make the window resizable, to test mapping/unmapping of buttons.
3799 * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
3800 gtk_toolbar_insert_tool_item): remove these functions.
3802 * gtk/gtktoolbar.c (gtk_toolbar_show_all,
3803 toolbar_content_show_all, gtk_toolbar_hide_all,
3804 toolbar_content_hide_all): New functions.
3806 Ignore show_all/hide_all for buttons created in compatibility mode.
3808 * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
3809 gtk_toolbar_hide_all): Make sure buttons are ignored by
3810 gtk_toolbar_show_all() and gtk_toolbar_hide_all().
3812 * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
3814 * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
3815 GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
3817 * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
3820 * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
3821 instead of prepending them.
3823 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
3824 'elapsed' for all items.
3826 * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
3829 * gtk/gtktoolbar.c: Many formatting fixes
3831 Sun Jan 18 01:51:12 2004 Matthias Clasen <maclas@gmx.de>
3833 * configure.in: Add the necessary magic to create
3834 po-properties/Makefile.
3836 Sat Jan 17 23:05:52 2004 Matthias Clasen <maclas@gmx.de>
3838 The second part of the fix for #114351 (see also
3839 gdk-pixbuf/ChangeLog and po/ChangeLog):
3841 * Makefile.am (SUBDIRS): Add po-properties.
3843 * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in
3845 * gdk/gdkintl.h (P_):
3846 * gtk/gtkintl.h (P_): Use translation domain gtk20-properties.
3848 * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
3849 bind_textdomain_codeset for gtk20-properties as well.
3851 Sat Jan 17 22:00:07 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3855 Fix rest of #128678: Implement all the toolbar_content()
3856 methods for the old API case.
3858 Sat Jan 17 16:53:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3862 Phase 1 of fixing #128678: Only access ToolbarContent through a
3863 set of new functions:
3865 toolbar_content_expose, toolbar_content_visible,
3866 toolbar_content_size_request, toolbar_content_is_homogeneous,
3867 toolbar_content_get_child_requisition,
3868 toolbar_content_is_placeholder, toolbar_content_disappearing,
3869 toolbar_content_get_state, toolbar_content_child_visible,
3870 toolbar_content_get_goal_allocation,
3871 toolbar_content_get_allocation,
3872 toolbar_content_set_start_allocation,
3873 toolbar_content_get_start_allocation, toolbar_content_get_expand,
3874 toolbar_content_set_goal_allocation,
3875 toolbar_content_set_child_visible, toolbar_content_size_allocate,
3876 toolbar_content_set_state, toolbar_content_get_widget,
3877 toolbar_content_set_disappearing,
3878 toolbar_content_set_size_request,
3879 toolbar_content_toolbar_reconfigured,
3880 toolbar_content_retrieve_menu_item,
3881 toolbar_content_new_tool_item, toolbar_content_destroy,
3882 toolbar_content_is_separator
3886 Sat Jan 17 12:55:13 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3888 * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
3891 Sat Jan 17 12:37:46 2004 Soeren Sandmann <sandmann@daimi.au.dk>
3893 * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
3896 * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public.
3899 2004-01-16 Federico Mena Quintero <federico@ximian.com>
3901 * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
3903 (_gtk_file_system_model_add_editable): New function.
3904 (_gtk_file_system_model_remove_editable): New function.
3905 (gtk_file_system_model_get_value): Return appropriate values for
3906 the temporary editable row.
3907 (_gtk_file_system_model_get_info): Handle the editable row.
3908 (_gtk_file_system_model_get_path): Likewise.
3910 * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
3911 Removed an unused variable.
3912 (toolbar_button_new): Optionally show the button.
3913 (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
3914 (toolbar_create): Add a "New Folder" button for Save mode.
3915 (error_building_filename_dialog): New helper function.
3916 (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
3917 (create_file_list): Connect to the "edited" signal of the text
3918 cell renderer. Store the name column and text renderer in the
3920 (renderer_edited_cb): New callback.
3921 (gtk_file_chooser_default_set_property): Show/hide the "New
3922 folder" button when the save action changes.
3923 (COMPARE_DIRECTORIES): Allow the info values to be NULL.
3924 (COMPARE_DIRECTORIES): Duh, use the list_model, not the
3926 (get_list_file_info): Likewise!
3927 (list_icon_data_func): Handle the path being NULL.
3928 (new_folder_button_clicked): New callback.
3929 (list_name_data_func): If we are on the editable row, set the text
3930 to "Type name of new folder".
3931 (list_selection_changed): Handle the editable row.
3932 (list_mtime_data_func): Likewise.
3934 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
3936 (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
3938 Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
3940 The first part of the fix for #114351 (see also
3941 gdk-pixbuf/ChangeLog and po/ChangeLog):
3944 * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
3946 * gdk/gdkdisplaymanager.c:
3947 * modules/input/gtkimcontextxim.c:
3948 * gtk/*.c: Mark property blurbs and nicks with P_().
3950 2004-01-16 Federico Mena Quintero <federico@ximian.com>
3954 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
3955 editing_canceled signal.
3957 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
3958 "editing-canceled" signal.
3959 (gtk_cell_renderer_editing_canceled): New function.
3961 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
3962 Call gtk_cell_renderer_editing_canceled().
3964 2004-01-16 Federico Mena Quintero <federico@ximian.com>
3966 * gtk/gtkfilechooserdefault.c
3967 (gtk_file_chooser_default_set_property): Do not allow setting
3968 select_multiple when in Save mode.
3969 (set_list_model): No need to nullify the list_model and
3971 (gtk_file_chooser_default_get_paths): Handle folder mode as well.
3972 (get_paths_foreach): Likewise.
3974 * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
3975 documentation about folder mode.
3976 (gtk_file_chooser_get_uri): Likewise.
3978 2004-01-16 Federico Mena Quintero <federico@ximian.com>
3980 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
3981 get_volume_for_path() method.
3982 (struct _GtkFileSystemIface): Finally removed the list_roots() and
3983 get_root_info() methods, and the "roots-changed" signal.
3985 * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
3987 (gtk_file_system_list_roots): Removed.
3988 (gtk_file_system_get_root_info): Removed.
3990 * gtk/gtkfilesystemunix.c
3991 (gtk_file_system_unix_get_volume_for_path): Implement.
3992 (get_root_volume): New helper function.
3993 (gtk_file_system_unix_list_volumes): Use get_root_volume().
3994 (gtk_file_system_unix_list_roots): Removed.
3995 (gtk_file_system_unix_get_root_info): Removed.
3997 * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
3998 accept a NULL root_path.
3999 (struct _GtkFileSystemModel): Add a field to remember the
4001 (_gtk_file_system_model_new): Store the root_path in the model
4003 (find_and_ref_path): Stop going up the hierarchy at the root_path
4004 of the model. Also, don't return prematurely when walking up the
4007 * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4009 (struct _GtkFileChooserDefault): Added a current_volume_path field.
4010 (set_tree_model): New function; create the folder tree model here.
4011 (create_folder_tree): Don't create the model here.
4012 (set_list_model): Set the show_hidden flag on the list model.
4014 Fri Jan 16 00:04:43 2004 Matthias Clasen <maclas@gmx.de>
4016 * gtk/gtknotebook.h:
4017 * gtk/gtknotebook.c (gtk_notebook_append_page):
4018 * gtk/gtknotebook.c (gtk_notebook_append_page_menu):
4019 * gtk/gtknotebook.c (gtk_notebook_prepend_page):
4020 * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu):
4021 * gtk/gtknotebook.c (gtk_notebook_insert_page):
4022 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4023 index of the newly inserted page. (#130986, Olexiy Avramchenko)
4025 Thu Jan 15 23:17:14 2004 Matthias Clasen <maclas@gmx.de>
4027 * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4028 a 'newly-allocated' to hint that the list should be freed after
4031 Wed Jan 14 18:01:52 2004 Jonathan Blandford <jrb@gnome.org>
4033 * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4034 to after handling the button presses in the TreeView to avoid
4035 getting multiple selection_changes()
4037 Wed Jan 14 21:16:20 2004 Matthias Clasen <maclas@gmx.de>
4039 * gtk/gtkimcontext.c: Documentation fix. (#131335, Theppitak
4042 Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de>
4044 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
4045 Don't leak name and stock_id. (#131358, Morten Welinder)
4047 Wed Jan 14 13:07:30 GMT 2004 Tony Gale <gale@gtk.org>
4049 * docs/faq/gtk-faq.sgml: Updates to Section 5
4051 Wed Jan 14 02:34:57 2004 Matthias Clasen <maclas@gmx.de>
4053 * gtk/gtkradioaction.c: Add a writable group property to align
4054 with the GtkRadioButton API. (#129166, Olivier Andrieu)
4056 Tue Jan 13 14:48:27 GMT 2004 Tony Gale <gale@gtk.org>
4058 * docs/faq/gtk-faq.sgml: Update info on using autoconf
4060 Mon Jan 12 23:40:34 2004 Matthias Clasen <maclas@gmx.de>
4062 * tests/testmerge.c: Adjust to the new connect_proxy signals.
4064 * gtk/gtkuimanager.c
4065 * gtk/gtkactiongroup.c
4066 * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4067 from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4068 removes the confusion between the disconnect_/connect_proxy signals
4069 and the (unrelated) virtual functions of the same name and aligns
4070 the setup with the pre_/post_activate signals.
4072 2004-01-12 Jody Goldberg <jody@gnome.org>
4074 * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4075 with no submenus otherwise it looks like we activate every time a
4078 2004-01-12 Jody Goldberg <jody@gnome.org>
4080 * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4082 Sun Jan 11 01:55:07 2004 Matthias Clasen <maclas@gmx.de>
4084 * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff.
4085 (gtk_accel_map_lock_path):
4086 (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4087 entry is silently created during lock_path(), and treated as an error
4088 during unlock_path(). These changes have been requested by Tim Janik.
4090 2004-01-10 Jody Goldberg <jody@gnome.org>
4092 * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4093 s/merge_signals/ui_manager_signals/ for readability.
4094 (gtk_ui_manager_class_init) : add pre_activate and post_activate
4096 (cb_proxy_pre_activate) : new.
4097 (cb_proxy_post_activate) : new.
4098 (gtk_ui_manager_insert_action_group) : connect the proxies for
4099 GtkActionGroup::pre/post_activate
4100 (gtk_ui_manager_remove_action_group) : disconnect them.
4102 * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4103 'sensitive', and 'visible' properties. Also add pre_activate and
4104 post_activate signals to help deal with activations at a higher
4105 level (eg GtkUIManager)
4106 (gtk_action_group_init) : init sensitive and visible
4107 (gtk_action_group_set_property) : add sensitive and visible
4108 (gtk_action_group_get_property) : add sensitive and visible
4109 (gtk_action_group_get_sensitive) : new.
4110 (gtk_action_group_get_visible) : new.
4111 (cb_set_action_sensitivity) : new with minor optimization that only
4112 signals sensitivity changes if the action could possibly change.
4113 (cb_set_action_visiblility) : ditto.
4114 (gtk_action_group_set_sensitive) : new. walk the actions directly
4115 rather than using notify::sensitive because that is simpler, easier
4116 to read, and more efficient.
4117 (gtk_action_group_set_visible) : ditto.
4118 (gtk_action_group_add_action) : Each action can only be in 1 group,
4119 set GtkAction::action_group.
4120 (gtk_action_group_remove_action) : clear it.
4121 (gtk_action_group_add_toggle_actions_full) : warning suppression.
4122 (gtk_action_group_add_radio_actions_full) : warning suppression.
4123 (_gtk_action_group_emit_pre_activate) : new protected routine for use
4125 (_gtk_action_group_emit_post_activate) : ditto.
4127 * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4128 (gtk_action_init) : initialize it.
4129 (gtk_action_get_property) : get.
4130 (gtk_action_set_property) : set it via
4131 (gtk_action_set_action_group) : new function.
4132 (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4133 with the logical sensitivity (action & group) rather than the simple
4134 action::sensitivity.
4135 (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4136 logical visibility (action & group) rather than the simple
4137 action::visible. Use widget show/hide directly.
4138 (connect_proxy) : handle the custom sensitivity handler.
4139 Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4140 directly, with special cases for TOOL_BUTTON. Still not especially
4141 good it might be useful to handle label/use_underline by parmspec
4142 lookup. Those are likely to be implemented by custom types, and are
4143 assumed to exist in GtkToolItem.
4144 (disconnect_proxy) : disconnect the new sensitivity handler.
4145 (_gtk_action_emit_activate) : add pre/post signals.
4146 (gtk_action_activate) : use logical sensitivity.
4147 (gtk_action_is_sensitive) : logical sensitivity.
4148 (gtk_action_get_sensitive) : actual sensitivity.
4149 (closure_accel_activate) : use logical sensitivity.
4151 Fri Jan 9 22:23:45 2004 Matthias Clasen <maclas@gmx.de>
4153 * gtk/gtkuimanager.c: Introduce a new parser state for
4154 accelerator elements to avoid misparsing files containing
4155 such elements. (#131035, Morten Welinder)
4157 Fri Jan 9 11:58:47 2004 Manish Singh <yosh@gimp.org>
4159 * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4161 Fri Jan 9 15:28:21 GMT 2004 Tony Gale <gale@gtk.org>
4163 * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4165 Fri Jan 9 00:34:57 2004 Matthias Clasen <maclas@gmx.de>
4167 * gtk/gtkuimanager.h:
4168 * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4169 obtain a list of toplevel widgets constructed by the ui manager.
4171 * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that
4172 the values can be combined for gtk_ui_manager_get_toplevels().
4174 * tests/testmerge.c: Add a "Dump toplevels" button to test
4175 gtk_ui_manager_get_toplevels().
4177 Wed Jan 7 23:20:06 2004 Matthias Clasen <maclas@gmx.de>
4179 * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4181 * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion
4182 by Anders Carlsson (#130464).
4184 Wed Jan 7 23:07:28 2004 Matthias Clasen <maclas@gmx.de>
4187 * gtk/gtkmain.c (gtk_events_pending): Change the return value from
4188 gint to gboolean. (#130718, reported by Johannes Weißl)
4190 Wed Jan 7 23:03:32 2004 Matthias Clasen <maclas@gmx.de>
4192 * gtk/gtkactiongroup.h:
4193 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
4194 Remove the redundant name and stock_id parameters, adjust all callers.
4196 Wed Jan 7 22:20:20 2004 Matthias Clasen <maclas@gmx.de>
4199 * gtk/gtkaction.c (gtk_action_new):
4200 * gtk/gtktoggleaction.h:
4201 * gtk/gtktoggleaction.c (gtk_toggle_action_new):
4202 * gtk/gtkradioaction.h:
4203 * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation
4204 functions for actions.
4206 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
4207 (gtk_action_group_add_toggle_actions_full):
4208 (gtk_action_group_add_radio_actions_full): and use the
4209 new functions here. (#125322, Patch by Jeff Frank)
4211 Wed Jan 7 21:42:49 2004 Matthias Clasen <maclas@gmx.de>
4213 * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of
4216 2004-01-07 Jan Arne Petersen <jpetersen@uni-bonn.de>
4218 * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4219 (shortcuts_append_home), (shortcuts_append_desktop),
4220 (shortcuts_append_paths), (shortcuts_add_volumes),
4221 (shortcuts_append_bookmarks), (create_shortcuts_model),
4222 (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4223 to the shortcuts_model.
4225 (remove_bookmark_button_clicked_cb),
4226 (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4227 bookmarks can be removed. Fixes #129873
4229 Wed Jan 7 02:50:55 2004 Matthias Clasen <maclas@gmx.de>
4231 * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4232 i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4233 and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats,
4234 respectively. Tests #82203.
4236 2004-01-06 Federico Mena Quintero <federico@ximian.com>
4238 * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4239 0777 as the mode for mkdir() and let the umask do the right
4240 thing. Fixes #121819.
4242 * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4243 can return NULL; handle this. Fixes #129565.
4245 2004-01-06 Alexander Winston <alexander.winston@comcast.net>
4247 * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4248 that proceeded the end-of-sentence punctuation. Fixes: #130353.
4250 2004-01-06 Jody Goldberg <jody@gnome.org>
4252 * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call
4253 gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4255 2004-01-05 Federico Mena Quintero <federico@ximian.com>
4257 * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4258 call shortcuts_add_bookmarks() here.
4259 (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4261 (shortcuts_append_paths): Don't display error dialogs here.
4262 (create_file_list): Remove the @#$% rules hint.
4264 2004-01-05 Federico Mena Quintero <federico@ximian.com>
4266 * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4268 (toolbar_create): Do not use a toolbar widget, just an hbox
4269 instead. Add the bookmarks buttons and the current folder label
4271 (create_filename_entry_and_filter_combo): Create the filter combo
4273 (filter_create): Don't show the filter combo initially.
4274 (up_button_cb): Renamed from toolbar_up_cb().
4275 (create_shortcuts_buttons): Removed.
4277 2004-01-05 Murray Cumming <murrayc@usa.net>
4279 * gdk/gdkimage.h: Added <public> documentation to the struct, as
4280 suggested by Owen Taylor.
4282 2004-01-05 Jody Goldberg <jody@gnome.org>
4284 * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4285 I would have prefered outdent, but compatibility seems more
4287 * gtk/gtkstock.c (builtin_items) : ditto.
4288 * gtk/gtkstock.h : ditto.
4289 * gtk/stock-icons/Makefile.am : ditto.
4290 * gtk/stock-icons/stock_text_indent_16.png :
4291 * gtk/stock-icons/stock_text_indent_24.png :
4292 * gtk/stock-icons/stock_text_unindent_16.png :
4293 * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4295 Sun Jan 4 15:29:04 2004 Soeren Sandmann <sandmann@daimi.au.dk>
4297 * gtk/gtkradiotoolbutton.[ch]
4298 (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4299 group is a GtkRadioButton, not a GtkWidget.
4301 2004-01-04 Hans Breuer <hans@breuer.org>
4303 * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in
4304 gdk_window_set_keep_(above|below) to make DND work again.
4305 Thanks to Alif Wahid for noticing.
4307 * gdk/gdk.def : update externals
4309 * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4311 * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c
4312 gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4313 gtk/stock-icons/stock_harddisk_16.png
4314 gtk/stock-icons/stock_harddisk_24.png
4315 Harddisk stock icons for file system implementations. Beside
4316 FLOPPY and CDROM there is now HARDDISK, probably some
4317 GTK_STOCK_NETWORK would be useful, but I could not find one.
4319 Sat Jan 3 11:39:42 2004 Manish Singh <yosh@gimp.org>
4321 * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4322 Patch from Andrew Moise (#130462).
4324 2004-01-01 Jody Goldberg <jody@gnome.org>
4326 * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4328 (gtk_action_class_init) : here.
4329 (gtk_action_init) : here.
4330 (gtk_action_set_property) : here.
4331 (gtk_action_get_property) : here.
4332 (connect_proxy) : and here.
4334 2003-12-30 Jody Goldberg <jody@gnome.org>
4336 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) : new
4337 utility routine for use in derived GtkActions with the replicated code
4339 (gtk_action_group_add_actions_full) : here.
4340 (gtk_action_group_add_toggle_actions_full) : here.
4341 (gtk_action_group_add_radio_actions_full) : and here.
4343 2004-01-01 Taneem Ahmed <taneem@bengalinux.org>
4345 * configure.in: Added "bn" to ALL_LINGUAS.
4347 2004-01-01 Taneem Ahmed <taneem@bengalinux.org>
4349 * bn.po: Added Bangla translation by
4350 of Ankur group <gnome-translation@bengalinux.org>.
4352 Fri Jan 2 02:50:11 2004 Matthias Clasen <maclas@gmx.de>
4354 * gtk/gtkcalendar.c (gtk_calendar_compute_days):
4355 * gtk/gtkcalendar.c (gtk_calendar_paint_day_names):
4356 * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support
4357 week_start values other than 0 and 1, e.g. 6 will let weeks start
4358 on Saturday. (#130349, Roozbeh Pournader)
4360 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4362 * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4364 Fix to allow reasonable pointer behavior in window mode when an
4365 extended input device reports an incorrect resolution of 0. Fixes
4368 2003-12-31 Christian Neumair <chris@gnome-de.org>
4370 * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4371 * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4374 Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de>
4376 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full):
4377 (gtk_action_group_add_toggle_actions_full):
4378 (gtk_action_group_add_radio_actions_full): Pull accelerator key
4379 from the stock item if stock_id is given, but accelerator
4380 not. (Noticed by Jeff Franks and Jody Goldberg)
4382 * tests/testmerge.c: Remove the accelerator from the "Open" entry
4383 to test the above change.
4385 2003-12-29 Federico Mena Quintero <federico@ximian.com>
4387 Make show_all() work for the extra and preview widgets; reported
4390 * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
4392 (set_extra_widget): show_all() the extra widget.
4394 Mon Dec 29 12:22:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4396 * gtk/gtkuimanager.c (do_updates):
4397 * gtk/gtktoolbar.c (slide_idle_handler):
4398 * gtk/gtkdnd.c (gtk_drag_update_idle):
4400 Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
4401 functions. (#130157, patch from Olexiy Avramchenko).
4403 2003-12-29 Anders Carlsson <andersca@gnome.org>
4405 * gtk/gtkradiotoolbutton.c:
4406 * gtk/gtkradiotoolbutton.h:
4407 * gtk/gtkseparatortoolitem.c:
4408 * gtk/gtkseparatortoolitem.h:
4409 * gtk/gtktoggletoolbutton.c:
4410 * gtk/gtktoggletoolbutton.h:
4413 * gtk/gtktoolbutton.c:
4414 * gtk/gtktoolbutton.h:
4415 * gtk/gtktoolitem.c:
4416 * gtk/gtktoolitem.h:
4417 Update my e-mail address.
4419 Mon Dec 29 01:36:22 2003 Matthias Clasen <maclas@gmx.de>
4421 * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path,
4422 gtk_accel_map_unlock_path): Add a way to lock individual accelerator
4423 paths. (#73207, reported by Havoc Pennington)
4425 Sat Dec 27 23:17:56 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4427 * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
4428 instead of VISIBLE to determine whether we should stop
4429 sliding. (#130018, reported by Christian Persch).
4431 Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de>
4433 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
4434 Don't use first_action without initializing it if n_entries is 0.
4436 Thu Dec 25 00:26:34 2003 Matthias Clasen <maclas@gmx.de>
4438 * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
4439 Add the missing _get_ to the name of the non-Xcursor version of
4440 this function. (noticed by Torsten Schoenfeld)
4442 Tue Dec 23 22:34:50 2003 Manish Singh <yosh@gimp.org>
4444 * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
4447 2003-12-24 Jody Goldberg <jody@gnome.org>
4449 * gtk/gtkactiongroup.h : Add some const to the char * in
4450 GtkActionEntry*. We're reccomending people pass static strings to
4451 them, and not freeing them. This stems to flood of warnings that
4453 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
4454 temp vars to const to match above.
4455 (gtk_action_group_add_toggle_actions_full) : ditto.
4456 (gtk_action_group_add_radio_actions_full) : ditto.
4458 Wed Dec 24 01:12:53 2003 Matthias Clasen <maclas@gmx.de>
4460 * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
4461 gtk_clipboard_request_targets() and
4462 gtk_clipboard_wait_for_targets(). (#101774, Dom Lachowicz)
4464 Mon Dec 22 00:40:39 2003 Matthias Clasen <maclas@gmx.de>
4466 * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use
4467 gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
4468 * gtk/gtkcalendar.c (draw_arrow_left):
4469 (draw_arrow_right): Removed.
4470 * gtk/gtkcalendar.c (gtk_calendar_realize_arrows):
4471 * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
4472 arrow_state to GTK_STATE_INSENSITIVE if the calendar is
4473 insensitive. (#97376)
4475 Sun Dec 21 23:17:01 2003 Matthias Clasen <maclas@gmx.de>
4477 * gtk/gtkuimanager.c (update_node):
4478 (update_smart_separators):
4479 (_gtk_menu_is_empty):
4480 (find_menu_position):
4481 * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy):
4482 * gtk/gtkcombobox.c (gtk_combo_box_relayout_item):
4483 (gtk_combo_box_relayout): Fix memory leaks caused by the
4484 failure to free the result of gtk_container_get_children().
4486 Sun Dec 21 17:34:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
4488 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
4489 properties when the window becomes a toplevel. When a window that
4490 was previously a toplevel becomes a toplevel again, restore its
4491 window type. Also make sure the focus window is removed from the
4492 XID hash when it is destroyed. (#117579, reported by Morten
4493 Welinder, patch reviewed by Owen Taylor).
4495 Sun Dec 21 01:54:40 2003 Matthias Clasen <maclas@gmx.de>
4497 * gtk/gtkmenushell.h:
4498 * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function
4499 to emit the "cancel" signal on a menu shell.
4501 * gtk/gtkmenu.c (gtk_menu_key_press):
4502 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu):
4503 * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the
4504 new function instead of directly emitting the
4505 signal. (#81803, Owen Taylor)
4507 Sun Dec 21 00:39:50 2003 Matthias Clasen <maclas@gmx.de>
4509 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4510 Fix the "language_set" blurb.
4512 Sat Dec 20 22:06:03 2003 Kristian Rietveld <kris@gtk.org>
4514 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
4515 all of treeview when resizing (#110074, patch from Soeren Sandmann).
4517 Fri Dec 19 23:36:00 2003 Kristian Rietveld <kris@gtk.org>
4521 * gtk/gtkcelllayout.[ch]: added a reorder method.
4523 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
4524 (gtk_tree_view_column_cell_layout_reorder): implement reorder.
4526 * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
4527 (gtk_cell_view_cell_layout_reorder): ditto.
4529 * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
4530 (gtk_combo_box_cell_layout_reorder): ditto.
4532 * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
4533 (gtk_entry_completion_reorder): ditto.
4535 Fri Dec 19 22:18:19 2003 Kristian Rietveld <kris@gtk.org>
4537 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
4538 instead of strcmp (#117127, suggestion from Soeren Sandmann).
4540 Fri Dec 19 21:52:46 2003 Kristian Rietveld <kris@gtk.org>
4542 * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
4543 here from gtk_menu_real_insert(),
4544 (gtk_menu_real_insert): just call gtk_menu_do_insert(),
4545 (gtk_menu_reorder_child): run _do_insert after inserting the child
4546 (unbreaks _reorder_child, reported by Tim Janik).
4548 2003-12-19 Federico Mena Quintero <federico@ximian.com>
4550 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
4551 g_date_strftime() for UTF-8 correctness; use Julian dates to
4552 simplify the function.
4554 Fri Dec 19 01:47:34 2003 Matthias Clasen <maclas@gmx.de>
4556 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request):
4557 Test extra_width, not extra_height, when determining whether to
4558 set extra_width. (#129647, Jan Arne Petersen)
4560 Fri Dec 19 01:35:34 2003 Matthias Clasen <maclas@gmx.de>
4562 Fix the behaviour of insensitive actions, which was broken
4563 when gtk_action_activate() was changed to pay attention to
4564 sensitivity (#129557, Christian Persch)
4567 * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
4568 function to emit an activate signal without regard to sensitivity.
4570 * gtk/gtkradioaction.c:
4571 * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
4572 instead of gtk_action_activate().
4574 2003-12-18 Jody Goldberg <jody@gnome.org>
4576 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
4577 to ensure that the base hicolor theme is installed. Silently
4578 failing to produce icons that apps assume exist in the theme seems
4581 Thu Dec 18 19:13:12 2003 Kristian Rietveld <kris@gtk.org>
4583 Fixes #110249, reworked patch from Joshua N Pritikin.
4585 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
4586 (gtk_tree_model_sort_tree_drag_source_init),
4587 (gtk_tree_model_sort_row_draggable),
4588 (gtk_tree_model_sort_drag_data_get),
4589 (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
4591 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
4592 (gtk_tree_model_filter_tree_drag_source_init),
4593 (gtk_tree_model_filter_row_draggable),
4594 (gtk_tree_model_filter_drag_data_get),
4595 (gtk_tree_model_filter_drag_data_delete): ditto.
4597 Thu Dec 18 18:01:01 2003 Kristian Rietveld <kris@gtk.org>
4599 * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
4600 for "*" and "/" (expand/collapse all). (#110195, reported by
4603 Thu Dec 18 17:52:56 2003 Kristian Rietveld <kris@gtk.org>
4605 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4606 clear the extra_attrs list if we set "text" after "markup".
4607 (Fixes #121933, Federico Mena Quintero).
4609 2003-12-18 Alexander Larsson <alexl@redhat.com>
4611 * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
4612 Fix typo that used the wrong x/y values for the x1, y1 point
4615 Thu Dec 18 01:41:50 2003 Kristian Rietveld <kris@gtk.org>
4617 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4618 (gtk_cell_renderer_text_finalize),
4619 (gtk_cell_renderer_text_get_property),
4620 (gtk_cell_renderer_text_set_property), (get_layout): added language
4621 and language_set properties like GtkTextTag has. (#103800, reported
4624 Thu Dec 18 01:37:59 2003 Matthias Clasen <maclas@gmx.de>
4626 * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
4627 * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the
4628 "activate" signal. (#129358, Ka-Hing Cheung)
4630 Thu Dec 18 01:21:59 2003 Kristian Rietveld <kris@gtk.org>
4632 * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
4633 the logical flag backwards in the expand_collapse_cursor_row
4635 (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
4636 flag when !logical and in RTL. (Fixes #107527, reported by
4639 Thu Dec 18 01:10:16 2003 Kristian Rietveld <kris@gtk.org>
4641 * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
4642 editing when activated by the left mouse button. (#106869,
4643 patch from Evan Martin).
4645 Thu Dec 18 00:57:18 2003 Kristian Rietveld <kris@gtk.org>
4647 Migrating all cell renderers to use the new instance private data
4650 * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
4653 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
4654 (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
4655 (set_cell_bg_color), (gtk_cell_renderer_render): remove old
4656 GtkCellRendererInfo handling, migrate to instance private data.
4658 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
4659 (gtk_cell_renderer_text_start_editing): moved focus_out_id
4660 from GtkCellRendererInfo to text renderer private data.
4662 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
4663 (gtk_cell_renderer_pixbuf_class_init),
4664 (gtk_cell_renderer_pixbuf_finalize),
4665 (gtk_cell_renderer_pixbuf_get_property),
4666 (gtk_cell_renderer_pixbuf_set_property),
4667 (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
4668 (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
4669 migrate to instance private data.
4671 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
4672 (gtk_cell_renderer_toggle_get_property),
4673 (gtk_cell_renderer_toggle_set_property),
4674 (gtk_cell_renderer_toggle_render): migrate to instance private data.
4676 Thu Dec 18 00:24:32 2003 Kristian Rietveld <kris@gtk.org>
4678 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4679 (gtk_cell_renderer_text_get_property),
4680 (gtk_cell_renderer_text_set_property), (get_layout): add a
4681 single-paragraph-mode property, use private instance data.
4682 (Fixes #114943, reported by Morten Welinder).
4684 Thu Dec 18 00:07:01 2003 Kristian Rietveld <kris@gtk.org>
4686 * gtk/gtktreemodel.h (gtk_tree_path_new_root),
4687 (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
4688 by Matthias Clasen).
4690 Wed Dec 17 23:50:56 2003 Kristian Rietveld <kris@gtk.org>
4692 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
4693 if we set a new stock_id and there was a previous stock_id, unref
4694 the pixbuf (since it was used to renderer the previous stock_id
4695 and stock_id might have been set to NULL now). (Fixes #122966).
4697 2003-12-17 Marco Pesenti Gritti <marco@gnome.org>
4699 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
4701 Check that index is not bigger than level array length
4702 also when depth is 1. Now get_iter_first correctly return
4703 FALSE when the model is empty (#129411).
4705 Wed Dec 17 23:31:19 2003 Kristian Rietveld <kris@gtk.org>
4707 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
4708 try to strcmp or strlen if we managed to normalize and casefold
4709 the string correctly. Fixes crashes with non-UTF8 strings.
4710 (#121617, Patch from Tim-Philipp Müller).
4712 Wed Dec 17 23:20:23 2003 Matthias Clasen <maclas@gmx.de>
4714 * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
4715 GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
4716 * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c,
4717 gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c,
4718 gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
4719 GSourceFunc instead of GtkFunction. (#129525, Olexiy Avramchenko)
4721 Wed Dec 17 23:16:45 2003 Kristian Rietveld <kris@gtk.org>
4723 * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
4724 (#122727, patch from Kjartan Maraas).
4726 Wed Dec 17 21:23:01 2003 Kristian Rietveld <kris@gtk.org>
4728 Yay! Fixed height mode! Hooray! (Part 2 of #80868).
4730 * gtk/gtktreeview.c (gtk_tree_view_class_init),
4731 (gtk_tree_view_init), (gtk_tree_view_set_property),
4732 (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
4733 fixed_height_mode property,
4734 (intialize_fixed_height_mode), (do_validate_rows),
4735 (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
4736 (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
4737 (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
4738 (gtk_tree_view_insert_column): implement fixed height mode,
4739 (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
4740 (gtk_tree_view_insert_column_with_attributes),
4741 (gtk_tree_view_insert_column_with_data_func): update docs.
4743 * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
4745 2003-12-07 Murray Cumming <murrayc@usa.net>
4747 * gtk/gtktreemodel.c:
4748 (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
4749 Actually call the default signal handlers instead of calling the
4750 marshallers themselves in an endless loop. These default signal handler
4751 callbacks are not actually set so this is only noticed by gtkmm at
4752 the moment. Bug 123923.
4754 2003-12-16 Federico Mena Quintero <federico@ximian.com>
4756 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
4757 "volumes-changed" signal. Added the following methods:
4760 volume_get_base_path
4761 volume_get_is_mounted
4763 volume_get_display_name
4766 * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
4767 "volumes-changed" signal.
4768 (gtk_file_system_list_volumes): New function.
4769 (gtk_file_system_volume_free): New function.
4770 (gtk_file_system_volume_get_base_path): New function.
4771 (gtk_file_system_volume_get_is_mounted): New function.
4772 (gtk_file_system_volume_mount): New function.
4773 (gtk_file_system_volume_get_display_name): New function.
4774 (gtk_file_system_volume_render_icon): New function.
4776 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
4777 (gtk_file_system_unix_volume_get_base_path): Implement.
4778 (gtk_file_system_unix_volume_get_is_mounted): Implement.
4779 (gtk_file_system_unix_volume_mount): Implement.
4780 (gtk_file_system_unix_volume_get_display_name): Implement.
4781 (gtk_file_system_unix_volume_render_icon): Implement.
4783 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4784 Added a field for the "volumes-changed" signal connection.
4785 (gtk_file_chooser_default_set_property): Connect to
4786 "volumes-changed" on the file system.
4787 (gtk_file_chooser_default_finalize): Disconnect from
4790 * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
4792 (shortcuts_get_index): New helper function.
4793 (shortcuts_insert_path): Can now insert volumes as well as paths.
4794 (shortcuts_append_paths): Don't take is_file_system_root.
4795 (shortcuts_add_volumes): New function.
4796 (shortcuts_append_file_system_roots): Removed.
4797 (create_shortcuts_model): Use shortcuts_add_volumes().
4798 (remove_bookmark_button_clicked_cb): Check that the index is
4800 (bookmarks_check_add_sensitivity): Take volumes into account.
4801 (shortcuts_get_selected_index): New helper function.
4802 (remove_bookmark_button_clicked_cb): Use
4803 shortcuts_get_selected_index().
4804 (bookmarks_check_remove_sensitivity): Likewise.
4805 (shortcuts_select_func): Likewise.
4806 (shortcuts_row_activated_cb): Handle volumes as well as normal
4808 (shortcuts_activate_volume): New function.
4809 (struct _GtkFileChooserDefault): Removed the bookmarks_set and
4810 bookmarks_iter fields.
4811 (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
4812 (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
4813 (remove_bookmark_rows): Removed.
4814 (shortcuts_add_bookmarks): New function; moved most of the code
4815 over from shortcuts_append_bookmarks().
4816 (shortcuts_append_bookmarks): Add the separator node here, and
4817 then call shortcuts_add_bookmarks().
4819 Tue Dec 16 15:01:10 2003 Manish Singh <yosh@gimp.org>
4821 * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
4822 (G_OS_UNIX/G_OS_WIN32 stuff)
4824 Tue Dec 16 01:46:46 2003 Matthias Clasen <maclas@gmx.de>
4826 Do not interpret distant clicks as double-clicks (#116541,
4829 * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
4830 double_click_distance, button_x and button_y.
4831 * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
4834 * gdk/gdkevents.c (gdk_display_set_double_click_distance):
4835 New function to set the double click distance on a display.
4837 * gdk/gdkevents.c: Take double click distance into account
4838 when generating single, double or triple clicks.
4840 * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
4842 * gdk/x11/gdkevents-x11.c: Add the XSetting
4843 "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
4845 2003-12-15 Federico Mena Quintero <federico@ximian.com>
4847 * gtk/gtkdialog.c: Sigh, revert the change.
4849 2003-12-15 Federico Mena Quintero <federico@ximian.com>
4851 * gtk/gtkdialog.c (dialog_has_cancel): Removed.
4852 (gtk_dialog_close): Don't call dialog_has_cancel(). At least
4853 allows sane behavior for #101293.
4855 Mon Dec 15 00:56:54 2003 Matthias Clasen <maclas@gmx.de>
4857 * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
4858 getter and setter gtk_button_[sg]et_alignment(), to set the
4859 alignment of the child. (#70961, Jody Goldberg)
4861 2003-12-14 Hans Breuer <hans@breuer.org>
4863 * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
4864 similar as the other filesystem placement 'constants' (dynamic
4867 * gtk/gtkfilechooserwidget.c : handle file system to win32
4868 renaming here as will
4869 * gtk/gtkfilesystemwin32.c : implement render_icon
4871 * gtk/gtk.def gdk/gdk.def : updated externals
4873 * gdk/win32/gdkdisplay-win32.c : make it compile without
4874 <multimon.h> - i.e. even older sdk
4876 * gdk/win32/gdkevents-win32.c : match resize_timer_proc
4877 with TIMERPROC prototype
4879 * gdk/win32/gdkwindow-win32.c : older msvc does not know
4880 BITMAPV5HEADER (from win xp) either
4882 * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
4885 * tests/testfilechooser.c : recent GLib crashes on
4886 g_print ("%s", NULL) so avoid this
4888 2003-12-14 Tor Lillqvist <tml@iki.fi>
4890 * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
4891 followed by calls to CloseClipboard(). Add a missing call to
4892 CloseClipboard(). Found by Adam Wright, fixes #104944. Use
4893 API_CALL macro in more places.
4895 2003-12-14 Tor Lillqvist <tml@iki.fi>
4899 * gdk/gdkdisplaymanager.c: Mark default_display static.
4901 * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
4903 * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
4906 * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
4907 --gdk-debug=events. In general, output just one line of debugging
4908 output for each Windows message, plus one line for each GDK event
4909 generated. Indent all lines according to window procedure nesting
4912 (inner_window_procedure): Rename from real_window_procedure.
4914 (find_real_window_for_grabbed_mouse_event): Don't get misled when
4915 the point is in the non-client (decoration) area of the window
4916 returned by WindowFromPoint(). Return the root window in that
4919 (build_pointer_event_state): Test also MK_XBUTTON1 and
4920 MK_XBUTTON2 (buttons 4 and 5).
4922 (synthesize_enter_event): Track the mouse leaving the window in
4923 the event being generated, not the one mentioned in the Windows
4926 (propagate): Test for NULL parent earlier. Improves event
4927 generation from a grabbed pointer. Part of fix for #107320.
4929 (handle_stuff_while_moving_or_resizing): New function, to
4930 dispatch the main loop (once).
4932 (resize_timer_proc): New function, set to be called by an inerval
4933 timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
4935 (gdk_event_translate): Drop unused return_exposes parameter.
4937 Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
4939 On WM_SYSKEYUP, generate a key release event also for just the Alt
4942 On WM_MOUSELEAVE, generate a leave event of type
4943 GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
4944 top-level window, and left the app completely.
4946 On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
4947 calls resize_timer_proc() at regular intervals. On
4948 WM_EXITSIZEMOVE, kill the timer.
4950 On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
4951 and dispatch the main loop (by calling
4952 handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
4955 * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
4956 also wintab messages.
4958 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
4959 Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
4960 the window's owner. Fixes #118093, reported by Maxime Romano.
4962 Tue Dec 8 09:41:00 2003 Tim Evans <t.evans@aranz.com>
4964 * gdk/win32/gdkwindow-win32.[ch]: Implement
4965 gdk_window_set_icon_list() for Win32, with support for big and
4966 small icons and support for alpha-channel icons under Windows
4967 XP. Replaces the previous implementation of gdk_window_set_icon().
4970 Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
4972 * gdk/x11/gdkprivate-x11.h:
4974 * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
4975 Rename from _gdk_x11_register_event_type(), added API docs.
4976 * gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
4977 * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
4978 all callers. (#121471, Bill Haneman)
4980 Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
4982 * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
4983 of gc is ignored. (#101983, Sebastian Rittau)
4985 Sat Dec 13 16:13:27 2003 Kristian Rietveld <kris@gtk.org>
4987 A trick for a faster treeview, step 1. Patch to short circuit
4988 _build_tree(), inspired by Jonathan (#80868).
4990 * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
4992 (gtk_tree_view_build_tree): don't even try to recurse when the
4993 model says that it is a list, remove flag unsetter,
4994 (gtk_tree_view_set_model): change flag setting logic.
4996 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
4997 propagate whether or not the child model has _IS_LIST set.
4999 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5002 Sat Dec 13 02:33:17 2003 Matthias Clasen <maclas@gmx.de>
5004 * gtk/gtkrange.c (gtk_range_scroll): Undo the last change,
5005 since it broke logical keynav.
5006 * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5007 direction in inverted scrollbars here instead.
5009 Sat Dec 13 00:39:24 2003 Matthias Clasen <maclas@gmx.de>
5011 * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5012 "gravity" for RTL mode in a better way: Keep the distance from
5013 the upper end of the page to the upper bound constant. This also
5014 fixes problems with the initial position of the viewport in RTL
5017 Fri Dec 12 21:00:12 2003 Kristian Rietveld <kris@gtk.org>
5019 Combo box flipping support.
5021 * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5022 (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5023 patch from Matthias Clasen),
5024 (gtk_combo_box_popup): fix popup window alignment if there's a
5025 cell view frame visible (#126518, patch from Semion Chichelnitsky).
5027 * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5028 (#128348, patch from Semion Chichelnitsky).
5030 Fri Dec 12 01:13:34 2003 Matthias Clasen <maclas@gmx.de>
5032 * examples/gtkdial/gtkdial.c:
5033 * examples/menu/menu.c:
5034 * examples/scribble-xinput/scribble-xinput.c:
5035 * examples/progressbar/progressbar.c:
5036 * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5037 in examples. (#129074, Olexiy Avramchenko)
5038 * examples/calendar/Makefile:
5039 * examples/rangewidgets/Makefile:
5040 * examples/menu/Makefile: Allow deprecated functions in
5041 examples which use deprecated widgets.
5043 Fri Dec 12 00:43:16 2003 Matthias Clasen <maclas@gmx.de>
5045 * gdk/gdk.c (gdk_threads_set_lock_functions):
5046 * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5048 Fri Dec 12 00:05:31 2003 Matthias Clasen <maclas@gmx.de>
5050 * gtk/gtkrange.c (gtk_range_scroll): Fix direction of
5051 steppers in inverted scrollbars. (#129084, Olexiy Avramchenko)
5053 Thu Dec 11 23:50:30 2003 Matthias Clasen <maclas@gmx.de>
5055 * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't
5056 unnecessarily reserve space for arrows in RTL mode. (#129075,
5057 Semion Chichelnitsky)
5059 Thu Dec 11 00:35:12 2003 Matthias Clasen <maclas@gmx.de>
5061 Changes to allow "no input" windows (#64613):
5063 * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5066 * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5069 * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5070 and gtk_window_get_focus() and gtk_window_set_focus().
5072 * gdk/win32/gdkwindow-win32.c (gdk_window_new):
5073 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
5074 * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5075 Initialize the accept_focus field to TRUE.
5077 * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus):
5078 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus):
5079 * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus):
5080 Implementations for the various backends. The Win32 and linux-fb
5081 implementations set the accept_focus field, but don't use it yet
5082 to actually implement noinput windows. The X implementation updates
5083 the WM_HINTS to select the globally active input model (see the
5084 ICCCM) if accept_focus is FALSE.
5086 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5087 WM_TAKE_FOCUS message if accept_focus is FALSE.
5089 2003-12-10 Federico Mena Quintero <federico@ximian.com>
5091 * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5092 Added toolbar items for the filter separator and the filter item.
5093 (toolbar_create): Add the filter widgets here.
5094 (filter_create): Renamed from create_filter(). Don't store the
5095 alignment in the impl structure, just return it.
5096 (toolbar_show_filters): New function.
5097 (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5098 (gtk_file_chooser_default_remove_filter): Likewise.
5099 (gtk_file_chooser_default_constructor): Don't create the filter
5101 (struct _GtkFileChooserDefault): Added a field for a current
5103 (gtk_file_chooser_default_constructor): Create the folder label.
5104 (gtk_file_chooser_default_set_current_folder): Set the current
5107 * tests/testfilechooser.c (main): Dramatically improved the
5108 usability of the extra widget through careful word choice.
5110 2003-12-10 Mark McLoughlin <mark@skynet.ie>
5112 * gdk/gdk.h: include gdkspawn.h.
5114 2003-12-10 Mark McLoughlin <mark@skynet.ie>
5116 * gdk/linux-fb/gdkspawn-fb.c,
5117 gdk/win32/gdkspawn-win32.c,
5118 gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5119 s/gdk_spawn/gdk_spawn_on_screen/.
5121 2003-12-10 Mark McLoughlin <mark@skynet.ie>
5123 Utility functions for multi-screen applications which need
5124 to ensure launched applications appear on a certain screen.
5127 * gdk/gdkspawn.h: header for multi-screen launching
5130 * gdk/Makefile.am: install gdkspawn.h.
5132 * gdk/x11/Makefile.am:
5133 * gdk/x11/gdkspawn-x11.c:
5134 (gdk_spawn_make_environment_for_screen): private function
5135 to create an environment vector with DISPLAY set appropriately
5137 (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5138 (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5139 (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5141 * gdk/linux-fb/Makefile.am,
5142 gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5144 * gdk/win32/Makefile.am,
5145 gdk/win32/gdkspawn-win32.c: win32 impl.
5147 2003-12-09 Federico Mena Quintero <federico@ximian.com>
5149 * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5150 rather than "Username's Home" (#125964).
5151 (shortcuts_selection_changed_cb): New callback, check the
5152 sensitivity of the Remove Bookmark button at the right time.
5153 (shortcuts_row_activated_cb): It is not necessary to check the
5156 Wed Dec 10 00:06:24 2003 Matthias Clasen <maclas@gmx.de>
5158 Improve the GDK API for dealing with group leaders (#119375):
5161 * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to
5162 get the group leader of a toplevel window as a GdkWindow.
5165 * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New
5166 function to get the default group leader as a GdkWindow.
5168 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5169 the GdkWindow of the default group leader.
5171 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5172 for the default group leader.
5174 2003-12-09 Noah Levitt <nlevitt@columbia.edu>
5177 * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5178 Ukrainian_GHE_WITH_UPTURN. (#128529)
5180 2003-12-08 Jan Arne Petersen <jpetersen@uni-bonn.de>
5182 * gtk/gtkfilechooserdefault.c:
5183 (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5184 behavior of the GtkFileSelection to determine selected paths in
5185 single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5187 2003-12-08 Federico Mena Quintero <federico@ximian.com>
5189 * gtk/gtkfilechooserdefault.c
5190 (gtk_file_chooser_default_get_paths): Don't declare the closure
5192 (get_paths_foreach): Likewise.
5194 Tue Dec 9 00:12:36 2003 Matthias Clasen <maclas@gmx.de>
5196 * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g.
5198 2003-12-08 Tor Lillqvist <tml@iki.fi>
5200 * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5201 with MSVC and old headers. (#126933, John Ehresman)
5203 Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com>
5205 * === Released 2.3.1 ===
5207 * NEWS: Updates for 2.3.1
5209 * configure.in: Version 2.3.1, interface age 0, binary age 301.
5211 * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5212 Rename from gtk_menu_item_real_can_activate_accel() to
5213 match GTK+ convention, improve comment.
5215 * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5216 can ::can-activate-accel signal.
5218 * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5221 * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean
5224 * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5227 Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com>
5229 * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5230 missing 'else'. (#128816, Jorn Baayen)
5232 2003-12-02 Michael Meeks <michael@ximian.com>
5234 Based on a patch by Martin Kretzschmar; #122448
5236 * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5237 implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5238 (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5239 function pointers. Deprecate the global gdk_threads_mutex variable.
5241 * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5242 extracted from GTK_THREADS_ENTER/LEAVE macros.
5243 (gdk_threads_init): init gtk_threads_[un]lock if not set.
5244 (gdk_threads_set_lock_functions): impl.
5246 * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5248 Sun Dec 7 23:45:40 2003 Matthias Clasen <maclas@gmx.de>
5250 * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5251 icon_theme_builtin_icons hasn't been initialized. (#128726, Diego
5254 2003-12-07 Tor Lillqvist <tml@iki.fi>
5256 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5257 return value from SendMessage(WM_SETICON). That is the old
5258 icon. Fixes GDI resource leak. (#128559, Tim Evans)
5260 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5261 have a pointer grab active with a grab cursor set, destroy that
5262 cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5264 2003-12-05 Paisa Seeluangsawat <paisa@users.sf.net>
5266 * configure.in: Added Thai (th) to ALL_LINGUAS.
5268 Sat Dec 6 01:42:04 2003 Matthias Clasen <maclas@gmx.de>
5270 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5271 RTL flipping for GtkAlignment. (#127585)
5273 Sat Dec 6 01:13:09 2003 Matthias Clasen <maclas@gmx.de>
5275 * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the
5276 popup window when in RTL mode. (#127578)
5278 Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
5280 * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5281 Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5282 before doing anything to prevent garbage returns.
5284 Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de>
5286 * gtk/gtkviewport.c: Implement RTL flipping for
5287 GtkViewport: Adjust the "gravity" when resizing
5288 This is a bit flickery in RTL mode. (#107526)
5290 Sat Dec 6 00:22:14 2003 Matthias Clasen <maclas@gmx.de>
5292 * gtk/gtkscrolledwindow.c: Implement RTL flipping for
5293 GtkScrolledWindow: the vertical scrollbar shows up on the left
5294 side in RTL mode. (#107526)
5296 Fri Dec 5 01:58:33 2003 Matthias Clasen <maclas@gmx.de>
5298 * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5299 tabs displayed at the top/bottom are rearranged, and tabs on
5300 the left/right are displayed at the opposite edge. (#96630)
5302 2003-12-04 Mark McLoughlin <mark@skynet.ie>
5304 * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5305 gtk_label_set_attributes() take NULL. See bug #128517.
5307 2003-12-03 Federico Mena Quintero <federico@ximian.com>
5309 * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5311 (completion_idle_callback): Use a temporary list store and re-set
5312 it on the completion rather than modifying the old one. We are
5313 re-reading the folder anyway, and this gets rid of non-atomicity
5316 2003-12-01 Federico Mena Quintero <federico@ximian.com>
5318 Decouple impl->current_folder from the selection in the folder
5319 tree. This is so that going to /home/federico/.foo (e.g. from a
5320 bookmark) will work even if show_hidden == FALSE. The folder tree
5321 needs to be fixed in this case to show such folders explicitly.
5323 * gtk/gtkfilechooserdefault.c
5324 (gtk_file_chooser_default_set_current_folder): When changing
5325 folders, do the entry and list model work here, instead of
5326 tree_selection_changed().
5327 (struct _GtkFileChooserDefault): Added a changing_folder flag
5329 (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5331 Tue Dec 2 01:01:54 2003 Matthias Clasen <maclas@gmx.de>
5333 * gtk/gtkiconfactory.h: Remove duplicate declaration of
5334 gtk_icon_source_set_icon_name(). (#Jeff Franks, #128269)
5336 2003-12-01 Federico Mena Quintero <federico@ximian.com>
5338 Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5339 bookmarks buttons with the location entry.
5341 * gtk/gtkfilechooserdefault.c
5342 (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5343 bookmarks buttons and the location entry.
5345 2003-12-01 Federico Mena Quintero <federico@ximian.com>
5347 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5348 shortcuts tree as a drag destination.
5349 (shortcuts_drag_data_received_cb): New callback.
5350 (get_file_info): Also fetch information on whether the file is a folder.
5351 (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5352 (error_could_not_add_bookmark_dialog): New function.
5353 (shortcuts_add_bookmark_from_path): New helper function.
5354 (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5355 (shortcuts_row_activated): We no longer need the changing_folder flag.
5356 (struct _GtkFileChooserDefault): Likewise.
5358 Sun Nov 30 17:31:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5360 * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5361 disappearing placeholders that are still visible.
5363 * gtk/gtktoolbar.c: formatting fixes
5365 * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5366 disappearing, for placeholders that are going to disappear.
5368 * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5370 Sat Nov 29 00:55:28 2003 Jonathan Blandford <jrb@gnome.org>
5372 * gtk/gtktreeview.c (gtk_tree_view_new_column_width):
5373 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5374 Patch from <chinen@jp.ibm.com> to handle RTL support for column
5377 Fri Nov 28 00:26:24 2003 Matthias Clasen <maclas@gmx.de>
5379 * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize):
5380 Don't use freed memory. (#127698, Taavi Talvik)
5382 Fri Nov 28 00:09:10 2003 Matthias Clasen <maclas@gmx.de>
5384 * gtk/gtkfilechooserentry.c: Remove debug g_print()s.
5386 Thu Nov 27 22:17:50 2003 Matthias Clasen <maclas@gmx.de>
5388 * gtk/gtkuimanager.c: Remove debug define.
5390 Thu Nov 27 16:19:03 2003 Tim Janik <timj@gtk.org>
5392 * gtk/gtkmenu.c: allow accel activation depending on sensitivity
5393 and the attach widget.
5395 * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
5396 sensitivity and the parent menu.
5398 * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
5399 checks whether accelerators may activate a widget. the default handler
5400 demands the widget be sensitive and visible+viewable.
5402 * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
5404 Tue Nov 25 00:10:05 2003 Matthias Clasen <maclas@gmx.de>
5406 * gtk/gtkuimanager.c (update_node): Don't show accelerators in
5407 popup menus. (#127227)
5409 Mon Nov 24 13:47:39 GMT 2003 Tony Gale <gale@gtk.org>
5411 * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
5413 Mon Nov 24 04:05:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5415 * gtk/gtkradiotoolbutton.[ch]
5416 (gtk_radio_tool_button_new_from_widget): Make this function take a
5417 GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
5420 Mon Nov 24 02:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5422 * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
5424 Mon Nov 24 02:19:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5426 * gtk/gtktoolbar.c: remove variable
5427 n_overflowed_menu_items_when_dnd_started
5429 Mon Nov 24 01:47:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5431 Rework sliding algorithm.
5432 - No more weird jumping when items are dragged off and added to
5434 - More natural item movement
5436 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
5437 function is now responsible for calculating intermediate positions
5438 during item sliding. It is also responsible for starting sliding
5439 if items disappear. Also turn off expanding when there is an
5441 (gtk_toolbar_begin_sliding, stop_sliding): New functions.
5442 (slide_idle_handler): New function. All the sliding is now done by
5443 gtk_toolbar_size_allocate(), so the idle handler now just checks
5444 if there is more sliding to be done.
5445 (compute_intermediate_allocation, position): new functions
5446 calculating intermediate steps in the slide animations. The new
5447 animation algorithm uses a constant speed instead of a constant
5448 must-be-finished-within time.
5449 (struct _ToolbarContent): use
5450 GtkAllocation goal_allocation; and
5451 GtkAllocation start_allocation; instead of
5452 gint start/goal_width;
5454 * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
5457 Sun Nov 23 22:26:25 2003 Matthias Clasen <maclas@gmx.de>
5459 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip
5460 positioning Xinerama-aware. (#127332)
5462 Fri Nov 21 01:57:21 2003 Matthias Clasen <maclas@gmx.de>
5464 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
5465 boundaries visible in fake Xinerama mode.
5467 Thu Nov 20 15:41:56 2003 Manish Singh <yosh@gimp.org>
5469 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
5470 for the gtk_widget_hide() call.
5472 Thu Nov 20 14:51:41 2003 Jonathan Blandford <jrb@redhat.com>
5474 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
5475 from David Hampton to fix sorting on booleans.
5477 Thu Nov 20 15:48:03 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5479 * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
5480 instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
5481 by Frederic Crozat).
5483 Thu Nov 20 13:10:29 GMT 2003 Tony Gale <gale@gtk.org>
5485 * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
5487 2003-11-19 Federico Mena Quintero <federico@ximian.com>
5489 Fixes to problems reported by Iain Holmes:
5491 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
5492 throw up an error dialog if the desktop doesn't exist.
5493 (error_message): Handle the case where there is no real toplevel
5496 (list_model_filter_func): Always let folders pass through (patch
5499 Wed Nov 19 23:19:23 2003 Kristian Rietveld <kris@gtk.org>
5501 * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
5502 to a somewhat more logical place,
5503 (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
5505 Wed Nov 19 22:15:01 2003 Kristian Rietveld <kris@gtk.org>
5507 * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
5508 the popup when it is visible, popdown when there are less chars
5509 than the minimum key length in the entry,
5510 (gtk_entry_completion_changed): popdown when the entry is empty.
5512 * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
5513 size request of the vscrollbar to (-1, 0), to get a nicely sized
5514 completion treeview (Fixes #126573, reported by Piers Cornwell),
5515 (_gtk_entry_completion_resize_popup): show/hide the action_view
5518 2003-11-19 Federico Mena Quintero <federico@ximian.com>
5520 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
5521 off the dialog's separator (thanks to Iain Holmes).
5523 Wed Nov 19 18:15:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5525 * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
5526 * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
5527 on items that have a submenu. (#120104).
5529 Wed Nov 19 18:11:08 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5531 * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
5532 "ItemState" field indicating the overflowed-ness etc. of the item.
5533 (gtk_toolbar_size_allocate): update the field here.
5535 2003-11-19 Federico Mena Quintero <federico@ximian.com>
5537 * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
5538 to the alignment. Use the HIG-specified spacing between the
5539 filter label and the combo.
5540 (create_filename_entry): Use HIG-specified spacing between the
5541 location label and the entry.
5542 (gtk_file_chooser_default_constructor): Don't use vertical padding
5543 around the filename entry.
5545 2003-11-19 Federico Mena Quintero <federico@ximian.com>
5547 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5548 render_icon virtual method.
5550 * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
5552 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
5553 Implement as a stub for now.
5555 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
5556 gtk_file_system_render_icon().
5557 (list_icon_data_func): Likewise.
5558 (toolbar_create): Set the toolbar style to icons only.
5560 * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
5563 Wed Nov 19 02:18:37 2003 Matthias Clasen <maclas@gmx.de>
5565 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call
5566 gtk_widget_hide(menu) when reattaching the menu. (#126057)
5568 Wed Nov 19 00:06:04 2003 Kristian Rietveld <kris@gtk.org>
5570 * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
5571 only unselect all items if the treeview has focus. (Fixes bug
5572 reported by Marco Pesenti Gritti).
5574 Tue Nov 18 22:26:30 2003 Kristian Rietveld <kris@gtk.org>
5576 * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
5577 number of actions is "matches + actions - 1". (Fixes #126572).
5579 Tue Nov 18 21:05:05 2003 Christian Persch <chp@cvs.gnome.org>
5581 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
5582 mem leaks (#119435).
5584 Tue Nov 18 20:51:38 2003 Kristian Rietveld <kris@gtk.org>
5586 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
5587 try to fetch the child back, since we do know that it is already
5588 gone by now (#126493, Marco Pesenti Gritti).
5590 Tue Nov 18 19:47:59 2003 Kristian Rietveld <kris@gtk.org>
5592 Fixes based on comments from Owen Taylor, #125264.
5594 * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
5596 (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
5598 (gtk_cell_view_get_size_of_row): new function,
5599 (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
5600 (gtk_cell_view_set_values), (gtk_cell_view_set_model),
5601 (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
5602 s/cellview/cell_view/ in the function definitions, so they match
5603 with the header file.
5605 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
5606 flag again (:, and use gtk_cell_view_get_size_of_row instead of
5607 the measurer, remove _set_size_request call,
5608 (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
5609 instead of the measurer,
5610 (gtk_combo_box_style_set): queue a resize,
5611 (gtk_combo_box_size_request): update of _remeasure call,
5612 (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
5613 (gtk_combo_box_cell_layout_pack_end),
5614 (gtk_combo_box_cell_layout_clear),
5615 (gtk_combo_box_set_model): get rid of the measurer,
5616 (gtk_combo_box_cell_layout_add_attribute),
5617 (gtk_combo_box_cell_layout_set_cell_data_func),
5618 (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
5619 resize instead of calling _remeasure.
5621 Mon Nov 17 16:25:04 2003 Manish Singh <yosh@gimp.org>
5623 * gdk-pixbuf/Makefile.am
5624 * modules/input/Makefile.am: Use install-data-hook for
5625 gdk-pixbuf.loaders and gtk.immodules install generation targets.
5628 * gtk/gtkexpander.h: Apply missing declarations from #124449.
5630 Tue Nov 18 00:12:55 2003 Matthias Clasen <maclas@gmx.de>
5632 Fix for #119555, Peter Zelezny:
5634 * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
5635 * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
5636 by removing the _ prefix.
5637 * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
5638 gdk/gdkwindow.c: Adjust all callers.
5640 Mon Nov 17 23:36:02 2003 Matthias Clasen <maclas@gmx.de>
5642 * gtk/gtkaction.c (gtk_action_activate): Only activate if
5643 the action is sensitive. (#127187, Christian Persch)
5645 Mon Nov 17 23:23:49 2003 Matthias Clasen <maclas@gmx.de>
5647 * gtk/gtkcombobox.c: Add mouse wheel support. (#126517)
5649 Mon Nov 17 22:56:09 2003 Kristian Rietveld <kris@gtk.org>
5651 * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
5653 * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
5654 mapped, else resize_popup.
5656 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
5657 (_gtk_entry_completion_popup): moved all popup resizing code to
5658 _gtk_entry_completion_resize_popup, and show the window when there
5659 are more than zero items in the completion list again (sigh).
5661 2003-11-17 Mark McLoughlin <mark@skynet.ie>
5663 Patch from Jaiserca <jaiserca@inf.upv.es> to add a
5664 "use_markup" property. See bug #124449.
5666 * gtk/gtkexpander.c:
5667 (gtk_expander_class_init),
5668 (gtk_expander_init), (gtk_expander_set_property),
5669 (gtk_expander_get_property), (gtk_expander_set_label),
5670 (gtk_expander_set_use_markup), (gtk_expander_get_use_markup):
5671 Add a "use_markup" property and use it when creating the
5674 Mon Nov 17 12:58:32 2003 Kristian Rietveld <kris@gtk.org>
5676 Temporary size requisition fix. Will fix it for real tonight.
5678 * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
5679 (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
5680 a good width for the child,
5681 (gtk_combo_box_cell_layout_add_attribute),
5682 (gtk_combo_box_set_cell_data_func),
5683 (gtk_combo_box_cell_layout_clear_attributes): update.
5685 Mon Nov 17 00:11:21 2003 Kristian Rietveld <kris@gtk.org>
5687 Fixes #124373, Murray Cumming.
5689 * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
5690 is no longer construct only,
5691 (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
5692 (gtk_combo_box_menu_fill): new functions,
5693 (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
5694 (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
5695 (gtk_combo_box_list_destroy): updated,
5696 (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
5698 (gtk_combo_box_set_model): is now public, updated,
5699 (gtk_combo_box_get_model): small update.
5701 * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
5702 text_column property is no longer construct only,
5703 (gtk_combo_box_entry_set_text_column): now public,
5704 (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
5705 new/changed functions.
5707 * tests/testcombo.c: updated.
5709 Sun Nov 16 22:50:58 2003 Matthias Clasen <maclas@gmx.de>
5711 Reinstate fixes for (#124212, Marco Pesenti Gritti):
5713 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
5714 warnings for popups.
5715 (_gtk_menu_is_empty): Return FALSE for non-menus.
5717 Sun Nov 16 21:48:40 2003 Kristian Rietveld <kris@gtk.org>
5719 * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
5720 gtk_cell_view_cell_layout_clear instead of trying to free the
5721 structure ourselves here. (#125726, Morten Welinder).
5723 Sun Nov 16 00:35:29 2003 Matthias Clasen <maclas@gmx.de>
5725 * gtk/gtkfilechooser.[hc]:
5726 * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
5729 2003-11-15 Hans Breuer <hans@breuer.org>
5731 * gdk/makefile.msc gdk/gdk.def
5732 gtk/gtk.def gtk/makefile.msc.in : updated
5733 * tests/makefile.msc : added all the new tests
5735 * gtk/gtkfilefilter.c(finalize) : initialize filter
5736 from object not from itself
5738 * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
5739 modified as less as posible to have aworking implementation
5740 on win32. There maybe the desire to merge the unchanged pats into
5741 a common base class.
5742 Also implemented a simple glib based bookmark handling, which
5743 is currently missing in gtkfilesystemunix.[hc] but can be copied
5745 * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
5747 * gdk/win32/gdkwindow-win32.c : implement
5748 gdk_window_set_keep_above() and gdk_window_set_keep_below()
5750 * tests/testmerge.c : don't include unistd.h unconditionally,
5751 #define STDOUT_FILENO if it isn't defined
5753 * tests/testfilechooser.c : make it compile on win32
5755 2003-11-15 Tor Lillqvist <tml@iki.fi>
5757 * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
5758 maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
5760 Thu Nov 13 12:55:29 GMT 2003 Tony Gale <gale@gtk.org>
5762 * docs/faq/gtk-faq.sgml: Update the rest of Section 2
5764 Thu Nov 13 01:46:32 2003 Matthias Clasen <maclas@gmx.de>
5766 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use
5767 GTK_DATADIR/{icons,pixmaps} instead of
5768 GTK_DATA_PREFIX/{icons,pixmaps}. (#123365, Marco Pesenti Gritti)
5770 Wed Nov 12 21:40:10 2003 Matthias Clasen <maclas@gmx.de>
5772 Changes to improve menu positioning on Xinerama (#108328, #126150):
5774 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event
5775 window of the menuitem to determine the monitor. This fixes some
5777 * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
5778 to store the monitor on which the menu is to be positioned.
5780 * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
5781 in the GtkMenuPrivate struct and fetch the monitor geometry after
5782 calling the position_func, in case it has been changed.
5784 * gtk/gtkmenu.c (gtk_menu_set_monitor): New function
5785 to be used in GtkMenuPositionFunc implementations for setting
5786 the monitor_num field in GtkMenuPrivate.
5788 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call
5789 gtk_menu_set_monitor.
5791 Wed Nov 12 21:00:10 2003 Matthias Clasen <maclas@gmx.de>
5793 * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
5794 label for the empty list. String change. (#95446, Tomas Ögren)
5796 Wed Nov 12 20:57:50 2003 Matthias Clasen <maclas@gmx.de>
5798 * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
5799 the definition of the values. (#123361, Marco Pesenti Gritti)
5801 Wed Nov 12 20:54:02 2003 Matthias Clasen <maclas@gmx.de>
5803 * gdk/gdkkeyuni.c: Map KP_Separator to ','.
5804 (#122941, Egmont Koblinger)
5806 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
5808 *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
5809 opacity entry widget. Change tooltip for opacity widgets. (#126426)
5811 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com>
5813 * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
5814 affect window menu position when popped from keyboard. (#102660)
5816 Wed Nov 12 01:29:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
5818 * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
5819 are using the old API, make all items "is_important". That way
5820 BOTH_HORIZ will continue to show both icon and label in old API
5823 Mon Nov 10 00:40:41 2003 Matthias Clasen <maclas@gmx.de>
5825 * gtk/gtkeventbox.c (gtk_event_box_set_above_child):
5826 Remember the new value in all cases. (#126276, Damon Chaplin)
5828 Sat Nov 8 23:06:02 2003 Matthias Clasen <maclas@gmx.de>
5830 * demos/gtk-demo/main.c (row_activated_cb): Call the do_
5831 functions with the toplevel as argument.
5833 * demos/gtk-demo/geninclude.pl.in: Change the signature
5834 of GDoDemoFunc to take a widget argument
5836 * demos/gtk-demo/ui_manager.c (do_ui_manager):
5837 * demos/gtk-demo/tree_store.c (do_tree_store):
5838 * demos/gtk-demo/textview.c (do_textview):
5839 * demos/gtk-demo/stock_browser.c (do_stock_browser):
5840 * demos/gtk-demo/sizegroup.c (do_sizegroup):
5841 * demos/gtk-demo/pixbufs.c (do_pixbufs):
5842 * demos/gtk-demo/panes.c (do_panes):
5843 * demos/gtk-demo/menus.c (do_menus):
5844 * demos/gtk-demo/list_store.c (do_list_store):
5845 * demos/gtk-demo/images.c (do_images):
5846 * demos/gtk-demo/hypertext.c (do_hypertext):
5847 * demos/gtk-demo/editable_cells.c (do_editable_cells):
5848 * demos/gtk-demo/drawingarea.c (do_drawingarea):
5849 * demos/gtk-demo/dialog.c (do_dialog):
5850 * demos/gtk-demo/colorsel.c (do_colorsel):
5851 * demos/gtk-demo/changedisplay.c (do_changedisplay):
5852 * demos/gtk-demo/button_box.c (do_button_box):
5853 * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
5854 as argument, and make new windows or dialogs appear on the
5855 same screen. (#80388)
5857 Sat Nov 8 21:59:30 2003 Matthias Clasen <maclas@gmx.de>
5859 * gtk/gtkeventbox.c (gtk_event_box_class_init): Let
5860 visible-window default to TRUE, as documented and
5861 implemented. (#126270 Damon Chaplin)
5863 Sat Nov 8 01:50:17 2003 Matthias Clasen <maclas@gmx.de>
5865 * gtk/gtkicontheme.c:
5866 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new):
5867 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new):
5868 * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
5871 2003-11-07 Federico Mena Quintero <federico@ximian.com>
5873 Changing GtkFileChooserEntry to use GtkEntryCompletion.
5875 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
5876 a GtkListStore for the completion list. Create a
5877 GtkEntryCompletion and attach it to the chooser entry.
5878 (gtk_file_chooser_entry_finalize): Unref the completion store.
5879 (completion_match_func): New callback for the GtkEntryCompletion.
5880 (completion_idle_callback): Fill the completion store with filenames.
5882 Fri Nov 7 22:55:49 2003 Matthias Clasen <maclas@gmx.de>
5884 * gtk/gtkwindow.c (gtk_window_set_role):
5885 * gtk/gtkwindow.c (gtk_window_set_title):
5886 * gtk/gtkwidget.c (gtk_widget_set_name):
5887 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title):
5888 * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
5889 safe for self-assignment. (#122745, Soeren Sandmann)
5891 Thu Nov 6 20:41:40 2003 Matthias Clasen <maclas@gmx.de>
5893 * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
5894 (#126369, Olexiy Avramchenko)
5896 Thu Nov 6 00:21:41 2003 Matthias Clasen <maclas@gmx.de>
5898 * gtk/gtkcolorbutton.c (gtk_color_button_init):
5899 * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the
5900 consistency of titles. (#126193, Damon Chaplin)
5902 Wed Nov 5 22:49:36 2003 Matthias Clasen <maclas@gmx.de>
5904 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off
5905 menus to be transient for the toplevel they were torn off from.
5906 (gtk_menu_get_toplevel): Auxiliary function to find the
5907 toplevel of a menu. (#54775, Jon-Kare Hellan)
5909 Wed Nov 5 21:07:58 2003 Matthias Clasen <maclas@gmx.de>
5911 * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
5912 min-position and max-position. (#58431, Padraig O'Briain)
5914 Wed Nov 5 21:02:26 2003 Matthias Clasen <maclas@gmx.de>
5916 * gtk/gtkcolorsel.c (update_color):
5917 (make_label_spinbutton):
5918 (adjustment_changed): Change the ranges for Saturation and
5919 Value to be 0-100 instead of 0-255, since these axes of HSV
5920 are usually expressed in percent. (#121519, Gregory Merchan)
5922 Wed Nov 5 08:51:48 GMT 2003 Tony Gale <gale@gtk.org>
5924 * docs/faq/gtk-faq.sgml: More 2.x updates
5926 Tue Nov 4 15:00:33 GMT 2003 Tony Gale <gale@gtk.org>
5928 * docs/faq/gtk-faq.sgml: More 2.x updates, fix
5929 pkg-config command error, update copyright.
5931 2003-11-03 Federico Mena Quintero <federico@ximian.com>
5933 * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
5934 well. Use a helper function.
5935 (shortcuts_append_home): Display an error box if necessary.
5936 (shortcuts_append_desktop): Likewise.
5937 (add_bookmark_button_clicked_cb): Likewise.
5938 (gtk_file_chooser_default_select_path): Likewise.
5939 (entry_activate): Likewise.
5940 (shortcuts_append_paths): New helper function.
5941 (shortcuts_append_file_system_roots): Use
5942 shortcuts_append_paths().
5943 (shortcuts_append_bookmarks): Likewise.
5945 Mon Nov 3 23:12:41 2003 Matthias Clasen <maclas@gmx.de>
5947 * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if
5949 (update_smart_separators): Remove some unneeded ifs.
5951 Mon Nov 3 22:45:58 2003 Matthias Clasen <maclas@gmx.de>
5953 * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make
5954 these usable in C++. Forgot this file in my Oct 11 commit.
5956 2003-11-03 Federico Mena Quintero <federico@ximian.com>
5958 * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
5959 icon to the "Add bookmark" button.
5961 * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
5962 * gtk/gtkfilesystemmodel.c: Likewise.
5963 * gtk/gtkfilechooser.c: Likewise.
5964 * gtk/gtkfilechooserdefault.c: Likewise.
5966 Mon Nov 3 20:56:28 2003 Matthias Clasen <maclas@gmx.de>
5969 * gdk/gdkinternals.h:
5970 * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
5971 GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
5972 Xinerama mode when no actual Xinerama setup is found.
5974 2003-11-03 Federico Mena Quintero <federico@ximian.com>
5976 * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
5977 (create_shortcuts_tree): Don't call the above.
5978 (bookmarks_changed_cb): Likewise.
5979 (tree_selection_changed): Unselect everything from the shortcuts
5980 list. This is the behavior that Mac OS has.
5981 (toolbar_add_item): Return the item.
5982 (toolbar_create): Store the up_button in the impl structure.
5983 (toolbar_check_sensitivity): New function to set the sensitivity
5984 of the "Up" button in the toolbar.
5985 (tree_selection_changed): Call toolbar_check_sensitivity().
5987 2003-11-02 Federico Mena Quintero <federico@ximian.com>
5989 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
5990 not set a border width for the toplevel container.
5991 (toolbar_create): New function; create a simple toolbar for the
5993 (gtk_file_chooser_default_constructor): Use a spacing of 12 for
5994 the table, as per the HIG.
5995 (gtk_file_chooser_default_init): Likewise, for the default
5996 implementation's vbox.
5998 * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
5999 note that NULL is a valid return value for the parent path.
6001 Sat Nov 1 14:59:27 2003 Owen Taylor <otaylor@redhat.com>
6003 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated):
6004 Change on activation, not selection change (temporary
6005 workaround for #125955, needed for keynav, likely
6006 the right UI anyways.)
6008 * gtk/gtkfilechooserdefault.c (shortcuts_select_func):
6009 Don't allow the separator node to be selected.
6011 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6012 Set the focus chain so that the entry gets focused first.
6013 (Not really right after initial focusing, maybe we
6014 should just have a gtk_file_chooser_focus_entry() that
6015 we call from gtk_file_chooser_dialog on creation.)
6017 Sat Nov 1 12:41:04 2003 Owen Taylor <otaylor@redhat.com>
6019 * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6020 residual call to gtk_window_get_private().
6022 Sat Nov 1 09:10:13 2003 Owen Taylor <otaylor@redhat.com>
6024 * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6025 into GtkWindowPrivate structure, fixing ABI breakage
6026 on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6027 to instance-private-data.
6029 Fri Oct 31 02:43:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6031 * gtk/gtktoolbar.c (get_item_requisition): delete this function
6032 (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6033 instead of re-calculating for each item.
6034 (gtk_toolbar_size_allocate): Update comments
6036 Thu Oct 30 22:04:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6038 * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6039 placeholders when include_internals is TRUE.
6041 Thu Oct 30 17:57:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6043 * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6044 item 0 is a placeholder. (#125826)
6045 * tests/testtoolbar.c: add an assertion that
6046 gtk_toolbar_get_nth_item (0) != NULL
6048 Thu Oct 30 17:40:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6050 * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6051 logical == 0.(#125826)
6053 Thu Oct 30 16:20:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6055 * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6056 return the index of a real item.
6057 (get_nth_item) assert that the returned items is not a
6058 placeholder. (#125826, Marco Pesenti Gritti).
6060 2003-10-29 Federico Mena Quintero <federico@ximian.com>
6062 * gtk/gtkcellrendererseptext.c
6063 (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6064 text is NULL, rather than also doing it if it is an empty string.
6066 Wed Oct 29 15:40:26 2003 Owen Taylor <otaylor@redhat.com>
6068 * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6069 gtk_message_dialog_new_with_format): Allow NULL
6070 for message_format, as described in the docs and
6071 as worked previously. (#125759, Richard Hult)
6073 * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6074 Use g_markup_vprintf_escaped() to escape arguments.
6076 * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6077 so there is some way to set literal markup.
6079 Wed Oct 29 15:01:32 2003 Owen Taylor <otaylor@redhat.com>
6081 * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6082 the call to gdk_error_trap_pop() to the right place,
6083 fixing a problem where we'd pop() too many times
6084 when bailing out. (#123302, Thomas Leonard)
6086 Wed Oct 29 12:50:02 2003 Owen Taylor <otaylor@redhat.com>
6088 * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
6089 Fix infinite recursion. (#125679, Christian Persch)
6091 Wed Oct 29 13:29:15 GMT 2003 Tony Gale <gale@gtk.org>
6093 * docs/faq/gtk-faq.sgml: further 2.x updates:
6094 mirrors,compiling,g_main_context_iteration
6096 Wed Oct 29 02:54:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6098 * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6099 function; remove gtk_toolbar_highlight_drop_location() and
6100 gtk_toolbar_unhighlight_drop_location().
6102 Also fix bug where the number of overflowed items were miscounted.
6104 Tue Oct 28 12:20:16 2003 Owen Taylor <otaylor@redhat.com>
6106 * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6107 some accidentally committed duplicate code.
6109 Tue Oct 28 17:06:17 GMT 2003 Tony Gale <gale@gtk.org>
6111 * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6113 Tue Oct 28 10:34:24 2003 Owen Taylor <otaylor@redhat.com>
6115 * gtk/gtkwindow.[ch] (gtk_window_is_active,
6116 gtk_has_toplevel_focus): Add getters corresponding to
6117 the is_active and has_toplevel_focus properties.
6120 2003-10-28 Mark McLoughlin <mark@skynet.ie>
6122 * gtk/gtkexpander.c:
6123 (gtk_expander_class_init): hook up the destroy handler.
6124 (gtk_expander_destroy), (gtk_expander_unrealize):
6125 remove the expand/collapse timeout on destroy instead
6126 of unrealize to avoid leaving the expander in a inconsistent
6127 state when unrealizing during animation.
6128 (gtk_expander_start_animation): remove realized check.
6129 (gtk_expander_set_expanded): if the widget isn't realized,
6132 Tue Oct 28 09:44:16 2003 Owen Taylor <otaylor@redhat.com>
6134 * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6135 do nothing when recipient is NULL, as described in the
6136 doc comment. (#123107, Thomas Leonard)
6138 Tue Oct 28 09:21:29 2003 Owen Taylor <otaylor@redhat.com>
6140 * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6141 rewrite docs, mention memory management for the return
6142 value. (Partly addresses #125549, Michael Natterer)
6144 2003-10-28 Padraig O'Briain <padraig.obriain@sun.com>
6146 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6147 Change index to filter_index to fix compilation error.
6149 * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6151 Mon Oct 27 15:47:58 2003 Manish Singh <yosh@gimp.org>
6153 * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6154 we have RandR support, for XRRUpdateConfiguration declaration.
6156 * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6159 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6160 length a gsize variable, since that's what g_file_get_contents()
6163 Mon Oct 27 12:18:49 2003 Owen Taylor <otaylor@redhat.com>
6165 * NEWS: Fix attribution for above/below EWMH work.
6167 Sat Oct 25 23:30:13 2003 Matthias Clasen <maclas@gmx.de>
6169 * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name"
6170 as a construct-only property. (#125475, Murray Cumming)
6172 Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6174 Fix bug 116297 and 125472
6176 * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6177 this function take an index and a GtkToolItem.
6179 * tests/testtoolbar.c (main): Make "Show Arrow" default to
6180 true. Make one of the separators !draw and expand.
6181 Update for new highlight_drop_location() API.
6183 * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6185 * gtk/gtktoolbar.h: Formatting fixes.
6187 * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6188 separator tool items to expand.
6189 (logical_to_physical, physical_to_logical): Fix off-by-one errors
6190 (Fix #125472, Marco Pesenti Gritti)
6192 * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6193 (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6194 return FALSE, not TRUE.
6195 (gtk_separator_too_item_{set|get}_property,
6196 (gtk_separator_tool_item_{set|get}_draw): new functions
6198 Fri Oct 24 16:54:04 2003 Owen Taylor <otaylor@redhat.com>
6200 * === Released 2.3.0 ===
6202 * configure.in: Remove a stray comma.
6204 * README.in: Fix a few notes about Xft 1 and pango-1.0.
6206 * NEWS: Finish updates for 2.3.0.
6208 * po/Makefile.in.in: Update to latest GLib version.
6210 Fri Oct 24 20:31:35 2003 Kristian Rietveld <kris@gtk.org>
6212 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6213 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6214 gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6215 under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6218 Fri Oct 24 20:22:40 2003 Kristian Rietveld <kris@gtk.org>
6220 * gtk/gtktreemodelfilter.h: add padding to the class structure.
6222 2003-10-23 Federico Mena Quintero <federico@ximian.com>
6224 * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6225 (gtk_file_chooser_remove_filter): Likewise.
6226 (gtk_file_chooser_select_all): Added docs.
6227 (gtk_file_chooser_unselect_all): Likewise.
6229 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6231 * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6233 Thu Oct 23 23:22:15 2003 Matthias Clasen <maclas@gmx.de>
6235 * gtk/gtkfilefilter.c:
6236 * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6238 Thu Oct 23 22:33:47 2003 Matthias Clasen <maclas@gmx.de>
6240 * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6242 Thu Oct 23 21:49:05 2003 Matthias Clasen <maclas@gmx.de>
6244 * NEWS: Remove a few duplicates, group the menu changes.
6246 Thu Oct 23 21:12:50 2003 Kristian Rietveld <kris@gtk.org>
6248 * NEWS: Updates for 2.3.0; changed header to match the style we used
6251 Thu Oct 23 20:47:44 2003 Matthias Clasen <maclas@gmx.de>
6253 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6254 assign the new leader. (#125168, Mariano Suarez-Alvarez)
6256 Thu Oct 23 20:21:16 2003 Kristian Rietveld <kris@gtk.org>
6258 * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6259 gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6260 gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6262 Thu Oct 23 15:13:56 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6264 * NEWS: Partial update for 2.3.0.
6266 Thu Oct 23 01:09:04 2003 Owen Taylor <otaylor@redhat.com>
6268 * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6271 Wed Oct 22 23:20:04 2003 Owen Taylor <otaylor@redhat.com>
6273 * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
6274 gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6275 gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6276 Basic framework for the new file selector widget.
6278 * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
6279 gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6280 Initial implementation of the GtkFileChooser user interface.
6282 * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6285 * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6286 for freedesktop.org MIME system on Unix.
6288 * tests/testfilechooser.c: Test program for GtkFileChooser
6290 * tests/prop-editor.c: Add support for properties on interfaces.
6292 Tue Oct 21 16:12:51 2003 Owen Taylor <otaylor@redhat.com>
6294 * demos/gtk-demo/menus.c (do_menus): Fix some unused
6297 * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6300 Thu Oct 23 00:04:50 2003 Matthias Clasen <maclas@gmx.de>
6302 * NEWS: Partial update for 2.3.0.
6304 Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
6306 * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6307 ctrl_pressed and shift_pressed according to the current event
6308 state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6310 Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
6312 * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6313 timeout when the user pressed on Enter/ESC. Fixes the bug where the
6314 completion popup popped up after the user pressed on Enter (which is
6315 just weird). Reported by the Epiphany people (all of them).
6317 Mon Oct 20 20:27:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6319 Add support for OS X like sliding of toolbar items during drag and
6320 drop, (#110919, Dave Bordoley)
6322 Make dnd highlighting the responsibility of the
6323 application. (Fixes #116298, Owen Taylor)
6325 * gtk/gtktoolbar.h: Add prototypes for new API.
6328 (physical_to_logical, logical_to_physical): new functions
6329 converting between "position including placeholders" and "position
6330 excluding placeholders".
6331 (gtk_toolbar_class_init): remove drag_leave and drag_motion
6333 (struct _ToolbarContent): new struct containing information
6334 related to toolbar items.
6335 (gtk_toolbar_highlight_drop_location): new public function
6336 (gtk_toolbar_unhighlight_drop_location): new public function
6338 * tests/testtoolbar.c
6339 (toolbar_drag_motion, toolbar_drag_leave): new functions
6340 (main): connect to dnd signals. Make the "New" item expand to
6341 make drag and drop more exciting.
6343 Wed Oct 15 22:39:23 2003 Kristian Rietveld <kris@gtk.org>
6345 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6346 _set_active, not _set_active_item.
6348 Wed Oct 15 22:31:09 2003 Kristian Rietveld <kris@gtk.org>
6350 * gtk/gtkcombobox.h: add padding to the class structure.
6351 * gtk/gtkcomboboxentry.h: ditto.
6352 * gtk/gtkentrycompletion.h: ditto.
6354 Wed Oct 15 22:04:59 2003 Kristian Rietveld <kris@gtk.org>
6356 * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6357 (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6358 value and what it means.
6360 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6361 item to -1 (default),
6362 (gtk_combo_box_entry_active_changed): do nothing when the index is
6365 Tue Oct 14 16:10:21 2003 Jonathan Blandford <jrb@redhat.com>
6367 * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6368 to set the active row by iter.
6370 * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6371 to get the active row by iter.
6373 2003-10-13 Federico Mena Quintero <federico@ximian.com>
6375 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6376 operations on windows if the tree view is not mapped.
6377 (gtk_tree_view_button_press): Compare equal types of pointers, not
6378 GtkWidget* vs. GtkTreeView*.
6380 Mon Oct 13 21:01:43 2003 Kristian Rietveld <kris@gtk.org>
6382 * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
6383 the reset of first_sel_changed, as after the first popup the treeview
6384 will always have a row selected and will thus not focus_to_cursor.
6386 * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
6387 whether the keyval should move the completion selection cursor (used
6388 to avoid ending up with extreme cluttered code), also added
6389 all KP_ equivalents of the keys here,
6390 (gtk_entry_completion_key_press): Keynav tweaks based on comments
6391 from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
6392 as possible current selection, implement Home/End keys, modified
6393 the down key to stop cycling. Maybe page up/down should be implemented
6396 Mon Oct 13 20:58:07 2003 Matthias Clasen <maclas@gmx.de>
6398 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work
6399 as documented when pixmap or mask is NULL. (#124081)
6401 Mon Oct 13 20:21:38 2003 Kristian Rietveld <kris@gtk.org>
6403 * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
6404 I was adding the signal block/unblock code. Oops. (Noticed by
6405 Marco Pesenti Gritti).
6407 Mon Oct 13 20:21:55 2003 Kristian Rietveld <kris@gtk.org>
6409 * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
6410 (set_interp_type), (main): port over from option menu to GtkComboBox.
6412 Mon Oct 13 19:41:55 2003 Kristian Rietveld <kris@gtk.org>
6414 * tests/testmenus.c: Still uses option menus, so turn off
6415 GTK_DISABLE_DEPRECATED.
6417 Sun Oct 12 01:10:29 2003 Matthias Clasen <maclas@gmx.de>
6419 * gtk/gtkalignment.[hc]:
6420 * gtk/gtkcombobox.[hc]:
6421 * gtk/gtkcomboboxentry.[hc]:
6422 * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
6423 from header to implementation.
6425 Sun Oct 12 00:18:02 2003 Matthias Clasen <maclas@gmx.de>
6427 * tests/testtreeview.c:
6428 * demos/testpixbuf-scale.c:
6429 * tests/prop-editor.c: These files still use option menus,
6430 so turn off GTK_DISABLE_DEPRECATED to fix the build.
6432 Sat Oct 11 23:14:36 2003 Matthias Clasen <maclas@gmx.de>
6434 * gtk/gtkactiongroup.h:
6436 * gtk/gtkradioaction.h:
6437 * gtk/gtkradiotoolbutton.h:
6438 * gtk/gtkseparatortoolitem.h:
6439 * gtk/gtktoggleaction.h:
6440 * gtk/gtktoolitem.h:
6441 * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make
6442 these usable in C++. (#124351, Murray Cumming)
6444 Sat Oct 11 19:09:05 2003 Kristian Rietveld <kris@gtk.org>
6446 * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
6447 non-NULL before accessing it. Oops.
6449 Sat Oct 11 15:47:03 2003 Kristian Rietveld <kris@gtk.org>
6451 * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
6452 (gtk_entry_completion_insert_action_text),
6453 (gtk_entry_completion_insert_action_markup): the gchar* parameters
6454 should be const (pointed out by both Marco Pesenti Gritti and
6455 Murray Cumming (#124356).
6457 Sat Oct 11 15:37:19 2003 Kristian Rietveld <kris@gtk.org>
6459 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
6460 child list mode, allocate the height allocation->height to the
6461 button instead of the height requested by the button. (Tiny
6462 size allocation screwup noticed by Macro Pesenti Gritti).
6464 Sat Oct 11 15:23:27 2003 Kristian Rietveld <kris@gtk.org>
6466 Fixes based on comments from Marco Pesenti Gritti.
6468 * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
6469 signal handler, avoids the completion popup to popup when text is
6470 set programmatically in most cases (we actually have to handle this
6471 in the _editable functions as well, but that will break popping up
6472 when the user actually typed something :),
6473 (gtk_entry_completion_key_press): when handling enter, bail out
6474 when nothing has been selected,
6475 (gtk_entry_completion_changed): don't popdown when the entry content
6478 * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
6479 (gtk_entry_completion_selected_changed): unselect_all on the
6480 first selected changed signal. Avoids having a default row selected,
6481 (_gtk_entry_completion_popup): don't select the first row by default.
6483 * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
6484 first_sel_changed field.
6486 Fri Oct 10 23:02:58 2003 Matthias Clasen <maclas@gmx.de>
6488 * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager
6489 in the intro (again).
6491 Fri Oct 10 22:50:05 2003 Matthias Clasen <maclas@gmx.de>
6493 Fixes for (#124212, Marco Pesenti Gritti):
6495 * gtk/gtkuimanager.c (update_smart_separators): Don't spit
6496 warnings for popups.
6497 (_gtk_menu_is_empty): Return FALSE for non-menus.
6499 Fri Oct 10 19:10:12 2003 Kristian Rietveld <kris@gtk.org>
6501 * gtk/gtkcombo.h: Deprecate.
6502 * gtk/gtkoptionmenu.h: Ditto.
6504 * gtk/gtkcombobox.c (gtk_combo_box_size_request),
6505 (gtk_combo_box_size_allocate): Rework, things behave better now. Still
6506 needs some work on requesting enough size when taking the items in
6507 the list into account.
6509 * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
6511 * gtk/gtkinputdialog.c: ditto.
6512 * gtk/gtkitemfactory.c: ditto.
6513 * gtk/gtkoptionmenu.c: ditto.
6515 * demos/gtk-demo/menus.c: remove the option menu.
6516 * demos/gtk-demo/sizegroup.c: replace the option menus with
6518 * demos/gtk-demo/textview.c: ditto.
6519 (A general GtkComboBox demo will be added later on).
6521 Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
6523 * demos/gtk-demo/ui_manager.c (activate_radio_action): New
6524 callback to propertly report radio actions.
6526 * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
6528 Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
6530 * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
6531 version in in the right field of the _XEMBED_INFO property.
6532 (#123885, Denis Mikhalkin)
6534 Mon Oct 6 14:18:47 2003 Jonathan Blandford <jrb@redhat.com>
6536 * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
6537 the child if we have one.
6539 (gtk_expander_button_release): use
6540 gtk_widget_activate instead.
6542 Mon Oct 6 21:05:46 2003 Matthias Clasen <maclas@gmx.de>
6544 * gtk/gtktable.c (gtk_table_class_init): Start the blurb for
6545 "right_attach" with a capital. (#123945, Christian Rose)
6547 Sun Oct 5 23:59:03 2003 Matthias Clasen <maclas@gmx.de>
6549 * tests/testsocket.c (child_read_watch): Remove an
6550 extraneous unref. (#122336, Frederic Crozat)
6552 Sun Oct 5 22:38:22 2003 Matthias Clasen <maclas@gmx.de>
6554 * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim
6555 whitespace in "visible-window" blurb. (#123910, Christian Rose)
6557 Sun Oct 5 00:53:15 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6559 * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
6560 focus arrow before pack_end items (#123851, Matthias Clasen)
6562 Fri Oct 3 20:50:48 2003 Kristian Rietveld <kris@gtk.org>
6564 * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
6565 on ->priv->cell_view if ->priv->cell_view is non-NULL.
6567 * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
6568 field to GtkComboBoxEntryPrivate,
6569 (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
6570 (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
6571 (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
6572 a construct-only "text_column" property and reorder code to use it
6573 and support inheriting this widget.
6575 Thu Oct 2 23:28:02 2003 Kristian Rietveld <kris@gtk.org>
6577 * gtk/gtkcombobox.c: Added API doc comments.
6579 * gtk/gtkcomboboxentry.c: Ditto.
6581 2003-10-02 Matthias Clasen <maclas@gmx.de>
6583 * gtk/gtktoggleaction.c: Documentation tweaks.
6585 Wed Oct 1 22:43:40 2003 Kristian Rietveld <kris@gtk.org>
6587 * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
6588 packing/attribute/cell data functions from the header,
6589 (gtk_cell_view_set_cell_data): added support for cell data funcs.
6591 * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
6592 packing/attribute/cell data functions from the header, implemented
6593 cell data func support.
6595 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
6596 for the move to GtkCellLayout.
6598 * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
6600 2003-10-01 Matthias Clasen <maclas@gmx.de>
6602 * gtk/gtkaction.c (gtk_action_class_init):
6603 (gtk_action_[gs]et_property): Introduce a separate
6604 "hide_if_empty" property for empty menu handling.
6605 (_gtk_action_sync_menu_visible): ...and use it here.
6607 * tests/testmerge.c (main): ...and here.
6609 * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc
6610 comments to pacify gtk-doc.
6612 * gtk/gtkmain.c: Doc formatting tweaks.
6614 * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
6616 * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
6617 Use the same parameter names as in .c file, to pacify gtk-doc.
6619 * gtk/gtktoggletoolbutton.[hc]:
6620 * gtk/gtktoolbutton.[hc]:
6621 * gtk/gtktoolitem.[hc]:
6622 * gtk/gtktoolbar.[hc]:
6623 * gtk/gtkcolorbutton.[hc]:
6624 * gtk/gtkfontbutton.[hc]:
6625 * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
6626 source, not in the header.
6628 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
6629 Document these as 2.4 API additions.
6631 Tue Sep 30 23:42:56 2003 Kristian Rietveld <kris@gtk.org>
6633 * gtk/gtkentry.c (gtk_entry_set_completion),
6634 (gtk_entry_get_completion): Add API doc comments.
6636 * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
6638 Tue Sep 30 23:12:34 2003 Kristian Rietveld <kris@gtk.org>
6640 * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
6642 Tue Sep 30 22:59:58 2003 Kristian Rietveld <kris@gtk.org>
6644 * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
6646 * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
6648 2003-09-30 Matthias Clasen <maclas@gmx.de>
6651 * tests/testmerge.c: Test handling of empty menus.
6653 * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
6654 whether a menu is empty. Used in gtkaction.c.
6655 (update_smart_separators): Also update the visibility of empty menus.
6656 (update_node): When creating a new menu proxy, insert an "Empty" menu
6657 item which only gets shown if the menu is empty.
6659 * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
6660 "is_important" for menu proxies.
6661 (_gtk_action_sync_menu_visible): New function to sync the visibility
6662 of menu proxies. Used in gtkuimanager.c.
6663 (gtk_action_sync_visible): New function to sync the visibility of
6666 Tue Sep 30 21:43:34 2003 Kristian Rietveld <kris@gtk.org>
6668 * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
6669 popup_in_progress to TRUE,
6670 (gtk_combo_box_menu_show): and back to FALSE here; the menu now
6671 won't disappear on the first button release. (Reported by Matthias
6674 Tue Sep 30 21:08:43 2003 Kristian Rietveld <kris@gtk.org>
6676 * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
6678 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
6679 Marco Pesenti Gritti).
6681 2003-09-30 Murray Cumming <murrayc@usa.net>
6683 * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
6684 instead of a GdkWindow*, because that what it is given. The
6685 documentation was already correct. This should cause no API/ABI
6686 breakage with C compilers.
6687 * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c,
6688 gtkcellrenderertogger.c: Updated the declarations of the render vfunc
6689 implementation accordingly.
6691 2003-09-30 Matthias Clasen <maclas@gmx.de>
6693 * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
6694 "direction-changed" and "keys-changed" signals.
6696 * gdk/gdkscreen.c (gdk_screen_class_init): Document the
6697 "size-changed" signal.
6699 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init):
6700 Document the "display-opened" signal.
6702 * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
6703 (gdk_display_class_init): Document the "closed" signal.
6705 Sat Sep 27 16:02:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6707 * gtk/gtktextview.[ch]: rename property tab_moves_focus to
6708 accepts_tab. (#122709 again).
6710 2003-09-27 Matthias Clasen <maclas@gmx.de>
6712 * gtk/gtkwindow.c (gtk_window_new):
6713 * gtk/gtkitemfactory.c (gtk_item_factory_new): Document
6714 the fact that the newly created object does not come with
6715 a floating reference. (#103068, patch by Frederic Lespez)
6717 * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor
6718 of GtkUIManager. Just leave GtkTranslateFunc undeprecated,
6719 since GtkActionGroup uses it.
6721 * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
6722 this test uses the soon-to-be-deprecated GtkItemFactory.
6724 * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
6725 remove item_factory.c
6727 * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c
6728 using GtkUIManager instead of GtkItemFactory.
6730 * tests/testmerge.c: Demonstrate the use of the
6731 connect-proxy signal.
6733 * gtk/gtkaction.c (connect_proxy): Add connect-proxy and
6734 disconnect-proxy signals to do small customizations
6735 like displaying tooltips in the statusbar without
6736 custom actions. (#122894, Philip Langdale)
6738 * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
6740 Fri Sep 26 23:49:44 2003 Kristian Rietveld <kris@gtk.org>
6742 Landing the new ComboBox. Note that only gtkcombobox.h and
6743 gtkcomboboxentry.h are public.
6745 * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6746 gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
6748 * gtk/Makefile.am, gtk/gtk.h: adding the new files.
6750 * tests/testcombo.c: and a new test.
6752 * tests/Makefile.am: adding the new test.
6754 2003-09-25 Tor Lillqvist <tml@iki.fi>
6756 * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
6758 2003-09-21 Tor Lillqvist <tml@iki.fi>
6760 * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
6761 function. Code split out from gdk_event_translate(). Needed
6762 because gdk_event_get_graphics_expose() couldn't do anything
6763 sensible otherwise. (Not that I think graphics exposes work anyway
6764 in gdk/win32, but at least now the code could work.)
6766 (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
6767 gdk_event_translate(), which couldn't have worked as it doesn't
6768 take any pre-allocated GdkEvent parameter any longer.
6770 (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
6771 GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
6773 2003-09-24 Matthias Clasen <maclas@gmx.de>
6775 * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
6778 * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
6780 * gtk/gtkuimanager.c (update_node): Don't complain about missing
6781 actions on popups. Re-set "tooltip" property on toolitems after
6782 adding them to parent to trigger proxy update.
6784 2003-09-22 Matthias Clasen <maclas@gmx.de>
6786 * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
6787 group member to test the fix for #122904.
6789 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
6790 Add the action to the group before activating it, otherwise we
6791 may end up with multiple active group members. (#122904, Marco
6794 2003-09-21 Matthias Clasen <maclas@gmx.de>
6796 Changes to make cross-process merging feasible:
6798 * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
6799 merged UI definition. Remove the "changed" signal, since its role
6800 is now filled by "notify::ui". Instead add a "actions-changed" signal
6801 which gets emitted when the set of actions changes.
6803 * gtk/gtktoggleactionprivate.h:
6804 * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
6805 Add a "draw_as_radio" property to toggle actions so that they can be
6806 used as proxies for radio actions much like the "draw_as_radio"
6807 property on check menu items enables them to operate as proxies for
6810 Prevent the "show_all" trap for action-based menus (see
6811 http://mail.gnome.org/archives/gtk-devel-list/2003-September/
6814 * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
6815 calls from static functions.
6817 * gtk/gtkuimanager.c (update_node):
6818 * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
6819 widgets whose visibility is externally controlled.
6821 * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
6822 "no_show_all" property with setter and getter. When TRUE, it keeps
6823 gtk_widget_{hide,show}_all() from modifying the visibility of the
6824 widget and its children.
6826 Sun Sep 21 23:13:37 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6828 * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
6830 2003-09-20 Tor Lillqvist <tml@iki.fi>
6832 * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
6833 including editor backup files. List files we want explicitly.
6835 * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
6836 calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
6837 LC_ALL, LC_CTYPE and LANG environment variables, than calls
6838 g_win32_getlocale().
6840 (gtk_get_default_language): Code snippet moved to above function,
6843 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
6844 * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
6845 _gtk_get_lc_ctype() instead of setlocale().
6847 Fri Sep 19 18:15:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6849 * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
6852 Fri Sep 19 13:24:54 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6854 * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
6855 documentation. (#117306, Steve Chaplin)
6857 2003-09-19 Tor Lillqvist <tml@iki.fi>
6859 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
6860 present on the US-International keyboard. For clarity, order
6861 keysyms in case statement according to numeric value.
6863 (gdk_keymap_translate_keyboard_state): Handle Caps Lock
6864 correctly. (#120176, Ken Rastatter and Owen Taylor)
6866 2003-09-18 Matthias Clasen <maclas@gmx.de>
6868 * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
6869 unref a closure, not g_object_unref(). (#122637, Marco Pesenti Gritti)
6871 Install accelerators on actions, not on proxies, support
6872 accelerator-only actions:
6874 * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
6875 and its lock status either via _gtk_widget_get_accel_path() or by
6876 looking at the accel_path stored in the menu item itself and determining
6877 its lock status by peeking into the contained accel label. This was
6878 already (accidentally) committed a week ago.
6880 * gtk/gtkaction.h (gtk_action_set_accel_group):
6881 (gtk_action_[dis]connect_accelerator): New functions.
6883 * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
6884 accel_closure and accel_count. We must have a reference to the
6885 accel_group, since we need it in connect_proxy. The count is necessary
6886 to ensure that the accelerator isn't removed before the last proxy
6887 requesting it has been unmerged.
6888 (connect_proxy): Connect the accelerator to the
6889 action now, only set the accel_path on the menuitem.
6890 (remove_proxy): Disconnect the accelerator from the action, not from
6892 (gtk_action_set_accel_group): Set the accel group.
6893 (gtk_action_[dis]connect_accelerator): Count the number of times
6894 this functions have been called and install/remove the accelerator if
6895 the count leaves/reaches zero.
6897 * gtk/gtkuimanager.h (GtkUIManagerItemType): Add
6898 GTK_UI_MANAGER_ACCELERATOR.
6900 * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
6901 (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
6902 <accelerator> elements.
6903 (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
6904 type is GTK_UI_MANAGER_ACCELERATOR.
6905 (update_node): Set the accel group on actions before creating their
6906 proxies. Don't set the accel group on created menus. For
6907 NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
6908 (print_node): Also emit <accelerator> elements.
6910 * tests/testmerge.c (dump_accels): Add a "Dump Accels" button.
6912 * gtk/gtkuimanager.c (update_node): Robustness improvements.
6914 2003-09-17 Matthias Clasen <maclas@gmx.de>
6916 * gtk/gtkuimanager.c (text_handler): Report unexpected character
6917 data as error from the GMarkup parser, otherwise things like
6918 gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error)
6921 Wed Sep 17 02:38:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6923 * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
6924 committed redraw_on_allocate change.
6926 Tue Sep 16 10:42:00 2003 Eric Warmenhoven <eric@warmenhoven.org>
6928 * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
6929 stubs to fix compilation
6931 * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
6932 when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
6934 * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
6935 variable. Patch from Marc Welz (#121347).
6937 2003-09-16 Matthias Clasen <maclas@gmx.de>
6939 * gtk/gtkaction.h: Apply egtk-format-protos.
6941 2003-09-15 Matthias Clasen <maclas@gmx.de>
6943 * gtk/gtkuimanager.c: Doc tweaks.
6945 Smart separators; see
6946 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
6948 * gtk/gtkuimanager.c (update_smart_separators): New function which
6949 implements "smart" separators by iterating once over the entries of a
6950 menu, hiding and showing separators as necessary.
6951 (update_node): Mark separators used as fences of placeholders as
6952 hidden. Explicitly added separators are marked as smart. Call
6953 update_smart_separators after updating a menu or toolbar node.
6954 Connect update_smart_separators to "notify::visible" signal on menu
6957 * tests/merge-[12].ui: Test smart separators.
6959 Changes to allow setting action state before connecting signal; see
6960 the thread starting at
6961 http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
6963 * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
6964 (gtk_action_group_add_radio_actions_full): Add value parameter to allow
6965 setting the currently selected group member before connecting signals.
6966 (GtkToggleActionEntry): Separate struct for constructing toggle actions,
6967 including a boolean to initialize the action state before connecting
6969 (gtk_action_group_add_toggle_actions):
6970 (gtk_action_group_add_toggle_actions_full): New functions to construct
6971 toggle actions from an array of GtkToggleActionEntries.
6973 * demos/gtk-demo/appwindow.c:
6974 * tests/testactions.c:
6975 * tests/testmerge.c: Adjust to new action group API.
6977 Sun Sep 14 16:59:52 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6979 * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow
6980 "gtk-toolbar-arrow" so themes can special-case it.
6982 Sun Sep 14 16:07:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6984 * gtk/Makefile.am (gtk_c_sources): sort the list of files.
6986 Sun Sep 14 15:49:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6988 * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
6989 PangoFontMetrics. Patch from Steve Chaplin (#122257).
6991 2003-09-14 Tor Lillqvist <tml@iki.fi>
6993 * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
6994 special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
6995 the usefulness of which was already in doubt. Removing it fixes
6996 bugs #118575 and #121851.
6998 Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
7002 * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7003 pressed button (used to determine if we want to initiate a drag later
7004 on) if the current grab widget is either NULL or tree_view (Reported
7005 by Jeroen Zwartepoorte).
7007 2003-09-12 Matthias Clasen <maclas@gmx.de>
7009 * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)
7010 (gdk_draw_text_wc): Add deprecation notes. (#121955, Martin Pool)
7012 2003-09-11 Matthias Clasen <maclas@gmx.de>
7014 * gdk/gdkpango.c: Doc tweaks.
7016 * tests/testgtk.c: Add table menu tests.
7018 * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the
7019 GtkMenuPrivate struct itself. Pointed out by valgrind.
7021 * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up
7024 Wed Sep 10 22:25:04 2003 Kristian Rietveld <kris@gtk.org>
7026 The table menu patch! Turns GtkMenu into a table, so you can attach
7027 menu items in numerous new ways! Be creative!
7029 Contains some bug fixes and RTL adaptions from Matthias Clasen.
7031 * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7032 GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7033 (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7034 the heights array in the private struct,
7035 (gtk_menu_class_init): reorder code a bit, install child properties,
7036 (get_attach_info), (get_child_attach): new utility functions,
7037 (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7038 child properties, for the attach info,
7039 (gtk_menu_remove): remove AttachInfo from menu item,
7040 (gtk_menu_real_insert): implemented algorithm to automagically place
7041 inserted menu items at the correct place in the table,
7042 (gtk_menu_size_request), (gtk_menu_size_allocate),
7043 (compute_child_offset): reworked/rewritten to support table menus,
7044 (gtk_menu_attach): new function,
7045 (find_child_containing), (gtk_menu_move_current): new functions to
7046 get table menu keynav right.
7048 * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7050 2003-09-10 Matthias Clasen <maclas@gmx.de>
7052 * gtk/gtksocket.c (gtk_socket_filter_func): Only remove
7053 PropertyNotify events from the stream if they have been handled,
7054 in order to enable extending the plug<->socket communication via
7057 Wed Sep 10 01:06:44 2003 Kristian Rietveld <kris@gtk.org>
7059 Big TreeView DnD fixage, makes drops on empty models work, makes
7060 TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7061 Related bugs #95362 and #113314. I don't want to touch this code
7064 * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7066 * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7067 for selection_data->length.
7069 * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7070 (set_dest_row), (get_dest_row): we don't store just the row ref
7071 anymore, but a struct with the row ref and additional info,
7072 (set_destination_row): handle drops on empty space and some
7074 (get_logical_dest_row): also return path_down_mode/drop_append_mode
7075 flags, handle dropping childs on their new parents, rewrite
7076 drop append handling into something saner,
7077 (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7079 (gtk_tree_view_drag_drop): updates for updated backend,
7080 (gtk_tree_view_drag_data_received): updates for updated backend,
7081 path down mode (treestore DnD) handling,
7082 (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7083 when we are trying to drop a row on an empty model,
7084 (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7086 * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7087 (gtk_list_store_row_drop_possible): style and drop-append fixes.
7089 * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7091 2003-09-08 Alexander Larsson <alexl@redhat.com>
7093 * gtk/gtkeventbox.[hc]:
7094 Implement gtk_event_box_get/set_input_only()
7097 Tests for the new input only event boxes
7099 Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
7101 Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7103 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7104 the call to gtk_tree_model_filter_add_root,
7105 (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7106 the virtual root, allow building levels on the second try to convert
7107 the child path to a filter path,
7108 (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7109 root when calling gtk_tree_model_filter_elt_get_path.
7111 2003-09-07 Matthias Clasen <maclas@gmx.de>
7113 * gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
7116 Fixes for accelerator handling during (un)merging:
7118 * gtk/gtkuimanager.c (update_node): Move setting info-action
7119 after the switch, since the old action is needed in some cases.
7120 In cases of proxy type mismatch, disconnect the old proxy from
7123 * gtk/gtkaction.c (remove_proxy): Renamed from
7124 gtk_action_remove_proxy(). Move unsetting of the accelerator
7125 here from disconnect_proxy() in order to catch all cases of
7127 (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7128 to fail if proxy isn't a proxy of action.
7130 2003-09-07 Pablo Saratxaga <pablo@mandrakesoft.com>
7132 * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7135 2003-09-07 Matthias Clasen <maclas@gmx.de>
7137 * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7140 2003-09-06 Matthias Clasen <maclas@gmx.de>
7142 * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from
7143 prev_action, not from action. (Fix by David Hampton)
7145 Fri Sep 5 14:15:10 2003 Owen Taylor <otaylor@redhat.com>
7147 * Back out locale-dependent interpretation of
7148 KP_Decimal, the official XFree86 interpretation
7149 is that KP_Decimal => . KP_Separator => ,
7150 always, independent of locale.
7151 (#105161, Frederic Crozat,
7152 http://bugs.xfree86.org/show_bug.cgi?id=534)
7154 2003-09-04 Matthias Clasen <maclas@gmx.de>
7156 * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7158 * gtk/gtktoggleaction.c (connect_proxy):
7159 (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note
7160 that a "draw_as_radio" property is needed for check buttons similar to
7161 check menu items, in order to fully support button proxies for radio actions.
7163 * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7165 * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui().
7167 * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7168 'type' argument of gtk_ui_manager_add_ui().
7170 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7171 to make this function as powerful as the XML methods of adding UI. (#120647)
7173 Thu Sep 4 19:11:23 2003 Kristian Rietveld <kris@gtk.org>
7177 * docs/RELEASE-HOWTO: updates.
7179 2003-09-04 Matthias Clasen <maclas@gmx.de>
7181 * tests/merge-2.ui: Use "position" instead of "pos".
7183 * gtk/gtkuimanager.c (start_element_handler): No need
7184 to be terse: Change the name of the "pos" attribute
7187 2003-09-04 Matthias Clasen <maclas@gmx.de>
7189 * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and
7190 GtkUIManagerNode to shorten the names and to make the
7191 GTK_UI_MANAGER_<TYPE> names available for a public enum.
7193 * gtk/gtkactiongroup.c:
7194 * gtk/gtkuimanager.c: Various doc tweaks.
7196 * gtk/gtkuimanager.c (start_element_handler):
7197 (end_element_handler): Improve error reporting.
7199 Wed Sep 3 23:18:17 2003 Kristian Rietveld <kris@gtk.org>
7203 * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7204 use end_position - page_size instead of G_MAXINT, since
7205 gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7206 reported by Havoc Pennington).
7208 Wed Sep 3 21:58:03 2003 Kristian Rietveld <kris@gtk.org>
7212 * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7213 unref it. (Fixes memleak, patch from Kjartan Maraas).
7215 Wed Sep 3 21:38:26 2003 Kristian Rietveld <kris@gtk.org>
7217 * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7218 gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7219 gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7220 gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7221 gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7222 gtk/gtktypeutils.h: big patch from Kjartan Maraas
7223 to fix numerous typos.
7225 Wed Sep 3 17:38:01 BST 2003 Tony Gale <gale@gtk.org>
7227 * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7229 2003-09-02 Tor Lillqvist <tml@iki.fi>
7231 * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7232 CloseHandle() on the HMODULE returned from GetModuleHandle().
7233 Didn't cause any harm, but didn't do anything useful either. When
7234 running a GTK+ program under MS's debugger, the CloseHandle() call
7235 would cause a "first-chance exception" in ntdll.dll to show up.
7236 (The exception is caught appropriately if you let it proceed, but
7237 it confuses the person using the debugger). Thanks to Bruce
7238 Hochstetler for noticing.
7240 Tue Sep 2 21:01:19 2003 Kristian Rietveld <kris@gtk.org>
7244 * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7245 to only select when button 1 is pressed introduced in the fix of
7248 2003-09-02 Matthias Clasen <maclas@gmx.de>
7250 * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7252 * gtk/gtkuimanager.c: Shorten the names of some static
7255 Support adding and removing merge nodes dynamically (#120647,
7258 * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed
7259 gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id
7261 (gtk_ui_manager_add_ui): New function to add UI elements
7262 without juggling XML fragments, currently restricted to menuitems,
7263 toolitems and separators. Actions still come from registered
7266 Mon Sep 1 19:39:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7268 * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7269 background pixmap was being offset twice, once by the ts_origin in
7270 gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7272 2003-09-01 Matthias Clasen <maclas@gmx.de>
7274 * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7275 this public again, since it's occasionally useful. (#121128,
7276 Marco Pesenti Gritti)
7278 * gtk/gtkaction.c: Add an "is_important" property and propagate
7279 it to toolitem proxies. (#121058, Marco Pesenti Gritti)
7281 Mon Sep 1 00:32:30 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7283 * tests/testtoolbar.c (main): connect to "delete_event" so the
7284 application will actually quit when you close the window
7286 2003-09-01 Matthias Clasen <maclas@gmx.de>
7288 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget)
7289 (gtk_ui_manager_get_action): g_return_if_fail() if
7291 (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7292 (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125,
7293 Marco Pesenti Gritti)
7295 2003-08-31 Matthias Clasen <maclas@gmx.de>
7297 * gtk/gtktoolitem.c: Fix some typos in docs.
7299 * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7300 replaces gtk_ui_manager_activate(). (#120658)
7302 * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7303 gtk_ui_manager_activate().
7306 * gtk/gtkactiongroup.c: Some doc tweaks.
7308 * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7309 wasn't emitted anyway. Some doc tweaks.
7311 2003-08-30 Matthias Clasen <maclas@gmx.de>
7313 * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7314 rather than to "remove" on handlebox.
7316 * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7317 activate an action found by following a path. (#120658)
7319 * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7321 * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7323 * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with
7324 setter and getter. If it is set, add tearoff menu items to regular
7325 menus, but not to popups. Add a signal "changed", which gets emitted
7326 when the merged ui has changed. (#120649, #120656)
7328 * tests/testmerge.c: Add button to test the generation of tearoff
7331 2003-08-29 Matthias Clasen <maclas@gmx.de>
7333 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7334 Actually group the actions together rather than putting each in its
7337 * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on
7338 proxy menu items for radio actions.
7340 * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7342 Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7344 * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7345 Fix use of uninitialized variable.
7348 (_gtk_text_util_append_special_char_menuitems): add const cast to
7351 2003-08-29 Matthias Clasen <maclas@gmx.de>
7353 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install
7354 "draw_as_radio" as a separate property, not as an alias of
7356 (gtk_check_menu_item_get_property):
7357 (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7359 Fri Aug 29 20:32:07 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7361 * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7362 are narrower than 13 time the estimated character width of the
7363 font. (#107781, David Bordoley)
7365 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7366 here if the GtkToggleButton is active. This may be the case if it
7369 * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7370 vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7373 * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7374 property. (#111207, David Bordoley).
7376 * gtk/gtktoggletoolbutton.c
7377 (gtk_toggle_tool_button_create_menu_proxy): use new
7378 "draw_as_radio" property on the menu item when the item is a radio
7381 * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
7382 to only pay attention to the "use_underline" property when the
7383 button label comes from the "label" property.
7385 2003-08-29 Laurent Dhima <laurenti@alblinux.net>
7387 * configure.in: Added "sq" to ALL_LINGUAS.
7389 2003-08-28 Matthias Clasen <maclas@gmx.de>
7391 * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
7394 * gtk/gtkuimanager.c: Change the XML format:
7395 <Root> element is replaced by <ui>,
7396 <menu> element is replaced by <menubar>,
7397 <submenu> element is replaced by <menu>,
7398 <dockitem> element is replaced by <toolbar>,
7399 <popups> element is gone,
7400 verb attribute is replaced by action,
7401 name defaults to action or the element name.
7403 * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by
7404 GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified
7405 by removing the user_data, entry_type and extra_data fields,
7406 GtkRadioActionEntry is further simplified by removing the callback.
7407 The user_data can now be specified as an argument to
7408 gtk_action_group_add_actions(). There is a new method
7409 gtk_action_group_add_radio_actions(), which is similar to
7410 gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
7411 and a callback parameter in addition to the user_data. The callback
7412 is connected to the ::changed signal of the first group member.
7413 There are _full() variants taking a GDestroyNotify of
7414 gtk_action_group_add_[radio_]actions().
7416 * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
7417 on every member of the radio group when the active member is changed.
7418 Add an integer property "value", and a getter for the value of "value"
7419 on the currently active group member.
7421 * tests/testactions.c:
7422 * tests/testmerge.c:
7423 * tests/merge-[123].ui:
7424 * demos/gtk-demo/appwindow.c: Adjust to these changes.
7426 * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
7428 2003-08-27 Anders Carlsson <andersca@gnome.org>
7430 * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
7431 text view, so the tool bar won't have focus.
7433 Tue Aug 26 09:57:38 2003 Owen Taylor <otaylor@redhat.com>
7435 * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
7436 declaration not at start of block. (#120371, Damien Carbery)
7438 2003-08-26 Matthias Clasen <maclas@gmx.de>
7440 * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize
7441 for length, not gsize.
7443 * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to
7444 <ui> and make it optional in strings. Rename verb to action, <dockitem>
7445 to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
7447 * demos/gtk-demo/appwindow.c:
7448 * tests/testactions.c:
7449 * tests/testmerge.c:
7452 * tests/merge-3.ui: Adjust to the new XML format.
7454 Mon Aug 25 19:55:55 2003 Owen Taylor <otaylor@redhat.com>
7456 * gtk/gtktextview.c (gtk_text_view_update_layout_width):
7457 Since we add one to the layout's reported width to
7458 account for the cursor, we need to subtract one when
7459 setting the wrap width for the layout. (Fixes infinite
7460 loop (#120325, Frederic Crozat)
7462 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
7463 Be a bit more careful about rounding when converting
7464 wrapped width from Pango units to pixels.
7466 2003-08-26 Matthias Clasen <maclas@gmx.de>
7468 Rename GtkMenuMerge to GtkUIManager.
7470 * gtk/gtkuimanager.[hc]: New files.
7471 * gtk/gtkmenumerge.[hc]: Removed.
7475 * tests/testmerge.c:
7476 * tests/testactions.c:
7477 * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by
7480 * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating:
7481 add comments to entries array, remove newlines from ui definition. Don't
7482 use the ::add_widget signal.
7484 Mon Aug 25 17:28:04 2003 Owen Taylor <otaylor@redhat.com>
7486 * gtk/gtknotebook.c (gtk_notebook_forall): Don't
7487 include page->menu_label - causes various problems,
7490 Mon Aug 25 23:21:43 2003 Kristian Rietveld <kris@gtk.org>
7494 Fixes #115871, reported by Michael Natterer.
7496 * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
7497 added ctrl_pressed and shift_pressed bitfields,
7498 (_gtk_tree_selection_internal_select_node): replace GdkModifierType
7499 arg with GtkTreeSelectMode.
7501 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
7502 (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
7503 (_gtk_tree_selection_internal_select_node): all updated for
7504 GdkModifierType -> GtkTreeSelectMode move.
7506 * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
7507 and shift_pressed around selection handling block,
7508 (gtk_tree_view_real_select_cursor_row),
7509 (gtk_tree_view_real_toggle_cursor_row),
7510 (gtk_tree_view_real_selection_cursor_parent),
7511 (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
7512 instead of checking the event state. And also updates for the
7513 GdkModifierType -> GtkTreeSelectMode move.
7515 Wed Aug 20 21:26:49 2003 Owen Taylor <otaylor@redhat.com>
7517 * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
7518 to the parent when there was no focus widget before
7519 and no focus widget after - that is, when there are
7520 no focusable widgets. (#108678, help tracking it
7521 down from Padraig O'Briain, Federico Mena Quintero, )
7523 * gtk/gtkxembed.[ch]: Move various shared utilities
7524 for the XEMBED protocol eused by GtkPlug and GtkSocket
7527 * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
7528 a flag bit that is sent with focus mesages to indicate
7529 that the focus has wrapped around on the toplevel;
7530 use this bit to catch infinite loops when there is no
7531 focusable widget at ll in the entire toplevel.
7533 * tests/testsocket.c (child_read_watch): Remove an
7536 * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h:
7537 Up XEMBED protocol version to 1, add logic for
7538 sending the right version in XEMBED_EMBEDDED_NOTIFY.
7540 * gtk/gtksocket.c (gtk_socket_add_window): Send
7541 the embedder window in the XEMBED_EMBEDDED_NOTIFY
7542 as the spec requires.
7544 Mon Aug 25 16:15:41 2003 Owen Taylor <otaylor@redhat.com>
7546 * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and
7547 NumLock handling for non-XKB. Add a special case
7548 hack for NumLock on Sun servers. (Patch from
7549 Robert Basch, #115819)
7551 2003-08-25 Matthias Clasen <maclas@gmx.de>
7553 * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten
7556 * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
7557 gtk_action_group_set_translation_domain): Hooks for translation of
7558 label and tooltip in GtkActionGroupEntries. (#120620)
7560 2003-08-25 Matthias Clasen <maclas@gmx.de>
7562 * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
7563 values properly. Sorry about the resize grip trouble, Owen. (#120621)
7565 * gtk/gtkactiongroup.c:
7566 * demos/gtk-demo/appwindow.c:
7567 * tests/testmerge.c:
7568 * tests/testactions.c: Use new GtkActionGroupEntryType enum.
7570 Sun Aug 24 17:14:44 2003 Owen Taylor <otaylor@redhat.com>
7572 * gtk/gtk.h: Remove reference to gtkresizegrip.h.
7574 Sun Aug 24 17:03:44 2003 Owen Taylor <otaylor@redhat.com>
7576 * gtk/Makefile.am: Fix accidental commit of references
7577 to gtkresizegrip.[ch]
7579 Sun Aug 24 17:00:03 2003 Owen Taylor <otaylor@redhat.com>
7581 * gtk/gtkrc.c: Fix some missing initializations of
7584 2003-08-24 Matthias Clasen <maclas@gmx.de>
7586 * gtk/gtkaction.[ch]:
7587 * gtk/gtktoggleaction.[ch]:
7588 * gtk/gtktoggleactionprivate.h:
7589 * gtk/gtkradioaction.[ch]:
7590 * gtk/gtkactiongroup.[ch]:
7591 * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
7592 toolbars, using the EggMenu code by James Henstridge.
7594 * gtk/gtk.h: Include new headers.
7595 * gtk/Makefile.am: Add new files.
7597 * tests/testactions.c: Test for actions.
7598 * tests/testmerge.c: Test for menu merging.
7599 * tests/merge-[123].ui: Test data for testmerge.
7600 * tests/Makefile.am: Add testactions and testmerge.
7602 * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the
7603 menubar and toolbar.
7605 Sat Aug 23 21:40:18 2003 Owen Taylor <otaylor@redhat.com>
7607 * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix
7608 problem where rc_file->directory wasn't always getting
7609 set. (#120549, Luis Villa)
7611 2003-08-22 Christian Rose <menthos@menthos.com>
7613 * configure.in: Added "ne" to ALL_LINGUAS.
7615 Thu Aug 21 16:00:36 2003 Owen Taylor <otaylor@redhat.com>
7617 * gtk/gtkrc.c: Keep a list of current GtkRcFiles
7618 being parsed, not just the directories for those
7619 files. Use that to catch recursion. (Part of
7622 Thu Aug 21 21:27:45 2003 Kristian Rietveld <kris@gtk.org>
7626 Fix option menu scrolling (#119821, Owen Taylor).
7628 * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
7629 by #80484 and the CLAMP,
7630 (get_menu_height): new function,
7631 (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
7632 new_offset to handle page up/down right.
7634 Thu Aug 21 15:17:42 2003 Owen Taylor <otaylor@redhat.com>
7636 * gdk/x11/gdkkeys-x11.c: Change the interpretation
7637 of consumed_modifiers so that it contains:
7638 - Modifiers combinations actually found in
7640 - Single modifier modifier combinations.
7641 But not multi-modifier combinations that aren't
7642 in event->state. Document. (#100439)
7644 Thu Aug 21 20:53:46 2003 Kristian Rietveld <kris@gtk.org>
7646 Slightly modified patch from Yann Rouillard to improve selection
7647 behavior with the mouse. Fixes #120187.
7649 * gtk/gtktreeview.c (gtk_tree_view_button_press): only
7650 select/deselect items on the first button press of button 1,
7651 expand checks for row_activated to include triple clicks.
7653 Thu Aug 21 01:33:51 2003 Kristian Rietveld <kris@gtk.org>
7657 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
7658 approximate digit widths up, to avoid truncation, convert to
7659 pango pixels when we have the full string width instead of converting
7660 the approx digit width to pango pixels, take inner border and
7661 interior focus into account correctly. (Fixes #116368, patch from
7664 2003-08-20 Noah Levitt <nlevitt@columbia.edu>
7666 * gtk/queryimmodules.c: Don't look at the same directory twice (in
7667 simple cases). (#120342)
7669 Wed Aug 20 22:04:47 2003 Soeren Sandmann <sandmann@daimi.au.dk>
7671 * gdk/gdkwindow.c: Make the layers in the paint stack have their
7672 own pixmap instead of sharing one. (#118317)
7674 * tests/testgtk.c (create_get_image): Fixes to make the window fit
7675 on an 800x600 screen
7677 Wed Aug 20 22:03:25 2003 Kristian Rietveld <kris@gtk.org>
7681 * gtk/gtkspinbutton.c (start_spinning): change the type of step
7682 to gdouble, since it gets it's data from a gdouble (Fixes #113547).
7684 Mon Aug 18 17:19:12 2003 Owen Taylor <otaylor@redhat.com>
7686 * modules/input/gtkimcontextxim.[ch]: Substantially
7687 rework the handling of status windows:
7689 - Store the current StatusWindow in the
7690 GtkIMContextXIM structure and vice-versa, so we
7691 don't have to hunt the window hierarchy on
7693 - Use the Gtkidget hierarchy instead of/or as well
7694 as the GdkWindow hierarchy when finding the toplevel;
7695 this helps for things like GtkHandlebox
7696 - Watch GtkWidget::hierarchy_changed to catch
7697 changes in the toplevel without changes in the
7698 GdkWindow (reparenting)
7699 - Never create the GtkWindow for the status window
7700 unless we have text to display.
7701 - Various cleanups, add lots of comments.
7703 (#115077, much help from Takuro Ashie and Hidetoshi
7704 Tajima in tracking this down and figuring out a fix.)
7706 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in):
7708 * modules/input/gtkimcontextxim.c: Track the current
7709 screen for each toplevel so that we show the status
7710 window on the right screen. (#116340, James Su)
7712 * modules/input/gtkimcontextxim.c: If create a new IC
7713 when we currently have the focus, call XSetICFocus()
7716 * modules/input/gtkimcontextxim.c (get_im): Fix bug
7717 with multiple open screens.
7719 Tue Aug 19 14:37:46 2003 Owen Taylor <otaylor@redhat.com>
7721 * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext):
7722 Replace client_window field with 'priv' pointer,
7723 retaining binary compatibility.
7725 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
7726 save use_preedit/cursor_location/focus status and set
7727 up the new slave appropriately. (#118651, Botond Botyanszki)
7729 Tue Aug 19 13:58:50 2003 Owen Taylor <otaylor@redhat.com>
7731 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
7732 Don't use impl->position_info.clip_rect for toplevels.
7733 (#107068, reported by Thomas Mirlacher)
7735 Mon Aug 18 11:48:51 2003 Owen Taylor <otaylor@redhat.com>
7737 * gdk/x11/gdkdrawable-x11.c (convert_to_format):
7738 Add a fallback for unaligned source data for
7739 FORMAT_ARGB_MASK. (#117217)
7741 Mon Aug 18 10:51:57 2003 Owen Taylor <otaylor@redhat.com>
7743 * configure.in: Rework handling of REBUILD_PNGS,
7744 so that we also don't try to REBUILD_PNGS when
7745 cross-compiling and there is no gdk-pixbuf-csource.
7746 But give an error if gtk/stock-icons/gtkstockpixbufs.h
7747 is not in the source tree. (Note that REBUILDS_PNG
7748 was set backwards before, which is why you always
7749 had to manually recreate gtkstockpixbufs.h!)
7751 Mon Aug 18 10:19:55 2003 Owen Taylor <otaylor@redhat.com>
7753 * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
7754 path to libgtk.la. (#120080, Benedikt Spranger)
7756 Sat Aug 16 10:34:49 2003 Owen Taylor <otaylor@redhat.com>
7758 * modules/input/imcedilla.c: Make the list of default
7759 languages more comprehensive. (Suggestion of
7760 Fco. Javier F. Serrador)
7762 Sat Aug 9 12:47:11 2003 Owen Taylor <otaylor@redhat.com>
7764 * gdk/gdk.c (gdk_arg_context_parse): Fix broken
7765 parentheses when skipping args.
7767 Sat Aug 16 16:22:23 2003 Kristian Rietveld <kris@gtk.org>
7769 Fix major bug in row ref handling, so the new combo box
7770 will actually work right (:. Bug #107748. Patch written
7771 with help from Tim Janik.
7773 The basic idea is to update the row refs in a closure,
7774 before the actual signal is emitted (rather than having
7775 the model connect signal handlers).
7777 * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
7778 g_signal_new calls for row_inserted, row_deleted and
7779 rows_reordered to use the new marshallers,
7780 (row_inserted_marshall), (row_deleted_marshall),
7781 (rows_reordered_marshall): the new marshallers,
7782 (gtk_tree_row_ref_inserted_callback): renamed to
7783 gtk_tree_row_ref_inserted since it isn't a callback
7784 anymore and gets called by the marshaller now,
7785 (gtk_tree_row_ref_deleted_callback): likewise,
7786 (gtk_tree_row_ref_reordered_callback): likewise,
7787 (connect_ref_callbacks), (disconnect_ref_callbacks):
7789 (gtk_tree_row_reference_new_proxy),
7790 (gtk_tree_row_reference_free),
7791 (gtk_tree_row_reference_inserted),
7792 (gtk_tree_row_reference_deleted),
7793 (gtk_tree_row_reference_reordered): updated.
7795 Fri Aug 15 16:54:39 2003 Owen Taylor <otaylor@redhat.com>
7797 Improve Cedilla handling - based on a patch from Gustavo
7800 * modules/input/imcedilla.c po/POTFILES.in: Input method that
7801 produces C_WITH_CEDILLA rather than C_WITH_ACUTE for
7802 dead_acute+c combinations. Make this the default for
7805 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
7806 Use LC_CTYPE instead of LC_MESSAGES to pick the default
7809 Fri Aug 15 17:00:19 2003 Owen Taylor <otaylor@redhat.com>
7811 * gtk/gtkimcontextsimple.c: Fix missing compose sequence
7812 for Multi_key+c+apostrophe.
7814 Fri Aug 15 21:57:34 2003 Kristian Rietveld <kris@gtk.org>
7818 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
7819 on vertical scrolling. (#108035, reported by Tim Janik).
7821 Fri Aug 15 20:06:42 2003 Kristian Rietveld <kris@gtk.org>
7825 * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
7826 (gtk_tree_model_sort_level_find_insert),
7827 (gtk_tree_model_sort_insert_value): fix off-by-one error.
7828 (#109292 continued, patch from Yann Rouillard).
7830 Fri Aug 15 19:43:14 2003 Kristian Rietveld <kris@gtk.org>
7832 (Note: This is not exactly the same as the patch which went in
7835 * gtk/gtktreeview.c (gtk_tree_view_class_init),
7836 (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
7837 Also support the up, down, left, right, home, end, page up and
7838 page down keys on the numpad. (#119419, reported by Alex Larsson).
7840 Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com>
7842 Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
7844 * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
7845 we link libgtk against X explicitely, since we
7846 make GTK+ calls for plug/socket.
7848 * gtk/queryimmodules.c: Use USE_LA_MODULES and
7849 G_MODULE_SUFFIX here.
7851 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
7852 XShmPutImage with #ifdef USE_SHM.
7854 Thu Aug 14 18:25:39 2003 Owen Taylor <otaylor@redhat.com>
7856 * gtk/gtkfilesel.c (gtk_file_selection_populate):
7857 Don't reposition the cursor when we aren't trying
7858 to complete. (Fixes problems with selection on
7859 startup, #108433, reported by Mark Finlay.)
7861 * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
7862 code that tried to position the cursor after the common
7863 prefix when there was one, it wasn't working, and
7864 would be hard to fix. Just always put the cursor
7865 at the end when completing.
7867 Thu Aug 14 17:58:23 2003 Owen Taylor <otaylor@redhat.com>
7869 * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
7870 the current directory fails because of encoding
7871 conversion problems, walk up textually to parent
7872 directories until we can convert. (#113627)
7874 Wed Aug 13 17:01:49 2003 Owen Taylor <otaylor@redhat.com>
7876 * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
7877 Remove usage of menu_shell->ignore leave which was
7878 to deal with stray events we no longer get because
7879 we do grabbing differently. Comment it as unused in
7880 the header. (#115837, Keith Bissett)
7882 Wed Aug 13 16:32:43 2003 Owen Taylor <otaylor@redhat.com>
7884 * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request):
7885 Fix some places that weren't properly Xinerama-ified.
7887 * gtk/gtkmenu.c: Fix problem with windows that scroll
7888 at the top of the screen.
7890 Wed Aug 13 11:34:53 2003 Owen Taylor <otaylor@redhat.com>
7892 * gtk/gtkcombo.c (gtk_combo_init): connect_after() to
7893 key-press-event on the entry, so input methods get access to
7894 key presses before GtkCombo customization.
7895 (#115451, Botond Botyanszki)
7897 2003-08-13 Anders Carlsson <andersca@gnome.org>
7899 * tests/testtoolbar.c: (set_important_func), (important_toggled),
7900 (create_items_list):
7901 Add an important column.
7903 Tue Aug 12 15:00:15 2003 Owen Taylor <otaylor@redhat.com>
7905 * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
7906 against reentrancy from ::focus-out handlers.
7907 (#118129, Felipe Heidrich)
7909 Tue Aug 12 14:27:42 2003 Owen Taylor <otaylor@redhat.com>
7911 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
7912 GDK_LOCK_MASK before calling
7913 gdk_keymap_translate_keyboard_state so bindings
7914 and accelerators are independent of the Caps-lock
7915 key. (#115384, reported by Toni Willberg)
7917 Mon Aug 11 12:07:14 2003 Owen Taylor <otaylor@redhat.com>
7919 * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
7920 break statements (#119494, Soeren Sandmann)
7922 Mon Aug 11 11:10:07 2003 Owen Taylor <otaylor@redhat.com>
7924 * gtk/gtkwidget.h: Mark parent public as well; it's
7925 extensively accessed in existing code, so there is
7926 no advantage in making people use get_parent().
7927 (Tweak to #119463 fix)
7929 2003-08-11 Matthias Clasen <maclas@gmx.de>
7931 Add support for EWMH "Above" and "Below" window states. (105100,
7934 * tests/testgtk.c: Add "Above" and "Below" to the the "Window
7937 * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
7938 gtk_window_set_keep_below.
7940 * gtk/gtk.def: Add gtk_window_set_keep_above and
7941 gtk_window_set_keep_below.
7943 * gtk/gtkwindow.c (gtk_window_set_keep_below):
7944 (gtk_window_set_keep_above): New functions, call the corresponding
7947 * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
7948 function, sets _NET_WM_STATE_BELOW.
7949 (gdk_window_set_keep_above): New function, sets
7950 _NET_WM_STATE_ABOVE.
7952 * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
7953 gdk_window_set_keep_below.
7955 * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
7956 GDK_WINDOW_STATE_BELOW.
7958 * gdk/gdk.def: Add gdk_window_set_keep_above and
7959 gdk_window_set_keep_below.
7961 * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
7962 JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
7963 xmlcatalog in PATH. (#119115)
7965 2003-08-10 Matthias Clasen <maclas@gmx.de>
7967 * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
7970 2003-08-09 Noah Levitt <nlevitt@columbia.edu>
7973 * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
7974 docs on GdkFilterFunc and GdkFilterReturn.
7976 2003-08-09 Matthias Clasen <maclas@gmx.de>
7978 * gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
7979 to let the mouse wheels select the month. Scrolling down
7980 moves forward in time. (#53134, Abigail Brady)
7982 * gtk/gtkcalendar.c: Complete the RTL flipping support for
7983 GtkCalendar, make it possible to flip the headings using the
7984 "magic translated string" technique. Translators, note the
7985 comment in gtk_calendar_init() explaining this. (#102416)
7987 * gtk/gtkcalendar.c: Get the information about the first day of
7988 the week from the locale using another instance of the "magic
7989 translated string" technique. Ignore the display option
7990 GTK_CALENDAR_WEEK_START_MONDAY with a warning. (#87977)
7992 * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
7993 date is dragged as text, formatted via strftime %x. Text drops are
7994 accepted if g_date_set_parse() can make sense of the text. A
7995 dedicated data format for date DND has not been introduced yet,
7996 since there didn't seem to be sufficient consensus on such a
7997 format on xdg-list. (#117297)
7999 2003-08-08 Matthias Clasen <maclas@gmx.de>
8001 * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8002 Fix a segfault. (#115284, Jan Kratochvil)
8004 2003-08-08 Tor Lillqvist <tml@iki.fi>
8006 * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8007 coordinates for events that have such. Print coordinates for enter
8010 (gdk_event_translate): Don't use event uninitialixed in the
8011 return_exposes branch of the WM_PAINT handler.
8013 * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8014 _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer):
8015 Must offset top-level window coordinates here, too.
8017 2003-08-08 Matthias Clasen <maclas@gmx.de>
8019 * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8020 when maximized or fullscreen.
8022 2003-08-07 Tor Lillqvist <tml@iki.fi>
8024 * gdk/win32/gdkinput-win32.h
8025 * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8026 _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8029 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8030 accordingly, in fact an uninitialised variable was dereferenced.
8033 [Win32] Add support for multiple monitors.
8035 * gdk/win32/gdkprivate-win32.h
8036 * gdk/win32/gdkglobals-win32.c: New global variables for
8037 multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8038 _gdk_offset_x and _gdk_offset_y.
8040 * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8041 functions, enumeration functions passed to EnumDisplayMonitors().
8043 (gdk_display_open): If the EnumDisplayMonitors() and
8044 GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8045 if to find out monitor info.
8047 Calculate the offset between Win32 coordinates (relative to the
8048 primary monitor's origin (and thus negative on monitors to the
8049 left of or above it), and GDK's (visible coordinates should be
8052 * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8053 gdk_screen_get_monitor_geometry): Use information collected above.
8055 (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8056 Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8058 (gdk_window_get_geometry, gdk_window_get_origin,
8059 gdk_window_get_frame_extents): For top-level windows, add
8060 _gdk_offset_{x,y} to GDK root window coordinates
8062 Still need to handle multiple monitors in
8063 gdk_window_fullscreen(). Probably should make the window
8064 fullscreen on the monitor where the cursor is?
8066 * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8067 root window coordinates in GdkEvents.
8070 [Win32] Fix geometry hint handling. Add support for resize
8071 increment and base size, and aspect ratio geometry hints. The
8072 "gridded geometry" test in testgtk now works beautifully.
8074 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8075 Turns out this function shouldn't actually ever modify the
8076 window's size, just store the hints. (Old code kept for a while
8079 (gdk_window_set_hints): Remove presumably broken code that handles
8080 the position hints, this function is obsolete anyway.
8082 * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8083 variables, not used.
8085 (adjust_drag): New function, used to implement resize increment
8088 (gdk_event_translate): Handle WM_SIZING, implement resize
8089 increment and base size, and aspect ratio geometry hints here. The
8090 WM_GETMINMAXINFO handler takes care of the minimum and maximum
8091 size hints as before. Fix the WM_GETMINMAXINFO handler to take
8092 into account window decorations. No need to modify the
8093 ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8094 the defaults are fine.
8096 * gdk/win32/gdkprivate-win32.h
8097 * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8098 _gdk_win32_get_adjusted_client_rect): New helper functions.
8100 2003-08-07 Matthias Clasen <maclas@gmx.de>
8102 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8103 toplevel->have_* flags before iterating over the _NET_WM_STATE
8106 Thu Aug 7 16:49:29 2003 Owen Taylor <otaylor@redhat.com>
8108 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
8109 Fix a bug where on theme change, resize/redraw wasn't
8110 properly getting queued on toplevel windows. (#116346,
8113 * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
8114 Fix bug where wrong coordinates were used for toplevel
8117 Thu Aug 7 16:40:21 2003 Owen Taylor <otaylor@redhat.com>
8119 * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8120 page_num variable (Archit Baweja)
8122 2003-08-07 Matthias Clasen <maclas@gmx.de>
8124 * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8125 cope with C libraries with crippled locale support. (#115293)
8127 2003-08-07 Hans Breuer <hans@breuer.org>
8129 * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8130 (only if the new window not known to Gdk) to get proper
8131 leave notification, and get rid of the wrong placed
8132 tooltips, bug #102283
8134 (gdk_event_translate) : small code reordering to not get
8135 GDK_MOTION_NOTIFY for still mouse and get back tooltips on
8138 2003-08-07 Tor Lillqvist <tml@iki.fi>
8141 * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8142 missing function, trivially implement.
8144 2003-08-07 Matthias Clasen <maclas@gmx.de>
8146 * gtk/gtkctree.c (draw_row): Don't cut descenders when
8147 rendering. (#118646, Charles Kerr)
8149 2003-08-06 Hans Breuer <hans@breuer.org>
8151 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8152 initialize bits to 0 (probably default on NT)
8154 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8155 now it works as intended ;-)
8157 2003-08-04 Hans Breuer <hans@breuer.org>
8159 * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8160 set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8162 * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8163 (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8165 * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8166 against all expectations it is basically ony a call with WM_SETICON
8167 needed (the visual effect is there, though colors or mask are
8168 still somewhat wrong).
8169 * gdk/win32/gdkwindow-win32.h : place to store the HICON
8171 * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8172 pixel drawing as it was fixed at 1999-08-23
8174 gtk/gtk.def : updated
8176 Tue Aug 5 10:07:08 2003 Owen Taylor <otaylor@redhat.com>
8178 * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property):
8179 Add a missing break. (#119156, Callum McKenzie)
8181 Tue Aug 5 00:24:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8183 * gtk/gtkmenu.c (gtk_menu_position): New positioning
8186 Fri Aug 1 15:26:46 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8188 * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8191 * gtk/gtkradiotoolbutton.c
8192 (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8194 * gtk/gtkradiotoolbutton.c
8195 (gtk_radio_tool_button_new_with_stock_from_widget): make this
8196 function take a stock_id.
8198 * gtk/toolbar: documentation
8200 Mon Aug 4 14:53:46 2003 Owen Taylor <otaylor@redhat.com>
8202 * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init):
8203 Fix problem where use_xshm was getting set wrong if
8204 MIT_SHM wasn't found. (George Lebel)
8206 2003-08-04 Tor Lillqvist <tml@iki.fi
8208 * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8209 actually use the passed-in filter list. The function also needs a
8210 GdkWindow parameter, as filter functions expect
8211 GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8213 2003-08-03 Matthias Clasen <maclas@gmx.de>
8215 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors):
8216 (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8217 the term "virtual screen". (#119030, Tor Lillqvist)
8219 2003-08-02 Matthias Clasen <maclas@gmx.de>
8221 * tests/testtext.c (test_init):
8222 * tests/testgtk.c (test_init):
8223 * tests/testdnd.c (test_init):
8224 * demos/pixbuf-init.c (pixbuf_init):
8225 * demos/gtk-demo/main.c (main): Use g_setenv().
8227 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8230 Sat Aug 2 12:53:16 2003 Owen Taylor <otaylor@redhat.com>
8232 * configure.in: Requires glib-2.3.0, pango-1.2.0.
8234 * configure.in: Require Xft version 2,
8235 remove code for handling older versions of pango and Xft.
8236 Many miscellaneous improvements to X checks
8238 * acinclude.m4: Add GTK_ADD_LIB() macro for adding
8239 a library to a variable, avoiding dups.
8241 * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
8244 * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8247 2003-08-02 Matthias Clasen <maclas@gmx.de>
8249 * gtk/gtkcolorsel.c (color_sample_drop_handle)
8250 (palette_drop_handle):
8251 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received): Accept
8252 drops with the wrong format, since the KDE color chooser incorrectly
8253 drops application/x-color with format 8. (#118810)
8255 * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle):
8256 * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):
8257 Accept drops with the wrong format, since the KDE color chooser
8258 incorrectly drops application/x-color with format 8. (#118810)
8260 2003-08-02 Tor Lillqvist <tml@iki.fi>
8262 Fix gdk/win32 window geometry handling again. The window position
8263 in a GDK_CONFIGURE event should be that of the client area, not of
8264 the window decorations. (I was confused by the term "window
8265 border" in X11. It does *not* mean the window manager
8266 decorations. There are no X11-style window borders in Win32.)
8267 Also, this time do take the geometry hints into account
8268 appropriately when moving windows. Now testgtk's gravity test's
8269 move buttons work OK. There are stil problems with taking gravity
8270 into account when showing a hidden window.
8272 * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8273 instead of separate fields.
8275 * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8276 adjust for decorations.
8278 * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8279 adjust_for_gravity_hints): New functions.
8280 (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8281 above functions, take geometry hints into account.
8282 (gdk_window_set_geometry_hints): Size hints specicy client area,
8283 not including decorations.
8285 Fri Aug 1 17:10:22 2003 Owen Taylor <otaylor@redhat.com>
8287 * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8288 return an absolute path (#115590), fix a problem where
8289 you could crash the file selector with a looong name
8290 by returning a newly allocated buffer.
8292 Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
8294 * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8295 bug in rarely or never hit code path (#118071,
8298 Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
8300 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
8301 If the check for missing depths, try actually creating pixmaps
8302 of the depths to deal with Xinerama not reporting
8303 all the depths it should. (#115822)
8305 Fri Aug 1 15:33:59 2003 Owen Taylor <otaylor@redhat.com>
8307 * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8308 forward KeyRelease events as well as KeyPress events.
8311 Fri Aug 1 15:06:25 2003 Owen Taylor <otaylor@redhat.com>
8313 * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8314 if argc is 0 as well, instead of leaving it unset.
8315 (#116023, Michael Meeks)
8317 Thu Jul 31 23:09:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8319 * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8320 default to TRUE; ignore the property when api_mode != NEW_API
8322 2003-07-31 Matthias Clasen <maclas@gmx.de>
8324 * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8325 to icon, to pacify gtk-doc.
8327 * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion
8330 Thu Jul 31 15:33:33 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8332 * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8334 Thu Jul 31 15:29:28 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8336 * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8337 overflow_item field.
8339 Wed Jul 30 21:11:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8341 * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8342 an internal function
8344 * gtk/gtktoolitem.h: remove unused declaration of
8345 _gtk_tool_item_get_drag_window().
8347 Wed Jul 30 17:03:58 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8349 * gtk/gtktoolbutton.[ch]:
8350 (gtk_tool_button_new): swap icon_widget and label arguments to
8351 match BonoboUIToolbarButton.
8353 * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8355 2003-07-30 Matthias Clasen <maclas@gmx.de>
8357 * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8360 2003-07-29 Tor Lillqvist <tml@iki.fi>
8362 Fix for #108007, #112402, #117042: There was confusion in
8363 gdk/win32 at various places whether a window position refers to
8364 the decoration position or the client area position. Also whether
8365 window size includes decorations or not.
8367 The correct interpretation apparently is that in GDK (like in
8368 X11), a top-level window position means the decoration's position,
8369 but size means the window's inner size (client area size). In the
8370 Win32 API, the window size usually includes the decorations,
8373 * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8374 #ifdef G_ENABLE_DEBUG.
8375 (handle_configure_event): New function, generates GDK_CONFIGURE
8376 events from WM_SIZE and WM_MOVE messages. Even if no event is
8377 generated because of the event mask, still set the private
8378 position and size fields. Calculate position and size correctly.
8379 (gdk_event_translate): Call handle_configure_event().
8381 * gdk/win32/gdkgeometry-win32.c: Cosmetics.
8383 * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
8384 macros. Cosmetic debugging output changes.
8385 (SafeAdjustWindowRectEx): Remove. If an application wants to
8386 locate a window outside of the screen, it's not GDK's business to
8387 prevent it. And anyway, with multiple monitors, negative
8388 coordinates are perfectly normal.
8389 (gdk_window_new): Adjust the window size for decorations after
8390 _gdk_window_init_position() has done its job. (But the big window
8391 code currently is presumably broken on Win32 anyway.)
8392 (gdk_window_move): The position passed in is supposed to be that
8393 of the window border, so don't need to adjust for decorations.
8394 (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
8396 Tue Jul 29 13:55:44 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8398 * gtk/gtktoolbar.c (gtk_toolbar_set_style,
8399 gtk_toolbar_prepend_element, gtk_toolbar_append_element,
8400 gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
8401 gtk_toolbar_append_space, gtk_toolbar_insert_item,
8402 gtk_toolbar_prepend_item, gtk_toolbar_append_item,
8403 gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
8404 gtk_toolbar_new, gtk_toolbar_prepend_item):
8406 Move documentation inline from template files.
8408 * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
8409 gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
8410 gtk_toolbar_append_widget, gtk_toolbar_remove_space,
8411 gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
8412 gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
8413 gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
8414 gtk_toolbar_get_style, gtk_toolbar_get_orientation)
8416 Copy documentation from stable that was added after the EggToolbar
8419 * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
8421 Mon Jul 28 18:21:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8423 * gtk+/docs/: Commit autogenerated changes, so patches will make
8426 2003-07-27 Tor Lillqvist <tml@iki.fi>
8428 * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
8429 the keyboard state returned by GetKeyboardState() doesn't
8430 distinguish between the left and right Control and Alt keys. Thus
8431 we cannot detect AltGr (which is supposed to be left Control +
8432 right Alt) the same way as on NT-based systems, but have to accept
8433 either Control + either Alt as AltGr.
8435 2003-07-27 Matthias Clasen <maclas@gmx.de>
8437 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8438 Fix function name in warning message. (#118156, Tim-Philipp
8441 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
8442 is-expander and is-expanded are boolean properties, not ints.
8443 (#118359, Josh Parsons)
8445 Sat Jul 26 15:21:27 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8447 * gtk/gtkimagemenuitem.c
8448 (gtk_image_menu_item_toggle_size_request): don't request
8449 toggle_space when the image width is 0.
8451 2003-07-25 Tor Lillqvist <tml@iki.fi>
8453 * gdk/win32/gdkprivate-win32.h
8454 * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
8455 and _gdk_keyboard_has_altgr.
8457 * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
8458 ones detailled here.
8460 Code that has been ifdeffed out for a long time removed. Remove
8461 some really old doc comments that were left behind for some public
8462 functions, the official ones are in the X11 backend anyway. Change
8463 GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
8464 multi-line boolean expressions to have the operators at ends of
8467 As mouse capture with SetCapture() indeed seems to work OK, no
8468 need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
8470 Ifdef out the gdk-ping-msg stuff. I don't remember why it was
8471 needed at some time, and things seem to work fine now without
8474 Ifdef out the search for some Latin locale keyboard layout being
8475 loaded. Not used currently, but might be needed after all, if we
8476 decide that we want to be able to generate ASCII control character
8477 events with a non-Latin keyboard.
8479 (assign_object): New helper function, handles the g_object_ref()
8480 and unref() calls when assigning GObject pointers.
8482 (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
8483 enter event when the pointer has moved to an ancestor window. Was
8484 left out by mistake.
8486 (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
8488 (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
8489 functionality, using ClipCursor().
8491 (find_window_for_mouse_event): Splice part of code into new
8492 function find_real_window_for_grabbed_mouse_event().
8494 (fixup_event, append_event, apply_filters): New functions, code
8495 refactored out from elsewhere.
8497 (synthesize_enter_or_leave_event, synthesize_leave_event,
8498 synthesize_enter_event,
8499 synthesize_leave_events,synthesize_enter_events): Also take a
8500 GdkCrossingMode parameter, in preparation to generating
8501 GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
8503 (fixup_event, append_event, fill_key_event_string): New functions,
8506 (vk_from_char, build_keypress_event, build_keyrelease_event):
8507 Removed as part of dropping WM_CHAR handling.
8509 (build_key_event_state,gdk_event_translate): Call
8510 GetKeyboardState(), once, for each keyboard message, instead of
8511 several calls to GetKeyState() here and there.
8513 (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
8514 at it, do some major refactoring, and some fixes for potential
8515 problems noticed while going through the code.
8517 Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
8518 WM_KEYUP. Don't need the state variables related to whether to
8519 wait for WM_CHAR or not, and whether the current key is
8520 AltGr. Remove lots of complexity. Thus don't need the
8521 use_ime_composition flag.
8523 Not handling WM_CHAR means dead key handling will have to be taken
8524 care of by GTK, but that seems to work fine, so no worry.
8526 Another side-effect is that Alt+keypad digits don't work any
8527 longer, but it's better to learn to use GTK's ISO14755 support is
8530 Be more careful in checking whether AltGr is involved. Only
8531 attempt to handle it if the keyboard actually has it. And
8532 explicitly check for *left* Control plus *right* Alt being
8533 pressed. Still, allow (left) Alt and/or (right) Control with AltGr
8536 Handle keys using similar code as in the X11 backend. As we have
8537 built a keymap in gdkkeys-win32.c anyway, use it by calling
8538 gdk_keymap_translate_keyboard_state() to look up the keysym from
8539 the virtual key code and keyboard state. Build the key event
8540 string in exactly the same way as the X11 backend.
8542 If an IME is being used, don't generate GDK events for keys
8543 between receiving WM_IME_STARTCOMPOSITION and
8544 WM_IME_ENDCOMPOSITION, as those keys are for the IME.
8546 For WM_IME_COMPOSITION, handle all the Unicode chars returned from
8547 the IME, not just the first one.
8549 gdk_event_translate() is still quite complex, could split the
8550 message handler cases out into separate functions.
8552 On mouse events, when the mouse is grabbed, use
8553 find_real_window_for_grabbed_mouse_event() in order to be able to
8554 generate correct crossing events.
8556 No longer take a pre-allocated GdkEvent as parameter. Instead,
8557 allocate events as needed and append them to the queue. (This is
8558 different from how gdk_event_translate() in the X11 backend
8559 works.) This change made the code much clearer, especially in the
8560 cases where we have to generate several GDK events for one Windows
8561 message. Return FALSE if DefWindowProc() should be called, TRUE
8562 if not. If DefWindowProc() should not be called, also return the
8563 value to be returned from the window procedure.
8565 (Previously, the interaction with gdk_event_translate()'s caller
8566 was much more complex, when we had to indicate whether the
8567 already-queued event should be left in the queue or removed, and
8568 in addition also had to indicate whether to call DefWindowProc()
8569 or not, and what value to return from the window procedure if
8572 Don't use a separate "private" variable required to be pointing to
8573 the GdkWindowObject of the "window" variable at all times. Just
8574 use casts, even if looks a bit uglier.
8576 Notice destroyed windows as early as possible, and break out of
8577 the messsage switch.
8579 Use _gdk_pointer_root as current_window when the pointer is
8580 outside GDK's top-level windows.
8582 On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
8583 appropriate, based on ImmIsIME().
8585 (gdk_event_translate, gdk_event_send_client_message_for_display,
8586 gdk_screen_broadcast_client_message): Implement client messages.
8587 Use a registered Windows message to pass GDK client messages. Note
8588 that the amount of user data is restricted to four bytes, as it is
8589 carried in the LPARAM. (The WPARAM is used for the message type
8592 (real_window_procedure): Adapt for new gdk_event_translate()
8595 * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
8596 _gdk_input_locale_is_ime initially.
8598 * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
8599 of g_colormap_ref()/unref().
8601 (gdk_window_new): Made code a bit more like the X11 one, pretend
8602 to handle screens (although we just have one for now).
8604 * gdk/x11/gdkevents-x11.c
8605 (gdk_event_send_client_message_for_display,
8606 gdk_screen_broadcast_client_message): Document the user data
8607 limitation on Win32.
8609 * gdk/win32/gdkevents-win32.c (print_event): More complete enter
8610 and leave notify detail output.
8612 * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
8613 visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
8614 for those, so that the GtkIMContextCimple compose tables will
8615 work. Deduce if the keyboard layout has the AltGr key, and set the
8616 above flag accordingly.
8618 2003-07-26 Matthias Clasen <maclas@gmx.de>
8620 * gtk/gtkwidget.c: Document DND signals.
8622 2003-07-24 Matthias Clasen <maclas@gmx.de>
8624 * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
8625 insensitive when editing isn't possible. (#118150)
8627 2003-07-23 Matthias Clasen <maclas@gmx.de>
8629 * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue
8630 spinbutton wrap. (#118097, John Darrington)
8632 * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps.
8634 2003-07-20 Hans Breuer <hans@breuer.org>
8636 * makefile.msc : new file to build it all
8637 * Makefile.am : ... added to EXTRA_DIST
8639 * gdk/makefile.msc gtk/stock-icons/makefile.msc
8640 gtk/makefile.msc.in tests/makefile.msc : updated
8642 * gdk/gdk.def gtk/gtk.def : export a bunch of new
8645 * gtk/gtkbbox.c : use g_return_val_if_fail() if
8646 there is a value to return
8648 * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
8651 * gtk/gtkicontheme.c : ported to use GTimeVal instead of
8652 struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
8654 * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
8656 * gtk/gtkimmulticontext.c : use gtkprivate.h
8658 * gtk/stock-icons/stock_color_picker_25.png
8659 gtk/stock-icons/stock_jump_to_rtl_16.png
8660 gtk/stock-icons/stock_jump_to_rtl_24.png
8661 gtk/stock-icons/stock_redo_rtl_16.png
8662 gtk/stock-icons/stock_redo_rtl_24.png
8663 gtk/stock-icons/stock_undelete_rtl_16.png
8664 gtk/stock-icons/stock_undelete_rtl_24.png
8665 gtk/stock-icons/stock_undo_rtl_16.png :
8666 gtk/stock-icons/stock_undo_rtl_24.png :
8669 Sat Jul 19 22:39:24 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8671 * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
8672 leftover request of {xy}thickness
8674 Sat Jul 19 16:26:02 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8676 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
8677 attempt to add a NULL icon to the box.
8679 Sat Jul 19 12:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8681 * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
8684 2003-07-19 Matthias Clasen <maclas@gmx.de>
8686 * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id.
8687 * gtk/gtkiconfactory.c (get_default_icons): Add
8688 stock_dialog_authentication_48. (#65765)
8689 * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
8690 * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
8693 * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
8696 Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8698 * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
8701 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
8702 (gtk_widget_real_focus_{in|out}_event): queue shallow draws
8703 instead of full draws.
8705 2003-07-18 Matthias Clasen <maclas@gmx.de>
8707 * gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
8709 * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
8710 signal, move_viewport.
8711 (gtk_text_view_move_viewport): New function which implements the
8712 move_viewport functionality.
8713 (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
8714 the viewport. (#78669)
8716 * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
8717 move_viewport argument.
8719 * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
8723 * gtk/gtkwindow.c (gtk_window_set_default_icon): New method. (#95816)
8725 * gtk/gtkmessagedialog.h:
8726 * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
8727 (#65501, Sebastian Rittau)
8729 Fri Jul 18 20:06:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8731 * gtk/gtktextview.c (changed_handler): use
8732 gtk_widget_queue_resize_noredraw().
8734 2003-07-16 Jody Goldberg <jody@gnome.org>
8736 * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
8738 Fri Jul 18 19:55:50 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8740 * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
8743 Fri Jul 18 18:43:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8745 By popular request give toolbuttons a border.
8748 (gtk_tool_item_size_allocate):
8749 (gtk_tool_item_size_request): don't request and allocate a border
8752 * gtk/gtktoolbutton.c
8753 (gtk_tool_button_size_allocate):
8754 (gtk_tool_button_size_request): remove these functions
8757 (gtk_toolbar_size_request):
8758 (gtk_toolbar_size_allocate): request and allocate a border if we
8761 Thu Jul 17 19:24:51 2003 Kristian Rietveld <kris@gtk.org>
8765 Fixes issues pointed out by Morten Welinder in #115140.
8767 * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
8768 (do_validate_rows): update validated_area with a logic OR instead
8770 (validate_rows_handler): make the if statement match the one in
8771 validate_rows(), so we don't leak the timeout.
8773 Thu Jul 17 19:12:02 2003 Kristian Rietveld <kris@gtk.org>
8777 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
8778 should only grab focus back if the "cell_editable" widget still
8779 has focus. (Fixes #110104, testcase provided by Marco Pesenti
8782 Thu Jul 17 19:06:34 2003 Kristian Rietveld <kris@gtk.org>
8786 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8787 Don't set attr.event_mask twice, those things were meant to be
8788 ORred. (#115139, pointed out by Morten Welinder).
8790 Thu Jul 17 16:11:21 2003 Kristian Rietveld <kris@gtk.org>
8794 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
8795 if needed. (Fixes #115869, reported by Michael Natterer).
8797 2003-07-15 Matthias Clasen <maclas@gmx.de>
8799 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
8800 Fight against gtk-doc stupidity.
8802 2003-07-13 Matthias Clasen <maclas@gmx.de>
8804 * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to
8805 targets, to pacify gtk-doc.
8807 Sun Jul 13 15:57:57 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8809 * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
8810 label_text, label_widget and icon_widget. (#117312,
8813 Sun Jul 13 01:37:51 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8815 * gtk/gtkmenu.c (gtk_menu_class_init): new properties
8816 "horizontal-offset" and "vertical-offset" that determines the
8817 position of the menu when it is a submenu.
8819 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
8820 submenus according to new vertical- and horizontal-offset
8823 Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
8827 * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
8828 case drags to "0", scroll to the top after dropping. (Fixes #94968,
8829 reported by Alp Toker).
8831 Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
8835 * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
8836 code (#115784, Owen Taylor).
8838 Sat Jul 12 16:01:03 2003 Kristian Rietveld <kris@gtk.org>
8842 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
8843 free the old text and extra_attrs *after* we parsed the new
8844 markup string. (Fixes #114485, reported by Owen Taylor).
8846 Sat Jul 12 15:51:33 2003 Kristian Rietveld <kris@gtk.org>
8850 Fixes #113904, testcase provided by Rene Seindal.
8852 * gtk/gtktreeview.c (gtk_tree_view_button_press): set
8853 pressed_button to -1 when a row has been activated,
8854 (gtk_tree_view_motion_bin_window): only start a drag if there's
8855 a button being pressed.
8857 Sat Jul 12 15:51:18 2003 Kristian Rietveld <kris@gtk.org>
8861 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
8862 gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
8863 to avoid a roundtrip (#110272, Owen Taylor).
8865 Sat Jul 12 15:28:26 2003 Kristian Rietveld <kris@gtk.org>
8869 This patch really really fixes scrolling. Related bugs: #81627,
8870 testcase provided by Timo Sirainen, #111500, testcase provided by
8871 manu, #113241, reported by Pedro Gimeno/Michael Natterer.
8873 * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
8874 which is equal to the lower border of the window means scrolling
8875 to an invisible row, always update the dy when scrolling to an
8876 invisible row, corrected area_above/below calculations for
8877 invisible rows, when walking the tree correct the size
8878 subtracted for invalidated rows, fix wrong logic in comment.
8880 2003-07-11 Matthias Clasen <maclas@gmx.de>
8882 * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
8883 mime_types. (#117219, Steve Chaplin)
8885 Tue Jul 8 20:11:04 2003 Owen Taylor <otaylor@redhat.com>
8887 * gdk/x11/gdkevents-x11.c (get_real_window)
8888 gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
8889 gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
8890 gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
8891 Don't assume that all events start with XEventAny - Xkb events
8892 don't! (#105745). So, only do that for core events, and for
8893 non-core events, add a system for registering event types
8894 that start with XEventAny.
8896 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
8897 Check to see if the result of gdk_window_lookup_for_display()
8898 is actually a window.
8900 Fri Jul 11 20:48:14 2003 Kristian Rietveld <kris@gtk.org>
8902 * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
8903 check a silent assert, so it follows the g_free() behaviour.
8905 2003-07-11 Matthias Clasen <maclas@gmx.de>
8907 * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents
8908 vertically. (#109823, Joe Shaw)
8910 2003-07-11 Morten Welinder <terra@gnome.org>
8912 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
8913 access error. (#69436)
8915 Fri Jul 11 14:32:43 2003 Kristian Rietveld <kris@gtk.org>
8917 Landing GtkTreeModelFilter and the completion code. (Test program
8918 and documentation will follow next week).
8920 * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
8921 gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
8923 * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
8924 necessary code to hook up completion.
8926 * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
8927 GtkCellLayout interface.
8929 * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
8931 * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
8934 Wed Jul 9 19:48:26 2003 Kristian Rietveld <kris@gtk.org>
8938 * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
8939 directly return from ->window_at_pointer, but set win_x and win_y
8940 first if needed. (Fixes #110166, reported by Arno Charlet).
8942 * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
8943 function to accept GdkDrawables and not just GdkWindows. This was
8944 already done in some other functions a while back, but this patch
8945 got lost for some reason.
8947 2003-07-09 Matthias Clasen <maclas@gmx.de>
8949 * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
8950 direction when sorting children. (#116540, Soeren Sandmann)
8952 Tue Jul 8 17:36:21 2003 Owen Taylor <otaylor@redhat.com>
8954 * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c:
8955 Change _gdk_x11_send_xevent_async() to
8956 _gdk_x11_send_client_message_async() avoid using Xlib
8957 internals that are different on Solaris.
8958 (#116917, Morten Welinder)
8960 2003-07-08 Matthias Clasen <maclas@gmx.de>
8962 * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
8963 (#116501, Doug Quale)
8965 Tue Jul 8 21:35:22 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8967 * gtk/gtktoggletoolbutton.h: remove strange #define
8968 * gtk/gtktoolbutton.h: fix cut'n'paste error
8969 * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
8971 * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
8972 private data instead of g_new0()
8973 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
8974 instance private data
8976 Tue Jul 8 21:10:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8978 * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
8979 for INPUT_ONLY window
8980 * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
8981 * gtk/gtknotebook.c (gtk_notebook_realize): same
8982 * gtk/gtkexpander.c (gtk_expander_realize): same
8983 * gtk/gtkrange.c (gtk_range_realize): same
8987 Tue Jul 8 19:57:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
8989 * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
8990 when detail is "menuitem". With the new menu look is isn't needed
8993 * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
8994 resize here, so that tool items will get a chance to relayout
8995 themselves based on the toolbar configuration.
8997 change DEFAULT_SPACE_SIZE to 4 instead of 5
9000 Get rid of "!GTK_BIN (item)->child means separator". Separators
9001 are widgets in their own right
9003 change DEFAULT_SPACE_SIZE to 4 instead of 5
9005 (get_space_size): remove this function
9006 (toolbar_item_is_homogeneous): new function
9008 * gtk/gtkseparatortoolitem.c
9009 (gtk_separator_tool_item_size_request): new function.
9011 Tue Jul 8 14:10:35 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9013 * gtk/gtktoggletoolbutton.h: use private data, add new
9014 internal function _gtk_toggle_tool_button_get_button()
9016 * gtk/gtktoolbutton.h: move to private data
9018 * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9021 Tue Jul 8 12:50:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9023 * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9024 type check, (#116947, Krasimir Angelov)
9026 * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9028 * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9029 data. Not instance private data yet, because of bug 116921.
9031 * gtk/gtktoolitem.h: new accessors:
9032 gtk_tool_item_get_homogeneous ()
9033 gtk_tool_item_get_expand ()
9034 gtk_tool_item_get_pack_end ()
9035 gtk_tool_item_get_use_drag_window ()
9037 Mon Jul 7 16:50:32 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9039 * gtk/gtkcellrenderertext.c
9040 (gtk_cell_renderer_text_class_init): remove accidentally committed
9044 (gtk_toolbar_paint_space_line): remove this function
9045 (gtk_toolbar_expose): always propagate expose, even if the item is
9048 * gtk/gtkseparatortoolitem.c
9049 (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9050 (get_space_size): new function.
9051 (get_space_style): new function
9053 Sun Jul 6 13:00:20 2003 Owen Taylor <otaylor@redhat.com>
9055 * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9056 * gtk/gtkdnd.c (gtk_drag_begin_internal): Remove use
9057 of GDK_POINTER_MOTION_HINT_MASK.
9059 * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9060 of the drag into an idle as a superior form of
9063 * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9064 creation here, so that we have an icon at the start
9065 of the drag (e.g., when retrieving the window cache
9068 Sun Jul 6 17:21:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9070 * docs/widget_geometry.txt: better drawing of GtkMenuItem
9071 * docs/widget_geometry.txt: add notes about GtkMenu
9072 * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9074 Sat Jul 5 10:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9076 * gtk/gtkmenu.c: add vertical_padding style property.
9078 * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9079 arrow_spacing and horizontal_padding. Also center separators and
9080 make them a bit taller.
9082 * gtk/*menuitem.c: use new style properties.
9084 * docs/widget_geometry.txt: Add note about GtkMenuItem
9087 (gtk_default_draw_vline, gtk_default_draw_hline):
9090 (gtk_default_draw_shadow): draw a black border around menus.
9092 * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9093 calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9094 x2 and y1, y2 respectively, not x, width and y, height).
9096 Sat Jul 5 09:55:38 2003 Owen Taylor <otaylor@redhat.com>
9098 * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9099 all the atoms in the target list at once.
9101 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9102 Local drag short-circuit.
9104 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9105 local case, poke the actions in directly instead of
9106 going through xdnd_set_actions.
9108 * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9111 * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9112 XSelectInput()/add a filter if the drag is local.
9114 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection):
9115 Simplify handling of "XdndSelection".
9117 * gdk/x11/gdkevents-x11.c
9118 (gdk_event_send_client_message_to_all_recurse): Somehow,
9119 a WM_STATE => _NET_WM_STATE change hand been made here.
9121 * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9122 xatom_names, not atom_names.
9124 * tests/testdnd.c (target_drag_motion): Make the trashcan
9125 open again. (Got lost in deprecation cleanup.)
9127 Sat Jul 5 00:49:32 2003 Owen Taylor <otaylor@redhat.com>
9129 * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9130 earlier, so we don't get a big pile of uncompressed
9131 motion events before the grab takes effect.
9133 * gtk/gtkdnd.c (gtk_drag_update_icon): Call
9134 gdk_window_process_all_updates() so that the area
9135 we are dragging over gets a change to redraw.
9137 * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use
9138 gdk_window_get_position(), not gdk_window_get_origin().
9140 * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9141 gdkdisplay-x11.h: use XShapeQueryExtension to
9142 avoid duplicate XQueryExtension when we actually
9143 use it. Remove unnecessary caching in GdkDisplayX11.
9145 Fri Jul 4 23:49:22 2003 Owen Taylor <otaylor@redhat.com>
9147 * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info):
9148 Function to get a range of information about all the
9149 children of a window in a single pass.
9151 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9152 gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9153 _gdk_x11_get_window_child_info() to greatly reduce
9154 the number of roundtrips.
9156 Fri Jul 4 22:57:18 2003 Owen Taylor <otaylor@redhat.com>
9158 * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9159 a function to XSendEvent() and call a calback on
9162 * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9163 messages to the same process, use _gdk_send_xevent_async().
9165 Fri Jul 4 22:26:27 2003 Owen Taylor <otaylor@redhat.com>
9167 * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9168 toplevel-specific pieces of GdkWindowImplX11 into
9169 a separate GdkToplevelX11 structure.
9171 Fri Jul 4 22:05:09 2003 Owen Taylor <otaylor@redhat.com>
9173 * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9174 some leftover fields.
9176 Fri Jul 4 15:57:52 2003 Owen Taylor <otaylor@redhat.com>
9178 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9179 Use asynchronously _gdk_x11_set_input_focus_safe
9180 to avoid having to trap errors and XSync().
9182 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9183 _gdk_x11_set_input_focus_safe() here as well.
9185 * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9186 Rework handling of property notifies on _NET_WM_STATE
9187 so that we ignore _NET_WM_DESKTOP notifies unless we
9190 * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9191 XShmQueryExtension() rather than XQueryExtension() to
9192 avoid extra rountrip.
9194 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9195 Remove unused call to XGetWindowAttributes()
9197 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9198 unused call to XGetKeyboardControl().
9200 * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9203 * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
9204 No-op implementations of gdk_display_flush().
9206 * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9207 gdk_display_flush() rather than gdk_flush() to avoid
9210 * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9211 gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9212 so that we don't have to get the property back from the server.
9214 * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9215 the serial of when we map a toplevel to allow optimizing
9216 out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9218 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9219 XTranslateCoordinates() for override-redirect windows.
9221 Fri Jul 4 15:59:27 2003 Owen Taylor <otaylor@redhat.com>
9223 * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9224 about setting window group after the window is mapped from docs
9225 - nothing the ICCCM forbids that.
9227 * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9228 Fix g_return_val_if_fail() in void return function.
9230 * configure.in: Fix misplaced comma that was resulting
9231 in XShm always being disabled.
9233 Fri Jul 4 19:55:49 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9235 * tests/stresstest-toolbar: remove this accidentally committed
9238 * tests/stresstest-toolbar.c: really add this new test
9240 Fri Jul 4 19:06:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9242 * tests/stresstest-toolbar.c: new test for removing items
9244 * tests/testtoolbar.c: add a popup menu
9246 * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9247 assert widget->parent == container when the container is a
9250 * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9251 simpler. Also make correct.
9253 * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9254 popup_context_menu a boolean handled signal.
9256 2003-07-04 Tor Lillqvist <tml@iki.fi>
9258 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9259 gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9260 the width and height of the bounding rectangle only after the
9261 minumum x and y have been found, and need a separate loop for
9262 it. Thanks to Bruce Hochstetler for providing a sample program
9265 2003-07-03 Tor Lillqvist <tml@iki.fi>
9267 * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9268 (#116537, Peter Zelezny)
9270 Thu Jul 3 03:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9272 * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9273 fix warning. Assign something to old_value to quiet gcc
9276 (start_spinning): gtk_timeout_add->g_timeout_add
9278 * gtk/gtkicontheme.c
9279 (theme_lookup_icon): Make it compile (remove double semicolon)
9281 * gtk/gtktoolbutton.c
9282 (gtk_tool_button_class_init): Long comment about properties.
9283 (gtk_tool_button_class_init): Improve text for "use_underline"
9285 (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9286 on whether the passed-in label has use_mnemonic set
9287 (gtk_tool_button_create_menu_proxy): Split image cloning out in
9288 new function. Make that function also handle image with pixbuf
9290 (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9291 instead of gtk_container_remove().
9292 (gtk_tool_button_construct_contents): Fix eliding bug
9295 (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9297 (gtk_toolbar_button_press): Make popup_context_menu signal provide
9298 coordinates and button number
9300 * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9302 * tests/apple-red.png: new file
9304 Wed Jul 2 18:00:56 2003 Owen Taylor <otaylor@redhat.com>
9306 * gtk/gtkicontheme.[ch]: Implement a loader for
9307 named themed icon based on from gnome-desktop library
9310 * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9313 * gtk/gtkiconfactory.[ch]: Add
9314 gtk_icon_source_set/get_icon_name() to allow stock icons
9315 to be based off of named theme icons.
9317 * gtk/gtkiconfactory.c: Rework sources so that the source
9318 is *either* a pixbuf, or a filename, or an icon name,
9319 instead of the pixbuf/filename mix it was before. Put a
9320 workaround for get_pixbuf() so that it can return the
9321 filename pixbuf, e.g, for render_icon().
9323 * gtk/gtkiconfactory.c: Make the default setup use
9324 themed icons, and add builtin icons to the default
9325 icon theme for all the standard pixbufs, so we
9326 don't rely on actually having an icon theme on disk.
9328 * gtk/gtkrc.c: Add support for @"icon-name" to specify
9329 a themed icon for a stock icon source.
9331 * tests/Makefile.am test/testicontheme.c: Add a test
9332 program from gnome-desktop.
9334 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9335 Net/IconThemeName / gtk-icon-theme-name setting.
9337 * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9338 update the icon cache serial so we don't continually
9339 think we are out-of-date.
9341 * gtk/gtkwidget.c: Fix a couple of references in doc comments
9342 to ::direction_set that should have been to ::direction-changed
9344 Wed Jul 2 14:45:41 2003 Owen Taylor <otaylor@redhat.com>
9346 * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9347 style to the widget.
9349 Wed Jul 2 15:42:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9351 * gtk/gtk.h: Add new toolbar headers
9353 * tests/testtoolbar.c: new file
9355 * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9357 * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9359 Tue Jul 1 22:49:25 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9362 (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9363 inside a for loop (pointed out by Morten Welinder).
9364 (gtk_toolbar_focus_home_or_end): Minor formatting change
9368 * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9369 gtk_toolbar_elide_underscores instead.
9371 * gtk/gtktoolbar.c: rename signal from focus_ends to
9373 (_gtk_toolbar_elide_underscores): export this as an internal
9375 (gtk_toolbar_move_focus): add comment explaining difference to
9376 gtk_toolbar_focus();
9377 (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
9378 TAB_BACKWARD focus the right widgets in RTL mode
9380 * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
9381 "label" and "icon" parameters
9383 * gtk/gtktoolbutton.[ch]: remove icon_set property.
9385 2003-07-01 Matthias Clasen <maclas@gmx.de>
9387 * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
9388 (116364, Morten Welinder)
9390 * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
9391 corresponding dialogs.
9393 * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
9395 (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c.
9397 * gtk/gtkfontbutton.[hc]: New files containing a font picker widget.
9399 * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget.
9401 * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
9403 * gtk/gtkexpander.c: Small additions to the docs.
9405 2003-07-01 Tor Lillqvist <tml@iki.fi>
9407 * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
9408 WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
9410 2003-07-01 Matthias Clasen <maclas@gmx.de>
9412 * configure.in: Check for Xcursor.
9414 * gdk/x11/gdkcursor-x11.c:
9416 * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
9417 gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
9418 gdk_display_supports_cursor_color(),
9419 gdk_display_get_default_cursor_size() and
9420 gdk_display_get_maximal_cursor_size(). (#69436)
9422 2003-06-30 Tor Lillqvist <tml@iki.fi>
9424 * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
9425 callback proc for EnumWindows().
9426 (gdk_drag_find_window_for_screen): Actually take the drag_window
9427 argument into account: Instead of using WindowFromPoint(), use
9428 EnumWindows(), to be able to skip the drag_window. (#116320, Tony
9429 M Brown, Herman Bloggs)
9431 * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
9432 gdk_window_ref()/unref() calls with g_object_ref()/unref().
9433 Consistently use %p format in debugging output of pointers and
9436 2003-06-30 Mark McLoughlin <mark@skynet.ie>
9438 * gtk/gtkexpander.h: kill some stray characters
9441 2003-06-30 Mark McLoughlin <mark@skynet.ie>
9443 Add GtkExpander. See discussion in bug #60553.
9445 * gtk/gtkexpander.[ch]: add.
9447 * gtk/Makefile.am: build gtk-expander.[ch].
9449 * docs/widget_geometry.txt: add info on the layout
9452 Mon Jun 30 01:20:19 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9454 * gtkradiotoolbutton.c: new file
9455 * gtkradiotoolbutton.h: "
9456 * gtktoggletoolbutton.c: "
9457 * gtktoggletoolbutton.h: "
9458 * gtktoolbutton.c: "
9459 * gtktoolbutton.h: "
9462 * gtktoolbar.c: many changes
9463 * gtktoolbar.h: many changes
9464 * gtkseparatortoolitem.c: new file
9465 * gtkseparatortoolitem.h "
9469 - Items on a toolbar are now separate widgets, instances of a
9470 subclass of GtkToolItem.
9472 - Items there aren't room for on the toolbar are unmapped, and an
9473 overflow menu with a proxy menu item is added instead.
9475 - The toolbar is keyboard navigatable. Press TAB to focus the
9476 first item, then use arrow keys and Ctrl TAB to move around the
9477 toolbar. TAB moves focus out of the toolbar.
9479 - Bascially all of the old toolbar API is deprecated in favor of
9480 new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
9482 - The toolbar is backwards compatible with the old toolbar.
9484 2003-06-29 Matthias Clasen <maclas@gmx.de>
9486 * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
9487 from docs, some more formatting fixes.
9489 2003-06-28 Tor Lillqvist <tml@iki.fi>
9491 Fix for #111028, thanks to J. Ali Harlow, who writes:
9492 I found that the GdkPixmap->GdkImage reference really isn't
9493 important. It's only really there to have somewhere convenient to
9494 store the location of the pixel data in the pixmap and as an easy
9495 way of accessing the dimensions of that data. I have therefore put
9496 together a fix which removes this reference entirely which seems
9497 to solve the problem.
9499 * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
9500 Instead of a pointer to a GdkImage, keep a pointer to the pixels
9503 * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
9504 (_gdk_win32_new_image): New function, replacing the above. Creates
9505 a GdkImage without any associated GdkPixmap.
9506 (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
9508 * gdk/win32/gdkprivate-win32.h: Remove from here, too.
9510 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
9511 * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
9512 * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
9513 * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
9514 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
9515 gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
9516 Corresponding changes.
9518 Thu Jun 26 21:41:16 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9520 * gtk/gtktreeviewcolumn.c
9521 (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
9522 and "is_expanded" if the new value is different fromt he old one.
9524 Wed Jun 25 18:59:15 BST 2003 Tony Gale <gale@gtk.org>
9526 * docs/faq/gtk-faq.sgml: Fix typos. Update
9527 thread example I missed yesterday.
9529 2003-06-24 Matthias Clasen <maclas@gmx.de>
9531 * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
9534 * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser):
9535 (gtk_widget_class_list_style_properties): Use same parameter names as in
9536 header (to silence gtk-doc).
9538 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
9540 Tue Jun 24 20:00:45 BST 2003 Tony Gale <gale@gtk.org>
9542 * docs/faq/gtk-faq.sgml: Thread support updates
9543 from Owen. Various suggestions from Steve Chaplin.
9545 2003-03-24 Mohammad DAMT <mdamt@bisnisweb.com>
9547 * po/id.po: Updated Indonesian translation
9549 2003-06-21 Tor Lillqvist <tml@iki.fi>
9551 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
9552 emulating X11's automatic grab on button down, pass owner_events
9553 as FALSE. According to the XLib spec, automatic grabs use True for
9554 owner_events when OwnerGrabButtonMask is selected, and I don't see
9555 the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
9556 (find_window_for_pointer_event): Improve debugging output.
9558 2003-06-17 Tor Lillqvist <tml@iki.fi>
9560 * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
9561 subdirectory, where libtool 1.5 installs them.
9563 * README.win32: Point to FSF's binary Win32 distribution of
9566 2003-06-17 Matthias Clasen <maclas@gmx.de>
9568 * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
9569 macros to check for XML catalog contents and path, borrowed from
9571 * configure.in: New option --enable-man to enable regeneration of
9572 man pages from Docbook, if the necessary tools are found.
9574 2003-06-15 Matthias Clasen <maclas@gmx.de>
9576 * gtk/gtkcalendar.c (gtk_calendar_class_init):
9577 * gtk/gtknotebook.c (gtk_notebook_class_init):
9578 * gtk/gtkalignment.c (gtk_alignment_class_init):
9579 * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
9582 * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs
9583 to the proper place, immediately before the g_signal_new() call.
9585 * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags
9586 more obvious. (#115122, Jeff Franks)
9588 2003-06-12 Anders Carlsson <andersca@codefactory.se>
9590 * gtk/gtkwidget.c: (event_window_is_still_viewable):
9591 Special case pixmaps. (#114880)
9593 2003-06-12 Matthias Clasen <maclas@gmx.de>
9595 * gtk/gtkwidget.c: Document child-notify and drag-data-received
9596 signals. Owen, we need to figure out where the best place for
9597 these comments in the source is. I currently put them in front of
9600 2003-06-11 Matthias Clasen <maclas@gmx.de>
9602 * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
9604 Thu Jan 12 01:01:19 2003 Kristian Rietveld <kris@gtk.org>
9606 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9607 silly typo fix. s/seperator/separator/. This gets rid of the
9608 assert spam when using TreeView.
9610 Tue Jun 10 11:23:48 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
9612 * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
9613 function for XIM instantiate callback.
9614 * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
9615 where call to XOpenIM() or XRegisterIMInstantiateCallback() is
9617 * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
9618 for XIM's destroy callback.
9619 * modules/input/gtkimcontextxim.c (get_im): add a check if info->im
9620 is set or not - if it's not set, call xim_info_try_im() to try to
9622 * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
9623 filter_key_release flag of the context.
9624 * modules/input/gtkimcontextxim.c (get_ic_real): removed
9625 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
9626 code from the removed get_ic_real().
9628 For XIM instantiation, destruction and re-instantiation. With
9629 this, Gtk+ apps will be able to connect or reconnect to the XIM,
9630 when it starts after the apps, or when the XIM gets lost and recover.
9633 Mon Jun 10 01:12:31 2003 Kristian Rietveld <kris@gtk.org>
9637 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
9638 check if width is !null, not *width. Doh.
9640 Tue Jun 10 01:09:33 2003 Kristian Rietveld <kris@gtk.org>
9644 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9645 Remove the weird dx logic, get all cell_area and background_area
9646 calculations right. Not sure what was up with it before. (Fixes
9647 #110989, testcase from Vasco Alexandre da Silva Costa).
9649 Tue Jun 10 00:58:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9651 * tests/testgtk.c: Make it compile with C89 compilers
9653 2003-06-10 Matthias Clasen <maclas@gmx.de>
9655 * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
9656 property "overwrite".
9657 (gtk_text_view_[gs]et_property): Handle "overwrite".
9658 * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
9659 and setter for "overwrite" property. (#110241, Jeroen Zwartepoorte)
9661 2003-06-09 Matthias Clasen <maclas@gmx.de>
9663 * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
9664 properties "resize" and "shrink".
9665 (gtk_paned_[gs]et_child_property): Implementations of
9666 GtkContainer::[gs]et_child_property.
9667 * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
9668 paned child properties instead of remove/add hacks. (#114667,
9671 Mon Jun 9 16:18:11 2003 Owen Taylor <otaylor@redhat.com>
9673 * gtk/gtknotebook.c (gtk_notebook_button_press): Back
9674 out event->window test - it wasn't needed because
9675 of the call to get_widget_coordinates().
9677 * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
9678 call to gtk_widget_grab_focus() when not clicking on
9679 any tabs. (Real fix for #114534)
9681 Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
9683 * tests/testdnd.c: Use application/x-rootwindow-drop for
9684 root window drops. (#108670, Alex Larsson)
9686 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
9687 Accept either application/x-rootwin-drop (what GTK+ has always used)
9688 or application/x-rootwindow-drop (what the XDND standard specifies).
9690 Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
9692 * gtk/gtkwidget.c (event_window_still_viewable):
9693 Before delivering an event to a widget, check that
9694 (if relevant), the event's window is still viewable.
9695 (#105642, Dennis Björklund)
9697 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
9698 NULL out private->parent, since after destruction
9699 it might not be valid any more.
9701 * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
9702 accesses before g_return_val_if_fail(). Treat
9703 DESTROYED windows as unmapped.
9705 Thu Jun 5 09:28:03 2003 Owen Taylor <otaylor@redhat.com>
9707 * gtk/gtkentry.c: Recompute unconditionally in
9708 gtk_entry_style_set, and in a new gtk_label_screen_changed().
9709 Protect the guts of recompute_idle_func() with
9710 gtk_widget_has_screen(). (#114040, Morten Welinder)
9711 Fix FALSE/0 confusion.
9713 Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
9715 * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
9718 Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
9720 * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
9721 set_adjustment (viewport, NULL);
9723 2003-06-07 Matthias Clasen <maclas@gmx.de>
9725 * gtk/gtkiconfactory.c (get_default_icons):
9726 * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
9727 * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
9728 undelete and revert. (#96633)
9730 Fri Jun 6 16:25:44 2003 Owen Taylor <otaylor@redhat.com>
9732 * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
9733 refactoring of code to reduce duplication; fixes include:
9735 - gtk_viewport_realize(): Position the window correct from adjustment
9736 values. (#110737, Michael Natterer)
9738 - Remove some division-by-zero checks in places where there is no
9739 longer division. (#110737)
9741 - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
9742 G_PARAM_CONSTRUCT, so that there will always be adjustments, even
9743 if gtk_viewport_new isn't used (#101135, Thomas Leonard).
9745 - Switch over to encapsulated lazy-creation for hadjustment/
9746 vadjustment; even with the CONSTRUCT property, we need this after
9749 - When updating the adjustment, immediate set their values to
9750 match the the current range of the viewport, and update the
9751 viewport position to match the value of the new adjustments.
9754 2003-06-06 Tor Lillqvist <tml@iki.fi>
9756 * gdk/win32/gdkprivate-win32.h: Fix typo.
9758 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
9759 graphics_exposures and subwindow_mode, too, even if they aren't
9762 Fri Jun 6 23:38:23 2003 Kristian Rietveld <kris@gtk.org>
9766 * gtk/gtktreeview.c (do_expand_collapse),
9767 (expand_collapse_timeout), (cancel_arrow_animation): made
9768 expand_collapse_timeout a wrapper with locks around
9769 do_expand_collapse, made cancel_arrow_animation use
9770 do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
9773 Fri Jun 6 11:05:45 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
9775 * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
9776 * modules/input/gtkimcontextxim.c (preedit_start_callback,
9777 preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
9778 to keep preedit-[start,changed,end] signals from being called during
9779 finalization (#111861).
9781 2003-06-05 Noah Levitt <nlevitt@columbia.edu>
9783 * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
9784 presses that are not on the tab (#114534).
9786 Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
9788 * demos/Makefile.am: Conditionalize dependencies for
9789 gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow).
9790 Buildtest-inline-pixbufs.h in srcdir. Don't try to build
9791 test-inline-pixbufs.h if we don't have libpng.
9793 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
9794 Add a dependency on gdk-pixbuf.loaders when not
9795 cross-compiling, remove the dependency on gdk-pixbuf-csource
9796 when not cross compiling.
9798 Thu Jun 5 20:12:51 2003 Owen Taylor <otaylor@redhat.com>
9800 * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
9801 gtk_window_get_geometry_info() returning NULL.
9802 (#107311, John Finlay)
9804 Thu Jun 5 19:24:33 2003 Owen Taylor <otaylor@redhat.com>
9806 * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
9807 twice the border width from the width/height, not
9808 1x the border width. (#106336, Rodney Dawes)
9810 Thu Jun 5 15:33:38 2003 Owen Taylor <otaylor@redhat.com>
9812 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
9813 If at the end of the buffer, move to the end iter -
9814 parallels behavior of move_iter_to_previous_line.
9815 (#81960, Padraig O'Briain)
9817 Thu Jun 5 16:12:54 2003 Owen Taylor <otaylor@redhat.com>
9819 #80023, Yao Zhang, TOKUNAGA Hiroyuki
9821 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
9822 Account for the preedit cursor offset if the iter passed
9823 in is at the same place as the insertion cursor.
9825 * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
9826 Encapsulate getting the insertion cursor location.
9828 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
9829 Pass the real y/height to the IM context. Take
9830 text_view->x/yoffset into account.
9832 Thu Jun 5 16:52:54 2003 Owen Taylor <otaylor@redhat.com>
9834 * gtk/gtktextview.[ch]: Never scroll on focus in
9835 (#81893, Patch from Paolo Maggi)
9837 * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
9838 Scroll to the current cursor location before handling
9839 the action, in case the user just tabbed in
9840 and the cursor is offscreen.
9842 Thu Jun 5 17:20:40 2003 Owen Taylor <otaylor@redhat.com>
9844 #107883, Gustavo Giráldez
9846 * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
9847 Split out the case where we know we changed, and
9848 already dealt with our cached line being invalidated
9849 from external calls to gtk_text_layout_changed.
9851 * gtk/gtktextlayout.c (gtk_text_layout_changed):
9852 Check if the invalidate yrange intersects our
9853 cached line, and clear it if necessary.
9855 2003-06-05 Tor Lillqvist <tml@iki.fi>
9857 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
9860 2003-06-05 Matthias Clasen <maclas@gmx.de>
9862 * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
9863 (gtk_text_view_grab_notify):
9864 (gtk_text_view_state_changed): Implement these
9865 to unobscure cursor when grab shadowed or insensitised.
9866 (gtk_text_view_unobscure_mouse_cursor): New function to undo the
9867 effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
9868 gtk_text_view_motion_event().
9869 (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
9871 * gtk/gtktextview.c (select_all): New keybinding signal for
9872 (un)selecting the whole buffer. Bound to C-a/C-\. (see #107889)
9874 * gtk/gtkcalendar.c (calendar_timer):
9875 (stop_spinning): Replace deprecated gtk_timeout_* functions by
9876 their GLib counterparts. (#114429)
9878 * gtk/gtktreestore.c (gtk_tree_store_new):
9879 * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on
9882 Wed Jun 4 19:42:17 2003 Owen Taylor <otaylor@redhat.com>
9884 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
9885 When drawing underlines, join up adjacent runs
9886 where possible, so we don't get changes in
9887 shaper/font/etc. breaking underlines. (#103662,
9890 Wed Jun 4 19:22:58 2003 Jonathan Blandford <jrb@redhat.com>
9892 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
9893 Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
9894 improve the speed of inserting rows into an already sorted list,
9897 Wed Jun 4 19:24:28 2003 Owen Taylor <otaylor@redhat.com>
9899 * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
9900 track of when we have a clip mask set for the GC,
9901 and when we unset it, or switch to a clip region,
9902 immediately call XSetClipMask (..., None) to avoid
9903 Xlib caching stale data. (#111806)
9905 * gtk/gtktextdisplay.c: Don't set a clip mask
9906 when drawing alpha pixmaps; it isn't necessary any more.
9909 Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
9911 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
9912 gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
9913 Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
9916 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
9917 gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
9918 Use state_type = STATE_INSENSITIVE for insensitive menu items.
9920 Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
9924 * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
9925 assert for get_info. (reported by Michael Natterer),
9926 (gtk_tree_view_expand_all_emission_helper),
9927 (gtk_tree_view_expand_all_helper): emit row_expanded for all
9928 expanded rows during an _expand_all operation. (Fixes #111280,
9929 reported by Benjamin Bayart).
9931 Tue Jun 3 18:32:30 2003 Owen Taylor <otaylor@redhat.com>
9933 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
9934 respond to pings on a root window; prevents infinite
9935 loops if we are selecting for SubstructureNotify on the
9936 root window. (#111945, Sergey V. Udaltsov)
9938 Tue Jun 3 17:39:16 2003 Owen Taylor <otaylor@redhat.com>
9940 #71597, reported by Morten Welinder
9942 * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
9943 (Patch from Christian Petig)
9945 * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
9946 Major rewrite of 555 and 565 conversion routines:
9948 - Move all the bit shifting into a small block of macros,
9949 eliminating much duplication of complicated arithmetic.
9950 - Get rid of 2-pixels at a time code, which was buggy,
9951 hard to maintain, caused unaligned accesses, and
9952 probably didn't actually perform any better.
9953 - Simplify cases where different data types were
9954 used for the little and big endian cases, use
9955 GUINT16_SWAP_LE_BE() where appropriate.
9957 Tue Jun 3 15:05:47 2003 Owen Taylor <otaylor@redhat.com>
9959 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
9960 bad optimization for src_rowstride == dest_stride.
9961 (Didn't consider the case where we were copying only
9962 partial widths of a wider source buffer)
9963 (#113034, reported by Hans Petter Jansson)
9965 2003-06-03 Michael Natterer <mitch@gimp.org>
9967 * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
9968 reenabled button_release events for xinput devices. (#113948)
9970 2003-06-03 Christian Rose <menthos@menthos.com>
9972 * configure.in: Added "li" to ALL_LINGUAS.
9974 Mon Jun 2 18:58:54 2003 Owen Taylor <otaylor@redhat.com>
9976 * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
9977 map the event window if the notebook isn't mapped. (#113980,
9980 2003-06-02 Sven Neumann <sven@gimp.org>
9982 * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
9984 * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
9986 2003-06-01 Matthias Clasen <maclas@gmx.de>
9988 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add
9989 Since: 2.4 to the docs.
9991 * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
9992 an example to the docs. (#98427)
9994 2003-05-30 Murray Cumming <murrayc@usa.net>
9996 * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
9997 gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
9998 uses the new private data system - see g_type_class_add_private() in
9999 gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10001 2003-05-30 Matthias Clasen <maclas@gmx.de>
10003 * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10004 signature of gtk_notebook_draw_arrow() for Solaris builds to go
10005 through. (#114043, Anand Subramanian)
10007 Thu May 29 18:30:35 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10009 * modules/input/imipa.c:
10010 use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10012 Thu May 29 18:08:01 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10014 * gtk/gtkimmodule.c (_gtk_im_module_list):
10015 use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10017 Thu May 29 09:34:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10019 * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10020 label of default input method localizable.
10021 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10022 use translations of input method context names
10023 * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10024 modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10025 modules/input/imti-er.c, modules/input/imti-et.c
10026 modules/input/imviqr.c, modules/input/imxim.c
10027 use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10030 Thu May 29 18:23:01 2003 Kristian Rietveld <kris@gtk.org>
10032 Merged from stable.
10034 * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10035 grab separate, the user might clear the tree in the focus-in
10036 callback. (Fixes #113086, testcase from Felipe Heidrich).
10038 Thu May 29 18:06:26 2003 Kristian Rietveld <kris@gtk.org>
10040 Merged from stable.
10042 * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10043 of row reference when we unset the model. Also reset
10044 dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10046 Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
10048 Merged from stable.
10050 * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10051 the current editing, if it exists. (Fixes #108956, reported by
10054 Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
10056 Merged from stable.
10058 * gtk/gtktreeview.c (check_selection_helper): new function,
10059 (gtk_tree_view_row_deleted): traverse the tree from the
10060 deleted node to see whether the selection changed, instead of
10061 just checking this node. (Fixes #107400, reported by 'Duncan').
10063 Thu May 29 16:31:34 2003 Kristian Rietveld <kris@gtk.org>
10065 Merged from stable.
10067 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10068 (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10069 instead of _maybe_begin_dragging_row, so the icon can be
10070 overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10072 Thu May 29 16:14:04 2003 Kristian Rietveld <kris@gtk.org>
10074 Merged from stable.
10076 * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10077 cell_area x/width for the expander if needed. (Fixes #101748,
10078 reported by Dave Cook and Mariano Suarez-Alvarez).
10080 Thu May 29 16:01:38 2003 Kristian Rietveld <kris@gtk.org>
10082 Merged from stable.
10084 * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10085 if tree/node are still the same after _internal_select_node.
10086 (Fixes #92256, reported by edscott).
10088 Thu May 29 15:38:30 2003 Kristian Rietveld <kris@gtk.org>
10090 Fixes #75745, reported by Richard Hult. Merged from stable.
10092 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10093 GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10096 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10097 if we are rendering a cursor row, and the cell the be
10098 processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10099 flag (else we unset it).
10101 2003-05-27 Matthias Clasen <maclas@gmx.de>
10103 * gtk/gtkwindow-decorate.c:
10104 * gtk/gtktreeprivate.h:
10106 * gdk/win32/gdkwindow-win32.h:
10107 * gdk/linux-fb/gdkprivate-fb.h:
10108 * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10109 unspecified signedness. (#112919, Morten Welinder)
10111 * gtk/queryimmodules.c (escape_string):
10112 * gtk/gtktextbtree.c (_gtk_text_btree_get_text):
10113 * gtk/gtksettings.c (_gtk_settings_parse_convert):
10114 * gtk/gtkrc.c (gtk_rc_parse_assignment):
10115 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
10116 * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
10117 occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10120 2003-05-27 Tor Lillqvist <tml@iki.fi>
10122 * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10123 files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10125 * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10126 win32/libgdk-win32.la.
10128 * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10130 Sat May 24 22:19:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
10132 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10133 scrollbar slider length 21 instead of 7.
10135 2003-05-23 Matthias Clasen <maclas@gmx.de>
10137 * gtk/gtknotebook.c: Add support for up to four scroll
10138 arrows. Control their display by new style properties
10139 "has_forward_stepper", "has_backward_stepper",
10140 "has_secondary_forward_stepper" and
10141 has_secondary_backward_stepper". (#110540)
10143 * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10144 click_child three bits wide, add
10145 has_{before,after}_{previous,next} fields.
10147 * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10148 focus out of hex_entry. (#112665)
10149 (hex_focus_out): New signal handler for focus out of hex entry.
10151 Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
10153 * gtk/gtkwidget.c (gtk_widget_realize):
10154 g_return_if_fail() if
10155 GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10156 (#107872, Christian Reis)
10158 2003-05-22 Matthias Clasen <maclas@gmx.de>
10160 * gtk/gtkfilesel.c (gtk_file_selection_create_dir):
10161 (gtk_file_selection_rename_file): Some keynav improvements for the
10162 "Rename File" and "Create Directory" subdialogs: Enter in entry
10163 activates default, default is "Create"/"Rename", Escape cancels
10165 (gtk_file_selection_set_filename): Add a hint about opening
10166 directories. (#113175)
10168 2003-05-22 Matthias Clasen <maclas@gmx.de>
10170 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10171 Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10174 Wed May 21 15:53:14 2003 Owen Taylor <otaylor@redhat.com>
10176 * gtk/gtkprogress.c (gtk_progress_set_format_string,
10177 gtk_progress_set_show_text): Always queue a resize ...
10178 we rely on the size-allocate to do the update, plus a
10179 different format can actually change our size requisition.
10180 (#111052, Vasco Alexandre da Silva Costa)
10182 * gtk/gtkprogress.c (gtk_progress_changed): Track
10183 ::changed as well as ::value_changed, and queue a
10184 resize on ::changed when necessary.
10186 * gtk/gtkprogress.c (gtk_progress_set_adjustment):
10187 Call gtk_progress_changed() here to update or
10188 queue a resize as necessary.
10190 Wed May 21 14:06:13 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10192 * gtk/gtkimcontextsimple.c: added composing rules of
10193 Greek accented letters, patch by Vasilis Vasaitis (#107507)
10195 Wed May 21 13:19:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10197 * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle):
10198 * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10199 gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10201 Wed May 21 12:10:25 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10203 * gtk/gtkimcontextsimple.c:
10204 code that can check the compose table for ascending order,
10205 by Vasilis Vasaitis (#104862).
10207 Wed May 21 12:52:01 2003 Owen Taylor <otaylor@redhat.com>
10209 * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
10210 to pass the unmasked state to gdk_keymap_translate_keyboard_state()
10211 to handle the case where a modifier not in the mask
10212 (like Num_Lock) changes the key value, so replace
10213 the masked state with a state/mask pair. (#106913,
10216 * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10217 in state/mask pair to _gtk_key_hash_lookup()
10219 Tue May 20 21:58:00 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10221 * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10222 fix a memory leak, free input context list (#113259).
10224 2003-05-21 Matthias Clasen <maclas@gmx.de>
10226 * configure.in (all_loaders): Add pcx.
10228 * gtk/gtkcalendar.c: Make calendar controls spin. (#112540)
10230 Tue May 20 17:27:24 2003 Owen Taylor <otaylor@redhat.com>
10232 * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10233 accept a missing gtk.immodules file, some people
10234 want to run without one. (#112406, patch from
10237 Tue May 20 17:05:31 2003 Owen Taylor <otaylor@redhat.com>
10239 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix
10240 height/width confusion (#113370, Xan Lopez)
10242 Tue May 20 15:48:45 2003 Owen Taylor <otaylor@redhat.com>
10244 * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10245 zero all unused parts of client messages (Mainly Motif DND
10246 and EWMH). Also, fix a couple places where we were putting
10247 contents into Motif DND messages that didn't belong.
10248 (#113361, EWMH problem reported by Lubos Lunak)
10250 * gtk/gtkselection.c (_gtk_selection_request): Handle the
10251 case where the property type for the multiple atoms is
10252 ATOM_PAIR by doing the conversions ourselve. This is
10253 needed for Xt inter-operation.
10255 2003-05-19 Arafat Medini <lumina@silverpen.de>
10257 * configure.in: Added ar to ALL_LINGUAS
10259 2003-05-19 Matthias Clasen <maclas@gmx.de>
10261 * gtk/gtksettings.c (gtk_rc_property_parse_border,
10262 gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10263 gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10266 * gtk/gtkwidget.c (gtk_widget_class_install_style_property,
10267 gtk_widget_class_install_style_property_parser): Add docs.
10269 2003-05-17 Matthias Clasen <maclas@gmx.de>
10271 * tests/prop-editor.c: Add navigation for object properties, so
10272 that you can easily edit the properties of the parent of a widget.
10275 Wed May 14 17:45:32 2003 Owen Taylor <otaylor@redhat.com>
10277 * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10278 Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis
10279 inconsistency and leave the old name as an aliass (#104873)
10281 Wed May 14 16:40:09 2003 Owen Taylor <otaylor@redhat.com>
10283 * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10284 from Charles Schmidt to add missing notify (#108305)
10286 Wed May 14 16:00:51 2003 Owen Taylor <otaylor@redhat.com>
10288 * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10289 (#105500, Morten Welinder.)
10291 Wed May 14 09:05:11 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10293 * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10294 instead of gumake for XNFilterEvents event mask(#110493).
10296 2003-05-11 Anders Carlsson <andersca@codefactory.se>
10298 * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10299 a GObject. (#112762)
10301 2003-05-08 Sven Neumann <sven@gimp.org>
10303 * configure.in: set the HAVE_X11R6 automake conditional to false
10304 if not compiling for X11.
10306 2003-05-08 Matthias Clasen <maclas@gmx.de>
10308 * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options):
10309 (gtk_calendar_get_display_options): New functions.
10310 (gtk_calendar_display_options): Depreate. (#64567)
10311 (gtk_calendar_class_init): Add boolean properties for the display
10314 Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com>
10316 Patch from James Henstridge to update to automake-1.7
10319 * autogen.sh: update to call newer tools.
10321 * configure.in: various updates, to use M4 macros to put
10322 variables that change each release at the top.
10323 Use AC_HELP_STRING to format help strings.
10324 Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10326 * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and
10327 gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure
10330 * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10333 * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10334 Use BUILT_SOURCES where appropriate.
10335 Build generated files in builddir rather than srcdir.
10336 Fix uninstall and distclean targets to satisfy distcheck.
10340 * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10341 built first, since we are now using BUILT_SOURCES.
10343 * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10345 * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10346 with geninclude.pl.
10348 * configure.in: Update versions to 2.3.0.
10350 2003-05-06 Tor Lillqvist <tml@iki.fi>
10352 Fix for #110165 (thanks to Arnaud Charlet):
10354 * gdk/win32/gdkevents-win32.c (build_keypress_event,
10355 build_keyrelease_event): For unshifted control char, use
10356 lowercase ASCII keyval.
10357 (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10358 UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10359 lowercase keyval. Use build_key_event_state() here, too, instead
10360 of minor code duplication.
10362 2003-05-06 Matthias Clasen <maclas@gmx.de>
10364 * tests/testmultidisplay.c: Don't include strings.h, it's not
10365 needed anymore. (#112388)
10367 * examples/menu/itemfactory.c:
10368 * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10369 itemfactory example.
10371 2003-05-05 Matthias Clasen <maclas@gmx.de>
10373 * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock): Actually set the
10374 icon type to the stock icon type. (#111735, Dave Bordoley)
10376 2003-05-05 Christian Rose <menthos@menthos.com>
10378 * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
10379 Removed sp, it's replaced by sr@Latn.
10381 Wed Apr 30 22:09:11 BST 2003 Tony Gale <gale@gtk.org>
10383 * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
10386 Mon Apr 28 17:54:39 2003 Jonathan Blandford <jrb@redhat.com>
10388 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
10389 data iff the destroy func isn't NULL.
10391 Thu Apr 24 19:12:05 2003 Owen Taylor <otaylor@redhat.com>
10393 * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
10395 2003-04-23 Abel Cheung <maddog@linux.org.hk>
10397 * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
10399 Tue Apr 22 15:33:51 2003 Owen Taylor <otaylor@redhat.com>
10401 * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
10402 of UTF-8. (#106419, Roozbeh Pournader)
10404 Tue Apr 22 15:17:25 2003 Owen Taylor <otaylor@redhat.com>
10406 * configure.in: Only check for XFT2 if we found pango-xft
10407 (#105692, Jon Nall)
10409 Tue Apr 22 15:12:19 2003 Owen Taylor <otaylor@redhat.com>
10411 * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
10412 PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
10414 Tue Apr 22 19:43:01 BST 2003 Tony Gale <gale@gtk.org>
10416 * docs/faq/gtk-faq.sgml: add note about version converage.
10418 Mon Apr 21 19:02:16 2003 Owen Taylor <otaylor@redhat.com>
10420 * gtk/gtksocket.c (activate_key): Fix prototype for
10421 activate_key. (#108927, Jason D. Hildebrand)
10423 Mon Apr 21 18:42:51 2003 Owen Taylor <otaylor@redhat.com>
10425 * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
10426 Remove geninclude.pl from CVS and don't dist it either,
10427 it is generated. (#108970, Rich Kinder)
10429 Mon Apr 21 18:35:48 2003 Owen Taylor <otaylor@redhat.com>
10431 * gtk/gtkobject.h: Remove a couple of obsolete comments,
10432 fix another comment. (#109737, Britton Kerin)
10434 Mon Apr 21 18:29:03 2003 Owen Taylor <otaylor@redhat.com>
10436 * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
10437 the source list, not just it's contents (Patch
10438 from Charles Kerr, #108243)
10440 Mon Apr 21 18:13:46 2003 Owen Taylor <otaylor@redhat.com>
10442 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
10443 from Alex Larsson fixing problem with restacking during
10446 Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
10448 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
10449 Calling XFlush() after ungrabbing, to avoid problems if
10450 the app subsequently blocks on a long-running operation.
10451 (#106520, reported by Rajkumar Siva)
10453 Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
10455 * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
10456 SKIP_TASKBAR/SKIP_PAGER to set of properties we
10457 might set on map. (#110019, problem reported
10460 Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
10462 * gdk/gdkevents.c (gdk_event_copy): Fix for the
10463 case when gdk_event_copy() is called on a non-allocated
10464 event. (#109716, reported by Rich Burridge)
10466 Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
10468 * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
10469 Fix pointer arithmetic on 'void *'. (#108322)
10471 Fri Apr 18 16:31:49 2003 Owen Taylor <otaylor@redhat.com>
10473 * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
10474 Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
10475 use of XAddConnectionWatch. Remove --enable-xim config option.
10476 Should fix building on X11R6 (#110523, Albert Chin)
10478 Fri Apr 18 15:56:46 2003 Owen Taylor <otaylor@redhat.com>
10480 * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
10481 Patch from Morten Welinder to catch Sun servers with a
10482 broken implementation of the RENDER extension. (#108309)
10484 Fri Apr 18 15:30:38 2003 Owen Taylor <otaylor@redhat.com>
10486 * gdk/x11/gdkwindow-x11.c (set_text_property): Use
10487 gdk_free_compound_text(), not g_free(). (#107643,
10490 Fri Apr 18 15:11:50 2003 Owen Taylor <otaylor@redhat.com>
10492 * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
10493 gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
10494 wrong use of base_finalize. (#105126, Sven Neumann)
10496 Fri Apr 18 15:06:00 2003 Owen Taylor <otaylor@redhat.com>
10498 * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
10499 '/' vs. '*' problem in aspect ration computations. (#108237)
10501 Fri Apr 18 14:15:09 2003 Owen Taylor <otaylor@redhat.com>
10503 * gdk/x11/gdkdisplay-x11.c (gdk_display_open):
10504 * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
10505 don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify
10506 event, so select for both. (#108406, Egmont Koblinger)
10508 Thu Apr 17 09:57:44 2003 Jonathan Blandford <jrb@gnome.org>
10510 * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
10511 caused by not clearing the scroll_to_path.
10513 2003-04-16 Matthias Clasen <maclas@gmx.de>
10515 * gtk/gtkstyle.c: Doc additions and fixes.
10517 * gtk/gtktreeviewcolumn.c
10518 (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
10520 2003-04-14 Michael Natterer <mitch@gimp.org>
10522 * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
10523 that the iter is not reordered to its own position. Prevents model
10524 corruption for the case that the store contains only a single item
10525 (fixes bug #108387).
10529 * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
10530 new list element later so we don't leak it if we decide to return
10533 * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
10534 set selection->tree_view->priv->anchor to NULL after freeing it.
10536 2003-04-13 Matthias Clasen <maclas@gmx.de>
10538 * gtk/gtktreeviewcolumn.c
10539 (gtk_tree_view_column_cell_get_position): Document.
10541 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range):
10542 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand):
10543 * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
10544 these as 2.4 additions.
10546 2003-04-09 Matthias Clasen <maclas@gmx.de>
10548 * INSTALL.in: Fix the real thing.
10550 * INSTALL: Typo fix.
10552 Mon Apr 7 19:43:15 2003 Owen Taylor <otaylor@redhat.com>
10554 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
10555 after ungrabbing the server.
10557 * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
10560 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
10561 Use gdk_x11_display_grab/ungrab.
10563 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
10564 use_xshm to TRUE so SHM gets used when present.
10566 2003-04-07 Matthias Clasen <maclas@gmx.de>
10568 * gtk/gtktextlayout.c (set_para_values):
10569 * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR. (#110086,
10572 * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
10573 gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
10574 misspellings of possessive "its". (#110027, Doug Quale)
10576 2003-04-03 Matthias Clasen <maclas@gmx.de>
10578 * demos/gtk-demo/main.c (demo_find_file): Only use files from the
10579 current directory if it looks like the srcdir. (#109357)
10581 Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
10583 * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
10586 * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
10587 navigation not wrap around.
10589 2003-04-02 Matthias Clasen <maclas@gmx.de>
10591 * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
10592 Return 0 if lower == upper. (#109155)
10593 (gtk_progress_get_current_percentage): Use
10594 gtk_progress_get_percentage_from_value().
10596 2003-04-01 Matthias Clasen <maclas@gmx.de>
10598 * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
10599 (#109510, Noah Levitt)
10601 Mon Mar 31 13:52:13 2003 Jonathan Blandford <jrb@redhat.com>
10603 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
10604 members so Purify won't complain.
10606 * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
10608 2003-03-31 Matthias Clasen <maclas@gmx.de>
10610 * gtk/gtkwindow.c: Add a new property, role, corresponding to
10611 gtk_window_[gs]et_role(). (#93904)
10613 Sun Mar 30 03:57:42 2003 Jonathan Blandford <jrb@gnome.org>
10615 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
10616 fix crash. Patch from Markus Lausser <sgop@users.sourceforge.net>
10618 2003-03-29 Matthias Clasen <maclas@gmx.de>
10620 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
10621 of labels back to normal before reparenting back. (#102387)
10623 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
10624 a default window title to match the GtkFontSelectionDialog behavior.
10626 (gtk_color_selection_dialog_new): Don't call
10627 gtk_window_set_title() if title is NULL. (bug #101975, Daniel Elstner)
10629 2003-03-29 Matthias Clasen <maclas@gmx.de>
10631 Fix for bug #78499:
10633 * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
10636 * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
10637 select_lines on double/triple click.
10639 * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
10640 select-by-words and select-by-lines behaviour.
10642 Fixes for bug #56248:
10644 * gtk/gtknotebook.c (stop_scrolling): New function to remove the
10645 timer and queue a redraw.
10646 (gtk_notebook_grab_notify):
10647 (gtk_notebook_state_changed): New functions to call stop_scrolling()
10649 (gtk_notebook_button_release): Use stop_scrolling().
10650 (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
10652 * gtk/gtkrange.c (stop_scrolling): New function to remove the
10653 grab, remove the timer and queue a redraw.
10654 (gtk_range_grab_notify):
10655 (gtk_range_state_changed): New functions to call stop_scrolling()
10657 (gtk_range_button_release): Use stop_scrolling().
10659 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
10660 (gtk_spin_button_state_changed): Redraw after stop_spinning.
10661 (gtk_spin_button_stop_spinning): Reset click_child to correct the
10662 drawing of the arrows.
10663 (gtk_spin_button_button_release): Use a local copy of click_child,
10664 since stop_spinning() resets it.
10666 * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
10667 C-A-PgDown as alternatives to the A-less variants. (This slipped
10668 in accidentally some time ago). (#97860)
10670 2003-03-26 Sven Neumann <sven@gimp.org>
10672 * gtk/gtktreeview.c: rewrote the function that does node and arrow
10673 prelighting, queue all redraws from here (Fixes bug #108792).
10675 2003-03-20 Richard Kinder <r_kinder@yahoo.com>
10677 * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
10680 2003-03-20 Guntupalli Karunakar <karunakar@freedomink.org>
10682 * configure.in: Added "ml" in ALL_LINGUAS
10684 Sat Mar 15 18:49:27 2003 Manish Singh <yosh@gimp.org>
10686 * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
10687 G_DISABLE_DEPRECATED.
10689 2003-03-14 Tor Lillqvist <tml@iki.fi>
10691 * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
10692 GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
10693 DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
10694 multiple monitors can have negative coordinates on some of the
10695 monitors. (partial fix for #99496, Arnaud Charlet)
10697 2003-03-15 Matthias Clasen <maclas@gmx.de>
10699 * gtk/gtktextview.c: Add a "buffer" property. (#108353)
10701 2003-03-13 Sven Neumann <sven@gimp.org>
10703 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
10704 removed redundant calls to g_object_notify().
10705 (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
10708 * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
10709 (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
10710 functions return an integer value).
10712 2003-03-13 Tor Lillqvist <tml@iki.fi>
10714 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10715 WM_MOUSEMOVE, the test whether we have actually moved (and thus
10716 shouldn't generate an GDK event) moved after the call to
10717 propagate() and translate_mouse_coords(). Otherwise we were
10718 testing wrong values. (#108115, Allin Cottrell)
10719 (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
10720 way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
10722 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
10723 is used, must copy the HCURSOR with CopyCursor(), as it is OK to
10724 destroy the GdkCursor after calling gdk_pointer_grab(). Set the
10725 cursor right away with SetCursor(), as we won't get any
10726 WM_SETCURSOR messages while the mouse is captured.
10727 (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
10728 with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
10730 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10731 WM_SYSCHAR, return FALSE from the window procedure to prevent the
10732 DefWindowProc from being called. Otherwise Windows would beep,
10733 thinking you are tring to access a (nonexistent) menu when you
10734 press Alt-something. Don't do this for Alt-Space,
10735 though. (#107454, Martyn Russell)
10737 * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
10739 Tue Mar 11 12:01:07 2003 Jonathan Blandford <jrb@gnome.org>
10741 * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
10742 [left/right] expands/collapses the tree, #108092
10744 2003-03-09 Tor Lillqvist <tml@iki.fi>
10746 * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
10747 compensate for LineTo() not drawing the end pixel. It causes more
10748 harm than benefits, see bug #81895.
10750 2003-03-08 Matthias Clasen <maclas@gmx.de>
10752 Bug #107664 continued:
10754 * gdk/x11/gdkinputprivate.h:
10755 * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
10756 (_gdk_input_other_event): Return gboolean.
10757 * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
10758 (_gdk_input_other_event): Return gboolean.
10759 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
10761 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
10762 gboolean, remove pointless call to _gdk_input_window_none_event.
10764 * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
10765 (_gdk_input_window_none_event): Remove.
10767 * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
10768 (_gtk_text_iter_get_any_segment):
10769 (_gtk_text_iter_get_segment_byte):
10770 (_gtk_text_iter_get_segment_char):
10771 (_gtk_text_iter_get_text_line):
10772 (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
10773 * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
10774 * gdk/win32/gdkfont-win32.c (gdk_font_equal):
10775 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
10776 (gdk_window_get_origin):
10777 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
10779 2003-03-06 Matthias Clasen <maclas@gmx.de>
10781 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
10782 (#107664, Morten Welinder)
10784 * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
10785 * gdk/x11/gdkfont-x11.c (gdk_font_equal):
10786 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
10787 Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder)
10789 * gtk/gtktextmark.c (gtk_text_mark_get_buffer):
10790 * gtk/gtkeditable.c (gtk_editable_get_chars):
10791 * gtk/gtkctree.c (gtk_ctree_find_node_ptr):
10792 * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
10793 (#107648, Morten Welinder)Fix NULL/FALSE confusion
10794 (#107648, Morten Welinder)
10796 2003-03-04 Matthias Clasen <maclas@gmx.de>
10798 * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
10800 Sun Mar 2 23:35:57 2003 Jonathan Blandford <jrb@gnome.org>
10802 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
10803 handle rtl code. Thanks to Matthias Clasen for an initial patch
10804 to handle the RTL code.
10806 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
10808 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
10810 * gtk/gtktreeview.c: (invalidate_column),
10811 (invalidate_last_column),
10812 (gtk_tree_view_get_real_requested_width_from_column),
10813 (gtk_tree_view_size_allocate_columns),
10814 (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
10815 (gtk_tree_view_button_release_drag_column),
10816 (gtk_tree_view_update_current_reorder),
10817 (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
10818 (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
10819 (gtk_tree_view_get_background_xrange),
10820 (gtk_tree_view_get_arrow_xrange),
10821 (gtk_tree_view_is_expander_column),
10822 (gtk_tree_view_set_column_drag_info),
10823 (gtk_tree_view_move_cursor_left_right):
10826 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
10829 * gtk/gtktreeviewcolumn.c:
10830 (gtk_tree_view_column_class_init),
10831 (gtk_tree_view_column_set_property),
10832 (gtk_tree_view_column_get_property),
10833 (gtk_tree_view_column_set_expand),
10834 (gtk_tree_view_column_get_expand),
10835 (gtk_tree_view_column_cell_process_action):
10836 Add support for expand flag. Thanks to Kristian Rietveld for an
10837 initial patch for this.
10839 Fri Feb 28 02:06:17 2003 Jonathan Blandford <jrb@gnome.org>
10842 2003-03-02 Tor Lillqvist <tml@iki.fi>
10845 * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
10848 2003-03-01 Matthias Clasen <maclas@gmx.de>
10850 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
10851 (gtk_scrolled_window_set_hadjustment): Replace uses of
10852 gtk_object_new by g_object_new.
10854 Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org>
10856 * demos/gtk-demo/main.c
10857 * demos/gtk-demo/tree_store.c
10858 * gdk/x11/gdkscreen-x11.c
10859 * gtk/gtkcellrenderertoggle.c
10860 * gtk/gtkcolorsel.c
10862 * gtk/gtkeditable.c
10866 * gtk/gtkmenuitem.c
10867 * gtk/gtkmenushell.c
10869 * gtk/gtksettings.c
10871 * gtk/gtktextbuffer.c
10872 * gtk/gtktextview.c
10873 * gtk/gtktreeviewcolumn.c
10876 * tests/testtreeedit.c
10877 * tests/testtreefocus.c
10878 * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
10880 Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
10882 * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
10885 2003-02-24 Sven Neumann <sven@gimp.org>
10887 * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
10889 2003-02-21 Tomas Ogren <stric@ing.umu.se>
10891 * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
10893 2003-02-20 Matthias Clasen <maclas@gmx.de>
10895 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
10896 Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
10898 * gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
10899 (gtk_text_view_update_adjustments): Make sure cursor stays visible
10900 during horizontal scrolling. (#75270)
10902 2003-02-19 Matthias Clasen <maclas@gmx.de>
10904 * tests/testdnd.c: Replace gtk_timeout_* by their GLib
10905 counterparts. (#106532)
10907 * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
10908 keys_changed virtual function with the keys_changed signal.
10909 (#106512, Jeff Franks)
10911 2003-02-15 Larry Ewing <lewing@ximian.com>
10913 * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
10915 2003-02-17 Mohammad DAMT <mdamt@bisnisweb.com>
10917 * po/id.po: Added Indonesian translation
10918 * configure.in: Added "id" to ALL_LINGUAS
10920 2003-02-14 Matthias Clasen <maclas@gmx.de>
10922 * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
10924 2003-02-12 Christian Rose <menthos@menthos.com>
10926 * configure.in: Added "yi" to ALL_LINGUAS.
10928 2003-02-12 Matthias Clasen <maclas@gmx.de>
10930 Fix for #82734 and #78216:
10932 * gtk/gtktextview.c (delete_cb):
10933 (select_all_cb): New callbacks for context menu items.
10934 (popup_targets_received): Add "Delete" and "Select All" to context
10935 menu, mnemonics and title caps for all items.
10937 * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
10939 (popup_targets_received): Add "Delete" to context menu, mnemonics
10940 and title caps for all items.
10942 2003-02-09 Tor Lillqvist <tml@iki.fi>
10944 * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
10945 GetDriveType() to recognize removable drives (in order to avoid
10946 hanging if trying to access an empty floppy drive), instead of
10947 hardcoding A: and B: (#105654).
10949 2003-02-09 Matthias Clasen <maclas@gmx.de>
10951 * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
10954 2003-02-09 Christian Rose <menthos@menthos.com>
10956 * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
10958 Fri Feb 7 04:49:46 2003 Tim Janik <timj@gtk.org>
10960 * gtk/gtkobject.c: remove quark_user_data usage in
10961 gtk_object_{g|s}et_user_data(). fixes get_user_data()
10962 returning NULL for user_data set through property interface.
10964 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
10965 warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
10966 need to be a programming error (in case of loaded data), (b) it breaks
10967 with 2.0 behaviour where extra magic could be used to create empty
10968 images. don't attempt to retrieve pixbufs from NULL extra_data.
10970 2003-02-06 Matthias Clasen <maclas@gmx.de>
10972 * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
10973 a GdkVisual *, not a GdkVisual **. (#105243)
10977 * gtk/gtkcontainer.c:
10982 * gtk/gtkmenuitem.c:
10983 * gtk/gtknotebook.c:
10984 * gtk/gtkselection.c:
10985 * gtk/gtkspinbutton.c:
10987 * gtk/gtktextview.c:
10988 * gtk/gtktooltips.c:
10989 * gtk/gtktreeview.c:
10990 * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
10991 their non-deprecated GLib counterparts.
10993 * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
10995 Sun Feb 2 16:45:57 GMT 2003 Tony Gale <gale@gtk.org>
10997 * docs/tutorial/gtk-tut.sgml: cleanups from
10998 Sebastian Rittau (#104832)
11000 2003-02-01 Tor Lillqvist <tml@iki.fi>
11004 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11005 gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11006 (#104108, Naofumi Yasufuku)
11008 * gdk/gdk.def: Export the above. Export
11009 gdk_screen_get_system_visual, noticed by Ed Woods.
11011 Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org>
11013 * demos/pixbuf-demo.c
11014 * demos/testpixbuf.c
11015 * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11017 Fri Jan 31 17:33:00 2003 Manish Singh <yosh@gimp.org>
11019 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11020 on the tab_label before unparenting it, in case the unparent
11021 drops the refcount to 0.
11023 2003-02-01 Matthias Clasen <maclas@gmx.de>
11025 * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11026 headers. Sorry about gtk_selection_clear, Yosh.
11028 Thu Jan 30 17:16:05 2003 Manish Singh <yosh@gimp.org>
11030 * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11031 too, for gtkwidget.c. Remember people, when introducing new
11032 deprecations, make sure internal code isn't using it, or if so,
11033 reorganize appropriately like I've done in other places.
11035 * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11037 2003-01-31 Matthias Clasen <maclas@gmx.de>
11039 * gtk/gtkselection.h:
11040 * gtk/gtkselection.c (gtk_selection_clear): Deprecate. (#85683)
11043 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
11044 (gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
11046 * gtk/gtkcolorsel.h:
11047 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11048 Deprecate. (#98167)
11050 * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11052 * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11053 and gtk_input_* functions. (#71596)
11055 * gtk/gtkentry.c (gtk_entry_move_cursor):
11056 * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11057 GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11059 * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
11061 * gtk/gtkitemfactory.h:
11062 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
11065 Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
11067 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11068 only count the special cell if it is also visible,
11069 (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11070 account from visible cells,
11071 (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11072 testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11073 tracking bug was #104563).
11075 Thu Jan 30 23:46:15 2003 Kristian Rietveld <kris@gtk.org>
11077 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11078 subtract expander space and focus line space from the extra space
11079 we are about the allocate. (Fixes #104635).
11081 Thu Jan 30 23:42:03 2003 Kristian Rietveld <kris@gtk.org>
11083 * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11084 (Fixes #96242, patch from Soeren Sandmann).
11086 Thu Jan 30 16:54:29 2003 Owen Taylor <otaylor@redhat.com>
11088 * gtk/gtknotebook.c: Patch from Soeren Sandmann
11089 to update the states of the tab label child
11090 widgets to match the state of the tabs.
11091 (#93389, Reported by Tommi Komulainen)
11093 Thu Jan 30 16:30:54 2003 Owen Taylor <otaylor@redhat.com>
11095 * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11096 EXTRA_DIST, and from dist rules. (#102231)
11098 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
11100 * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11101 function that sets the icon's and label's packing options and
11102 visibility based on toolbar->style.
11104 (gtk_toolbar_internal_insert_element):
11105 (gtk_real_toolbar_style_changed): Make use of
11106 set_child_packing_and_visibility() to clean up the code and get
11107 the packing right for icon-only/text-only toolbars. (#104679)
11109 (get_first_child): Remove, and use gtk_bin_get_child() instead.
11111 2003-01-30 Matthias Clasen <maclas@gmx.de>
11113 * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11114 GTK_MOVEMENT_HORIZONTAL_PAGES. (#68947)
11116 * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11118 Thu Jan 30 16:01:29 2003 Owen Taylor <otaylor@redhat.com>
11120 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the
11121 attempt-to-allocate then free code. To handle multiple
11122 people allocating colors at the same time, we need
11123 to just go ahead and try. (#102213, Shivram U)
11125 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
11127 * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11128 rectangle using the background color rather than relying on
11129 gdk_window_clear_area(), so that the palette works properly with
11130 pixmap themes. (#101732)
11132 * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11133 to fill the drawing area in the background color.
11135 Wed Jan 29 14:11:21 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
11137 * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11138 initialization error for selecting input style (#103549).
11140 Wed Jan 29 17:02:41 2003 Owen Taylor <otaylor@redhat.com>
11142 * gdk/gdkkeyuni.c (get_decimal_char): Make the
11143 translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11146 Wed Jan 29 15:43:56 2003 Owen Taylor <otaylor@redhat.com>
11148 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11149 Make up from the menu bar go to the end of the submenu.
11150 (#96114, Ian Peters.)
11152 * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate):
11153 Only do the select-but-not-activate stuff if the
11154 menu is already active. Otherwise, just activate.
11155 (#101690, Arvind Samptur)
11157 Tue Jan 28 15:18:24 2003 Owen Taylor <otaylor@redhat.com>
11159 * autogen.sh (have_automake): Fix version in complaint
11160 message about automake. (#104366, Rich Burridge)
11162 Mon Jan 27 16:38:13 2003 Owen Taylor <otaylor@redhat.com>
11164 * configure.in: Remove SOEXT stuff; it doesn't work portably.
11166 Mon Jan 27 22:45:15 2003 Kristian Rietveld <kris@gtk.org>
11168 * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11169 we appended/prepended, send the rows_reordered signal to the
11170 correct level ... (Reported by Matthew Tuck).
11172 Mon Jan 27 22:43:11 2003 Kristian Rietveld <kris@gtk.org>
11174 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11175 out if the level only has one item, recurse over the child if there
11176 is one. (Fixes #100458, reported by Gaël Le Mignot).
11178 Mon Jan 27 22:41:26 2003 Kristian Rietveld <kris@gtk.org>
11180 * gtk/gtktreeview.c (gtk_tree_view_set_model),
11181 (gtk_tree_view_search_equal_func): make TreeView search handle
11182 all types which are transformable by GValue. (Fixes #99803, reported
11183 by Muktha Narayan).
11185 Mon Jan 27 22:39:25 2003 Kristian Rietveld <kris@gtk.org>
11187 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11188 *really* handle unsetting the ID. Slightly modified patch from
11189 Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11191 Mon Jan 27 22:33:43 2003 Kristian Rietveld <kris@gtk.org>
11193 Fixes the total GtkTreeSortable mess, and #83195, reported by
11196 * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11197 (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11198 (gtk_tree_store_set_default_sort_func): use the constant
11199 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11200 work as advertised by the documentation.
11202 * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11203 (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11204 (gtk_list_store_set_default_sort_func): likewise.
11206 * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11207 (gtk_tree_model_set_sort_func),
11208 (gtk_tree_model_sort_set_default_sort_func): make functions work
11209 as advertised by the documentation.
11211 Mon Jan 27 22:31:56 2003 Kristian Rietveld <kris@gtk.org>
11213 * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11214 before we decide if we edit. (fixes #100973, reported by Dave Cook).
11216 Mon Jan 27 22:29:30 2003 Kristian Rietveld <kris@gtk.org>
11218 Bug report and test case from Paolo Maggi via IRC.
11220 * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11221 (gtk_list_store_move): update tail if needed.
11223 Mon Jan 27 16:19:59 2003 Owen Taylor <otaylor@redhat.com>
11225 * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11226 might be NULL. Use gtk_widget_get_display (widget)
11227 (#102860, Thomas Leonard)
11229 Mon Jan 27 15:58:31 2003 Owen Taylor <otaylor@redhat.com>
11231 * configure.in: Fix --without-modules/--disable-modules
11232 confusion that was causing --disable-modules not to work.
11233 (#102865, Akira Tagoh)
11235 * configure.in: Fix problem with plain --with-xinput
11236 (#104266, Akira Tagoh)
11238 2003-01-24 Sebastian Rittau <srittau@jroger.in-berlin.de>
11240 * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11243 Fri Jan 24 17:06:41 GMT 2003 Tony Gale <gale@gtk.org>
11245 * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11247 Thu Jan 23 21:15:29 GMT 2003 Tony Gale <gale@gtk.org>
11249 * docs/faq/gtk-faq.sgml: Learn to spell Library
11251 Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org>
11252 * Sebastian Rittau <srittau@jroger.in-berlin.de>:
11254 docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11255 Composite widget" to modern standards. (I.e. use gobject instead of
11256 glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11258 * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11259 code in Appendix C to reflect above changes.
11261 * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11262 auto resize on page size change
11264 2003-01-23 Daniel Elstner <daniel.elstner@gmx.net>
11266 * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11267 in addition to show_all in order to keep them symmetric. (#102201)
11269 Wed Jan 22 14:18:46 2003 Manish Singh <yosh@gimp.org>
11271 * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11272 the end of the function, so there is a statement following the "out"
11273 label in all cases (fixes #101961)
11275 2003-01-22 Christian Rose <menthos@menthos.com>
11277 * configure.in: Added "mn" to ALL_LINGUAS.
11279 Wed Jan 15 17:02:18 2003 Owen Taylor <otaylor@redhat.com>
11281 * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11282 Fix off-by-one error on the backward iteration loop,
11283 that was causing the wrong range to be redrawn.
11284 (at least part of #72734)
11286 2003-01-21 Matthias Clasen <maclas@gmx.de>
11288 * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11289 vadjustment value after changing its bounds. (fixes #101963 and
11292 * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid
11293 unnecessary roundtrip failures. (#93500)
11295 2003-01-19 Tor Lillqvist <tml@iki.fi>
11299 Fix for #103614 and some other problems with GtkFileSelection on
11302 * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11303 g_ascii_tolower(). Windows file names are case-insensitive for all
11306 * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11307 G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11308 earlier, as it includes config.h unconditionally, and gtkprivate.h
11309 redefines GTK_LOCALEDIR.
11310 (struct _CompletionDirSent): Ifdef out the fields not used on
11312 (compare_utf8_filenames, compare_sys_filenames): Need different
11313 comparison implementation for UTF-8 file names and system locale
11314 file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11315 need to casefold all Unicode letters.
11316 (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11317 variables not used on Win32 to avoid warnings about unused
11319 (open_ref_dir): Use g_path_skip_root() to skip past potential
11320 drive letter in front of the leading (back)slash.
11321 (open_new_dir): Ifdef out use of CompletionDirSent fields not
11323 (correct_parent): Bypass inode check also on Cygwin.
11325 Fix bug noticed by Alex Shaduri: Tooltips and other
11326 GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11327 was a regression from earlier versions.
11329 * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11330 behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11331 (gdk_window_move, gdk_window_resize): Add debug logging.
11333 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11334 WM_SIZE message for a non-visible (withdrawn) window, don't clear
11335 the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11336 even if its size changes.
11338 2003-01-16 Matthias Clasen <maclas@gmx.de>
11340 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11341 (totally_invisible_line): Fix an incorrect optimization which
11342 caused invisible paragraphs to be occasionally misrendered.
11344 Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
11346 * gtk/gtksettings.c: Set the double click speed from
11347 XSETTINGS when creating a new GtkSettings object
11348 as well as when getting a notify. (#103601, reported
11351 Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
11353 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
11354 Show/hide the notebook event window as necessary,
11355 we weren't previously keeping the visibility updated
11356 properly. (#103599)
11358 2003-01-15 Matthias Clasen <maclas@gmx.de>
11360 * examples/menu/itemfactory.c:
11361 * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11364 2002-12-29 Murray Cumming <murrayc@usa.net>
11368 * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11369 Actually implement the GtkTreeDragSource::row_draggable virtual
11370 function in GtkListStore and GtkTreeStore instead of just checking
11371 whether it's implemented at all. This means that DnD isn't broken by
11372 gtkmm's virtual function wrappers. The alternative would be to
11373 hard-code the TRUE return value into gtkmm's wrappers, but that's
11374 part of GTK+'s implementation, not it's API.
11376 Tue Jan 14 23:42:29 2003 Kristian Rietveld <kris@gtk.org>
11378 * gtk/gtktreeview.c: fix compiler warning.
11380 Tue Jan 14 23:29:00 2003 Kristian Rietveld <kris@gtk.org>
11382 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11383 make sure exposed pixbufs are clipped to the exposed area before
11384 drawing, which is a slight speedup. (#102379, patch from Soeren
11387 Tue Jan 14 23:26:41 2003 Kristian Rietveld <kris@gtk.org>
11389 * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
11390 only free scroll_to_path when the complete tree has been validated.
11391 This makes sure that we scrolled to the correct path.
11393 Tue Jan 14 23:25:32 2003 Kristian Rietveld <kris@gtk.org>
11395 * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
11396 background of widget->window and bin->window. (Fixes #96650, reported
11399 Tue Jan 14 23:24:02 2003 Kristian Rietveld <kris@gtk.org>
11401 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
11402 updates before scrolling, avoiding a "selection streak". (Fixes
11403 #101235, patch from Soeren Sandmann).
11405 Tue Jan 14 23:22:13 2003 Kristian Rietveld <kris@gtk.org>
11407 * gtk/gtktreeview.c (validate_visible_area): actually put values
11408 in the requisition using gtk_widget_size_request. (Fixes #100172,
11409 reported by Kjartan Maraas).
11411 Tue Jan 14 23:19:45 2003 Kristian Rietveld <kris@gtk.org>
11413 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
11414 arrow animation timeout before we actually reorder the rbtree. If
11415 we don't do this we can get stuck arrows,
11416 (cancel_arrow_animation): new function. (Fixes #93629, part 2,
11417 reported and testcase provided by Hans Petter Jansson).
11419 Tue Jan 14 23:18:21 2003 Kristian Rietveld <kris@gtk.org>
11421 * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
11422 anchor_path should be start_path, not end_path. (Fixes #102618,
11423 patch from Carlos Garnacho Parro).
11425 Tue Jan 14 23:16:15 2003 Kristian Rietveld <kris@gtk.org>
11427 * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
11428 only correct new_pos if we don't move to the head/tail.
11430 Tue Jan 14 23:11:55 2003 Kristian Rietveld <kris@gtk.org>
11432 * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
11433 the parent_iter if depth >= 1, so we send the reordered signal to
11434 the correct level, remove debugging printfs which I forgot the remove
11435 earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
11436 testcase provided by Matthew Tuck).
11438 Tue Jan 14 20:58:44 2003 Kristian Rietveld <kris@gtk.org>
11440 * gtk/gtktreeview.c (invalite_last_column): split out actual column
11441 invalidation into invalidate_column(),
11442 (gtk_tree_view_size_allocate_columns): invalidate column if the
11443 new width is larger than the old width.
11444 (fixes #102890, reported by Alex Duggan).
11446 2003-01-14 Matthias Clasen <maclas@gmx.de>
11448 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
11449 invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
11450 GTK_MOVEMENT_WORDS.
11452 * gtk/gtktextiter.c,
11453 gtk/gtktextiter.h: Add some variant movement functions which
11454 skip invisible chars, and do some cleanups.
11456 2003-01-12 Tor Lillqvist <tml@iki.fi>
11460 * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
11461 as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
11464 * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
11468 * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
11470 * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
11471 gtk-demo}.exe and share/gtk-2.0.
11473 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
11474 Implement by setting or clearing the WS_EX_TOOLWINDOW extended
11476 (gdk_window_set_type_hint): Add all cases to the switch (not all
11477 do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
11478 calling gdk_window_set_skip_taskbar_hint(). This means that GTK
11479 won't know that the skip_taskbar hint is on for the window, is
11482 Wed Jan 8 18:43:03 2003 Manish Singh <yosh@gimp.org>
11484 * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
11485 <string.h> for strlen.
11487 * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
11488 <string.h> for strrchr.
11490 * tests/testgtk.c (create_saved_position): "x" and "y" properties
11491 for widgets no longer exist, use gtk_window_move instead.
11493 * test/testtextbuffer.c (check_get_set_text): cast strlen to
11496 2003-01-08 Matthias Clasen <maclas@gmx.de>
11498 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
11499 the selection in the presence of invisible segments.
11501 2003-01-07 Matthias Clasen <maclas@gmx.de>
11503 * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
11504 to "select all" and "unselect all". (#102065)
11506 * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
11507 the just_selected_element is unused.
11509 * gtk/gtktextview.c (extend_selection): New helper function to
11510 find the range that should be added to the selection.
11511 (selection_motion_event_handler):
11512 (gtk_text_view_start_selection_drag):
11513 (gtk_text_view_end_selection_drag):
11514 (selection_motion_event_handler):
11515 (selection_scan_timeout): Support select-by-words/lines.
11516 (gtk_text_view_button_press_event): Start a selection drag on
11517 double/triple clicks. (#78499)
11519 2003-01-06 Matthias Clasen <maclas@gmx.de>
11521 Implement a utility function proposed in #102534:
11523 * gtk/gtktextbtree.h:
11524 * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
11525 (_gtk_text_btree_place_cursor): Now a simple wrapper around
11526 _gtk_text_btree_select_range().
11528 * gtk/gtktextbuffer.h:
11529 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
11530 (gtk_text_buffer_place_cursor): Now a simple wrapper around
11531 gtk_text_buffer_select_range().
11533 2003-01-05 Havoc Pennington <hp@pobox.com>
11535 * configure.in: fix a stray bracket that was breaking the build
11537 2003-01-05 Tor Lillqvist <tml@iki.fi>
11539 * gtk-zip.sh.in: Use correct DLL and import library names, with
11540 GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
11541 (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
11543 * configure.in: Improve check for dimm.h.
11545 * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
11546 gdk-pixbuf/Makefile.am.
11548 * gdk-pixbuf/makefile.mingw.in
11549 * gdk-pixbuf/pixops/makefile.mingw.in
11550 * gdk/makefile.mingw.in
11551 * gdk/win32/makefile.mingw.in
11552 * gtk/makefile.mingw.in: Remove. Not maintained anyway.
11554 * gdk-pixbuf/Makefile.am
11555 * gdk-pixbuf/pixops/Makefile.am
11557 * gdk/win32/Makefile.am
11559 * configure.in: Remove makefile.mingw{,.in} from here, too.
11561 * README.win32: Updates. Don't mention the now removed
11562 makefile.mingw files.
11565 * gtk/gtk.def: Add a couple of missing entries.
11567 * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
11569 * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
11572 * gdk/win32/rc/Makefile.am: Add hack to help
11573 build/win32/lt-compile-resource decide which kind of libtool
11574 object file to produce.
11576 2003-01-05 Matthias Clasen <maclas@gmx.de>
11578 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
11579 C-Down step through the sequence of paragraph ends (old behaviour
11580 included paragraph starts). (#80340, patch by Narayana Pattipati)
11582 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
11583 Check for a tag toggle at the start iterator before calling
11584 gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
11587 2003-01-04 Matthias Clasen <maclas@gmx.de>
11589 * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
11590 and /*< private >*/ as appropriate. (#97211)
11592 2003-01-04 Tor Lillqvist <tml@iki.fi>
11594 * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
11595 distribute gtk-zip.sh.in.
11597 * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
11599 2003-01-03 Havoc Pennington <hp@pobox.com>
11601 * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
11603 * docs/text_widget_internals.txt: add a file documenting some of
11604 the text widget internals
11606 2003-01-02 Matthias Clasen <maclas@gmx.de>
11608 * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
11609 return NULL. (#102069)
11611 2003-01-01 Matthias Clasen <maclas@gmx.de>
11613 * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
11614 a main() in the library is obviously bad.
11616 2002-12-27 Matthias Clasen <maclas@gmx.de>
11618 * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
11619 cursor at drop point. (#72384)
11620 (gtk_text_view_size_allocate): Update the horizontal adjustment
11623 2002-12-25 Matthias Clasen <maclas@gmx.de>
11625 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
11626 selection wrt. to empty lines. (#90435, #90582, #91619)
11628 * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
11629 Keep the cursor on screen. (#96929)
11631 2002-12-24 Matthias Clasen <maclas@gmx.de>
11633 * gtk/gtktextbuffer.c (paste_from_buffer):
11634 (clipboard_text_received): Let the user action span the insertion
11635 and the deletion of the old selection. (#82844)
11637 2002-12-23 Matthias Clasen <maclas@gmx.de>
11639 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
11640 Don't call gtk_text_iter_backward_sentence_start() if
11641 count is zero. (#99115)
11643 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
11644 move_cursor() even if the cursor hasn't moved, since it has the
11645 side effect of canceling the selection. (#81395, #98537, #98333)
11647 2002-12-22 Matthias Clasen <maclas@gmx.de>
11649 * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
11650 with empty ranges. (fixes #101564 and #80637)
11652 2002-12-21 Tor Lillqvist <tml@iki.fi>
11654 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
11655 sets the window style and extended window style, and adjusts the
11656 width and height to take the window decorations into account
11657 earlier. The adjusted width and height used to be ignored. Remove
11658 the local x, y, width and height variables, no need to further
11659 confuse the code by having local copies. (Partial fix, I hope, for
11662 (gdk_window_move): When moving top-level windows, take title bar
11663 and border width into account, offsetting the coordinates before
11664 calling SetWindowPos().
11666 (gdk_window_set_decorations, gdk_window_set_functions):
11667 Reimplement, taking into account the peculiar semantics of
11668 GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
11670 (gdk_window_get_decorations): Implement. (#98981)
11672 (gdk_window_set_type_hint): When setting
11673 GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
11676 * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
11678 2002-12-21 Matthias Clasen <maclas@gmx.de>
11680 * gtk/gtktextview.c (gtk_text_view_set_background): New static
11681 function to set the background of all windows.
11682 (gtk_text_view_style_set): Use gtk_text_view_set_background().
11683 (gtk_text_view_state_changed): New function; change background
11684 according to state. (#88126)
11686 2002-12-21 Havoc Pennington <hp@pobox.com>
11688 * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation