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