1 2005-07-13 Matthias Clasen <mclasen@redhat.com>
3 * tests/treestoretest.c:
4 * tests/testxinerama.c:
5 * tests/testtreeview.c:
6 * tests/testtreefocus.c:
7 * tests/testtreeflow.c:
8 * tests/testtreeedit.c:
9 * tests/testtreecolumns.c:
11 * tests/testtextbuffer.c:
12 * tests/testspinbutton.c:
13 * tests/testsocket_common.c:
14 * tests/testsocket_child.c:
16 * tests/testmultiscreen.c:
17 * tests/testmultidisplay.c:
20 * tests/testmenubars.c:
21 * tests/testicontheme.c:
22 * tests/testfilechooser.c:
23 * tests/testentrycompletion.c:
25 * tests/testcombochange.c:
26 * tests/testactions.c:
32 * gtk/gtktexttagprivate.h:
33 * gtk/gtktextsegment.h:
34 * gtk/gtktextiterprivate.h:
35 * gtk/gtktextchildprivate.h:
36 * gtk/gtktextbtree.h: Add Copyright/License information.
38 * gtk/gtkicontheme.c (gtk_icon_theme_get_default)
39 (gtk_icon_theme_get_for_screen): Add a warning about
40 unreffing icon themes. (#310163, Rodney Dawes)
42 2005-07-13 Kristian Rietveld <kris@gtk.org>
44 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
45 maintaining the iter on every iteration, only get the iter when
46 we are about to call the foreach_func. Gives us a 10x speedup,
47 since maintaining iters is a lot more expensive than maintaining
48 paths. We lose a bit of sanity checking though. Thanks go to
49 Billy Biggs for pointing this out.
51 2005-07-12 Matthias Clasen <mclasen@redhat.com>
53 * tests/testcairo.c (draw): Fix the same confusion here, too.
55 * gdk/gdkgc.c (make_stipple_tile_surface): Fix
56 cairo_content_t <-> cairo_format_t confusion. (#310086,
57 Carlos Garnacho Parro)
59 * gtk/gtkfilesystemunix.c
60 (gtk_file_system_unix_volume_get_display_name): Follow
61 the Nautilus change and rename "Filesystem" to "File System",
62 string change. (#310047, Vincent Noel)
64 2005-07-12 Matthias Clasen <mclasen@redhat.com>
66 * demos/gtk-demo/iconview.c: Rename this demo.
68 * demos/gtk-demo/iconview_edit.c: Add a demo for icon view
69 editing and drag-and-drop.
71 * demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
73 2005-07-12 Matthias Clasen <mclasen@redhat.com>
75 * gtk/theme-bits/decompose-bits.c:
76 * gtk/gtkfilechooserembed.c:
77 * gtk/gtktextmarkprivate.h:
78 * gtk/gtktexttagtable.h:
79 * gtk/gtktexttagtable.c:
80 * gtk/gtkrc.key.emacs: Add Copyright/License information.
82 * gdk/linux-fb/gdkrender-fb.c:
83 * gdk/linux-fb/gdkpango-fb.c:
84 * gdk/linux-fb/gdkdrawable-fb2.c:
85 * gdk/linux-fb/gdkgc-fb.c:
86 * gdk/linux-fb/gdkfbswitch.c: Add Copyright/License information.
105 * gdk/gdkcolor.h: Add Copyright/License information.
107 2005-07-11 Matthias Clasen <mclasen@redhat.com>
109 * modules/input/imm-extra.h: Add Copyright/License information.
111 2005-07-11 Matthias Clasen <mclasen@redhat.com>
113 * gtk/gtktexttag.c (gtk_text_tag_class_init)
114 (gtk_text_tag_set_property): Remove the runtime warning about
115 the invisible property, add a warning about possible remaining
116 problems to the documentation of the property. (#66194)
118 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
119 ever go unconditionally to the buffer ends; that doesn't work
120 if the initial or final portion of the buffer are invisible.
122 2005-07-11 Kristian Rietveld <kris@gtk.org>
124 * gtk/gtktreeview.c (gtk_tree_view_class_init): add binding entry
125 for ctrl + backspace (move focus to parent without affecting
127 (gtk_tree_view_real_select_cursor_parent): implement ctrl+backspace
128 and simplify the function a bit. (#309296, Kathy Fernandes).
130 2005-07-11 Matthias Clasen <mclasen@redhat.com>
132 Make gdk_window_present() move the window to the current
133 desktop, instead of letting the WM change the current
134 desktop to where the window is. (#166379, Elijah Newren)
138 * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
139 New function to move a window to the current desktop.
141 * gtk/gtkwindow.c (gtk_window_present_with_time): Move the
142 window to the current desktop before giving it focus.
144 2005-07-11 Matthias Clasen <mclasen@redhat.com>
146 When dragging text, use a drag icon showing the (ellipsized)
147 text that is being dragged: (#161132, Kevin Duffus, patch
148 by Carlos Garnacho Parro)
151 * gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
152 a function to create a pixmap for use when dragging text.
154 * gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
155 * gtk/gtklabel.c (gtk_label_motion):
156 * gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
157 showing the text being dragged.
159 2005-07-11 Matthias Clasen <mclasen@redhat.com>
161 * gtk/gtkentry.c (gtk_entry_move_forward_word)
162 (gtk_entry_move_backward_word): Match the text view change
163 to allow selecting whitespace with double-click.
165 * gtk/gtktextview.c (extend_selection): Make double-clicking
166 between words select whitespace. (#309860, Mike Miller, patch
169 * gtk/gtkiconview.c: Documentation improvements. (#309946,
172 2005-07-10 Kristian Rietveld <kris@gtk.org>
174 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
175 unneeded check for negative window_y.
177 2005-07-10 Kristian Rietveld <kris@gtk.org>
179 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move
180 to the next match when ctrl+g is pressed. (#156657, Matt T. Proud).
182 2005-07-10 Kristian Rietveld <kris@gtk.org>
184 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
185 function to make page up/down behave the same as in GtkTextView.
186 (Fixes #101220, Owen Taylor).
188 2005-07-09 Kristian Rietveld <kris@gtk.org>
190 Fix #305737, patch from Tomislav Jonjic. This makes the
191 gtk_tree_store_insert* family of functions emit row_has_child_toggled
192 when needed (they didn't do that before).
194 * gtk/gtktreestore.c (gtk_tree_store_insert): emit
195 row_has_child_toggled when needed,
196 (gtk_tree_store_insert_before): fix a possible memleak,
197 emit row_has_child_toggled when needed,
198 (gtk_tree_store_insert_after): ditto.
200 2005-07-09 Kristian Rietveld <kris@gtk.org>
202 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
203 open_all is TRUE, traverse the newly built tree to emit
204 row_expanded for the subitems. (rev 1.444, patch in #172319
205 broke this). Fixes #305582, reported by Billy Biggs.
207 2005-07-09 Tor Lillqvist <tml@novell.com>
209 * configure.in: Look for windres on Win32. Drop build/* from
212 * Makefile.am: Drop build from SUBDIRS.
214 * gdk/win32/rc/Makefile.am
216 * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
217 the rc files into resource object files. (This means we lose the
218 build number increment magic, but I doubt it was that useful
219 anyway.) Instead use windres directly. To pass a normal .o file
220 produced by windres through libtool, which would want a .lo file,
221 pass it directly to the linker using a -Wl option.
223 * gdk/win32/rc/gdk.rc.in
224 * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
226 2005-07-08 Kristian Rietveld <kris@gtk.org>
228 Fixes #165034, reported by Jorn Baayen.
230 * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
231 mark_valid parameter (so we can mark all nodes as valid when we
232 are setting them to the fixed height).
234 * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
235 nodes as valid when setting the fixed height,
236 (do_validate_rows): update call to _set_fixed_height,
237 (gtk_tree_view_row_inserted): mark node as valid when fixed
238 height mode is enabled and a height has been set,
239 (gtk_tree_view_build_tree): if fixed height mode is enabled,
240 mark new nodes as valid in addition to setting the height.
242 2005-07-08 Matthias Clasen <mclasen@redhat.com>
244 * configure.in: Bump version
246 * === Released 2.7.2 ===
250 * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start):
251 (gtk_cell_layout_pack_end): Add a note about reusing cell
254 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
255 gtk_drag_get_cursor. (#309784, Sebastian Bacher)
257 2005-07-08 Tor Lillqvist <tml@novell.com>
259 * gtk/gtkfilesel.c: Use g_get_host_name().
261 2005-07-07 Matthias Clasen <mclasen@redhat.com>
263 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
264 (#162979, Paul Cornett)
266 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
267 (gtk_vscale_new_with_range): Add some additional docs on
268 precision here too. (#309238, Steve Chaplin)
270 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
271 generate events on destroyed windows.
273 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
275 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
276 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
277 to handle drag-and-drop on the file list.
278 (create_file_list): Set up drag-and-drop handlers on the file list.
280 2005-07-07 Matthias Clasen <mclasen@redhat.com>
282 Fix #157787, reported by Jonathan Blandford:
284 * gtk/gtkfilechooserdefault.c
285 (gtk_file_chooser_default_set_current_folder): Don't leave a
286 "trail" behind when set_current_folder is called explicitly.
287 (gtk_file_chooser_default_update_current_folder): New function
288 that is called to update the current folder in response to
291 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
292 keep_trail argument, and don't leave a "trail" behind unless
295 2005-07-06 Manish Singh <yosh@gimp.org>
297 * demos/gtk-demo/menus.c: change_orientation() should return void,
298 remove unused variable in do_menus().
300 2005-07-06 Tor Lillqvist <tml@novell.com>
302 * gdk/win32/gdkcursor-win32.c
303 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
304 until we know that we have something to put in it.
306 2005-07-05 Matthias Clasen <mclasen@redhat.com>
308 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
309 additional docs on precision. (#309238, Steve Chaplin)
311 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
313 2005-07-05 Matthias Clasen <mclasen@redhat.com>
315 * doc/tools/widgets.c: Actually generate a file-button
318 2005-07-06 Tor Lillqvist <tml@novell.com>
320 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
321 cursor implementation, and what it maybe really should do.
322 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
323 here from gtk/gtkfilesystemwin32.c:extract_icon().
324 (gdk_cursor_get_image): Use
325 gdk_win32_icon_to_pixbuf_libgtk_only().
328 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
330 * gtk/gtkfilesystemwin32.c (extract_icon): Use
331 gdk_win32_icon_to_pixbuf_libgtk_only().
333 2005-07-05 Matthias Clasen <mclasen@redhat.com>
335 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
336 groups into account. (#309473, Diego Gonzalez)
338 * gtk/gtkwindow.[hc]: Add a non-exported function to
339 get the grab widget of a window group.
341 2005-07-05 Kristian Rietveld <kris@gtk.org>
343 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
344 'main' expose loop, add back the calls to _set_cell_data
345 removed earlier. (#309221, Matthias Clasen).
347 2005-07-05 Matthias Clasen <mclasen@redhat.com>
349 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
352 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
353 with getter and setter. (#165012, Christian Rose,
354 based on a patch by Christian Persch)
356 2005-07-05 Matthias Clasen <mclasen@redhat.com>
358 * gdk/Makefile.am: Distribute the keyname-table.h header
359 and the files that are used to construct it. (#309421,
362 2005-07-04 Matthias Clasen <mclasen@redhat.com>
364 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
365 (gtk_menu_bar_set_child_pack_direction): Queue a resize
366 on the contained menuitems as well.
368 * demos/gtk-demo/appwindow.c: Break some overlong lines.
370 2005-07-03 Hans Breuer <hans@breuer.org>
372 * **/makefile.msc[.in] : updated
373 * gtk/gtkiconcache.c : <io.h> for open()
374 * gtk/gtkstyle.c : use G_PI instead of M_PI
376 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
377 by mapping the lower case win32 api name to the respective cursor.
378 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
379 cursors from named resources in the executable.
380 (gdk_cursor_get_image) : just return NULL for now.
382 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
383 by delegation to ScollWindowEx(), untested.
385 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
387 2005-07-03 Matthias Clasen <mclasen@redhat.com>
389 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
390 menubar patch, I forgot the GtkImageMenuItem changes. And I
391 managed to do 2 releases without noticing that...
393 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
394 blurb for the icon-sizes setting. String change.
395 (#309355, Benjamin Berg)
397 2005-07-01 Matthias Clasen <mclasen@redhat.com>
399 * configure.in: Bump version.
401 * === Released 2.7.1 ===
405 2005-07-01 Matthias Clasen <mclasen@redhat.com>
407 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
408 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
410 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
412 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
414 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
416 2005-06-30 Matthias Clasen <mclasen@redhat.com>
418 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
419 infinite loop if a mask is zero. (#309222, David Saxton)
421 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
422 Clarify the code, gcc 4 complains about predecrement in MAX().
424 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
425 prematurely unregister callbacks.
429 2005-06-29 Matthias Clasen <mclasen@redhat.com>
431 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
434 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
437 * gdk/gdkevents.h: Add a boolean to specify wether the broken
440 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
441 As the documentation states, don't return TRUE for
444 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
445 a boolean field to store wether a pointer grab is implicit.
447 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
448 Track implicit grabs.
450 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
451 _gdk_xgrab_check_button_event for button events.
453 2005-06-28 Matthias Clasen <mclasen@redhat.com>
455 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
456 Make sure that cell boxes are always completely inside
459 2005-06-27 Matthias Clasen <mclasen@redhat.com>
461 * demos/gtk-demo/main.c (create_tree): Make the list of
464 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
465 Fix positioning at the end of the line for lines ending
466 in invisible characters.
467 (gtk_text_layout_get_line_display): Set display->layout
468 to a PangoLayout, even for totally invisible lines.
470 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
471 GrabBroken events which are caused by overgrabbing inside
472 the application; menus rely on these for their operation.
474 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
477 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
478 grab_window to NULL when generating GrabBroken events for
479 WM_KILLFOCUS messages.
481 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
482 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
483 generating GrabBroken events when the grab window becomes
484 unviewable or is destroyed.
486 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
487 Generate GrabBroken events when overriding a grab inside
488 the application. In this case, set grab_window to the new
491 2005-06-27 Matthias Clasen <mclasen@redhat.com>
493 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
494 to activate even if we can't grab the keyboard.
495 (gtk_button_finish_activate): Only ungrab when we have
496 a keyboard grab. (#172998, William Jon McCann)
498 2005-06-27 Matthias Clasen <mclasen@redhat.com>
500 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
501 Avoid a segfault. (#309054)
503 2005-06-27 Matthias Clasen <mclasen@redhat.com>
505 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
506 fields for grab timestamps.
508 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
509 Store grab timestamps when grabbing.
511 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
512 (gdk_display_pointer_ungrab): Don't unset the grab_window
513 if the timestamps indicate that the ungrab will fails.
515 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
516 they are grab-shadowed by something thats not a
517 submenu. (#145416, Euan MacGregor)
519 2005-06-27 Owen Taylor <otaylor@redhat.com>
521 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
524 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
526 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
527 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
530 2005-06-27 Matthias Clasen <mclasen@redhat.com>
532 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
535 * configure.in: Require GLib 2.7.1
537 2005-06-26 Matthias Clasen <mclasen@redhat.com>
539 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
540 Unregister XIM callbacks here. (#309054)
542 * modules/input/gtkimcontextxim.h: Small cleanup.
544 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
545 scroll offset when drawing the box. (#308834, Tom von
548 2005-06-26 Tor Lillqvist <tml@novell.com>
551 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
552 keyword, so no need to remove those entries from the import
553 library. libtool installs the .dll.a import library itself, so no
554 need to do it here. Install the .def file.
556 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
558 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
559 GDK_GRAB_BROKEN to the switch cases.
561 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
564 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
566 2005-06-26 Matthias Clasen <mclasen@redhat.com>
568 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
569 header drag operations if the grab is broken.
571 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
574 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
575 explicitly ungrab pointer and keyboard. We're unmapping
576 the grab window anyway.
577 (gtk_combo_box_popup): Handle grab failures.
579 2005-06-25 Matthias Clasen <mclasen@redhat.com>
581 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
582 Don't emit grab-broken for overgrabbing, until we figure
583 out how to do that without breaking the menu code.
585 2005-06-25 Matthias Clasen <mclasen@redhat.com>
587 Add a GrabBroken event to GDK, and a grab-broken-event
588 signal to GtkWidget. (#107320, Simon Cooke, initial patch
591 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
592 define a GdkEventGrabBroken event struct.
594 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
595 Generate GrabBroken events in response to WM_KILLFOCUS.
597 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
598 when a grab is broken by the window becoming unviewable,
599 or by another grab from the same client.
601 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
603 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
604 GrabBroken events into grab_broken_event signals.
606 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
609 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
610 the menu when the grab is broken.
612 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
613 the color picker if the grab is broken.
615 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
618 2005-06-25 Matthias Clasen <mclasen@redhat.com>
620 Add some new stock items. (#166480, Kristof Vansant)
622 * gtk/stock-icons/stock_fullscreen_16.png:
623 * gtk/stock-icons/stock_fullscreen_24.png:
624 * gtk/stock-icons/stock_leave_fullscreen_16.png:
625 * gtk/stock-icons/stock_leave_fullscreen_24.png:
626 * gtk/stock-icons/stock_info_16.png:
627 * gtk/stock-icons/stock_info_24.png: New icons.
629 * gtk/stock-icons/Makefile.am: Add new icons.
631 * gtk/gtkstock.h: Define names for the new icons.
633 * gtk/gtkstock.c (builtin_items): Register new stock items.
635 * gtk/gtkiconfactory.c (get_default_icons): Register new
638 2005-06-24 Owen Taylor <otaylor@redhat.com>
640 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
641 conversion functions for MSB machines: convert_0888[_br]
642 now work on bytes so are endian independent.
643 (Reported by David Zeuthen)
645 2005-06-24 Matthias Clasen <mclasen@redhat.com>
647 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
648 jump to the next line if we are at the end of the line.
649 (gtk_text_view_move_cursor_internal): Make movement by
650 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
652 2005-06-23 Tor Lillqvist <tml@novell.com>
654 Improve and simplify line segment rendering on Win32, especially
655 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
656 bugs #306396 and #308413.
658 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
659 line_style, cap_style and join_style as such in the
660 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
661 check the line_style.
663 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
664 up the GDI pen type, style, end cap and join attributes to use
665 based on the pen width, GDK line style, end cap style, and join
668 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
669 cap style, which typically are used for XOR drawing where it is
670 essential that the last pixel is not drawn, use a GDI cosmetic
671 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
672 deduced this by experimetation, the documentation is rather vague.
674 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
675 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
676 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
677 single-pixel length lines are drawn. (For sngle-pixel width lines
678 roundness as such is of course irrelevant.) For dashed lines, use
681 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
682 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
684 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
685 work better than PS_USERSTYLE. For other dashed lines, use
686 PS_USERSTYLE and the dashes as set by the user (or the default
687 four-pixel on-off style).
689 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
690 Call fixup_pen() to do the pen settings after modifying some of
691 the GDK GC attributes that affect pens.
693 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
694 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
695 instead of the the removed pen_double_dash member. Don't use
696 PATCOPY unconditionally in the PatBlt() call, use a raster op
697 code that depends on the GC function in use.
699 (draw_rectangle, draw_segments, draw_lines): Be more careful in
700 deciding when to do the manual dash rendering.
702 (draw_segments): Don't do any manual "last point" drawing at
703 all. The above changes takes care of narrow line segments being
704 drawn correctly in most cases, at least on NT-based Windows.
706 2005-06-23 Matthias Clasen <mclasen@redhat.com>
708 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
709 Fix an error in the cache timeout logic. (#166601, Morten
712 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
713 keynav for header reordering and resizing to Alt-arrows and
714 Shift-Alt-arrows, following a proposal by the keynav
715 authority. (#308666, Calum Benson)
717 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
718 a leftover debugging envvar.
720 2005-06-23 Owen Taylor <otaylor@redhat.com>
722 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
723 big endian case for 3-channel source. (Reported by
726 2005-06-23 Matthias Clasen <mclasen@redhat.com>
728 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
729 trigger warnings if there are extra references to the
730 hbox. (#308677, Dan Winship)
732 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
733 g_file_set_contents(). (#308722, Morten Welinder)
735 2005-06-22 Matthias Clasen <mclasen@redhat.com>
737 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
738 time field in the event. (#308573, Morten Welinder)
740 * gtk/gtkfilesystemunix.c: Remove gratitious differences
741 between the stable branch and HEAD, which sneaked in with
742 the bookmark renaming.
744 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
746 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
749 2005-06-21 Matthias Clasen <mclasen@redhat.com>
754 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
755 on centering calculations to match the behaviour of other parts
756 of GTK+. (#307419, Ryan Lortie)
758 2005-06-21 Matthias Clasen <mclasen@redhat.com>
760 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
761 button-release-event as well, to handle touchscreen
762 scenarios better. (#171490, Markku Vire)
764 * gtk/*.h: Trivial cleanups. (#169647, #303455,
765 Fabricio Barros Cabral, Benoit Carpentier)
769 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
770 function which can be used to implement scrolling in
771 non-window widgets. (#135165, Søren Sandmann)
773 2005-06-20 Matthias Clasen <mclasen@redhat.com>
775 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
778 2005-06-20 Matthias Clasen <mclasen@redhat.com>
780 * configure.in: Bump version number.
782 * === Released 2.7.0 ===
784 2005-06-20 Matthias Clasen <mclasen@redhat.com>
788 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
789 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
791 2005-06-19 Matthias Clasen <mclasen@redhat.com>
793 * gtk/gtk.symbols: Add a forgotten symbol
797 2005-06-19 Kristian Rietveld <kris@gtk.org>
799 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
800 check which avoids processing updates on bin_window and scrolling
801 if the node is already visible. (#170600, Billy Biggs).
803 2005-06-19 Kristian Rietveld <kris@gtk.org>
805 * gtk/gtktreeview.c (validate_visible_area): only keep the
806 row at the same position if the full row is visible. (#304623,
809 2005-06-19 Kristian Rietveld <kris@gtk.org>
811 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
812 if treeview's height is smaller than the current page_size (just
813 like we do elsewhere).
815 2005-06-19 Kristian Rietveld <kris@gtk.org>
817 Make mousewheel scrolling possible in typeahead mode, suggestion
818 from Reinout van Schouwen (#307898).
820 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
821 connect treeview search window to scroll_event signal,
822 (gtk_tree_view_search_scroll_event): implement.
824 2005-06-19 Kristian Rietveld <kris@gtk.org>
826 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
827 the event on to treeview, so it has a change of selecting a row, etc.
828 (#169677, Kirk Bridger).
830 2005-06-19 Kristian Rietveld <kris@gtk.org>
832 This commit includes a fix for #169463, Stefan Kost.
834 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
835 when cell_area is set, return cell_area width/height as width/height,
836 so the focus rectangle will be drawn correctly.
838 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
839 of focus-line-width property,
840 (validate_row): take focus_line_width into account.
842 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
843 also take focus_line_width into account when calculating the cell_area
844 y and height (before, we only took it into account when calculating
847 2005-06-19 Matthias Clasen <mclasen@redhat.com>
850 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
851 with getter and setter. (#171612, Christian Neumair)
853 2005-06-18 Matthias Clasen <mclasen@redhat.com>
855 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
856 work for inserting before/after an existing menuitem or
857 toolitem. (#155946, Christian Persch)
859 * tests/testmerge.c (delayed_toggle_dynamic): Test the
860 "insert after" functionality of gtk_ui_manager_add_ui.
862 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
863 (#300678, Sven Neumann)
865 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
866 constructed with GtkUIManager.
870 * gtk/gtkimage.c (gtk_image_clear): Make this function
871 public. (#64792, Havoc Pennington)
873 2005-06-18 Kristian Rietveld <kris@gtk.org>
875 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
876 of the separate loop setting cell data with cell drawing loop
877 (introduced in revision 1.280), since this breaks focus handling
880 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
882 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
883 checks don't work on boxed types.
885 * gdk/x11/gdkcursor-x11.c:
886 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
889 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
891 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
894 2005-06-18 Matthias Clasen <mclasen@redhat.com>
896 * gtk/gtkcellrenderertoggle.c:
898 * gtk/gtktreeview.c: Typo fixes in comments.
900 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
901 2 children are added. (#308111, Morten Welinder)
903 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
904 1-based. (#163842, Pierre Ossman)
906 2005-06-17 Kristian Rietveld <kris@gtk.org>
908 Fix #160281, testcase from Peter Bloomfield.
910 * gtk/gtktreeview.c (do_presize_handler): always size request
911 and update adjustments in fixed height mode,
912 (gtk_tree_view_build_tree): if a fixed height is set, set this
913 height on newly added nodes.
915 2005-06-17 Tor Lillqvist <tml@novell.com>
917 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
918 and suggested_action fields in the GdkDragContext to
919 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
920 field, like eog, won't accept dropped files.
922 2005-06-17 Matthias Clasen <mclasen@redhat.com>
924 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
927 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
928 with getter and setter.
932 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
933 Add a setter for the urgency hint.
935 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
938 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
939 hint in the WM_HINTS property when appropriate.
941 2005-06-17 Matthias Clasen <mclasen@redhat.com>
943 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
945 * gdk/x11/gdkcursor-x11.c:
946 * gdk/gdkcursor.c: Improve some return_if_fail checks,
947 and add the missing non-Xcursor fallback for
948 _gdk_x11_cursor_update_theme(), noticed by Jeroen
951 * gtk/gtkbutton.c (gtk_button_class_init): Document
952 several button signals as not useful.
954 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
955 Resize the popup if necessary. (#308076, Vincent Noel)
957 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
958 draw on the old and new focus widgets, if their defaultness
959 changes. (#305607, Billy Biggs)
961 2005-06-17 Kristian Rietveld <kris@gtk.org>
963 * gtk/gtktreeview.c (validate_visible_area): make sure the row
964 above 'above_path' is always in a validated state, so it does
965 not mess up scrolling. (#303319, testcase from Billy Biggs).
967 2005-06-17 Matthias Clasen <mclasen@redhat.com>
969 * gdk/x11/gdkprivate-x11.h:
970 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
971 for cached cursors which are not associated with a window
972 at the time of the theme change, by storing a serial
973 number in each cursor, and updating the theme_serial
974 counter whenever the cursor theme changes.
976 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
977 Private function to update a cursor to the current
978 cursor theme if necessary.
980 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
981 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
982 _gdk_x11_cursor_update_theme() here.
984 2005-06-17 Owen Taylor <otaylor@redhat.com>
986 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
987 #if G_BYTE_ORDER == GDK_LSB_FIRST.
989 2005-06-17 Kristian Rietveld <kris@gtk.org>
991 * gtk/gtktreeview.c (validate_visible_area): don't try to update
992 the top_row rowref ourselves here, but just have _dy_to_top_row()
994 (gtk_tree_view_scroll_to_cell): handle scrolling via
995 validate_visible_area() if the treeview is not visible or needs
996 reallocation. (#165246, Nickolay V. Shmyrev).
998 2005-06-17 Kristian Rietveld <kris@gtk.org>
1000 Fixes #307914 (Alexander Larsson), fixing some breakage caused
1001 by my previous commit.
1003 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
1004 when it fits on a single page,
1005 (scroll_sync_handler): same here.
1007 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
1009 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
1011 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
1012 g_return_val_if_fail.
1014 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
1017 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
1018 takes a GtkWidget, not a GtkImage.
1020 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1022 * gtk/gtkfilechooserdefault.c (button_new): Simplify
1023 the code and respect the show-button-images setting.
1024 (#307941, Vincent Noel)
1026 * gtk/gtkdnd.c: Update the RGBA cursor if an
1027 icon is set after the cursor has been constructed.
1028 Also handle repeated setting of icons correctly.
1030 2005-06-16 Matthias Clasen <mclasen@redhat.com>
1032 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
1033 docs. (#307818, Christian Persch)
1035 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1037 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1038 Initialize all fields of the expose event. (#151693,
1041 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1043 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
1044 red and blue in place.
1046 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
1047 formatting, pointed out by Kjartan Maraas.
1049 * gtk/gtksettings.c: Add two new settings,
1050 gtk-cursor-theme-name and gtk-cursor-theme-size to
1051 control the cursor theme.
1053 * gdk/x11/gdkevents-x11.c: Add two new X settings,
1054 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
1055 these to the gtk settings.
1057 * tests/testgtk.c (create_cursors): Add a cursor theme
1060 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
1061 GdkCursor and add a private getter for it, so that we can
1062 update the cursor when the cursor theme changes.
1066 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
1067 New function to change the cursor theme.
1069 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
1070 g_return_if_fail() non-NULL checks.
1072 2005-06-15 Matthias Clasen <mclasen@redhat.com>
1074 * gdk/abicheck.sh: Use uniq to filter out duplicates.
1075 * gdk/gdk.symbols: Fix a define.
1077 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1079 * gtk/gtkwindow.c (gtk_window_parse_geometry):
1080 Fix up the example. (#307699, Michal Suchanek)
1082 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1084 * gtk/gtkcalendar.c: Update num_marked_dates as we
1085 used to do. (#307689, Thorsten Schoenfeld)
1087 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1089 Merged from gtk-2-6:
1093 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
1094 "selection-changed" and do the normal housekeeping even if we are
1095 in SAVE mode and there is nothing selected. We didn't emit that
1096 signal if we were in SAVE mode and unselect_all() got called.
1097 (gtk_file_chooser_default_unselect_all): Call
1098 pending_select_paths_free() so that we cancel any asynchronous
1100 (gtk_file_chooser_default_set_current_name): Likewise.
1102 2005-06-14 Federico Mena Quintero <federico@ximian.com>
1104 Merged from gtk-2-6:
1108 * gtk/gtkfilechooserdefault.c
1109 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
1110 mode. If the parent path is a folder, only create a subfolder if
1111 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
1112 and respond. Also, pick up the case where the user types
1113 "dirname/" instead of "dirname".
1114 (check_save_entry): Make the return type void. Add some return
1115 parameters so that we can do more thorough checking.
1116 (gtk_file_chooser_default_get_paths): If the file part is empty
1117 and we are in SAVE mode, return an empty selection.
1119 2005-06-15 Kristian Rietveld <kris@gtk.org>
1121 Patch for #163214 (reported by Tommi Komulainen) and fixes some
1122 other scrolling/validation related bugs along the why.
1124 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
1125 do_validate_rows once and don't queue a size request there,
1126 (gtk_tree_view_size_allocate): don't update vadj value without
1127 reason, sync top_row/dy after the window sizes and adjustments
1129 (validate_visible_area): always update dy when scrolling,
1130 manually set top_row here after changing the vadj (don't depend
1131 on _adjustment_changed and top_row/dy sync to do this), since we
1132 now always set top_row here correctly, we can always free
1133 scroll_to_path at the end which avoids infinite expose loops,
1134 (do_validate_rows): add queue_resize boolean, remove top_row/dy
1135 sync here, we cannot do it safely at this place since the
1136 window sizes and adjustments are out of sync,
1137 (validate_rows), (validate_rows_handler): update call to
1140 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1142 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
1143 stub for the no-Xcursor case. (noticed by Luis Villa)
1145 Use named cursors for the DND cursors, the names are "dnd-none",
1146 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
1147 cursor instead of cursor+window when possible. This saves
1148 roundtrips during the drag operation, and makes translucent icons
1151 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
1152 for the default dnd cursors.
1154 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
1155 used during the drag here, also store the icon pixbuf here.
1157 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
1158 switch the default cursors from xbm to inlined pixbufs.
1160 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
1161 GtkDragSourceInfo as well, since it has to composite the
1162 drag-specific cursors. The cursors combined from the image of
1163 the themed cursor and the icon_pixbuf stored in the info.
1165 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
1166 icon if there is an icon_pixbuf, which will be composited into
1169 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
1170 the pixbuf in the info struct for later compositing into the
1171 cursor instead of creating an icon window.
1173 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
1174 RGBA cursor for the drag, and need to display the cancel
1175 animation, construct the icon window here.
1177 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
1178 drag-specific cursors and the icon_pixbuf when done with
1181 2005-06-14 Matthias Clasen <mclasen@redhat.com>
1183 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
1184 with the name "color-picker", when available.
1188 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
1189 (gdk_cursor_new_from_name): New functions to construct named
1190 cursors and to get the image used for a cursor.
1192 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1194 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
1195 path bar is done, implementing the following principles:
1196 (#137289, patch by Benjamin Otte)
1198 1. Re-root only if $HOME is an ancestor of the current path.
1200 2. When re-rooting, make sure the Left arrow appears in the path
1201 bar, so that you can navigate up from $HOME to /. In that case,
1202 make sure the Right arrow doesn't appear if the sub-hierarchy from
1203 $HOME to the cwd fits in the window.
1205 3. Make sure that hitting Alt-Up takes you always one folder up,
1206 even when the path bar is re-rooted.
1208 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1209 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
1211 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
1212 Free the data of the row before overwriting it. (#307490,
1215 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
1217 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
1218 leak the cairo context. Closes bug #307426.
1220 2005-06-13 Matthias Clasen <mclasen@redhat.com>
1222 Make invisible text work a bit better (#66194, patch by
1223 Jeroen Zwartepoorte)
1226 * gtk/gtktextiter.[hc]: Add function to move by
1229 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
1230 Skip invisible text when moving by paragraphs.
1232 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
1233 Skip invisible lines here too.
1235 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1237 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1238 Don't leak the format names. (#307190, Morten Welinder)
1240 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
1242 * gdk/x11/gdkasync.c: (send_event_handler): Plug
1243 a leak. Closes bug #307281.
1245 2005-06-12 Matthias Clasen <mclasen@redhat.com>
1247 * gtk/gtkcalendar.c (calendar_paint_header):
1248 (gtk_calendar_size_request): Allow localization of the
1249 format in which the year is displayed. (#135451, Paisa
1252 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
1254 * gdk/gdkcairo.c: Small doc additions.
1256 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
1257 Check start_button_mask before starting a drag. (#149058,
1260 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
1261 Sayamindu Dasgupta, patch by Jan Arne Petersen)
1263 2005-06-11 Matthias Clasen <mclasen@redhat.com>
1267 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
1268 provided by Owen Taylor.
1271 * gtk/gtkiconview.h:
1272 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
1273 Add a function to determine what parts of the model are
1274 visible. (#306726, Jonathan Blandford)
1276 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
1277 files the same way as hidden files, to be closer to what
1278 Nautilus does. (#136196, Sean Middleditch)
1280 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1282 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1283 Don't modify strings returned from gettext().
1285 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
1287 * gtk/gtktextdisplay.c (render_para): don't use deprecated
1288 gdk_gc_unref function.
1290 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1292 Allow setting paragraph background. (#81045, Gustavo
1293 Carneiro, patch by Jeroen Zwartepoorte)
1295 * gtk/gtktextlayout.c (set_para_values): Propagate
1296 pg_bg_color to the display struct.
1297 (gtk_text_layout_free_line_display): Free it here.
1299 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
1300 is set, draw a rectangle in that color behind
1303 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
1304 paragraph-background, paragraph-background-gdk and
1305 paragraph-background-set properties.
1306 (set_pg_bg_color): A setter for paragraph-background.
1308 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
1311 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
1313 (struct _GtkTextTag): Add pg_bg_color_set.
1315 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
1317 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
1318 cairo surface when done with it. Plugs a fairly large leak in
1320 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
1321 826 blocks are definitely lost in loss record 25239 of 25250
1322 Like this from nautilus.
1324 2005-06-10 Michael Natterer <mitch@imendio.com>
1327 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
1328 to get an action's accel_closure (Fixes #141750 and #148106).
1330 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1332 * gdk/gen-keyname-table.pl: Generate N_() calls for
1333 translatable key names.
1335 * gdk/keynames.txt: Mark some key names as translatable.
1337 * gdk/keyname-table.h: Regenerated.
1339 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
1340 some context to the msg ids for keyboard modifiers and
1342 (_gtk_accel_label_class_get_accelerator_label): Try to
1343 translate key names. (#300224, Christian Rose)
1345 2005-06-10 Federico Mena Quintero <federico@ximian.com>
1347 Merged from gtk-2-6:
1351 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
1352 immediately if we are in CREATE_FOLDER mode, so that we can fill
1353 the entry with the newly-selected folder.
1354 (gtk_file_chooser_default_set_property): Warn against turning on
1355 multiple selection for CREATE_FOLDER mode, or about setting that
1356 action while multiple selection is on.
1357 (update_chooser_entry): Change the entry's contents as well if we
1358 are in CREATE_FOLDER mode. If nothing is selected, clear the
1360 (trap_activate_cb): Don't trap enter/space if modifiers are
1361 pressed. This lets one use Ctrl-space to toggle rows in multiple
1363 (gtk_file_chooser_default_should_respond): Clean up the if-chain
1364 mess of special cases by using an array to determine what to do.
1365 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
1366 the bug where the file chooser would switch to an existing folder
1367 rather than confirming with it, and create the folder ourselves.
1368 (error_creating_folder_over_existing_file_dialog): New function.
1370 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
1371 insert the common prefix if we are in an "open" mode. Use a
1373 (append_common_prefix): New helper function; code moved over from
1374 check_completion_callback().
1375 (find_common_prefix): New helper function.
1376 (gtk_file_chooser_entry_focus): Append the common prefix if the
1377 user requests it explicitly.
1379 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1381 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
1382 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
1383 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
1384 * gtk/gtkstock.c (gtk_stock_set_translate_func):
1385 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
1386 * gtk/gtkscrolledwindow.h:
1387 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
1389 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
1390 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
1391 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
1393 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1395 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1397 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
1398 (#306212, Steve Chaplin, docs provided by Billy Biggs)
1400 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
1401 cleanup. (#305539, Paolo Borelli)
1403 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
1405 * configure.in: added cairo to list of $GTK_PACKAGES.
1407 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1409 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
1410 the user time on the window when a drop happens. (#169364, Alexander
1411 Hunziker, patch by Elijah Newren)
1413 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1416 * gtk/gtkiconview.h:
1417 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
1418 to scroll to a path. (#306838, Jonathan Blandford)
1420 2005-06-08 Matthias Clasen <mclasen@redhat.com>
1422 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
1423 item. (#306839, Jonathan Blandford)
1425 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
1426 negative before appending the index, to avoid double error
1427 message. (#306393, Morten Welinder)
1429 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1430 Don't crash if search_window is NULL. (#304914, Victor Osadci,
1431 testcase by Olaf Vitters)
1433 * gtk/gtkimage.c: Make the file property readable.
1434 (#170674, Lorenzo Gil Sanchez)
1437 2005-06-08 Matthias Clasen <mclasen@redhat.com>
1439 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
1440 g_utf8_collate_key_for_filename().
1442 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
1444 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
1445 Merge leak fix from stable. Bug 306754.
1447 2005-06-05 Tor Lillqvist <tml@novell.com>
1449 * gdk/win32/gdkscreen-win32.c
1450 (_gdk_windowing_substitute_screen_number): Return NULL unless
1451 screen number is zero. We have only one screen on Win32.
1452 (gdk_screen_make_display_name): Call gdk_display_get_name() and
1455 * modules/engines/Makefile.am
1456 * modules/input/Makefile.am: Decide whether to build the
1457 ms-windows theme engine based on the GDK backend, not based on
1458 platform. (I.e., if building for Cygwin with the X11 backend, we
1459 shouldn't build the ms-windows engine, but if building for Cygwin
1460 but with the Win32 backend, we should.) Ditto for the IME
1461 (Windows) input module. (#305832)
1463 2005-06-04 Tor Lillqvist <tml@novell.com>
1465 * gdk/win32/gdkcursor-win32.c
1466 * gdk/win32/gdkwindow-win32.c
1467 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
1468 Support cursors with alpha on XP. Use code in common with the
1469 support for alpha icons that already was present. (#306101, Tim
1472 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
1473 in a way that more closely matches Windows. (#305986, Tim Evans).
1475 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
1478 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
1480 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
1481 * modules/engines/ms-windows/xp_theme.c: Ditto
1482 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
1484 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
1486 * gtk/gtkentrycompletion.h: Add declarations for
1487 gtk_entry_completion_{get,set}_popup_single_match.
1489 2005-05-26 Matthias Clasen <mclasen@redhat.com>
1492 * gtk/gtkentrycompletion.c: Add a property to suppress the
1493 popup for single matches. (#154711)
1495 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
1497 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
1500 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
1501 redisplay after modifying the tag in the btree, otherwise
1502 we end up showing the old tags until the next redraw comes
1503 around. (#143537, Gary Kramlich, Peter Wainwright)
1505 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
1506 autoscrolling work at the bottom of the screen.
1508 2005-05-26 Maciej Katafiasz <email@mathrick.org>
1510 * docs/reference/gtk/tmpl/gtkentry.sgml:
1511 Point to GtkTextView instead of GtkText. Fixes bug #305535
1513 2005-05-26 Sven Neumann <sven@gimp.org>
1515 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
1516 aggressive PNG compression level (bug #305340).
1518 2005-05-26 Tor Lillqvist <tml@novell.com>
1520 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
1521 from the root window, take the multi-monitor offset into
1524 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1526 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
1529 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
1530 Remove another C99ism.
1532 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
1533 background of rows insensitive when the treeview is insensitive.
1534 (pointed out by Billy Biggs)
1536 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
1537 and DND, and clipboard persistency.
1539 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1540 Make sure png comes first, otherwise dnd may use bmp by
1541 default, loosing transparency.
1543 2005-05-25 Michael Natterer <mitch@imendio.com>
1545 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
1546 handler when changing cursor visibility because it would expose
1547 the whole paragraph where the cursor is. Instead, expose the
1548 cursors' areas manually. (#173047).
1550 (text_window_invalidate_cursors): new function which exposes the
1553 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
1554 same cursor size calculation is in text_window_invalidate_cursors().
1556 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1558 * demos/gtk-demo/editable_cells.c (create_items_model): Also
1559 demonstrate GtkCellRendererProgress.
1561 * demos/gtk-demo/Makefile.am (demos):
1562 * demos/gtk-demo/combobox.c: Add a demo showing combo box
1565 * demos/gtk-demo/Makefile.am (demos):
1566 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
1568 2005-05-24 Matthias Clasen <mclasen@redhat.com>
1570 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
1572 2005-05-24 Tor Lillqvist <tml@novell.com>
1574 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
1575 gtk-alternative-button-order (setting it to TRUE).
1577 2005-05-23 Matthias Clasen <mclasen@redhat.com>
1579 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
1580 an unused variable. (#305130, Jaap A. Haitsma)
1582 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
1583 the focus away from the file list when operating the filter
1584 combo with the pointer. (#304844, Sven Neumann)
1586 2005-05-23 Tor Lillqvist <tml@novell.com>
1588 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
1589 GDK_Menu. (#172383, Ivan Wong)
1591 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
1592 of the special cases this function takes care of, use it as
1593 such. This takes care of for instance the Bengali Virama, see bug
1596 2005-05-20 Matthias Clasen <mclasen@redhat.com>
1598 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
1599 buffer overrun. (#142444, Leonard Michlmayr)
1601 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
1604 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1606 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
1607 Use the correct function to conver the uri to a path. (#304565,
1610 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
1611 Cancel button properly. (#304234, Sven Neumann)
1613 2005-05-18 Anders Carlsson <andersca@imendio.com>
1615 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
1616 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
1617 * gtk/gtktextview.h:
1618 If the horizontal adjustment changes because of a change in the
1619 layout width, then do a complete redraw. This is because there
1620 might be right-aligned or centered text that needs to be redrawn.
1622 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1624 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
1625 the event masks of descendent windows. (#169821, Tommi Komulainen)
1627 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
1628 (gtk_tree_view_set_column_drag_info): Fix some errors in the
1629 handling of drop columns. (#143355, John Finlay)
1631 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1632 Remove the no longer needed workaround.
1634 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
1635 allocations of mapped children.
1637 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1638 Add a bug reference.
1640 2005-05-18 Tor Lillqvist <tml@novell.com>
1642 * gdk/win32/gdkevents-win32.c
1643 * gdk/win32/gdkkeys-win32.c
1644 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1645 lParam of WM_KEY* messages to distinguish between left and right
1646 Control and Alt keys. Unfortunately, the right Shift key doesnt
1647 set KF_EXTENDED, so to distinguish between left and right Shift
1648 keys, check the scan code. (#304584)
1650 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1652 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1653 length overflows. (#161520, Ian Wienand)
1655 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1656 parameter names to make gtk-doc happy.
1658 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1659 values of draw-value and value-pos to be the values we
1660 actually use in _init. (#304547, Mikael Hallendal)
1662 * gtk/gtkcellrendererpixbuf.c: Support named icons in
1663 cells by adding a icon-name property. (#165777, Anders
1667 * gtk/gtktoolbutton.h:
1668 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
1669 (gtk_tool_button_get_icon_name): Support named icons in
1670 tool buttons by adding a icon-name property. (#116577,
1675 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
1676 (gtk_drag_set_icon_name): New functions to support themed
1677 drag icons. (#116577, Christian Neumair)
1679 2005-05-17 Owen Taylor <otaylor@redhat.com>
1681 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
1682 Update to changed cairo interface.
1684 * gdk/x11/gdkdrawable-x11.[ch]:
1685 Add _gdk_x11_drawable_update_size()
1687 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
1688 (gdk_window_move_resize)
1689 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
1690 Call _gdk_x11_drawable_update_size().
1692 2005-05-17 Matthias Clasen <mclasen@redhat.com>
1694 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1695 if the text view is not editable.
1697 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1698 the popup posted if the button is released over the cellview.
1699 This matches the behaviour of other combo box implementations.
1702 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1703 when recursing. (#153682, Felipe Heidrich)
1705 2005-05-16 Matthias Clasen <mclasen@redhat.com>
1707 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
1708 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
1710 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
1711 the entry is not editable. (#304171, Nikos Kouremenos)
1713 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
1714 Make sure the action of the button and the dialog are in sync,
1715 when the dialog is provided by the app. (#303987, David A Knight)
1717 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1718 in the docs. (#303940, Masao Mutoh)
1720 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1722 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1723 casting. (#304089, Philip Langdale)
1725 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1726 the label if we need to. (#169390, Felix Riemann)
1728 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
1731 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1734 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1735 call gdk_cairo_set_source_color() with a color.
1737 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1739 * tests/testiconview.c (main): cast args of drag functions to the
1742 2005-05-13 Owen Taylor <otaylor@redhat.com>
1744 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1746 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
1747 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1749 2005-05-11 Owen Taylor <otaylor@redhat.com>
1751 * tests/testgtk.c (on_alpha_window_expose): Fix to use
1752 gdk_cairo_create(). (create_alpha_window): Hook up "response"
1753 to close the window.
1755 2005-05-11 Owen Taylor <otaylor@redhat.com>
1757 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1758 to draw the swatch in to avoid having an extraneous window.
1760 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1761 color when !has_opacity.
1763 2005-05-10 Owen Taylor <otaylor@redhat.com>
1765 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1766 files for Cairo convenience functionality.
1768 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1769 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1771 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
1772 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1774 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1775 gdk_drawable_create_cairo_context() to gdk_cairo_create().
1777 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1778 Rename gdk_pixbuf_set_as_cairo_source() to
1779 gdk_cairo_set_source_pixbuf().
1781 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1782 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1785 * gdk/gdk.symbols: Update.
1787 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
1788 coordinate system problem that was causing the wrong portions
1791 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1792 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1793 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1794 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1795 gtk/gtkcellview.c (gtk_cell_view_expose)
1796 gtk/gtkdnd.c (gtk_drag_highlight_expose)
1797 gtk/gtkentry.c (gtk_entry_draw_text)
1798 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1800 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1801 GTK+ style ... use instance-private data and standard names for
1802 private structure, etc. Move function docs inline.
1804 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1805 expose. Switch drawing to Cairo.
1807 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1808 gtk_calendar_freeze/thaw
1810 2005-05-10 Tor Lillqvist <tml@novell.com>
1812 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1813 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1814 == gdk_screen_get_default(), as that might return NULL when this
1817 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1819 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1820 padding in RTL mode. (#303572, Maciej Katafiasz)
1822 2005-05-09 Owen Taylor <otaylor@redhat.com>
1824 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
1825 Fill in unused bits so they can be used for the depth-32 target case.
1826 Rewrite so that that gives a marginal speedup rather than a
1827 marginal slowdown. (on x86)
1829 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1830 Add gdk_screen_get_rgba_colormap/visual to get a visual for
1831 windows with an alpha channel, if one exists.
1833 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1834 Stub out gdk_screen_get_rgba_colormap/visual.
1836 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1837 "unused" wasn't right for depth == 32, since it depended on
1840 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1842 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1844 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1845 Implement again, without using Xft.
1847 * tests/testgtk.c: Add a test for windows with an alpha channel.
1849 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1851 * autogen.sh: Revert accidental commit.
1853 2005-05-08 Matthias Clasen <mclasen@redhat.com>
1855 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
1860 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1862 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1864 * gtk/gtkscrolledwindow.h:
1865 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
1866 (gtk_scrolled_window_get_cscrollbar): Change the return
1867 type to GtkWidget*, proposed by Owen Taylor.
1869 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
1870 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
1873 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1875 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1878 2005-05-07 Owen Taylor <otaylor@redhat.com>
1880 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1881 the background color.
1883 2005-05-07 Owen Taylor <otaylor@redhat.com>
1885 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
1886 Change prototype to match cairo_set_source_surface().
1888 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1889 gtk/gtkhsv.c tests/testcairo.c.
1891 2005-05-06 Federico Mena Quintero <federico@ximian.com>
1893 Merged from gtk-2-6:
1895 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1896 types if this is an AFS directory.
1897 (fill_in_names): If we are in an AFS directory, set the MIME type
1898 blindly to "x-directory/normal".
1900 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1902 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1903 initialize child-visible to FALSE, otherwise we may end up
1904 with the wrong page visible initially. (#302283, Patrik Fimml)
1906 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1907 appear insensitive in insensitive treeviews.
1909 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1911 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
1914 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1917 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1918 support in the tree view. (#150270)
1920 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1923 * gtk/gtkwidget.h: Small cleanups.
1925 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1928 2005-05-04 Owen Taylor <otaylor@redhat.com>
1930 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1931 in focus tracking when we move between has_pointer_focus and
1932 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
1935 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1936 happen in the case of no window manager + keyboard grabs, by
1937 moving to a more consistent model of when we pay attention to
1938 mode=NotifyGrab/NotifyUngrab events.
1940 * docs/focus_tracking.txt: Extensive writeup about how to track
1943 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
1945 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1946 cairo_set_source_surface()/cairo_paint();
1948 2005-05-04 Tor Lillqvist <tml@novell.com>
1950 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1951 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1952 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1953 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1956 2005-05-03 Matthias Clasen <mclasen@redhat.com>
1958 * gtk/gtkfilesystem.c:
1959 * gtk/gtkcelleditable.c:
1960 * gtk/gtktreemodel.c: Avoid getting the interface struct
1961 twice in the same function. (#300513, Billy Biggs)
1963 * gtk/gtkscrolledwindow.h:
1964 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
1965 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
1969 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
1970 Make this function public. (#170748, Morten Welinder)
1972 2005-05-02 Federico Mena Quintero <federico@ximian.com>
1974 Merged from gtk-2-6:
1978 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1979 to store struct stat for /afs and /net, and boolean fields to say
1980 whether these are valid.
1981 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1982 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1983 field of the folder structure.
1984 (fill_in_names): If the folder is a network directory, create a
1985 fake struct stat for its entries.
1986 (fill_in_stats): Don't stat() the children of network directories.
1988 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1989 is 0, use "Unknown" for the cell's displayed text.
1991 2005-04-28 Owen Taylor <otaylor@redhat.com>
1993 * gtk/gtkwidget.c: Add a draw-border style property to allow
1994 themes to draw outside the widget's allocation.
1996 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1997 that were working around the clip-leakage bug in Cairo.
1999 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
2002 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
2003 That updates a Cairo context to match a GC.
2005 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
2006 for tiles/stipples/clipping to gdk_draw_glyphs(),
2007 gdk_draw_trapezoids().
2009 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
2010 implementation of stipples. Use one cairo_t across the entire
2011 drawing operation. Replace cairo_matrix_create() with
2012 stack-allocated matrices.
2014 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2015 gdk/win32/gdkgc-win32.c: Save various aspects of the
2016 GC state (fill, tile, stipple, foreground, background, clip region)
2017 in instance-private-data for future use. Add getters.
2018 Get rid of _gdk_windowing_gc_get_foreground() function implemented
2021 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2022 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
2023 _gdk_gc_init() to do initial setup of the GC from values;
2024 fixes some problems from drawable redirection.
2026 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
2027 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
2028 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
2029 the generic code, add _gdk_windowing_gc_copy(),
2030 _gdk_windowing_gc_set_clip_region() to do backend specific
2033 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2034 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
2035 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
2036 Don't duplicate state that now is stored by the generic code.
2038 * gdk/gdk.symbols Update
2040 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2042 * tests/testiconview.c: Test cell renderers.
2044 * gtk/gtk.symbols: Add new functions.
2046 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
2047 cell renderers for drawing and editing. (#148144, #160242)
2049 2005-05-02 Matthias Clasen <mclasen@redhat.com>
2051 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
2052 width for cases where pango_layout_get_pixel_extents() returns
2053 a rectangle with nonzero x.
2055 * gtk/gtkselection.c: Small doc fixes.
2057 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
2058 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
2060 2005-05-02 Michael Natterer <mitch@imendio.com>
2062 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
2063 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
2064 multiple times when using gtk_get_option_group(), just as one can
2065 call gtk_init() multiple times without doing any harm.
2067 2005-05-01 Matthias Clasen <mclasen@redhat.com>
2069 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
2070 the event to unanchored children in the text window.
2071 (#302494, Stephen Kennedy)
2073 2005-04-30 Tor Lillqvist <tml@novell.com>
2075 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
2076 multi-monitor offset into account. (#302525)
2078 2005-04-29 Matthias Clasen <mclasen@redhat.com>
2080 * gtk/gtkradioaction.c: Make the docs build. (#302230,
2083 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
2084 function, instead show the bin_window when it is created.
2086 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
2087 grab focus to unrealized widgets. (#302240, Philip Langdale)
2089 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
2090 background upon state changes. (#301651, Billy Biggs)
2091 (gtk_tree_view_get_path_at_pos): Take RTL into account
2092 when iterating over the columns. (#302163)
2094 * configure.in: Check for nm.
2096 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
2097 Nguyen Thai Ngoc Duy)
2099 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
2100 the internal unselect_all function, since we need the unselection
2101 to happen even in browse mode. (#300995, Mathias Hasselmann)
2103 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
2104 of triggering a ::notify by re-setting the property. (#300982,
2107 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
2109 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
2110 scroll horizontally when necessary, and keep the northwest
2111 corner of the item visible. (#300913, Mathias Hasselmann)
2113 * tests/testiconview.c: Add some more tests.
2115 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
2116 if the path does not point to a row in the model. (#300909,
2118 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
2121 * tests/testtext.c: Add some more attribute tests.
2123 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
2124 of the rise property. String change, but it is more important to
2125 be correct than to be translated. (#301740)
2127 2005-04-25 Tor Lillqvist <tml@novell.com>
2129 * gtk/gtkfilesystemwin32.c
2130 (gtk_file_system_win32_volume_get_display_name): Get volume name
2131 also on Win9x. (#301798, Daniel Atallah)
2132 (canonicalize_filename): Add explicit braces to silence compiler
2135 2005-04-22 Tor Lillqvist <tml@novell.com>
2137 * gtk/gtkmain.c: Initailize gettext before use. Calling
2138 bindtextdomain() and bind_textdomain_codeset() in
2139 do_post_parse_initialization() is too late. Put the calls in a new
2140 function gettext_initialization(), and call that from
2141 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
2142 GTK+'s part, but the same problem occurs also at least in
2143 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
2145 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
2147 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
2148 character height instead of cell height. Fix #301228.
2150 2005-04-18 Federico Mena Quintero <federico@ximian.com>
2152 Merged from gtk-2-6:
2154 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
2155 obsolete assertion that the selected row can't be a volume; this
2156 is handled by the "removable" column now. Fixes #301017.
2158 2005-04-18 Owen Taylor <otaylor@redhat.com>
2160 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
2161 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
2162 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
2163 setting color and opacity. (#301066, Vincent Noel)
2165 2005-04-15 Federico Mena Quintero <federico@ximian.com>
2167 Merged from gtk-2-6:
2169 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2170 Patch from Christian Neumair <chris@gnome-de.org>; only select the
2171 first row if we are in OPEN mode. The only other case we were
2172 letting pass through was SELECT_FOLDER, but selecting the first
2173 row when changing folders confuses people when folders are
2174 actually being selected. Fixes #171885.
2176 2005-04-13 Matthias Clasen <mclasen@redhat.com>
2178 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2179 Revert the fix for #169870, adjust the documentation instead.
2181 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2182 Revert the fix for #170727.
2184 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
2188 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
2191 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
2194 2005-04-09 Matthias Clasen <mclasen@redhat.com>
2196 * gdk/x11/gdkinput-xfree.c:
2197 * gdk/x11/gdkinput-none.c:
2198 * gdk/gtk.symbols: Some more fixes necessary to
2199 make building with gcc 4 work.
2201 Add 16x16 versions of the zoom icons and of
2202 GTK_STOCK_INDEX. Some of the images were taken from
2203 the hicolor icon theme, and were originally created
2204 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
2207 * gtk/stock-icons/stock_index_16.png:
2208 * gtk/stock-icons/stock_zoom_1_16.png:
2209 * gtk/stock-icons/stock_zoom_fit_16.png:
2210 * gtk/stock-icons/stock_zoom_in_16.png:
2211 * gtk/stock-icons/stock_zoom_out_16.png: New images.
2213 * gtk/stock-icons/Makefile.am: Add the new images.
2215 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
2216 Don't display too many broken images. (#169870, Roman
2217 Kagan, patch by Ivan Wong)
2219 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
2220 output. (#300013, Tommi Komulainen)
2222 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2224 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
2225 If a stock_id is unknown, display the missing image. (#169870,
2228 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
2229 as in updateiconcache.c. (spotted by Morten Welinder)
2231 2005-04-08 Carl Worth <cworth@cworth.org>
2233 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
2234 now that cairo exposes the cairo_matrix_t structure.
2236 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
2237 cairo API change in signedness of data argument.
2239 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2241 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
2242 work when called from gtk_combo_box_destroy(). (#172999,
2245 2005-04-08 Matthias Clasen <mclasen@redhat.com>
2247 Fix double-click to autosize treeview columns. This was
2248 probably broken since 2.2 ! (#169675)
2250 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
2251 "user-resized" state of the column on a double-click to
2253 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
2254 Enter the "user-resized" state of the column only if a drag
2255 actually changes the column width, not on any click.
2257 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2259 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
2260 images on menus. (#169532, Benjamin Otte)
2262 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
2263 unaligned access. (#172947)
2265 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
2266 Consistently use the term "Bookmarks" in the UI. (#166906,
2269 Some fixes from Morten Welinder (#172947):
2271 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2272 and platform-independent.
2273 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
2274 (build_cache): Error out if a stat fails.
2276 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2278 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
2279 a hint about hiding expanders.
2281 * gtk/updateiconcache.c (is_cache_up_to_date): Return
2282 TRUE if the cache is newer than the directory. (#172852,
2285 * configure.in: Replace an explicit pkg-config by
2286 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
2288 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
2289 Ignore regions which fall completely outside the line.
2290 (#165862, Felipe Heidrich)
2292 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2294 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
2295 -1 as possible value.
2296 (gtk_tree_view_enable_model_drag_source)
2297 (gtk_tree_view_enable_model_drag_dest): Pass the target list
2298 to the underlying dnd implementation, otherwise we miss the
2299 target info in the drag-data-received signal. (#164085, Jorn
2302 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2304 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
2305 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
2306 to gdk_window_get_pointer(). (#168015, Billy Biggs)
2308 * po/.cvsignore, po-properties/.cvsignore: Remove
2309 Makefile.in.in. (#171092, Stepan Kasal)
2311 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
2312 scanner->value, copy it first. (#165693, Tommi Komulainen)
2314 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2316 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
2317 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
2318 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
2321 * gtk/gtkicontheme.c: Store icon caches along with the
2322 mtimes of the toplevel directories. The previous
2323 mechanism of a hashtable-per-theme caused duplicate icon
2324 caches for the same toplevel directory to be created.
2327 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2329 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
2330 Fix a typo in a warning.
2332 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
2333 the license and credits buttons from being affected by
2334 gtk_widget_show_all(). (#172724)
2336 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2338 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
2339 reference to the item. (#167920, Hazael Maldonado Torres)
2341 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
2342 more docs on interactive search.
2344 2005-04-05 Tor Lillqvist <tml@novell.com>
2346 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
2347 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
2348 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
2350 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
2351 24bpp GdkVisual on 32bpp displays. (#140706)
2353 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
2355 Fix for #172319, Tristan Van Berkom:
2357 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
2358 gtk_tree_view_real_expand_row() instead of doing this by hand.
2360 2005-04-04 Johan Dahlin <johan@gnome.org>
2362 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
2363 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
2364 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
2366 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
2368 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2369 cast combo->priv->entry to GTK_ENTRY()
2371 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2372 cast completion->priv->tree_view to GTK_TREE_VIEW()
2374 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2376 * gtk/gtktextbuffer.c: Some trivial doc fixes.
2378 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
2379 the wording of the doc comment. (#172422, Vincent Untz)
2381 2005-04-04 Owen Taylor <otaylor@redhat.com>
2383 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
2384 drawing to Cairo. Also always draw the entire triangle instead
2385 of just drawing the center for prelight. (Fixes inconsistent
2386 drawing in GtkTreeView.)
2388 2005-04-04 Johan Dahlin <johan@gnome.org>
2390 * gtk/gtk.symbols: Remove symbols accidentally added.
2391 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
2392 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
2393 Use object_class instead of gobject_class
2395 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
2397 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
2398 widget coordinates instead of root coordinates. Patch from Jorn
2401 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2403 * gtk/gtktoolbar.c: Add a tooltips property.
2405 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
2406 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
2408 * gtk/gtktoggletoolbutton.c: Add an active property.
2410 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2412 Allow completion popups to be wider than the entry. (#131916,
2415 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
2417 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2418 Don't force the popup to have the same width as the entry if
2419 popup-set-width is FALSE.
2421 * gtk/gtk.symbols: Add new functions.
2423 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2425 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2426 Use gtk_accel_map_change_entry(), so that reusing the same
2427 action name works. (#170727, Paolo Borelli)
2429 2005-04-04 Tor Lillqvist <tml@novell.com>
2431 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
2432 function, to log a clipboard format name symbolically.
2433 (_gdk_win32_data_to_string): Also new, to log random data bytes.
2435 Implement delayed rendering on Win32, specifically for transfering
2436 images through the clipboard from GTK+ apps to other
2437 apps (#168173, implementation by Ivan Wong):
2439 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2440 Handle WM_RENDERFORMAT.
2442 * gdk/win32/gdkprivate-win32.h
2443 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
2444 _delayed_rendering_data and _image_bmp.
2446 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
2448 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
2449 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
2450 assume they are handled through delayed rendering.
2452 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
2453 Return all available formats (including those registered by GTK+
2454 apps) on request_targets.
2455 (gdk_selection_property_get): We should append a zero byte like
2457 (gdk_win32_selection_add_targets): New function, for
2458 gtkselection's use. Win32 requires that the clipboard owner
2459 registers all valid formats even if the owner wants delayed
2461 (_gdk_win32_selection_convert_to_dib): New function. Convert
2462 images to DIB using gdk-pixbuf.
2464 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
2466 * gtk/gtkselection.c (gtk_selection_add_target,
2467 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
2468 to register target formats.
2470 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
2472 2005-04-03 Hans Breuer <hans@breuer.org>
2474 [merged from gtk-2-6 branch]
2475 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
2476 the line pattern not the start of the line. Fixes bug #171641.
2478 * gtk/makefile.msc.in : follow .symbols changes
2480 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
2481 dynamically. (It is not available in _WIN_VER <= 0x0400)
2483 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
2485 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
2487 [also applied to gtk-2-6 branch]
2488 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
2490 * gdk/makefile.msc.in : add gtkmnemonichash.obj
2492 * test/testgtk.c(set_parent_signal) : use g_message instead of
2493 g_print to keep the 'testgtk --bench=all' output clean
2495 2005-04-03 Matthias Clasen <mclasen@redhat.com>
2497 * gtk/gtkruler.c: Add a "metric" property.
2499 * gtk/gtkradiomenuitem.c: Add a "group" property like
2500 the one found in radio buttons.
2502 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
2504 (gtk_radio_button_set_group): Add change notification.
2506 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2508 * gtk/gtkselection.c: Move documentation inline, document
2509 if add_target functions append or prepend. (#172350,
2512 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2514 Make gtk_combo_box_get_active_text do the right thing for
2515 GtkComboBoxEntry (#171373, Robert Staudinger)
2517 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
2519 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
2522 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2523 Implement get_active_text by always returning the content of
2526 2005-03-31 Sven Neumann <sven@gimp.org>
2528 Merged from gtk-2-6:
2531 * gtk/gtkiconview.c: fixed gtk-doc comments.
2533 2005-03-31 Michael Natterer <mitch@gimp.org>
2535 Allow to pop up menus without grabbing the keyboard. Useful for
2536 stuff like virtual keyboards. Fixes bug #159890
2539 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
2540 and public API gtk_menu_shell_set/get_take_focus().
2542 * gtk/gtkmenu.c (gtk_menu_popup)
2543 (popup_grab_on_window): don't grab the keyboard if take_focus
2546 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
2547 parent menu_shell's take_focus property to the submenu which is
2548 about to be popped up.
2550 2005-03-30 Federico Mena Quintero <federico@ximian.com>
2552 Merged from gtk-2-6:
2556 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
2557 if the row which changed is the same as the row being edited.
2559 2005-03-30 Matthias Clasen <mclasen@redhat.com>
2561 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2562 Make enable_search control only typeahead, not C-f. (#170435,
2564 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
2566 * gdk/gdkpixbuf.h: Include cairo.h
2568 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
2569 Don't accept n_targets == -1.
2570 (clipboard_unset): unref the old_data, not the
2571 user_data which we have just cleared. (#172038, Sven
2574 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
2575 segfault if somebody tries to popup an unrealized
2576 combo box. (#172031, Felipe Heidrich)
2578 2005-03-30 Tor Lillqvist <tml@novell.com>
2580 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
2581 state field should represent the state before the event, like on
2583 (gdk_event_translate): Fix event filter handling. If an event
2584 filter (global, client message filter, of window-specific) returns
2585 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
2586 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
2587 from gdk_event_translate() which means that DefWindowProc() will
2589 (gdk_event_translate): Fix client message handling. Append a
2590 GDK_CLIENT_EVENT unless there is a filter that matches and returns
2591 something other than GDK_FILTER_CONTINUE. (#135552)
2593 2005-03-29 Matthias Clasen <mclasen@redhat.com>
2595 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
2596 Document the need to refilter if parameters of the visibility function
2597 change. (#169516, Olivier Sessink)
2599 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
2601 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2602 invalidate areas that are covered by mapped input-output child
2603 windows. Bug 141380.
2605 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
2607 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
2608 the preview label ellipsize so the dialog layout stays constant.
2611 2005-03-28 Matthias Clasen <mclasen@redhat.com>
2613 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
2614 the context menu of the search entry if it is not visible.
2615 (#169534, Billy Biggs)
2617 2005-03-27 Tor Lillqvist <tml@novell.com>
2619 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
2620 after all, and in fact necessary with HEAD libtool.
2622 2005-03-26 Matthias Clasen <mclasen@redhat.com>
2625 * gdk/gdkdisplaymanager.c:
2626 Use canonical names for g_object_notify() as well.
2628 2005-03-24 Tor Lillqvist <tml@novell.com>
2630 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
2631 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
2632 gtk+-2.0.pc file and automatically used by dependents. MSVC users
2633 who use pkg-config will have to manually edit it out from
2634 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
2635 some kind of conditionals in .pc files?
2637 2005-03-23 Matthias Clasen <mclasen@redhat.com>
2639 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2640 a call whose result was unused and leaked. (#170776,
2643 Some cleanups to the GtkDialog code: (#170746,
2645 * gtk/gtkdialog.c (action_widget_activated): Simplify,
2646 use _gtk_dialog_get_response_for_widget.
2647 (gtk_dialog_add_action_widget): Use the correct signal
2649 (gtk_dialog_set_response_sensitive):
2650 (gtk_dialog_set_default_response): Use get_response_data.
2651 (gtk_dialog_run): Don't disconnect the signals if the
2652 dialog was destroyed while running.
2654 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
2656 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2657 Use g_return_if_fail, not g_return_val_if_fail.
2659 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2661 Implement bookmark renaming (#136216, Sean Middleditch)
2663 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
2664 get_bookmark_label and set_bookmark_label vfuncs.
2666 * gtk/gtkfilesystem.h:
2667 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2668 (gtk_file_system_get_bookmark_label): Wrappers for the
2671 * gtk/gtk.symbols: Add new exported symbols.
2673 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
2674 (gtk_file_system_unix_get_bookmark_label): Implementations
2675 for the Unix backend.
2677 * gtk/gtkfilechooserdefault.c: Add a context menu to
2678 the bookmarks pane, and allow to rename bookmarks.
2680 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2682 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
2683 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
2684 * gtk/gtknotebook.c (gtk_notebook_unmap):
2685 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2686 the widget is unmapped. (#168791, Ryan Lortie)
2688 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2690 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2691 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2692 their G_ counterparts, but also mark the name, nick
2693 and blurb as static.
2695 * gtk/*.c: Mark param spec strings as static, using
2698 * gtk/gtkspinbutton.h: Fix a typo.
2700 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2702 * gtk/gtkcellrendererprogress.c:
2703 * gtk/gtkcellrendererpixbuf.c:
2704 * gtk/gtkcellrenderercombo.c:
2705 * gtk/gtkcellrenderer.c:
2706 * gtk/gtkcalendar.c:
2710 * gtk/gtkaspectframe.c:
2712 * gtk/gtkalignment.c:
2713 * gtk/gtkactiongroup.c:
2715 * gtk/gtkaccellabel.c:
2716 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2718 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
2719 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2720 param spec strings as static.
2722 2005-03-21 Tor Lillqvist <tml@novell.com>
2724 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2725 variables, unhandled enum value in switch). Use g_object_unref()
2726 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2728 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
2729 Add missing "case" keyword.
2731 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2734 2005-03-20 Tor Lillqvist <tml@novell.com>
2736 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2737 Terminal Services session number, window station name (always
2738 "WinSta0" in interactive processes), and desktop name (typically
2739 "Default"), concatenated with backslash separators.
2740 (gdk_display_open): Accept only NULL or the string
2741 gdk_display_get_name() returns as display name.
2743 2005-03-20 Matthias Clasen <mclasen@redhat.com>
2745 Make PLT-reduction work with gcc4, and don't include
2746 everything in gdkalias.h:
2748 * gtk/grk.symbols: Group symbols by header and source file.
2749 * gtk/makegtkalias.pl: Protect definitions by the same
2750 preprocessor symbols used to guard the headers. Move
2751 the alias declarations to a separate file which is
2752 produced when calling makegtkalias.pl -def
2753 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
2755 * gtk/*.c: Include gtkalias.h after the other headers,
2756 include gtkaliasdef.c at the bottom.
2757 * gtk/*.h: Small cleanups.
2759 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
2761 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2762 Make right-clicks not pop up the menu.
2764 2005-03-18 Owen Taylor <otaylor@redhat.com>
2766 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
2767 Call cairo_surface_finish()
2769 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2770 _gdk_windowing_set_surface_device_offset().
2772 2005-03-18 Tor Lillqvist <tml@novell.com>
2774 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2775 WM_MOUSEMOVE, don't check if this process owns the active
2776 window. This makes cross-application widget embedding work better.
2777 On WM_MOVE, don't bother checking for window visibility.
2779 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2780 unused variables. Add some casts to silence gcc.
2782 2005-02-24 Owen Taylor <otaylor@redhat.com>
2784 * gdk/gdkwindow.c: Use cairo_set_device_offset().
2786 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2787 gdk/win32/gdkpixmap-win32.c:
2788 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
2789 drawable. Add _gdk_drawable_win32_finish() to clean up resources
2790 when a drawable is destroyed.
2792 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2793 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
2794 acquire/release_dc when getting a DC to use with a GC or for
2795 blitting from a pixmap.
2797 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2799 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2800 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2803 * gdk/win32/gdkdrawable-win32.c: Remove
2804 gdk_draw_rectangle_alpha_libgtk_only()
2806 2005-03-17 Owen Taylor <otaylor@redhat.com>
2808 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2809 EXTEND_REPEAT on the stipple pattern.
2811 2005-03-17 Matthias Clasen <mclasen@redhat.com>
2813 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2814 in example in the docs. (#170611, Jianfei Wang)
2816 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2817 adjustment values on resize. (#170567, Tomislav Jonjic)
2819 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2820 if there is no cache. (#170652, Diego Gonzalez)
2822 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
2823 Make inline completion insert the prefix at the
2824 right spot. (#170146, Doug Quale)
2826 2005-03-17 Tor Lillqvist <tml@novell.com>
2828 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2830 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2832 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
2833 Typo fix in the docs.
2835 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
2836 Typo fix in the docs.
2838 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
2839 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
2840 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
2841 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
2842 (gtk_icon_view_set_column_spacing)
2843 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
2844 (gtk_icon_view_set_margin): Add docs.
2846 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
2849 2005-03-15 Owen Taylor <otaylor@redhat.com>
2851 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
2852 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2853 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2856 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2857 function to create_cairo_context()
2859 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2861 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2864 * tests/testcairo.c: Update for create_cairo_context()
2866 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2867 Reimplement in terms of Cairo, bypass the vtable entries.
2869 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2870 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2871 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2872 implementation of draw_trapezoids / draw_glyphs[_transformed].
2874 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2876 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2877 gdk_pango_context_get_for_screen() into the backend independent code.
2879 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2882 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2883 gdk_draw_rectangle_alpha_libgtk_only.
2885 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
2886 gdk_pixbuf_set_as_cairo_source()
2888 * gdk/gdk.symbols: Update
2890 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2891 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2893 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2894 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2895 radio button style for now to get something more scalable.
2897 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2898 antialiasing/dpi settings.
2900 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2902 * demos/gtk-demo/editable_cells.c: Also demonstrate
2903 GtkCellRenderer::editing-started and separators.
2905 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
2907 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2909 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2911 Make PLT-reduction work with gcc4, and don't include
2912 everything in gdkalias.h:
2914 * gdk/gdk.symbols: Group symbols by header and source file.
2915 * gdk/makegdkalias.pl: Protect definitions by the same
2916 preprocessor symbols used to guard the headers. Move
2917 the alias declarations to a separate file which is
2918 produced when calling makegdkalias.pl -def
2919 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2921 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2922 headers, include gdkaliasdef.c at the bottom.
2924 2005-03-16 Tor Lillqvist <tml@novell.com>
2926 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2927 debugging output only if asked for, not always.
2929 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2930 debugging printout instead of +%d+%d. Misc other additions and
2931 cosmetic improvements to debugging printouts. Use API_CALL() and
2932 GDI_CALL() macros in more places.
2934 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2935 gdk_window_move_resize): To detect child windows, check whether
2936 the real parent is not the desktop window, instead of relying on
2937 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2938 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2939 de facto child windows.
2941 * gdk/win32/gdkprivate-win32.h
2942 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2943 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2946 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2947 toplevel_window_type field.
2949 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2950 GDK on Win32, we can compare directly to _gdk_root instead of
2951 checking the window type.
2952 (gdk_window_reparent): When reparenting a child of the desktop
2953 clear out the window decorations. Correspondingly, when
2954 reparenting to the desktop, add decorations. As in the X11
2955 backend, save the window type of a toplevel window when
2956 reparenting, in case it is reparented back to toplevel.
2958 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2960 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2961 example for manually setting up a group of actions.
2963 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2964 Document that inline completion requires text-column to be set.
2965 (gtk_entry_completion_compute_prefix): Return NULL if text-column
2968 * gtk/gtkentry.c (check_completion_callback): Call
2969 gtk_entry_completion_complete() before inserting the prefix,
2970 otherwise the prefix may depend on (random) state of the
2973 2005-03-15 Anders Carlsson <andersca@imendio.com>
2975 * docs/iconcache.txt:
2978 * gtk/gtkiconcache.c: (find_image_offset),
2979 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2980 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2981 * gtk/gtkiconcache.h:
2982 Update to be able to fetch pixbuf data and icon metadata.
2984 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2985 (icon_info_ensure_scale_and_pixbuf):
2986 Use new cache functions.
2988 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2989 (maybe_cache_image_data), (scan_directory), (write_pixdata),
2990 (get_image_meta_data_size), (get_image_pixel_data_size),
2991 (get_image_data_size), (get_single_node_size), (get_bucket_size),
2992 (write_bucket), (main):
2993 Update to write pixbuf data as well as information from .icon
2996 2005-03-15 Tor Lillqvist <tml@novell.com>
2998 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2999 debugging function. As GetKeyNameText() returns a localized key
3000 name we need to convert it to UTF-8.
3002 * gdk/win32/gdkprivate-win32.h: Declare it.
3004 * gdk/win32/gdkevents-win32.c: Use it.
3006 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
3007 handling of children of foreign windows. They should be child
3008 windows from Windows's perspective, even if they are toplevel GDK
3011 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
3013 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
3014 for big window support. Now also the test in testgtk works.
3016 2005-03-11 Matthias Clasen <mclasen@redhat.com>
3018 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
3019 style changes. (#169334, Yury Puzis)
3021 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
3022 the doc comments. (#169967, Masao Mutoh)
3024 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
3026 Big window fix for Win32. Big windows are still emulated within
3027 16-bit coordinate limits, though. Big windows now work on NT-based
3030 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
3033 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
3035 * gdk/win32/gdkwindow-win32.c: Minor related changes.
3037 2005-03-10 Matthias Clasen <mclasen@redhat.com>
3039 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
3040 Fix a doc typo. (#169873, Johan Dahlin)
3042 * gtk/gtkdialog.c (gtk_dialog_map): Don't
3043 try to focus the default_widget if there is
3044 none. (#169881, Thomas Leonard)
3046 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
3048 * configure.in: Remove inadvertent gail references, require
3051 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3053 * configure.in: Require GLib 2.7.0
3055 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3057 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
3058 (#169728, Morten Welinder, Owen Taylor)
3060 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
3061 in the docs. (#169729, Morten Welinder)
3063 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
3065 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
3066 when the model is unset. (#169528, Tomislav Jonjic)
3068 2005-03-09 Matthias Clasen <mclasen@redhat.com>
3070 * gtk/gtkviewport.c (gtk_viewport_class_init):
3071 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
3072 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
3073 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
3074 * gtk/gtktext.c (gtk_text_class_init):
3075 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
3076 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
3077 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
3078 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
3079 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
3080 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
3081 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
3082 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
3083 * gtk/gtkimage.c (gtk_image_class_init):
3084 * gtk/gtkruler.c (gtk_ruler_class_init):
3085 * gtk/gtkiconview.c (gtk_icon_view_class_init):
3086 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
3087 * gtk/gtkprogress.c (gtk_progress_class_init):
3088 * gtk/gtkmenu.c (gtk_menu_class_init):
3089 * gtk/gtkscale.c (gtk_scale_class_init):
3090 * gtk/gtkpaned.c (gtk_paned_class_init):
3091 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
3092 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
3093 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
3094 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
3095 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3096 * gtk/gtkcurve.c (gtk_curve_class_init):
3097 * gtk/gtkcombo.c (gtk_combo_class_init):
3098 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
3099 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
3100 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
3101 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
3102 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
3103 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
3104 * gtk/gtkcellview.c (gtk_cell_view_class_init):
3105 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
3106 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
3107 * gtk/gtkclist.c (gtk_clist_class_init):
3108 * gtk/gtkctree.c (gtk_ctree_class_init):
3109 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
3110 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
3111 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
3112 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
3113 * gtk/gtkcalendar.c (gtk_calendar_class_init):
3114 * gtk/gtkbbox.c (gtk_button_box_class_init):
3115 * gtk/gtktable.c (gtk_table_class_init):
3116 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
3117 * gtk/gtkframe.c (gtk_frame_class_init):
3118 * gtk/gtkaction.c (gtk_action_class_init):
3119 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
3120 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
3121 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
3123 2005-03-08 Matthias Clasen <mclasen@redhat.com>
3125 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
3126 * gtk/gtkrange.c (gtk_range_class_init):
3127 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
3128 * gtk/gtktexttag.c (gtk_text_tag_class_init):
3129 * gtk/gtktextview.c (gtk_text_view_class_init):
3130 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
3131 * gtk/gtknotebook.c (gtk_notebook_class_init):
3132 * gtk/gtkentry.c (gtk_entry_class_init):
3133 * gtk/gtkexpander.c (gtk_expander_class_init):
3134 * gtk/gtkarrow.c (gtk_arrow_class_init):
3135 * gtk/gtkalignment.c (gtk_alignment_class_init):
3136 * gtk/gtkbutton.c (gtk_button_class_init):
3137 * gtk/gtklabel.c (gtk_label_class_init):
3138 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
3139 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3140 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
3141 * gtk/gtktreeview.c (gtk_tree_view_class_init):
3142 * gtk/gtkbox.c (gtk_box_class_init):
3143 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
3144 * gtk/gtkcontainer.c (gtk_container_class_init):
3145 * gtk/gtkwidget.c (gtk_widget_class_init):
3146 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
3147 when registering param specs.
3149 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
3150 (#169607, Mark McLoughlin)
3152 * gtk/gtk.symbols: Add the new attributes here, too.
3155 * gtk/gtktreeview.h:
3156 * gtk/gtktreeviewcolumn.h:
3157 * gtk/gtktextbuffer.h:
3159 * gtk/gtkfilechooserdialog.h:
3161 * gtk/gtkcontainer.h:
3162 * gtk/gtkcelllayout.h:
3163 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
3164 appropriate. (#165682, Marc Meissner)
3166 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3168 Convert the gdk keyval-keyname tables to a big string
3169 + offsets. (#168901)
3171 * gdk/gen-keyname-table.pl: Perl script inspired by
3172 pango/tools/gen-color-table.pl to create the
3173 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
3174 of offsets pointing into a big const string.
3176 * gdk/keynames.txt: List of keyval-keyname pairs.
3177 * gdk/keyname-table.h: Generated tables.
3179 * gdk/gdkkeynames.c: Include keyname-table.h and don't
3180 generate the inverse table at runtime.
3182 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3184 * gtk/gtkstyle.c: Document which parameters may be NULL.
3185 (#166855, Frank Naumann)
3187 2005-03-07 Matthias Clasen <mclasen@redhat.com>
3189 * AUTHORS: Add original authors of incorporated software.
3191 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
3193 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
3195 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3197 * gtk/gtksettings.c (gtk_settings_get_property):
3198 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
3199 the values here. (#169047, Philip Langdale)
3201 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3202 Don't warn if a stock icon cannot be found. (#168830,
3205 2005-03-03 Matthias Clasen <mclasen@redhat.com>
3207 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
3208 Avoid warnings if gtk_widget_reparent() is called at
3209 unusual times. (#168966, Christian Persch)
3211 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
3213 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
3214 const warnings on data structure seeding.
3216 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
3218 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
3220 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3222 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
3223 Fix prelighting. (#157392, Vincent Noel, patch by
3226 * gtk/gtkicontheme.c (theme_lookup_icon): Make
3227 icon data caching work again. (#168851, Alexander Larsson)
3229 * gdk-pixbuf/gdk-pixbuf.c:
3230 * gdk-pixbuf/gdk-pixbuf-features.h.in:
3231 Revert the previous change, since it breaks
3234 2005-03-01 Matthias Clasen <mclasen@redhat.com>
3237 * gdk/gdkpixbuf-drawable.c
3239 * gdk/x11/gdkdnd-x11.c
3240 * gdk/x11/gdkevents-x11.c
3241 * gdk/x11/gdkproperty-x11.c
3242 * gdk/x11/gdkvisual-x11.c
3243 * gdk-pixbuf/gdk-pixbuf.c
3244 * gdk-pixbuf/gdk-pixbuf-features.h.in
3247 * gtk/gtkcolorbutton.c
3249 * gtk/gtkcontainer.c
3250 * gtk/gtkfilechooserdefault.c
3254 * gtk/gtkinputdialog.c
3255 * gtk/gtkitemfactory.c
3259 * gtk/gtktreedatalist.c
3260 * gtk/gtkuimanager.c
3261 * gtk/tree_minus.xpm
3263 * gtk/xdgmime/xdgmime.c
3264 * gtk/xdgmime/xdgmime.h:
3265 Move constant data to .rodata.
3267 2005-02-27 Matthias Clasen <mclasen@redhat.com>
3269 * gtk/gtkaction.c (connect_proxy): Improve the handling
3270 of buttons as action proxys. (#165534, Milosz Derezynski)
3272 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
3273 (#168646, Vincent Untz)
3275 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
3276 Unset "focus-on-click" for the save folder combo. (#168688,
3279 2005-02-25 Matthias Clasen <mclasen@redhat.com>
3281 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
3284 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
3285 path here. (#168443, Morten Welinder)
3287 2005-02-24 Robert Ögren <gtk@roboros.com>
3289 Implement better handling of Wintab tablet context overlap on
3292 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
3293 function that brings any tablet contexts to the top of the overlap
3295 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
3296 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3297 Call _gdk_input_set_tablet_active when a window is activated (on
3300 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3302 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
3303 Don't leak parent_path. (#168435, Morten Welinder)
3305 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
3307 * gtk/gtkstyle.c: Add
3309 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
3313 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3315 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
3316 (gtk_combo_box_model_row_deleted): Update the displayed row in
3317 the cell_view. (#167842, Gustavo Carneiro)
3319 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3321 Fix #167259, reported by Christian Persch:
3323 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
3324 widget, even if we avoid the unrealizing.
3325 (gtk_widget_reparent_subwindows): Make reparenting work for
3326 !NO_WINDOW widgets which have other windows which are siblings
3327 of widget->window (as e.g. GtkSpinButton).
3329 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3331 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
3332 Don't emit a warning if a parent node is filtered out. (#164726,
3335 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3337 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
3338 change, since gtk_widget_set_style_internal() already
3341 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3343 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
3344 fonts may have changed. (#164128, Phil Blundell)
3346 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
3347 (gtk_about_dialog_new): Move initialization code from _new to
3348 _init. (#168249, Murray Cumming)
3350 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
3352 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
3353 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
3356 2005-02-23 Tor Lillqvist <tml@novell.com>
3358 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
3359 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
3361 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
3363 * gtk/updateiconcache.c: #include <config.h>
3365 2005-02-22 Federico Mena Quintero <federico@ximian.com>
3367 Merged from gtk-2-6:
3369 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
3371 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
3372 (gdk_rgb_convert_565_d): Likewise.
3373 (DM_565): Made a static const precomputed array to avoid
3374 allocating it at runtime.
3375 (gdk_rgb_preprocess_dm_565): #ifdef out.
3377 2005-02-20 Matthias Clasen <mclasen@redhat.com>
3380 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
3381 in the documentation.
3383 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3384 Set have_render_with_trapezoids to GDK_YES when we have
3385 a new enough Render extension. (#167965,Billy Biggs)
3387 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
3388 the last user interaction when focusing the window. (#166379,
3391 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
3393 * gtk/gtkuimanager.c (start_element_handler): make sure expand
3394 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
3396 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
3398 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
3400 2005-02-16 Matthias Clasen <mclasen@redhat.com>
3402 * docs/iconcache.txt: Add some information about the
3403 icon cache format (since I can't locate it at freedesktop.org)
3405 Fixes for #143829, Tommi Komulainen, Christian Persch:
3407 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
3408 typeselect_flush_timeout when destroying the widgets
3410 (gtk_tree_view_ensure_interactive_directory): Add the
3411 popup to the window group of the toplevel it belongs to.
3413 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
3414 (gtk_combo_box_popup): Do the same here.
3416 2005-02-14 Matthias Clasen <mclasen@redhat.com>
3418 * configure.in: Kill --enable-ansi (#164394)
3420 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3422 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
3423 when the pathbar goes away. (#167094, Rodney Dawes)
3424 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
3427 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3429 Support vertical menubars (#166632):
3431 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
3432 directions, with values for left-to-right, right-to-left,
3433 top-to-bottom and bottom-to-top.
3437 * gtk/gtkmenubar.c: Add two properties, pack-direction and
3438 child-pack-direction, which specify how children and
3439 grandchildren of a menubar are packed, with getters and setters.
3441 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
3442 (gtk_menu_bar_get_property): Implement set_property and get_property.
3444 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
3445 (gtk_menu_bar_size_allocate): Take pack direction into account.
3447 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
3448 move_current here move all the menubar-specific direction
3449 tweaking from the generic menushell implementation here.
3451 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
3452 direction tweaking from the generic menushell implementation here.
3454 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
3455 (gtk_menu_bar_size_allocate): Take pack direction into account.
3457 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
3458 (gtk_image_menu_item_size_allocate):
3459 (gtk_image_menu_item_toggle_size_request): Take child pack
3460 direction into account and pack the image vertically if
3463 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
3464 Set the submenu direction to left-right for menuitems in
3466 (gtk_real_menu_shell_move_current): Simplify by moving
3467 direction tweaking to menu- and menubar-specific
3468 implementations. Take pack direction into account when
3471 * tests/testmenubars.c: Test menubars in various packing
3472 direction combinations.
3474 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
3476 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3478 Complete the fix for #165770, Vincent Noel:
3480 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
3481 fallback size be 16, to be equal to the default for
3482 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3483 (gtk_file_chooser_button_init):
3484 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3485 GTK_ICON_SIZE_SMALL_TOOLBAR.
3487 2005-02-09 Matthias Clasen <mclasen@redhat.com>
3489 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
3490 keynav for going from menubar to menu.
3492 2005-02-08 Christian Rose <menthos@menthos.com>
3494 * configure.in: Added "xh" to ALL_LINGUAS.
3496 2005-02-08 Matthias Clasen <mclasen@redhat.com>
3498 * gtk/gtkuimanager.c (start_element_handler): Accept
3499 the "expand" attribute and set a flag in the node if it
3501 (update_node): If the expand flag is set, make separator
3502 toolitems non-drawn and expanding. (#166489, Christian Persch)
3504 2005-02-05 Hans Breuer <hans@breuer.org>
3506 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
3507 build with Cairo dependency. The patch to acually use Cairo
3508 on win32 will be on gtk-devel-list soon.
3509 * tests/makefile.msc : add testcairo building
3511 * gtk/stock-icons/makefile.msc : split command line into two to
3512 work with the shells default
3514 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
3516 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
3519 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3520 Add some extra parens for bitop order of operations disambiguiation.
3522 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
3523 domain when setting a translate function.
3525 * tests/testcombo.c: removed unused variable.
3527 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3529 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
3530 being NULL. (#166179, Diego Gonzalez)
3532 2005-02-04 Owen Taylor <otaylor@redhat.com>
3534 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
3535 up comment to talk only about backwards compat, not
3536 forward/backwards compat. (#166293, reported by Vincent Noel)
3538 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3540 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
3541 when there is not enough space. This avoids a nasty size
3542 allocation loop in the file chooser. (#154007, reported
3543 by Milosz Derezynski, patch by Robert Ögren)
3545 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3547 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
3548 selection of RTL direction if the widget does not have
3549 focus. (#164125, Frederic Crozat)
3551 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
3553 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
3555 2005-02-03 Owen Taylor <otaylor@redhat.com>
3557 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
3558 gdk_drawable_set_cairo_target().
3560 * tests/testtreeflow.c (enum): Use grand not rand as a variable
3561 name because one of the cairo headers is pulling in stdlib.h.
3563 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
3566 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
3568 * Require libpangocairo for all backends.
3570 2005-02-03 Tor Lillqvist <tml@novell.com>
3572 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
3573 wide character version of ImmGetCompositionString() here,
3574 too. (#165278, Takuro Ashie)
3576 2005-02-03 Matthias Clasen <mclasen@redhat.com>
3578 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
3579 one roundtrip per motion event. (#166173, pointed out
3580 by Chris Lee, patch by Søren Sandmann)
3584 * gtk/gtkstock.c (gtk_stock_set_translate_func):
3585 New function which allows to change the function used for
3586 translation stock labels, on a per-domain basis. Use this
3587 functionality to switch the GTK+ stock items to use Q_()
3588 prefixed msgids. (#166179, Funda Wang)
3590 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
3593 2005-02-02 Federico Mena Quintero <federico@ximian.com>
3595 Merged from gtk-2-6:
3597 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3598 Don't select the first row if the chooser is not mapped. This
3599 happens when it's acting on behalf of GtkFileChooserButton. Also,
3600 don't select the first row if we are in SAVE or CREATE_FOLDER
3601 modes --- I had missed that (see the ChangeLog entry from
3602 2005-01-18). Fixes #165264.
3604 2005-02-02 Tor Lillqvist <tml@novell.com>
3606 Implement lazy extended input initialization on Win32, by Robert
3607 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
3608 be a good idea in any case even if it didn't fix any visible
3611 The Wacom tablet driver seems to get confused if Wintab is
3612 initialized but no window is shown before the process exits. This
3613 is the case for some GIMP plug-ins, for instance.
3615 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
3616 non-static (and renamed).
3617 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
3619 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
3621 * gdk/win32/gdkinput.c (gdk_devices_list,
3622 gdk_display_list_devices, gdk_input_set_extension_events): Call
3623 _gdk_input_wintab_init_check() here instead.
3625 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
3627 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
3628 of a single window so that gtk_clipboard_request_contents() can be
3629 called inside a GtkClipboardReceivedFunc(). (#163844)
3631 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3633 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
3634 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
3636 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
3637 to NULL after freeing it. (#165800, Damon Chaplin)
3639 2005-02-01 Michael Natterer <mitch@gimp.org>
3641 * configure.in: depend on stable pango-1.8, not unstable 1.7
3643 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3645 Merged from gtk-2-6:
3647 * gtk/gtkfilechooserdefault.c
3648 (browse_files_model_finished_loading_cb): Don't
3649 g_assert_not_reached() if we are in any other state. Another code
3650 path may have triggered a folder reload. Fixes #165556.
3652 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3654 Merged from gtk-2-6:
3658 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3659 fallback size be 16, to be equal to the default for
3660 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3661 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3662 GTK_ICON_SIZE_SMALL_TOOLBAR.
3664 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3666 * */*.c: Fix many instances of "the the" in docs and
3667 comments. (#165815, Masao Mutoh)
3669 * gtk/updateiconcache.c (main): Add a --quiet option.
3671 2005-02-01 Tor Lillqvist <tml@novell.com>
3673 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3674 reset_after_dead, handle_dead): New functions, code blocks
3675 refactored out of update_keymap(). No functionality change.
3677 (update_keymap): Use ToUnicodeEx() when available (on NT-based
3678 Windows) instead of ToAsciiEx(). Makes keyboard input work in
3679 Unicode-only input locales that don't have any ANSI codepage, for
3680 instance Hindi and Bengali. Use _gdk_input_codepage only on
3683 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3684 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3685 TranslateCharsetInfo() to get the input locale's corresponding
3688 2005-01-31 Matthias Clasen <mclasen@redhat.com>
3690 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
3691 NULL-terminated va lists. (#165683)
3693 2005-01-29 Matthias Clasen <mclasen@redhat.com>
3695 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
3696 Typo fix. (#165581, Masao Mutoh)
3698 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
3700 * README.cvs-commits: update ancient IRC info.
3702 2005-01-27 Federico Mena Quintero <federico@ximian.com>
3704 Merged from gtk-2-6:
3706 * gtk/gtkfilechooserdefault.c
3707 (gtk_file_chooser_default_select_path): Oops, don't assert that we
3708 can't reach the end of the function; this happens if we are still
3709 loading but don't need a path change. Fixes #165213.
3711 2005-01-27 Matthias Clasen <mclasen@redhat.com>
3713 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3714 Make wrapping work in RTL mode.
3716 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3717 obey HIG spacing a bit more, add a hand cursor when over the
3718 link button. (#163979, Jorn Baayen)
3720 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3722 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3723 Don't allow -1 as minimum-key-length.
3724 (gtk_entry_completion_set_model): Add missing notification.
3725 (gtk_entry_completion_set_minimum_key_length): Add missing
3726 notification, allow setting minimum-key-length to 0. (#165194,
3729 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3731 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3732 the license dialog is initially displayed without a horizontal
3734 (gtk_about_dialog_class_init): Document the fact that the
3735 license text is not wrapped. (#165012, Christian Rose)
3737 2005-01-25 Matthias Clasen <mclasen@redhat.com>
3739 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
3742 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
3743 docs. (#165163, Jeff Franks)
3745 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3746 for a string GValue. (#165203, Damon Chaplin)
3748 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3750 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
3751 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
3754 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3756 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3758 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3760 Merged from gtk-2-6:
3762 Fix #147785 and clean up the loading code:
3764 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3765 be EMPTY, PRELOAD, LOADING, FINISHED.
3766 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3767 (struct _GtkFileChooserDefault): Added a pending_select_paths
3769 (load_remove_timer): Add the new states.
3770 (load_setup_timer): Likewise.
3771 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
3772 (browse_files_model_finished_loading_cb): Switch to the
3773 LOAD_FINISHED state.
3774 (enum PendingOp): Removed.
3775 (struct _GtkFileChooserDefault): Removed the pending_op and
3776 pending_select_path fields.
3777 (pending_select_paths_free): New utility function.
3778 (pending_select_paths_add): New utility function.
3779 (gtk_file_chooser_default_finalize): Call
3780 pending_select_paths_free().
3781 (pending_op_queue): Removed.
3782 (pending_op_process): Removed.
3783 (pending_select_paths_process): New function.
3784 (browse_files_model_finished_loading_cb): Call
3785 pending_select_paths_process().
3786 (center_selected_row_foreach_cb): Handle multiple selection by
3787 only centering the first row.
3788 (get_is_file_filtered): Constify.
3789 (gtk_file_chooser_default_select_path): Queue into a list of paths
3790 to select if we are not finished loading.
3791 (show_and_select_paths): New utility function.
3792 (up_folder_handler): Use pending_select_paths_add().
3793 (gtk_file_chooser_default_should_respond): Do not call
3794 pending_op_queue(); free the pending_selected_paths instead.
3795 (gtk_file_chooser_default_initial_focus): Don't queue a pending
3796 operation, and don't select the first row unconditionally --- this
3797 will happen when the folder is done loading.
3798 (shortcuts_row_activated_cb): Free the pending_select_paths.
3799 (pending_select_paths_store_selection): New utility function.
3800 (gtk_file_chooser_default_map): Call
3801 pending_select_paths_store_selection() to save the selection
3802 before reloading the folder.
3803 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
3804 move the cursor here; it will be done when processing the pending paths.
3806 * tests/testfilechooser.c (main): Add a button to the command
3807 window to unmap and remap the file chooser.
3809 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3811 * docs/tutorial/gtk-tut.sgml:
3812 * docs/tutorial/gtk_tut.sgml:
3813 * docs/reference/gtk/tmpl/gtkliststore.sgml:
3814 * gtk/gtkactiongroup.c:
3815 * gtk/gtksizegroup.c:
3816 * gtk/gtksizegroup.h:
3817 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3818 appropriate. (#165108, Dan Winship)
3820 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3822 * gtk/gtkwidget.c (gtk_widget_class_init): Document
3823 GtkWidget::style-set. (#164222, Alex Graveley)
3825 2005-01-22 Matthias Clasen <mclasen@redhat.com>
3827 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
3828 Remove the accidentally added prototype for this unimplemented
3829 function. (#164893, Jeff Franks)
3831 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3834 2005-01-23 Tor Lillqvist <tml@novell.com>
3836 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3837 dead accent key. (#164859, reported and fix verified by Daniel
3840 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3841 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3844 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
3845 Don't call GetVolumeInformation() for network drives. They might
3846 be disconnected, and calling GetVolumeInformation() will then
3847 cause long delays. (#164448, reported by Dave Neary.) It seems to
3848 be very hard to reliably find out whether a network drive is
3849 connected or not, so it's easier to just not try getting the
3850 volume name for them. See the bug report for discussion.
3852 Make volume name display formats translatable.
3854 Fix for #163702, from Ivan Wong:
3856 * gdk/win32/gdkprivate-win32.h
3857 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3859 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3860 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3861 GDK_SELECTION_CLEAR event.
3863 * gdk/win32/gdkselection-win32.c
3864 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3865 when emptying the clipboard ourselves.
3867 (gdk_selection_send_notify_for_display): Remove the artifical
3868 GDK_SELECTION_CLEAR event generation.
3870 2005-01-21 Matthias Clasen <mclasen@redhat.com>
3872 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3873 provided by Bill Haneman.
3875 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3877 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
3880 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3881 here, even if the only focusable widgets are labels.
3883 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3885 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3887 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
3888 Add a follow-state property which when TRUE causes the pixbuf
3889 to be tinted according to state.
3891 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3892 Use follow-state and colorize the pixbuf when appropriate.
3894 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3896 Support wrapping in GtkCellRendererText (#163608):
3898 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3899 Add wrap-mode and wrap-width properties which cause a
3900 text cell to break to a specified width when set.
3902 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3903 and wrap-width when they are set.
3905 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3907 * gtk/gtkmodules.c (load_module): Don't reverse the order
3908 of modules when putting them in gtk_modules. (#162676, Dennis
3909 Cranston, patch by Remus Draica)
3911 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
3912 if the tree is empty. (#164669, Priit Laes)
3914 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
3916 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3917 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3920 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
3922 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3923 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3925 2005-01-19 Tor Lillqvist <tml@novell.com>
3927 * gdk/win32/gdkkeys-win32.c (update_keymap,
3928 gdk_keymap_translate_keyboard_state): Handle keyboards with
3929 ShiftLock (and not CapsLock) correctly. (#161814)
3931 2005-01-19 Matthias Clasen <mclasen@redhat.com>
3933 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3934 In save mode, don't return paths containing nonexisting
3935 directories. (#162443, Jean Marie Favreau)
3937 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
3938 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3940 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3943 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
3944 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
3948 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
3949 Add a function to obtain the last user interaction
3950 time. (#163119, Elijah Newren)
3952 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
3954 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3957 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
3959 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3960 disambiguate nested if/else.
3962 2005-01-18 Federico Mena Quintero <federico@ximian.com>
3964 Merged from gtk-2-6:
3966 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3967 operation to select the first file if we are in SAVE or
3968 CREATE_FOLDER modes. Executing that operation would overwrite the
3969 contents of the save-name entry.
3971 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3974 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
3975 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3976 pointer warping to GDK. (#160437)
3978 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3980 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3982 * gtk/gtkstyle.c (gtk_default_draw_check)
3983 (gtk_default_draw_option, gtk_default_draw_handle): Add some
3984 more NULL checks, patch by Michael Natterer.
3986 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
3988 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3991 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3992 NULL widget. (#164477, Michael Natterer)
3994 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3996 Avoid X errors when running against servers which
3997 implement XRender < 0.4. (#164427, Albert Chin)
3999 * gdk/x11/gdkprivate-x11.h:
4000 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
4001 New function to check for trapezoid support in XRender.
4002 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
4005 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
4006 separate have_render_with_trapezoids field.
4008 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
4010 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4012 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
4014 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
4016 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
4019 2005-01-17 Matthias Clasen <mclasen@redhat.com>
4021 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
4022 and restore the selected row in the bookmark list and the
4023 save folder combo. (#164290)
4025 2005-01-16 Matthias Clasen <mclasen@redhat.com>
4027 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
4028 Fix argument order in docs.
4030 2005-01-15 Matthias Clasen <mclasen@redhat.com>
4032 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
4033 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
4034 if the keymap is neutral. (#164125, Phil Blundell)
4036 2005-01-14 Matthias Clasen <mclasen@redhat.com>
4038 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
4039 reset the property to its default value -1.
4040 (gtk_tree_view_get_search_column): Return the default value in
4041 the g_return_val_if_fail() check. (#163864, Richard Hult)
4043 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
4044 Add a translator hint. (#163889)
4046 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
4047 is an enum value, not a define. Pointed out by Tommi Komulainen.
4048 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
4050 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4052 * configure.in: Check for nl_langinfo()
4053 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
4054 available to determine first day of week (#163842, Vincent Untz)
4056 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
4057 the lifecycle of widgets. (#159503, Christian Persch)
4059 * demos/gtk-demo/main.c (create_text): Use monospace for the
4060 source code view. (#163526, Theerud Lawtrakul)
4062 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
4063 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
4066 * configure.in: Add an OS_LINUX conditional.
4068 * gdk/Makefile.am (TESTS):
4069 * gdk-pixbuf/Makefile.am (TESTS):
4070 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
4073 2005-01-13 Matthias Clasen <mclasen@redhat.com>
4075 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4076 (gtk_tree_view_set_headers_clickable): Make the headers-visible
4077 property readwrite instead of just writable, and remove the
4078 g_return_if_fail check that there is a model when setting this
4079 property. Also improve the blurb. (#163851, Richard Hult)
4081 2005-01-12 Owen Taylor <otaylor@redhat.com>
4083 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
4084 initialization of gdktarget, that was causing it to be
4085 evaluated before host was set. Simplify --with-gdktarget help
4088 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
4089 which doesn't work with slightly older versions of GNU grep
4090 in install-libtool-import-lib rule.
4092 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
4094 Fix for #162790, by Iwan Wong:
4096 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
4097 correctly. Simplify the interface to render_line_horizontal() and
4098 render_line_vertical(). Need to draw lines "manually" also on
4099 NT-based Windowses if we have a dash offset or are drawing
4100 double-dashed lines.
4102 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
4103 double-dash flag, and a brush for the background colour (used by
4104 the odd dashes in the double-dash line style) in the GdkGCWin32
4107 * gdk/win32/gdkgc-win32.c: Set up above new fields.
4109 2005-01-10 Federico Mena Quintero <federico@ximian.com>
4113 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
4114 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
4115 (gtk_file_system_unix_get_folder): Make error reporting more
4116 accurate. Don't bail out if we can't read the directory.
4117 (fill_in_stats): Don't return an error; just assume we don't have
4118 stat info for this folder's files.
4119 (fill_in_names): Don't create the hash table for the names if we
4120 can't open the directory.
4121 (gtk_file_folder_unix_list_children): Don't emit the
4122 "finished-loading" signal --- we don't do asynchronous loads, so
4123 we are always finished loading.
4124 (gtk_file_folder_unix_get_info): Use helper functions; handle the
4125 case where we can't stat '/'.
4126 (get_icon_type_from_path): Don't call fill_in_stats() here; only
4127 use the info we have.
4128 (fill_in_mime_type): Don't return an error. Don't do anything if
4129 we don't have the stat info.
4131 2005-01-10 Owen Taylor <otaylor@redhat.com>
4133 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
4136 2005-01-10 Matthias Clasen <mclasen@redhat.com>
4138 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
4139 signals. (#163319, Murray Cumming)
4141 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
4143 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
4144 cursor also when changing the cursor of a window that is the first
4145 ancestor of the window containing the pointer that has a cursor
4146 defined. (#163035, Ivan Wong)
4148 2005-01-09 Anders Carlsson <andersca@gnome.org>
4150 * gtk/gtkcellrenderertext.c: (get_size):
4151 * gtk/gtklabel.c: (gtk_label_size_request):
4152 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
4153 Don't pass NULL to pango_context_get_metrics. Use
4154 pango_context_get_language instead, which is way faster.
4156 2005-01-08 Matthias Clasen <mclasen@redhat.com>
4158 * configure.in: Bump version
4160 * === Released 2.6.1 ===
4162 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
4164 2005-01-07 Tor Lillqvist <tml@iki.fi>
4166 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
4167 Fix braino. (#163232, Arnaud Charlet)
4169 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4171 * gtk/gtkiconview.c: Make markup_column work, and fix some
4172 layout issues when either icon or text is missing. (#163065)
4174 2005-01-06 Federico Mena Quintero <federico@ximian.com>
4176 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
4177 "Open _Location" item. Fixes #148839.
4179 2005-01-06 Matthias Clasen <mclasen@redhat.com>
4181 * README.in: Fix a typo. (#163128, kentaro fukuchi)
4183 2005-01-06 James M. Cape <jcape@ignore-your.tv>
4185 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
4186 (gtk_file_chooser_button_new_with_backend): Use default title if
4189 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
4192 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4196 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
4197 a pending operation to select the first row.
4199 2005-01-05 Federico Mena Quintero <federico@ximian.com>
4201 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
4202 button_data_free() explicitly; the button is weak-reffed and the
4203 callback will free the button data. Fixes #163010.
4204 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
4205 failure case, call gtk_widget_destroy() on it.
4207 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
4208 gtk_file_system_get_folder() again (see the ChangeLog entry from
4209 2004-08-25). We can't first get the parent folder and then
4210 request the info for the path in question, as the parent folder
4211 may not be readable. See bug #162617.
4212 (gtk_file_chooser_default_set_current_folder): Assert that the
4213 passed-in path is not null.
4214 (shortcuts_find_current_folder): Likewise.
4215 (shortcuts_add_current_folder): Likewise.
4216 (set_list_model): Likewise.
4217 (gtk_file_chooser_default_map): Only reload the current folder if
4219 (bookmarks_check_add_sensitivity): Check for the current folder
4221 (browse_files_select_first_row): Don't set the cursor if there is
4224 2005-01-05 Matthias Clasen <mclasen@redhat.com>
4226 * gtk/gtkfilechooserdefault.c: Don't construct errors from
4227 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
4228 (get_file_info, check_is_folder): Translate errors from
4229 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
4230 of the fix for #162911, noticed by Murray Cumming.
4232 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
4234 * gtk/gtkviewport.c (gtk_viewport_realize):
4235 * gtk/gtktextview.c ((text_window_realize): Set the background of
4236 the windows to None instead of adding EXPOSURE_MASK, as suggested
4239 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
4240 the user time when receiving a WM_DELETE message. (#162980,
4243 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
4245 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
4246 only reorder on button 1, part of #141937
4248 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
4252 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
4253 to win->window's event_mask
4255 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
4256 to viewport->view_window.
4258 2005-01-04 Matthias Clasen <mclasen@redhat.com>
4260 * demos/testpixbuf.c (main): Remove the size_prepared callback,
4261 to test incremental display.
4262 (new_testrgb_window): Return the drawing area, not the window,
4263 since we want to queue draws on the drawing area.
4265 2005-01-03 Matthias Clasen <mclasen@redhat.com>
4267 * examples/*: Re-extract.
4269 * docs/tutorial/gtk-tut.sgml: Small corrections.
4271 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
4272 section. (#161414, Robert Ancell)
4274 * docs/tutorial/gtk-tut.sgml: Make it build.
4276 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
4277 regarding modality. (#112903, Dave Bordoley)
4279 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
4280 Add a little motivation. (#145556, Tommi Komulainen)
4282 * docs/tutorial/gtk-tut.sgml: Clarify section on
4283 g_signal_connect_swapped. (#120543, David Bourguignon)
4285 Make gtk_icon_theme_load_icon() work independent of
4286 icon factory initialization. (#162791, Tristan Van Berkom)
4288 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
4289 _gtk_icon_factory_ensure_default_icons, and make it non-static.
4291 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
4293 2005-01-02 Matthias Clasen <mclasen@redhat.com>
4295 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
4296 Don't add a shortcut here. (#162752, Tor Lillqvist)
4298 2005-01-02 Tor Lillqvist <tml@iki.fi>
4300 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
4301 CoTaskMemFree in get_special_folder() below.
4303 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
4304 Win32 using _gtk_file_system_win32_path_compare().
4306 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
4308 * gtk/gtkfilechooserbutton.c (model_add_special)
4309 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
4310 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
4313 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
4314 consider all drives "mounted", including floppies. Trying to
4315 inspect the contents of a nonexistent floppy will cause errors
4316 later that are handled normally, no need to avoid them
4317 completely. Keep the drive type in the GtkFileSystemVolume.
4318 Support UNC paths. (#161797, #137874) Fix error message
4319 capitalizations as in gtkfilesystemunix.c.
4321 (gtk_file_system_win32_init): Start one timeout per
4324 (gtk_file_system_win32_finalize): Remove the timeout.
4326 (get_special_folder): Copied from GLib.
4328 (_gtk_file_system_win32_get_desktop): New function, uses
4329 get_special_folder().
4331 (gtk_file_system_win32_list_volumes): Don't start a timeout at
4332 each call to this function. Don't assume A: and B: are floppies.
4334 (gtk_file_system_win32_get_volume_for_path): Don't assume all
4335 volumes are drive roots, i.e. support share roots of UNC paths
4338 (gtk_file_system_win32_get_folder): Don't assume errno is set
4339 after g_file_test() returns FALSE. It isn't on Win32 (and even on
4340 Unix I don't think one should assume anything about errno after
4343 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
4345 (gtk_file_system_win32_volume_get_display_name): Don't call
4346 GetVolumeInformation() on drives A: or B: if they are removable,
4347 as they might then be floppies, causing an unnecessary
4350 (gtk_file_system_win32_volume_render_icon): Use network icon for
4351 unrecognized drive types.
4353 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
4354 confused by UNC paths.
4356 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
4357 for case-insensitive UTF-8 path comparison.
4359 (extract_icon): Use SHGetFileInfo() which is faster than
4360 ExtractAssociatedIcon(). Icon extraction is still slow, though,
4363 (win32_pseudo_mime_lookup): Don't use the same icon for all
4364 shortcuts or executables. Cache only other file type icons.
4366 (gtk_file_system_win32_render_icon): Use network stock icon for
4367 remote drives and UNC server share roots. Compare home directory
4368 case-insensitively. Do lookup icons also for executable files,
4369 after all, it's these files that can have individual icons in the
4370 first place. Yes, it can be slow. Needs work.
4372 (filename_is_drive_root): Require also the slash after the colon.
4374 (filename_is_server_share): New function.
4376 (_gtk_file_system_win32_path_compare): New function, does
4377 case-folded UTF-8 comparison.
4379 * gtk/gtkfilesystemwin32.h: Declare
4380 _gtk_file_system_win32_path_compare().
4382 2005-01-01 Matthias Clasen <mclasen@redhat.com>
4384 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
4385 custom image by passing NULL.
4386 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
4387 a problem with changing stock labels. (#162273, Marcin
4390 2005-01-01 Tor Lillqvist <tml@iki.fi>
4392 * gtk/gtkmodules.c (get_module_path)
4393 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
4394 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
4395 g_getenv() now returning UTF-8 on Win32, no need to call
4398 2004-12-31 Matthias Clasen <mclasen@redhat.com>
4400 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
4401 (_gtk_key_hash_lookup): Don't sort a list of values as if
4402 it was a list of entries. This fixes crashes during mnemonic
4403 activation in the presence of multiple keymaps. (#162488,
4406 2004-12-30 Matthias Clasen <mclasen@redhat.com>
4408 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
4409 state propagation when making an insensitive combo box sensitive
4410 again. (#162524, Carlos Garnacho Parro)
4412 * gtk/gtkfilechooserdefault.c: Use secondary text for error
4415 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
4416 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
4417 for error messages. Also mark some error messages for translation,
4418 fix capitalization of error messages.
4420 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4421 Use g_value_get_boolean() for ellipsize_set. (#162447,
4424 2004-12-30 Tor Lillqvist <tml@iki.fi>
4426 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
4429 2004-12-28 Matthias Clasen <mclasen@redhat.com>
4431 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
4432 submenu direction from the parent menu.
4434 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
4435 Return a boolean indicating whether an item in the submenu
4437 (gtk_real_menu_shell_move_current): When going in child
4438 direction, don't get stuck at completely insensitive
4439 submenus. (#162055, Billy Biggs)
4441 2004-12-27 Matthias Clasen <mclasen@redhat.com>
4443 Make the clipboard image API more robust (#162357,
4444 Torsten Schoenfeld):
4446 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
4447 ref the pixbuf if it is NULL.
4449 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
4450 NULL-terminate the varargs in the call to
4451 gdk_pixbuf_save_to_buffer().
4452 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
4453 if there is data to load.
4455 2004-12-27 Matthias Clasen <mclasen@redhat.com>
4457 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
4458 Set x_root and y_root in button and motion events from
4459 extended input devices. (#148715, Robert Ögren)
4461 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
4462 typo. (#162339, Alessio Dessi)
4464 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
4465 properties as new since 2.4. (#156101, Billy Biggs)
4467 * configure.in: Add a warning about the linux-fb
4468 target. (#155488, Zeeshan Ali)
4470 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
4473 2004-12-26 Matthias Clasen <mclasen@redhat.com>
4475 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
4476 Typo fix. (#162219, Masao Mutoh)
4477 (gtk_file_chooser_set_preview_widget_active):
4478 Another typo. (#162218, Masao Mutoh)
4480 2004-12-23 Matthias Clasen <mclasen@redhat.com>
4482 * gtk/gtkliststore.c (gtk_list_store_iter_children):
4483 Return TRUE if there are children. (#162134, Iñigo Serna,
4484 patch by John Finlay)
4486 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
4487 Transfer state from the button to the cell view to get
4488 prelighting right. (#156327, Ricardo Veguilla)
4490 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
4492 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
4493 timeout. Written by Christian Persch.
4495 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
4499 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
4500 background for windows that get expose events.
4502 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
4503 hack to repaint !expose windows.
4505 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
4507 Bug #147497, make menu items activate immediately when you release
4510 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
4511 items activate immediately.
4513 * gtk/gtkmenu.c (definitely_within_item): New function
4514 * gtk/gtkmenu.c (check_threshold): New function
4516 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4518 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
4519 null the mnemonic_menu when unsetting a mnemonic, reported
4522 2004-12-21 Matthias Clasen <mclasen@redhat.com>
4524 * gtk/gtkliststore.c (generate_order): Generate the order the
4525 way it is supposed to be, order[new_pos] == old_pos.
4526 (gtk_list_store_reorder): Invert the order before using it.
4528 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4530 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
4532 * gtk/gtkliststore.c (generate_order): Generate the order the
4533 way it is supposed to be, order[new_pos] == old_pos.
4534 (gtk_list_store_reorder): Invert the order before using it.
4536 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
4539 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
4541 * gtk/queryimmodules.c (main): print out the version and binary
4542 name in the header comment. Problem reported by Seth Nickell.
4544 2004-12-20 Matthias Clasen <mclasen@redhat.com>
4546 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
4547 root path to gtk_tree_model_rows_reordered(). (#161720,
4548 Marcin Krzyzanowski)
4550 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
4551 translate NULL messages. (#161789, Morten Welinder)
4553 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
4554 the secondary label on show_all(). (#161707, Christian Persch)
4556 2004-12-19 Tor Lillqvist <tml@iki.fi>
4558 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
4559 Use wide character API when available. Use UTF-8 for filenames.
4561 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
4562 the string's trailing zero byte in the property's length, just for
4565 2004-12-18 Matthias Clasen <mclasen@redhat.com>
4567 * gtk/gtkfilechooserentry.c (check_completion_callback)
4568 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
4570 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
4571 (shortcuts_drag_outside_idle_cb): Add missing
4572 GDK_THREADS_ENTER/LEAVE. (#161604)
4574 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
4575 (list_select_func): Don't call gtk_file_info_get_is_folder()
4578 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
4579 (gtk_about_dialog_init): Add missing initializations. (#161646,