1 2005-07-08 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
4 gtk_drag_get_cursor. (#309784, Sebastian Bacher)
6 2005-07-08 Tor Lillqvist <tml@novell.com>
8 * gtk/gtkfilesel.c: Use g_get_host_name().
10 2005-07-07 Matthias Clasen <mclasen@redhat.com>
12 * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.
13 (#162979, Paul Cornett)
15 * gtk/gtkhscale.c (gtk_hscale_new_with_range):
16 (gtk_vscale_new_with_range): Add some additional docs on
17 precision here too. (#309238, Steve Chaplin)
19 * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
20 generate events on destroyed windows.
22 Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
24 * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)
25 (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
26 to handle drag-and-drop on the file list.
27 (create_file_list): Set up drag-and-drop handlers on the file list.
29 2005-07-07 Matthias Clasen <mclasen@redhat.com>
31 Fix #157787, reported by Jonathan Blandford:
33 * gtk/gtkfilechooserdefault.c
34 (gtk_file_chooser_default_set_current_folder): Don't leave a
35 "trail" behind when set_current_folder is called explicitly.
36 (gtk_file_chooser_default_update_current_folder): New function
37 that is called to update the current folder in response to
40 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
41 keep_trail argument, and don't leave a "trail" behind unless
44 2005-07-06 Manish Singh <yosh@gimp.org>
46 * demos/gtk-demo/menus.c: change_orientation() should return void,
47 remove unused variable in do_menus().
49 2005-07-06 Tor Lillqvist <tml@novell.com>
51 * gdk/win32/gdkcursor-win32.c
52 (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
53 until we know that we have something to put in it.
55 2005-07-05 Matthias Clasen <mclasen@redhat.com>
57 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
58 additional docs on precision. (#309238, Steve Chaplin)
60 * modules/input/imime.c: Fix includes. (#309462, Kazuki IWAMOTO)
62 2005-07-05 Matthias Clasen <mclasen@redhat.com>
64 * doc/tools/widgets.c: Actually generate a file-button
67 2005-07-06 Tor Lillqvist <tml@novell.com>
69 * gdk/win32/gdkcursor-win32.c: Add comment about the current named
70 cursor implementation, and what it maybe really should do.
71 (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
72 here from gtk/gtkfilesystemwin32.c:extract_icon().
73 (gdk_cursor_get_image): Use
74 gdk_win32_icon_to_pixbuf_libgtk_only().
77 * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
79 * gtk/gtkfilesystemwin32.c (extract_icon): Use
80 gdk_win32_icon_to_pixbuf_libgtk_only().
82 2005-07-05 Matthias Clasen <mclasen@redhat.com>
84 * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
85 groups into account. (#309473, Diego Gonzalez)
87 * gtk/gtkwindow.[hc]: Add a non-exported function to
88 get the grab widget of a window group.
90 2005-07-05 Kristian Rietveld <kris@gtk.org>
92 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
93 'main' expose loop, add back the calls to _set_cell_data
94 removed earlier. (#309221, Matthias Clasen).
96 2005-07-05 Matthias Clasen <mclasen@redhat.com>
98 * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
101 * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
102 with getter and setter. (#165012, Christian Rose,
103 based on a patch by Christian Persch)
105 2005-07-05 Matthias Clasen <mclasen@redhat.com>
107 * gdk/Makefile.am: Distribute the keyname-table.h header
108 and the files that are used to construct it. (#309421,
111 2005-07-04 Matthias Clasen <mclasen@redhat.com>
113 * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction)
114 (gtk_menu_bar_set_child_pack_direction): Queue a resize
115 on the contained menuitems as well.
117 * demos/gtk-demo/appwindow.c: Break some overlong lines.
119 2005-07-03 Hans Breuer <hans@breuer.org>
121 * **/makefile.msc[.in] : updated
122 * gtk/gtkiconcache.c : <io.h> for open()
123 * gtk/gtkstyle.c : use G_PI instead of M_PI
125 * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
126 by mapping the lower case win32 api name to the respective cursor.
127 E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
128 cursors from named resources in the executable.
129 (gdk_cursor_get_image) : just return NULL for now.
131 * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
132 by delegation to ScollWindowEx(), untested.
134 * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
136 2005-07-03 Matthias Clasen <mclasen@redhat.com>
138 * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
139 menubar patch, I forgot the GtkImageMenuItem changes. And I
140 managed to do 2 releases without noticing that...
142 * gtk/gtksettings.c (gtk_settings_class_init): Correct the
143 blurb for the icon-sizes setting. String change.
144 (#309355, Benjamin Berg)
146 2005-07-01 Matthias Clasen <mclasen@redhat.com>
148 * configure.in: Bump version.
150 * === Released 2.7.1 ===
154 2005-07-01 Matthias Clasen <mclasen@redhat.com>
156 * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
157 loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
159 Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org>
161 * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
163 * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
165 2005-06-30 Matthias Clasen <mclasen@redhat.com>
167 * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
168 infinite loop if a mask is zero. (#309222, David Saxton)
170 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
171 Clarify the code, gcc 4 complains about predecrement in MAX().
173 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
174 prematurely unregister callbacks.
178 2005-06-29 Matthias Clasen <mclasen@redhat.com>
180 * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
183 * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
186 * gdk/gdkevents.h: Add a boolean to specify wether the broken
189 * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
190 As the documentation states, don't return TRUE for
193 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
194 a boolean field to store wether a pointer grab is implicit.
196 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
197 Track implicit grabs.
199 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
200 _gdk_xgrab_check_button_event for button events.
202 2005-06-28 Matthias Clasen <mclasen@redhat.com>
204 * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2):
205 Make sure that cell boxes are always completely inside
208 2005-06-27 Matthias Clasen <mclasen@redhat.com>
210 * demos/gtk-demo/main.c (create_tree): Make the list of
213 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
214 Fix positioning at the end of the line for lines ending
215 in invisible characters.
216 (gtk_text_layout_get_line_display): Set display->layout
217 to a PangoLayout, even for totally invisible lines.
219 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
220 GrabBroken events which are caused by overgrabbing inside
221 the application; menus rely on these for their operation.
223 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
226 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
227 grab_window to NULL when generating GrabBroken events for
228 WM_KILLFOCUS messages.
230 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
231 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
232 generating GrabBroken events when the grab window becomes
233 unviewable or is destroyed.
235 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
236 Generate GrabBroken events when overriding a grab inside
237 the application. In this case, set grab_window to the new
240 2005-06-27 Matthias Clasen <mclasen@redhat.com>
242 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
243 to activate even if we can't grab the keyboard.
244 (gtk_button_finish_activate): Only ungrab when we have
245 a keyboard grab. (#172998, William Jon McCann)
247 2005-06-27 Matthias Clasen <mclasen@redhat.com>
249 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
250 Avoid a segfault. (#309054)
252 2005-06-27 Matthias Clasen <mclasen@redhat.com>
254 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
255 fields for grab timestamps.
257 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
258 Store grab timestamps when grabbing.
260 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
261 (gdk_display_pointer_ungrab): Don't unset the grab_window
262 if the timestamps indicate that the ungrab will fails.
264 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
265 they are grab-shadowed by something thats not a
266 submenu. (#145416, Euan MacGregor)
268 2005-06-27 Owen Taylor <otaylor@redhat.com>
270 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
273 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
275 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
276 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
279 2005-06-27 Matthias Clasen <mclasen@redhat.com>
281 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
284 * configure.in: Require GLib 2.7.1
286 2005-06-26 Matthias Clasen <mclasen@redhat.com>
288 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
289 Unregister XIM callbacks here. (#309054)
291 * modules/input/gtkimcontextxim.h: Small cleanup.
293 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
294 scroll offset when drawing the box. (#308834, Tom von
297 2005-06-26 Tor Lillqvist <tml@novell.com>
300 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
301 keyword, so no need to remove those entries from the import
302 library. libtool installs the .dll.a import library itself, so no
303 need to do it here. Install the .def file.
305 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
307 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
308 GDK_GRAB_BROKEN to the switch cases.
310 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
313 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
315 2005-06-26 Matthias Clasen <mclasen@redhat.com>
317 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
318 header drag operations if the grab is broken.
320 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
323 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
324 explicitly ungrab pointer and keyboard. We're unmapping
325 the grab window anyway.
326 (gtk_combo_box_popup): Handle grab failures.
328 2005-06-25 Matthias Clasen <mclasen@redhat.com>
330 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
331 Don't emit grab-broken for overgrabbing, until we figure
332 out how to do that without breaking the menu code.
334 2005-06-25 Matthias Clasen <mclasen@redhat.com>
336 Add a GrabBroken event to GDK, and a grab-broken-event
337 signal to GtkWidget. (#107320, Simon Cooke, initial patch
340 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
341 define a GdkEventGrabBroken event struct.
343 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
344 Generate GrabBroken events in response to WM_KILLFOCUS.
346 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
347 when a grab is broken by the window becoming unviewable,
348 or by another grab from the same client.
350 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
352 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
353 GrabBroken events into grab_broken_event signals.
355 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
358 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
359 the menu when the grab is broken.
361 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
362 the color picker if the grab is broken.
364 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
367 2005-06-25 Matthias Clasen <mclasen@redhat.com>
369 Add some new stock items. (#166480, Kristof Vansant)
371 * gtk/stock-icons/stock_fullscreen_16.png:
372 * gtk/stock-icons/stock_fullscreen_24.png:
373 * gtk/stock-icons/stock_leave_fullscreen_16.png:
374 * gtk/stock-icons/stock_leave_fullscreen_24.png:
375 * gtk/stock-icons/stock_info_16.png:
376 * gtk/stock-icons/stock_info_24.png: New icons.
378 * gtk/stock-icons/Makefile.am: Add new icons.
380 * gtk/gtkstock.h: Define names for the new icons.
382 * gtk/gtkstock.c (builtin_items): Register new stock items.
384 * gtk/gtkiconfactory.c (get_default_icons): Register new
387 2005-06-24 Owen Taylor <otaylor@redhat.com>
389 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
390 conversion functions for MSB machines: convert_0888[_br]
391 now work on bytes so are endian independent.
392 (Reported by David Zeuthen)
394 2005-06-24 Matthias Clasen <mclasen@redhat.com>
396 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
397 jump to the next line if we are at the end of the line.
398 (gtk_text_view_move_cursor_internal): Make movement by
399 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
401 2005-06-23 Tor Lillqvist <tml@novell.com>
403 Improve and simplify line segment rendering on Win32, especially
404 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
405 bugs #306396 and #308413.
407 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
408 line_style, cap_style and join_style as such in the
409 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
410 check the line_style.
412 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
413 up the GDI pen type, style, end cap and join attributes to use
414 based on the pen width, GDK line style, end cap style, and join
417 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
418 cap style, which typically are used for XOR drawing where it is
419 essential that the last pixel is not drawn, use a GDI cosmetic
420 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
421 deduced this by experimetation, the documentation is rather vague.
423 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
424 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
425 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
426 single-pixel length lines are drawn. (For sngle-pixel width lines
427 roundness as such is of course irrelevant.) For dashed lines, use
430 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
431 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
433 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
434 work better than PS_USERSTYLE. For other dashed lines, use
435 PS_USERSTYLE and the dashes as set by the user (or the default
436 four-pixel on-off style).
438 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
439 Call fixup_pen() to do the pen settings after modifying some of
440 the GDK GC attributes that affect pens.
442 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
443 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
444 instead of the the removed pen_double_dash member. Don't use
445 PATCOPY unconditionally in the PatBlt() call, use a raster op
446 code that depends on the GC function in use.
448 (draw_rectangle, draw_segments, draw_lines): Be more careful in
449 deciding when to do the manual dash rendering.
451 (draw_segments): Don't do any manual "last point" drawing at
452 all. The above changes takes care of narrow line segments being
453 drawn correctly in most cases, at least on NT-based Windows.
455 2005-06-23 Matthias Clasen <mclasen@redhat.com>
457 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
458 Fix an error in the cache timeout logic. (#166601, Morten
461 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
462 keynav for header reordering and resizing to Alt-arrows and
463 Shift-Alt-arrows, following a proposal by the keynav
464 authority. (#308666, Calum Benson)
466 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
467 a leftover debugging envvar.
469 2005-06-23 Owen Taylor <otaylor@redhat.com>
471 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
472 big endian case for 3-channel source. (Reported by
475 2005-06-23 Matthias Clasen <mclasen@redhat.com>
477 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
478 trigger warnings if there are extra references to the
479 hbox. (#308677, Dan Winship)
481 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
482 g_file_set_contents(). (#308722, Morten Welinder)
484 2005-06-22 Matthias Clasen <mclasen@redhat.com>
486 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
487 time field in the event. (#308573, Morten Welinder)
489 * gtk/gtkfilesystemunix.c: Remove gratitious differences
490 between the stable branch and HEAD, which sneaked in with
491 the bookmark renaming.
493 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
495 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
498 2005-06-21 Matthias Clasen <mclasen@redhat.com>
503 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
504 on centering calculations to match the behaviour of other parts
505 of GTK+. (#307419, Ryan Lortie)
507 2005-06-21 Matthias Clasen <mclasen@redhat.com>
509 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
510 button-release-event as well, to handle touchscreen
511 scenarios better. (#171490, Markku Vire)
513 * gtk/*.h: Trivial cleanups. (#169647, #303455,
514 Fabricio Barros Cabral, Benoit Carpentier)
518 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
519 function which can be used to implement scrolling in
520 non-window widgets. (#135165, Søren Sandmann)
522 2005-06-20 Matthias Clasen <mclasen@redhat.com>
524 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
527 2005-06-20 Matthias Clasen <mclasen@redhat.com>
529 * configure.in: Bump version number.
531 * === Released 2.7.0 ===
533 2005-06-20 Matthias Clasen <mclasen@redhat.com>
537 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
538 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
540 2005-06-19 Matthias Clasen <mclasen@redhat.com>
542 * gtk/gtk.symbols: Add a forgotten symbol
546 2005-06-19 Kristian Rietveld <kris@gtk.org>
548 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
549 check which avoids processing updates on bin_window and scrolling
550 if the node is already visible. (#170600, Billy Biggs).
552 2005-06-19 Kristian Rietveld <kris@gtk.org>
554 * gtk/gtktreeview.c (validate_visible_area): only keep the
555 row at the same position if the full row is visible. (#304623,
558 2005-06-19 Kristian Rietveld <kris@gtk.org>
560 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
561 if treeview's height is smaller than the current page_size (just
562 like we do elsewhere).
564 2005-06-19 Kristian Rietveld <kris@gtk.org>
566 Make mousewheel scrolling possible in typeahead mode, suggestion
567 from Reinout van Schouwen (#307898).
569 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
570 connect treeview search window to scroll_event signal,
571 (gtk_tree_view_search_scroll_event): implement.
573 2005-06-19 Kristian Rietveld <kris@gtk.org>
575 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
576 the event on to treeview, so it has a change of selecting a row, etc.
577 (#169677, Kirk Bridger).
579 2005-06-19 Kristian Rietveld <kris@gtk.org>
581 This commit includes a fix for #169463, Stefan Kost.
583 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
584 when cell_area is set, return cell_area width/height as width/height,
585 so the focus rectangle will be drawn correctly.
587 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
588 of focus-line-width property,
589 (validate_row): take focus_line_width into account.
591 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
592 also take focus_line_width into account when calculating the cell_area
593 y and height (before, we only took it into account when calculating
596 2005-06-19 Matthias Clasen <mclasen@redhat.com>
599 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
600 with getter and setter. (#171612, Christian Neumair)
602 2005-06-18 Matthias Clasen <mclasen@redhat.com>
604 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
605 work for inserting before/after an existing menuitem or
606 toolitem. (#155946, Christian Persch)
608 * tests/testmerge.c (delayed_toggle_dynamic): Test the
609 "insert after" functionality of gtk_ui_manager_add_ui.
611 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
612 (#300678, Sven Neumann)
614 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
615 constructed with GtkUIManager.
619 * gtk/gtkimage.c (gtk_image_clear): Make this function
620 public. (#64792, Havoc Pennington)
622 2005-06-18 Kristian Rietveld <kris@gtk.org>
624 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
625 of the separate loop setting cell data with cell drawing loop
626 (introduced in revision 1.280), since this breaks focus handling
629 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
631 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
632 checks don't work on boxed types.
634 * gdk/x11/gdkcursor-x11.c:
635 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
638 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
640 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
643 2005-06-18 Matthias Clasen <mclasen@redhat.com>
645 * gtk/gtkcellrenderertoggle.c:
647 * gtk/gtktreeview.c: Typo fixes in comments.
649 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
650 2 children are added. (#308111, Morten Welinder)
652 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
653 1-based. (#163842, Pierre Ossman)
655 2005-06-17 Kristian Rietveld <kris@gtk.org>
657 Fix #160281, testcase from Peter Bloomfield.
659 * gtk/gtktreeview.c (do_presize_handler): always size request
660 and update adjustments in fixed height mode,
661 (gtk_tree_view_build_tree): if a fixed height is set, set this
662 height on newly added nodes.
664 2005-06-17 Tor Lillqvist <tml@novell.com>
666 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
667 and suggested_action fields in the GdkDragContext to
668 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
669 field, like eog, won't accept dropped files.
671 2005-06-17 Matthias Clasen <mclasen@redhat.com>
673 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
676 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
677 with getter and setter.
681 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
682 Add a setter for the urgency hint.
684 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
687 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
688 hint in the WM_HINTS property when appropriate.
690 2005-06-17 Matthias Clasen <mclasen@redhat.com>
692 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
694 * gdk/x11/gdkcursor-x11.c:
695 * gdk/gdkcursor.c: Improve some return_if_fail checks,
696 and add the missing non-Xcursor fallback for
697 _gdk_x11_cursor_update_theme(), noticed by Jeroen
700 * gtk/gtkbutton.c (gtk_button_class_init): Document
701 several button signals as not useful.
703 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
704 Resize the popup if necessary. (#308076, Vincent Noel)
706 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
707 draw on the old and new focus widgets, if their defaultness
708 changes. (#305607, Billy Biggs)
710 2005-06-17 Kristian Rietveld <kris@gtk.org>
712 * gtk/gtktreeview.c (validate_visible_area): make sure the row
713 above 'above_path' is always in a validated state, so it does
714 not mess up scrolling. (#303319, testcase from Billy Biggs).
716 2005-06-17 Matthias Clasen <mclasen@redhat.com>
718 * gdk/x11/gdkprivate-x11.h:
719 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
720 for cached cursors which are not associated with a window
721 at the time of the theme change, by storing a serial
722 number in each cursor, and updating the theme_serial
723 counter whenever the cursor theme changes.
725 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
726 Private function to update a cursor to the current
727 cursor theme if necessary.
729 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
730 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
731 _gdk_x11_cursor_update_theme() here.
733 2005-06-17 Owen Taylor <otaylor@redhat.com>
735 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
736 #if G_BYTE_ORDER == GDK_LSB_FIRST.
738 2005-06-17 Kristian Rietveld <kris@gtk.org>
740 * gtk/gtktreeview.c (validate_visible_area): don't try to update
741 the top_row rowref ourselves here, but just have _dy_to_top_row()
743 (gtk_tree_view_scroll_to_cell): handle scrolling via
744 validate_visible_area() if the treeview is not visible or needs
745 reallocation. (#165246, Nickolay V. Shmyrev).
747 2005-06-17 Kristian Rietveld <kris@gtk.org>
749 Fixes #307914 (Alexander Larsson), fixing some breakage caused
750 by my previous commit.
752 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
753 when it fits on a single page,
754 (scroll_sync_handler): same here.
756 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
758 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
760 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
761 g_return_val_if_fail.
763 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
766 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
767 takes a GtkWidget, not a GtkImage.
769 2005-06-16 Matthias Clasen <mclasen@redhat.com>
771 * gtk/gtkfilechooserdefault.c (button_new): Simplify
772 the code and respect the show-button-images setting.
773 (#307941, Vincent Noel)
775 * gtk/gtkdnd.c: Update the RGBA cursor if an
776 icon is set after the cursor has been constructed.
777 Also handle repeated setting of icons correctly.
779 2005-06-16 Matthias Clasen <mclasen@redhat.com>
781 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
782 docs. (#307818, Christian Persch)
784 2005-06-15 Matthias Clasen <mclasen@redhat.com>
786 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
787 Initialize all fields of the expose event. (#151693,
790 2005-06-15 Matthias Clasen <mclasen@redhat.com>
792 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
793 red and blue in place.
795 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
796 formatting, pointed out by Kjartan Maraas.
798 * gtk/gtksettings.c: Add two new settings,
799 gtk-cursor-theme-name and gtk-cursor-theme-size to
800 control the cursor theme.
802 * gdk/x11/gdkevents-x11.c: Add two new X settings,
803 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
804 these to the gtk settings.
806 * tests/testgtk.c (create_cursors): Add a cursor theme
809 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
810 GdkCursor and add a private getter for it, so that we can
811 update the cursor when the cursor theme changes.
815 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
816 New function to change the cursor theme.
818 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
819 g_return_if_fail() non-NULL checks.
821 2005-06-15 Matthias Clasen <mclasen@redhat.com>
823 * gdk/abicheck.sh: Use uniq to filter out duplicates.
824 * gdk/gdk.symbols: Fix a define.
826 2005-06-14 Matthias Clasen <mclasen@redhat.com>
828 * gtk/gtkwindow.c (gtk_window_parse_geometry):
829 Fix up the example. (#307699, Michal Suchanek)
831 2005-06-14 Matthias Clasen <mclasen@redhat.com>
833 * gtk/gtkcalendar.c: Update num_marked_dates as we
834 used to do. (#307689, Thorsten Schoenfeld)
836 2005-06-14 Federico Mena Quintero <federico@ximian.com>
842 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
843 "selection-changed" and do the normal housekeeping even if we are
844 in SAVE mode and there is nothing selected. We didn't emit that
845 signal if we were in SAVE mode and unselect_all() got called.
846 (gtk_file_chooser_default_unselect_all): Call
847 pending_select_paths_free() so that we cancel any asynchronous
849 (gtk_file_chooser_default_set_current_name): Likewise.
851 2005-06-14 Federico Mena Quintero <federico@ximian.com>
857 * gtk/gtkfilechooserdefault.c
858 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
859 mode. If the parent path is a folder, only create a subfolder if
860 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
861 and respond. Also, pick up the case where the user types
862 "dirname/" instead of "dirname".
863 (check_save_entry): Make the return type void. Add some return
864 parameters so that we can do more thorough checking.
865 (gtk_file_chooser_default_get_paths): If the file part is empty
866 and we are in SAVE mode, return an empty selection.
868 2005-06-15 Kristian Rietveld <kris@gtk.org>
870 Patch for #163214 (reported by Tommi Komulainen) and fixes some
871 other scrolling/validation related bugs along the why.
873 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
874 do_validate_rows once and don't queue a size request there,
875 (gtk_tree_view_size_allocate): don't update vadj value without
876 reason, sync top_row/dy after the window sizes and adjustments
878 (validate_visible_area): always update dy when scrolling,
879 manually set top_row here after changing the vadj (don't depend
880 on _adjustment_changed and top_row/dy sync to do this), since we
881 now always set top_row here correctly, we can always free
882 scroll_to_path at the end which avoids infinite expose loops,
883 (do_validate_rows): add queue_resize boolean, remove top_row/dy
884 sync here, we cannot do it safely at this place since the
885 window sizes and adjustments are out of sync,
886 (validate_rows), (validate_rows_handler): update call to
889 2005-06-14 Matthias Clasen <mclasen@redhat.com>
891 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
892 stub for the no-Xcursor case. (noticed by Luis Villa)
894 Use named cursors for the DND cursors, the names are "dnd-none",
895 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
896 cursor instead of cursor+window when possible. This saves
897 roundtrips during the drag operation, and makes translucent icons
900 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
901 for the default dnd cursors.
903 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
904 used during the drag here, also store the icon pixbuf here.
906 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
907 switch the default cursors from xbm to inlined pixbufs.
909 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
910 GtkDragSourceInfo as well, since it has to composite the
911 drag-specific cursors. The cursors combined from the image of
912 the themed cursor and the icon_pixbuf stored in the info.
914 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
915 icon if there is an icon_pixbuf, which will be composited into
918 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
919 the pixbuf in the info struct for later compositing into the
920 cursor instead of creating an icon window.
922 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
923 RGBA cursor for the drag, and need to display the cancel
924 animation, construct the icon window here.
926 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
927 drag-specific cursors and the icon_pixbuf when done with
930 2005-06-14 Matthias Clasen <mclasen@redhat.com>
932 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
933 with the name "color-picker", when available.
937 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
938 (gdk_cursor_new_from_name): New functions to construct named
939 cursors and to get the image used for a cursor.
941 2005-06-13 Matthias Clasen <mclasen@redhat.com>
943 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
944 path bar is done, implementing the following principles:
945 (#137289, patch by Benjamin Otte)
947 1. Re-root only if $HOME is an ancestor of the current path.
949 2. When re-rooting, make sure the Left arrow appears in the path
950 bar, so that you can navigate up from $HOME to /. In that case,
951 make sure the Right arrow doesn't appear if the sub-hierarchy from
952 $HOME to the cwd fits in the window.
954 3. Make sure that hitting Alt-Up takes you always one folder up,
955 even when the path bar is re-rooted.
957 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
958 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
960 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
961 Free the data of the row before overwriting it. (#307490,
964 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
966 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
967 leak the cairo context. Closes bug #307426.
969 2005-06-13 Matthias Clasen <mclasen@redhat.com>
971 Make invisible text work a bit better (#66194, patch by
975 * gtk/gtktextiter.[hc]: Add function to move by
978 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
979 Skip invisible text when moving by paragraphs.
981 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
982 Skip invisible lines here too.
984 2005-06-12 Matthias Clasen <mclasen@redhat.com>
986 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
987 Don't leak the format names. (#307190, Morten Welinder)
989 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
991 * gdk/x11/gdkasync.c: (send_event_handler): Plug
992 a leak. Closes bug #307281.
994 2005-06-12 Matthias Clasen <mclasen@redhat.com>
996 * gtk/gtkcalendar.c (calendar_paint_header):
997 (gtk_calendar_size_request): Allow localization of the
998 format in which the year is displayed. (#135451, Paisa
1001 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
1003 * gdk/gdkcairo.c: Small doc additions.
1005 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
1006 Check start_button_mask before starting a drag. (#149058,
1009 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
1010 Sayamindu Dasgupta, patch by Jan Arne Petersen)
1012 2005-06-11 Matthias Clasen <mclasen@redhat.com>
1016 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
1017 provided by Owen Taylor.
1020 * gtk/gtkiconview.h:
1021 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
1022 Add a function to determine what parts of the model are
1023 visible. (#306726, Jonathan Blandford)
1025 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
1026 files the same way as hidden files, to be closer to what
1027 Nautilus does. (#136196, Sean Middleditch)
1029 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1031 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
1032 Don't modify strings returned from gettext().
1034 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
1036 * gtk/gtktextdisplay.c (render_para): don't use deprecated
1037 gdk_gc_unref function.
1039 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1041 Allow setting paragraph background. (#81045, Gustavo
1042 Carneiro, patch by Jeroen Zwartepoorte)
1044 * gtk/gtktextlayout.c (set_para_values): Propagate
1045 pg_bg_color to the display struct.
1046 (gtk_text_layout_free_line_display): Free it here.
1048 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
1049 is set, draw a rectangle in that color behind
1052 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
1053 paragraph-background, paragraph-background-gdk and
1054 paragraph-background-set properties.
1055 (set_pg_bg_color): A setter for paragraph-background.
1057 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
1060 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
1062 (struct _GtkTextTag): Add pg_bg_color_set.
1064 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
1066 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
1067 cairo surface when done with it. Plugs a fairly large leak in
1069 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
1070 826 blocks are definitely lost in loss record 25239 of 25250
1071 Like this from nautilus.
1073 2005-06-10 Michael Natterer <mitch@imendio.com>
1076 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
1077 to get an action's accel_closure (Fixes #141750 and #148106).
1079 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1081 * gdk/gen-keyname-table.pl: Generate N_() calls for
1082 translatable key names.
1084 * gdk/keynames.txt: Mark some key names as translatable.
1086 * gdk/keyname-table.h: Regenerated.
1088 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
1089 some context to the msg ids for keyboard modifiers and
1091 (_gtk_accel_label_class_get_accelerator_label): Try to
1092 translate key names. (#300224, Christian Rose)
1094 2005-06-10 Federico Mena Quintero <federico@ximian.com>
1096 Merged from gtk-2-6:
1100 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
1101 immediately if we are in CREATE_FOLDER mode, so that we can fill
1102 the entry with the newly-selected folder.
1103 (gtk_file_chooser_default_set_property): Warn against turning on
1104 multiple selection for CREATE_FOLDER mode, or about setting that
1105 action while multiple selection is on.
1106 (update_chooser_entry): Change the entry's contents as well if we
1107 are in CREATE_FOLDER mode. If nothing is selected, clear the
1109 (trap_activate_cb): Don't trap enter/space if modifiers are
1110 pressed. This lets one use Ctrl-space to toggle rows in multiple
1112 (gtk_file_chooser_default_should_respond): Clean up the if-chain
1113 mess of special cases by using an array to determine what to do.
1114 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
1115 the bug where the file chooser would switch to an existing folder
1116 rather than confirming with it, and create the folder ourselves.
1117 (error_creating_folder_over_existing_file_dialog): New function.
1119 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
1120 insert the common prefix if we are in an "open" mode. Use a
1122 (append_common_prefix): New helper function; code moved over from
1123 check_completion_callback().
1124 (find_common_prefix): New helper function.
1125 (gtk_file_chooser_entry_focus): Append the common prefix if the
1126 user requests it explicitly.
1128 2005-06-10 Matthias Clasen <mclasen@redhat.com>
1130 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
1131 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
1132 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
1133 * gtk/gtkstock.c (gtk_stock_set_translate_func):
1134 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
1135 * gtk/gtkscrolledwindow.h:
1136 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
1138 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
1139 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
1140 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
1142 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1144 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1146 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
1147 (#306212, Steve Chaplin, docs provided by Billy Biggs)
1149 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
1150 cleanup. (#305539, Paolo Borelli)
1152 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
1154 * configure.in: added cairo to list of $GTK_PACKAGES.
1156 2005-06-09 Matthias Clasen <mclasen@redhat.com>
1158 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
1159 the user time on the window when a drop happens. (#169364, Alexander
1160 Hunziker, patch by Elijah Newren)
1162 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1165 * gtk/gtkiconview.h:
1166 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
1167 to scroll to a path. (#306838, Jonathan Blandford)
1169 2005-06-08 Matthias Clasen <mclasen@redhat.com>
1171 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
1172 item. (#306839, Jonathan Blandford)
1174 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
1175 negative before appending the index, to avoid double error
1176 message. (#306393, Morten Welinder)
1178 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1179 Don't crash if search_window is NULL. (#304914, Victor Osadci,
1180 testcase by Olaf Vitters)
1182 * gtk/gtkimage.c: Make the file property readable.
1183 (#170674, Lorenzo Gil Sanchez)
1186 2005-06-08 Matthias Clasen <mclasen@redhat.com>
1188 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
1189 g_utf8_collate_key_for_filename().
1191 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
1193 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
1194 Merge leak fix from stable. Bug 306754.
1196 2005-06-05 Tor Lillqvist <tml@novell.com>
1198 * gdk/win32/gdkscreen-win32.c
1199 (_gdk_windowing_substitute_screen_number): Return NULL unless
1200 screen number is zero. We have only one screen on Win32.
1201 (gdk_screen_make_display_name): Call gdk_display_get_name() and
1204 * modules/engines/Makefile.am
1205 * modules/input/Makefile.am: Decide whether to build the
1206 ms-windows theme engine based on the GDK backend, not based on
1207 platform. (I.e., if building for Cygwin with the X11 backend, we
1208 shouldn't build the ms-windows engine, but if building for Cygwin
1209 but with the Win32 backend, we should.) Ditto for the IME
1210 (Windows) input module. (#305832)
1212 2005-06-04 Tor Lillqvist <tml@novell.com>
1214 * gdk/win32/gdkcursor-win32.c
1215 * gdk/win32/gdkwindow-win32.c
1216 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
1217 Support cursors with alpha on XP. Use code in common with the
1218 support for alpha icons that already was present. (#306101, Tim
1221 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
1222 in a way that more closely matches Windows. (#305986, Tim Evans).
1224 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
1227 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
1229 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
1230 * modules/engines/ms-windows/xp_theme.c: Ditto
1231 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
1233 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
1235 * gtk/gtkentrycompletion.h: Add declarations for
1236 gtk_entry_completion_{get,set}_popup_single_match.
1238 2005-05-26 Matthias Clasen <mclasen@redhat.com>
1241 * gtk/gtkentrycompletion.c: Add a property to suppress the
1242 popup for single matches. (#154711)
1244 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
1246 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
1249 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
1250 redisplay after modifying the tag in the btree, otherwise
1251 we end up showing the old tags until the next redraw comes
1252 around. (#143537, Gary Kramlich, Peter Wainwright)
1254 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
1255 autoscrolling work at the bottom of the screen.
1257 2005-05-26 Maciej Katafiasz <email@mathrick.org>
1259 * docs/reference/gtk/tmpl/gtkentry.sgml:
1260 Point to GtkTextView instead of GtkText. Fixes bug #305535
1262 2005-05-26 Sven Neumann <sven@gimp.org>
1264 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
1265 aggressive PNG compression level (bug #305340).
1267 2005-05-26 Tor Lillqvist <tml@novell.com>
1269 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
1270 from the root window, take the multi-monitor offset into
1273 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1275 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
1278 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
1279 Remove another C99ism.
1281 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
1282 background of rows insensitive when the treeview is insensitive.
1283 (pointed out by Billy Biggs)
1285 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
1286 and DND, and clipboard persistency.
1288 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1289 Make sure png comes first, otherwise dnd may use bmp by
1290 default, loosing transparency.
1292 2005-05-25 Michael Natterer <mitch@imendio.com>
1294 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
1295 handler when changing cursor visibility because it would expose
1296 the whole paragraph where the cursor is. Instead, expose the
1297 cursors' areas manually. (#173047).
1299 (text_window_invalidate_cursors): new function which exposes the
1302 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
1303 same cursor size calculation is in text_window_invalidate_cursors().
1305 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1307 * demos/gtk-demo/editable_cells.c (create_items_model): Also
1308 demonstrate GtkCellRendererProgress.
1310 * demos/gtk-demo/Makefile.am (demos):
1311 * demos/gtk-demo/combobox.c: Add a demo showing combo box
1314 * demos/gtk-demo/Makefile.am (demos):
1315 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
1317 2005-05-24 Matthias Clasen <mclasen@redhat.com>
1319 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
1321 2005-05-24 Tor Lillqvist <tml@novell.com>
1323 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
1324 gtk-alternative-button-order (setting it to TRUE).
1326 2005-05-23 Matthias Clasen <mclasen@redhat.com>
1328 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
1329 an unused variable. (#305130, Jaap A. Haitsma)
1331 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
1332 the focus away from the file list when operating the filter
1333 combo with the pointer. (#304844, Sven Neumann)
1335 2005-05-23 Tor Lillqvist <tml@novell.com>
1337 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
1338 GDK_Menu. (#172383, Ivan Wong)
1340 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
1341 of the special cases this function takes care of, use it as
1342 such. This takes care of for instance the Bengali Virama, see bug
1345 2005-05-20 Matthias Clasen <mclasen@redhat.com>
1347 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
1348 buffer overrun. (#142444, Leonard Michlmayr)
1350 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
1353 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1355 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
1356 Use the correct function to conver the uri to a path. (#304565,
1359 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
1360 Cancel button properly. (#304234, Sven Neumann)
1362 2005-05-18 Anders Carlsson <andersca@imendio.com>
1364 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
1365 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
1366 * gtk/gtktextview.h:
1367 If the horizontal adjustment changes because of a change in the
1368 layout width, then do a complete redraw. This is because there
1369 might be right-aligned or centered text that needs to be redrawn.
1371 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1373 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
1374 the event masks of descendent windows. (#169821, Tommi Komulainen)
1376 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
1377 (gtk_tree_view_set_column_drag_info): Fix some errors in the
1378 handling of drop columns. (#143355, John Finlay)
1380 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1381 Remove the no longer needed workaround.
1383 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
1384 allocations of mapped children.
1386 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1387 Add a bug reference.
1389 2005-05-18 Tor Lillqvist <tml@novell.com>
1391 * gdk/win32/gdkevents-win32.c
1392 * gdk/win32/gdkkeys-win32.c
1393 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1394 lParam of WM_KEY* messages to distinguish between left and right
1395 Control and Alt keys. Unfortunately, the right Shift key doesnt
1396 set KF_EXTENDED, so to distinguish between left and right Shift
1397 keys, check the scan code. (#304584)
1399 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1401 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1402 length overflows. (#161520, Ian Wienand)
1404 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1405 parameter names to make gtk-doc happy.
1407 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1408 values of draw-value and value-pos to be the values we
1409 actually use in _init. (#304547, Mikael Hallendal)
1411 * gtk/gtkcellrendererpixbuf.c: Support named icons in
1412 cells by adding a icon-name property. (#165777, Anders
1416 * gtk/gtktoolbutton.h:
1417 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
1418 (gtk_tool_button_get_icon_name): Support named icons in
1419 tool buttons by adding a icon-name property. (#116577,
1424 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
1425 (gtk_drag_set_icon_name): New functions to support themed
1426 drag icons. (#116577, Christian Neumair)
1428 2005-05-17 Owen Taylor <otaylor@redhat.com>
1430 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
1431 Update to changed cairo interface.
1433 * gdk/x11/gdkdrawable-x11.[ch]:
1434 Add _gdk_x11_drawable_update_size()
1436 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
1437 (gdk_window_move_resize)
1438 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
1439 Call _gdk_x11_drawable_update_size().
1441 2005-05-17 Matthias Clasen <mclasen@redhat.com>
1443 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1444 if the text view is not editable.
1446 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1447 the popup posted if the button is released over the cellview.
1448 This matches the behaviour of other combo box implementations.
1451 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1452 when recursing. (#153682, Felipe Heidrich)
1454 2005-05-16 Matthias Clasen <mclasen@redhat.com>
1456 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
1457 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
1459 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
1460 the entry is not editable. (#304171, Nikos Kouremenos)
1462 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
1463 Make sure the action of the button and the dialog are in sync,
1464 when the dialog is provided by the app. (#303987, David A Knight)
1466 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1467 in the docs. (#303940, Masao Mutoh)
1469 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1471 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1472 casting. (#304089, Philip Langdale)
1474 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1475 the label if we need to. (#169390, Felix Riemann)
1477 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
1480 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1483 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1484 call gdk_cairo_set_source_color() with a color.
1486 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1488 * tests/testiconview.c (main): cast args of drag functions to the
1491 2005-05-13 Owen Taylor <otaylor@redhat.com>
1493 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1495 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
1496 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1498 2005-05-11 Owen Taylor <otaylor@redhat.com>
1500 * tests/testgtk.c (on_alpha_window_expose): Fix to use
1501 gdk_cairo_create(). (create_alpha_window): Hook up "response"
1502 to close the window.
1504 2005-05-11 Owen Taylor <otaylor@redhat.com>
1506 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1507 to draw the swatch in to avoid having an extraneous window.
1509 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1510 color when !has_opacity.
1512 2005-05-10 Owen Taylor <otaylor@redhat.com>
1514 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1515 files for Cairo convenience functionality.
1517 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1518 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1520 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
1521 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1523 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1524 gdk_drawable_create_cairo_context() to gdk_cairo_create().
1526 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1527 Rename gdk_pixbuf_set_as_cairo_source() to
1528 gdk_cairo_set_source_pixbuf().
1530 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1531 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1534 * gdk/gdk.symbols: Update.
1536 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
1537 coordinate system problem that was causing the wrong portions
1540 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1541 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1542 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1543 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1544 gtk/gtkcellview.c (gtk_cell_view_expose)
1545 gtk/gtkdnd.c (gtk_drag_highlight_expose)
1546 gtk/gtkentry.c (gtk_entry_draw_text)
1547 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1549 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1550 GTK+ style ... use instance-private data and standard names for
1551 private structure, etc. Move function docs inline.
1553 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1554 expose. Switch drawing to Cairo.
1556 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1557 gtk_calendar_freeze/thaw
1559 2005-05-10 Tor Lillqvist <tml@novell.com>
1561 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1562 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1563 == gdk_screen_get_default(), as that might return NULL when this
1566 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1568 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1569 padding in RTL mode. (#303572, Maciej Katafiasz)
1571 2005-05-09 Owen Taylor <otaylor@redhat.com>
1573 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
1574 Fill in unused bits so they can be used for the depth-32 target case.
1575 Rewrite so that that gives a marginal speedup rather than a
1576 marginal slowdown. (on x86)
1578 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1579 Add gdk_screen_get_rgba_colormap/visual to get a visual for
1580 windows with an alpha channel, if one exists.
1582 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1583 Stub out gdk_screen_get_rgba_colormap/visual.
1585 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1586 "unused" wasn't right for depth == 32, since it depended on
1589 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1591 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1593 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1594 Implement again, without using Xft.
1596 * tests/testgtk.c: Add a test for windows with an alpha channel.
1598 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1600 * autogen.sh: Revert accidental commit.
1602 2005-05-08 Matthias Clasen <mclasen@redhat.com>
1604 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
1609 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1611 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1613 * gtk/gtkscrolledwindow.h:
1614 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
1615 (gtk_scrolled_window_get_cscrollbar): Change the return
1616 type to GtkWidget*, proposed by Owen Taylor.
1618 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
1619 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
1622 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1624 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1627 2005-05-07 Owen Taylor <otaylor@redhat.com>
1629 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1630 the background color.
1632 2005-05-07 Owen Taylor <otaylor@redhat.com>
1634 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
1635 Change prototype to match cairo_set_source_surface().
1637 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1638 gtk/gtkhsv.c tests/testcairo.c.
1640 2005-05-06 Federico Mena Quintero <federico@ximian.com>
1642 Merged from gtk-2-6:
1644 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1645 types if this is an AFS directory.
1646 (fill_in_names): If we are in an AFS directory, set the MIME type
1647 blindly to "x-directory/normal".
1649 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1651 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1652 initialize child-visible to FALSE, otherwise we may end up
1653 with the wrong page visible initially. (#302283, Patrik Fimml)
1655 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1656 appear insensitive in insensitive treeviews.
1658 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1660 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
1663 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1666 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1667 support in the tree view. (#150270)
1669 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1672 * gtk/gtkwidget.h: Small cleanups.
1674 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1677 2005-05-04 Owen Taylor <otaylor@redhat.com>
1679 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1680 in focus tracking when we move between has_pointer_focus and
1681 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
1684 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1685 happen in the case of no window manager + keyboard grabs, by
1686 moving to a more consistent model of when we pay attention to
1687 mode=NotifyGrab/NotifyUngrab events.
1689 * docs/focus_tracking.txt: Extensive writeup about how to track
1692 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
1694 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1695 cairo_set_source_surface()/cairo_paint();
1697 2005-05-04 Tor Lillqvist <tml@novell.com>
1699 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1700 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1701 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1702 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1705 2005-05-03 Matthias Clasen <mclasen@redhat.com>
1707 * gtk/gtkfilesystem.c:
1708 * gtk/gtkcelleditable.c:
1709 * gtk/gtktreemodel.c: Avoid getting the interface struct
1710 twice in the same function. (#300513, Billy Biggs)
1712 * gtk/gtkscrolledwindow.h:
1713 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
1714 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
1718 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
1719 Make this function public. (#170748, Morten Welinder)
1721 2005-05-02 Federico Mena Quintero <federico@ximian.com>
1723 Merged from gtk-2-6:
1727 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1728 to store struct stat for /afs and /net, and boolean fields to say
1729 whether these are valid.
1730 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1731 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1732 field of the folder structure.
1733 (fill_in_names): If the folder is a network directory, create a
1734 fake struct stat for its entries.
1735 (fill_in_stats): Don't stat() the children of network directories.
1737 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1738 is 0, use "Unknown" for the cell's displayed text.
1740 2005-04-28 Owen Taylor <otaylor@redhat.com>
1742 * gtk/gtkwidget.c: Add a draw-border style property to allow
1743 themes to draw outside the widget's allocation.
1745 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1746 that were working around the clip-leakage bug in Cairo.
1748 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1751 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1752 That updates a Cairo context to match a GC.
1754 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1755 for tiles/stipples/clipping to gdk_draw_glyphs(),
1756 gdk_draw_trapezoids().
1758 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1759 implementation of stipples. Use one cairo_t across the entire
1760 drawing operation. Replace cairo_matrix_create() with
1761 stack-allocated matrices.
1763 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1764 gdk/win32/gdkgc-win32.c: Save various aspects of the
1765 GC state (fill, tile, stipple, foreground, background, clip region)
1766 in instance-private-data for future use. Add getters.
1767 Get rid of _gdk_windowing_gc_get_foreground() function implemented
1770 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1771 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1772 _gdk_gc_init() to do initial setup of the GC from values;
1773 fixes some problems from drawable redirection.
1775 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1776 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
1777 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
1778 the generic code, add _gdk_windowing_gc_copy(),
1779 _gdk_windowing_gc_set_clip_region() to do backend specific
1782 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1783 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1784 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1785 Don't duplicate state that now is stored by the generic code.
1787 * gdk/gdk.symbols Update
1789 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1791 * tests/testiconview.c: Test cell renderers.
1793 * gtk/gtk.symbols: Add new functions.
1795 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1796 cell renderers for drawing and editing. (#148144, #160242)
1798 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1800 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1801 width for cases where pango_layout_get_pixel_extents() returns
1802 a rectangle with nonzero x.
1804 * gtk/gtkselection.c: Small doc fixes.
1806 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
1807 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1809 2005-05-02 Michael Natterer <mitch@imendio.com>
1811 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1812 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1813 multiple times when using gtk_get_option_group(), just as one can
1814 call gtk_init() multiple times without doing any harm.
1816 2005-05-01 Matthias Clasen <mclasen@redhat.com>
1818 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1819 the event to unanchored children in the text window.
1820 (#302494, Stephen Kennedy)
1822 2005-04-30 Tor Lillqvist <tml@novell.com>
1824 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1825 multi-monitor offset into account. (#302525)
1827 2005-04-29 Matthias Clasen <mclasen@redhat.com>
1829 * gtk/gtkradioaction.c: Make the docs build. (#302230,
1832 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1833 function, instead show the bin_window when it is created.
1835 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
1836 grab focus to unrealized widgets. (#302240, Philip Langdale)
1838 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1839 background upon state changes. (#301651, Billy Biggs)
1840 (gtk_tree_view_get_path_at_pos): Take RTL into account
1841 when iterating over the columns. (#302163)
1843 * configure.in: Check for nm.
1845 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
1846 Nguyen Thai Ngoc Duy)
1848 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1849 the internal unselect_all function, since we need the unselection
1850 to happen even in browse mode. (#300995, Mathias Hasselmann)
1852 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1853 of triggering a ::notify by re-setting the property. (#300982,
1856 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1858 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1859 scroll horizontally when necessary, and keep the northwest
1860 corner of the item visible. (#300913, Mathias Hasselmann)
1862 * tests/testiconview.c: Add some more tests.
1864 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1865 if the path does not point to a row in the model. (#300909,
1867 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
1870 * tests/testtext.c: Add some more attribute tests.
1872 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1873 of the rise property. String change, but it is more important to
1874 be correct than to be translated. (#301740)
1876 2005-04-25 Tor Lillqvist <tml@novell.com>
1878 * gtk/gtkfilesystemwin32.c
1879 (gtk_file_system_win32_volume_get_display_name): Get volume name
1880 also on Win9x. (#301798, Daniel Atallah)
1881 (canonicalize_filename): Add explicit braces to silence compiler
1884 2005-04-22 Tor Lillqvist <tml@novell.com>
1886 * gtk/gtkmain.c: Initailize gettext before use. Calling
1887 bindtextdomain() and bind_textdomain_codeset() in
1888 do_post_parse_initialization() is too late. Put the calls in a new
1889 function gettext_initialization(), and call that from
1890 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1891 GTK+'s part, but the same problem occurs also at least in
1892 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1894 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
1896 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1897 character height instead of cell height. Fix #301228.
1899 2005-04-18 Federico Mena Quintero <federico@ximian.com>
1901 Merged from gtk-2-6:
1903 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1904 obsolete assertion that the selected row can't be a volume; this
1905 is handled by the "removable" column now. Fixes #301017.
1907 2005-04-18 Owen Taylor <otaylor@redhat.com>
1909 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1910 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1911 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1912 setting color and opacity. (#301066, Vincent Noel)
1914 2005-04-15 Federico Mena Quintero <federico@ximian.com>
1916 Merged from gtk-2-6:
1918 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1919 Patch from Christian Neumair <chris@gnome-de.org>; only select the
1920 first row if we are in OPEN mode. The only other case we were
1921 letting pass through was SELECT_FOLDER, but selecting the first
1922 row when changing folders confuses people when folders are
1923 actually being selected. Fixes #171885.
1925 2005-04-13 Matthias Clasen <mclasen@redhat.com>
1927 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1928 Revert the fix for #169870, adjust the documentation instead.
1930 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1931 Revert the fix for #170727.
1933 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
1937 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1940 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
1943 2005-04-09 Matthias Clasen <mclasen@redhat.com>
1945 * gdk/x11/gdkinput-xfree.c:
1946 * gdk/x11/gdkinput-none.c:
1947 * gdk/gtk.symbols: Some more fixes necessary to
1948 make building with gcc 4 work.
1950 Add 16x16 versions of the zoom icons and of
1951 GTK_STOCK_INDEX. Some of the images were taken from
1952 the hicolor icon theme, and were originally created
1953 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
1956 * gtk/stock-icons/stock_index_16.png:
1957 * gtk/stock-icons/stock_zoom_1_16.png:
1958 * gtk/stock-icons/stock_zoom_fit_16.png:
1959 * gtk/stock-icons/stock_zoom_in_16.png:
1960 * gtk/stock-icons/stock_zoom_out_16.png: New images.
1962 * gtk/stock-icons/Makefile.am: Add the new images.
1964 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1965 Don't display too many broken images. (#169870, Roman
1966 Kagan, patch by Ivan Wong)
1968 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
1969 output. (#300013, Tommi Komulainen)
1971 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1973 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
1974 If a stock_id is unknown, display the missing image. (#169870,
1977 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
1978 as in updateiconcache.c. (spotted by Morten Welinder)
1980 2005-04-08 Carl Worth <cworth@cworth.org>
1982 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
1983 now that cairo exposes the cairo_matrix_t structure.
1985 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
1986 cairo API change in signedness of data argument.
1988 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1990 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
1991 work when called from gtk_combo_box_destroy(). (#172999,
1994 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1996 Fix double-click to autosize treeview columns. This was
1997 probably broken since 2.2 ! (#169675)
1999 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
2000 "user-resized" state of the column on a double-click to
2002 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
2003 Enter the "user-resized" state of the column only if a drag
2004 actually changes the column width, not on any click.
2006 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2008 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
2009 images on menus. (#169532, Benjamin Otte)
2011 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
2012 unaligned access. (#172947)
2014 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
2015 Consistently use the term "Bookmarks" in the UI. (#166906,
2018 Some fixes from Morten Welinder (#172947):
2020 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2021 and platform-independent.
2022 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
2023 (build_cache): Error out if a stat fails.
2025 2005-04-07 Matthias Clasen <mclasen@redhat.com>
2027 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
2028 a hint about hiding expanders.
2030 * gtk/updateiconcache.c (is_cache_up_to_date): Return
2031 TRUE if the cache is newer than the directory. (#172852,
2034 * configure.in: Replace an explicit pkg-config by
2035 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
2037 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
2038 Ignore regions which fall completely outside the line.
2039 (#165862, Felipe Heidrich)
2041 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2043 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
2044 -1 as possible value.
2045 (gtk_tree_view_enable_model_drag_source)
2046 (gtk_tree_view_enable_model_drag_dest): Pass the target list
2047 to the underlying dnd implementation, otherwise we miss the
2048 target info in the drag-data-received signal. (#164085, Jorn
2051 2005-04-06 Matthias Clasen <mclasen@redhat.com>
2053 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
2054 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
2055 to gdk_window_get_pointer(). (#168015, Billy Biggs)
2057 * po/.cvsignore, po-properties/.cvsignore: Remove
2058 Makefile.in.in. (#171092, Stepan Kasal)
2060 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
2061 scanner->value, copy it first. (#165693, Tommi Komulainen)
2063 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2065 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
2066 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
2067 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
2070 * gtk/gtkicontheme.c: Store icon caches along with the
2071 mtimes of the toplevel directories. The previous
2072 mechanism of a hashtable-per-theme caused duplicate icon
2073 caches for the same toplevel directory to be created.
2076 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2078 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
2079 Fix a typo in a warning.
2081 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
2082 the license and credits buttons from being affected by
2083 gtk_widget_show_all(). (#172724)
2085 2005-04-05 Matthias Clasen <mclasen@redhat.com>
2087 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
2088 reference to the item. (#167920, Hazael Maldonado Torres)
2090 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
2091 more docs on interactive search.
2093 2005-04-05 Tor Lillqvist <tml@novell.com>
2095 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
2096 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
2097 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
2099 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
2100 24bpp GdkVisual on 32bpp displays. (#140706)
2102 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
2104 Fix for #172319, Tristan Van Berkom:
2106 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
2107 gtk_tree_view_real_expand_row() instead of doing this by hand.
2109 2005-04-04 Johan Dahlin <johan@gnome.org>
2111 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
2112 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
2113 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
2115 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
2117 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2118 cast combo->priv->entry to GTK_ENTRY()
2120 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2121 cast completion->priv->tree_view to GTK_TREE_VIEW()
2123 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2125 * gtk/gtktextbuffer.c: Some trivial doc fixes.
2127 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
2128 the wording of the doc comment. (#172422, Vincent Untz)
2130 2005-04-04 Owen Taylor <otaylor@redhat.com>
2132 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
2133 drawing to Cairo. Also always draw the entire triangle instead
2134 of just drawing the center for prelight. (Fixes inconsistent
2135 drawing in GtkTreeView.)
2137 2005-04-04 Johan Dahlin <johan@gnome.org>
2139 * gtk/gtk.symbols: Remove symbols accidentally added.
2140 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
2141 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
2142 Use object_class instead of gobject_class
2144 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
2146 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
2147 widget coordinates instead of root coordinates. Patch from Jorn
2150 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2152 * gtk/gtktoolbar.c: Add a tooltips property.
2154 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
2155 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
2157 * gtk/gtktoggletoolbutton.c: Add an active property.
2159 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2161 Allow completion popups to be wider than the entry. (#131916,
2164 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
2166 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2167 Don't force the popup to have the same width as the entry if
2168 popup-set-width is FALSE.
2170 * gtk/gtk.symbols: Add new functions.
2172 2005-04-04 Matthias Clasen <mclasen@redhat.com>
2174 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
2175 Use gtk_accel_map_change_entry(), so that reusing the same
2176 action name works. (#170727, Paolo Borelli)
2178 2005-04-04 Tor Lillqvist <tml@novell.com>
2180 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
2181 function, to log a clipboard format name symbolically.
2182 (_gdk_win32_data_to_string): Also new, to log random data bytes.
2184 Implement delayed rendering on Win32, specifically for transfering
2185 images through the clipboard from GTK+ apps to other
2186 apps (#168173, implementation by Ivan Wong):
2188 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2189 Handle WM_RENDERFORMAT.
2191 * gdk/win32/gdkprivate-win32.h
2192 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
2193 _delayed_rendering_data and _image_bmp.
2195 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
2197 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
2198 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
2199 assume they are handled through delayed rendering.
2201 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
2202 Return all available formats (including those registered by GTK+
2203 apps) on request_targets.
2204 (gdk_selection_property_get): We should append a zero byte like
2206 (gdk_win32_selection_add_targets): New function, for
2207 gtkselection's use. Win32 requires that the clipboard owner
2208 registers all valid formats even if the owner wants delayed
2210 (_gdk_win32_selection_convert_to_dib): New function. Convert
2211 images to DIB using gdk-pixbuf.
2213 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
2215 * gtk/gtkselection.c (gtk_selection_add_target,
2216 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
2217 to register target formats.
2219 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
2221 2005-04-03 Hans Breuer <hans@breuer.org>
2223 [merged from gtk-2-6 branch]
2224 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
2225 the line pattern not the start of the line. Fixes bug #171641.
2227 * gtk/makefile.msc.in : follow .symbols changes
2229 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
2230 dynamically. (It is not available in _WIN_VER <= 0x0400)
2232 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
2234 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
2236 [also applied to gtk-2-6 branch]
2237 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
2239 * gdk/makefile.msc.in : add gtkmnemonichash.obj
2241 * test/testgtk.c(set_parent_signal) : use g_message instead of
2242 g_print to keep the 'testgtk --bench=all' output clean
2244 2005-04-03 Matthias Clasen <mclasen@redhat.com>
2246 * gtk/gtkruler.c: Add a "metric" property.
2248 * gtk/gtkradiomenuitem.c: Add a "group" property like
2249 the one found in radio buttons.
2251 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
2253 (gtk_radio_button_set_group): Add change notification.
2255 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2257 * gtk/gtkselection.c: Move documentation inline, document
2258 if add_target functions append or prepend. (#172350,
2261 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2263 Make gtk_combo_box_get_active_text do the right thing for
2264 GtkComboBoxEntry (#171373, Robert Staudinger)
2266 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
2268 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
2271 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2272 Implement get_active_text by always returning the content of
2275 2005-03-31 Sven Neumann <sven@gimp.org>
2277 Merged from gtk-2-6:
2280 * gtk/gtkiconview.c: fixed gtk-doc comments.
2282 2005-03-31 Michael Natterer <mitch@gimp.org>
2284 Allow to pop up menus without grabbing the keyboard. Useful for
2285 stuff like virtual keyboards. Fixes bug #159890
2288 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
2289 and public API gtk_menu_shell_set/get_take_focus().
2291 * gtk/gtkmenu.c (gtk_menu_popup)
2292 (popup_grab_on_window): don't grab the keyboard if take_focus
2295 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
2296 parent menu_shell's take_focus property to the submenu which is
2297 about to be popped up.
2299 2005-03-30 Federico Mena Quintero <federico@ximian.com>
2301 Merged from gtk-2-6:
2305 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
2306 if the row which changed is the same as the row being edited.
2308 2005-03-30 Matthias Clasen <mclasen@redhat.com>
2310 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2311 Make enable_search control only typeahead, not C-f. (#170435,
2313 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
2315 * gdk/gdkpixbuf.h: Include cairo.h
2317 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
2318 Don't accept n_targets == -1.
2319 (clipboard_unset): unref the old_data, not the
2320 user_data which we have just cleared. (#172038, Sven
2323 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
2324 segfault if somebody tries to popup an unrealized
2325 combo box. (#172031, Felipe Heidrich)
2327 2005-03-30 Tor Lillqvist <tml@novell.com>
2329 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
2330 state field should represent the state before the event, like on
2332 (gdk_event_translate): Fix event filter handling. If an event
2333 filter (global, client message filter, of window-specific) returns
2334 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
2335 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
2336 from gdk_event_translate() which means that DefWindowProc() will
2338 (gdk_event_translate): Fix client message handling. Append a
2339 GDK_CLIENT_EVENT unless there is a filter that matches and returns
2340 something other than GDK_FILTER_CONTINUE. (#135552)
2342 2005-03-29 Matthias Clasen <mclasen@redhat.com>
2344 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
2345 Document the need to refilter if parameters of the visibility function
2346 change. (#169516, Olivier Sessink)
2348 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
2350 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2351 invalidate areas that are covered by mapped input-output child
2352 windows. Bug 141380.
2354 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
2356 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
2357 the preview label ellipsize so the dialog layout stays constant.
2360 2005-03-28 Matthias Clasen <mclasen@redhat.com>
2362 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
2363 the context menu of the search entry if it is not visible.
2364 (#169534, Billy Biggs)
2366 2005-03-27 Tor Lillqvist <tml@novell.com>
2368 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
2369 after all, and in fact necessary with HEAD libtool.
2371 2005-03-26 Matthias Clasen <mclasen@redhat.com>
2374 * gdk/gdkdisplaymanager.c:
2375 Use canonical names for g_object_notify() as well.
2377 2005-03-24 Tor Lillqvist <tml@novell.com>
2379 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
2380 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
2381 gtk+-2.0.pc file and automatically used by dependents. MSVC users
2382 who use pkg-config will have to manually edit it out from
2383 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
2384 some kind of conditionals in .pc files?
2386 2005-03-23 Matthias Clasen <mclasen@redhat.com>
2388 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2389 a call whose result was unused and leaked. (#170776,
2392 Some cleanups to the GtkDialog code: (#170746,
2394 * gtk/gtkdialog.c (action_widget_activated): Simplify,
2395 use _gtk_dialog_get_response_for_widget.
2396 (gtk_dialog_add_action_widget): Use the correct signal
2398 (gtk_dialog_set_response_sensitive):
2399 (gtk_dialog_set_default_response): Use get_response_data.
2400 (gtk_dialog_run): Don't disconnect the signals if the
2401 dialog was destroyed while running.
2403 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
2405 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2406 Use g_return_if_fail, not g_return_val_if_fail.
2408 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2410 Implement bookmark renaming (#136216, Sean Middleditch)
2412 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
2413 get_bookmark_label and set_bookmark_label vfuncs.
2415 * gtk/gtkfilesystem.h:
2416 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2417 (gtk_file_system_get_bookmark_label): Wrappers for the
2420 * gtk/gtk.symbols: Add new exported symbols.
2422 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
2423 (gtk_file_system_unix_get_bookmark_label): Implementations
2424 for the Unix backend.
2426 * gtk/gtkfilechooserdefault.c: Add a context menu to
2427 the bookmarks pane, and allow to rename bookmarks.
2429 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2431 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
2432 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
2433 * gtk/gtknotebook.c (gtk_notebook_unmap):
2434 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2435 the widget is unmapped. (#168791, Ryan Lortie)
2437 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2439 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2440 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2441 their G_ counterparts, but also mark the name, nick
2442 and blurb as static.
2444 * gtk/*.c: Mark param spec strings as static, using
2447 * gtk/gtkspinbutton.h: Fix a typo.
2449 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2451 * gtk/gtkcellrendererprogress.c:
2452 * gtk/gtkcellrendererpixbuf.c:
2453 * gtk/gtkcellrenderercombo.c:
2454 * gtk/gtkcellrenderer.c:
2455 * gtk/gtkcalendar.c:
2459 * gtk/gtkaspectframe.c:
2461 * gtk/gtkalignment.c:
2462 * gtk/gtkactiongroup.c:
2464 * gtk/gtkaccellabel.c:
2465 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2467 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
2468 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2469 param spec strings as static.
2471 2005-03-21 Tor Lillqvist <tml@novell.com>
2473 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2474 variables, unhandled enum value in switch). Use g_object_unref()
2475 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2477 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
2478 Add missing "case" keyword.
2480 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2483 2005-03-20 Tor Lillqvist <tml@novell.com>
2485 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2486 Terminal Services session number, window station name (always
2487 "WinSta0" in interactive processes), and desktop name (typically
2488 "Default"), concatenated with backslash separators.
2489 (gdk_display_open): Accept only NULL or the string
2490 gdk_display_get_name() returns as display name.
2492 2005-03-20 Matthias Clasen <mclasen@redhat.com>
2494 Make PLT-reduction work with gcc4, and don't include
2495 everything in gdkalias.h:
2497 * gtk/grk.symbols: Group symbols by header and source file.
2498 * gtk/makegtkalias.pl: Protect definitions by the same
2499 preprocessor symbols used to guard the headers. Move
2500 the alias declarations to a separate file which is
2501 produced when calling makegtkalias.pl -def
2502 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
2504 * gtk/*.c: Include gtkalias.h after the other headers,
2505 include gtkaliasdef.c at the bottom.
2506 * gtk/*.h: Small cleanups.
2508 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
2510 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2511 Make right-clicks not pop up the menu.
2513 2005-03-18 Owen Taylor <otaylor@redhat.com>
2515 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
2516 Call cairo_surface_finish()
2518 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2519 _gdk_windowing_set_surface_device_offset().
2521 2005-03-18 Tor Lillqvist <tml@novell.com>
2523 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2524 WM_MOUSEMOVE, don't check if this process owns the active
2525 window. This makes cross-application widget embedding work better.
2526 On WM_MOVE, don't bother checking for window visibility.
2528 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2529 unused variables. Add some casts to silence gcc.
2531 2005-02-24 Owen Taylor <otaylor@redhat.com>
2533 * gdk/gdkwindow.c: Use cairo_set_device_offset().
2535 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2536 gdk/win32/gdkpixmap-win32.c:
2537 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
2538 drawable. Add _gdk_drawable_win32_finish() to clean up resources
2539 when a drawable is destroyed.
2541 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2542 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
2543 acquire/release_dc when getting a DC to use with a GC or for
2544 blitting from a pixmap.
2546 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2548 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2549 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2552 * gdk/win32/gdkdrawable-win32.c: Remove
2553 gdk_draw_rectangle_alpha_libgtk_only()
2555 2005-03-17 Owen Taylor <otaylor@redhat.com>
2557 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2558 EXTEND_REPEAT on the stipple pattern.
2560 2005-03-17 Matthias Clasen <mclasen@redhat.com>
2562 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2563 in example in the docs. (#170611, Jianfei Wang)
2565 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2566 adjustment values on resize. (#170567, Tomislav Jonjic)
2568 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2569 if there is no cache. (#170652, Diego Gonzalez)
2571 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
2572 Make inline completion insert the prefix at the
2573 right spot. (#170146, Doug Quale)
2575 2005-03-17 Tor Lillqvist <tml@novell.com>
2577 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2579 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2581 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
2582 Typo fix in the docs.
2584 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
2585 Typo fix in the docs.
2587 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
2588 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
2589 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
2590 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
2591 (gtk_icon_view_set_column_spacing)
2592 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
2593 (gtk_icon_view_set_margin): Add docs.
2595 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
2598 2005-03-15 Owen Taylor <otaylor@redhat.com>
2600 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
2601 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2602 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2605 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2606 function to create_cairo_context()
2608 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2610 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2613 * tests/testcairo.c: Update for create_cairo_context()
2615 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2616 Reimplement in terms of Cairo, bypass the vtable entries.
2618 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2619 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2620 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2621 implementation of draw_trapezoids / draw_glyphs[_transformed].
2623 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2625 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2626 gdk_pango_context_get_for_screen() into the backend independent code.
2628 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2631 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2632 gdk_draw_rectangle_alpha_libgtk_only.
2634 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
2635 gdk_pixbuf_set_as_cairo_source()
2637 * gdk/gdk.symbols: Update
2639 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2640 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2642 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2643 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2644 radio button style for now to get something more scalable.
2646 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2647 antialiasing/dpi settings.
2649 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2651 * demos/gtk-demo/editable_cells.c: Also demonstrate
2652 GtkCellRenderer::editing-started and separators.
2654 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
2656 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2658 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2660 Make PLT-reduction work with gcc4, and don't include
2661 everything in gdkalias.h:
2663 * gdk/gdk.symbols: Group symbols by header and source file.
2664 * gdk/makegdkalias.pl: Protect definitions by the same
2665 preprocessor symbols used to guard the headers. Move
2666 the alias declarations to a separate file which is
2667 produced when calling makegdkalias.pl -def
2668 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2670 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2671 headers, include gdkaliasdef.c at the bottom.
2673 2005-03-16 Tor Lillqvist <tml@novell.com>
2675 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2676 debugging output only if asked for, not always.
2678 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2679 debugging printout instead of +%d+%d. Misc other additions and
2680 cosmetic improvements to debugging printouts. Use API_CALL() and
2681 GDI_CALL() macros in more places.
2683 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2684 gdk_window_move_resize): To detect child windows, check whether
2685 the real parent is not the desktop window, instead of relying on
2686 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2687 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2688 de facto child windows.
2690 * gdk/win32/gdkprivate-win32.h
2691 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2692 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2695 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2696 toplevel_window_type field.
2698 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2699 GDK on Win32, we can compare directly to _gdk_root instead of
2700 checking the window type.
2701 (gdk_window_reparent): When reparenting a child of the desktop
2702 clear out the window decorations. Correspondingly, when
2703 reparenting to the desktop, add decorations. As in the X11
2704 backend, save the window type of a toplevel window when
2705 reparenting, in case it is reparented back to toplevel.
2707 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2709 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2710 example for manually setting up a group of actions.
2712 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2713 Document that inline completion requires text-column to be set.
2714 (gtk_entry_completion_compute_prefix): Return NULL if text-column
2717 * gtk/gtkentry.c (check_completion_callback): Call
2718 gtk_entry_completion_complete() before inserting the prefix,
2719 otherwise the prefix may depend on (random) state of the
2722 2005-03-15 Anders Carlsson <andersca@imendio.com>
2724 * docs/iconcache.txt:
2727 * gtk/gtkiconcache.c: (find_image_offset),
2728 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2729 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2730 * gtk/gtkiconcache.h:
2731 Update to be able to fetch pixbuf data and icon metadata.
2733 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2734 (icon_info_ensure_scale_and_pixbuf):
2735 Use new cache functions.
2737 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2738 (maybe_cache_image_data), (scan_directory), (write_pixdata),
2739 (get_image_meta_data_size), (get_image_pixel_data_size),
2740 (get_image_data_size), (get_single_node_size), (get_bucket_size),
2741 (write_bucket), (main):
2742 Update to write pixbuf data as well as information from .icon
2745 2005-03-15 Tor Lillqvist <tml@novell.com>
2747 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2748 debugging function. As GetKeyNameText() returns a localized key
2749 name we need to convert it to UTF-8.
2751 * gdk/win32/gdkprivate-win32.h: Declare it.
2753 * gdk/win32/gdkevents-win32.c: Use it.
2755 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2756 handling of children of foreign windows. They should be child
2757 windows from Windows's perspective, even if they are toplevel GDK
2760 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
2762 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2763 for big window support. Now also the test in testgtk works.
2765 2005-03-11 Matthias Clasen <mclasen@redhat.com>
2767 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2768 style changes. (#169334, Yury Puzis)
2770 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2771 the doc comments. (#169967, Masao Mutoh)
2773 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
2775 Big window fix for Win32. Big windows are still emulated within
2776 16-bit coordinate limits, though. Big windows now work on NT-based
2779 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2782 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2784 * gdk/win32/gdkwindow-win32.c: Minor related changes.
2786 2005-03-10 Matthias Clasen <mclasen@redhat.com>
2788 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
2789 Fix a doc typo. (#169873, Johan Dahlin)
2791 * gtk/gtkdialog.c (gtk_dialog_map): Don't
2792 try to focus the default_widget if there is
2793 none. (#169881, Thomas Leonard)
2795 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
2797 * configure.in: Remove inadvertent gail references, require
2800 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2802 * configure.in: Require GLib 2.7.0
2804 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2806 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2807 (#169728, Morten Welinder, Owen Taylor)
2809 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2810 in the docs. (#169729, Morten Welinder)
2812 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2814 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
2815 when the model is unset. (#169528, Tomislav Jonjic)
2817 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2819 * gtk/gtkviewport.c (gtk_viewport_class_init):
2820 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
2821 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
2822 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
2823 * gtk/gtktext.c (gtk_text_class_init):
2824 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
2825 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
2826 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
2827 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
2828 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
2829 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
2830 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
2831 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
2832 * gtk/gtkimage.c (gtk_image_class_init):
2833 * gtk/gtkruler.c (gtk_ruler_class_init):
2834 * gtk/gtkiconview.c (gtk_icon_view_class_init):
2835 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
2836 * gtk/gtkprogress.c (gtk_progress_class_init):
2837 * gtk/gtkmenu.c (gtk_menu_class_init):
2838 * gtk/gtkscale.c (gtk_scale_class_init):
2839 * gtk/gtkpaned.c (gtk_paned_class_init):
2840 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
2841 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
2842 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
2843 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
2844 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2845 * gtk/gtkcurve.c (gtk_curve_class_init):
2846 * gtk/gtkcombo.c (gtk_combo_class_init):
2847 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
2848 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
2849 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
2850 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
2851 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
2852 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
2853 * gtk/gtkcellview.c (gtk_cell_view_class_init):
2854 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
2855 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
2856 * gtk/gtkclist.c (gtk_clist_class_init):
2857 * gtk/gtkctree.c (gtk_ctree_class_init):
2858 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
2859 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
2860 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
2861 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
2862 * gtk/gtkcalendar.c (gtk_calendar_class_init):
2863 * gtk/gtkbbox.c (gtk_button_box_class_init):
2864 * gtk/gtktable.c (gtk_table_class_init):
2865 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
2866 * gtk/gtkframe.c (gtk_frame_class_init):
2867 * gtk/gtkaction.c (gtk_action_class_init):
2868 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
2869 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
2870 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2872 2005-03-08 Matthias Clasen <mclasen@redhat.com>
2874 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
2875 * gtk/gtkrange.c (gtk_range_class_init):
2876 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
2877 * gtk/gtktexttag.c (gtk_text_tag_class_init):
2878 * gtk/gtktextview.c (gtk_text_view_class_init):
2879 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
2880 * gtk/gtknotebook.c (gtk_notebook_class_init):
2881 * gtk/gtkentry.c (gtk_entry_class_init):
2882 * gtk/gtkexpander.c (gtk_expander_class_init):
2883 * gtk/gtkarrow.c (gtk_arrow_class_init):
2884 * gtk/gtkalignment.c (gtk_alignment_class_init):
2885 * gtk/gtkbutton.c (gtk_button_class_init):
2886 * gtk/gtklabel.c (gtk_label_class_init):
2887 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
2888 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2889 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
2890 * gtk/gtktreeview.c (gtk_tree_view_class_init):
2891 * gtk/gtkbox.c (gtk_box_class_init):
2892 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
2893 * gtk/gtkcontainer.c (gtk_container_class_init):
2894 * gtk/gtkwidget.c (gtk_widget_class_init):
2895 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2896 when registering param specs.
2898 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2899 (#169607, Mark McLoughlin)
2901 * gtk/gtk.symbols: Add the new attributes here, too.
2904 * gtk/gtktreeview.h:
2905 * gtk/gtktreeviewcolumn.h:
2906 * gtk/gtktextbuffer.h:
2908 * gtk/gtkfilechooserdialog.h:
2910 * gtk/gtkcontainer.h:
2911 * gtk/gtkcelllayout.h:
2912 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2913 appropriate. (#165682, Marc Meissner)
2915 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2917 Convert the gdk keyval-keyname tables to a big string
2918 + offsets. (#168901)
2920 * gdk/gen-keyname-table.pl: Perl script inspired by
2921 pango/tools/gen-color-table.pl to create the
2922 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2923 of offsets pointing into a big const string.
2925 * gdk/keynames.txt: List of keyval-keyname pairs.
2926 * gdk/keyname-table.h: Generated tables.
2928 * gdk/gdkkeynames.c: Include keyname-table.h and don't
2929 generate the inverse table at runtime.
2931 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2933 * gtk/gtkstyle.c: Document which parameters may be NULL.
2934 (#166855, Frank Naumann)
2936 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2938 * AUTHORS: Add original authors of incorporated software.
2940 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
2942 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2944 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2946 * gtk/gtksettings.c (gtk_settings_get_property):
2947 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
2948 the values here. (#169047, Philip Langdale)
2950 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2951 Don't warn if a stock icon cannot be found. (#168830,
2954 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2956 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
2957 Avoid warnings if gtk_widget_reparent() is called at
2958 unusual times. (#168966, Christian Persch)
2960 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
2962 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
2963 const warnings on data structure seeding.
2965 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
2967 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2969 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2971 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
2972 Fix prelighting. (#157392, Vincent Noel, patch by
2975 * gtk/gtkicontheme.c (theme_lookup_icon): Make
2976 icon data caching work again. (#168851, Alexander Larsson)
2978 * gdk-pixbuf/gdk-pixbuf.c:
2979 * gdk-pixbuf/gdk-pixbuf-features.h.in:
2980 Revert the previous change, since it breaks
2983 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2986 * gdk/gdkpixbuf-drawable.c
2988 * gdk/x11/gdkdnd-x11.c
2989 * gdk/x11/gdkevents-x11.c
2990 * gdk/x11/gdkproperty-x11.c
2991 * gdk/x11/gdkvisual-x11.c
2992 * gdk-pixbuf/gdk-pixbuf.c
2993 * gdk-pixbuf/gdk-pixbuf-features.h.in
2996 * gtk/gtkcolorbutton.c
2998 * gtk/gtkcontainer.c
2999 * gtk/gtkfilechooserdefault.c
3003 * gtk/gtkinputdialog.c
3004 * gtk/gtkitemfactory.c
3008 * gtk/gtktreedatalist.c
3009 * gtk/gtkuimanager.c
3010 * gtk/tree_minus.xpm
3012 * gtk/xdgmime/xdgmime.c
3013 * gtk/xdgmime/xdgmime.h:
3014 Move constant data to .rodata.
3016 2005-02-27 Matthias Clasen <mclasen@redhat.com>
3018 * gtk/gtkaction.c (connect_proxy): Improve the handling
3019 of buttons as action proxys. (#165534, Milosz Derezynski)
3021 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
3022 (#168646, Vincent Untz)
3024 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
3025 Unset "focus-on-click" for the save folder combo. (#168688,
3028 2005-02-25 Matthias Clasen <mclasen@redhat.com>
3030 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
3033 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
3034 path here. (#168443, Morten Welinder)
3036 2005-02-24 Robert Ögren <gtk@roboros.com>
3038 Implement better handling of Wintab tablet context overlap on
3041 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
3042 function that brings any tablet contexts to the top of the overlap
3044 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
3045 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3046 Call _gdk_input_set_tablet_active when a window is activated (on
3049 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3051 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
3052 Don't leak parent_path. (#168435, Morten Welinder)
3054 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
3056 * gtk/gtkstyle.c: Add
3058 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
3062 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3064 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
3065 (gtk_combo_box_model_row_deleted): Update the displayed row in
3066 the cell_view. (#167842, Gustavo Carneiro)
3068 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3070 Fix #167259, reported by Christian Persch:
3072 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
3073 widget, even if we avoid the unrealizing.
3074 (gtk_widget_reparent_subwindows): Make reparenting work for
3075 !NO_WINDOW widgets which have other windows which are siblings
3076 of widget->window (as e.g. GtkSpinButton).
3078 2005-02-24 Matthias Clasen <mclasen@redhat.com>
3080 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
3081 Don't emit a warning if a parent node is filtered out. (#164726,
3084 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3086 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
3087 change, since gtk_widget_set_style_internal() already
3090 2005-02-23 Matthias Clasen <mclasen@redhat.com>
3092 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
3093 fonts may have changed. (#164128, Phil Blundell)
3095 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
3096 (gtk_about_dialog_new): Move initialization code from _new to
3097 _init. (#168249, Murray Cumming)
3099 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
3101 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
3102 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
3105 2005-02-23 Tor Lillqvist <tml@novell.com>
3107 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
3108 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
3110 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
3112 * gtk/updateiconcache.c: #include <config.h>
3114 2005-02-22 Federico Mena Quintero <federico@ximian.com>
3116 Merged from gtk-2-6:
3118 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
3120 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
3121 (gdk_rgb_convert_565_d): Likewise.
3122 (DM_565): Made a static const precomputed array to avoid
3123 allocating it at runtime.
3124 (gdk_rgb_preprocess_dm_565): #ifdef out.
3126 2005-02-20 Matthias Clasen <mclasen@redhat.com>
3129 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
3130 in the documentation.
3132 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3133 Set have_render_with_trapezoids to GDK_YES when we have
3134 a new enough Render extension. (#167965,Billy Biggs)
3136 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
3137 the last user interaction when focusing the window. (#166379,
3140 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
3142 * gtk/gtkuimanager.c (start_element_handler): make sure expand
3143 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
3145 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
3147 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
3149 2005-02-16 Matthias Clasen <mclasen@redhat.com>
3151 * docs/iconcache.txt: Add some information about the
3152 icon cache format (since I can't locate it at freedesktop.org)
3154 Fixes for #143829, Tommi Komulainen, Christian Persch:
3156 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
3157 typeselect_flush_timeout when destroying the widgets
3159 (gtk_tree_view_ensure_interactive_directory): Add the
3160 popup to the window group of the toplevel it belongs to.
3162 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
3163 (gtk_combo_box_popup): Do the same here.
3165 2005-02-14 Matthias Clasen <mclasen@redhat.com>
3167 * configure.in: Kill --enable-ansi (#164394)
3169 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3171 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
3172 when the pathbar goes away. (#167094, Rodney Dawes)
3173 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
3176 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3178 Support vertical menubars (#166632):
3180 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
3181 directions, with values for left-to-right, right-to-left,
3182 top-to-bottom and bottom-to-top.
3186 * gtk/gtkmenubar.c: Add two properties, pack-direction and
3187 child-pack-direction, which specify how children and
3188 grandchildren of a menubar are packed, with getters and setters.
3190 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
3191 (gtk_menu_bar_get_property): Implement set_property and get_property.
3193 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
3194 (gtk_menu_bar_size_allocate): Take pack direction into account.
3196 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
3197 move_current here move all the menubar-specific direction
3198 tweaking from the generic menushell implementation here.
3200 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
3201 direction tweaking from the generic menushell implementation here.
3203 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
3204 (gtk_menu_bar_size_allocate): Take pack direction into account.
3206 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
3207 (gtk_image_menu_item_size_allocate):
3208 (gtk_image_menu_item_toggle_size_request): Take child pack
3209 direction into account and pack the image vertically if
3212 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
3213 Set the submenu direction to left-right for menuitems in
3215 (gtk_real_menu_shell_move_current): Simplify by moving
3216 direction tweaking to menu- and menubar-specific
3217 implementations. Take pack direction into account when
3220 * tests/testmenubars.c: Test menubars in various packing
3221 direction combinations.
3223 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
3225 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3227 Complete the fix for #165770, Vincent Noel:
3229 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
3230 fallback size be 16, to be equal to the default for
3231 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3232 (gtk_file_chooser_button_init):
3233 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3234 GTK_ICON_SIZE_SMALL_TOOLBAR.
3236 2005-02-09 Matthias Clasen <mclasen@redhat.com>
3238 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
3239 keynav for going from menubar to menu.
3241 2005-02-08 Christian Rose <menthos@menthos.com>
3243 * configure.in: Added "xh" to ALL_LINGUAS.
3245 2005-02-08 Matthias Clasen <mclasen@redhat.com>
3247 * gtk/gtkuimanager.c (start_element_handler): Accept
3248 the "expand" attribute and set a flag in the node if it
3250 (update_node): If the expand flag is set, make separator
3251 toolitems non-drawn and expanding. (#166489, Christian Persch)
3253 2005-02-05 Hans Breuer <hans@breuer.org>
3255 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
3256 build with Cairo dependency. The patch to acually use Cairo
3257 on win32 will be on gtk-devel-list soon.
3258 * tests/makefile.msc : add testcairo building
3260 * gtk/stock-icons/makefile.msc : split command line into two to
3261 work with the shells default
3263 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
3265 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
3268 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3269 Add some extra parens for bitop order of operations disambiguiation.
3271 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
3272 domain when setting a translate function.
3274 * tests/testcombo.c: removed unused variable.
3276 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3278 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
3279 being NULL. (#166179, Diego Gonzalez)
3281 2005-02-04 Owen Taylor <otaylor@redhat.com>
3283 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
3284 up comment to talk only about backwards compat, not
3285 forward/backwards compat. (#166293, reported by Vincent Noel)
3287 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3289 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
3290 when there is not enough space. This avoids a nasty size
3291 allocation loop in the file chooser. (#154007, reported
3292 by Milosz Derezynski, patch by Robert Ögren)
3294 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3296 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
3297 selection of RTL direction if the widget does not have
3298 focus. (#164125, Frederic Crozat)
3300 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
3302 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
3304 2005-02-03 Owen Taylor <otaylor@redhat.com>
3306 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
3307 gdk_drawable_set_cairo_target().
3309 * tests/testtreeflow.c (enum): Use grand not rand as a variable
3310 name because one of the cairo headers is pulling in stdlib.h.
3312 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
3315 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
3317 * Require libpangocairo for all backends.
3319 2005-02-03 Tor Lillqvist <tml@novell.com>
3321 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
3322 wide character version of ImmGetCompositionString() here,
3323 too. (#165278, Takuro Ashie)
3325 2005-02-03 Matthias Clasen <mclasen@redhat.com>
3327 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
3328 one roundtrip per motion event. (#166173, pointed out
3329 by Chris Lee, patch by Søren Sandmann)
3333 * gtk/gtkstock.c (gtk_stock_set_translate_func):
3334 New function which allows to change the function used for
3335 translation stock labels, on a per-domain basis. Use this
3336 functionality to switch the GTK+ stock items to use Q_()
3337 prefixed msgids. (#166179, Funda Wang)
3339 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
3342 2005-02-02 Federico Mena Quintero <federico@ximian.com>
3344 Merged from gtk-2-6:
3346 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3347 Don't select the first row if the chooser is not mapped. This
3348 happens when it's acting on behalf of GtkFileChooserButton. Also,
3349 don't select the first row if we are in SAVE or CREATE_FOLDER
3350 modes --- I had missed that (see the ChangeLog entry from
3351 2005-01-18). Fixes #165264.
3353 2005-02-02 Tor Lillqvist <tml@novell.com>
3355 Implement lazy extended input initialization on Win32, by Robert
3356 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
3357 be a good idea in any case even if it didn't fix any visible
3360 The Wacom tablet driver seems to get confused if Wintab is
3361 initialized but no window is shown before the process exits. This
3362 is the case for some GIMP plug-ins, for instance.
3364 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
3365 non-static (and renamed).
3366 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
3368 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
3370 * gdk/win32/gdkinput.c (gdk_devices_list,
3371 gdk_display_list_devices, gdk_input_set_extension_events): Call
3372 _gdk_input_wintab_init_check() here instead.
3374 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
3376 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
3377 of a single window so that gtk_clipboard_request_contents() can be
3378 called inside a GtkClipboardReceivedFunc(). (#163844)
3380 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3382 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
3383 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
3385 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
3386 to NULL after freeing it. (#165800, Damon Chaplin)
3388 2005-02-01 Michael Natterer <mitch@gimp.org>
3390 * configure.in: depend on stable pango-1.8, not unstable 1.7
3392 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3394 Merged from gtk-2-6:
3396 * gtk/gtkfilechooserdefault.c
3397 (browse_files_model_finished_loading_cb): Don't
3398 g_assert_not_reached() if we are in any other state. Another code
3399 path may have triggered a folder reload. Fixes #165556.
3401 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3403 Merged from gtk-2-6:
3407 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3408 fallback size be 16, to be equal to the default for
3409 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3410 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3411 GTK_ICON_SIZE_SMALL_TOOLBAR.
3413 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3415 * */*.c: Fix many instances of "the the" in docs and
3416 comments. (#165815, Masao Mutoh)
3418 * gtk/updateiconcache.c (main): Add a --quiet option.
3420 2005-02-01 Tor Lillqvist <tml@novell.com>
3422 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3423 reset_after_dead, handle_dead): New functions, code blocks
3424 refactored out of update_keymap(). No functionality change.
3426 (update_keymap): Use ToUnicodeEx() when available (on NT-based
3427 Windows) instead of ToAsciiEx(). Makes keyboard input work in
3428 Unicode-only input locales that don't have any ANSI codepage, for
3429 instance Hindi and Bengali. Use _gdk_input_codepage only on
3432 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3433 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3434 TranslateCharsetInfo() to get the input locale's corresponding
3437 2005-01-31 Matthias Clasen <mclasen@redhat.com>
3439 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
3440 NULL-terminated va lists. (#165683)
3442 2005-01-29 Matthias Clasen <mclasen@redhat.com>
3444 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
3445 Typo fix. (#165581, Masao Mutoh)
3447 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
3449 * README.cvs-commits: update ancient IRC info.
3451 2005-01-27 Federico Mena Quintero <federico@ximian.com>
3453 Merged from gtk-2-6:
3455 * gtk/gtkfilechooserdefault.c
3456 (gtk_file_chooser_default_select_path): Oops, don't assert that we
3457 can't reach the end of the function; this happens if we are still
3458 loading but don't need a path change. Fixes #165213.
3460 2005-01-27 Matthias Clasen <mclasen@redhat.com>
3462 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3463 Make wrapping work in RTL mode.
3465 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3466 obey HIG spacing a bit more, add a hand cursor when over the
3467 link button. (#163979, Jorn Baayen)
3469 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3471 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3472 Don't allow -1 as minimum-key-length.
3473 (gtk_entry_completion_set_model): Add missing notification.
3474 (gtk_entry_completion_set_minimum_key_length): Add missing
3475 notification, allow setting minimum-key-length to 0. (#165194,
3478 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3480 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3481 the license dialog is initially displayed without a horizontal
3483 (gtk_about_dialog_class_init): Document the fact that the
3484 license text is not wrapped. (#165012, Christian Rose)
3486 2005-01-25 Matthias Clasen <mclasen@redhat.com>
3488 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
3491 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
3492 docs. (#165163, Jeff Franks)
3494 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3495 for a string GValue. (#165203, Damon Chaplin)
3497 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3499 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
3500 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
3503 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3505 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3507 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3509 Merged from gtk-2-6:
3511 Fix #147785 and clean up the loading code:
3513 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3514 be EMPTY, PRELOAD, LOADING, FINISHED.
3515 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3516 (struct _GtkFileChooserDefault): Added a pending_select_paths
3518 (load_remove_timer): Add the new states.
3519 (load_setup_timer): Likewise.
3520 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
3521 (browse_files_model_finished_loading_cb): Switch to the
3522 LOAD_FINISHED state.
3523 (enum PendingOp): Removed.
3524 (struct _GtkFileChooserDefault): Removed the pending_op and
3525 pending_select_path fields.
3526 (pending_select_paths_free): New utility function.
3527 (pending_select_paths_add): New utility function.
3528 (gtk_file_chooser_default_finalize): Call
3529 pending_select_paths_free().
3530 (pending_op_queue): Removed.
3531 (pending_op_process): Removed.
3532 (pending_select_paths_process): New function.
3533 (browse_files_model_finished_loading_cb): Call
3534 pending_select_paths_process().
3535 (center_selected_row_foreach_cb): Handle multiple selection by
3536 only centering the first row.
3537 (get_is_file_filtered): Constify.
3538 (gtk_file_chooser_default_select_path): Queue into a list of paths
3539 to select if we are not finished loading.
3540 (show_and_select_paths): New utility function.
3541 (up_folder_handler): Use pending_select_paths_add().
3542 (gtk_file_chooser_default_should_respond): Do not call
3543 pending_op_queue(); free the pending_selected_paths instead.
3544 (gtk_file_chooser_default_initial_focus): Don't queue a pending
3545 operation, and don't select the first row unconditionally --- this
3546 will happen when the folder is done loading.
3547 (shortcuts_row_activated_cb): Free the pending_select_paths.
3548 (pending_select_paths_store_selection): New utility function.
3549 (gtk_file_chooser_default_map): Call
3550 pending_select_paths_store_selection() to save the selection
3551 before reloading the folder.
3552 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
3553 move the cursor here; it will be done when processing the pending paths.
3555 * tests/testfilechooser.c (main): Add a button to the command
3556 window to unmap and remap the file chooser.
3558 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3560 * docs/tutorial/gtk-tut.sgml:
3561 * docs/tutorial/gtk_tut.sgml:
3562 * docs/reference/gtk/tmpl/gtkliststore.sgml:
3563 * gtk/gtkactiongroup.c:
3564 * gtk/gtksizegroup.c:
3565 * gtk/gtksizegroup.h:
3566 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3567 appropriate. (#165108, Dan Winship)
3569 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3571 * gtk/gtkwidget.c (gtk_widget_class_init): Document
3572 GtkWidget::style-set. (#164222, Alex Graveley)
3574 2005-01-22 Matthias Clasen <mclasen@redhat.com>
3576 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
3577 Remove the accidentally added prototype for this unimplemented
3578 function. (#164893, Jeff Franks)
3580 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3583 2005-01-23 Tor Lillqvist <tml@novell.com>
3585 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3586 dead accent key. (#164859, reported and fix verified by Daniel
3589 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3590 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3593 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
3594 Don't call GetVolumeInformation() for network drives. They might
3595 be disconnected, and calling GetVolumeInformation() will then
3596 cause long delays. (#164448, reported by Dave Neary.) It seems to
3597 be very hard to reliably find out whether a network drive is
3598 connected or not, so it's easier to just not try getting the
3599 volume name for them. See the bug report for discussion.
3601 Make volume name display formats translatable.
3603 Fix for #163702, from Ivan Wong:
3605 * gdk/win32/gdkprivate-win32.h
3606 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3608 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3609 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3610 GDK_SELECTION_CLEAR event.
3612 * gdk/win32/gdkselection-win32.c
3613 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3614 when emptying the clipboard ourselves.
3616 (gdk_selection_send_notify_for_display): Remove the artifical
3617 GDK_SELECTION_CLEAR event generation.
3619 2005-01-21 Matthias Clasen <mclasen@redhat.com>
3621 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3622 provided by Bill Haneman.
3624 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3626 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
3629 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3630 here, even if the only focusable widgets are labels.
3632 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3634 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3636 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
3637 Add a follow-state property which when TRUE causes the pixbuf
3638 to be tinted according to state.
3640 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3641 Use follow-state and colorize the pixbuf when appropriate.
3643 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3645 Support wrapping in GtkCellRendererText (#163608):
3647 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3648 Add wrap-mode and wrap-width properties which cause a
3649 text cell to break to a specified width when set.
3651 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3652 and wrap-width when they are set.
3654 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3656 * gtk/gtkmodules.c (load_module): Don't reverse the order
3657 of modules when putting them in gtk_modules. (#162676, Dennis
3658 Cranston, patch by Remus Draica)
3660 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
3661 if the tree is empty. (#164669, Priit Laes)
3663 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
3665 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3666 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3669 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
3671 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3672 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3674 2005-01-19 Tor Lillqvist <tml@novell.com>
3676 * gdk/win32/gdkkeys-win32.c (update_keymap,
3677 gdk_keymap_translate_keyboard_state): Handle keyboards with
3678 ShiftLock (and not CapsLock) correctly. (#161814)
3680 2005-01-19 Matthias Clasen <mclasen@redhat.com>
3682 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3683 In save mode, don't return paths containing nonexisting
3684 directories. (#162443, Jean Marie Favreau)
3686 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
3687 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3689 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3692 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
3693 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
3697 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
3698 Add a function to obtain the last user interaction
3699 time. (#163119, Elijah Newren)
3701 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
3703 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3706 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
3708 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3709 disambiguate nested if/else.
3711 2005-01-18 Federico Mena Quintero <federico@ximian.com>
3713 Merged from gtk-2-6:
3715 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3716 operation to select the first file if we are in SAVE or
3717 CREATE_FOLDER modes. Executing that operation would overwrite the
3718 contents of the save-name entry.
3720 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3723 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
3724 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3725 pointer warping to GDK. (#160437)
3727 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3729 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3731 * gtk/gtkstyle.c (gtk_default_draw_check)
3732 (gtk_default_draw_option, gtk_default_draw_handle): Add some
3733 more NULL checks, patch by Michael Natterer.
3735 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
3737 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3740 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3741 NULL widget. (#164477, Michael Natterer)
3743 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3745 Avoid X errors when running against servers which
3746 implement XRender < 0.4. (#164427, Albert Chin)
3748 * gdk/x11/gdkprivate-x11.h:
3749 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3750 New function to check for trapezoid support in XRender.
3751 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
3754 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
3755 separate have_render_with_trapezoids field.
3757 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3759 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3761 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3763 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
3765 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3768 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3770 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3771 and restore the selected row in the bookmark list and the
3772 save folder combo. (#164290)
3774 2005-01-16 Matthias Clasen <mclasen@redhat.com>
3776 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3777 Fix argument order in docs.
3779 2005-01-15 Matthias Clasen <mclasen@redhat.com>
3781 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
3782 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
3783 if the keymap is neutral. (#164125, Phil Blundell)
3785 2005-01-14 Matthias Clasen <mclasen@redhat.com>
3787 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3788 reset the property to its default value -1.
3789 (gtk_tree_view_get_search_column): Return the default value in
3790 the g_return_val_if_fail() check. (#163864, Richard Hult)
3792 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
3793 Add a translator hint. (#163889)
3795 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3796 is an enum value, not a define. Pointed out by Tommi Komulainen.
3797 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3799 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3801 * configure.in: Check for nl_langinfo()
3802 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3803 available to determine first day of week (#163842, Vincent Untz)
3805 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
3806 the lifecycle of widgets. (#159503, Christian Persch)
3808 * demos/gtk-demo/main.c (create_text): Use monospace for the
3809 source code view. (#163526, Theerud Lawtrakul)
3811 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3812 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
3815 * configure.in: Add an OS_LINUX conditional.
3817 * gdk/Makefile.am (TESTS):
3818 * gdk-pixbuf/Makefile.am (TESTS):
3819 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
3822 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3824 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3825 (gtk_tree_view_set_headers_clickable): Make the headers-visible
3826 property readwrite instead of just writable, and remove the
3827 g_return_if_fail check that there is a model when setting this
3828 property. Also improve the blurb. (#163851, Richard Hult)
3830 2005-01-12 Owen Taylor <otaylor@redhat.com>
3832 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3833 initialization of gdktarget, that was causing it to be
3834 evaluated before host was set. Simplify --with-gdktarget help
3837 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
3838 which doesn't work with slightly older versions of GNU grep
3839 in install-libtool-import-lib rule.
3841 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
3843 Fix for #162790, by Iwan Wong:
3845 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3846 correctly. Simplify the interface to render_line_horizontal() and
3847 render_line_vertical(). Need to draw lines "manually" also on
3848 NT-based Windowses if we have a dash offset or are drawing
3849 double-dashed lines.
3851 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3852 double-dash flag, and a brush for the background colour (used by
3853 the odd dashes in the double-dash line style) in the GdkGCWin32
3856 * gdk/win32/gdkgc-win32.c: Set up above new fields.
3858 2005-01-10 Federico Mena Quintero <federico@ximian.com>
3862 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3863 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3864 (gtk_file_system_unix_get_folder): Make error reporting more
3865 accurate. Don't bail out if we can't read the directory.
3866 (fill_in_stats): Don't return an error; just assume we don't have
3867 stat info for this folder's files.
3868 (fill_in_names): Don't create the hash table for the names if we
3869 can't open the directory.
3870 (gtk_file_folder_unix_list_children): Don't emit the
3871 "finished-loading" signal --- we don't do asynchronous loads, so
3872 we are always finished loading.
3873 (gtk_file_folder_unix_get_info): Use helper functions; handle the
3874 case where we can't stat '/'.
3875 (get_icon_type_from_path): Don't call fill_in_stats() here; only
3876 use the info we have.
3877 (fill_in_mime_type): Don't return an error. Don't do anything if
3878 we don't have the stat info.
3880 2005-01-10 Owen Taylor <otaylor@redhat.com>
3882 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3885 2005-01-10 Matthias Clasen <mclasen@redhat.com>
3887 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3888 signals. (#163319, Murray Cumming)
3890 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
3892 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3893 cursor also when changing the cursor of a window that is the first
3894 ancestor of the window containing the pointer that has a cursor
3895 defined. (#163035, Ivan Wong)
3897 2005-01-09 Anders Carlsson <andersca@gnome.org>
3899 * gtk/gtkcellrenderertext.c: (get_size):
3900 * gtk/gtklabel.c: (gtk_label_size_request):
3901 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3902 Don't pass NULL to pango_context_get_metrics. Use
3903 pango_context_get_language instead, which is way faster.
3905 2005-01-08 Matthias Clasen <mclasen@redhat.com>
3907 * configure.in: Bump version
3909 * === Released 2.6.1 ===
3911 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3913 2005-01-07 Tor Lillqvist <tml@iki.fi>
3915 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3916 Fix braino. (#163232, Arnaud Charlet)
3918 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3920 * gtk/gtkiconview.c: Make markup_column work, and fix some
3921 layout issues when either icon or text is missing. (#163065)
3923 2005-01-06 Federico Mena Quintero <federico@ximian.com>
3925 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3926 "Open _Location" item. Fixes #148839.
3928 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3930 * README.in: Fix a typo. (#163128, kentaro fukuchi)
3932 2005-01-06 James M. Cape <jcape@ignore-your.tv>
3934 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
3935 (gtk_file_chooser_button_new_with_backend): Use default title if
3938 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
3941 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3945 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
3946 a pending operation to select the first row.
3948 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3950 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
3951 button_data_free() explicitly; the button is weak-reffed and the
3952 callback will free the button data. Fixes #163010.
3953 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
3954 failure case, call gtk_widget_destroy() on it.
3956 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
3957 gtk_file_system_get_folder() again (see the ChangeLog entry from
3958 2004-08-25). We can't first get the parent folder and then
3959 request the info for the path in question, as the parent folder
3960 may not be readable. See bug #162617.
3961 (gtk_file_chooser_default_set_current_folder): Assert that the
3962 passed-in path is not null.
3963 (shortcuts_find_current_folder): Likewise.
3964 (shortcuts_add_current_folder): Likewise.
3965 (set_list_model): Likewise.
3966 (gtk_file_chooser_default_map): Only reload the current folder if
3968 (bookmarks_check_add_sensitivity): Check for the current folder
3970 (browse_files_select_first_row): Don't set the cursor if there is
3973 2005-01-05 Matthias Clasen <mclasen@redhat.com>
3975 * gtk/gtkfilechooserdefault.c: Don't construct errors from
3976 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
3977 (get_file_info, check_is_folder): Translate errors from
3978 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
3979 of the fix for #162911, noticed by Murray Cumming.
3981 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
3983 * gtk/gtkviewport.c (gtk_viewport_realize):
3984 * gtk/gtktextview.c ((text_window_realize): Set the background of
3985 the windows to None instead of adding EXPOSURE_MASK, as suggested
3988 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
3989 the user time when receiving a WM_DELETE message. (#162980,
3992 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
3994 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
3995 only reorder on button 1, part of #141937
3997 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
4001 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
4002 to win->window's event_mask
4004 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
4005 to viewport->view_window.
4007 2005-01-04 Matthias Clasen <mclasen@redhat.com>
4009 * demos/testpixbuf.c (main): Remove the size_prepared callback,
4010 to test incremental display.
4011 (new_testrgb_window): Return the drawing area, not the window,
4012 since we want to queue draws on the drawing area.
4014 2005-01-03 Matthias Clasen <mclasen@redhat.com>
4016 * examples/*: Re-extract.
4018 * docs/tutorial/gtk-tut.sgml: Small corrections.
4020 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
4021 section. (#161414, Robert Ancell)
4023 * docs/tutorial/gtk-tut.sgml: Make it build.
4025 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
4026 regarding modality. (#112903, Dave Bordoley)
4028 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
4029 Add a little motivation. (#145556, Tommi Komulainen)
4031 * docs/tutorial/gtk-tut.sgml: Clarify section on
4032 g_signal_connect_swapped. (#120543, David Bourguignon)
4034 Make gtk_icon_theme_load_icon() work independent of
4035 icon factory initialization. (#162791, Tristan Van Berkom)
4037 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
4038 _gtk_icon_factory_ensure_default_icons, and make it non-static.
4040 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
4042 2005-01-02 Matthias Clasen <mclasen@redhat.com>
4044 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
4045 Don't add a shortcut here. (#162752, Tor Lillqvist)
4047 2005-01-02 Tor Lillqvist <tml@iki.fi>
4049 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
4050 CoTaskMemFree in get_special_folder() below.
4052 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
4053 Win32 using _gtk_file_system_win32_path_compare().
4055 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
4057 * gtk/gtkfilechooserbutton.c (model_add_special)
4058 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
4059 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
4062 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
4063 consider all drives "mounted", including floppies. Trying to
4064 inspect the contents of a nonexistent floppy will cause errors
4065 later that are handled normally, no need to avoid them
4066 completely. Keep the drive type in the GtkFileSystemVolume.
4067 Support UNC paths. (#161797, #137874) Fix error message
4068 capitalizations as in gtkfilesystemunix.c.
4070 (gtk_file_system_win32_init): Start one timeout per
4073 (gtk_file_system_win32_finalize): Remove the timeout.
4075 (get_special_folder): Copied from GLib.
4077 (_gtk_file_system_win32_get_desktop): New function, uses
4078 get_special_folder().
4080 (gtk_file_system_win32_list_volumes): Don't start a timeout at
4081 each call to this function. Don't assume A: and B: are floppies.
4083 (gtk_file_system_win32_get_volume_for_path): Don't assume all
4084 volumes are drive roots, i.e. support share roots of UNC paths
4087 (gtk_file_system_win32_get_folder): Don't assume errno is set
4088 after g_file_test() returns FALSE. It isn't on Win32 (and even on
4089 Unix I don't think one should assume anything about errno after
4092 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
4094 (gtk_file_system_win32_volume_get_display_name): Don't call
4095 GetVolumeInformation() on drives A: or B: if they are removable,
4096 as they might then be floppies, causing an unnecessary
4099 (gtk_file_system_win32_volume_render_icon): Use network icon for
4100 unrecognized drive types.
4102 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
4103 confused by UNC paths.
4105 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
4106 for case-insensitive UTF-8 path comparison.
4108 (extract_icon): Use SHGetFileInfo() which is faster than
4109 ExtractAssociatedIcon(). Icon extraction is still slow, though,
4112 (win32_pseudo_mime_lookup): Don't use the same icon for all
4113 shortcuts or executables. Cache only other file type icons.
4115 (gtk_file_system_win32_render_icon): Use network stock icon for
4116 remote drives and UNC server share roots. Compare home directory
4117 case-insensitively. Do lookup icons also for executable files,
4118 after all, it's these files that can have individual icons in the
4119 first place. Yes, it can be slow. Needs work.
4121 (filename_is_drive_root): Require also the slash after the colon.
4123 (filename_is_server_share): New function.
4125 (_gtk_file_system_win32_path_compare): New function, does
4126 case-folded UTF-8 comparison.
4128 * gtk/gtkfilesystemwin32.h: Declare
4129 _gtk_file_system_win32_path_compare().
4131 2005-01-01 Matthias Clasen <mclasen@redhat.com>
4133 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
4134 custom image by passing NULL.
4135 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
4136 a problem with changing stock labels. (#162273, Marcin
4139 2005-01-01 Tor Lillqvist <tml@iki.fi>
4141 * gtk/gtkmodules.c (get_module_path)
4142 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
4143 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
4144 g_getenv() now returning UTF-8 on Win32, no need to call
4147 2004-12-31 Matthias Clasen <mclasen@redhat.com>
4149 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
4150 (_gtk_key_hash_lookup): Don't sort a list of values as if
4151 it was a list of entries. This fixes crashes during mnemonic
4152 activation in the presence of multiple keymaps. (#162488,
4155 2004-12-30 Matthias Clasen <mclasen@redhat.com>
4157 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
4158 state propagation when making an insensitive combo box sensitive
4159 again. (#162524, Carlos Garnacho Parro)
4161 * gtk/gtkfilechooserdefault.c: Use secondary text for error
4164 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
4165 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
4166 for error messages. Also mark some error messages for translation,
4167 fix capitalization of error messages.
4169 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4170 Use g_value_get_boolean() for ellipsize_set. (#162447,
4173 2004-12-30 Tor Lillqvist <tml@iki.fi>
4175 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
4178 2004-12-28 Matthias Clasen <mclasen@redhat.com>
4180 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
4181 submenu direction from the parent menu.
4183 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
4184 Return a boolean indicating whether an item in the submenu
4186 (gtk_real_menu_shell_move_current): When going in child
4187 direction, don't get stuck at completely insensitive
4188 submenus. (#162055, Billy Biggs)
4190 2004-12-27 Matthias Clasen <mclasen@redhat.com>
4192 Make the clipboard image API more robust (#162357,
4193 Torsten Schoenfeld):
4195 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
4196 ref the pixbuf if it is NULL.
4198 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
4199 NULL-terminate the varargs in the call to
4200 gdk_pixbuf_save_to_buffer().
4201 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
4202 if there is data to load.
4204 2004-12-27 Matthias Clasen <mclasen@redhat.com>
4206 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
4207 Set x_root and y_root in button and motion events from
4208 extended input devices. (#148715, Robert Ögren)
4210 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
4211 typo. (#162339, Alessio Dessi)
4213 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
4214 properties as new since 2.4. (#156101, Billy Biggs)
4216 * configure.in: Add a warning about the linux-fb
4217 target. (#155488, Zeeshan Ali)
4219 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
4222 2004-12-26 Matthias Clasen <mclasen@redhat.com>
4224 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
4225 Typo fix. (#162219, Masao Mutoh)
4226 (gtk_file_chooser_set_preview_widget_active):
4227 Another typo. (#162218, Masao Mutoh)
4229 2004-12-23 Matthias Clasen <mclasen@redhat.com>
4231 * gtk/gtkliststore.c (gtk_list_store_iter_children):
4232 Return TRUE if there are children. (#162134, Iñigo Serna,
4233 patch by John Finlay)
4235 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
4236 Transfer state from the button to the cell view to get
4237 prelighting right. (#156327, Ricardo Veguilla)
4239 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
4241 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
4242 timeout. Written by Christian Persch.
4244 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
4248 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
4249 background for windows that get expose events.
4251 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
4252 hack to repaint !expose windows.
4254 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
4256 Bug #147497, make menu items activate immediately when you release
4259 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
4260 items activate immediately.
4262 * gtk/gtkmenu.c (definitely_within_item): New function
4263 * gtk/gtkmenu.c (check_threshold): New function
4265 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4267 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
4268 null the mnemonic_menu when unsetting a mnemonic, reported
4271 2004-12-21 Matthias Clasen <mclasen@redhat.com>
4273 * gtk/gtkliststore.c (generate_order): Generate the order the
4274 way it is supposed to be, order[new_pos] == old_pos.
4275 (gtk_list_store_reorder): Invert the order before using it.
4277 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4279 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
4281 * gtk/gtkliststore.c (generate_order): Generate the order the
4282 way it is supposed to be, order[new_pos] == old_pos.
4283 (gtk_list_store_reorder): Invert the order before using it.
4285 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
4288 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
4290 * gtk/queryimmodules.c (main): print out the version and binary
4291 name in the header comment. Problem reported by Seth Nickell.
4293 2004-12-20 Matthias Clasen <mclasen@redhat.com>
4295 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
4296 root path to gtk_tree_model_rows_reordered(). (#161720,
4297 Marcin Krzyzanowski)
4299 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
4300 translate NULL messages. (#161789, Morten Welinder)
4302 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
4303 the secondary label on show_all(). (#161707, Christian Persch)
4305 2004-12-19 Tor Lillqvist <tml@iki.fi>
4307 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
4308 Use wide character API when available. Use UTF-8 for filenames.
4310 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
4311 the string's trailing zero byte in the property's length, just for
4314 2004-12-18 Matthias Clasen <mclasen@redhat.com>
4316 * gtk/gtkfilechooserentry.c (check_completion_callback)
4317 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
4319 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
4320 (shortcuts_drag_outside_idle_cb): Add missing
4321 GDK_THREADS_ENTER/LEAVE. (#161604)
4323 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
4324 (list_select_func): Don't call gtk_file_info_get_is_folder()
4327 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
4328 (gtk_about_dialog_init): Add missing initializations. (#161646,