1 2005-02-08 Christian Rose <menthos@menthos.com>
3 * configure.in: Added "xh" to ALL_LINGUAS.
5 2005-02-08 Matthias Clasen <mclasen@redhat.com>
7 * gtk/gtkuimanager.c (start_element_handler): Accept
8 the "expand" attribute and set a flag in the node if it
10 (update_node): If the expand flag is set, make separator
11 toolitems non-drawn and expanding. (#166489, Christian Persch)
13 2005-02-05 Hans Breuer <hans@breuer.org>
15 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
16 build with Cairo dependency. The patch to acually use Cairo
17 on win32 will be on gtk-devel-list soon.
18 * tests/makefile.msc : add testcairo building
20 * gtk/stock-icons/makefile.msc : split command line into two to
21 work with the shells default
23 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
25 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
28 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
29 Add some extra parens for bitop order of operations disambiguiation.
31 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
32 domain when setting a translate function.
34 * tests/testcombo.c: removed unused variable.
36 2005-02-04 Matthias Clasen <mclasen@redhat.com>
38 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
39 being NULL. (#166179, Diego Gonzalez)
41 2005-02-04 Owen Taylor <otaylor@redhat.com>
43 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
44 up comment to talk only about backwards compat, not
45 forward/backwards compat. (#166293, reported by Vincent Noel)
47 2005-02-04 Matthias Clasen <mclasen@redhat.com>
49 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
50 when there is not enough space. This avoids a nasty size
51 allocation loop in the file chooser. (#154007, reported
52 by Milosz Derezynski, patch by Robert Ögren)
54 2005-02-04 Matthias Clasen <mclasen@redhat.com>
56 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
57 selection of RTL direction if the widget does not have
58 focus. (#164125, Frederic Crozat)
60 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
62 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
64 2005-02-03 Owen Taylor <otaylor@redhat.com>
66 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
67 gdk_drawable_set_cairo_target().
69 * tests/testtreeflow.c (enum): Use grand not rand as a variable
70 name because one of the cairo headers is pulling in stdlib.h.
72 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
75 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
77 * Require libpangocairo for all backends.
79 2005-02-03 Tor Lillqvist <tml@novell.com>
81 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
82 wide character version of ImmGetCompositionString() here,
83 too. (#165278, Takuro Ashie)
85 2005-02-03 Matthias Clasen <mclasen@redhat.com>
87 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
88 one roundtrip per motion event. (#166173, pointed out
89 by Chris Lee, patch by Søren Sandmann)
93 * gtk/gtkstock.c (gtk_stock_set_translate_func):
94 New function which allows to change the function used for
95 translation stock labels, on a per-domain basis. Use this
96 functionality to switch the GTK+ stock items to use Q_()
97 prefixed msgids. (#166179, Funda Wang)
99 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
102 2005-02-02 Federico Mena Quintero <federico@ximian.com>
106 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
107 Don't select the first row if the chooser is not mapped. This
108 happens when it's acting on behalf of GtkFileChooserButton. Also,
109 don't select the first row if we are in SAVE or CREATE_FOLDER
110 modes --- I had missed that (see the ChangeLog entry from
111 2005-01-18). Fixes #165264.
113 2005-02-02 Tor Lillqvist <tml@novell.com>
115 Implement lazy extended input initialization on Win32, by Robert
116 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
117 be a good idea in any case even if it didn't fix any visible
120 The Wacom tablet driver seems to get confused if Wintab is
121 initialized but no window is shown before the process exits. This
122 is the case for some GIMP plug-ins, for instance.
124 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
125 non-static (and renamed).
126 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
128 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
130 * gdk/win32/gdkinput.c (gdk_devices_list,
131 gdk_display_list_devices, gdk_input_set_extension_events): Call
132 _gdk_input_wintab_init_check() here instead.
134 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
136 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
137 of a single window so that gtk_clipboard_request_contents() can be
138 called inside a GtkClipboardReceivedFunc(). (#163844)
140 2005-02-01 Matthias Clasen <mclasen@redhat.com>
142 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
143 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
145 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
146 to NULL after freeing it. (#165800, Damon Chaplin)
148 2005-02-01 Michael Natterer <mitch@gimp.org>
150 * configure.in: depend on stable pango-1.8, not unstable 1.7
152 2005-02-01 Federico Mena Quintero <federico@ximian.com>
156 * gtk/gtkfilechooserdefault.c
157 (browse_files_model_finished_loading_cb): Don't
158 g_assert_not_reached() if we are in any other state. Another code
159 path may have triggered a folder reload. Fixes #165556.
161 2005-02-01 Federico Mena Quintero <federico@ximian.com>
167 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
168 fallback size be 16, to be equal to the default for
169 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
170 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
171 GTK_ICON_SIZE_SMALL_TOOLBAR.
173 2005-02-01 Matthias Clasen <mclasen@redhat.com>
175 * */*.c: Fix many instances of "the the" in docs and
176 comments. (#165815, Masao Mutoh)
178 * gtk/updateiconcache.c (main): Add a --quiet option.
180 2005-02-01 Tor Lillqvist <tml@novell.com>
182 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
183 reset_after_dead, handle_dead): New functions, code blocks
184 refactored out of update_keymap(). No functionality change.
186 (update_keymap): Use ToUnicodeEx() when available (on NT-based
187 Windows) instead of ToAsciiEx(). Makes keyboard input work in
188 Unicode-only input locales that don't have any ANSI codepage, for
189 instance Hindi and Bengali. Use _gdk_input_codepage only on
192 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
193 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
194 TranslateCharsetInfo() to get the input locale's corresponding
197 2005-01-31 Matthias Clasen <mclasen@redhat.com>
199 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
200 NULL-terminated va lists. (#165683)
202 2005-01-29 Matthias Clasen <mclasen@redhat.com>
204 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
205 Typo fix. (#165581, Masao Mutoh)
207 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
209 * README.cvs-commits: update ancient IRC info.
211 2005-01-27 Federico Mena Quintero <federico@ximian.com>
215 * gtk/gtkfilechooserdefault.c
216 (gtk_file_chooser_default_select_path): Oops, don't assert that we
217 can't reach the end of the function; this happens if we are still
218 loading but don't need a path change. Fixes #165213.
220 2005-01-27 Matthias Clasen <mclasen@redhat.com>
222 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
223 Make wrapping work in RTL mode.
225 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
226 obey HIG spacing a bit more, add a hand cursor when over the
227 link button. (#163979, Jorn Baayen)
229 2005-01-26 Matthias Clasen <mclasen@redhat.com>
231 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
232 Don't allow -1 as minimum-key-length.
233 (gtk_entry_completion_set_model): Add missing notification.
234 (gtk_entry_completion_set_minimum_key_length): Add missing
235 notification, allow setting minimum-key-length to 0. (#165194,
238 2005-01-26 Matthias Clasen <mclasen@redhat.com>
240 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
241 the license dialog is initially displayed without a horizontal
243 (gtk_about_dialog_class_init): Document the fact that the
244 license text is not wrapped. (#165012, Christian Rose)
246 2005-01-25 Matthias Clasen <mclasen@redhat.com>
248 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
251 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
252 docs. (#165163, Jeff Franks)
254 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
255 for a string GValue. (#165203, Damon Chaplin)
257 2005-01-24 Matthias Clasen <mclasen@redhat.com>
259 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
260 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
263 2005-01-24 Federico Mena Quintero <federico@ximian.com>
265 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
267 2005-01-24 Federico Mena Quintero <federico@ximian.com>
271 Fix #147785 and clean up the loading code:
273 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
274 be EMPTY, PRELOAD, LOADING, FINISHED.
275 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
276 (struct _GtkFileChooserDefault): Added a pending_select_paths
278 (load_remove_timer): Add the new states.
279 (load_setup_timer): Likewise.
280 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
281 (browse_files_model_finished_loading_cb): Switch to the
283 (enum PendingOp): Removed.
284 (struct _GtkFileChooserDefault): Removed the pending_op and
285 pending_select_path fields.
286 (pending_select_paths_free): New utility function.
287 (pending_select_paths_add): New utility function.
288 (gtk_file_chooser_default_finalize): Call
289 pending_select_paths_free().
290 (pending_op_queue): Removed.
291 (pending_op_process): Removed.
292 (pending_select_paths_process): New function.
293 (browse_files_model_finished_loading_cb): Call
294 pending_select_paths_process().
295 (center_selected_row_foreach_cb): Handle multiple selection by
296 only centering the first row.
297 (get_is_file_filtered): Constify.
298 (gtk_file_chooser_default_select_path): Queue into a list of paths
299 to select if we are not finished loading.
300 (show_and_select_paths): New utility function.
301 (up_folder_handler): Use pending_select_paths_add().
302 (gtk_file_chooser_default_should_respond): Do not call
303 pending_op_queue(); free the pending_selected_paths instead.
304 (gtk_file_chooser_default_initial_focus): Don't queue a pending
305 operation, and don't select the first row unconditionally --- this
306 will happen when the folder is done loading.
307 (shortcuts_row_activated_cb): Free the pending_select_paths.
308 (pending_select_paths_store_selection): New utility function.
309 (gtk_file_chooser_default_map): Call
310 pending_select_paths_store_selection() to save the selection
311 before reloading the folder.
312 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
313 move the cursor here; it will be done when processing the pending paths.
315 * tests/testfilechooser.c (main): Add a button to the command
316 window to unmap and remap the file chooser.
318 2005-01-24 Matthias Clasen <mclasen@redhat.com>
320 * docs/tutorial/gtk-tut.sgml:
321 * docs/tutorial/gtk_tut.sgml:
322 * docs/reference/gtk/tmpl/gtkliststore.sgml:
323 * gtk/gtkactiongroup.c:
324 * gtk/gtksizegroup.c:
325 * gtk/gtksizegroup.h:
326 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
327 appropriate. (#165108, Dan Winship)
329 2005-01-24 Matthias Clasen <mclasen@redhat.com>
331 * gtk/gtkwidget.c (gtk_widget_class_init): Document
332 GtkWidget::style-set. (#164222, Alex Graveley)
334 2005-01-22 Matthias Clasen <mclasen@redhat.com>
336 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
337 Remove the accidentally added prototype for this unimplemented
338 function. (#164893, Jeff Franks)
340 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
343 2005-01-23 Tor Lillqvist <tml@novell.com>
345 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
346 dead accent key. (#164859, reported and fix verified by Daniel
349 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
350 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
353 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
354 Don't call GetVolumeInformation() for network drives. They might
355 be disconnected, and calling GetVolumeInformation() will then
356 cause long delays. (#164448, reported by Dave Neary.) It seems to
357 be very hard to reliably find out whether a network drive is
358 connected or not, so it's easier to just not try getting the
359 volume name for them. See the bug report for discussion.
361 Make volume name display formats translatable.
363 Fix for #163702, from Ivan Wong:
365 * gdk/win32/gdkprivate-win32.h
366 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
368 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
369 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
370 GDK_SELECTION_CLEAR event.
372 * gdk/win32/gdkselection-win32.c
373 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
374 when emptying the clipboard ourselves.
376 (gdk_selection_send_notify_for_display): Remove the artifical
377 GDK_SELECTION_CLEAR event generation.
379 2005-01-21 Matthias Clasen <mclasen@redhat.com>
381 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
382 provided by Bill Haneman.
384 2005-01-20 Matthias Clasen <mclasen@redhat.com>
386 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
389 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
390 here, even if the only focusable widgets are labels.
392 2005-01-20 Matthias Clasen <mclasen@redhat.com>
394 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
396 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
397 Add a follow-state property which when TRUE causes the pixbuf
398 to be tinted according to state.
400 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
401 Use follow-state and colorize the pixbuf when appropriate.
403 2005-01-20 Matthias Clasen <mclasen@redhat.com>
405 Support wrapping in GtkCellRendererText (#163608):
407 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
408 Add wrap-mode and wrap-width properties which cause a
409 text cell to break to a specified width when set.
411 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
412 and wrap-width when they are set.
414 2005-01-20 Matthias Clasen <mclasen@redhat.com>
416 * gtk/gtkmodules.c (load_module): Don't reverse the order
417 of modules when putting them in gtk_modules. (#162676, Dennis
418 Cranston, patch by Remus Draica)
420 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
421 if the tree is empty. (#164669, Priit Laes)
423 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
425 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
426 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
429 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
431 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
432 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
434 2005-01-19 Tor Lillqvist <tml@novell.com>
436 * gdk/win32/gdkkeys-win32.c (update_keymap,
437 gdk_keymap_translate_keyboard_state): Handle keyboards with
438 ShiftLock (and not CapsLock) correctly. (#161814)
440 2005-01-19 Matthias Clasen <mclasen@redhat.com>
442 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
443 In save mode, don't return paths containing nonexisting
444 directories. (#162443, Jean Marie Favreau)
446 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
447 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
449 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
452 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
453 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
457 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
458 Add a function to obtain the last user interaction
459 time. (#163119, Elijah Newren)
461 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
463 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
466 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
468 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
469 disambiguate nested if/else.
471 2005-01-18 Federico Mena Quintero <federico@ximian.com>
475 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
476 operation to select the first file if we are in SAVE or
477 CREATE_FOLDER modes. Executing that operation would overwrite the
478 contents of the save-name entry.
480 2005-01-18 Matthias Clasen <mclasen@redhat.com>
483 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
484 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
485 pointer warping to GDK. (#160437)
487 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
489 2005-01-18 Matthias Clasen <mclasen@redhat.com>
491 * gtk/gtkstyle.c (gtk_default_draw_check)
492 (gtk_default_draw_option, gtk_default_draw_handle): Add some
493 more NULL checks, patch by Michael Natterer.
495 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
497 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
500 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
501 NULL widget. (#164477, Michael Natterer)
503 2005-01-18 Matthias Clasen <mclasen@redhat.com>
505 Avoid X errors when running against servers which
506 implement XRender < 0.4. (#164427, Albert Chin)
508 * gdk/x11/gdkprivate-x11.h:
509 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
510 New function to check for trapezoid support in XRender.
511 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
514 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
515 separate have_render_with_trapezoids field.
517 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
519 2005-01-17 Matthias Clasen <mclasen@redhat.com>
521 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
523 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
525 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
528 2005-01-17 Matthias Clasen <mclasen@redhat.com>
530 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
531 and restore the selected row in the bookmark list and the
532 save folder combo. (#164290)
534 2005-01-16 Matthias Clasen <mclasen@redhat.com>
536 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
537 Fix argument order in docs.
539 2005-01-15 Matthias Clasen <mclasen@redhat.com>
541 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
542 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
543 if the keymap is neutral. (#164125, Phil Blundell)
545 2005-01-14 Matthias Clasen <mclasen@redhat.com>
547 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
548 reset the property to its default value -1.
549 (gtk_tree_view_get_search_column): Return the default value in
550 the g_return_val_if_fail() check. (#163864, Richard Hult)
552 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
553 Add a translator hint. (#163889)
555 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
556 is an enum value, not a define. Pointed out by Tommi Komulainen.
557 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
559 2005-01-13 Matthias Clasen <mclasen@redhat.com>
561 * configure.in: Check for nl_langinfo()
562 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
563 available to determine first day of week (#163842, Vincent Untz)
565 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
566 the lifecycle of widgets. (#159503, Christian Persch)
568 * demos/gtk-demo/main.c (create_text): Use monospace for the
569 source code view. (#163526, Theerud Lawtrakul)
571 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
572 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
575 * configure.in: Add an OS_LINUX conditional.
577 * gdk/Makefile.am (TESTS):
578 * gdk-pixbuf/Makefile.am (TESTS):
579 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
582 2005-01-13 Matthias Clasen <mclasen@redhat.com>
584 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
585 (gtk_tree_view_set_headers_clickable): Make the headers-visible
586 property readwrite instead of just writable, and remove the
587 g_return_if_fail check that there is a model when setting this
588 property. Also improve the blurb. (#163851, Richard Hult)
590 2005-01-12 Owen Taylor <otaylor@redhat.com>
592 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
593 initialization of gdktarget, that was causing it to be
594 evaluated before host was set. Simplify --with-gdktarget help
597 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
598 which doesn't work with slightly older versions of GNU grep
599 in install-libtool-import-lib rule.
601 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
603 Fix for #162790, by Iwan Wong:
605 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
606 correctly. Simplify the interface to render_line_horizontal() and
607 render_line_vertical(). Need to draw lines "manually" also on
608 NT-based Windowses if we have a dash offset or are drawing
611 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
612 double-dash flag, and a brush for the background colour (used by
613 the odd dashes in the double-dash line style) in the GdkGCWin32
616 * gdk/win32/gdkgc-win32.c: Set up above new fields.
618 2005-01-10 Federico Mena Quintero <federico@ximian.com>
622 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
623 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
624 (gtk_file_system_unix_get_folder): Make error reporting more
625 accurate. Don't bail out if we can't read the directory.
626 (fill_in_stats): Don't return an error; just assume we don't have
627 stat info for this folder's files.
628 (fill_in_names): Don't create the hash table for the names if we
629 can't open the directory.
630 (gtk_file_folder_unix_list_children): Don't emit the
631 "finished-loading" signal --- we don't do asynchronous loads, so
632 we are always finished loading.
633 (gtk_file_folder_unix_get_info): Use helper functions; handle the
634 case where we can't stat '/'.
635 (get_icon_type_from_path): Don't call fill_in_stats() here; only
636 use the info we have.
637 (fill_in_mime_type): Don't return an error. Don't do anything if
638 we don't have the stat info.
640 2005-01-10 Owen Taylor <otaylor@redhat.com>
642 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
645 2005-01-10 Matthias Clasen <mclasen@redhat.com>
647 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
648 signals. (#163319, Murray Cumming)
650 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
652 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
653 cursor also when changing the cursor of a window that is the first
654 ancestor of the window containing the pointer that has a cursor
655 defined. (#163035, Ivan Wong)
657 2005-01-09 Anders Carlsson <andersca@gnome.org>
659 * gtk/gtkcellrenderertext.c: (get_size):
660 * gtk/gtklabel.c: (gtk_label_size_request):
661 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
662 Don't pass NULL to pango_context_get_metrics. Use
663 pango_context_get_language instead, which is way faster.
665 2005-01-08 Matthias Clasen <mclasen@redhat.com>
667 * configure.in: Bump version
669 * === Released 2.6.1 ===
671 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
673 2005-01-07 Tor Lillqvist <tml@iki.fi>
675 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
676 Fix braino. (#163232, Arnaud Charlet)
678 2005-01-06 Matthias Clasen <mclasen@redhat.com>
680 * gtk/gtkiconview.c: Make markup_column work, and fix some
681 layout issues when either icon or text is missing. (#163065)
683 2005-01-06 Federico Mena Quintero <federico@ximian.com>
685 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
686 "Open _Location" item. Fixes #148839.
688 2005-01-06 Matthias Clasen <mclasen@redhat.com>
690 * README.in: Fix a typo. (#163128, kentaro fukuchi)
692 2005-01-06 James M. Cape <jcape@ignore-your.tv>
694 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
695 (gtk_file_chooser_button_new_with_backend): Use default title if
698 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
701 2005-01-05 Federico Mena Quintero <federico@ximian.com>
705 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
706 a pending operation to select the first row.
708 2005-01-05 Federico Mena Quintero <federico@ximian.com>
710 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
711 button_data_free() explicitly; the button is weak-reffed and the
712 callback will free the button data. Fixes #163010.
713 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
714 failure case, call gtk_widget_destroy() on it.
716 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
717 gtk_file_system_get_folder() again (see the ChangeLog entry from
718 2004-08-25). We can't first get the parent folder and then
719 request the info for the path in question, as the parent folder
720 may not be readable. See bug #162617.
721 (gtk_file_chooser_default_set_current_folder): Assert that the
722 passed-in path is not null.
723 (shortcuts_find_current_folder): Likewise.
724 (shortcuts_add_current_folder): Likewise.
725 (set_list_model): Likewise.
726 (gtk_file_chooser_default_map): Only reload the current folder if
728 (bookmarks_check_add_sensitivity): Check for the current folder
730 (browse_files_select_first_row): Don't set the cursor if there is
733 2005-01-05 Matthias Clasen <mclasen@redhat.com>
735 * gtk/gtkfilechooserdefault.c: Don't construct errors from
736 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
737 (get_file_info, check_is_folder): Translate errors from
738 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
739 of the fix for #162911, noticed by Murray Cumming.
741 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
743 * gtk/gtkviewport.c (gtk_viewport_realize):
744 * gtk/gtktextview.c ((text_window_realize): Set the background of
745 the windows to None instead of adding EXPOSURE_MASK, as suggested
748 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
749 the user time when receiving a WM_DELETE message. (#162980,
752 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
754 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
755 only reorder on button 1, part of #141937
757 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
761 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
762 to win->window's event_mask
764 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
765 to viewport->view_window.
767 2005-01-04 Matthias Clasen <mclasen@redhat.com>
769 * demos/testpixbuf.c (main): Remove the size_prepared callback,
770 to test incremental display.
771 (new_testrgb_window): Return the drawing area, not the window,
772 since we want to queue draws on the drawing area.
774 2005-01-03 Matthias Clasen <mclasen@redhat.com>
776 * examples/*: Re-extract.
778 * docs/tutorial/gtk-tut.sgml: Small corrections.
780 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
781 section. (#161414, Robert Ancell)
783 * docs/tutorial/gtk-tut.sgml: Make it build.
785 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
786 regarding modality. (#112903, Dave Bordoley)
788 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
789 Add a little motivation. (#145556, Tommi Komulainen)
791 * docs/tutorial/gtk-tut.sgml: Clarify section on
792 g_signal_connect_swapped. (#120543, David Bourguignon)
794 Make gtk_icon_theme_load_icon() work independent of
795 icon factory initialization. (#162791, Tristan Van Berkom)
797 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
798 _gtk_icon_factory_ensure_default_icons, and make it non-static.
800 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
802 2005-01-02 Matthias Clasen <mclasen@redhat.com>
804 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
805 Don't add a shortcut here. (#162752, Tor Lillqvist)
807 2005-01-02 Tor Lillqvist <tml@iki.fi>
809 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
810 CoTaskMemFree in get_special_folder() below.
812 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
813 Win32 using _gtk_file_system_win32_path_compare().
815 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
817 * gtk/gtkfilechooserbutton.c (model_add_special)
818 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
819 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
822 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
823 consider all drives "mounted", including floppies. Trying to
824 inspect the contents of a nonexistent floppy will cause errors
825 later that are handled normally, no need to avoid them
826 completely. Keep the drive type in the GtkFileSystemVolume.
827 Support UNC paths. (#161797, #137874) Fix error message
828 capitalizations as in gtkfilesystemunix.c.
830 (gtk_file_system_win32_init): Start one timeout per
833 (gtk_file_system_win32_finalize): Remove the timeout.
835 (get_special_folder): Copied from GLib.
837 (_gtk_file_system_win32_get_desktop): New function, uses
838 get_special_folder().
840 (gtk_file_system_win32_list_volumes): Don't start a timeout at
841 each call to this function. Don't assume A: and B: are floppies.
843 (gtk_file_system_win32_get_volume_for_path): Don't assume all
844 volumes are drive roots, i.e. support share roots of UNC paths
847 (gtk_file_system_win32_get_folder): Don't assume errno is set
848 after g_file_test() returns FALSE. It isn't on Win32 (and even on
849 Unix I don't think one should assume anything about errno after
852 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
854 (gtk_file_system_win32_volume_get_display_name): Don't call
855 GetVolumeInformation() on drives A: or B: if they are removable,
856 as they might then be floppies, causing an unnecessary
859 (gtk_file_system_win32_volume_render_icon): Use network icon for
860 unrecognized drive types.
862 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
863 confused by UNC paths.
865 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
866 for case-insensitive UTF-8 path comparison.
868 (extract_icon): Use SHGetFileInfo() which is faster than
869 ExtractAssociatedIcon(). Icon extraction is still slow, though,
872 (win32_pseudo_mime_lookup): Don't use the same icon for all
873 shortcuts or executables. Cache only other file type icons.
875 (gtk_file_system_win32_render_icon): Use network stock icon for
876 remote drives and UNC server share roots. Compare home directory
877 case-insensitively. Do lookup icons also for executable files,
878 after all, it's these files that can have individual icons in the
879 first place. Yes, it can be slow. Needs work.
881 (filename_is_drive_root): Require also the slash after the colon.
883 (filename_is_server_share): New function.
885 (_gtk_file_system_win32_path_compare): New function, does
886 case-folded UTF-8 comparison.
888 * gtk/gtkfilesystemwin32.h: Declare
889 _gtk_file_system_win32_path_compare().
891 2005-01-01 Matthias Clasen <mclasen@redhat.com>
893 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
894 custom image by passing NULL.
895 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
896 a problem with changing stock labels. (#162273, Marcin
899 2005-01-01 Tor Lillqvist <tml@iki.fi>
901 * gtk/gtkmodules.c (get_module_path)
902 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
903 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
904 g_getenv() now returning UTF-8 on Win32, no need to call
907 2004-12-31 Matthias Clasen <mclasen@redhat.com>
909 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
910 (_gtk_key_hash_lookup): Don't sort a list of values as if
911 it was a list of entries. This fixes crashes during mnemonic
912 activation in the presence of multiple keymaps. (#162488,
915 2004-12-30 Matthias Clasen <mclasen@redhat.com>
917 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
918 state propagation when making an insensitive combo box sensitive
919 again. (#162524, Carlos Garnacho Parro)
921 * gtk/gtkfilechooserdefault.c: Use secondary text for error
924 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
925 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
926 for error messages. Also mark some error messages for translation,
927 fix capitalization of error messages.
929 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
930 Use g_value_get_boolean() for ellipsize_set. (#162447,
933 2004-12-30 Tor Lillqvist <tml@iki.fi>
935 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
938 2004-12-28 Matthias Clasen <mclasen@redhat.com>
940 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
941 submenu direction from the parent menu.
943 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
944 Return a boolean indicating whether an item in the submenu
946 (gtk_real_menu_shell_move_current): When going in child
947 direction, don't get stuck at completely insensitive
948 submenus. (#162055, Billy Biggs)
950 2004-12-27 Matthias Clasen <mclasen@redhat.com>
952 Make the clipboard image API more robust (#162357,
955 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
956 ref the pixbuf if it is NULL.
958 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
959 NULL-terminate the varargs in the call to
960 gdk_pixbuf_save_to_buffer().
961 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
962 if there is data to load.
964 2004-12-27 Matthias Clasen <mclasen@redhat.com>
966 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
967 Set x_root and y_root in button and motion events from
968 extended input devices. (#148715, Robert Ögren)
970 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
971 typo. (#162339, Alessio Dessi)
973 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
974 properties as new since 2.4. (#156101, Billy Biggs)
976 * configure.in: Add a warning about the linux-fb
977 target. (#155488, Zeeshan Ali)
979 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
982 2004-12-26 Matthias Clasen <mclasen@redhat.com>
984 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
985 Typo fix. (#162219, Masao Mutoh)
986 (gtk_file_chooser_set_preview_widget_active):
987 Another typo. (#162218, Masao Mutoh)
989 2004-12-23 Matthias Clasen <mclasen@redhat.com>
991 * gtk/gtkliststore.c (gtk_list_store_iter_children):
992 Return TRUE if there are children. (#162134, Iñigo Serna,
993 patch by John Finlay)
995 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
996 Transfer state from the button to the cell view to get
997 prelighting right. (#156327, Ricardo Veguilla)
999 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
1001 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
1002 timeout. Written by Christian Persch.
1004 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
1008 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
1009 background for windows that get expose events.
1011 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
1012 hack to repaint !expose windows.
1014 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
1016 Bug #147497, make menu items activate immediately when you release
1019 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
1020 items activate immediately.
1022 * gtk/gtkmenu.c (definitely_within_item): New function
1023 * gtk/gtkmenu.c (check_threshold): New function
1025 2004-12-22 Matthias Clasen <mclasen@redhat.com>
1027 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
1028 null the mnemonic_menu when unsetting a mnemonic, reported
1031 2004-12-21 Matthias Clasen <mclasen@redhat.com>
1033 * gtk/gtkliststore.c (generate_order): Generate the order the
1034 way it is supposed to be, order[new_pos] == old_pos.
1035 (gtk_list_store_reorder): Invert the order before using it.
1037 2004-12-22 Matthias Clasen <mclasen@redhat.com>
1039 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
1041 * gtk/gtkliststore.c (generate_order): Generate the order the
1042 way it is supposed to be, order[new_pos] == old_pos.
1043 (gtk_list_store_reorder): Invert the order before using it.
1045 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
1048 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
1050 * gtk/queryimmodules.c (main): print out the version and binary
1051 name in the header comment. Problem reported by Seth Nickell.
1053 2004-12-20 Matthias Clasen <mclasen@redhat.com>
1055 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
1056 root path to gtk_tree_model_rows_reordered(). (#161720,
1057 Marcin Krzyzanowski)
1059 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
1060 translate NULL messages. (#161789, Morten Welinder)
1062 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
1063 the secondary label on show_all(). (#161707, Christian Persch)
1065 2004-12-19 Tor Lillqvist <tml@iki.fi>
1067 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
1068 Use wide character API when available. Use UTF-8 for filenames.
1070 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
1071 the string's trailing zero byte in the property's length, just for
1074 2004-12-18 Matthias Clasen <mclasen@redhat.com>
1076 * gtk/gtkfilechooserentry.c (check_completion_callback)
1077 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
1079 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
1080 (shortcuts_drag_outside_idle_cb): Add missing
1081 GDK_THREADS_ENTER/LEAVE. (#161604)
1083 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
1084 (list_select_func): Don't call gtk_file_info_get_is_folder()
1087 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
1088 (gtk_about_dialog_init): Add missing initializations. (#161646,