1 2005-06-10 Matthias Clasen <mclasen@redhat.com>
3 Allow setting paragraph background. (#81045, Gustavo
4 Carneiro, patch by Jeroen Zwartepoorte)
6 * gtk/gtktextlayout.c (set_para_values): Propagate
7 pg_bg_color to the display struct.
8 (gtk_text_layout_free_line_display): Free it here.
10 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
11 is set, draw a rectangle in that color behind
14 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
15 paragraph-background, paragraph-background-gdk and
16 paragraph-background-set properties.
17 (set_pg_bg_color): A setter for paragraph-background.
19 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
22 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
24 (struct _GtkTextTag): Add pg_bg_color_set.
26 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
28 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
29 cairo surface when done with it. Plugs a fairly large leak in
31 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
32 826 blocks are definitely lost in loss record 25239 of 25250
33 Like this from nautilus.
35 2005-06-10 Michael Natterer <mitch@imendio.com>
38 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
39 to get an action's accel_closure (Fixes #141750 and #148106).
41 2005-06-10 Matthias Clasen <mclasen@redhat.com>
43 * gdk/gen-keyname-table.pl: Generate N_() calls for
44 translatable key names.
46 * gdk/keynames.txt: Mark some key names as translatable.
48 * gdk/keyname-table.h: Regenerated.
50 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
51 some context to the msg ids for keyboard modifiers and
53 (_gtk_accel_label_class_get_accelerator_label): Try to
54 translate key names. (#300224, Christian Rose)
56 2005-06-10 Federico Mena Quintero <federico@ximian.com>
62 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
63 immediately if we are in CREATE_FOLDER mode, so that we can fill
64 the entry with the newly-selected folder.
65 (gtk_file_chooser_default_set_property): Warn against turning on
66 multiple selection for CREATE_FOLDER mode, or about setting that
67 action while multiple selection is on.
68 (update_chooser_entry): Change the entry's contents as well if we
69 are in CREATE_FOLDER mode. If nothing is selected, clear the
71 (trap_activate_cb): Don't trap enter/space if modifiers are
72 pressed. This lets one use Ctrl-space to toggle rows in multiple
74 (gtk_file_chooser_default_should_respond): Clean up the if-chain
75 mess of special cases by using an array to determine what to do.
76 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
77 the bug where the file chooser would switch to an existing folder
78 rather than confirming with it, and create the folder ourselves.
79 (error_creating_folder_over_existing_file_dialog): New function.
81 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
82 insert the common prefix if we are in an "open" mode. Use a
84 (append_common_prefix): New helper function; code moved over from
85 check_completion_callback().
86 (find_common_prefix): New helper function.
87 (gtk_file_chooser_entry_focus): Append the common prefix if the
88 user requests it explicitly.
90 2005-06-10 Matthias Clasen <mclasen@redhat.com>
92 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
93 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
94 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
95 * gtk/gtkstock.c (gtk_stock_set_translate_func):
96 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
97 * gtk/gtkscrolledwindow.h:
98 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
100 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
101 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
102 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
104 2005-06-09 Matthias Clasen <mclasen@redhat.com>
106 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
108 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
109 (#306212, Steve Chaplin, docs provided by Billy Biggs)
111 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
112 cleanup. (#305539, Paolo Borelli)
114 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
116 * configure.in: added cairo to list of $GTK_PACKAGES.
118 2005-06-09 Matthias Clasen <mclasen@redhat.com>
120 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
121 the user time on the window when a drop happens. (#169364, Alexander
122 Hunziker, patch by Elijah Newren)
124 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
128 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
129 to scroll to a path. (#306838, Jonathan Blandford)
131 2005-06-08 Matthias Clasen <mclasen@redhat.com>
133 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
134 item. (#306839, Jonathan Blandford)
136 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
137 negative before appending the index, to avoid double error
138 message. (#306393, Morten Welinder)
140 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
141 Don't crash if search_window is NULL. (#304914, Victor Osadci,
142 testcase by Olaf Vitters)
144 * gtk/gtkimage.c: Make the file property readable.
145 (#170674, Lorenzo Gil Sanchez)
147 2005-06-08 Matthias Clasen <mclasen@redhat.com>
149 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
150 g_utf8_collate_key_for_filename().
152 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
154 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
155 Merge leak fix from stable. Bug 306754.
157 2005-06-05 Tor Lillqvist <tml@novell.com>
159 * gdk/win32/gdkscreen-win32.c
160 (_gdk_windowing_substitute_screen_number): Return NULL unless
161 screen number is zero. We have only one screen on Win32.
162 (gdk_screen_make_display_name): Call gdk_display_get_name() and
165 * modules/engines/Makefile.am
166 * modules/input/Makefile.am: Decide whether to build the
167 ms-windows theme engine based on the GDK backend, not based on
168 platform. (I.e., if building for Cygwin with the X11 backend, we
169 shouldn't build the ms-windows engine, but if building for Cygwin
170 but with the Win32 backend, we should.) Ditto for the IME
171 (Windows) input module. (#305832)
173 2005-06-04 Tor Lillqvist <tml@novell.com>
175 * gdk/win32/gdkcursor-win32.c
176 * gdk/win32/gdkwindow-win32.c
177 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
178 Support cursors with alpha on XP. Use code in common with the
179 support for alpha icons that already was present. (#306101, Tim
182 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
183 in a way that more closely matches Windows. (#305986, Tim Evans).
185 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
188 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
190 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
191 * modules/engines/ms-windows/xp_theme.c: Ditto
192 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
194 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
196 * gtk/gtkentrycompletion.h: Add declarations for
197 gtk_entry_completion_{get,set}_popup_single_match.
199 2005-05-26 Matthias Clasen <mclasen@redhat.com>
202 * gtk/gtkentrycompletion.c: Add a property to suppress the
203 popup for single matches. (#154711)
205 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
207 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
210 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
211 redisplay after modifying the tag in the btree, otherwise
212 we end up showing the old tags until the next redraw comes
213 around. (#143537, Gary Kramlich, Peter Wainwright)
215 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
216 autoscrolling work at the bottom of the screen.
218 2005-05-26 Maciej Katafiasz <email@mathrick.org>
220 * docs/reference/gtk/tmpl/gtkentry.sgml:
221 Point to GtkTextView instead of GtkText. Fixes bug #305535
223 2005-05-26 Sven Neumann <sven@gimp.org>
225 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
226 aggressive PNG compression level (bug #305340).
228 2005-05-26 Tor Lillqvist <tml@novell.com>
230 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
231 from the root window, take the multi-monitor offset into
234 2005-05-25 Matthias Clasen <mclasen@redhat.com>
236 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
239 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
240 Remove another C99ism.
242 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
243 background of rows insensitive when the treeview is insensitive.
244 (pointed out by Billy Biggs)
246 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
247 and DND, and clipboard persistency.
249 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
250 Make sure png comes first, otherwise dnd may use bmp by
251 default, loosing transparency.
253 2005-05-25 Michael Natterer <mitch@imendio.com>
255 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
256 handler when changing cursor visibility because it would expose
257 the whole paragraph where the cursor is. Instead, expose the
258 cursors' areas manually. (#173047).
260 (text_window_invalidate_cursors): new function which exposes the
263 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
264 same cursor size calculation is in text_window_invalidate_cursors().
266 2005-05-25 Matthias Clasen <mclasen@redhat.com>
268 * demos/gtk-demo/editable_cells.c (create_items_model): Also
269 demonstrate GtkCellRendererProgress.
271 * demos/gtk-demo/Makefile.am (demos):
272 * demos/gtk-demo/combobox.c: Add a demo showing combo box
275 * demos/gtk-demo/Makefile.am (demos):
276 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
278 2005-05-24 Matthias Clasen <mclasen@redhat.com>
280 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
282 2005-05-24 Tor Lillqvist <tml@novell.com>
284 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
285 gtk-alternative-button-order (setting it to TRUE).
287 2005-05-23 Matthias Clasen <mclasen@redhat.com>
289 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
290 an unused variable. (#305130, Jaap A. Haitsma)
292 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
293 the focus away from the file list when operating the filter
294 combo with the pointer. (#304844, Sven Neumann)
296 2005-05-23 Tor Lillqvist <tml@novell.com>
298 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
299 GDK_Menu. (#172383, Ivan Wong)
301 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
302 of the special cases this function takes care of, use it as
303 such. This takes care of for instance the Bengali Virama, see bug
306 2005-05-20 Matthias Clasen <mclasen@redhat.com>
308 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
309 buffer overrun. (#142444, Leonard Michlmayr)
311 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
314 2005-05-18 Matthias Clasen <mclasen@redhat.com>
316 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
317 Use the correct function to conver the uri to a path. (#304565,
320 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
321 Cancel button properly. (#304234, Sven Neumann)
323 2005-05-18 Anders Carlsson <andersca@imendio.com>
325 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
326 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
328 If the horizontal adjustment changes because of a change in the
329 layout width, then do a complete redraw. This is because there
330 might be right-aligned or centered text that needs to be redrawn.
332 2005-05-18 Matthias Clasen <mclasen@redhat.com>
334 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
335 the event masks of descendent windows. (#169821, Tommi Komulainen)
337 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
338 (gtk_tree_view_set_column_drag_info): Fix some errors in the
339 handling of drop columns. (#143355, John Finlay)
341 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
342 Remove the no longer needed workaround.
344 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
345 allocations of mapped children.
347 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
350 2005-05-18 Tor Lillqvist <tml@novell.com>
352 * gdk/win32/gdkevents-win32.c
353 * gdk/win32/gdkkeys-win32.c
354 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
355 lParam of WM_KEY* messages to distinguish between left and right
356 Control and Alt keys. Unfortunately, the right Shift key doesnt
357 set KF_EXTENDED, so to distinguish between left and right Shift
358 keys, check the scan code. (#304584)
360 2005-05-18 Matthias Clasen <mclasen@redhat.com>
362 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
363 length overflows. (#161520, Ian Wienand)
365 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
366 parameter names to make gtk-doc happy.
368 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
369 values of draw-value and value-pos to be the values we
370 actually use in _init. (#304547, Mikael Hallendal)
372 * gtk/gtkcellrendererpixbuf.c: Support named icons in
373 cells by adding a icon-name property. (#165777, Anders
377 * gtk/gtktoolbutton.h:
378 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
379 (gtk_tool_button_get_icon_name): Support named icons in
380 tool buttons by adding a icon-name property. (#116577,
385 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
386 (gtk_drag_set_icon_name): New functions to support themed
387 drag icons. (#116577, Christian Neumair)
389 2005-05-17 Owen Taylor <otaylor@redhat.com>
391 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
392 Update to changed cairo interface.
394 * gdk/x11/gdkdrawable-x11.[ch]:
395 Add _gdk_x11_drawable_update_size()
397 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
398 (gdk_window_move_resize)
399 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
400 Call _gdk_x11_drawable_update_size().
402 2005-05-17 Matthias Clasen <mclasen@redhat.com>
404 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
405 if the text view is not editable.
407 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
408 the popup posted if the button is released over the cellview.
409 This matches the behaviour of other combo box implementations.
412 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
413 when recursing. (#153682, Felipe Heidrich)
415 2005-05-16 Matthias Clasen <mclasen@redhat.com>
417 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
418 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
420 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
421 the entry is not editable. (#304171, Nikos Kouremenos)
423 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
424 Make sure the action of the button and the dialog are in sync,
425 when the dialog is provided by the app. (#303987, David A Knight)
427 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
428 in the docs. (#303940, Masao Mutoh)
430 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
432 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
433 casting. (#304089, Philip Langdale)
435 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
436 the label if we need to. (#169390, Felix Riemann)
438 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
441 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
444 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
445 call gdk_cairo_set_source_color() with a color.
447 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
449 * tests/testiconview.c (main): cast args of drag functions to the
452 2005-05-13 Owen Taylor <otaylor@redhat.com>
454 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
456 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
457 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
459 2005-05-11 Owen Taylor <otaylor@redhat.com>
461 * tests/testgtk.c (on_alpha_window_expose): Fix to use
462 gdk_cairo_create(). (create_alpha_window): Hook up "response"
465 2005-05-11 Owen Taylor <otaylor@redhat.com>
467 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
468 to draw the swatch in to avoid having an extraneous window.
470 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
471 color when !has_opacity.
473 2005-05-10 Owen Taylor <otaylor@redhat.com>
475 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
476 files for Cairo convenience functionality.
478 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
479 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
481 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
482 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
484 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
485 gdk_drawable_create_cairo_context() to gdk_cairo_create().
487 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
488 Rename gdk_pixbuf_set_as_cairo_source() to
489 gdk_cairo_set_source_pixbuf().
491 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
492 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
495 * gdk/gdk.symbols: Update.
497 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
498 coordinate system problem that was causing the wrong portions
501 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
502 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
503 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
504 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
505 gtk/gtkcellview.c (gtk_cell_view_expose)
506 gtk/gtkdnd.c (gtk_drag_highlight_expose)
507 gtk/gtkentry.c (gtk_entry_draw_text)
508 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
510 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
511 GTK+ style ... use instance-private data and standard names for
512 private structure, etc. Move function docs inline.
514 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
515 expose. Switch drawing to Cairo.
517 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
518 gtk_calendar_freeze/thaw
520 2005-05-10 Tor Lillqvist <tml@novell.com>
522 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
523 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
524 == gdk_screen_get_default(), as that might return NULL when this
527 2005-05-09 Matthias Clasen <mclasen@redhat.com>
529 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
530 padding in RTL mode. (#303572, Maciej Katafiasz)
532 2005-05-09 Owen Taylor <otaylor@redhat.com>
534 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
535 Fill in unused bits so they can be used for the depth-32 target case.
536 Rewrite so that that gives a marginal speedup rather than a
537 marginal slowdown. (on x86)
539 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
540 Add gdk_screen_get_rgba_colormap/visual to get a visual for
541 windows with an alpha channel, if one exists.
543 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
544 Stub out gdk_screen_get_rgba_colormap/visual.
546 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
547 "unused" wasn't right for depth == 32, since it depended on
550 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
552 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
554 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
555 Implement again, without using Xft.
557 * tests/testgtk.c: Add a test for windows with an alpha channel.
559 2005-05-09 Matthias Clasen <mclasen@redhat.com>
561 * autogen.sh: Revert accidental commit.
563 2005-05-08 Matthias Clasen <mclasen@redhat.com>
565 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
570 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
572 2005-05-07 Matthias Clasen <mclasen@redhat.com>
574 * gtk/gtkscrolledwindow.h:
575 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
576 (gtk_scrolled_window_get_cscrollbar): Change the return
577 type to GtkWidget*, proposed by Owen Taylor.
579 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
580 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
583 2005-05-07 Matthias Clasen <mclasen@redhat.com>
585 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
588 2005-05-07 Owen Taylor <otaylor@redhat.com>
590 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
591 the background color.
593 2005-05-07 Owen Taylor <otaylor@redhat.com>
595 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
596 Change prototype to match cairo_set_source_surface().
598 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
599 gtk/gtkhsv.c tests/testcairo.c.
601 2005-05-06 Federico Mena Quintero <federico@ximian.com>
605 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
606 types if this is an AFS directory.
607 (fill_in_names): If we are in an AFS directory, set the MIME type
608 blindly to "x-directory/normal".
610 2005-05-06 Matthias Clasen <mclasen@redhat.com>
612 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
613 initialize child-visible to FALSE, otherwise we may end up
614 with the wrong page visible initially. (#302283, Patrik Fimml)
616 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
617 appear insensitive in insensitive treeviews.
619 2005-05-05 Matthias Clasen <mclasen@redhat.com>
621 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
624 2005-05-06 Matthias Clasen <mclasen@redhat.com>
627 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
628 support in the tree view. (#150270)
630 2005-05-05 Matthias Clasen <mclasen@redhat.com>
633 * gtk/gtkwidget.h: Small cleanups.
635 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
638 2005-05-04 Owen Taylor <otaylor@redhat.com>
640 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
641 in focus tracking when we move between has_pointer_focus and
642 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
645 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
646 happen in the case of no window manager + keyboard grabs, by
647 moving to a more consistent model of when we pay attention to
648 mode=NotifyGrab/NotifyUngrab events.
650 * docs/focus_tracking.txt: Extensive writeup about how to track
653 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
655 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
656 cairo_set_source_surface()/cairo_paint();
658 2005-05-04 Tor Lillqvist <tml@novell.com>
660 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
661 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
662 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
663 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
666 2005-05-03 Matthias Clasen <mclasen@redhat.com>
668 * gtk/gtkfilesystem.c:
669 * gtk/gtkcelleditable.c:
670 * gtk/gtktreemodel.c: Avoid getting the interface struct
671 twice in the same function. (#300513, Billy Biggs)
673 * gtk/gtkscrolledwindow.h:
674 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
675 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
679 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
680 Make this function public. (#170748, Morten Welinder)
682 2005-05-02 Federico Mena Quintero <federico@ximian.com>
688 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
689 to store struct stat for /afs and /net, and boolean fields to say
690 whether these are valid.
691 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
692 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
693 field of the folder structure.
694 (fill_in_names): If the folder is a network directory, create a
695 fake struct stat for its entries.
696 (fill_in_stats): Don't stat() the children of network directories.
698 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
699 is 0, use "Unknown" for the cell's displayed text.
701 2005-04-28 Owen Taylor <otaylor@redhat.com>
703 * gtk/gtkwidget.c: Add a draw-border style property to allow
704 themes to draw outside the widget's allocation.
706 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
707 that were working around the clip-leakage bug in Cairo.
709 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
712 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
713 That updates a Cairo context to match a GC.
715 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
716 for tiles/stipples/clipping to gdk_draw_glyphs(),
717 gdk_draw_trapezoids().
719 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
720 implementation of stipples. Use one cairo_t across the entire
721 drawing operation. Replace cairo_matrix_create() with
722 stack-allocated matrices.
724 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
725 gdk/win32/gdkgc-win32.c: Save various aspects of the
726 GC state (fill, tile, stipple, foreground, background, clip region)
727 in instance-private-data for future use. Add getters.
728 Get rid of _gdk_windowing_gc_get_foreground() function implemented
731 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
732 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
733 _gdk_gc_init() to do initial setup of the GC from values;
734 fixes some problems from drawable redirection.
736 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
737 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
738 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
739 the generic code, add _gdk_windowing_gc_copy(),
740 _gdk_windowing_gc_set_clip_region() to do backend specific
743 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
744 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
745 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
746 Don't duplicate state that now is stored by the generic code.
748 * gdk/gdk.symbols Update
750 2005-05-02 Matthias Clasen <mclasen@redhat.com>
752 * tests/testiconview.c: Test cell renderers.
754 * gtk/gtk.symbols: Add new functions.
756 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
757 cell renderers for drawing and editing. (#148144, #160242)
759 2005-05-02 Matthias Clasen <mclasen@redhat.com>
761 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
762 width for cases where pango_layout_get_pixel_extents() returns
763 a rectangle with nonzero x.
765 * gtk/gtkselection.c: Small doc fixes.
767 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
768 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
770 2005-05-02 Michael Natterer <mitch@imendio.com>
772 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
773 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
774 multiple times when using gtk_get_option_group(), just as one can
775 call gtk_init() multiple times without doing any harm.
777 2005-05-01 Matthias Clasen <mclasen@redhat.com>
779 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
780 the event to unanchored children in the text window.
781 (#302494, Stephen Kennedy)
783 2005-04-30 Tor Lillqvist <tml@novell.com>
785 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
786 multi-monitor offset into account. (#302525)
788 2005-04-29 Matthias Clasen <mclasen@redhat.com>
790 * gtk/gtkradioaction.c: Make the docs build. (#302230,
793 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
794 function, instead show the bin_window when it is created.
796 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
797 grab focus to unrealized widgets. (#302240, Philip Langdale)
799 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
800 background upon state changes. (#301651, Billy Biggs)
801 (gtk_tree_view_get_path_at_pos): Take RTL into account
802 when iterating over the columns. (#302163)
804 * configure.in: Check for nm.
806 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
807 Nguyen Thai Ngoc Duy)
809 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
810 the internal unselect_all function, since we need the unselection
811 to happen even in browse mode. (#300995, Mathias Hasselmann)
813 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
814 of triggering a ::notify by re-setting the property. (#300982,
817 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
819 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
820 scroll horizontally when necessary, and keep the northwest
821 corner of the item visible. (#300913, Mathias Hasselmann)
823 * tests/testiconview.c: Add some more tests.
825 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
826 if the path does not point to a row in the model. (#300909,
828 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
831 * tests/testtext.c: Add some more attribute tests.
833 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
834 of the rise property. String change, but it is more important to
835 be correct than to be translated. (#301740)
837 2005-04-25 Tor Lillqvist <tml@novell.com>
839 * gtk/gtkfilesystemwin32.c
840 (gtk_file_system_win32_volume_get_display_name): Get volume name
841 also on Win9x. (#301798, Daniel Atallah)
842 (canonicalize_filename): Add explicit braces to silence compiler
845 2005-04-22 Tor Lillqvist <tml@novell.com>
847 * gtk/gtkmain.c: Initailize gettext before use. Calling
848 bindtextdomain() and bind_textdomain_codeset() in
849 do_post_parse_initialization() is too late. Put the calls in a new
850 function gettext_initialization(), and call that from
851 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
852 GTK+'s part, but the same problem occurs also at least in
853 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
855 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
857 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
858 character height instead of cell height. Fix #301228.
860 2005-04-18 Federico Mena Quintero <federico@ximian.com>
864 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
865 obsolete assertion that the selected row can't be a volume; this
866 is handled by the "removable" column now. Fixes #301017.
868 2005-04-18 Owen Taylor <otaylor@redhat.com>
870 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
871 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
872 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
873 setting color and opacity. (#301066, Vincent Noel)
875 2005-04-15 Federico Mena Quintero <federico@ximian.com>
879 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
880 Patch from Christian Neumair <chris@gnome-de.org>; only select the
881 first row if we are in OPEN mode. The only other case we were
882 letting pass through was SELECT_FOLDER, but selecting the first
883 row when changing folders confuses people when folders are
884 actually being selected. Fixes #171885.
886 2005-04-13 Matthias Clasen <mclasen@redhat.com>
888 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
889 Revert the fix for #169870, adjust the documentation instead.
891 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
892 Revert the fix for #170727.
894 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
898 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
901 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
904 2005-04-09 Matthias Clasen <mclasen@redhat.com>
906 * gdk/x11/gdkinput-xfree.c:
907 * gdk/x11/gdkinput-none.c:
908 * gdk/gtk.symbols: Some more fixes necessary to
909 make building with gcc 4 work.
911 Add 16x16 versions of the zoom icons and of
912 GTK_STOCK_INDEX. Some of the images were taken from
913 the hicolor icon theme, and were originally created
914 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
917 * gtk/stock-icons/stock_index_16.png:
918 * gtk/stock-icons/stock_zoom_1_16.png:
919 * gtk/stock-icons/stock_zoom_fit_16.png:
920 * gtk/stock-icons/stock_zoom_in_16.png:
921 * gtk/stock-icons/stock_zoom_out_16.png: New images.
923 * gtk/stock-icons/Makefile.am: Add the new images.
925 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
926 Don't display too many broken images. (#169870, Roman
927 Kagan, patch by Ivan Wong)
929 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
930 output. (#300013, Tommi Komulainen)
932 2005-04-08 Matthias Clasen <mclasen@redhat.com>
934 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
935 If a stock_id is unknown, display the missing image. (#169870,
938 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
939 as in updateiconcache.c. (spotted by Morten Welinder)
941 2005-04-08 Carl Worth <cworth@cworth.org>
943 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
944 now that cairo exposes the cairo_matrix_t structure.
946 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
947 cairo API change in signedness of data argument.
949 2005-04-08 Matthias Clasen <mclasen@redhat.com>
951 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
952 work when called from gtk_combo_box_destroy(). (#172999,
955 2005-04-08 Matthias Clasen <mclasen@redhat.com>
957 Fix double-click to autosize treeview columns. This was
958 probably broken since 2.2 ! (#169675)
960 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
961 "user-resized" state of the column on a double-click to
963 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
964 Enter the "user-resized" state of the column only if a drag
965 actually changes the column width, not on any click.
967 2005-04-07 Matthias Clasen <mclasen@redhat.com>
969 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
970 images on menus. (#169532, Benjamin Otte)
972 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
973 unaligned access. (#172947)
975 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
976 Consistently use the term "Bookmarks" in the UI. (#166906,
979 Some fixes from Morten Welinder (#172947):
981 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
982 and platform-independent.
983 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
984 (build_cache): Error out if a stat fails.
986 2005-04-07 Matthias Clasen <mclasen@redhat.com>
988 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
989 a hint about hiding expanders.
991 * gtk/updateiconcache.c (is_cache_up_to_date): Return
992 TRUE if the cache is newer than the directory. (#172852,
995 * configure.in: Replace an explicit pkg-config by
996 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
998 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
999 Ignore regions which fall completely outside the line.
1000 (#165862, Felipe Heidrich)
1002 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1004 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1005 -1 as possible value.
1006 (gtk_tree_view_enable_model_drag_source)
1007 (gtk_tree_view_enable_model_drag_dest): Pass the target list
1008 to the underlying dnd implementation, otherwise we miss the
1009 target info in the drag-data-received signal. (#164085, Jorn
1012 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1014 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
1015 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1016 to gdk_window_get_pointer(). (#168015, Billy Biggs)
1018 * po/.cvsignore, po-properties/.cvsignore: Remove
1019 Makefile.in.in. (#171092, Stepan Kasal)
1021 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
1022 scanner->value, copy it first. (#165693, Tommi Komulainen)
1024 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1026 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
1027 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1028 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
1031 * gtk/gtkicontheme.c: Store icon caches along with the
1032 mtimes of the toplevel directories. The previous
1033 mechanism of a hashtable-per-theme caused duplicate icon
1034 caches for the same toplevel directory to be created.
1037 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1039 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
1040 Fix a typo in a warning.
1042 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1043 the license and credits buttons from being affected by
1044 gtk_widget_show_all(). (#172724)
1046 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1048 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
1049 reference to the item. (#167920, Hazael Maldonado Torres)
1051 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1052 more docs on interactive search.
1054 2005-04-05 Tor Lillqvist <tml@novell.com>
1056 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1057 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1058 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1060 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1061 24bpp GdkVisual on 32bpp displays. (#140706)
1063 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
1065 Fix for #172319, Tristan Van Berkom:
1067 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1068 gtk_tree_view_real_expand_row() instead of doing this by hand.
1070 2005-04-04 Johan Dahlin <johan@gnome.org>
1072 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1073 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1074 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1076 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
1078 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1079 cast combo->priv->entry to GTK_ENTRY()
1081 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1082 cast completion->priv->tree_view to GTK_TREE_VIEW()
1084 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1086 * gtk/gtktextbuffer.c: Some trivial doc fixes.
1088 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
1089 the wording of the doc comment. (#172422, Vincent Untz)
1091 2005-04-04 Owen Taylor <otaylor@redhat.com>
1093 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1094 drawing to Cairo. Also always draw the entire triangle instead
1095 of just drawing the center for prelight. (Fixes inconsistent
1096 drawing in GtkTreeView.)
1098 2005-04-04 Johan Dahlin <johan@gnome.org>
1100 * gtk/gtk.symbols: Remove symbols accidentally added.
1101 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1102 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1103 Use object_class instead of gobject_class
1105 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
1107 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1108 widget coordinates instead of root coordinates. Patch from Jorn
1111 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1113 * gtk/gtktoolbar.c: Add a tooltips property.
1115 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
1116 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1118 * gtk/gtktoggletoolbutton.c: Add an active property.
1120 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1122 Allow completion popups to be wider than the entry. (#131916,
1125 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1127 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1128 Don't force the popup to have the same width as the entry if
1129 popup-set-width is FALSE.
1131 * gtk/gtk.symbols: Add new functions.
1133 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1135 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1136 Use gtk_accel_map_change_entry(), so that reusing the same
1137 action name works. (#170727, Paolo Borelli)
1139 2005-04-04 Tor Lillqvist <tml@novell.com>
1141 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1142 function, to log a clipboard format name symbolically.
1143 (_gdk_win32_data_to_string): Also new, to log random data bytes.
1145 Implement delayed rendering on Win32, specifically for transfering
1146 images through the clipboard from GTK+ apps to other
1147 apps (#168173, implementation by Ivan Wong):
1149 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1150 Handle WM_RENDERFORMAT.
1152 * gdk/win32/gdkprivate-win32.h
1153 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1154 _delayed_rendering_data and _image_bmp.
1156 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1158 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1159 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1160 assume they are handled through delayed rendering.
1162 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1163 Return all available formats (including those registered by GTK+
1164 apps) on request_targets.
1165 (gdk_selection_property_get): We should append a zero byte like
1167 (gdk_win32_selection_add_targets): New function, for
1168 gtkselection's use. Win32 requires that the clipboard owner
1169 registers all valid formats even if the owner wants delayed
1171 (_gdk_win32_selection_convert_to_dib): New function. Convert
1172 images to DIB using gdk-pixbuf.
1174 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1176 * gtk/gtkselection.c (gtk_selection_add_target,
1177 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
1178 to register target formats.
1180 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
1182 2005-04-03 Hans Breuer <hans@breuer.org>
1184 [merged from gtk-2-6 branch]
1185 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
1186 the line pattern not the start of the line. Fixes bug #171641.
1188 * gtk/makefile.msc.in : follow .symbols changes
1190 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
1191 dynamically. (It is not available in _WIN_VER <= 0x0400)
1193 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
1195 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
1197 [also applied to gtk-2-6 branch]
1198 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
1200 * gdk/makefile.msc.in : add gtkmnemonichash.obj
1202 * test/testgtk.c(set_parent_signal) : use g_message instead of
1203 g_print to keep the 'testgtk --bench=all' output clean
1205 2005-04-03 Matthias Clasen <mclasen@redhat.com>
1207 * gtk/gtkruler.c: Add a "metric" property.
1209 * gtk/gtkradiomenuitem.c: Add a "group" property like
1210 the one found in radio buttons.
1212 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
1214 (gtk_radio_button_set_group): Add change notification.
1216 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1218 * gtk/gtkselection.c: Move documentation inline, document
1219 if add_target functions append or prepend. (#172350,
1222 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1224 Make gtk_combo_box_get_active_text do the right thing for
1225 GtkComboBoxEntry (#171373, Robert Staudinger)
1227 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
1229 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
1232 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1233 Implement get_active_text by always returning the content of
1236 2005-03-31 Sven Neumann <sven@gimp.org>
1238 Merged from gtk-2-6:
1241 * gtk/gtkiconview.c: fixed gtk-doc comments.
1243 2005-03-31 Michael Natterer <mitch@gimp.org>
1245 Allow to pop up menus without grabbing the keyboard. Useful for
1246 stuff like virtual keyboards. Fixes bug #159890
1249 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
1250 and public API gtk_menu_shell_set/get_take_focus().
1252 * gtk/gtkmenu.c (gtk_menu_popup)
1253 (popup_grab_on_window): don't grab the keyboard if take_focus
1256 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
1257 parent menu_shell's take_focus property to the submenu which is
1258 about to be popped up.
1260 2005-03-30 Federico Mena Quintero <federico@ximian.com>
1262 Merged from gtk-2-6:
1266 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
1267 if the row which changed is the same as the row being edited.
1269 2005-03-30 Matthias Clasen <mclasen@redhat.com>
1271 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1272 Make enable_search control only typeahead, not C-f. (#170435,
1274 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
1276 * gdk/gdkpixbuf.h: Include cairo.h
1278 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
1279 Don't accept n_targets == -1.
1280 (clipboard_unset): unref the old_data, not the
1281 user_data which we have just cleared. (#172038, Sven
1284 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
1285 segfault if somebody tries to popup an unrealized
1286 combo box. (#172031, Felipe Heidrich)
1288 2005-03-30 Tor Lillqvist <tml@novell.com>
1290 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
1291 state field should represent the state before the event, like on
1293 (gdk_event_translate): Fix event filter handling. If an event
1294 filter (global, client message filter, of window-specific) returns
1295 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
1296 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
1297 from gdk_event_translate() which means that DefWindowProc() will
1299 (gdk_event_translate): Fix client message handling. Append a
1300 GDK_CLIENT_EVENT unless there is a filter that matches and returns
1301 something other than GDK_FILTER_CONTINUE. (#135552)
1303 2005-03-29 Matthias Clasen <mclasen@redhat.com>
1305 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
1306 Document the need to refilter if parameters of the visibility function
1307 change. (#169516, Olivier Sessink)
1309 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
1311 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
1312 invalidate areas that are covered by mapped input-output child
1313 windows. Bug 141380.
1315 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
1317 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
1318 the preview label ellipsize so the dialog layout stays constant.
1321 2005-03-28 Matthias Clasen <mclasen@redhat.com>
1323 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
1324 the context menu of the search entry if it is not visible.
1325 (#169534, Billy Biggs)
1327 2005-03-27 Tor Lillqvist <tml@novell.com>
1329 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
1330 after all, and in fact necessary with HEAD libtool.
1332 2005-03-26 Matthias Clasen <mclasen@redhat.com>
1335 * gdk/gdkdisplaymanager.c:
1336 Use canonical names for g_object_notify() as well.
1338 2005-03-24 Tor Lillqvist <tml@novell.com>
1340 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
1341 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
1342 gtk+-2.0.pc file and automatically used by dependents. MSVC users
1343 who use pkg-config will have to manually edit it out from
1344 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
1345 some kind of conditionals in .pc files?
1347 2005-03-23 Matthias Clasen <mclasen@redhat.com>
1349 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
1350 a call whose result was unused and leaked. (#170776,
1353 Some cleanups to the GtkDialog code: (#170746,
1355 * gtk/gtkdialog.c (action_widget_activated): Simplify,
1356 use _gtk_dialog_get_response_for_widget.
1357 (gtk_dialog_add_action_widget): Use the correct signal
1359 (gtk_dialog_set_response_sensitive):
1360 (gtk_dialog_set_default_response): Use get_response_data.
1361 (gtk_dialog_run): Don't disconnect the signals if the
1362 dialog was destroyed while running.
1364 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
1366 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
1367 Use g_return_if_fail, not g_return_val_if_fail.
1369 2005-03-22 Matthias Clasen <mclasen@redhat.com>
1371 Implement bookmark renaming (#136216, Sean Middleditch)
1373 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
1374 get_bookmark_label and set_bookmark_label vfuncs.
1376 * gtk/gtkfilesystem.h:
1377 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
1378 (gtk_file_system_get_bookmark_label): Wrappers for the
1381 * gtk/gtk.symbols: Add new exported symbols.
1383 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
1384 (gtk_file_system_unix_get_bookmark_label): Implementations
1385 for the Unix backend.
1387 * gtk/gtkfilechooserdefault.c: Add a context menu to
1388 the bookmarks pane, and allow to rename bookmarks.
1390 2005-03-22 Matthias Clasen <mclasen@redhat.com>
1392 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
1393 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
1394 * gtk/gtknotebook.c (gtk_notebook_unmap):
1395 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
1396 the widget is unmapped. (#168791, Ryan Lortie)
1398 2005-03-21 Matthias Clasen <mclasen@redhat.com>
1400 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
1401 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
1402 their G_ counterparts, but also mark the name, nick
1403 and blurb as static.
1405 * gtk/*.c: Mark param spec strings as static, using
1408 * gtk/gtkspinbutton.h: Fix a typo.
1410 2005-03-21 Matthias Clasen <mclasen@redhat.com>
1412 * gtk/gtkcellrendererprogress.c:
1413 * gtk/gtkcellrendererpixbuf.c:
1414 * gtk/gtkcellrenderercombo.c:
1415 * gtk/gtkcellrenderer.c:
1416 * gtk/gtkcalendar.c:
1420 * gtk/gtkaspectframe.c:
1422 * gtk/gtkalignment.c:
1423 * gtk/gtkactiongroup.c:
1425 * gtk/gtkaccellabel.c:
1426 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
1428 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
1429 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
1430 param spec strings as static.
1432 2005-03-21 Tor Lillqvist <tml@novell.com>
1434 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
1435 variables, unhandled enum value in switch). Use g_object_unref()
1436 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
1438 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
1439 Add missing "case" keyword.
1441 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
1444 2005-03-20 Tor Lillqvist <tml@novell.com>
1446 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
1447 Terminal Services session number, window station name (always
1448 "WinSta0" in interactive processes), and desktop name (typically
1449 "Default"), concatenated with backslash separators.
1450 (gdk_display_open): Accept only NULL or the string
1451 gdk_display_get_name() returns as display name.
1453 2005-03-20 Matthias Clasen <mclasen@redhat.com>
1455 Make PLT-reduction work with gcc4, and don't include
1456 everything in gdkalias.h:
1458 * gtk/grk.symbols: Group symbols by header and source file.
1459 * gtk/makegtkalias.pl: Protect definitions by the same
1460 preprocessor symbols used to guard the headers. Move
1461 the alias declarations to a separate file which is
1462 produced when calling makegtkalias.pl -def
1463 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
1465 * gtk/*.c: Include gtkalias.h after the other headers,
1466 include gtkaliasdef.c at the bottom.
1467 * gtk/*.h: Small cleanups.
1469 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
1471 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
1472 Make right-clicks not pop up the menu.
1474 2005-03-18 Owen Taylor <otaylor@redhat.com>
1476 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
1477 Call cairo_surface_finish()
1479 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
1480 _gdk_windowing_set_surface_device_offset().
1482 2005-03-18 Tor Lillqvist <tml@novell.com>
1484 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1485 WM_MOUSEMOVE, don't check if this process owns the active
1486 window. This makes cross-application widget embedding work better.
1487 On WM_MOVE, don't bother checking for window visibility.
1489 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
1490 unused variables. Add some casts to silence gcc.
1492 2005-02-24 Owen Taylor <otaylor@redhat.com>
1494 * gdk/gdkwindow.c: Use cairo_set_device_offset().
1496 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
1497 gdk/win32/gdkpixmap-win32.c:
1498 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
1499 drawable. Add _gdk_drawable_win32_finish() to clean up resources
1500 when a drawable is destroyed.
1502 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
1503 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
1504 acquire/release_dc when getting a DC to use with a GC or for
1505 blitting from a pixmap.
1507 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
1509 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
1510 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
1513 * gdk/win32/gdkdrawable-win32.c: Remove
1514 gdk_draw_rectangle_alpha_libgtk_only()
1516 2005-03-17 Owen Taylor <otaylor@redhat.com>
1518 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
1519 EXTEND_REPEAT on the stipple pattern.
1521 2005-03-17 Matthias Clasen <mclasen@redhat.com>
1523 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
1524 in example in the docs. (#170611, Jianfei Wang)
1526 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
1527 adjustment values on resize. (#170567, Tomislav Jonjic)
1529 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
1530 if there is no cache. (#170652, Diego Gonzalez)
1532 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
1533 Make inline completion insert the prefix at the
1534 right spot. (#170146, Doug Quale)
1536 2005-03-17 Tor Lillqvist <tml@novell.com>
1538 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
1540 2005-03-16 Matthias Clasen <mclasen@redhat.com>
1542 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
1543 Typo fix in the docs.
1545 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
1546 Typo fix in the docs.
1548 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
1549 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
1550 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
1551 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
1552 (gtk_icon_view_set_column_spacing)
1553 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
1554 (gtk_icon_view_set_margin): Add docs.
1556 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
1559 2005-03-15 Owen Taylor <otaylor@redhat.com>
1561 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
1562 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
1563 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
1566 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
1567 function to create_cairo_context()
1569 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
1571 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
1574 * tests/testcairo.c: Update for create_cairo_context()
1576 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
1577 Reimplement in terms of Cairo, bypass the vtable entries.
1579 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
1580 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
1581 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
1582 implementation of draw_trapezoids / draw_glyphs[_transformed].
1584 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
1586 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
1587 gdk_pango_context_get_for_screen() into the backend independent code.
1589 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
1592 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
1593 gdk_draw_rectangle_alpha_libgtk_only.
1595 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
1596 gdk_pixbuf_set_as_cairo_source()
1598 * gdk/gdk.symbols: Update
1600 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
1601 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
1603 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
1604 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
1605 radio button style for now to get something more scalable.
1607 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
1608 antialiasing/dpi settings.
1610 2005-03-16 Matthias Clasen <mclasen@redhat.com>
1612 * demos/gtk-demo/editable_cells.c: Also demonstrate
1613 GtkCellRenderer::editing-started and separators.
1615 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
1617 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
1619 2005-03-15 Matthias Clasen <mclasen@redhat.com>
1621 Make PLT-reduction work with gcc4, and don't include
1622 everything in gdkalias.h:
1624 * gdk/gdk.symbols: Group symbols by header and source file.
1625 * gdk/makegdkalias.pl: Protect definitions by the same
1626 preprocessor symbols used to guard the headers. Move
1627 the alias declarations to a separate file which is
1628 produced when calling makegdkalias.pl -def
1629 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
1631 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
1632 headers, include gdkaliasdef.c at the bottom.
1634 2005-03-16 Tor Lillqvist <tml@novell.com>
1636 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
1637 debugging output only if asked for, not always.
1639 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
1640 debugging printout instead of +%d+%d. Misc other additions and
1641 cosmetic improvements to debugging printouts. Use API_CALL() and
1642 GDI_CALL() macros in more places.
1644 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
1645 gdk_window_move_resize): To detect child windows, check whether
1646 the real parent is not the desktop window, instead of relying on
1647 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
1648 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
1649 de facto child windows.
1651 * gdk/win32/gdkprivate-win32.h
1652 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
1653 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
1656 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
1657 toplevel_window_type field.
1659 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
1660 GDK on Win32, we can compare directly to _gdk_root instead of
1661 checking the window type.
1662 (gdk_window_reparent): When reparenting a child of the desktop
1663 clear out the window decorations. Correspondingly, when
1664 reparenting to the desktop, add decorations. As in the X11
1665 backend, save the window type of a toplevel window when
1666 reparenting, in case it is reparented back to toplevel.
1668 2005-03-15 Matthias Clasen <mclasen@redhat.com>
1670 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
1671 example for manually setting up a group of actions.
1673 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
1674 Document that inline completion requires text-column to be set.
1675 (gtk_entry_completion_compute_prefix): Return NULL if text-column
1678 * gtk/gtkentry.c (check_completion_callback): Call
1679 gtk_entry_completion_complete() before inserting the prefix,
1680 otherwise the prefix may depend on (random) state of the
1683 2005-03-15 Anders Carlsson <andersca@imendio.com>
1685 * docs/iconcache.txt:
1688 * gtk/gtkiconcache.c: (find_image_offset),
1689 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
1690 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
1691 * gtk/gtkiconcache.h:
1692 Update to be able to fetch pixbuf data and icon metadata.
1694 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
1695 (icon_info_ensure_scale_and_pixbuf):
1696 Use new cache functions.
1698 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
1699 (maybe_cache_image_data), (scan_directory), (write_pixdata),
1700 (get_image_meta_data_size), (get_image_pixel_data_size),
1701 (get_image_data_size), (get_single_node_size), (get_bucket_size),
1702 (write_bucket), (main):
1703 Update to write pixbuf data as well as information from .icon
1706 2005-03-15 Tor Lillqvist <tml@novell.com>
1708 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
1709 debugging function. As GetKeyNameText() returns a localized key
1710 name we need to convert it to UTF-8.
1712 * gdk/win32/gdkprivate-win32.h: Declare it.
1714 * gdk/win32/gdkevents-win32.c: Use it.
1716 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
1717 handling of children of foreign windows. They should be child
1718 windows from Windows's perspective, even if they are toplevel GDK
1721 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
1723 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
1724 for big window support. Now also the test in testgtk works.
1726 2005-03-11 Matthias Clasen <mclasen@redhat.com>
1728 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
1729 style changes. (#169334, Yury Puzis)
1731 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
1732 the doc comments. (#169967, Masao Mutoh)
1734 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
1736 Big window fix for Win32. Big windows are still emulated within
1737 16-bit coordinate limits, though. Big windows now work on NT-based
1740 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
1743 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
1745 * gdk/win32/gdkwindow-win32.c: Minor related changes.
1747 2005-03-10 Matthias Clasen <mclasen@redhat.com>
1749 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
1750 Fix a doc typo. (#169873, Johan Dahlin)
1752 * gtk/gtkdialog.c (gtk_dialog_map): Don't
1753 try to focus the default_widget if there is
1754 none. (#169881, Thomas Leonard)
1756 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
1758 * configure.in: Remove inadvertent gail references, require
1761 2005-03-09 Matthias Clasen <mclasen@redhat.com>
1763 * configure.in: Require GLib 2.7.0
1765 2005-03-09 Matthias Clasen <mclasen@redhat.com>
1767 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
1768 (#169728, Morten Welinder, Owen Taylor)
1770 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
1771 in the docs. (#169729, Morten Welinder)
1773 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
1775 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
1776 when the model is unset. (#169528, Tomislav Jonjic)
1778 2005-03-09 Matthias Clasen <mclasen@redhat.com>
1780 * gtk/gtkviewport.c (gtk_viewport_class_init):
1781 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
1782 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
1783 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
1784 * gtk/gtktext.c (gtk_text_class_init):
1785 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
1786 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
1787 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
1788 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
1789 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
1790 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
1791 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
1792 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
1793 * gtk/gtkimage.c (gtk_image_class_init):
1794 * gtk/gtkruler.c (gtk_ruler_class_init):
1795 * gtk/gtkiconview.c (gtk_icon_view_class_init):
1796 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
1797 * gtk/gtkprogress.c (gtk_progress_class_init):
1798 * gtk/gtkmenu.c (gtk_menu_class_init):
1799 * gtk/gtkscale.c (gtk_scale_class_init):
1800 * gtk/gtkpaned.c (gtk_paned_class_init):
1801 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
1802 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
1803 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
1804 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
1805 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
1806 * gtk/gtkcurve.c (gtk_curve_class_init):
1807 * gtk/gtkcombo.c (gtk_combo_class_init):
1808 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1809 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
1810 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
1811 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
1812 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
1813 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
1814 * gtk/gtkcellview.c (gtk_cell_view_class_init):
1815 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
1816 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
1817 * gtk/gtkclist.c (gtk_clist_class_init):
1818 * gtk/gtkctree.c (gtk_ctree_class_init):
1819 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
1820 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
1821 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
1822 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
1823 * gtk/gtkcalendar.c (gtk_calendar_class_init):
1824 * gtk/gtkbbox.c (gtk_button_box_class_init):
1825 * gtk/gtktable.c (gtk_table_class_init):
1826 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
1827 * gtk/gtkframe.c (gtk_frame_class_init):
1828 * gtk/gtkaction.c (gtk_action_class_init):
1829 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
1830 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
1831 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
1833 2005-03-08 Matthias Clasen <mclasen@redhat.com>
1835 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
1836 * gtk/gtkrange.c (gtk_range_class_init):
1837 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
1838 * gtk/gtktexttag.c (gtk_text_tag_class_init):
1839 * gtk/gtktextview.c (gtk_text_view_class_init):
1840 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
1841 * gtk/gtknotebook.c (gtk_notebook_class_init):
1842 * gtk/gtkentry.c (gtk_entry_class_init):
1843 * gtk/gtkexpander.c (gtk_expander_class_init):
1844 * gtk/gtkarrow.c (gtk_arrow_class_init):
1845 * gtk/gtkalignment.c (gtk_alignment_class_init):
1846 * gtk/gtkbutton.c (gtk_button_class_init):
1847 * gtk/gtklabel.c (gtk_label_class_init):
1848 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
1849 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
1850 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
1851 * gtk/gtktreeview.c (gtk_tree_view_class_init):
1852 * gtk/gtkbox.c (gtk_box_class_init):
1853 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
1854 * gtk/gtkcontainer.c (gtk_container_class_init):
1855 * gtk/gtkwidget.c (gtk_widget_class_init):
1856 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
1857 when registering param specs.
1859 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
1860 (#169607, Mark McLoughlin)
1862 * gtk/gtk.symbols: Add the new attributes here, too.
1865 * gtk/gtktreeview.h:
1866 * gtk/gtktreeviewcolumn.h:
1867 * gtk/gtktextbuffer.h:
1869 * gtk/gtkfilechooserdialog.h:
1871 * gtk/gtkcontainer.h:
1872 * gtk/gtkcelllayout.h:
1873 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
1874 appropriate. (#165682, Marc Meissner)
1876 2005-03-07 Matthias Clasen <mclasen@redhat.com>
1878 Convert the gdk keyval-keyname tables to a big string
1879 + offsets. (#168901)
1881 * gdk/gen-keyname-table.pl: Perl script inspired by
1882 pango/tools/gen-color-table.pl to create the
1883 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
1884 of offsets pointing into a big const string.
1886 * gdk/keynames.txt: List of keyval-keyname pairs.
1887 * gdk/keyname-table.h: Generated tables.
1889 * gdk/gdkkeynames.c: Include keyname-table.h and don't
1890 generate the inverse table at runtime.
1892 2005-03-07 Matthias Clasen <mclasen@redhat.com>
1894 * gtk/gtkstyle.c: Document which parameters may be NULL.
1895 (#166855, Frank Naumann)
1897 2005-03-07 Matthias Clasen <mclasen@redhat.com>
1899 * AUTHORS: Add original authors of incorporated software.
1901 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
1903 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
1905 2005-03-03 Matthias Clasen <mclasen@redhat.com>
1907 * gtk/gtksettings.c (gtk_settings_get_property):
1908 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
1909 the values here. (#169047, Philip Langdale)
1911 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
1912 Don't warn if a stock icon cannot be found. (#168830,
1915 2005-03-03 Matthias Clasen <mclasen@redhat.com>
1917 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
1918 Avoid warnings if gtk_widget_reparent() is called at
1919 unusual times. (#168966, Christian Persch)
1921 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
1923 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
1924 const warnings on data structure seeding.
1926 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
1928 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
1930 2005-03-01 Matthias Clasen <mclasen@redhat.com>
1932 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
1933 Fix prelighting. (#157392, Vincent Noel, patch by
1936 * gtk/gtkicontheme.c (theme_lookup_icon): Make
1937 icon data caching work again. (#168851, Alexander Larsson)
1939 * gdk-pixbuf/gdk-pixbuf.c:
1940 * gdk-pixbuf/gdk-pixbuf-features.h.in:
1941 Revert the previous change, since it breaks
1944 2005-03-01 Matthias Clasen <mclasen@redhat.com>
1947 * gdk/gdkpixbuf-drawable.c
1949 * gdk/x11/gdkdnd-x11.c
1950 * gdk/x11/gdkevents-x11.c
1951 * gdk/x11/gdkproperty-x11.c
1952 * gdk/x11/gdkvisual-x11.c
1953 * gdk-pixbuf/gdk-pixbuf.c
1954 * gdk-pixbuf/gdk-pixbuf-features.h.in
1957 * gtk/gtkcolorbutton.c
1959 * gtk/gtkcontainer.c
1960 * gtk/gtkfilechooserdefault.c
1964 * gtk/gtkinputdialog.c
1965 * gtk/gtkitemfactory.c
1969 * gtk/gtktreedatalist.c
1970 * gtk/gtkuimanager.c
1971 * gtk/tree_minus.xpm
1973 * gtk/xdgmime/xdgmime.c
1974 * gtk/xdgmime/xdgmime.h:
1975 Move constant data to .rodata.
1977 2005-02-27 Matthias Clasen <mclasen@redhat.com>
1979 * gtk/gtkaction.c (connect_proxy): Improve the handling
1980 of buttons as action proxys. (#165534, Milosz Derezynski)
1982 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
1983 (#168646, Vincent Untz)
1985 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
1986 Unset "focus-on-click" for the save folder combo. (#168688,
1989 2005-02-25 Matthias Clasen <mclasen@redhat.com>
1991 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
1994 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
1995 path here. (#168443, Morten Welinder)
1997 2005-02-24 Robert Ögren <gtk@roboros.com>
1999 Implement better handling of Wintab tablet context overlap on
2002 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2003 function that brings any tablet contexts to the top of the overlap
2005 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2006 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2007 Call _gdk_input_set_tablet_active when a window is activated (on
2010 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2012 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
2013 Don't leak parent_path. (#168435, Morten Welinder)
2015 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
2017 * gtk/gtkstyle.c: Add
2019 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2023 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2025 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2026 (gtk_combo_box_model_row_deleted): Update the displayed row in
2027 the cell_view. (#167842, Gustavo Carneiro)
2029 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2031 Fix #167259, reported by Christian Persch:
2033 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
2034 widget, even if we avoid the unrealizing.
2035 (gtk_widget_reparent_subwindows): Make reparenting work for
2036 !NO_WINDOW widgets which have other windows which are siblings
2037 of widget->window (as e.g. GtkSpinButton).
2039 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2041 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
2042 Don't emit a warning if a parent node is filtered out. (#164726,
2045 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2047 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
2048 change, since gtk_widget_set_style_internal() already
2051 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2053 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2054 fonts may have changed. (#164128, Phil Blundell)
2056 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
2057 (gtk_about_dialog_new): Move initialization code from _new to
2058 _init. (#168249, Murray Cumming)
2060 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
2062 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2063 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2066 2005-02-23 Tor Lillqvist <tml@novell.com>
2068 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2069 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2071 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
2073 * gtk/updateiconcache.c: #include <config.h>
2075 2005-02-22 Federico Mena Quintero <federico@ximian.com>
2077 Merged from gtk-2-6:
2079 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2081 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2082 (gdk_rgb_convert_565_d): Likewise.
2083 (DM_565): Made a static const precomputed array to avoid
2084 allocating it at runtime.
2085 (gdk_rgb_preprocess_dm_565): #ifdef out.
2087 2005-02-20 Matthias Clasen <mclasen@redhat.com>
2090 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2091 in the documentation.
2093 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2094 Set have_render_with_trapezoids to GDK_YES when we have
2095 a new enough Render extension. (#167965,Billy Biggs)
2097 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2098 the last user interaction when focusing the window. (#166379,
2101 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
2103 * gtk/gtkuimanager.c (start_element_handler): make sure expand
2104 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2106 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
2108 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2110 2005-02-16 Matthias Clasen <mclasen@redhat.com>
2112 * docs/iconcache.txt: Add some information about the
2113 icon cache format (since I can't locate it at freedesktop.org)
2115 Fixes for #143829, Tommi Komulainen, Christian Persch:
2117 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2118 typeselect_flush_timeout when destroying the widgets
2120 (gtk_tree_view_ensure_interactive_directory): Add the
2121 popup to the window group of the toplevel it belongs to.
2123 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
2124 (gtk_combo_box_popup): Do the same here.
2126 2005-02-14 Matthias Clasen <mclasen@redhat.com>
2128 * configure.in: Kill --enable-ansi (#164394)
2130 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2132 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
2133 when the pathbar goes away. (#167094, Rodney Dawes)
2134 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
2137 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2139 Support vertical menubars (#166632):
2141 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
2142 directions, with values for left-to-right, right-to-left,
2143 top-to-bottom and bottom-to-top.
2147 * gtk/gtkmenubar.c: Add two properties, pack-direction and
2148 child-pack-direction, which specify how children and
2149 grandchildren of a menubar are packed, with getters and setters.
2151 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
2152 (gtk_menu_bar_get_property): Implement set_property and get_property.
2154 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
2155 (gtk_menu_bar_size_allocate): Take pack direction into account.
2157 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
2158 move_current here move all the menubar-specific direction
2159 tweaking from the generic menushell implementation here.
2161 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
2162 direction tweaking from the generic menushell implementation here.
2164 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
2165 (gtk_menu_bar_size_allocate): Take pack direction into account.
2167 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
2168 (gtk_image_menu_item_size_allocate):
2169 (gtk_image_menu_item_toggle_size_request): Take child pack
2170 direction into account and pack the image vertically if
2173 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2174 Set the submenu direction to left-right for menuitems in
2176 (gtk_real_menu_shell_move_current): Simplify by moving
2177 direction tweaking to menu- and menubar-specific
2178 implementations. Take pack direction into account when
2181 * tests/testmenubars.c: Test menubars in various packing
2182 direction combinations.
2184 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2186 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2188 Complete the fix for #165770, Vincent Noel:
2190 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
2191 fallback size be 16, to be equal to the default for
2192 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2193 (gtk_file_chooser_button_init):
2194 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2195 GTK_ICON_SIZE_SMALL_TOOLBAR.
2197 2005-02-09 Matthias Clasen <mclasen@redhat.com>
2199 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
2200 keynav for going from menubar to menu.
2202 2005-02-08 Christian Rose <menthos@menthos.com>
2204 * configure.in: Added "xh" to ALL_LINGUAS.
2206 2005-02-08 Matthias Clasen <mclasen@redhat.com>
2208 * gtk/gtkuimanager.c (start_element_handler): Accept
2209 the "expand" attribute and set a flag in the node if it
2211 (update_node): If the expand flag is set, make separator
2212 toolitems non-drawn and expanding. (#166489, Christian Persch)
2214 2005-02-05 Hans Breuer <hans@breuer.org>
2216 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
2217 build with Cairo dependency. The patch to acually use Cairo
2218 on win32 will be on gtk-devel-list soon.
2219 * tests/makefile.msc : add testcairo building
2221 * gtk/stock-icons/makefile.msc : split command line into two to
2222 work with the shells default
2224 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
2226 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
2229 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2230 Add some extra parens for bitop order of operations disambiguiation.
2232 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
2233 domain when setting a translate function.
2235 * tests/testcombo.c: removed unused variable.
2237 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2239 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
2240 being NULL. (#166179, Diego Gonzalez)
2242 2005-02-04 Owen Taylor <otaylor@redhat.com>
2244 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
2245 up comment to talk only about backwards compat, not
2246 forward/backwards compat. (#166293, reported by Vincent Noel)
2248 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2250 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
2251 when there is not enough space. This avoids a nasty size
2252 allocation loop in the file chooser. (#154007, reported
2253 by Milosz Derezynski, patch by Robert Ögren)
2255 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2257 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
2258 selection of RTL direction if the widget does not have
2259 focus. (#164125, Frederic Crozat)
2261 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
2263 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
2265 2005-02-03 Owen Taylor <otaylor@redhat.com>
2267 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
2268 gdk_drawable_set_cairo_target().
2270 * tests/testtreeflow.c (enum): Use grand not rand as a variable
2271 name because one of the cairo headers is pulling in stdlib.h.
2273 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
2276 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
2278 * Require libpangocairo for all backends.
2280 2005-02-03 Tor Lillqvist <tml@novell.com>
2282 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
2283 wide character version of ImmGetCompositionString() here,
2284 too. (#165278, Takuro Ashie)
2286 2005-02-03 Matthias Clasen <mclasen@redhat.com>
2288 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
2289 one roundtrip per motion event. (#166173, pointed out
2290 by Chris Lee, patch by Søren Sandmann)
2294 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2295 New function which allows to change the function used for
2296 translation stock labels, on a per-domain basis. Use this
2297 functionality to switch the GTK+ stock items to use Q_()
2298 prefixed msgids. (#166179, Funda Wang)
2300 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
2303 2005-02-02 Federico Mena Quintero <federico@ximian.com>
2305 Merged from gtk-2-6:
2307 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2308 Don't select the first row if the chooser is not mapped. This
2309 happens when it's acting on behalf of GtkFileChooserButton. Also,
2310 don't select the first row if we are in SAVE or CREATE_FOLDER
2311 modes --- I had missed that (see the ChangeLog entry from
2312 2005-01-18). Fixes #165264.
2314 2005-02-02 Tor Lillqvist <tml@novell.com>
2316 Implement lazy extended input initialization on Win32, by Robert
2317 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
2318 be a good idea in any case even if it didn't fix any visible
2321 The Wacom tablet driver seems to get confused if Wintab is
2322 initialized but no window is shown before the process exits. This
2323 is the case for some GIMP plug-ins, for instance.
2325 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
2326 non-static (and renamed).
2327 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
2329 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
2331 * gdk/win32/gdkinput.c (gdk_devices_list,
2332 gdk_display_list_devices, gdk_input_set_extension_events): Call
2333 _gdk_input_wintab_init_check() here instead.
2335 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
2337 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
2338 of a single window so that gtk_clipboard_request_contents() can be
2339 called inside a GtkClipboardReceivedFunc(). (#163844)
2341 2005-02-01 Matthias Clasen <mclasen@redhat.com>
2343 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
2344 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
2346 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
2347 to NULL after freeing it. (#165800, Damon Chaplin)
2349 2005-02-01 Michael Natterer <mitch@gimp.org>
2351 * configure.in: depend on stable pango-1.8, not unstable 1.7
2353 2005-02-01 Federico Mena Quintero <federico@ximian.com>
2355 Merged from gtk-2-6:
2357 * gtk/gtkfilechooserdefault.c
2358 (browse_files_model_finished_loading_cb): Don't
2359 g_assert_not_reached() if we are in any other state. Another code
2360 path may have triggered a folder reload. Fixes #165556.
2362 2005-02-01 Federico Mena Quintero <federico@ximian.com>
2364 Merged from gtk-2-6:
2368 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
2369 fallback size be 16, to be equal to the default for
2370 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2371 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2372 GTK_ICON_SIZE_SMALL_TOOLBAR.
2374 2005-02-01 Matthias Clasen <mclasen@redhat.com>
2376 * */*.c: Fix many instances of "the the" in docs and
2377 comments. (#165815, Masao Mutoh)
2379 * gtk/updateiconcache.c (main): Add a --quiet option.
2381 2005-02-01 Tor Lillqvist <tml@novell.com>
2383 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
2384 reset_after_dead, handle_dead): New functions, code blocks
2385 refactored out of update_keymap(). No functionality change.
2387 (update_keymap): Use ToUnicodeEx() when available (on NT-based
2388 Windows) instead of ToAsciiEx(). Makes keyboard input work in
2389 Unicode-only input locales that don't have any ANSI codepage, for
2390 instance Hindi and Bengali. Use _gdk_input_codepage only on
2393 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2394 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
2395 TranslateCharsetInfo() to get the input locale's corresponding
2398 2005-01-31 Matthias Clasen <mclasen@redhat.com>
2400 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
2401 NULL-terminated va lists. (#165683)
2403 2005-01-29 Matthias Clasen <mclasen@redhat.com>
2405 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
2406 Typo fix. (#165581, Masao Mutoh)
2408 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
2410 * README.cvs-commits: update ancient IRC info.
2412 2005-01-27 Federico Mena Quintero <federico@ximian.com>
2414 Merged from gtk-2-6:
2416 * gtk/gtkfilechooserdefault.c
2417 (gtk_file_chooser_default_select_path): Oops, don't assert that we
2418 can't reach the end of the function; this happens if we are still
2419 loading but don't need a path change. Fixes #165213.
2421 2005-01-27 Matthias Clasen <mclasen@redhat.com>
2423 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
2424 Make wrapping work in RTL mode.
2426 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
2427 obey HIG spacing a bit more, add a hand cursor when over the
2428 link button. (#163979, Jorn Baayen)
2430 2005-01-26 Matthias Clasen <mclasen@redhat.com>
2432 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2433 Don't allow -1 as minimum-key-length.
2434 (gtk_entry_completion_set_model): Add missing notification.
2435 (gtk_entry_completion_set_minimum_key_length): Add missing
2436 notification, allow setting minimum-key-length to 0. (#165194,
2439 2005-01-26 Matthias Clasen <mclasen@redhat.com>
2441 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
2442 the license dialog is initially displayed without a horizontal
2444 (gtk_about_dialog_class_init): Document the fact that the
2445 license text is not wrapped. (#165012, Christian Rose)
2447 2005-01-25 Matthias Clasen <mclasen@redhat.com>
2449 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
2452 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
2453 docs. (#165163, Jeff Franks)
2455 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
2456 for a string GValue. (#165203, Damon Chaplin)
2458 2005-01-24 Matthias Clasen <mclasen@redhat.com>
2460 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
2461 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
2464 2005-01-24 Federico Mena Quintero <federico@ximian.com>
2466 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
2468 2005-01-24 Federico Mena Quintero <federico@ximian.com>
2470 Merged from gtk-2-6:
2472 Fix #147785 and clean up the loading code:
2474 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
2475 be EMPTY, PRELOAD, LOADING, FINISHED.
2476 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
2477 (struct _GtkFileChooserDefault): Added a pending_select_paths
2479 (load_remove_timer): Add the new states.
2480 (load_setup_timer): Likewise.
2481 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
2482 (browse_files_model_finished_loading_cb): Switch to the
2483 LOAD_FINISHED state.
2484 (enum PendingOp): Removed.
2485 (struct _GtkFileChooserDefault): Removed the pending_op and
2486 pending_select_path fields.
2487 (pending_select_paths_free): New utility function.
2488 (pending_select_paths_add): New utility function.
2489 (gtk_file_chooser_default_finalize): Call
2490 pending_select_paths_free().
2491 (pending_op_queue): Removed.
2492 (pending_op_process): Removed.
2493 (pending_select_paths_process): New function.
2494 (browse_files_model_finished_loading_cb): Call
2495 pending_select_paths_process().
2496 (center_selected_row_foreach_cb): Handle multiple selection by
2497 only centering the first row.
2498 (get_is_file_filtered): Constify.
2499 (gtk_file_chooser_default_select_path): Queue into a list of paths
2500 to select if we are not finished loading.
2501 (show_and_select_paths): New utility function.
2502 (up_folder_handler): Use pending_select_paths_add().
2503 (gtk_file_chooser_default_should_respond): Do not call
2504 pending_op_queue(); free the pending_selected_paths instead.
2505 (gtk_file_chooser_default_initial_focus): Don't queue a pending
2506 operation, and don't select the first row unconditionally --- this
2507 will happen when the folder is done loading.
2508 (shortcuts_row_activated_cb): Free the pending_select_paths.
2509 (pending_select_paths_store_selection): New utility function.
2510 (gtk_file_chooser_default_map): Call
2511 pending_select_paths_store_selection() to save the selection
2512 before reloading the folder.
2513 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
2514 move the cursor here; it will be done when processing the pending paths.
2516 * tests/testfilechooser.c (main): Add a button to the command
2517 window to unmap and remap the file chooser.
2519 2005-01-24 Matthias Clasen <mclasen@redhat.com>
2521 * docs/tutorial/gtk-tut.sgml:
2522 * docs/tutorial/gtk_tut.sgml:
2523 * docs/reference/gtk/tmpl/gtkliststore.sgml:
2524 * gtk/gtkactiongroup.c:
2525 * gtk/gtksizegroup.c:
2526 * gtk/gtksizegroup.h:
2527 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
2528 appropriate. (#165108, Dan Winship)
2530 2005-01-24 Matthias Clasen <mclasen@redhat.com>
2532 * gtk/gtkwidget.c (gtk_widget_class_init): Document
2533 GtkWidget::style-set. (#164222, Alex Graveley)
2535 2005-01-22 Matthias Clasen <mclasen@redhat.com>
2537 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
2538 Remove the accidentally added prototype for this unimplemented
2539 function. (#164893, Jeff Franks)
2541 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
2544 2005-01-23 Tor Lillqvist <tml@novell.com>
2546 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
2547 dead accent key. (#164859, reported and fix verified by Daniel
2550 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
2551 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
2554 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
2555 Don't call GetVolumeInformation() for network drives. They might
2556 be disconnected, and calling GetVolumeInformation() will then
2557 cause long delays. (#164448, reported by Dave Neary.) It seems to
2558 be very hard to reliably find out whether a network drive is
2559 connected or not, so it's easier to just not try getting the
2560 volume name for them. See the bug report for discussion.
2562 Make volume name display formats translatable.
2564 Fix for #163702, from Ivan Wong:
2566 * gdk/win32/gdkprivate-win32.h
2567 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
2569 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
2570 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
2571 GDK_SELECTION_CLEAR event.
2573 * gdk/win32/gdkselection-win32.c
2574 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
2575 when emptying the clipboard ourselves.
2577 (gdk_selection_send_notify_for_display): Remove the artifical
2578 GDK_SELECTION_CLEAR event generation.
2580 2005-01-21 Matthias Clasen <mclasen@redhat.com>
2582 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
2583 provided by Bill Haneman.
2585 2005-01-20 Matthias Clasen <mclasen@redhat.com>
2587 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
2590 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
2591 here, even if the only focusable widgets are labels.
2593 2005-01-20 Matthias Clasen <mclasen@redhat.com>
2595 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
2597 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
2598 Add a follow-state property which when TRUE causes the pixbuf
2599 to be tinted according to state.
2601 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2602 Use follow-state and colorize the pixbuf when appropriate.
2604 2005-01-20 Matthias Clasen <mclasen@redhat.com>
2606 Support wrapping in GtkCellRendererText (#163608):
2608 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2609 Add wrap-mode and wrap-width properties which cause a
2610 text cell to break to a specified width when set.
2612 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
2613 and wrap-width when they are set.
2615 2005-01-20 Matthias Clasen <mclasen@redhat.com>
2617 * gtk/gtkmodules.c (load_module): Don't reverse the order
2618 of modules when putting them in gtk_modules. (#162676, Dennis
2619 Cranston, patch by Remus Draica)
2621 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
2622 if the tree is empty. (#164669, Priit Laes)
2624 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
2626 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
2627 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
2630 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
2632 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
2633 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
2635 2005-01-19 Tor Lillqvist <tml@novell.com>
2637 * gdk/win32/gdkkeys-win32.c (update_keymap,
2638 gdk_keymap_translate_keyboard_state): Handle keyboards with
2639 ShiftLock (and not CapsLock) correctly. (#161814)
2641 2005-01-19 Matthias Clasen <mclasen@redhat.com>
2643 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
2644 In save mode, don't return paths containing nonexisting
2645 directories. (#162443, Jean Marie Favreau)
2647 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
2648 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
2650 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
2653 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
2654 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
2658 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
2659 Add a function to obtain the last user interaction
2660 time. (#163119, Elijah Newren)
2662 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
2664 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
2667 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
2669 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2670 disambiguate nested if/else.
2672 2005-01-18 Federico Mena Quintero <federico@ximian.com>
2674 Merged from gtk-2-6:
2676 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
2677 operation to select the first file if we are in SAVE or
2678 CREATE_FOLDER modes. Executing that operation would overwrite the
2679 contents of the save-name entry.
2681 2005-01-18 Matthias Clasen <mclasen@redhat.com>
2684 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
2685 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
2686 pointer warping to GDK. (#160437)
2688 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
2690 2005-01-18 Matthias Clasen <mclasen@redhat.com>
2692 * gtk/gtkstyle.c (gtk_default_draw_check)
2693 (gtk_default_draw_option, gtk_default_draw_handle): Add some
2694 more NULL checks, patch by Michael Natterer.
2696 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
2698 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
2701 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
2702 NULL widget. (#164477, Michael Natterer)
2704 2005-01-18 Matthias Clasen <mclasen@redhat.com>
2706 Avoid X errors when running against servers which
2707 implement XRender < 0.4. (#164427, Albert Chin)
2709 * gdk/x11/gdkprivate-x11.h:
2710 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2711 New function to check for trapezoid support in XRender.
2712 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
2715 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
2716 separate have_render_with_trapezoids field.
2718 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
2720 2005-01-17 Matthias Clasen <mclasen@redhat.com>
2722 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
2724 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
2726 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
2729 2005-01-17 Matthias Clasen <mclasen@redhat.com>
2731 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
2732 and restore the selected row in the bookmark list and the
2733 save folder combo. (#164290)
2735 2005-01-16 Matthias Clasen <mclasen@redhat.com>
2737 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
2738 Fix argument order in docs.
2740 2005-01-15 Matthias Clasen <mclasen@redhat.com>
2742 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
2743 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
2744 if the keymap is neutral. (#164125, Phil Blundell)
2746 2005-01-14 Matthias Clasen <mclasen@redhat.com>
2748 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
2749 reset the property to its default value -1.
2750 (gtk_tree_view_get_search_column): Return the default value in
2751 the g_return_val_if_fail() check. (#163864, Richard Hult)
2753 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
2754 Add a translator hint. (#163889)
2756 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
2757 is an enum value, not a define. Pointed out by Tommi Komulainen.
2758 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
2760 2005-01-13 Matthias Clasen <mclasen@redhat.com>
2762 * configure.in: Check for nl_langinfo()
2763 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
2764 available to determine first day of week (#163842, Vincent Untz)
2766 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
2767 the lifecycle of widgets. (#159503, Christian Persch)
2769 * demos/gtk-demo/main.c (create_text): Use monospace for the
2770 source code view. (#163526, Theerud Lawtrakul)
2772 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
2773 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
2776 * configure.in: Add an OS_LINUX conditional.
2778 * gdk/Makefile.am (TESTS):
2779 * gdk-pixbuf/Makefile.am (TESTS):
2780 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
2783 2005-01-13 Matthias Clasen <mclasen@redhat.com>
2785 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
2786 (gtk_tree_view_set_headers_clickable): Make the headers-visible
2787 property readwrite instead of just writable, and remove the
2788 g_return_if_fail check that there is a model when setting this
2789 property. Also improve the blurb. (#163851, Richard Hult)
2791 2005-01-12 Owen Taylor <otaylor@redhat.com>
2793 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
2794 initialization of gdktarget, that was causing it to be
2795 evaluated before host was set. Simplify --with-gdktarget help
2798 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
2799 which doesn't work with slightly older versions of GNU grep
2800 in install-libtool-import-lib rule.
2802 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
2804 Fix for #162790, by Iwan Wong:
2806 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
2807 correctly. Simplify the interface to render_line_horizontal() and
2808 render_line_vertical(). Need to draw lines "manually" also on
2809 NT-based Windowses if we have a dash offset or are drawing
2810 double-dashed lines.
2812 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
2813 double-dash flag, and a brush for the background colour (used by
2814 the odd dashes in the double-dash line style) in the GdkGCWin32
2817 * gdk/win32/gdkgc-win32.c: Set up above new fields.
2819 2005-01-10 Federico Mena Quintero <federico@ximian.com>
2823 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
2824 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
2825 (gtk_file_system_unix_get_folder): Make error reporting more
2826 accurate. Don't bail out if we can't read the directory.
2827 (fill_in_stats): Don't return an error; just assume we don't have
2828 stat info for this folder's files.
2829 (fill_in_names): Don't create the hash table for the names if we
2830 can't open the directory.
2831 (gtk_file_folder_unix_list_children): Don't emit the
2832 "finished-loading" signal --- we don't do asynchronous loads, so
2833 we are always finished loading.
2834 (gtk_file_folder_unix_get_info): Use helper functions; handle the
2835 case where we can't stat '/'.
2836 (get_icon_type_from_path): Don't call fill_in_stats() here; only
2837 use the info we have.
2838 (fill_in_mime_type): Don't return an error. Don't do anything if
2839 we don't have the stat info.
2841 2005-01-10 Owen Taylor <otaylor@redhat.com>
2843 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
2846 2005-01-10 Matthias Clasen <mclasen@redhat.com>
2848 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
2849 signals. (#163319, Murray Cumming)
2851 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
2853 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
2854 cursor also when changing the cursor of a window that is the first
2855 ancestor of the window containing the pointer that has a cursor
2856 defined. (#163035, Ivan Wong)
2858 2005-01-09 Anders Carlsson <andersca@gnome.org>
2860 * gtk/gtkcellrenderertext.c: (get_size):
2861 * gtk/gtklabel.c: (gtk_label_size_request):
2862 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
2863 Don't pass NULL to pango_context_get_metrics. Use
2864 pango_context_get_language instead, which is way faster.
2866 2005-01-08 Matthias Clasen <mclasen@redhat.com>
2868 * configure.in: Bump version
2870 * === Released 2.6.1 ===
2872 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
2874 2005-01-07 Tor Lillqvist <tml@iki.fi>
2876 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
2877 Fix braino. (#163232, Arnaud Charlet)
2879 2005-01-06 Matthias Clasen <mclasen@redhat.com>
2881 * gtk/gtkiconview.c: Make markup_column work, and fix some
2882 layout issues when either icon or text is missing. (#163065)
2884 2005-01-06 Federico Mena Quintero <federico@ximian.com>
2886 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
2887 "Open _Location" item. Fixes #148839.
2889 2005-01-06 Matthias Clasen <mclasen@redhat.com>
2891 * README.in: Fix a typo. (#163128, kentaro fukuchi)
2893 2005-01-06 James M. Cape <jcape@ignore-your.tv>
2895 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
2896 (gtk_file_chooser_button_new_with_backend): Use default title if
2899 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
2902 2005-01-05 Federico Mena Quintero <federico@ximian.com>
2906 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
2907 a pending operation to select the first row.
2909 2005-01-05 Federico Mena Quintero <federico@ximian.com>
2911 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
2912 button_data_free() explicitly; the button is weak-reffed and the
2913 callback will free the button data. Fixes #163010.
2914 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
2915 failure case, call gtk_widget_destroy() on it.
2917 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
2918 gtk_file_system_get_folder() again (see the ChangeLog entry from
2919 2004-08-25). We can't first get the parent folder and then
2920 request the info for the path in question, as the parent folder
2921 may not be readable. See bug #162617.
2922 (gtk_file_chooser_default_set_current_folder): Assert that the
2923 passed-in path is not null.
2924 (shortcuts_find_current_folder): Likewise.
2925 (shortcuts_add_current_folder): Likewise.
2926 (set_list_model): Likewise.
2927 (gtk_file_chooser_default_map): Only reload the current folder if
2929 (bookmarks_check_add_sensitivity): Check for the current folder
2931 (browse_files_select_first_row): Don't set the cursor if there is
2934 2005-01-05 Matthias Clasen <mclasen@redhat.com>
2936 * gtk/gtkfilechooserdefault.c: Don't construct errors from
2937 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
2938 (get_file_info, check_is_folder): Translate errors from
2939 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
2940 of the fix for #162911, noticed by Murray Cumming.
2942 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
2944 * gtk/gtkviewport.c (gtk_viewport_realize):
2945 * gtk/gtktextview.c ((text_window_realize): Set the background of
2946 the windows to None instead of adding EXPOSURE_MASK, as suggested
2949 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
2950 the user time when receiving a WM_DELETE message. (#162980,
2953 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
2955 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
2956 only reorder on button 1, part of #141937
2958 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
2962 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
2963 to win->window's event_mask
2965 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
2966 to viewport->view_window.
2968 2005-01-04 Matthias Clasen <mclasen@redhat.com>
2970 * demos/testpixbuf.c (main): Remove the size_prepared callback,
2971 to test incremental display.
2972 (new_testrgb_window): Return the drawing area, not the window,
2973 since we want to queue draws on the drawing area.
2975 2005-01-03 Matthias Clasen <mclasen@redhat.com>
2977 * examples/*: Re-extract.
2979 * docs/tutorial/gtk-tut.sgml: Small corrections.
2981 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
2982 section. (#161414, Robert Ancell)
2984 * docs/tutorial/gtk-tut.sgml: Make it build.
2986 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
2987 regarding modality. (#112903, Dave Bordoley)
2989 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
2990 Add a little motivation. (#145556, Tommi Komulainen)
2992 * docs/tutorial/gtk-tut.sgml: Clarify section on
2993 g_signal_connect_swapped. (#120543, David Bourguignon)
2995 Make gtk_icon_theme_load_icon() work independent of
2996 icon factory initialization. (#162791, Tristan Van Berkom)
2998 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
2999 _gtk_icon_factory_ensure_default_icons, and make it non-static.
3001 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3003 2005-01-02 Matthias Clasen <mclasen@redhat.com>
3005 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
3006 Don't add a shortcut here. (#162752, Tor Lillqvist)
3008 2005-01-02 Tor Lillqvist <tml@iki.fi>
3010 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3011 CoTaskMemFree in get_special_folder() below.
3013 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3014 Win32 using _gtk_file_system_win32_path_compare().
3016 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3018 * gtk/gtkfilechooserbutton.c (model_add_special)
3019 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3020 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3023 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3024 consider all drives "mounted", including floppies. Trying to
3025 inspect the contents of a nonexistent floppy will cause errors
3026 later that are handled normally, no need to avoid them
3027 completely. Keep the drive type in the GtkFileSystemVolume.
3028 Support UNC paths. (#161797, #137874) Fix error message
3029 capitalizations as in gtkfilesystemunix.c.
3031 (gtk_file_system_win32_init): Start one timeout per
3034 (gtk_file_system_win32_finalize): Remove the timeout.
3036 (get_special_folder): Copied from GLib.
3038 (_gtk_file_system_win32_get_desktop): New function, uses
3039 get_special_folder().
3041 (gtk_file_system_win32_list_volumes): Don't start a timeout at
3042 each call to this function. Don't assume A: and B: are floppies.
3044 (gtk_file_system_win32_get_volume_for_path): Don't assume all
3045 volumes are drive roots, i.e. support share roots of UNC paths
3048 (gtk_file_system_win32_get_folder): Don't assume errno is set
3049 after g_file_test() returns FALSE. It isn't on Win32 (and even on
3050 Unix I don't think one should assume anything about errno after
3053 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3055 (gtk_file_system_win32_volume_get_display_name): Don't call
3056 GetVolumeInformation() on drives A: or B: if they are removable,
3057 as they might then be floppies, causing an unnecessary
3060 (gtk_file_system_win32_volume_render_icon): Use network icon for
3061 unrecognized drive types.
3063 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3064 confused by UNC paths.
3066 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3067 for case-insensitive UTF-8 path comparison.
3069 (extract_icon): Use SHGetFileInfo() which is faster than
3070 ExtractAssociatedIcon(). Icon extraction is still slow, though,
3073 (win32_pseudo_mime_lookup): Don't use the same icon for all
3074 shortcuts or executables. Cache only other file type icons.
3076 (gtk_file_system_win32_render_icon): Use network stock icon for
3077 remote drives and UNC server share roots. Compare home directory
3078 case-insensitively. Do lookup icons also for executable files,
3079 after all, it's these files that can have individual icons in the
3080 first place. Yes, it can be slow. Needs work.
3082 (filename_is_drive_root): Require also the slash after the colon.
3084 (filename_is_server_share): New function.
3086 (_gtk_file_system_win32_path_compare): New function, does
3087 case-folded UTF-8 comparison.
3089 * gtk/gtkfilesystemwin32.h: Declare
3090 _gtk_file_system_win32_path_compare().
3092 2005-01-01 Matthias Clasen <mclasen@redhat.com>
3094 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3095 custom image by passing NULL.
3096 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3097 a problem with changing stock labels. (#162273, Marcin
3100 2005-01-01 Tor Lillqvist <tml@iki.fi>
3102 * gtk/gtkmodules.c (get_module_path)
3103 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3104 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3105 g_getenv() now returning UTF-8 on Win32, no need to call
3108 2004-12-31 Matthias Clasen <mclasen@redhat.com>
3110 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
3111 (_gtk_key_hash_lookup): Don't sort a list of values as if
3112 it was a list of entries. This fixes crashes during mnemonic
3113 activation in the presence of multiple keymaps. (#162488,
3116 2004-12-30 Matthias Clasen <mclasen@redhat.com>
3118 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3119 state propagation when making an insensitive combo box sensitive
3120 again. (#162524, Carlos Garnacho Parro)
3122 * gtk/gtkfilechooserdefault.c: Use secondary text for error
3125 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3126 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3127 for error messages. Also mark some error messages for translation,
3128 fix capitalization of error messages.
3130 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3131 Use g_value_get_boolean() for ellipsize_set. (#162447,
3134 2004-12-30 Tor Lillqvist <tml@iki.fi>
3136 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3139 2004-12-28 Matthias Clasen <mclasen@redhat.com>
3141 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3142 submenu direction from the parent menu.
3144 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
3145 Return a boolean indicating whether an item in the submenu
3147 (gtk_real_menu_shell_move_current): When going in child
3148 direction, don't get stuck at completely insensitive
3149 submenus. (#162055, Billy Biggs)
3151 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3153 Make the clipboard image API more robust (#162357,
3154 Torsten Schoenfeld):
3156 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3157 ref the pixbuf if it is NULL.
3159 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
3160 NULL-terminate the varargs in the call to
3161 gdk_pixbuf_save_to_buffer().
3162 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
3163 if there is data to load.
3165 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3167 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3168 Set x_root and y_root in button and motion events from
3169 extended input devices. (#148715, Robert Ögren)
3171 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
3172 typo. (#162339, Alessio Dessi)
3174 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3175 properties as new since 2.4. (#156101, Billy Biggs)
3177 * configure.in: Add a warning about the linux-fb
3178 target. (#155488, Zeeshan Ali)
3180 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
3183 2004-12-26 Matthias Clasen <mclasen@redhat.com>
3185 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
3186 Typo fix. (#162219, Masao Mutoh)
3187 (gtk_file_chooser_set_preview_widget_active):
3188 Another typo. (#162218, Masao Mutoh)
3190 2004-12-23 Matthias Clasen <mclasen@redhat.com>
3192 * gtk/gtkliststore.c (gtk_list_store_iter_children):
3193 Return TRUE if there are children. (#162134, Iñigo Serna,
3194 patch by John Finlay)
3196 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
3197 Transfer state from the button to the cell view to get
3198 prelighting right. (#156327, Ricardo Veguilla)
3200 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
3202 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
3203 timeout. Written by Christian Persch.
3205 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
3209 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
3210 background for windows that get expose events.
3212 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
3213 hack to repaint !expose windows.
3215 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
3217 Bug #147497, make menu items activate immediately when you release
3220 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
3221 items activate immediately.
3223 * gtk/gtkmenu.c (definitely_within_item): New function
3224 * gtk/gtkmenu.c (check_threshold): New function
3226 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3228 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
3229 null the mnemonic_menu when unsetting a mnemonic, reported
3232 2004-12-21 Matthias Clasen <mclasen@redhat.com>
3234 * gtk/gtkliststore.c (generate_order): Generate the order the
3235 way it is supposed to be, order[new_pos] == old_pos.
3236 (gtk_list_store_reorder): Invert the order before using it.
3238 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3240 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
3242 * gtk/gtkliststore.c (generate_order): Generate the order the
3243 way it is supposed to be, order[new_pos] == old_pos.
3244 (gtk_list_store_reorder): Invert the order before using it.
3246 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
3249 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
3251 * gtk/queryimmodules.c (main): print out the version and binary
3252 name in the header comment. Problem reported by Seth Nickell.
3254 2004-12-20 Matthias Clasen <mclasen@redhat.com>
3256 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
3257 root path to gtk_tree_model_rows_reordered(). (#161720,
3258 Marcin Krzyzanowski)
3260 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
3261 translate NULL messages. (#161789, Morten Welinder)
3263 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
3264 the secondary label on show_all(). (#161707, Christian Persch)
3266 2004-12-19 Tor Lillqvist <tml@iki.fi>
3268 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
3269 Use wide character API when available. Use UTF-8 for filenames.
3271 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
3272 the string's trailing zero byte in the property's length, just for
3275 2004-12-18 Matthias Clasen <mclasen@redhat.com>
3277 * gtk/gtkfilechooserentry.c (check_completion_callback)
3278 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
3280 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
3281 (shortcuts_drag_outside_idle_cb): Add missing
3282 GDK_THREADS_ENTER/LEAVE. (#161604)
3284 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
3285 (list_select_func): Don't call gtk_file_info_get_is_folder()
3288 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
3289 (gtk_about_dialog_init): Add missing initializations. (#161646,