1 2005-06-27 Matthias Clasen <mclasen@redhat.com>
3 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
4 GrabBroken events which are caused by overgrabbing inside
5 the application; menus rely on these for their operation.
7 * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
10 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
11 grab_window to NULL when generating GrabBroken events for
12 WM_KILLFOCUS messages.
14 * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
15 (_gdk_xgrab_check_destroy): Set grab_window to NULL when
16 generating GrabBroken events when the grab window becomes
17 unviewable or is destroyed.
19 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
20 Generate GrabBroken events when overriding a grab inside
21 the application. In this case, set grab_window to the new
24 2005-06-27 Matthias Clasen <mclasen@redhat.com>
26 * gtk/gtkbutton.c (gtk_real_button_activate): Continue
27 to activate even if we can't grab the keyboard.
28 (gtk_button_finish_activate): Only ungrab when we have
29 a keyboard grab. (#172998, William Jon McCann)
31 2005-06-27 Matthias Clasen <mclasen@redhat.com>
33 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
34 Avoid a segfault. (#309054)
36 2005-06-27 Matthias Clasen <mclasen@redhat.com>
38 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
39 fields for grab timestamps.
41 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
42 Store grab timestamps when grabbing.
44 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
45 (gdk_display_pointer_ungrab): Don't unset the grab_window
46 if the timestamps indicate that the ungrab will fails.
48 * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
49 they are grab-shadowed by something thats not a
50 submenu. (#145416, Euan MacGregor)
52 2005-06-27 Owen Taylor <otaylor@redhat.com>
54 * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
57 2005-06-27 Kjartan Maraas <kmaraas@gnome.org>
59 * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
60 * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
63 2005-06-27 Matthias Clasen <mclasen@redhat.com>
65 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
68 * configure.in: Require GLib 2.7.1
70 2005-06-26 Matthias Clasen <mclasen@redhat.com>
72 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
73 Unregister XIM callbacks here. (#309054)
75 * modules/input/gtkimcontextxim.h: Small cleanup.
77 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
78 scroll offset when drawing the box. (#308834, Tom von
81 2005-06-26 Tor Lillqvist <tml@novell.com>
84 * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
85 keyword, so no need to remove those entries from the import
86 library. libtool installs the .dll.a import library itself, so no
87 need to do it here. Install the .def file.
89 Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org>
91 * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
92 GDK_GRAB_BROKEN to the switch cases.
94 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
97 * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
99 2005-06-26 Matthias Clasen <mclasen@redhat.com>
101 * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
102 header drag operations if the grab is broken.
104 * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
107 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do
108 explicitly ungrab pointer and keyboard. We're unmapping
109 the grab window anyway.
110 (gtk_combo_box_popup): Handle grab failures.
112 2005-06-25 Matthias Clasen <mclasen@redhat.com>
114 * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
115 Don't emit grab-broken for overgrabbing, until we figure
116 out how to do that without breaking the menu code.
118 2005-06-25 Matthias Clasen <mclasen@redhat.com>
120 Add a GrabBroken event to GDK, and a grab-broken-event
121 signal to GtkWidget. (#107320, Simon Cooke, initial patch
124 * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
125 define a GdkEventGrabBroken event struct.
127 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
128 Generate GrabBroken events in response to WM_KILLFOCUS.
130 * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
131 when a grab is broken by the window becoming unviewable,
132 or by another grab from the same client.
134 * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
136 * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
137 GrabBroken events into grab_broken_event signals.
139 * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
142 * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
143 the menu when the grab is broken.
145 * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
146 the color picker if the grab is broken.
148 * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
151 2005-06-25 Matthias Clasen <mclasen@redhat.com>
153 Add some new stock items. (#166480, Kristof Vansant)
155 * gtk/stock-icons/stock_fullscreen_16.png:
156 * gtk/stock-icons/stock_fullscreen_24.png:
157 * gtk/stock-icons/stock_leave_fullscreen_16.png:
158 * gtk/stock-icons/stock_leave_fullscreen_24.png:
159 * gtk/stock-icons/stock_info_16.png:
160 * gtk/stock-icons/stock_info_24.png: New icons.
162 * gtk/stock-icons/Makefile.am: Add new icons.
164 * gtk/gtkstock.h: Define names for the new icons.
166 * gtk/gtkstock.c (builtin_items): Register new stock items.
168 * gtk/gtkiconfactory.c (get_default_icons): Register new
171 2005-06-24 Owen Taylor <otaylor@redhat.com>
173 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
174 conversion functions for MSB machines: convert_0888[_br]
175 now work on bytes so are endian independent.
176 (Reported by David Zeuthen)
178 2005-06-24 Matthias Clasen <mclasen@redhat.com>
180 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
181 jump to the next line if we are at the end of the line.
182 (gtk_text_view_move_cursor_internal): Make movement by
183 paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
185 2005-06-23 Tor Lillqvist <tml@novell.com>
187 Improve and simplify line segment rendering on Win32, especially
188 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
189 bugs #306396 and #308413.
191 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
192 line_style, cap_style and join_style as such in the
193 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
194 check the line_style.
196 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
197 up the GDI pen type, style, end cap and join attributes to use
198 based on the pen width, GDK line style, end cap style, and join
201 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
202 cap style, which typically are used for XOR drawing where it is
203 essential that the last pixel is not drawn, use a GDI cosmetic
204 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
205 deduced this by experimetation, the documentation is rather vague.
207 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
208 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
209 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
210 single-pixel length lines are drawn. (For sngle-pixel width lines
211 roundness as such is of course irrelevant.) For dashed lines, use
214 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
215 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
217 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
218 work better than PS_USERSTYLE. For other dashed lines, use
219 PS_USERSTYLE and the dashes as set by the user (or the default
220 four-pixel on-off style).
222 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
223 Call fixup_pen() to do the pen settings after modifying some of
224 the GDK GC attributes that affect pens.
226 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
227 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
228 instead of the the removed pen_double_dash member. Don't use
229 PATCOPY unconditionally in the PatBlt() call, use a raster op
230 code that depends on the GC function in use.
232 (draw_rectangle, draw_segments, draw_lines): Be more careful in
233 deciding when to do the manual dash rendering.
235 (draw_segments): Don't do any manual "last point" drawing at
236 all. The above changes takes care of narrow line segments being
237 drawn correctly in most cases, at least on NT-based Windows.
239 2005-06-23 Matthias Clasen <mclasen@redhat.com>
241 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
242 Fix an error in the cache timeout logic. (#166601, Morten
245 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
246 keynav for header reordering and resizing to Alt-arrows and
247 Shift-Alt-arrows, following a proposal by the keynav
248 authority. (#308666, Calum Benson)
250 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
251 a leftover debugging envvar.
253 2005-06-23 Owen Taylor <otaylor@redhat.com>
255 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
256 big endian case for 3-channel source. (Reported by
259 2005-06-23 Matthias Clasen <mclasen@redhat.com>
261 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
262 trigger warnings if there are extra references to the
263 hbox. (#308677, Dan Winship)
265 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
266 g_file_set_contents(). (#308722, Morten Welinder)
268 2005-06-22 Matthias Clasen <mclasen@redhat.com>
270 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
271 time field in the event. (#308573, Morten Welinder)
273 * gtk/gtkfilesystemunix.c: Remove gratitious differences
274 between the stable branch and HEAD, which sneaked in with
275 the bookmark renaming.
277 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
279 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
282 2005-06-21 Matthias Clasen <mclasen@redhat.com>
287 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
288 on centering calculations to match the behaviour of other parts
289 of GTK+. (#307419, Ryan Lortie)
291 2005-06-21 Matthias Clasen <mclasen@redhat.com>
293 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
294 button-release-event as well, to handle touchscreen
295 scenarios better. (#171490, Markku Vire)
297 * gtk/*.h: Trivial cleanups. (#169647, #303455,
298 Fabricio Barros Cabral, Benoit Carpentier)
302 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
303 function which can be used to implement scrolling in
304 non-window widgets. (#135165, Søren Sandmann)
306 2005-06-20 Matthias Clasen <mclasen@redhat.com>
308 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
311 2005-06-20 Matthias Clasen <mclasen@redhat.com>
313 * configure.in: Bump version number.
315 * === Released 2.7.0 ===
317 2005-06-20 Matthias Clasen <mclasen@redhat.com>
321 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
322 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
324 2005-06-19 Matthias Clasen <mclasen@redhat.com>
326 * gtk/gtk.symbols: Add a forgotten symbol
330 2005-06-19 Kristian Rietveld <kris@gtk.org>
332 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
333 check which avoids processing updates on bin_window and scrolling
334 if the node is already visible. (#170600, Billy Biggs).
336 2005-06-19 Kristian Rietveld <kris@gtk.org>
338 * gtk/gtktreeview.c (validate_visible_area): only keep the
339 row at the same position if the full row is visible. (#304623,
342 2005-06-19 Kristian Rietveld <kris@gtk.org>
344 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
345 if treeview's height is smaller than the current page_size (just
346 like we do elsewhere).
348 2005-06-19 Kristian Rietveld <kris@gtk.org>
350 Make mousewheel scrolling possible in typeahead mode, suggestion
351 from Reinout van Schouwen (#307898).
353 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
354 connect treeview search window to scroll_event signal,
355 (gtk_tree_view_search_scroll_event): implement.
357 2005-06-19 Kristian Rietveld <kris@gtk.org>
359 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
360 the event on to treeview, so it has a change of selecting a row, etc.
361 (#169677, Kirk Bridger).
363 2005-06-19 Kristian Rietveld <kris@gtk.org>
365 This commit includes a fix for #169463, Stefan Kost.
367 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
368 when cell_area is set, return cell_area width/height as width/height,
369 so the focus rectangle will be drawn correctly.
371 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
372 of focus-line-width property,
373 (validate_row): take focus_line_width into account.
375 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
376 also take focus_line_width into account when calculating the cell_area
377 y and height (before, we only took it into account when calculating
380 2005-06-19 Matthias Clasen <mclasen@redhat.com>
383 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
384 with getter and setter. (#171612, Christian Neumair)
386 2005-06-18 Matthias Clasen <mclasen@redhat.com>
388 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
389 work for inserting before/after an existing menuitem or
390 toolitem. (#155946, Christian Persch)
392 * tests/testmerge.c (delayed_toggle_dynamic): Test the
393 "insert after" functionality of gtk_ui_manager_add_ui.
395 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
396 (#300678, Sven Neumann)
398 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
399 constructed with GtkUIManager.
403 * gtk/gtkimage.c (gtk_image_clear): Make this function
404 public. (#64792, Havoc Pennington)
406 2005-06-18 Kristian Rietveld <kris@gtk.org>
408 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
409 of the separate loop setting cell data with cell drawing loop
410 (introduced in revision 1.280), since this breaks focus handling
413 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
415 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
416 checks don't work on boxed types.
418 * gdk/x11/gdkcursor-x11.c:
419 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
422 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
424 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
427 2005-06-18 Matthias Clasen <mclasen@redhat.com>
429 * gtk/gtkcellrenderertoggle.c:
431 * gtk/gtktreeview.c: Typo fixes in comments.
433 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
434 2 children are added. (#308111, Morten Welinder)
436 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
437 1-based. (#163842, Pierre Ossman)
439 2005-06-17 Kristian Rietveld <kris@gtk.org>
441 Fix #160281, testcase from Peter Bloomfield.
443 * gtk/gtktreeview.c (do_presize_handler): always size request
444 and update adjustments in fixed height mode,
445 (gtk_tree_view_build_tree): if a fixed height is set, set this
446 height on newly added nodes.
448 2005-06-17 Tor Lillqvist <tml@novell.com>
450 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
451 and suggested_action fields in the GdkDragContext to
452 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
453 field, like eog, won't accept dropped files.
455 2005-06-17 Matthias Clasen <mclasen@redhat.com>
457 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
460 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
461 with getter and setter.
465 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
466 Add a setter for the urgency hint.
468 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
471 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
472 hint in the WM_HINTS property when appropriate.
474 2005-06-17 Matthias Clasen <mclasen@redhat.com>
476 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
478 * gdk/x11/gdkcursor-x11.c:
479 * gdk/gdkcursor.c: Improve some return_if_fail checks,
480 and add the missing non-Xcursor fallback for
481 _gdk_x11_cursor_update_theme(), noticed by Jeroen
484 * gtk/gtkbutton.c (gtk_button_class_init): Document
485 several button signals as not useful.
487 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
488 Resize the popup if necessary. (#308076, Vincent Noel)
490 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
491 draw on the old and new focus widgets, if their defaultness
492 changes. (#305607, Billy Biggs)
494 2005-06-17 Kristian Rietveld <kris@gtk.org>
496 * gtk/gtktreeview.c (validate_visible_area): make sure the row
497 above 'above_path' is always in a validated state, so it does
498 not mess up scrolling. (#303319, testcase from Billy Biggs).
500 2005-06-17 Matthias Clasen <mclasen@redhat.com>
502 * gdk/x11/gdkprivate-x11.h:
503 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
504 for cached cursors which are not associated with a window
505 at the time of the theme change, by storing a serial
506 number in each cursor, and updating the theme_serial
507 counter whenever the cursor theme changes.
509 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
510 Private function to update a cursor to the current
511 cursor theme if necessary.
513 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
514 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
515 _gdk_x11_cursor_update_theme() here.
517 2005-06-17 Owen Taylor <otaylor@redhat.com>
519 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
520 #if G_BYTE_ORDER == GDK_LSB_FIRST.
522 2005-06-17 Kristian Rietveld <kris@gtk.org>
524 * gtk/gtktreeview.c (validate_visible_area): don't try to update
525 the top_row rowref ourselves here, but just have _dy_to_top_row()
527 (gtk_tree_view_scroll_to_cell): handle scrolling via
528 validate_visible_area() if the treeview is not visible or needs
529 reallocation. (#165246, Nickolay V. Shmyrev).
531 2005-06-17 Kristian Rietveld <kris@gtk.org>
533 Fixes #307914 (Alexander Larsson), fixing some breakage caused
534 by my previous commit.
536 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
537 when it fits on a single page,
538 (scroll_sync_handler): same here.
540 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
542 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
544 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
545 g_return_val_if_fail.
547 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
550 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
551 takes a GtkWidget, not a GtkImage.
553 2005-06-16 Matthias Clasen <mclasen@redhat.com>
555 * gtk/gtkfilechooserdefault.c (button_new): Simplify
556 the code and respect the show-button-images setting.
557 (#307941, Vincent Noel)
559 * gtk/gtkdnd.c: Update the RGBA cursor if an
560 icon is set after the cursor has been constructed.
561 Also handle repeated setting of icons correctly.
563 2005-06-16 Matthias Clasen <mclasen@redhat.com>
565 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
566 docs. (#307818, Christian Persch)
568 2005-06-15 Matthias Clasen <mclasen@redhat.com>
570 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
571 Initialize all fields of the expose event. (#151693,
574 2005-06-15 Matthias Clasen <mclasen@redhat.com>
576 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
577 red and blue in place.
579 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
580 formatting, pointed out by Kjartan Maraas.
582 * gtk/gtksettings.c: Add two new settings,
583 gtk-cursor-theme-name and gtk-cursor-theme-size to
584 control the cursor theme.
586 * gdk/x11/gdkevents-x11.c: Add two new X settings,
587 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
588 these to the gtk settings.
590 * tests/testgtk.c (create_cursors): Add a cursor theme
593 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
594 GdkCursor and add a private getter for it, so that we can
595 update the cursor when the cursor theme changes.
599 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
600 New function to change the cursor theme.
602 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
603 g_return_if_fail() non-NULL checks.
605 2005-06-15 Matthias Clasen <mclasen@redhat.com>
607 * gdk/abicheck.sh: Use uniq to filter out duplicates.
608 * gdk/gdk.symbols: Fix a define.
610 2005-06-14 Matthias Clasen <mclasen@redhat.com>
612 * gtk/gtkwindow.c (gtk_window_parse_geometry):
613 Fix up the example. (#307699, Michal Suchanek)
615 2005-06-14 Matthias Clasen <mclasen@redhat.com>
617 * gtk/gtkcalendar.c: Update num_marked_dates as we
618 used to do. (#307689, Thorsten Schoenfeld)
620 2005-06-14 Federico Mena Quintero <federico@ximian.com>
626 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
627 "selection-changed" and do the normal housekeeping even if we are
628 in SAVE mode and there is nothing selected. We didn't emit that
629 signal if we were in SAVE mode and unselect_all() got called.
630 (gtk_file_chooser_default_unselect_all): Call
631 pending_select_paths_free() so that we cancel any asynchronous
633 (gtk_file_chooser_default_set_current_name): Likewise.
635 2005-06-14 Federico Mena Quintero <federico@ximian.com>
641 * gtk/gtkfilechooserdefault.c
642 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
643 mode. If the parent path is a folder, only create a subfolder if
644 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
645 and respond. Also, pick up the case where the user types
646 "dirname/" instead of "dirname".
647 (check_save_entry): Make the return type void. Add some return
648 parameters so that we can do more thorough checking.
649 (gtk_file_chooser_default_get_paths): If the file part is empty
650 and we are in SAVE mode, return an empty selection.
652 2005-06-15 Kristian Rietveld <kris@gtk.org>
654 Patch for #163214 (reported by Tommi Komulainen) and fixes some
655 other scrolling/validation related bugs along the why.
657 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
658 do_validate_rows once and don't queue a size request there,
659 (gtk_tree_view_size_allocate): don't update vadj value without
660 reason, sync top_row/dy after the window sizes and adjustments
662 (validate_visible_area): always update dy when scrolling,
663 manually set top_row here after changing the vadj (don't depend
664 on _adjustment_changed and top_row/dy sync to do this), since we
665 now always set top_row here correctly, we can always free
666 scroll_to_path at the end which avoids infinite expose loops,
667 (do_validate_rows): add queue_resize boolean, remove top_row/dy
668 sync here, we cannot do it safely at this place since the
669 window sizes and adjustments are out of sync,
670 (validate_rows), (validate_rows_handler): update call to
673 2005-06-14 Matthias Clasen <mclasen@redhat.com>
675 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
676 stub for the no-Xcursor case. (noticed by Luis Villa)
678 Use named cursors for the DND cursors, the names are "dnd-none",
679 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
680 cursor instead of cursor+window when possible. This saves
681 roundtrips during the drag operation, and makes translucent icons
684 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
685 for the default dnd cursors.
687 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
688 used during the drag here, also store the icon pixbuf here.
690 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
691 switch the default cursors from xbm to inlined pixbufs.
693 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
694 GtkDragSourceInfo as well, since it has to composite the
695 drag-specific cursors. The cursors combined from the image of
696 the themed cursor and the icon_pixbuf stored in the info.
698 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
699 icon if there is an icon_pixbuf, which will be composited into
702 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
703 the pixbuf in the info struct for later compositing into the
704 cursor instead of creating an icon window.
706 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
707 RGBA cursor for the drag, and need to display the cancel
708 animation, construct the icon window here.
710 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
711 drag-specific cursors and the icon_pixbuf when done with
714 2005-06-14 Matthias Clasen <mclasen@redhat.com>
716 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
717 with the name "color-picker", when available.
721 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
722 (gdk_cursor_new_from_name): New functions to construct named
723 cursors and to get the image used for a cursor.
725 2005-06-13 Matthias Clasen <mclasen@redhat.com>
727 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
728 path bar is done, implementing the following principles:
729 (#137289, patch by Benjamin Otte)
731 1. Re-root only if $HOME is an ancestor of the current path.
733 2. When re-rooting, make sure the Left arrow appears in the path
734 bar, so that you can navigate up from $HOME to /. In that case,
735 make sure the Right arrow doesn't appear if the sub-hierarchy from
736 $HOME to the cwd fits in the window.
738 3. Make sure that hitting Alt-Up takes you always one folder up,
739 even when the path bar is re-rooted.
741 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
742 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
744 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
745 Free the data of the row before overwriting it. (#307490,
748 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
750 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
751 leak the cairo context. Closes bug #307426.
753 2005-06-13 Matthias Clasen <mclasen@redhat.com>
755 Make invisible text work a bit better (#66194, patch by
759 * gtk/gtktextiter.[hc]: Add function to move by
762 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
763 Skip invisible text when moving by paragraphs.
765 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
766 Skip invisible lines here too.
768 2005-06-12 Matthias Clasen <mclasen@redhat.com>
770 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
771 Don't leak the format names. (#307190, Morten Welinder)
773 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
775 * gdk/x11/gdkasync.c: (send_event_handler): Plug
776 a leak. Closes bug #307281.
778 2005-06-12 Matthias Clasen <mclasen@redhat.com>
780 * gtk/gtkcalendar.c (calendar_paint_header):
781 (gtk_calendar_size_request): Allow localization of the
782 format in which the year is displayed. (#135451, Paisa
785 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
787 * gdk/gdkcairo.c: Small doc additions.
789 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
790 Check start_button_mask before starting a drag. (#149058,
793 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
794 Sayamindu Dasgupta, patch by Jan Arne Petersen)
796 2005-06-11 Matthias Clasen <mclasen@redhat.com>
800 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
801 provided by Owen Taylor.
805 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
806 Add a function to determine what parts of the model are
807 visible. (#306726, Jonathan Blandford)
809 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
810 files the same way as hidden files, to be closer to what
811 Nautilus does. (#136196, Sean Middleditch)
813 2005-06-10 Matthias Clasen <mclasen@redhat.com>
815 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
816 Don't modify strings returned from gettext().
818 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
820 * gtk/gtktextdisplay.c (render_para): don't use deprecated
821 gdk_gc_unref function.
823 2005-06-10 Matthias Clasen <mclasen@redhat.com>
825 Allow setting paragraph background. (#81045, Gustavo
826 Carneiro, patch by Jeroen Zwartepoorte)
828 * gtk/gtktextlayout.c (set_para_values): Propagate
829 pg_bg_color to the display struct.
830 (gtk_text_layout_free_line_display): Free it here.
832 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
833 is set, draw a rectangle in that color behind
836 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
837 paragraph-background, paragraph-background-gdk and
838 paragraph-background-set properties.
839 (set_pg_bg_color): A setter for paragraph-background.
841 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
844 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
846 (struct _GtkTextTag): Add pg_bg_color_set.
848 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
850 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
851 cairo surface when done with it. Plugs a fairly large leak in
853 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
854 826 blocks are definitely lost in loss record 25239 of 25250
855 Like this from nautilus.
857 2005-06-10 Michael Natterer <mitch@imendio.com>
860 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
861 to get an action's accel_closure (Fixes #141750 and #148106).
863 2005-06-10 Matthias Clasen <mclasen@redhat.com>
865 * gdk/gen-keyname-table.pl: Generate N_() calls for
866 translatable key names.
868 * gdk/keynames.txt: Mark some key names as translatable.
870 * gdk/keyname-table.h: Regenerated.
872 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
873 some context to the msg ids for keyboard modifiers and
875 (_gtk_accel_label_class_get_accelerator_label): Try to
876 translate key names. (#300224, Christian Rose)
878 2005-06-10 Federico Mena Quintero <federico@ximian.com>
884 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
885 immediately if we are in CREATE_FOLDER mode, so that we can fill
886 the entry with the newly-selected folder.
887 (gtk_file_chooser_default_set_property): Warn against turning on
888 multiple selection for CREATE_FOLDER mode, or about setting that
889 action while multiple selection is on.
890 (update_chooser_entry): Change the entry's contents as well if we
891 are in CREATE_FOLDER mode. If nothing is selected, clear the
893 (trap_activate_cb): Don't trap enter/space if modifiers are
894 pressed. This lets one use Ctrl-space to toggle rows in multiple
896 (gtk_file_chooser_default_should_respond): Clean up the if-chain
897 mess of special cases by using an array to determine what to do.
898 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
899 the bug where the file chooser would switch to an existing folder
900 rather than confirming with it, and create the folder ourselves.
901 (error_creating_folder_over_existing_file_dialog): New function.
903 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
904 insert the common prefix if we are in an "open" mode. Use a
906 (append_common_prefix): New helper function; code moved over from
907 check_completion_callback().
908 (find_common_prefix): New helper function.
909 (gtk_file_chooser_entry_focus): Append the common prefix if the
910 user requests it explicitly.
912 2005-06-10 Matthias Clasen <mclasen@redhat.com>
914 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
915 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
916 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
917 * gtk/gtkstock.c (gtk_stock_set_translate_func):
918 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
919 * gtk/gtkscrolledwindow.h:
920 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
922 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
923 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
924 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
926 2005-06-09 Matthias Clasen <mclasen@redhat.com>
928 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
930 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
931 (#306212, Steve Chaplin, docs provided by Billy Biggs)
933 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
934 cleanup. (#305539, Paolo Borelli)
936 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
938 * configure.in: added cairo to list of $GTK_PACKAGES.
940 2005-06-09 Matthias Clasen <mclasen@redhat.com>
942 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
943 the user time on the window when a drop happens. (#169364, Alexander
944 Hunziker, patch by Elijah Newren)
946 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
950 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
951 to scroll to a path. (#306838, Jonathan Blandford)
953 2005-06-08 Matthias Clasen <mclasen@redhat.com>
955 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
956 item. (#306839, Jonathan Blandford)
958 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
959 negative before appending the index, to avoid double error
960 message. (#306393, Morten Welinder)
962 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
963 Don't crash if search_window is NULL. (#304914, Victor Osadci,
964 testcase by Olaf Vitters)
966 * gtk/gtkimage.c: Make the file property readable.
967 (#170674, Lorenzo Gil Sanchez)
970 2005-06-08 Matthias Clasen <mclasen@redhat.com>
972 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
973 g_utf8_collate_key_for_filename().
975 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
977 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
978 Merge leak fix from stable. Bug 306754.
980 2005-06-05 Tor Lillqvist <tml@novell.com>
982 * gdk/win32/gdkscreen-win32.c
983 (_gdk_windowing_substitute_screen_number): Return NULL unless
984 screen number is zero. We have only one screen on Win32.
985 (gdk_screen_make_display_name): Call gdk_display_get_name() and
988 * modules/engines/Makefile.am
989 * modules/input/Makefile.am: Decide whether to build the
990 ms-windows theme engine based on the GDK backend, not based on
991 platform. (I.e., if building for Cygwin with the X11 backend, we
992 shouldn't build the ms-windows engine, but if building for Cygwin
993 but with the Win32 backend, we should.) Ditto for the IME
994 (Windows) input module. (#305832)
996 2005-06-04 Tor Lillqvist <tml@novell.com>
998 * gdk/win32/gdkcursor-win32.c
999 * gdk/win32/gdkwindow-win32.c
1000 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
1001 Support cursors with alpha on XP. Use code in common with the
1002 support for alpha icons that already was present. (#306101, Tim
1005 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
1006 in a way that more closely matches Windows. (#305986, Tim Evans).
1008 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
1011 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
1013 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
1014 * modules/engines/ms-windows/xp_theme.c: Ditto
1015 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
1017 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
1019 * gtk/gtkentrycompletion.h: Add declarations for
1020 gtk_entry_completion_{get,set}_popup_single_match.
1022 2005-05-26 Matthias Clasen <mclasen@redhat.com>
1025 * gtk/gtkentrycompletion.c: Add a property to suppress the
1026 popup for single matches. (#154711)
1028 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
1030 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
1033 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
1034 redisplay after modifying the tag in the btree, otherwise
1035 we end up showing the old tags until the next redraw comes
1036 around. (#143537, Gary Kramlich, Peter Wainwright)
1038 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
1039 autoscrolling work at the bottom of the screen.
1041 2005-05-26 Maciej Katafiasz <email@mathrick.org>
1043 * docs/reference/gtk/tmpl/gtkentry.sgml:
1044 Point to GtkTextView instead of GtkText. Fixes bug #305535
1046 2005-05-26 Sven Neumann <sven@gimp.org>
1048 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
1049 aggressive PNG compression level (bug #305340).
1051 2005-05-26 Tor Lillqvist <tml@novell.com>
1053 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
1054 from the root window, take the multi-monitor offset into
1057 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1059 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
1062 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
1063 Remove another C99ism.
1065 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
1066 background of rows insensitive when the treeview is insensitive.
1067 (pointed out by Billy Biggs)
1069 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
1070 and DND, and clipboard persistency.
1072 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
1073 Make sure png comes first, otherwise dnd may use bmp by
1074 default, loosing transparency.
1076 2005-05-25 Michael Natterer <mitch@imendio.com>
1078 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
1079 handler when changing cursor visibility because it would expose
1080 the whole paragraph where the cursor is. Instead, expose the
1081 cursors' areas manually. (#173047).
1083 (text_window_invalidate_cursors): new function which exposes the
1086 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
1087 same cursor size calculation is in text_window_invalidate_cursors().
1089 2005-05-25 Matthias Clasen <mclasen@redhat.com>
1091 * demos/gtk-demo/editable_cells.c (create_items_model): Also
1092 demonstrate GtkCellRendererProgress.
1094 * demos/gtk-demo/Makefile.am (demos):
1095 * demos/gtk-demo/combobox.c: Add a demo showing combo box
1098 * demos/gtk-demo/Makefile.am (demos):
1099 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
1101 2005-05-24 Matthias Clasen <mclasen@redhat.com>
1103 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
1105 2005-05-24 Tor Lillqvist <tml@novell.com>
1107 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
1108 gtk-alternative-button-order (setting it to TRUE).
1110 2005-05-23 Matthias Clasen <mclasen@redhat.com>
1112 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
1113 an unused variable. (#305130, Jaap A. Haitsma)
1115 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
1116 the focus away from the file list when operating the filter
1117 combo with the pointer. (#304844, Sven Neumann)
1119 2005-05-23 Tor Lillqvist <tml@novell.com>
1121 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
1122 GDK_Menu. (#172383, Ivan Wong)
1124 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
1125 of the special cases this function takes care of, use it as
1126 such. This takes care of for instance the Bengali Virama, see bug
1129 2005-05-20 Matthias Clasen <mclasen@redhat.com>
1131 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
1132 buffer overrun. (#142444, Leonard Michlmayr)
1134 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
1137 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1139 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
1140 Use the correct function to conver the uri to a path. (#304565,
1143 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
1144 Cancel button properly. (#304234, Sven Neumann)
1146 2005-05-18 Anders Carlsson <andersca@imendio.com>
1148 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
1149 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
1150 * gtk/gtktextview.h:
1151 If the horizontal adjustment changes because of a change in the
1152 layout width, then do a complete redraw. This is because there
1153 might be right-aligned or centered text that needs to be redrawn.
1155 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1157 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
1158 the event masks of descendent windows. (#169821, Tommi Komulainen)
1160 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
1161 (gtk_tree_view_set_column_drag_info): Fix some errors in the
1162 handling of drop columns. (#143355, John Finlay)
1164 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1165 Remove the no longer needed workaround.
1167 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
1168 allocations of mapped children.
1170 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1171 Add a bug reference.
1173 2005-05-18 Tor Lillqvist <tml@novell.com>
1175 * gdk/win32/gdkevents-win32.c
1176 * gdk/win32/gdkkeys-win32.c
1177 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1178 lParam of WM_KEY* messages to distinguish between left and right
1179 Control and Alt keys. Unfortunately, the right Shift key doesnt
1180 set KF_EXTENDED, so to distinguish between left and right Shift
1181 keys, check the scan code. (#304584)
1183 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1185 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1186 length overflows. (#161520, Ian Wienand)
1188 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1189 parameter names to make gtk-doc happy.
1191 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1192 values of draw-value and value-pos to be the values we
1193 actually use in _init. (#304547, Mikael Hallendal)
1195 * gtk/gtkcellrendererpixbuf.c: Support named icons in
1196 cells by adding a icon-name property. (#165777, Anders
1200 * gtk/gtktoolbutton.h:
1201 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
1202 (gtk_tool_button_get_icon_name): Support named icons in
1203 tool buttons by adding a icon-name property. (#116577,
1208 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
1209 (gtk_drag_set_icon_name): New functions to support themed
1210 drag icons. (#116577, Christian Neumair)
1212 2005-05-17 Owen Taylor <otaylor@redhat.com>
1214 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
1215 Update to changed cairo interface.
1217 * gdk/x11/gdkdrawable-x11.[ch]:
1218 Add _gdk_x11_drawable_update_size()
1220 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
1221 (gdk_window_move_resize)
1222 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
1223 Call _gdk_x11_drawable_update_size().
1225 2005-05-17 Matthias Clasen <mclasen@redhat.com>
1227 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1228 if the text view is not editable.
1230 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1231 the popup posted if the button is released over the cellview.
1232 This matches the behaviour of other combo box implementations.
1235 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1236 when recursing. (#153682, Felipe Heidrich)
1238 2005-05-16 Matthias Clasen <mclasen@redhat.com>
1240 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
1241 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
1243 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
1244 the entry is not editable. (#304171, Nikos Kouremenos)
1246 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
1247 Make sure the action of the button and the dialog are in sync,
1248 when the dialog is provided by the app. (#303987, David A Knight)
1250 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1251 in the docs. (#303940, Masao Mutoh)
1253 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1255 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1256 casting. (#304089, Philip Langdale)
1258 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1259 the label if we need to. (#169390, Felix Riemann)
1261 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
1264 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1267 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1268 call gdk_cairo_set_source_color() with a color.
1270 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1272 * tests/testiconview.c (main): cast args of drag functions to the
1275 2005-05-13 Owen Taylor <otaylor@redhat.com>
1277 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1279 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
1280 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1282 2005-05-11 Owen Taylor <otaylor@redhat.com>
1284 * tests/testgtk.c (on_alpha_window_expose): Fix to use
1285 gdk_cairo_create(). (create_alpha_window): Hook up "response"
1286 to close the window.
1288 2005-05-11 Owen Taylor <otaylor@redhat.com>
1290 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1291 to draw the swatch in to avoid having an extraneous window.
1293 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1294 color when !has_opacity.
1296 2005-05-10 Owen Taylor <otaylor@redhat.com>
1298 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1299 files for Cairo convenience functionality.
1301 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1302 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1304 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
1305 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1307 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1308 gdk_drawable_create_cairo_context() to gdk_cairo_create().
1310 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1311 Rename gdk_pixbuf_set_as_cairo_source() to
1312 gdk_cairo_set_source_pixbuf().
1314 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1315 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1318 * gdk/gdk.symbols: Update.
1320 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
1321 coordinate system problem that was causing the wrong portions
1324 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1325 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1326 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1327 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1328 gtk/gtkcellview.c (gtk_cell_view_expose)
1329 gtk/gtkdnd.c (gtk_drag_highlight_expose)
1330 gtk/gtkentry.c (gtk_entry_draw_text)
1331 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1333 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1334 GTK+ style ... use instance-private data and standard names for
1335 private structure, etc. Move function docs inline.
1337 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1338 expose. Switch drawing to Cairo.
1340 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1341 gtk_calendar_freeze/thaw
1343 2005-05-10 Tor Lillqvist <tml@novell.com>
1345 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1346 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1347 == gdk_screen_get_default(), as that might return NULL when this
1350 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1352 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1353 padding in RTL mode. (#303572, Maciej Katafiasz)
1355 2005-05-09 Owen Taylor <otaylor@redhat.com>
1357 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
1358 Fill in unused bits so they can be used for the depth-32 target case.
1359 Rewrite so that that gives a marginal speedup rather than a
1360 marginal slowdown. (on x86)
1362 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1363 Add gdk_screen_get_rgba_colormap/visual to get a visual for
1364 windows with an alpha channel, if one exists.
1366 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1367 Stub out gdk_screen_get_rgba_colormap/visual.
1369 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1370 "unused" wasn't right for depth == 32, since it depended on
1373 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1375 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1377 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1378 Implement again, without using Xft.
1380 * tests/testgtk.c: Add a test for windows with an alpha channel.
1382 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1384 * autogen.sh: Revert accidental commit.
1386 2005-05-08 Matthias Clasen <mclasen@redhat.com>
1388 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
1393 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1395 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1397 * gtk/gtkscrolledwindow.h:
1398 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
1399 (gtk_scrolled_window_get_cscrollbar): Change the return
1400 type to GtkWidget*, proposed by Owen Taylor.
1402 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
1403 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
1406 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1408 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1411 2005-05-07 Owen Taylor <otaylor@redhat.com>
1413 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1414 the background color.
1416 2005-05-07 Owen Taylor <otaylor@redhat.com>
1418 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
1419 Change prototype to match cairo_set_source_surface().
1421 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1422 gtk/gtkhsv.c tests/testcairo.c.
1424 2005-05-06 Federico Mena Quintero <federico@ximian.com>
1426 Merged from gtk-2-6:
1428 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1429 types if this is an AFS directory.
1430 (fill_in_names): If we are in an AFS directory, set the MIME type
1431 blindly to "x-directory/normal".
1433 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1435 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1436 initialize child-visible to FALSE, otherwise we may end up
1437 with the wrong page visible initially. (#302283, Patrik Fimml)
1439 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1440 appear insensitive in insensitive treeviews.
1442 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1444 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
1447 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1450 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1451 support in the tree view. (#150270)
1453 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1456 * gtk/gtkwidget.h: Small cleanups.
1458 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1461 2005-05-04 Owen Taylor <otaylor@redhat.com>
1463 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1464 in focus tracking when we move between has_pointer_focus and
1465 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
1468 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1469 happen in the case of no window manager + keyboard grabs, by
1470 moving to a more consistent model of when we pay attention to
1471 mode=NotifyGrab/NotifyUngrab events.
1473 * docs/focus_tracking.txt: Extensive writeup about how to track
1476 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
1478 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1479 cairo_set_source_surface()/cairo_paint();
1481 2005-05-04 Tor Lillqvist <tml@novell.com>
1483 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1484 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1485 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1486 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1489 2005-05-03 Matthias Clasen <mclasen@redhat.com>
1491 * gtk/gtkfilesystem.c:
1492 * gtk/gtkcelleditable.c:
1493 * gtk/gtktreemodel.c: Avoid getting the interface struct
1494 twice in the same function. (#300513, Billy Biggs)
1496 * gtk/gtkscrolledwindow.h:
1497 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
1498 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
1502 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
1503 Make this function public. (#170748, Morten Welinder)
1505 2005-05-02 Federico Mena Quintero <federico@ximian.com>
1507 Merged from gtk-2-6:
1511 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1512 to store struct stat for /afs and /net, and boolean fields to say
1513 whether these are valid.
1514 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1515 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1516 field of the folder structure.
1517 (fill_in_names): If the folder is a network directory, create a
1518 fake struct stat for its entries.
1519 (fill_in_stats): Don't stat() the children of network directories.
1521 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1522 is 0, use "Unknown" for the cell's displayed text.
1524 2005-04-28 Owen Taylor <otaylor@redhat.com>
1526 * gtk/gtkwidget.c: Add a draw-border style property to allow
1527 themes to draw outside the widget's allocation.
1529 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1530 that were working around the clip-leakage bug in Cairo.
1532 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1535 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1536 That updates a Cairo context to match a GC.
1538 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1539 for tiles/stipples/clipping to gdk_draw_glyphs(),
1540 gdk_draw_trapezoids().
1542 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1543 implementation of stipples. Use one cairo_t across the entire
1544 drawing operation. Replace cairo_matrix_create() with
1545 stack-allocated matrices.
1547 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1548 gdk/win32/gdkgc-win32.c: Save various aspects of the
1549 GC state (fill, tile, stipple, foreground, background, clip region)
1550 in instance-private-data for future use. Add getters.
1551 Get rid of _gdk_windowing_gc_get_foreground() function implemented
1554 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1555 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1556 _gdk_gc_init() to do initial setup of the GC from values;
1557 fixes some problems from drawable redirection.
1559 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1560 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
1561 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
1562 the generic code, add _gdk_windowing_gc_copy(),
1563 _gdk_windowing_gc_set_clip_region() to do backend specific
1566 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1567 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1568 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1569 Don't duplicate state that now is stored by the generic code.
1571 * gdk/gdk.symbols Update
1573 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1575 * tests/testiconview.c: Test cell renderers.
1577 * gtk/gtk.symbols: Add new functions.
1579 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1580 cell renderers for drawing and editing. (#148144, #160242)
1582 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1584 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1585 width for cases where pango_layout_get_pixel_extents() returns
1586 a rectangle with nonzero x.
1588 * gtk/gtkselection.c: Small doc fixes.
1590 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
1591 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1593 2005-05-02 Michael Natterer <mitch@imendio.com>
1595 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1596 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1597 multiple times when using gtk_get_option_group(), just as one can
1598 call gtk_init() multiple times without doing any harm.
1600 2005-05-01 Matthias Clasen <mclasen@redhat.com>
1602 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1603 the event to unanchored children in the text window.
1604 (#302494, Stephen Kennedy)
1606 2005-04-30 Tor Lillqvist <tml@novell.com>
1608 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1609 multi-monitor offset into account. (#302525)
1611 2005-04-29 Matthias Clasen <mclasen@redhat.com>
1613 * gtk/gtkradioaction.c: Make the docs build. (#302230,
1616 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1617 function, instead show the bin_window when it is created.
1619 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
1620 grab focus to unrealized widgets. (#302240, Philip Langdale)
1622 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1623 background upon state changes. (#301651, Billy Biggs)
1624 (gtk_tree_view_get_path_at_pos): Take RTL into account
1625 when iterating over the columns. (#302163)
1627 * configure.in: Check for nm.
1629 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
1630 Nguyen Thai Ngoc Duy)
1632 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1633 the internal unselect_all function, since we need the unselection
1634 to happen even in browse mode. (#300995, Mathias Hasselmann)
1636 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1637 of triggering a ::notify by re-setting the property. (#300982,
1640 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1642 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1643 scroll horizontally when necessary, and keep the northwest
1644 corner of the item visible. (#300913, Mathias Hasselmann)
1646 * tests/testiconview.c: Add some more tests.
1648 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1649 if the path does not point to a row in the model. (#300909,
1651 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
1654 * tests/testtext.c: Add some more attribute tests.
1656 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1657 of the rise property. String change, but it is more important to
1658 be correct than to be translated. (#301740)
1660 2005-04-25 Tor Lillqvist <tml@novell.com>
1662 * gtk/gtkfilesystemwin32.c
1663 (gtk_file_system_win32_volume_get_display_name): Get volume name
1664 also on Win9x. (#301798, Daniel Atallah)
1665 (canonicalize_filename): Add explicit braces to silence compiler
1668 2005-04-22 Tor Lillqvist <tml@novell.com>
1670 * gtk/gtkmain.c: Initailize gettext before use. Calling
1671 bindtextdomain() and bind_textdomain_codeset() in
1672 do_post_parse_initialization() is too late. Put the calls in a new
1673 function gettext_initialization(), and call that from
1674 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1675 GTK+'s part, but the same problem occurs also at least in
1676 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1678 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
1680 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1681 character height instead of cell height. Fix #301228.
1683 2005-04-18 Federico Mena Quintero <federico@ximian.com>
1685 Merged from gtk-2-6:
1687 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1688 obsolete assertion that the selected row can't be a volume; this
1689 is handled by the "removable" column now. Fixes #301017.
1691 2005-04-18 Owen Taylor <otaylor@redhat.com>
1693 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1694 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1695 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1696 setting color and opacity. (#301066, Vincent Noel)
1698 2005-04-15 Federico Mena Quintero <federico@ximian.com>
1700 Merged from gtk-2-6:
1702 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1703 Patch from Christian Neumair <chris@gnome-de.org>; only select the
1704 first row if we are in OPEN mode. The only other case we were
1705 letting pass through was SELECT_FOLDER, but selecting the first
1706 row when changing folders confuses people when folders are
1707 actually being selected. Fixes #171885.
1709 2005-04-13 Matthias Clasen <mclasen@redhat.com>
1711 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1712 Revert the fix for #169870, adjust the documentation instead.
1714 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1715 Revert the fix for #170727.
1717 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
1721 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1724 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
1727 2005-04-09 Matthias Clasen <mclasen@redhat.com>
1729 * gdk/x11/gdkinput-xfree.c:
1730 * gdk/x11/gdkinput-none.c:
1731 * gdk/gtk.symbols: Some more fixes necessary to
1732 make building with gcc 4 work.
1734 Add 16x16 versions of the zoom icons and of
1735 GTK_STOCK_INDEX. Some of the images were taken from
1736 the hicolor icon theme, and were originally created
1737 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
1740 * gtk/stock-icons/stock_index_16.png:
1741 * gtk/stock-icons/stock_zoom_1_16.png:
1742 * gtk/stock-icons/stock_zoom_fit_16.png:
1743 * gtk/stock-icons/stock_zoom_in_16.png:
1744 * gtk/stock-icons/stock_zoom_out_16.png: New images.
1746 * gtk/stock-icons/Makefile.am: Add the new images.
1748 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1749 Don't display too many broken images. (#169870, Roman
1750 Kagan, patch by Ivan Wong)
1752 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
1753 output. (#300013, Tommi Komulainen)
1755 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1757 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
1758 If a stock_id is unknown, display the missing image. (#169870,
1761 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
1762 as in updateiconcache.c. (spotted by Morten Welinder)
1764 2005-04-08 Carl Worth <cworth@cworth.org>
1766 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
1767 now that cairo exposes the cairo_matrix_t structure.
1769 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
1770 cairo API change in signedness of data argument.
1772 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1774 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
1775 work when called from gtk_combo_box_destroy(). (#172999,
1778 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1780 Fix double-click to autosize treeview columns. This was
1781 probably broken since 2.2 ! (#169675)
1783 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
1784 "user-resized" state of the column on a double-click to
1786 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
1787 Enter the "user-resized" state of the column only if a drag
1788 actually changes the column width, not on any click.
1790 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1792 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
1793 images on menus. (#169532, Benjamin Otte)
1795 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
1796 unaligned access. (#172947)
1798 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
1799 Consistently use the term "Bookmarks" in the UI. (#166906,
1802 Some fixes from Morten Welinder (#172947):
1804 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
1805 and platform-independent.
1806 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
1807 (build_cache): Error out if a stat fails.
1809 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1811 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
1812 a hint about hiding expanders.
1814 * gtk/updateiconcache.c (is_cache_up_to_date): Return
1815 TRUE if the cache is newer than the directory. (#172852,
1818 * configure.in: Replace an explicit pkg-config by
1819 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
1821 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
1822 Ignore regions which fall completely outside the line.
1823 (#165862, Felipe Heidrich)
1825 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1827 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1828 -1 as possible value.
1829 (gtk_tree_view_enable_model_drag_source)
1830 (gtk_tree_view_enable_model_drag_dest): Pass the target list
1831 to the underlying dnd implementation, otherwise we miss the
1832 target info in the drag-data-received signal. (#164085, Jorn
1835 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1837 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
1838 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1839 to gdk_window_get_pointer(). (#168015, Billy Biggs)
1841 * po/.cvsignore, po-properties/.cvsignore: Remove
1842 Makefile.in.in. (#171092, Stepan Kasal)
1844 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
1845 scanner->value, copy it first. (#165693, Tommi Komulainen)
1847 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1849 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
1850 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1851 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
1854 * gtk/gtkicontheme.c: Store icon caches along with the
1855 mtimes of the toplevel directories. The previous
1856 mechanism of a hashtable-per-theme caused duplicate icon
1857 caches for the same toplevel directory to be created.
1860 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1862 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
1863 Fix a typo in a warning.
1865 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1866 the license and credits buttons from being affected by
1867 gtk_widget_show_all(). (#172724)
1869 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1871 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
1872 reference to the item. (#167920, Hazael Maldonado Torres)
1874 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1875 more docs on interactive search.
1877 2005-04-05 Tor Lillqvist <tml@novell.com>
1879 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1880 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1881 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1883 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1884 24bpp GdkVisual on 32bpp displays. (#140706)
1886 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
1888 Fix for #172319, Tristan Van Berkom:
1890 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1891 gtk_tree_view_real_expand_row() instead of doing this by hand.
1893 2005-04-04 Johan Dahlin <johan@gnome.org>
1895 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1896 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1897 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1899 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
1901 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1902 cast combo->priv->entry to GTK_ENTRY()
1904 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1905 cast completion->priv->tree_view to GTK_TREE_VIEW()
1907 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1909 * gtk/gtktextbuffer.c: Some trivial doc fixes.
1911 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
1912 the wording of the doc comment. (#172422, Vincent Untz)
1914 2005-04-04 Owen Taylor <otaylor@redhat.com>
1916 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1917 drawing to Cairo. Also always draw the entire triangle instead
1918 of just drawing the center for prelight. (Fixes inconsistent
1919 drawing in GtkTreeView.)
1921 2005-04-04 Johan Dahlin <johan@gnome.org>
1923 * gtk/gtk.symbols: Remove symbols accidentally added.
1924 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1925 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1926 Use object_class instead of gobject_class
1928 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
1930 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1931 widget coordinates instead of root coordinates. Patch from Jorn
1934 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1936 * gtk/gtktoolbar.c: Add a tooltips property.
1938 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
1939 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1941 * gtk/gtktoggletoolbutton.c: Add an active property.
1943 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1945 Allow completion popups to be wider than the entry. (#131916,
1948 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1950 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1951 Don't force the popup to have the same width as the entry if
1952 popup-set-width is FALSE.
1954 * gtk/gtk.symbols: Add new functions.
1956 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1958 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1959 Use gtk_accel_map_change_entry(), so that reusing the same
1960 action name works. (#170727, Paolo Borelli)
1962 2005-04-04 Tor Lillqvist <tml@novell.com>
1964 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1965 function, to log a clipboard format name symbolically.
1966 (_gdk_win32_data_to_string): Also new, to log random data bytes.
1968 Implement delayed rendering on Win32, specifically for transfering
1969 images through the clipboard from GTK+ apps to other
1970 apps (#168173, implementation by Ivan Wong):
1972 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1973 Handle WM_RENDERFORMAT.
1975 * gdk/win32/gdkprivate-win32.h
1976 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1977 _delayed_rendering_data and _image_bmp.
1979 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1981 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1982 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1983 assume they are handled through delayed rendering.
1985 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1986 Return all available formats (including those registered by GTK+
1987 apps) on request_targets.
1988 (gdk_selection_property_get): We should append a zero byte like
1990 (gdk_win32_selection_add_targets): New function, for
1991 gtkselection's use. Win32 requires that the clipboard owner
1992 registers all valid formats even if the owner wants delayed
1994 (_gdk_win32_selection_convert_to_dib): New function. Convert
1995 images to DIB using gdk-pixbuf.
1997 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1999 * gtk/gtkselection.c (gtk_selection_add_target,
2000 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
2001 to register target formats.
2003 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
2005 2005-04-03 Hans Breuer <hans@breuer.org>
2007 [merged from gtk-2-6 branch]
2008 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
2009 the line pattern not the start of the line. Fixes bug #171641.
2011 * gtk/makefile.msc.in : follow .symbols changes
2013 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
2014 dynamically. (It is not available in _WIN_VER <= 0x0400)
2016 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
2018 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
2020 [also applied to gtk-2-6 branch]
2021 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
2023 * gdk/makefile.msc.in : add gtkmnemonichash.obj
2025 * test/testgtk.c(set_parent_signal) : use g_message instead of
2026 g_print to keep the 'testgtk --bench=all' output clean
2028 2005-04-03 Matthias Clasen <mclasen@redhat.com>
2030 * gtk/gtkruler.c: Add a "metric" property.
2032 * gtk/gtkradiomenuitem.c: Add a "group" property like
2033 the one found in radio buttons.
2035 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
2037 (gtk_radio_button_set_group): Add change notification.
2039 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2041 * gtk/gtkselection.c: Move documentation inline, document
2042 if add_target functions append or prepend. (#172350,
2045 2005-04-01 Matthias Clasen <mclasen@redhat.com>
2047 Make gtk_combo_box_get_active_text do the right thing for
2048 GtkComboBoxEntry (#171373, Robert Staudinger)
2050 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
2052 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
2055 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2056 Implement get_active_text by always returning the content of
2059 2005-03-31 Sven Neumann <sven@gimp.org>
2061 Merged from gtk-2-6:
2064 * gtk/gtkiconview.c: fixed gtk-doc comments.
2066 2005-03-31 Michael Natterer <mitch@gimp.org>
2068 Allow to pop up menus without grabbing the keyboard. Useful for
2069 stuff like virtual keyboards. Fixes bug #159890
2072 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
2073 and public API gtk_menu_shell_set/get_take_focus().
2075 * gtk/gtkmenu.c (gtk_menu_popup)
2076 (popup_grab_on_window): don't grab the keyboard if take_focus
2079 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
2080 parent menu_shell's take_focus property to the submenu which is
2081 about to be popped up.
2083 2005-03-30 Federico Mena Quintero <federico@ximian.com>
2085 Merged from gtk-2-6:
2089 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
2090 if the row which changed is the same as the row being edited.
2092 2005-03-30 Matthias Clasen <mclasen@redhat.com>
2094 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2095 Make enable_search control only typeahead, not C-f. (#170435,
2097 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
2099 * gdk/gdkpixbuf.h: Include cairo.h
2101 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
2102 Don't accept n_targets == -1.
2103 (clipboard_unset): unref the old_data, not the
2104 user_data which we have just cleared. (#172038, Sven
2107 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
2108 segfault if somebody tries to popup an unrealized
2109 combo box. (#172031, Felipe Heidrich)
2111 2005-03-30 Tor Lillqvist <tml@novell.com>
2113 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
2114 state field should represent the state before the event, like on
2116 (gdk_event_translate): Fix event filter handling. If an event
2117 filter (global, client message filter, of window-specific) returns
2118 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
2119 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
2120 from gdk_event_translate() which means that DefWindowProc() will
2122 (gdk_event_translate): Fix client message handling. Append a
2123 GDK_CLIENT_EVENT unless there is a filter that matches and returns
2124 something other than GDK_FILTER_CONTINUE. (#135552)
2126 2005-03-29 Matthias Clasen <mclasen@redhat.com>
2128 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
2129 Document the need to refilter if parameters of the visibility function
2130 change. (#169516, Olivier Sessink)
2132 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
2134 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2135 invalidate areas that are covered by mapped input-output child
2136 windows. Bug 141380.
2138 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
2140 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
2141 the preview label ellipsize so the dialog layout stays constant.
2144 2005-03-28 Matthias Clasen <mclasen@redhat.com>
2146 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
2147 the context menu of the search entry if it is not visible.
2148 (#169534, Billy Biggs)
2150 2005-03-27 Tor Lillqvist <tml@novell.com>
2152 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
2153 after all, and in fact necessary with HEAD libtool.
2155 2005-03-26 Matthias Clasen <mclasen@redhat.com>
2158 * gdk/gdkdisplaymanager.c:
2159 Use canonical names for g_object_notify() as well.
2161 2005-03-24 Tor Lillqvist <tml@novell.com>
2163 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
2164 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
2165 gtk+-2.0.pc file and automatically used by dependents. MSVC users
2166 who use pkg-config will have to manually edit it out from
2167 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
2168 some kind of conditionals in .pc files?
2170 2005-03-23 Matthias Clasen <mclasen@redhat.com>
2172 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2173 a call whose result was unused and leaked. (#170776,
2176 Some cleanups to the GtkDialog code: (#170746,
2178 * gtk/gtkdialog.c (action_widget_activated): Simplify,
2179 use _gtk_dialog_get_response_for_widget.
2180 (gtk_dialog_add_action_widget): Use the correct signal
2182 (gtk_dialog_set_response_sensitive):
2183 (gtk_dialog_set_default_response): Use get_response_data.
2184 (gtk_dialog_run): Don't disconnect the signals if the
2185 dialog was destroyed while running.
2187 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
2189 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2190 Use g_return_if_fail, not g_return_val_if_fail.
2192 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2194 Implement bookmark renaming (#136216, Sean Middleditch)
2196 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
2197 get_bookmark_label and set_bookmark_label vfuncs.
2199 * gtk/gtkfilesystem.h:
2200 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2201 (gtk_file_system_get_bookmark_label): Wrappers for the
2204 * gtk/gtk.symbols: Add new exported symbols.
2206 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
2207 (gtk_file_system_unix_get_bookmark_label): Implementations
2208 for the Unix backend.
2210 * gtk/gtkfilechooserdefault.c: Add a context menu to
2211 the bookmarks pane, and allow to rename bookmarks.
2213 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2215 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
2216 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
2217 * gtk/gtknotebook.c (gtk_notebook_unmap):
2218 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2219 the widget is unmapped. (#168791, Ryan Lortie)
2221 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2223 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2224 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2225 their G_ counterparts, but also mark the name, nick
2226 and blurb as static.
2228 * gtk/*.c: Mark param spec strings as static, using
2231 * gtk/gtkspinbutton.h: Fix a typo.
2233 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2235 * gtk/gtkcellrendererprogress.c:
2236 * gtk/gtkcellrendererpixbuf.c:
2237 * gtk/gtkcellrenderercombo.c:
2238 * gtk/gtkcellrenderer.c:
2239 * gtk/gtkcalendar.c:
2243 * gtk/gtkaspectframe.c:
2245 * gtk/gtkalignment.c:
2246 * gtk/gtkactiongroup.c:
2248 * gtk/gtkaccellabel.c:
2249 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2251 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
2252 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2253 param spec strings as static.
2255 2005-03-21 Tor Lillqvist <tml@novell.com>
2257 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2258 variables, unhandled enum value in switch). Use g_object_unref()
2259 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2261 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
2262 Add missing "case" keyword.
2264 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2267 2005-03-20 Tor Lillqvist <tml@novell.com>
2269 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2270 Terminal Services session number, window station name (always
2271 "WinSta0" in interactive processes), and desktop name (typically
2272 "Default"), concatenated with backslash separators.
2273 (gdk_display_open): Accept only NULL or the string
2274 gdk_display_get_name() returns as display name.
2276 2005-03-20 Matthias Clasen <mclasen@redhat.com>
2278 Make PLT-reduction work with gcc4, and don't include
2279 everything in gdkalias.h:
2281 * gtk/grk.symbols: Group symbols by header and source file.
2282 * gtk/makegtkalias.pl: Protect definitions by the same
2283 preprocessor symbols used to guard the headers. Move
2284 the alias declarations to a separate file which is
2285 produced when calling makegtkalias.pl -def
2286 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
2288 * gtk/*.c: Include gtkalias.h after the other headers,
2289 include gtkaliasdef.c at the bottom.
2290 * gtk/*.h: Small cleanups.
2292 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
2294 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2295 Make right-clicks not pop up the menu.
2297 2005-03-18 Owen Taylor <otaylor@redhat.com>
2299 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
2300 Call cairo_surface_finish()
2302 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2303 _gdk_windowing_set_surface_device_offset().
2305 2005-03-18 Tor Lillqvist <tml@novell.com>
2307 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2308 WM_MOUSEMOVE, don't check if this process owns the active
2309 window. This makes cross-application widget embedding work better.
2310 On WM_MOVE, don't bother checking for window visibility.
2312 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2313 unused variables. Add some casts to silence gcc.
2315 2005-02-24 Owen Taylor <otaylor@redhat.com>
2317 * gdk/gdkwindow.c: Use cairo_set_device_offset().
2319 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2320 gdk/win32/gdkpixmap-win32.c:
2321 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
2322 drawable. Add _gdk_drawable_win32_finish() to clean up resources
2323 when a drawable is destroyed.
2325 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2326 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
2327 acquire/release_dc when getting a DC to use with a GC or for
2328 blitting from a pixmap.
2330 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2332 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2333 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2336 * gdk/win32/gdkdrawable-win32.c: Remove
2337 gdk_draw_rectangle_alpha_libgtk_only()
2339 2005-03-17 Owen Taylor <otaylor@redhat.com>
2341 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2342 EXTEND_REPEAT on the stipple pattern.
2344 2005-03-17 Matthias Clasen <mclasen@redhat.com>
2346 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2347 in example in the docs. (#170611, Jianfei Wang)
2349 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2350 adjustment values on resize. (#170567, Tomislav Jonjic)
2352 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2353 if there is no cache. (#170652, Diego Gonzalez)
2355 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
2356 Make inline completion insert the prefix at the
2357 right spot. (#170146, Doug Quale)
2359 2005-03-17 Tor Lillqvist <tml@novell.com>
2361 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2363 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2365 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
2366 Typo fix in the docs.
2368 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
2369 Typo fix in the docs.
2371 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
2372 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
2373 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
2374 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
2375 (gtk_icon_view_set_column_spacing)
2376 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
2377 (gtk_icon_view_set_margin): Add docs.
2379 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
2382 2005-03-15 Owen Taylor <otaylor@redhat.com>
2384 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
2385 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2386 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2389 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2390 function to create_cairo_context()
2392 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2394 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2397 * tests/testcairo.c: Update for create_cairo_context()
2399 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2400 Reimplement in terms of Cairo, bypass the vtable entries.
2402 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2403 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2404 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2405 implementation of draw_trapezoids / draw_glyphs[_transformed].
2407 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2409 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2410 gdk_pango_context_get_for_screen() into the backend independent code.
2412 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2415 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2416 gdk_draw_rectangle_alpha_libgtk_only.
2418 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
2419 gdk_pixbuf_set_as_cairo_source()
2421 * gdk/gdk.symbols: Update
2423 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2424 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2426 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2427 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2428 radio button style for now to get something more scalable.
2430 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2431 antialiasing/dpi settings.
2433 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2435 * demos/gtk-demo/editable_cells.c: Also demonstrate
2436 GtkCellRenderer::editing-started and separators.
2438 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
2440 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2442 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2444 Make PLT-reduction work with gcc4, and don't include
2445 everything in gdkalias.h:
2447 * gdk/gdk.symbols: Group symbols by header and source file.
2448 * gdk/makegdkalias.pl: Protect definitions by the same
2449 preprocessor symbols used to guard the headers. Move
2450 the alias declarations to a separate file which is
2451 produced when calling makegdkalias.pl -def
2452 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2454 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2455 headers, include gdkaliasdef.c at the bottom.
2457 2005-03-16 Tor Lillqvist <tml@novell.com>
2459 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2460 debugging output only if asked for, not always.
2462 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2463 debugging printout instead of +%d+%d. Misc other additions and
2464 cosmetic improvements to debugging printouts. Use API_CALL() and
2465 GDI_CALL() macros in more places.
2467 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2468 gdk_window_move_resize): To detect child windows, check whether
2469 the real parent is not the desktop window, instead of relying on
2470 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2471 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2472 de facto child windows.
2474 * gdk/win32/gdkprivate-win32.h
2475 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2476 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2479 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2480 toplevel_window_type field.
2482 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2483 GDK on Win32, we can compare directly to _gdk_root instead of
2484 checking the window type.
2485 (gdk_window_reparent): When reparenting a child of the desktop
2486 clear out the window decorations. Correspondingly, when
2487 reparenting to the desktop, add decorations. As in the X11
2488 backend, save the window type of a toplevel window when
2489 reparenting, in case it is reparented back to toplevel.
2491 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2493 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2494 example for manually setting up a group of actions.
2496 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2497 Document that inline completion requires text-column to be set.
2498 (gtk_entry_completion_compute_prefix): Return NULL if text-column
2501 * gtk/gtkentry.c (check_completion_callback): Call
2502 gtk_entry_completion_complete() before inserting the prefix,
2503 otherwise the prefix may depend on (random) state of the
2506 2005-03-15 Anders Carlsson <andersca@imendio.com>
2508 * docs/iconcache.txt:
2511 * gtk/gtkiconcache.c: (find_image_offset),
2512 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2513 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2514 * gtk/gtkiconcache.h:
2515 Update to be able to fetch pixbuf data and icon metadata.
2517 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2518 (icon_info_ensure_scale_and_pixbuf):
2519 Use new cache functions.
2521 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2522 (maybe_cache_image_data), (scan_directory), (write_pixdata),
2523 (get_image_meta_data_size), (get_image_pixel_data_size),
2524 (get_image_data_size), (get_single_node_size), (get_bucket_size),
2525 (write_bucket), (main):
2526 Update to write pixbuf data as well as information from .icon
2529 2005-03-15 Tor Lillqvist <tml@novell.com>
2531 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2532 debugging function. As GetKeyNameText() returns a localized key
2533 name we need to convert it to UTF-8.
2535 * gdk/win32/gdkprivate-win32.h: Declare it.
2537 * gdk/win32/gdkevents-win32.c: Use it.
2539 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2540 handling of children of foreign windows. They should be child
2541 windows from Windows's perspective, even if they are toplevel GDK
2544 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
2546 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2547 for big window support. Now also the test in testgtk works.
2549 2005-03-11 Matthias Clasen <mclasen@redhat.com>
2551 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2552 style changes. (#169334, Yury Puzis)
2554 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2555 the doc comments. (#169967, Masao Mutoh)
2557 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
2559 Big window fix for Win32. Big windows are still emulated within
2560 16-bit coordinate limits, though. Big windows now work on NT-based
2563 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2566 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2568 * gdk/win32/gdkwindow-win32.c: Minor related changes.
2570 2005-03-10 Matthias Clasen <mclasen@redhat.com>
2572 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
2573 Fix a doc typo. (#169873, Johan Dahlin)
2575 * gtk/gtkdialog.c (gtk_dialog_map): Don't
2576 try to focus the default_widget if there is
2577 none. (#169881, Thomas Leonard)
2579 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
2581 * configure.in: Remove inadvertent gail references, require
2584 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2586 * configure.in: Require GLib 2.7.0
2588 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2590 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2591 (#169728, Morten Welinder, Owen Taylor)
2593 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2594 in the docs. (#169729, Morten Welinder)
2596 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2598 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
2599 when the model is unset. (#169528, Tomislav Jonjic)
2601 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2603 * gtk/gtkviewport.c (gtk_viewport_class_init):
2604 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
2605 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
2606 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
2607 * gtk/gtktext.c (gtk_text_class_init):
2608 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
2609 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
2610 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
2611 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
2612 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
2613 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
2614 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
2615 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
2616 * gtk/gtkimage.c (gtk_image_class_init):
2617 * gtk/gtkruler.c (gtk_ruler_class_init):
2618 * gtk/gtkiconview.c (gtk_icon_view_class_init):
2619 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
2620 * gtk/gtkprogress.c (gtk_progress_class_init):
2621 * gtk/gtkmenu.c (gtk_menu_class_init):
2622 * gtk/gtkscale.c (gtk_scale_class_init):
2623 * gtk/gtkpaned.c (gtk_paned_class_init):
2624 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
2625 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
2626 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
2627 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
2628 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2629 * gtk/gtkcurve.c (gtk_curve_class_init):
2630 * gtk/gtkcombo.c (gtk_combo_class_init):
2631 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
2632 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
2633 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
2634 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
2635 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
2636 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
2637 * gtk/gtkcellview.c (gtk_cell_view_class_init):
2638 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
2639 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
2640 * gtk/gtkclist.c (gtk_clist_class_init):
2641 * gtk/gtkctree.c (gtk_ctree_class_init):
2642 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
2643 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
2644 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
2645 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
2646 * gtk/gtkcalendar.c (gtk_calendar_class_init):
2647 * gtk/gtkbbox.c (gtk_button_box_class_init):
2648 * gtk/gtktable.c (gtk_table_class_init):
2649 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
2650 * gtk/gtkframe.c (gtk_frame_class_init):
2651 * gtk/gtkaction.c (gtk_action_class_init):
2652 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
2653 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
2654 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2656 2005-03-08 Matthias Clasen <mclasen@redhat.com>
2658 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
2659 * gtk/gtkrange.c (gtk_range_class_init):
2660 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
2661 * gtk/gtktexttag.c (gtk_text_tag_class_init):
2662 * gtk/gtktextview.c (gtk_text_view_class_init):
2663 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
2664 * gtk/gtknotebook.c (gtk_notebook_class_init):
2665 * gtk/gtkentry.c (gtk_entry_class_init):
2666 * gtk/gtkexpander.c (gtk_expander_class_init):
2667 * gtk/gtkarrow.c (gtk_arrow_class_init):
2668 * gtk/gtkalignment.c (gtk_alignment_class_init):
2669 * gtk/gtkbutton.c (gtk_button_class_init):
2670 * gtk/gtklabel.c (gtk_label_class_init):
2671 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
2672 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2673 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
2674 * gtk/gtktreeview.c (gtk_tree_view_class_init):
2675 * gtk/gtkbox.c (gtk_box_class_init):
2676 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
2677 * gtk/gtkcontainer.c (gtk_container_class_init):
2678 * gtk/gtkwidget.c (gtk_widget_class_init):
2679 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2680 when registering param specs.
2682 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2683 (#169607, Mark McLoughlin)
2685 * gtk/gtk.symbols: Add the new attributes here, too.
2688 * gtk/gtktreeview.h:
2689 * gtk/gtktreeviewcolumn.h:
2690 * gtk/gtktextbuffer.h:
2692 * gtk/gtkfilechooserdialog.h:
2694 * gtk/gtkcontainer.h:
2695 * gtk/gtkcelllayout.h:
2696 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2697 appropriate. (#165682, Marc Meissner)
2699 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2701 Convert the gdk keyval-keyname tables to a big string
2702 + offsets. (#168901)
2704 * gdk/gen-keyname-table.pl: Perl script inspired by
2705 pango/tools/gen-color-table.pl to create the
2706 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2707 of offsets pointing into a big const string.
2709 * gdk/keynames.txt: List of keyval-keyname pairs.
2710 * gdk/keyname-table.h: Generated tables.
2712 * gdk/gdkkeynames.c: Include keyname-table.h and don't
2713 generate the inverse table at runtime.
2715 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2717 * gtk/gtkstyle.c: Document which parameters may be NULL.
2718 (#166855, Frank Naumann)
2720 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2722 * AUTHORS: Add original authors of incorporated software.
2724 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
2726 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2728 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2730 * gtk/gtksettings.c (gtk_settings_get_property):
2731 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
2732 the values here. (#169047, Philip Langdale)
2734 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2735 Don't warn if a stock icon cannot be found. (#168830,
2738 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2740 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
2741 Avoid warnings if gtk_widget_reparent() is called at
2742 unusual times. (#168966, Christian Persch)
2744 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
2746 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
2747 const warnings on data structure seeding.
2749 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
2751 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2753 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2755 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
2756 Fix prelighting. (#157392, Vincent Noel, patch by
2759 * gtk/gtkicontheme.c (theme_lookup_icon): Make
2760 icon data caching work again. (#168851, Alexander Larsson)
2762 * gdk-pixbuf/gdk-pixbuf.c:
2763 * gdk-pixbuf/gdk-pixbuf-features.h.in:
2764 Revert the previous change, since it breaks
2767 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2770 * gdk/gdkpixbuf-drawable.c
2772 * gdk/x11/gdkdnd-x11.c
2773 * gdk/x11/gdkevents-x11.c
2774 * gdk/x11/gdkproperty-x11.c
2775 * gdk/x11/gdkvisual-x11.c
2776 * gdk-pixbuf/gdk-pixbuf.c
2777 * gdk-pixbuf/gdk-pixbuf-features.h.in
2780 * gtk/gtkcolorbutton.c
2782 * gtk/gtkcontainer.c
2783 * gtk/gtkfilechooserdefault.c
2787 * gtk/gtkinputdialog.c
2788 * gtk/gtkitemfactory.c
2792 * gtk/gtktreedatalist.c
2793 * gtk/gtkuimanager.c
2794 * gtk/tree_minus.xpm
2796 * gtk/xdgmime/xdgmime.c
2797 * gtk/xdgmime/xdgmime.h:
2798 Move constant data to .rodata.
2800 2005-02-27 Matthias Clasen <mclasen@redhat.com>
2802 * gtk/gtkaction.c (connect_proxy): Improve the handling
2803 of buttons as action proxys. (#165534, Milosz Derezynski)
2805 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
2806 (#168646, Vincent Untz)
2808 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
2809 Unset "focus-on-click" for the save folder combo. (#168688,
2812 2005-02-25 Matthias Clasen <mclasen@redhat.com>
2814 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
2817 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
2818 path here. (#168443, Morten Welinder)
2820 2005-02-24 Robert Ögren <gtk@roboros.com>
2822 Implement better handling of Wintab tablet context overlap on
2825 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2826 function that brings any tablet contexts to the top of the overlap
2828 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2829 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2830 Call _gdk_input_set_tablet_active when a window is activated (on
2833 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2835 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
2836 Don't leak parent_path. (#168435, Morten Welinder)
2838 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
2840 * gtk/gtkstyle.c: Add
2842 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2846 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2848 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2849 (gtk_combo_box_model_row_deleted): Update the displayed row in
2850 the cell_view. (#167842, Gustavo Carneiro)
2852 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2854 Fix #167259, reported by Christian Persch:
2856 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
2857 widget, even if we avoid the unrealizing.
2858 (gtk_widget_reparent_subwindows): Make reparenting work for
2859 !NO_WINDOW widgets which have other windows which are siblings
2860 of widget->window (as e.g. GtkSpinButton).
2862 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2864 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
2865 Don't emit a warning if a parent node is filtered out. (#164726,
2868 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2870 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
2871 change, since gtk_widget_set_style_internal() already
2874 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2876 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2877 fonts may have changed. (#164128, Phil Blundell)
2879 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
2880 (gtk_about_dialog_new): Move initialization code from _new to
2881 _init. (#168249, Murray Cumming)
2883 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
2885 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2886 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2889 2005-02-23 Tor Lillqvist <tml@novell.com>
2891 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2892 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2894 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
2896 * gtk/updateiconcache.c: #include <config.h>
2898 2005-02-22 Federico Mena Quintero <federico@ximian.com>
2900 Merged from gtk-2-6:
2902 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2904 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2905 (gdk_rgb_convert_565_d): Likewise.
2906 (DM_565): Made a static const precomputed array to avoid
2907 allocating it at runtime.
2908 (gdk_rgb_preprocess_dm_565): #ifdef out.
2910 2005-02-20 Matthias Clasen <mclasen@redhat.com>
2913 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2914 in the documentation.
2916 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2917 Set have_render_with_trapezoids to GDK_YES when we have
2918 a new enough Render extension. (#167965,Billy Biggs)
2920 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2921 the last user interaction when focusing the window. (#166379,
2924 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
2926 * gtk/gtkuimanager.c (start_element_handler): make sure expand
2927 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2929 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
2931 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2933 2005-02-16 Matthias Clasen <mclasen@redhat.com>
2935 * docs/iconcache.txt: Add some information about the
2936 icon cache format (since I can't locate it at freedesktop.org)
2938 Fixes for #143829, Tommi Komulainen, Christian Persch:
2940 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2941 typeselect_flush_timeout when destroying the widgets
2943 (gtk_tree_view_ensure_interactive_directory): Add the
2944 popup to the window group of the toplevel it belongs to.
2946 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
2947 (gtk_combo_box_popup): Do the same here.
2949 2005-02-14 Matthias Clasen <mclasen@redhat.com>
2951 * configure.in: Kill --enable-ansi (#164394)
2953 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2955 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
2956 when the pathbar goes away. (#167094, Rodney Dawes)
2957 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
2960 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2962 Support vertical menubars (#166632):
2964 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
2965 directions, with values for left-to-right, right-to-left,
2966 top-to-bottom and bottom-to-top.
2970 * gtk/gtkmenubar.c: Add two properties, pack-direction and
2971 child-pack-direction, which specify how children and
2972 grandchildren of a menubar are packed, with getters and setters.
2974 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
2975 (gtk_menu_bar_get_property): Implement set_property and get_property.
2977 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
2978 (gtk_menu_bar_size_allocate): Take pack direction into account.
2980 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
2981 move_current here move all the menubar-specific direction
2982 tweaking from the generic menushell implementation here.
2984 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
2985 direction tweaking from the generic menushell implementation here.
2987 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
2988 (gtk_menu_bar_size_allocate): Take pack direction into account.
2990 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
2991 (gtk_image_menu_item_size_allocate):
2992 (gtk_image_menu_item_toggle_size_request): Take child pack
2993 direction into account and pack the image vertically if
2996 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2997 Set the submenu direction to left-right for menuitems in
2999 (gtk_real_menu_shell_move_current): Simplify by moving
3000 direction tweaking to menu- and menubar-specific
3001 implementations. Take pack direction into account when
3004 * tests/testmenubars.c: Test menubars in various packing
3005 direction combinations.
3007 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
3009 2005-02-11 Matthias Clasen <mclasen@redhat.com>
3011 Complete the fix for #165770, Vincent Noel:
3013 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
3014 fallback size be 16, to be equal to the default for
3015 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3016 (gtk_file_chooser_button_init):
3017 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3018 GTK_ICON_SIZE_SMALL_TOOLBAR.
3020 2005-02-09 Matthias Clasen <mclasen@redhat.com>
3022 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
3023 keynav for going from menubar to menu.
3025 2005-02-08 Christian Rose <menthos@menthos.com>
3027 * configure.in: Added "xh" to ALL_LINGUAS.
3029 2005-02-08 Matthias Clasen <mclasen@redhat.com>
3031 * gtk/gtkuimanager.c (start_element_handler): Accept
3032 the "expand" attribute and set a flag in the node if it
3034 (update_node): If the expand flag is set, make separator
3035 toolitems non-drawn and expanding. (#166489, Christian Persch)
3037 2005-02-05 Hans Breuer <hans@breuer.org>
3039 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
3040 build with Cairo dependency. The patch to acually use Cairo
3041 on win32 will be on gtk-devel-list soon.
3042 * tests/makefile.msc : add testcairo building
3044 * gtk/stock-icons/makefile.msc : split command line into two to
3045 work with the shells default
3047 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
3049 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
3052 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3053 Add some extra parens for bitop order of operations disambiguiation.
3055 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
3056 domain when setting a translate function.
3058 * tests/testcombo.c: removed unused variable.
3060 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3062 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
3063 being NULL. (#166179, Diego Gonzalez)
3065 2005-02-04 Owen Taylor <otaylor@redhat.com>
3067 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
3068 up comment to talk only about backwards compat, not
3069 forward/backwards compat. (#166293, reported by Vincent Noel)
3071 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3073 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
3074 when there is not enough space. This avoids a nasty size
3075 allocation loop in the file chooser. (#154007, reported
3076 by Milosz Derezynski, patch by Robert Ögren)
3078 2005-02-04 Matthias Clasen <mclasen@redhat.com>
3080 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
3081 selection of RTL direction if the widget does not have
3082 focus. (#164125, Frederic Crozat)
3084 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
3086 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
3088 2005-02-03 Owen Taylor <otaylor@redhat.com>
3090 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
3091 gdk_drawable_set_cairo_target().
3093 * tests/testtreeflow.c (enum): Use grand not rand as a variable
3094 name because one of the cairo headers is pulling in stdlib.h.
3096 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
3099 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
3101 * Require libpangocairo for all backends.
3103 2005-02-03 Tor Lillqvist <tml@novell.com>
3105 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
3106 wide character version of ImmGetCompositionString() here,
3107 too. (#165278, Takuro Ashie)
3109 2005-02-03 Matthias Clasen <mclasen@redhat.com>
3111 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
3112 one roundtrip per motion event. (#166173, pointed out
3113 by Chris Lee, patch by Søren Sandmann)
3117 * gtk/gtkstock.c (gtk_stock_set_translate_func):
3118 New function which allows to change the function used for
3119 translation stock labels, on a per-domain basis. Use this
3120 functionality to switch the GTK+ stock items to use Q_()
3121 prefixed msgids. (#166179, Funda Wang)
3123 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
3126 2005-02-02 Federico Mena Quintero <federico@ximian.com>
3128 Merged from gtk-2-6:
3130 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3131 Don't select the first row if the chooser is not mapped. This
3132 happens when it's acting on behalf of GtkFileChooserButton. Also,
3133 don't select the first row if we are in SAVE or CREATE_FOLDER
3134 modes --- I had missed that (see the ChangeLog entry from
3135 2005-01-18). Fixes #165264.
3137 2005-02-02 Tor Lillqvist <tml@novell.com>
3139 Implement lazy extended input initialization on Win32, by Robert
3140 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
3141 be a good idea in any case even if it didn't fix any visible
3144 The Wacom tablet driver seems to get confused if Wintab is
3145 initialized but no window is shown before the process exits. This
3146 is the case for some GIMP plug-ins, for instance.
3148 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
3149 non-static (and renamed).
3150 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
3152 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
3154 * gdk/win32/gdkinput.c (gdk_devices_list,
3155 gdk_display_list_devices, gdk_input_set_extension_events): Call
3156 _gdk_input_wintab_init_check() here instead.
3158 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
3160 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
3161 of a single window so that gtk_clipboard_request_contents() can be
3162 called inside a GtkClipboardReceivedFunc(). (#163844)
3164 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3166 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
3167 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
3169 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
3170 to NULL after freeing it. (#165800, Damon Chaplin)
3172 2005-02-01 Michael Natterer <mitch@gimp.org>
3174 * configure.in: depend on stable pango-1.8, not unstable 1.7
3176 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3178 Merged from gtk-2-6:
3180 * gtk/gtkfilechooserdefault.c
3181 (browse_files_model_finished_loading_cb): Don't
3182 g_assert_not_reached() if we are in any other state. Another code
3183 path may have triggered a folder reload. Fixes #165556.
3185 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3187 Merged from gtk-2-6:
3191 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3192 fallback size be 16, to be equal to the default for
3193 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3194 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3195 GTK_ICON_SIZE_SMALL_TOOLBAR.
3197 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3199 * */*.c: Fix many instances of "the the" in docs and
3200 comments. (#165815, Masao Mutoh)
3202 * gtk/updateiconcache.c (main): Add a --quiet option.
3204 2005-02-01 Tor Lillqvist <tml@novell.com>
3206 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3207 reset_after_dead, handle_dead): New functions, code blocks
3208 refactored out of update_keymap(). No functionality change.
3210 (update_keymap): Use ToUnicodeEx() when available (on NT-based
3211 Windows) instead of ToAsciiEx(). Makes keyboard input work in
3212 Unicode-only input locales that don't have any ANSI codepage, for
3213 instance Hindi and Bengali. Use _gdk_input_codepage only on
3216 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3217 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3218 TranslateCharsetInfo() to get the input locale's corresponding
3221 2005-01-31 Matthias Clasen <mclasen@redhat.com>
3223 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
3224 NULL-terminated va lists. (#165683)
3226 2005-01-29 Matthias Clasen <mclasen@redhat.com>
3228 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
3229 Typo fix. (#165581, Masao Mutoh)
3231 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
3233 * README.cvs-commits: update ancient IRC info.
3235 2005-01-27 Federico Mena Quintero <federico@ximian.com>
3237 Merged from gtk-2-6:
3239 * gtk/gtkfilechooserdefault.c
3240 (gtk_file_chooser_default_select_path): Oops, don't assert that we
3241 can't reach the end of the function; this happens if we are still
3242 loading but don't need a path change. Fixes #165213.
3244 2005-01-27 Matthias Clasen <mclasen@redhat.com>
3246 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3247 Make wrapping work in RTL mode.
3249 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3250 obey HIG spacing a bit more, add a hand cursor when over the
3251 link button. (#163979, Jorn Baayen)
3253 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3255 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3256 Don't allow -1 as minimum-key-length.
3257 (gtk_entry_completion_set_model): Add missing notification.
3258 (gtk_entry_completion_set_minimum_key_length): Add missing
3259 notification, allow setting minimum-key-length to 0. (#165194,
3262 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3264 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3265 the license dialog is initially displayed without a horizontal
3267 (gtk_about_dialog_class_init): Document the fact that the
3268 license text is not wrapped. (#165012, Christian Rose)
3270 2005-01-25 Matthias Clasen <mclasen@redhat.com>
3272 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
3275 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
3276 docs. (#165163, Jeff Franks)
3278 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3279 for a string GValue. (#165203, Damon Chaplin)
3281 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3283 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
3284 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
3287 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3289 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3291 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3293 Merged from gtk-2-6:
3295 Fix #147785 and clean up the loading code:
3297 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3298 be EMPTY, PRELOAD, LOADING, FINISHED.
3299 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3300 (struct _GtkFileChooserDefault): Added a pending_select_paths
3302 (load_remove_timer): Add the new states.
3303 (load_setup_timer): Likewise.
3304 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
3305 (browse_files_model_finished_loading_cb): Switch to the
3306 LOAD_FINISHED state.
3307 (enum PendingOp): Removed.
3308 (struct _GtkFileChooserDefault): Removed the pending_op and
3309 pending_select_path fields.
3310 (pending_select_paths_free): New utility function.
3311 (pending_select_paths_add): New utility function.
3312 (gtk_file_chooser_default_finalize): Call
3313 pending_select_paths_free().
3314 (pending_op_queue): Removed.
3315 (pending_op_process): Removed.
3316 (pending_select_paths_process): New function.
3317 (browse_files_model_finished_loading_cb): Call
3318 pending_select_paths_process().
3319 (center_selected_row_foreach_cb): Handle multiple selection by
3320 only centering the first row.
3321 (get_is_file_filtered): Constify.
3322 (gtk_file_chooser_default_select_path): Queue into a list of paths
3323 to select if we are not finished loading.
3324 (show_and_select_paths): New utility function.
3325 (up_folder_handler): Use pending_select_paths_add().
3326 (gtk_file_chooser_default_should_respond): Do not call
3327 pending_op_queue(); free the pending_selected_paths instead.
3328 (gtk_file_chooser_default_initial_focus): Don't queue a pending
3329 operation, and don't select the first row unconditionally --- this
3330 will happen when the folder is done loading.
3331 (shortcuts_row_activated_cb): Free the pending_select_paths.
3332 (pending_select_paths_store_selection): New utility function.
3333 (gtk_file_chooser_default_map): Call
3334 pending_select_paths_store_selection() to save the selection
3335 before reloading the folder.
3336 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
3337 move the cursor here; it will be done when processing the pending paths.
3339 * tests/testfilechooser.c (main): Add a button to the command
3340 window to unmap and remap the file chooser.
3342 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3344 * docs/tutorial/gtk-tut.sgml:
3345 * docs/tutorial/gtk_tut.sgml:
3346 * docs/reference/gtk/tmpl/gtkliststore.sgml:
3347 * gtk/gtkactiongroup.c:
3348 * gtk/gtksizegroup.c:
3349 * gtk/gtksizegroup.h:
3350 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3351 appropriate. (#165108, Dan Winship)
3353 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3355 * gtk/gtkwidget.c (gtk_widget_class_init): Document
3356 GtkWidget::style-set. (#164222, Alex Graveley)
3358 2005-01-22 Matthias Clasen <mclasen@redhat.com>
3360 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
3361 Remove the accidentally added prototype for this unimplemented
3362 function. (#164893, Jeff Franks)
3364 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3367 2005-01-23 Tor Lillqvist <tml@novell.com>
3369 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3370 dead accent key. (#164859, reported and fix verified by Daniel
3373 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3374 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3377 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
3378 Don't call GetVolumeInformation() for network drives. They might
3379 be disconnected, and calling GetVolumeInformation() will then
3380 cause long delays. (#164448, reported by Dave Neary.) It seems to
3381 be very hard to reliably find out whether a network drive is
3382 connected or not, so it's easier to just not try getting the
3383 volume name for them. See the bug report for discussion.
3385 Make volume name display formats translatable.
3387 Fix for #163702, from Ivan Wong:
3389 * gdk/win32/gdkprivate-win32.h
3390 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3392 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3393 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3394 GDK_SELECTION_CLEAR event.
3396 * gdk/win32/gdkselection-win32.c
3397 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3398 when emptying the clipboard ourselves.
3400 (gdk_selection_send_notify_for_display): Remove the artifical
3401 GDK_SELECTION_CLEAR event generation.
3403 2005-01-21 Matthias Clasen <mclasen@redhat.com>
3405 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3406 provided by Bill Haneman.
3408 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3410 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
3413 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3414 here, even if the only focusable widgets are labels.
3416 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3418 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3420 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
3421 Add a follow-state property which when TRUE causes the pixbuf
3422 to be tinted according to state.
3424 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3425 Use follow-state and colorize the pixbuf when appropriate.
3427 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3429 Support wrapping in GtkCellRendererText (#163608):
3431 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3432 Add wrap-mode and wrap-width properties which cause a
3433 text cell to break to a specified width when set.
3435 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3436 and wrap-width when they are set.
3438 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3440 * gtk/gtkmodules.c (load_module): Don't reverse the order
3441 of modules when putting them in gtk_modules. (#162676, Dennis
3442 Cranston, patch by Remus Draica)
3444 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
3445 if the tree is empty. (#164669, Priit Laes)
3447 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
3449 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3450 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3453 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
3455 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3456 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3458 2005-01-19 Tor Lillqvist <tml@novell.com>
3460 * gdk/win32/gdkkeys-win32.c (update_keymap,
3461 gdk_keymap_translate_keyboard_state): Handle keyboards with
3462 ShiftLock (and not CapsLock) correctly. (#161814)
3464 2005-01-19 Matthias Clasen <mclasen@redhat.com>
3466 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3467 In save mode, don't return paths containing nonexisting
3468 directories. (#162443, Jean Marie Favreau)
3470 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
3471 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3473 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3476 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
3477 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
3481 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
3482 Add a function to obtain the last user interaction
3483 time. (#163119, Elijah Newren)
3485 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
3487 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3490 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
3492 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3493 disambiguate nested if/else.
3495 2005-01-18 Federico Mena Quintero <federico@ximian.com>
3497 Merged from gtk-2-6:
3499 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3500 operation to select the first file if we are in SAVE or
3501 CREATE_FOLDER modes. Executing that operation would overwrite the
3502 contents of the save-name entry.
3504 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3507 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
3508 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3509 pointer warping to GDK. (#160437)
3511 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3513 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3515 * gtk/gtkstyle.c (gtk_default_draw_check)
3516 (gtk_default_draw_option, gtk_default_draw_handle): Add some
3517 more NULL checks, patch by Michael Natterer.
3519 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
3521 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3524 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3525 NULL widget. (#164477, Michael Natterer)
3527 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3529 Avoid X errors when running against servers which
3530 implement XRender < 0.4. (#164427, Albert Chin)
3532 * gdk/x11/gdkprivate-x11.h:
3533 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3534 New function to check for trapezoid support in XRender.
3535 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
3538 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
3539 separate have_render_with_trapezoids field.
3541 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3543 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3545 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3547 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
3549 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3552 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3554 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3555 and restore the selected row in the bookmark list and the
3556 save folder combo. (#164290)
3558 2005-01-16 Matthias Clasen <mclasen@redhat.com>
3560 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3561 Fix argument order in docs.
3563 2005-01-15 Matthias Clasen <mclasen@redhat.com>
3565 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
3566 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
3567 if the keymap is neutral. (#164125, Phil Blundell)
3569 2005-01-14 Matthias Clasen <mclasen@redhat.com>
3571 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3572 reset the property to its default value -1.
3573 (gtk_tree_view_get_search_column): Return the default value in
3574 the g_return_val_if_fail() check. (#163864, Richard Hult)
3576 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
3577 Add a translator hint. (#163889)
3579 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3580 is an enum value, not a define. Pointed out by Tommi Komulainen.
3581 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3583 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3585 * configure.in: Check for nl_langinfo()
3586 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3587 available to determine first day of week (#163842, Vincent Untz)
3589 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
3590 the lifecycle of widgets. (#159503, Christian Persch)
3592 * demos/gtk-demo/main.c (create_text): Use monospace for the
3593 source code view. (#163526, Theerud Lawtrakul)
3595 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3596 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
3599 * configure.in: Add an OS_LINUX conditional.
3601 * gdk/Makefile.am (TESTS):
3602 * gdk-pixbuf/Makefile.am (TESTS):
3603 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
3606 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3608 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3609 (gtk_tree_view_set_headers_clickable): Make the headers-visible
3610 property readwrite instead of just writable, and remove the
3611 g_return_if_fail check that there is a model when setting this
3612 property. Also improve the blurb. (#163851, Richard Hult)
3614 2005-01-12 Owen Taylor <otaylor@redhat.com>
3616 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3617 initialization of gdktarget, that was causing it to be
3618 evaluated before host was set. Simplify --with-gdktarget help
3621 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
3622 which doesn't work with slightly older versions of GNU grep
3623 in install-libtool-import-lib rule.
3625 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
3627 Fix for #162790, by Iwan Wong:
3629 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3630 correctly. Simplify the interface to render_line_horizontal() and
3631 render_line_vertical(). Need to draw lines "manually" also on
3632 NT-based Windowses if we have a dash offset or are drawing
3633 double-dashed lines.
3635 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3636 double-dash flag, and a brush for the background colour (used by
3637 the odd dashes in the double-dash line style) in the GdkGCWin32
3640 * gdk/win32/gdkgc-win32.c: Set up above new fields.
3642 2005-01-10 Federico Mena Quintero <federico@ximian.com>
3646 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3647 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3648 (gtk_file_system_unix_get_folder): Make error reporting more
3649 accurate. Don't bail out if we can't read the directory.
3650 (fill_in_stats): Don't return an error; just assume we don't have
3651 stat info for this folder's files.
3652 (fill_in_names): Don't create the hash table for the names if we
3653 can't open the directory.
3654 (gtk_file_folder_unix_list_children): Don't emit the
3655 "finished-loading" signal --- we don't do asynchronous loads, so
3656 we are always finished loading.
3657 (gtk_file_folder_unix_get_info): Use helper functions; handle the
3658 case where we can't stat '/'.
3659 (get_icon_type_from_path): Don't call fill_in_stats() here; only
3660 use the info we have.
3661 (fill_in_mime_type): Don't return an error. Don't do anything if
3662 we don't have the stat info.
3664 2005-01-10 Owen Taylor <otaylor@redhat.com>
3666 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3669 2005-01-10 Matthias Clasen <mclasen@redhat.com>
3671 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3672 signals. (#163319, Murray Cumming)
3674 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
3676 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3677 cursor also when changing the cursor of a window that is the first
3678 ancestor of the window containing the pointer that has a cursor
3679 defined. (#163035, Ivan Wong)
3681 2005-01-09 Anders Carlsson <andersca@gnome.org>
3683 * gtk/gtkcellrenderertext.c: (get_size):
3684 * gtk/gtklabel.c: (gtk_label_size_request):
3685 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3686 Don't pass NULL to pango_context_get_metrics. Use
3687 pango_context_get_language instead, which is way faster.
3689 2005-01-08 Matthias Clasen <mclasen@redhat.com>
3691 * configure.in: Bump version
3693 * === Released 2.6.1 ===
3695 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3697 2005-01-07 Tor Lillqvist <tml@iki.fi>
3699 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3700 Fix braino. (#163232, Arnaud Charlet)
3702 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3704 * gtk/gtkiconview.c: Make markup_column work, and fix some
3705 layout issues when either icon or text is missing. (#163065)
3707 2005-01-06 Federico Mena Quintero <federico@ximian.com>
3709 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3710 "Open _Location" item. Fixes #148839.
3712 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3714 * README.in: Fix a typo. (#163128, kentaro fukuchi)
3716 2005-01-06 James M. Cape <jcape@ignore-your.tv>
3718 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
3719 (gtk_file_chooser_button_new_with_backend): Use default title if
3722 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
3725 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3729 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
3730 a pending operation to select the first row.
3732 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3734 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
3735 button_data_free() explicitly; the button is weak-reffed and the
3736 callback will free the button data. Fixes #163010.
3737 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
3738 failure case, call gtk_widget_destroy() on it.
3740 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
3741 gtk_file_system_get_folder() again (see the ChangeLog entry from
3742 2004-08-25). We can't first get the parent folder and then
3743 request the info for the path in question, as the parent folder
3744 may not be readable. See bug #162617.
3745 (gtk_file_chooser_default_set_current_folder): Assert that the
3746 passed-in path is not null.
3747 (shortcuts_find_current_folder): Likewise.
3748 (shortcuts_add_current_folder): Likewise.
3749 (set_list_model): Likewise.
3750 (gtk_file_chooser_default_map): Only reload the current folder if
3752 (bookmarks_check_add_sensitivity): Check for the current folder
3754 (browse_files_select_first_row): Don't set the cursor if there is
3757 2005-01-05 Matthias Clasen <mclasen@redhat.com>
3759 * gtk/gtkfilechooserdefault.c: Don't construct errors from
3760 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
3761 (get_file_info, check_is_folder): Translate errors from
3762 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
3763 of the fix for #162911, noticed by Murray Cumming.
3765 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
3767 * gtk/gtkviewport.c (gtk_viewport_realize):
3768 * gtk/gtktextview.c ((text_window_realize): Set the background of
3769 the windows to None instead of adding EXPOSURE_MASK, as suggested
3772 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
3773 the user time when receiving a WM_DELETE message. (#162980,
3776 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
3778 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
3779 only reorder on button 1, part of #141937
3781 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
3785 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
3786 to win->window's event_mask
3788 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
3789 to viewport->view_window.
3791 2005-01-04 Matthias Clasen <mclasen@redhat.com>
3793 * demos/testpixbuf.c (main): Remove the size_prepared callback,
3794 to test incremental display.
3795 (new_testrgb_window): Return the drawing area, not the window,
3796 since we want to queue draws on the drawing area.
3798 2005-01-03 Matthias Clasen <mclasen@redhat.com>
3800 * examples/*: Re-extract.
3802 * docs/tutorial/gtk-tut.sgml: Small corrections.
3804 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
3805 section. (#161414, Robert Ancell)
3807 * docs/tutorial/gtk-tut.sgml: Make it build.
3809 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
3810 regarding modality. (#112903, Dave Bordoley)
3812 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
3813 Add a little motivation. (#145556, Tommi Komulainen)
3815 * docs/tutorial/gtk-tut.sgml: Clarify section on
3816 g_signal_connect_swapped. (#120543, David Bourguignon)
3818 Make gtk_icon_theme_load_icon() work independent of
3819 icon factory initialization. (#162791, Tristan Van Berkom)
3821 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
3822 _gtk_icon_factory_ensure_default_icons, and make it non-static.
3824 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3826 2005-01-02 Matthias Clasen <mclasen@redhat.com>
3828 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
3829 Don't add a shortcut here. (#162752, Tor Lillqvist)
3831 2005-01-02 Tor Lillqvist <tml@iki.fi>
3833 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3834 CoTaskMemFree in get_special_folder() below.
3836 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3837 Win32 using _gtk_file_system_win32_path_compare().
3839 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3841 * gtk/gtkfilechooserbutton.c (model_add_special)
3842 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3843 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3846 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3847 consider all drives "mounted", including floppies. Trying to
3848 inspect the contents of a nonexistent floppy will cause errors
3849 later that are handled normally, no need to avoid them
3850 completely. Keep the drive type in the GtkFileSystemVolume.
3851 Support UNC paths. (#161797, #137874) Fix error message
3852 capitalizations as in gtkfilesystemunix.c.
3854 (gtk_file_system_win32_init): Start one timeout per
3857 (gtk_file_system_win32_finalize): Remove the timeout.
3859 (get_special_folder): Copied from GLib.
3861 (_gtk_file_system_win32_get_desktop): New function, uses
3862 get_special_folder().
3864 (gtk_file_system_win32_list_volumes): Don't start a timeout at
3865 each call to this function. Don't assume A: and B: are floppies.
3867 (gtk_file_system_win32_get_volume_for_path): Don't assume all
3868 volumes are drive roots, i.e. support share roots of UNC paths
3871 (gtk_file_system_win32_get_folder): Don't assume errno is set
3872 after g_file_test() returns FALSE. It isn't on Win32 (and even on
3873 Unix I don't think one should assume anything about errno after
3876 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3878 (gtk_file_system_win32_volume_get_display_name): Don't call
3879 GetVolumeInformation() on drives A: or B: if they are removable,
3880 as they might then be floppies, causing an unnecessary
3883 (gtk_file_system_win32_volume_render_icon): Use network icon for
3884 unrecognized drive types.
3886 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3887 confused by UNC paths.
3889 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3890 for case-insensitive UTF-8 path comparison.
3892 (extract_icon): Use SHGetFileInfo() which is faster than
3893 ExtractAssociatedIcon(). Icon extraction is still slow, though,
3896 (win32_pseudo_mime_lookup): Don't use the same icon for all
3897 shortcuts or executables. Cache only other file type icons.
3899 (gtk_file_system_win32_render_icon): Use network stock icon for
3900 remote drives and UNC server share roots. Compare home directory
3901 case-insensitively. Do lookup icons also for executable files,
3902 after all, it's these files that can have individual icons in the
3903 first place. Yes, it can be slow. Needs work.
3905 (filename_is_drive_root): Require also the slash after the colon.
3907 (filename_is_server_share): New function.
3909 (_gtk_file_system_win32_path_compare): New function, does
3910 case-folded UTF-8 comparison.
3912 * gtk/gtkfilesystemwin32.h: Declare
3913 _gtk_file_system_win32_path_compare().
3915 2005-01-01 Matthias Clasen <mclasen@redhat.com>
3917 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3918 custom image by passing NULL.
3919 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3920 a problem with changing stock labels. (#162273, Marcin
3923 2005-01-01 Tor Lillqvist <tml@iki.fi>
3925 * gtk/gtkmodules.c (get_module_path)
3926 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3927 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3928 g_getenv() now returning UTF-8 on Win32, no need to call
3931 2004-12-31 Matthias Clasen <mclasen@redhat.com>
3933 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
3934 (_gtk_key_hash_lookup): Don't sort a list of values as if
3935 it was a list of entries. This fixes crashes during mnemonic
3936 activation in the presence of multiple keymaps. (#162488,
3939 2004-12-30 Matthias Clasen <mclasen@redhat.com>
3941 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3942 state propagation when making an insensitive combo box sensitive
3943 again. (#162524, Carlos Garnacho Parro)
3945 * gtk/gtkfilechooserdefault.c: Use secondary text for error
3948 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3949 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3950 for error messages. Also mark some error messages for translation,
3951 fix capitalization of error messages.
3953 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3954 Use g_value_get_boolean() for ellipsize_set. (#162447,
3957 2004-12-30 Tor Lillqvist <tml@iki.fi>
3959 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3962 2004-12-28 Matthias Clasen <mclasen@redhat.com>
3964 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3965 submenu direction from the parent menu.
3967 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
3968 Return a boolean indicating whether an item in the submenu
3970 (gtk_real_menu_shell_move_current): When going in child
3971 direction, don't get stuck at completely insensitive
3972 submenus. (#162055, Billy Biggs)
3974 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3976 Make the clipboard image API more robust (#162357,
3977 Torsten Schoenfeld):
3979 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3980 ref the pixbuf if it is NULL.
3982 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
3983 NULL-terminate the varargs in the call to
3984 gdk_pixbuf_save_to_buffer().
3985 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
3986 if there is data to load.
3988 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3990 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3991 Set x_root and y_root in button and motion events from
3992 extended input devices. (#148715, Robert Ögren)
3994 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
3995 typo. (#162339, Alessio Dessi)
3997 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3998 properties as new since 2.4. (#156101, Billy Biggs)
4000 * configure.in: Add a warning about the linux-fb
4001 target. (#155488, Zeeshan Ali)
4003 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
4006 2004-12-26 Matthias Clasen <mclasen@redhat.com>
4008 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
4009 Typo fix. (#162219, Masao Mutoh)
4010 (gtk_file_chooser_set_preview_widget_active):
4011 Another typo. (#162218, Masao Mutoh)
4013 2004-12-23 Matthias Clasen <mclasen@redhat.com>
4015 * gtk/gtkliststore.c (gtk_list_store_iter_children):
4016 Return TRUE if there are children. (#162134, Iñigo Serna,
4017 patch by John Finlay)
4019 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
4020 Transfer state from the button to the cell view to get
4021 prelighting right. (#156327, Ricardo Veguilla)
4023 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
4025 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
4026 timeout. Written by Christian Persch.
4028 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
4032 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
4033 background for windows that get expose events.
4035 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
4036 hack to repaint !expose windows.
4038 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
4040 Bug #147497, make menu items activate immediately when you release
4043 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
4044 items activate immediately.
4046 * gtk/gtkmenu.c (definitely_within_item): New function
4047 * gtk/gtkmenu.c (check_threshold): New function
4049 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4051 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
4052 null the mnemonic_menu when unsetting a mnemonic, reported
4055 2004-12-21 Matthias Clasen <mclasen@redhat.com>
4057 * gtk/gtkliststore.c (generate_order): Generate the order the
4058 way it is supposed to be, order[new_pos] == old_pos.
4059 (gtk_list_store_reorder): Invert the order before using it.
4061 2004-12-22 Matthias Clasen <mclasen@redhat.com>
4063 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
4065 * gtk/gtkliststore.c (generate_order): Generate the order the
4066 way it is supposed to be, order[new_pos] == old_pos.
4067 (gtk_list_store_reorder): Invert the order before using it.
4069 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
4072 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
4074 * gtk/queryimmodules.c (main): print out the version and binary
4075 name in the header comment. Problem reported by Seth Nickell.
4077 2004-12-20 Matthias Clasen <mclasen@redhat.com>
4079 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
4080 root path to gtk_tree_model_rows_reordered(). (#161720,
4081 Marcin Krzyzanowski)
4083 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
4084 translate NULL messages. (#161789, Morten Welinder)
4086 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
4087 the secondary label on show_all(). (#161707, Christian Persch)
4089 2004-12-19 Tor Lillqvist <tml@iki.fi>
4091 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
4092 Use wide character API when available. Use UTF-8 for filenames.
4094 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
4095 the string's trailing zero byte in the property's length, just for
4098 2004-12-18 Matthias Clasen <mclasen@redhat.com>
4100 * gtk/gtkfilechooserentry.c (check_completion_callback)
4101 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
4103 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
4104 (shortcuts_drag_outside_idle_cb): Add missing
4105 GDK_THREADS_ENTER/LEAVE. (#161604)
4107 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
4108 (list_select_func): Don't call gtk_file_info_get_is_folder()
4111 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
4112 (gtk_about_dialog_init): Add missing initializations. (#161646,