1 2005-06-24 Owen Taylor <otaylor@redhat.com>
3 * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
4 conversion functions for MSB machines: convert_0888[_br]
5 now work on bytes so are endian independent.
6 (Reported by David Zeuthen)
8 2005-06-24 Matthias Clasen <mclasen@redhat.com>
10 * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
11 jump to the next line if we are at the end of the line.
13 2005-06-23 Tor Lillqvist <tml@novell.com>
15 Improve and simplify line segment rendering on Win32, especially
16 the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
17 bugs #306396 and #308413.
19 * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
20 line_style, cap_style and join_style as such in the
21 GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
24 * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
25 up the GDI pen type, style, end cap and join attributes to use
26 based on the pen width, GDK line style, end cap style, and join
29 For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
30 cap style, which typically are used for XOR drawing where it is
31 essential that the last pixel is not drawn, use a GDI cosmetic
32 pen. Only for a cosmetic pen does GDI not draw the last pixel. I
33 deduced this by experimetation, the documentation is rather vague.
35 For other GDK pens use a geometric GDI pen. If the width is 0 or 1
36 and the GDK end cap style is GDK_CAP_BUTT, and the line style is
37 GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
38 single-pixel length lines are drawn. (For sngle-pixel width lines
39 roundness as such is of course irrelevant.) For dashed lines, use
42 For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
43 respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
45 For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
46 work better than PS_USERSTYLE. For other dashed lines, use
47 PS_USERSTYLE and the dashes as set by the user (or the default
48 four-pixel on-off style).
50 (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
51 Call fixup_pen() to do the pen settings after modifying some of
52 the GDK GC attributes that affect pens.
54 * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
55 render_line_vertical, draw_segments): Check GdkGCWin32::line_style
56 instead of the the removed pen_double_dash member. Don't use
57 PATCOPY unconditionally in the PatBlt() call, use a raster op
58 code that depends on the GC function in use.
60 (draw_rectangle, draw_segments, draw_lines): Be more careful in
61 deciding when to do the manual dash rendering.
63 (draw_segments): Don't do any manual "last point" drawing at
64 all. The above changes takes care of narrow line segments being
65 drawn correctly in most cases, at least on NT-based Windows.
67 2005-06-23 Matthias Clasen <mclasen@redhat.com>
69 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
70 Fix an error in the cache timeout logic. (#166601, Morten
73 * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
74 keynav for header reordering and resizing to Alt-arrows and
75 Shift-Alt-arrows, following a proposal by the keynav
76 authority. (#308666, Calum Benson)
78 * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
79 a leftover debugging envvar.
81 2005-06-23 Owen Taylor <otaylor@redhat.com>
83 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
84 big endian case for 3-channel source. (Reported by
87 2005-06-23 Matthias Clasen <mclasen@redhat.com>
89 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
90 trigger warnings if there are extra references to the
91 hbox. (#308677, Dan Winship)
93 * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
94 g_file_set_contents(). (#308722, Morten Welinder)
96 2005-06-22 Matthias Clasen <mclasen@redhat.com>
98 * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
99 time field in the event. (#308573, Morten Welinder)
101 * gtk/gtkfilesystemunix.c: Remove gratitious differences
102 between the stable branch and HEAD, which sneaked in with
103 the bookmark renaming.
105 2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
107 * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
110 2005-06-21 Matthias Clasen <mclasen@redhat.com>
115 * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
116 on centering calculations to match the behaviour of other parts
117 of GTK+. (#307419, Ryan Lortie)
119 2005-06-21 Matthias Clasen <mclasen@redhat.com>
121 * gtk/gtkdnd.c (gtk_drag_source_set): Connect to
122 button-release-event as well, to handle touchscreen
123 scenarios better. (#171490, Markku Vire)
125 * gtk/*.h: Trivial cleanups. (#169647, #303455,
126 Fabricio Barros Cabral, Benoit Carpentier)
130 * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
131 function which can be used to implement scrolling in
132 non-window widgets. (#135165, Søren Sandmann)
134 2005-06-20 Matthias Clasen <mclasen@redhat.com>
136 * gtk/gtkiconcache.c: Handle MAP_FAILED. (#308449, Georg
139 2005-06-20 Matthias Clasen <mclasen@redhat.com>
141 * configure.in: Bump version number.
143 * === Released 2.7.0 ===
145 2005-06-20 Matthias Clasen <mclasen@redhat.com>
149 * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
150 gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
152 2005-06-19 Matthias Clasen <mclasen@redhat.com>
154 * gtk/gtk.symbols: Add a forgotten symbol
158 2005-06-19 Kristian Rietveld <kris@gtk.org>
160 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
161 check which avoids processing updates on bin_window and scrolling
162 if the node is already visible. (#170600, Billy Biggs).
164 2005-06-19 Kristian Rietveld <kris@gtk.org>
166 * gtk/gtktreeview.c (validate_visible_area): only keep the
167 row at the same position if the full row is visible. (#304623,
170 2005-06-19 Kristian Rietveld <kris@gtk.org>
172 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
173 if treeview's height is smaller than the current page_size (just
174 like we do elsewhere).
176 2005-06-19 Kristian Rietveld <kris@gtk.org>
178 Make mousewheel scrolling possible in typeahead mode, suggestion
179 from Reinout van Schouwen (#307898).
181 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
182 connect treeview search window to scroll_event signal,
183 (gtk_tree_view_search_scroll_event): implement.
185 2005-06-19 Kristian Rietveld <kris@gtk.org>
187 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
188 the event on to treeview, so it has a change of selecting a row, etc.
189 (#169677, Kirk Bridger).
191 2005-06-19 Kristian Rietveld <kris@gtk.org>
193 This commit includes a fix for #169463, Stefan Kost.
195 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
196 when cell_area is set, return cell_area width/height as width/height,
197 so the focus rectangle will be drawn correctly.
199 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
200 of focus-line-width property,
201 (validate_row): take focus_line_width into account.
203 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
204 also take focus_line_width into account when calculating the cell_area
205 y and height (before, we only took it into account when calculating
208 2005-06-19 Matthias Clasen <mclasen@redhat.com>
211 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
212 with getter and setter. (#171612, Christian Neumair)
214 2005-06-18 Matthias Clasen <mclasen@redhat.com>
216 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
217 work for inserting before/after an existing menuitem or
218 toolitem. (#155946, Christian Persch)
220 * tests/testmerge.c (delayed_toggle_dynamic): Test the
221 "insert after" functionality of gtk_ui_manager_add_ui.
223 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
224 (#300678, Sven Neumann)
226 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
227 constructed with GtkUIManager.
231 * gtk/gtkimage.c (gtk_image_clear): Make this function
232 public. (#64792, Havoc Pennington)
234 2005-06-18 Kristian Rietveld <kris@gtk.org>
236 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
237 of the separate loop setting cell data with cell drawing loop
238 (introduced in revision 1.280), since this breaks focus handling
241 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
243 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
244 checks don't work on boxed types.
246 * gdk/x11/gdkcursor-x11.c:
247 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
250 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
252 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
255 2005-06-18 Matthias Clasen <mclasen@redhat.com>
257 * gtk/gtkcellrenderertoggle.c:
259 * gtk/gtktreeview.c: Typo fixes in comments.
261 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
262 2 children are added. (#308111, Morten Welinder)
264 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
265 1-based. (#163842, Pierre Ossman)
267 2005-06-17 Kristian Rietveld <kris@gtk.org>
269 Fix #160281, testcase from Peter Bloomfield.
271 * gtk/gtktreeview.c (do_presize_handler): always size request
272 and update adjustments in fixed height mode,
273 (gtk_tree_view_build_tree): if a fixed height is set, set this
274 height on newly added nodes.
276 2005-06-17 Tor Lillqvist <tml@novell.com>
278 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
279 and suggested_action fields in the GdkDragContext to
280 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
281 field, like eog, won't accept dropped files.
283 2005-06-17 Matthias Clasen <mclasen@redhat.com>
285 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
288 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
289 with getter and setter.
293 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
294 Add a setter for the urgency hint.
296 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
299 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
300 hint in the WM_HINTS property when appropriate.
302 2005-06-17 Matthias Clasen <mclasen@redhat.com>
304 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
306 * gdk/x11/gdkcursor-x11.c:
307 * gdk/gdkcursor.c: Improve some return_if_fail checks,
308 and add the missing non-Xcursor fallback for
309 _gdk_x11_cursor_update_theme(), noticed by Jeroen
312 * gtk/gtkbutton.c (gtk_button_class_init): Document
313 several button signals as not useful.
315 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
316 Resize the popup if necessary. (#308076, Vincent Noel)
318 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
319 draw on the old and new focus widgets, if their defaultness
320 changes. (#305607, Billy Biggs)
322 2005-06-17 Kristian Rietveld <kris@gtk.org>
324 * gtk/gtktreeview.c (validate_visible_area): make sure the row
325 above 'above_path' is always in a validated state, so it does
326 not mess up scrolling. (#303319, testcase from Billy Biggs).
328 2005-06-17 Matthias Clasen <mclasen@redhat.com>
330 * gdk/x11/gdkprivate-x11.h:
331 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
332 for cached cursors which are not associated with a window
333 at the time of the theme change, by storing a serial
334 number in each cursor, and updating the theme_serial
335 counter whenever the cursor theme changes.
337 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
338 Private function to update a cursor to the current
339 cursor theme if necessary.
341 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
342 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
343 _gdk_x11_cursor_update_theme() here.
345 2005-06-17 Owen Taylor <otaylor@redhat.com>
347 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
348 #if G_BYTE_ORDER == GDK_LSB_FIRST.
350 2005-06-17 Kristian Rietveld <kris@gtk.org>
352 * gtk/gtktreeview.c (validate_visible_area): don't try to update
353 the top_row rowref ourselves here, but just have _dy_to_top_row()
355 (gtk_tree_view_scroll_to_cell): handle scrolling via
356 validate_visible_area() if the treeview is not visible or needs
357 reallocation. (#165246, Nickolay V. Shmyrev).
359 2005-06-17 Kristian Rietveld <kris@gtk.org>
361 Fixes #307914 (Alexander Larsson), fixing some breakage caused
362 by my previous commit.
364 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
365 when it fits on a single page,
366 (scroll_sync_handler): same here.
368 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
370 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
372 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
373 g_return_val_if_fail.
375 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
378 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
379 takes a GtkWidget, not a GtkImage.
381 2005-06-16 Matthias Clasen <mclasen@redhat.com>
383 * gtk/gtkfilechooserdefault.c (button_new): Simplify
384 the code and respect the show-button-images setting.
385 (#307941, Vincent Noel)
387 * gtk/gtkdnd.c: Update the RGBA cursor if an
388 icon is set after the cursor has been constructed.
389 Also handle repeated setting of icons correctly.
391 2005-06-16 Matthias Clasen <mclasen@redhat.com>
393 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
394 docs. (#307818, Christian Persch)
396 2005-06-15 Matthias Clasen <mclasen@redhat.com>
398 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
399 Initialize all fields of the expose event. (#151693,
402 2005-06-15 Matthias Clasen <mclasen@redhat.com>
404 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
405 red and blue in place.
407 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
408 formatting, pointed out by Kjartan Maraas.
410 * gtk/gtksettings.c: Add two new settings,
411 gtk-cursor-theme-name and gtk-cursor-theme-size to
412 control the cursor theme.
414 * gdk/x11/gdkevents-x11.c: Add two new X settings,
415 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
416 these to the gtk settings.
418 * tests/testgtk.c (create_cursors): Add a cursor theme
421 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
422 GdkCursor and add a private getter for it, so that we can
423 update the cursor when the cursor theme changes.
427 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
428 New function to change the cursor theme.
430 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
431 g_return_if_fail() non-NULL checks.
433 2005-06-15 Matthias Clasen <mclasen@redhat.com>
435 * gdk/abicheck.sh: Use uniq to filter out duplicates.
436 * gdk/gdk.symbols: Fix a define.
438 2005-06-14 Matthias Clasen <mclasen@redhat.com>
440 * gtk/gtkwindow.c (gtk_window_parse_geometry):
441 Fix up the example. (#307699, Michal Suchanek)
443 2005-06-14 Matthias Clasen <mclasen@redhat.com>
445 * gtk/gtkcalendar.c: Update num_marked_dates as we
446 used to do. (#307689, Thorsten Schoenfeld)
448 2005-06-14 Federico Mena Quintero <federico@ximian.com>
454 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
455 "selection-changed" and do the normal housekeeping even if we are
456 in SAVE mode and there is nothing selected. We didn't emit that
457 signal if we were in SAVE mode and unselect_all() got called.
458 (gtk_file_chooser_default_unselect_all): Call
459 pending_select_paths_free() so that we cancel any asynchronous
461 (gtk_file_chooser_default_set_current_name): Likewise.
463 2005-06-14 Federico Mena Quintero <federico@ximian.com>
469 * gtk/gtkfilechooserdefault.c
470 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
471 mode. If the parent path is a folder, only create a subfolder if
472 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
473 and respond. Also, pick up the case where the user types
474 "dirname/" instead of "dirname".
475 (check_save_entry): Make the return type void. Add some return
476 parameters so that we can do more thorough checking.
477 (gtk_file_chooser_default_get_paths): If the file part is empty
478 and we are in SAVE mode, return an empty selection.
480 2005-06-15 Kristian Rietveld <kris@gtk.org>
482 Patch for #163214 (reported by Tommi Komulainen) and fixes some
483 other scrolling/validation related bugs along the why.
485 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
486 do_validate_rows once and don't queue a size request there,
487 (gtk_tree_view_size_allocate): don't update vadj value without
488 reason, sync top_row/dy after the window sizes and adjustments
490 (validate_visible_area): always update dy when scrolling,
491 manually set top_row here after changing the vadj (don't depend
492 on _adjustment_changed and top_row/dy sync to do this), since we
493 now always set top_row here correctly, we can always free
494 scroll_to_path at the end which avoids infinite expose loops,
495 (do_validate_rows): add queue_resize boolean, remove top_row/dy
496 sync here, we cannot do it safely at this place since the
497 window sizes and adjustments are out of sync,
498 (validate_rows), (validate_rows_handler): update call to
501 2005-06-14 Matthias Clasen <mclasen@redhat.com>
503 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
504 stub for the no-Xcursor case. (noticed by Luis Villa)
506 Use named cursors for the DND cursors, the names are "dnd-none",
507 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
508 cursor instead of cursor+window when possible. This saves
509 roundtrips during the drag operation, and makes translucent icons
512 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
513 for the default dnd cursors.
515 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
516 used during the drag here, also store the icon pixbuf here.
518 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
519 switch the default cursors from xbm to inlined pixbufs.
521 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
522 GtkDragSourceInfo as well, since it has to composite the
523 drag-specific cursors. The cursors combined from the image of
524 the themed cursor and the icon_pixbuf stored in the info.
526 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
527 icon if there is an icon_pixbuf, which will be composited into
530 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
531 the pixbuf in the info struct for later compositing into the
532 cursor instead of creating an icon window.
534 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
535 RGBA cursor for the drag, and need to display the cancel
536 animation, construct the icon window here.
538 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
539 drag-specific cursors and the icon_pixbuf when done with
542 2005-06-14 Matthias Clasen <mclasen@redhat.com>
544 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
545 with the name "color-picker", when available.
549 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
550 (gdk_cursor_new_from_name): New functions to construct named
551 cursors and to get the image used for a cursor.
553 2005-06-13 Matthias Clasen <mclasen@redhat.com>
555 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
556 path bar is done, implementing the following principles:
557 (#137289, patch by Benjamin Otte)
559 1. Re-root only if $HOME is an ancestor of the current path.
561 2. When re-rooting, make sure the Left arrow appears in the path
562 bar, so that you can navigate up from $HOME to /. In that case,
563 make sure the Right arrow doesn't appear if the sub-hierarchy from
564 $HOME to the cwd fits in the window.
566 3. Make sure that hitting Alt-Up takes you always one folder up,
567 even when the path bar is re-rooted.
569 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
570 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
572 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
573 Free the data of the row before overwriting it. (#307490,
576 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
578 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
579 leak the cairo context. Closes bug #307426.
581 2005-06-13 Matthias Clasen <mclasen@redhat.com>
583 Make invisible text work a bit better (#66194, patch by
587 * gtk/gtktextiter.[hc]: Add function to move by
590 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
591 Skip invisible text when moving by paragraphs.
593 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
594 Skip invisible lines here too.
596 2005-06-12 Matthias Clasen <mclasen@redhat.com>
598 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
599 Don't leak the format names. (#307190, Morten Welinder)
601 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
603 * gdk/x11/gdkasync.c: (send_event_handler): Plug
604 a leak. Closes bug #307281.
606 2005-06-12 Matthias Clasen <mclasen@redhat.com>
608 * gtk/gtkcalendar.c (calendar_paint_header):
609 (gtk_calendar_size_request): Allow localization of the
610 format in which the year is displayed. (#135451, Paisa
613 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
615 * gdk/gdkcairo.c: Small doc additions.
617 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
618 Check start_button_mask before starting a drag. (#149058,
621 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
622 Sayamindu Dasgupta, patch by Jan Arne Petersen)
624 2005-06-11 Matthias Clasen <mclasen@redhat.com>
628 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
629 provided by Owen Taylor.
633 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
634 Add a function to determine what parts of the model are
635 visible. (#306726, Jonathan Blandford)
637 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
638 files the same way as hidden files, to be closer to what
639 Nautilus does. (#136196, Sean Middleditch)
641 2005-06-10 Matthias Clasen <mclasen@redhat.com>
643 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
644 Don't modify strings returned from gettext().
646 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
648 * gtk/gtktextdisplay.c (render_para): don't use deprecated
649 gdk_gc_unref function.
651 2005-06-10 Matthias Clasen <mclasen@redhat.com>
653 Allow setting paragraph background. (#81045, Gustavo
654 Carneiro, patch by Jeroen Zwartepoorte)
656 * gtk/gtktextlayout.c (set_para_values): Propagate
657 pg_bg_color to the display struct.
658 (gtk_text_layout_free_line_display): Free it here.
660 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
661 is set, draw a rectangle in that color behind
664 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
665 paragraph-background, paragraph-background-gdk and
666 paragraph-background-set properties.
667 (set_pg_bg_color): A setter for paragraph-background.
669 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
672 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
674 (struct _GtkTextTag): Add pg_bg_color_set.
676 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
678 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
679 cairo surface when done with it. Plugs a fairly large leak in
681 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
682 826 blocks are definitely lost in loss record 25239 of 25250
683 Like this from nautilus.
685 2005-06-10 Michael Natterer <mitch@imendio.com>
688 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
689 to get an action's accel_closure (Fixes #141750 and #148106).
691 2005-06-10 Matthias Clasen <mclasen@redhat.com>
693 * gdk/gen-keyname-table.pl: Generate N_() calls for
694 translatable key names.
696 * gdk/keynames.txt: Mark some key names as translatable.
698 * gdk/keyname-table.h: Regenerated.
700 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
701 some context to the msg ids for keyboard modifiers and
703 (_gtk_accel_label_class_get_accelerator_label): Try to
704 translate key names. (#300224, Christian Rose)
706 2005-06-10 Federico Mena Quintero <federico@ximian.com>
712 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
713 immediately if we are in CREATE_FOLDER mode, so that we can fill
714 the entry with the newly-selected folder.
715 (gtk_file_chooser_default_set_property): Warn against turning on
716 multiple selection for CREATE_FOLDER mode, or about setting that
717 action while multiple selection is on.
718 (update_chooser_entry): Change the entry's contents as well if we
719 are in CREATE_FOLDER mode. If nothing is selected, clear the
721 (trap_activate_cb): Don't trap enter/space if modifiers are
722 pressed. This lets one use Ctrl-space to toggle rows in multiple
724 (gtk_file_chooser_default_should_respond): Clean up the if-chain
725 mess of special cases by using an array to determine what to do.
726 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
727 the bug where the file chooser would switch to an existing folder
728 rather than confirming with it, and create the folder ourselves.
729 (error_creating_folder_over_existing_file_dialog): New function.
731 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
732 insert the common prefix if we are in an "open" mode. Use a
734 (append_common_prefix): New helper function; code moved over from
735 check_completion_callback().
736 (find_common_prefix): New helper function.
737 (gtk_file_chooser_entry_focus): Append the common prefix if the
738 user requests it explicitly.
740 2005-06-10 Matthias Clasen <mclasen@redhat.com>
742 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
743 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
744 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
745 * gtk/gtkstock.c (gtk_stock_set_translate_func):
746 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
747 * gtk/gtkscrolledwindow.h:
748 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
750 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
751 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
752 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
754 2005-06-09 Matthias Clasen <mclasen@redhat.com>
756 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
758 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
759 (#306212, Steve Chaplin, docs provided by Billy Biggs)
761 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
762 cleanup. (#305539, Paolo Borelli)
764 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
766 * configure.in: added cairo to list of $GTK_PACKAGES.
768 2005-06-09 Matthias Clasen <mclasen@redhat.com>
770 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
771 the user time on the window when a drop happens. (#169364, Alexander
772 Hunziker, patch by Elijah Newren)
774 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
778 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
779 to scroll to a path. (#306838, Jonathan Blandford)
781 2005-06-08 Matthias Clasen <mclasen@redhat.com>
783 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
784 item. (#306839, Jonathan Blandford)
786 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
787 negative before appending the index, to avoid double error
788 message. (#306393, Morten Welinder)
790 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
791 Don't crash if search_window is NULL. (#304914, Victor Osadci,
792 testcase by Olaf Vitters)
794 * gtk/gtkimage.c: Make the file property readable.
795 (#170674, Lorenzo Gil Sanchez)
798 2005-06-08 Matthias Clasen <mclasen@redhat.com>
800 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
801 g_utf8_collate_key_for_filename().
803 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
805 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
806 Merge leak fix from stable. Bug 306754.
808 2005-06-05 Tor Lillqvist <tml@novell.com>
810 * gdk/win32/gdkscreen-win32.c
811 (_gdk_windowing_substitute_screen_number): Return NULL unless
812 screen number is zero. We have only one screen on Win32.
813 (gdk_screen_make_display_name): Call gdk_display_get_name() and
816 * modules/engines/Makefile.am
817 * modules/input/Makefile.am: Decide whether to build the
818 ms-windows theme engine based on the GDK backend, not based on
819 platform. (I.e., if building for Cygwin with the X11 backend, we
820 shouldn't build the ms-windows engine, but if building for Cygwin
821 but with the Win32 backend, we should.) Ditto for the IME
822 (Windows) input module. (#305832)
824 2005-06-04 Tor Lillqvist <tml@novell.com>
826 * gdk/win32/gdkcursor-win32.c
827 * gdk/win32/gdkwindow-win32.c
828 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
829 Support cursors with alpha on XP. Use code in common with the
830 support for alpha icons that already was present. (#306101, Tim
833 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
834 in a way that more closely matches Windows. (#305986, Tim Evans).
836 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
839 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
841 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
842 * modules/engines/ms-windows/xp_theme.c: Ditto
843 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
845 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
847 * gtk/gtkentrycompletion.h: Add declarations for
848 gtk_entry_completion_{get,set}_popup_single_match.
850 2005-05-26 Matthias Clasen <mclasen@redhat.com>
853 * gtk/gtkentrycompletion.c: Add a property to suppress the
854 popup for single matches. (#154711)
856 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
858 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
861 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
862 redisplay after modifying the tag in the btree, otherwise
863 we end up showing the old tags until the next redraw comes
864 around. (#143537, Gary Kramlich, Peter Wainwright)
866 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
867 autoscrolling work at the bottom of the screen.
869 2005-05-26 Maciej Katafiasz <email@mathrick.org>
871 * docs/reference/gtk/tmpl/gtkentry.sgml:
872 Point to GtkTextView instead of GtkText. Fixes bug #305535
874 2005-05-26 Sven Neumann <sven@gimp.org>
876 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
877 aggressive PNG compression level (bug #305340).
879 2005-05-26 Tor Lillqvist <tml@novell.com>
881 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
882 from the root window, take the multi-monitor offset into
885 2005-05-25 Matthias Clasen <mclasen@redhat.com>
887 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
890 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
891 Remove another C99ism.
893 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
894 background of rows insensitive when the treeview is insensitive.
895 (pointed out by Billy Biggs)
897 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
898 and DND, and clipboard persistency.
900 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
901 Make sure png comes first, otherwise dnd may use bmp by
902 default, loosing transparency.
904 2005-05-25 Michael Natterer <mitch@imendio.com>
906 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
907 handler when changing cursor visibility because it would expose
908 the whole paragraph where the cursor is. Instead, expose the
909 cursors' areas manually. (#173047).
911 (text_window_invalidate_cursors): new function which exposes the
914 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
915 same cursor size calculation is in text_window_invalidate_cursors().
917 2005-05-25 Matthias Clasen <mclasen@redhat.com>
919 * demos/gtk-demo/editable_cells.c (create_items_model): Also
920 demonstrate GtkCellRendererProgress.
922 * demos/gtk-demo/Makefile.am (demos):
923 * demos/gtk-demo/combobox.c: Add a demo showing combo box
926 * demos/gtk-demo/Makefile.am (demos):
927 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
929 2005-05-24 Matthias Clasen <mclasen@redhat.com>
931 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
933 2005-05-24 Tor Lillqvist <tml@novell.com>
935 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
936 gtk-alternative-button-order (setting it to TRUE).
938 2005-05-23 Matthias Clasen <mclasen@redhat.com>
940 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
941 an unused variable. (#305130, Jaap A. Haitsma)
943 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
944 the focus away from the file list when operating the filter
945 combo with the pointer. (#304844, Sven Neumann)
947 2005-05-23 Tor Lillqvist <tml@novell.com>
949 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
950 GDK_Menu. (#172383, Ivan Wong)
952 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
953 of the special cases this function takes care of, use it as
954 such. This takes care of for instance the Bengali Virama, see bug
957 2005-05-20 Matthias Clasen <mclasen@redhat.com>
959 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
960 buffer overrun. (#142444, Leonard Michlmayr)
962 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
965 2005-05-18 Matthias Clasen <mclasen@redhat.com>
967 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
968 Use the correct function to conver the uri to a path. (#304565,
971 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
972 Cancel button properly. (#304234, Sven Neumann)
974 2005-05-18 Anders Carlsson <andersca@imendio.com>
976 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
977 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
979 If the horizontal adjustment changes because of a change in the
980 layout width, then do a complete redraw. This is because there
981 might be right-aligned or centered text that needs to be redrawn.
983 2005-05-18 Matthias Clasen <mclasen@redhat.com>
985 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
986 the event masks of descendent windows. (#169821, Tommi Komulainen)
988 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
989 (gtk_tree_view_set_column_drag_info): Fix some errors in the
990 handling of drop columns. (#143355, John Finlay)
992 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
993 Remove the no longer needed workaround.
995 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
996 allocations of mapped children.
998 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1001 2005-05-18 Tor Lillqvist <tml@novell.com>
1003 * gdk/win32/gdkevents-win32.c
1004 * gdk/win32/gdkkeys-win32.c
1005 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1006 lParam of WM_KEY* messages to distinguish between left and right
1007 Control and Alt keys. Unfortunately, the right Shift key doesnt
1008 set KF_EXTENDED, so to distinguish between left and right Shift
1009 keys, check the scan code. (#304584)
1011 2005-05-18 Matthias Clasen <mclasen@redhat.com>
1013 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1014 length overflows. (#161520, Ian Wienand)
1016 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1017 parameter names to make gtk-doc happy.
1019 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1020 values of draw-value and value-pos to be the values we
1021 actually use in _init. (#304547, Mikael Hallendal)
1023 * gtk/gtkcellrendererpixbuf.c: Support named icons in
1024 cells by adding a icon-name property. (#165777, Anders
1028 * gtk/gtktoolbutton.h:
1029 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
1030 (gtk_tool_button_get_icon_name): Support named icons in
1031 tool buttons by adding a icon-name property. (#116577,
1036 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
1037 (gtk_drag_set_icon_name): New functions to support themed
1038 drag icons. (#116577, Christian Neumair)
1040 2005-05-17 Owen Taylor <otaylor@redhat.com>
1042 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
1043 Update to changed cairo interface.
1045 * gdk/x11/gdkdrawable-x11.[ch]:
1046 Add _gdk_x11_drawable_update_size()
1048 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
1049 (gdk_window_move_resize)
1050 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
1051 Call _gdk_x11_drawable_update_size().
1053 2005-05-17 Matthias Clasen <mclasen@redhat.com>
1055 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1056 if the text view is not editable.
1058 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1059 the popup posted if the button is released over the cellview.
1060 This matches the behaviour of other combo box implementations.
1063 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1064 when recursing. (#153682, Felipe Heidrich)
1066 2005-05-16 Matthias Clasen <mclasen@redhat.com>
1068 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
1069 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
1071 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
1072 the entry is not editable. (#304171, Nikos Kouremenos)
1074 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
1075 Make sure the action of the button and the dialog are in sync,
1076 when the dialog is provided by the app. (#303987, David A Knight)
1078 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1079 in the docs. (#303940, Masao Mutoh)
1081 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1083 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1084 casting. (#304089, Philip Langdale)
1086 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1087 the label if we need to. (#169390, Felix Riemann)
1089 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
1092 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1095 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1096 call gdk_cairo_set_source_color() with a color.
1098 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1100 * tests/testiconview.c (main): cast args of drag functions to the
1103 2005-05-13 Owen Taylor <otaylor@redhat.com>
1105 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1107 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
1108 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1110 2005-05-11 Owen Taylor <otaylor@redhat.com>
1112 * tests/testgtk.c (on_alpha_window_expose): Fix to use
1113 gdk_cairo_create(). (create_alpha_window): Hook up "response"
1114 to close the window.
1116 2005-05-11 Owen Taylor <otaylor@redhat.com>
1118 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1119 to draw the swatch in to avoid having an extraneous window.
1121 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1122 color when !has_opacity.
1124 2005-05-10 Owen Taylor <otaylor@redhat.com>
1126 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1127 files for Cairo convenience functionality.
1129 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1130 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1132 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
1133 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1135 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1136 gdk_drawable_create_cairo_context() to gdk_cairo_create().
1138 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1139 Rename gdk_pixbuf_set_as_cairo_source() to
1140 gdk_cairo_set_source_pixbuf().
1142 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1143 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1146 * gdk/gdk.symbols: Update.
1148 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
1149 coordinate system problem that was causing the wrong portions
1152 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1153 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1154 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1155 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1156 gtk/gtkcellview.c (gtk_cell_view_expose)
1157 gtk/gtkdnd.c (gtk_drag_highlight_expose)
1158 gtk/gtkentry.c (gtk_entry_draw_text)
1159 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1161 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1162 GTK+ style ... use instance-private data and standard names for
1163 private structure, etc. Move function docs inline.
1165 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1166 expose. Switch drawing to Cairo.
1168 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1169 gtk_calendar_freeze/thaw
1171 2005-05-10 Tor Lillqvist <tml@novell.com>
1173 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1174 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1175 == gdk_screen_get_default(), as that might return NULL when this
1178 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1180 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1181 padding in RTL mode. (#303572, Maciej Katafiasz)
1183 2005-05-09 Owen Taylor <otaylor@redhat.com>
1185 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
1186 Fill in unused bits so they can be used for the depth-32 target case.
1187 Rewrite so that that gives a marginal speedup rather than a
1188 marginal slowdown. (on x86)
1190 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1191 Add gdk_screen_get_rgba_colormap/visual to get a visual for
1192 windows with an alpha channel, if one exists.
1194 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1195 Stub out gdk_screen_get_rgba_colormap/visual.
1197 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1198 "unused" wasn't right for depth == 32, since it depended on
1201 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1203 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1205 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1206 Implement again, without using Xft.
1208 * tests/testgtk.c: Add a test for windows with an alpha channel.
1210 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1212 * autogen.sh: Revert accidental commit.
1214 2005-05-08 Matthias Clasen <mclasen@redhat.com>
1216 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
1221 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1223 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1225 * gtk/gtkscrolledwindow.h:
1226 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
1227 (gtk_scrolled_window_get_cscrollbar): Change the return
1228 type to GtkWidget*, proposed by Owen Taylor.
1230 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
1231 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
1234 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1236 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1239 2005-05-07 Owen Taylor <otaylor@redhat.com>
1241 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1242 the background color.
1244 2005-05-07 Owen Taylor <otaylor@redhat.com>
1246 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
1247 Change prototype to match cairo_set_source_surface().
1249 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1250 gtk/gtkhsv.c tests/testcairo.c.
1252 2005-05-06 Federico Mena Quintero <federico@ximian.com>
1254 Merged from gtk-2-6:
1256 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1257 types if this is an AFS directory.
1258 (fill_in_names): If we are in an AFS directory, set the MIME type
1259 blindly to "x-directory/normal".
1261 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1263 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1264 initialize child-visible to FALSE, otherwise we may end up
1265 with the wrong page visible initially. (#302283, Patrik Fimml)
1267 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1268 appear insensitive in insensitive treeviews.
1270 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1272 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
1275 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1278 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1279 support in the tree view. (#150270)
1281 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1284 * gtk/gtkwidget.h: Small cleanups.
1286 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1289 2005-05-04 Owen Taylor <otaylor@redhat.com>
1291 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1292 in focus tracking when we move between has_pointer_focus and
1293 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
1296 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1297 happen in the case of no window manager + keyboard grabs, by
1298 moving to a more consistent model of when we pay attention to
1299 mode=NotifyGrab/NotifyUngrab events.
1301 * docs/focus_tracking.txt: Extensive writeup about how to track
1304 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
1306 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1307 cairo_set_source_surface()/cairo_paint();
1309 2005-05-04 Tor Lillqvist <tml@novell.com>
1311 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1312 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1313 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1314 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1317 2005-05-03 Matthias Clasen <mclasen@redhat.com>
1319 * gtk/gtkfilesystem.c:
1320 * gtk/gtkcelleditable.c:
1321 * gtk/gtktreemodel.c: Avoid getting the interface struct
1322 twice in the same function. (#300513, Billy Biggs)
1324 * gtk/gtkscrolledwindow.h:
1325 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
1326 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
1330 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
1331 Make this function public. (#170748, Morten Welinder)
1333 2005-05-02 Federico Mena Quintero <federico@ximian.com>
1335 Merged from gtk-2-6:
1339 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1340 to store struct stat for /afs and /net, and boolean fields to say
1341 whether these are valid.
1342 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1343 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1344 field of the folder structure.
1345 (fill_in_names): If the folder is a network directory, create a
1346 fake struct stat for its entries.
1347 (fill_in_stats): Don't stat() the children of network directories.
1349 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1350 is 0, use "Unknown" for the cell's displayed text.
1352 2005-04-28 Owen Taylor <otaylor@redhat.com>
1354 * gtk/gtkwidget.c: Add a draw-border style property to allow
1355 themes to draw outside the widget's allocation.
1357 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1358 that were working around the clip-leakage bug in Cairo.
1360 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1363 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1364 That updates a Cairo context to match a GC.
1366 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1367 for tiles/stipples/clipping to gdk_draw_glyphs(),
1368 gdk_draw_trapezoids().
1370 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1371 implementation of stipples. Use one cairo_t across the entire
1372 drawing operation. Replace cairo_matrix_create() with
1373 stack-allocated matrices.
1375 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1376 gdk/win32/gdkgc-win32.c: Save various aspects of the
1377 GC state (fill, tile, stipple, foreground, background, clip region)
1378 in instance-private-data for future use. Add getters.
1379 Get rid of _gdk_windowing_gc_get_foreground() function implemented
1382 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1383 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1384 _gdk_gc_init() to do initial setup of the GC from values;
1385 fixes some problems from drawable redirection.
1387 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1388 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
1389 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
1390 the generic code, add _gdk_windowing_gc_copy(),
1391 _gdk_windowing_gc_set_clip_region() to do backend specific
1394 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1395 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1396 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1397 Don't duplicate state that now is stored by the generic code.
1399 * gdk/gdk.symbols Update
1401 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1403 * tests/testiconview.c: Test cell renderers.
1405 * gtk/gtk.symbols: Add new functions.
1407 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1408 cell renderers for drawing and editing. (#148144, #160242)
1410 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1412 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1413 width for cases where pango_layout_get_pixel_extents() returns
1414 a rectangle with nonzero x.
1416 * gtk/gtkselection.c: Small doc fixes.
1418 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
1419 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1421 2005-05-02 Michael Natterer <mitch@imendio.com>
1423 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1424 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1425 multiple times when using gtk_get_option_group(), just as one can
1426 call gtk_init() multiple times without doing any harm.
1428 2005-05-01 Matthias Clasen <mclasen@redhat.com>
1430 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1431 the event to unanchored children in the text window.
1432 (#302494, Stephen Kennedy)
1434 2005-04-30 Tor Lillqvist <tml@novell.com>
1436 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1437 multi-monitor offset into account. (#302525)
1439 2005-04-29 Matthias Clasen <mclasen@redhat.com>
1441 * gtk/gtkradioaction.c: Make the docs build. (#302230,
1444 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1445 function, instead show the bin_window when it is created.
1447 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
1448 grab focus to unrealized widgets. (#302240, Philip Langdale)
1450 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1451 background upon state changes. (#301651, Billy Biggs)
1452 (gtk_tree_view_get_path_at_pos): Take RTL into account
1453 when iterating over the columns. (#302163)
1455 * configure.in: Check for nm.
1457 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
1458 Nguyen Thai Ngoc Duy)
1460 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1461 the internal unselect_all function, since we need the unselection
1462 to happen even in browse mode. (#300995, Mathias Hasselmann)
1464 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1465 of triggering a ::notify by re-setting the property. (#300982,
1468 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1470 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1471 scroll horizontally when necessary, and keep the northwest
1472 corner of the item visible. (#300913, Mathias Hasselmann)
1474 * tests/testiconview.c: Add some more tests.
1476 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1477 if the path does not point to a row in the model. (#300909,
1479 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
1482 * tests/testtext.c: Add some more attribute tests.
1484 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1485 of the rise property. String change, but it is more important to
1486 be correct than to be translated. (#301740)
1488 2005-04-25 Tor Lillqvist <tml@novell.com>
1490 * gtk/gtkfilesystemwin32.c
1491 (gtk_file_system_win32_volume_get_display_name): Get volume name
1492 also on Win9x. (#301798, Daniel Atallah)
1493 (canonicalize_filename): Add explicit braces to silence compiler
1496 2005-04-22 Tor Lillqvist <tml@novell.com>
1498 * gtk/gtkmain.c: Initailize gettext before use. Calling
1499 bindtextdomain() and bind_textdomain_codeset() in
1500 do_post_parse_initialization() is too late. Put the calls in a new
1501 function gettext_initialization(), and call that from
1502 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1503 GTK+'s part, but the same problem occurs also at least in
1504 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1506 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
1508 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1509 character height instead of cell height. Fix #301228.
1511 2005-04-18 Federico Mena Quintero <federico@ximian.com>
1513 Merged from gtk-2-6:
1515 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1516 obsolete assertion that the selected row can't be a volume; this
1517 is handled by the "removable" column now. Fixes #301017.
1519 2005-04-18 Owen Taylor <otaylor@redhat.com>
1521 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1522 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1523 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1524 setting color and opacity. (#301066, Vincent Noel)
1526 2005-04-15 Federico Mena Quintero <federico@ximian.com>
1528 Merged from gtk-2-6:
1530 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1531 Patch from Christian Neumair <chris@gnome-de.org>; only select the
1532 first row if we are in OPEN mode. The only other case we were
1533 letting pass through was SELECT_FOLDER, but selecting the first
1534 row when changing folders confuses people when folders are
1535 actually being selected. Fixes #171885.
1537 2005-04-13 Matthias Clasen <mclasen@redhat.com>
1539 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1540 Revert the fix for #169870, adjust the documentation instead.
1542 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1543 Revert the fix for #170727.
1545 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
1549 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1552 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
1555 2005-04-09 Matthias Clasen <mclasen@redhat.com>
1557 * gdk/x11/gdkinput-xfree.c:
1558 * gdk/x11/gdkinput-none.c:
1559 * gdk/gtk.symbols: Some more fixes necessary to
1560 make building with gcc 4 work.
1562 Add 16x16 versions of the zoom icons and of
1563 GTK_STOCK_INDEX. Some of the images were taken from
1564 the hicolor icon theme, and were originally created
1565 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
1568 * gtk/stock-icons/stock_index_16.png:
1569 * gtk/stock-icons/stock_zoom_1_16.png:
1570 * gtk/stock-icons/stock_zoom_fit_16.png:
1571 * gtk/stock-icons/stock_zoom_in_16.png:
1572 * gtk/stock-icons/stock_zoom_out_16.png: New images.
1574 * gtk/stock-icons/Makefile.am: Add the new images.
1576 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1577 Don't display too many broken images. (#169870, Roman
1578 Kagan, patch by Ivan Wong)
1580 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
1581 output. (#300013, Tommi Komulainen)
1583 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1585 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
1586 If a stock_id is unknown, display the missing image. (#169870,
1589 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
1590 as in updateiconcache.c. (spotted by Morten Welinder)
1592 2005-04-08 Carl Worth <cworth@cworth.org>
1594 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
1595 now that cairo exposes the cairo_matrix_t structure.
1597 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
1598 cairo API change in signedness of data argument.
1600 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1602 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
1603 work when called from gtk_combo_box_destroy(). (#172999,
1606 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1608 Fix double-click to autosize treeview columns. This was
1609 probably broken since 2.2 ! (#169675)
1611 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
1612 "user-resized" state of the column on a double-click to
1614 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
1615 Enter the "user-resized" state of the column only if a drag
1616 actually changes the column width, not on any click.
1618 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1620 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
1621 images on menus. (#169532, Benjamin Otte)
1623 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
1624 unaligned access. (#172947)
1626 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
1627 Consistently use the term "Bookmarks" in the UI. (#166906,
1630 Some fixes from Morten Welinder (#172947):
1632 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
1633 and platform-independent.
1634 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
1635 (build_cache): Error out if a stat fails.
1637 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1639 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
1640 a hint about hiding expanders.
1642 * gtk/updateiconcache.c (is_cache_up_to_date): Return
1643 TRUE if the cache is newer than the directory. (#172852,
1646 * configure.in: Replace an explicit pkg-config by
1647 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
1649 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
1650 Ignore regions which fall completely outside the line.
1651 (#165862, Felipe Heidrich)
1653 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1655 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1656 -1 as possible value.
1657 (gtk_tree_view_enable_model_drag_source)
1658 (gtk_tree_view_enable_model_drag_dest): Pass the target list
1659 to the underlying dnd implementation, otherwise we miss the
1660 target info in the drag-data-received signal. (#164085, Jorn
1663 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1665 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
1666 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1667 to gdk_window_get_pointer(). (#168015, Billy Biggs)
1669 * po/.cvsignore, po-properties/.cvsignore: Remove
1670 Makefile.in.in. (#171092, Stepan Kasal)
1672 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
1673 scanner->value, copy it first. (#165693, Tommi Komulainen)
1675 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1677 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
1678 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1679 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
1682 * gtk/gtkicontheme.c: Store icon caches along with the
1683 mtimes of the toplevel directories. The previous
1684 mechanism of a hashtable-per-theme caused duplicate icon
1685 caches for the same toplevel directory to be created.
1688 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1690 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
1691 Fix a typo in a warning.
1693 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1694 the license and credits buttons from being affected by
1695 gtk_widget_show_all(). (#172724)
1697 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1699 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
1700 reference to the item. (#167920, Hazael Maldonado Torres)
1702 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1703 more docs on interactive search.
1705 2005-04-05 Tor Lillqvist <tml@novell.com>
1707 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1708 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1709 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1711 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1712 24bpp GdkVisual on 32bpp displays. (#140706)
1714 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
1716 Fix for #172319, Tristan Van Berkom:
1718 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1719 gtk_tree_view_real_expand_row() instead of doing this by hand.
1721 2005-04-04 Johan Dahlin <johan@gnome.org>
1723 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1724 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1725 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1727 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
1729 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1730 cast combo->priv->entry to GTK_ENTRY()
1732 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1733 cast completion->priv->tree_view to GTK_TREE_VIEW()
1735 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1737 * gtk/gtktextbuffer.c: Some trivial doc fixes.
1739 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
1740 the wording of the doc comment. (#172422, Vincent Untz)
1742 2005-04-04 Owen Taylor <otaylor@redhat.com>
1744 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1745 drawing to Cairo. Also always draw the entire triangle instead
1746 of just drawing the center for prelight. (Fixes inconsistent
1747 drawing in GtkTreeView.)
1749 2005-04-04 Johan Dahlin <johan@gnome.org>
1751 * gtk/gtk.symbols: Remove symbols accidentally added.
1752 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1753 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1754 Use object_class instead of gobject_class
1756 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
1758 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1759 widget coordinates instead of root coordinates. Patch from Jorn
1762 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1764 * gtk/gtktoolbar.c: Add a tooltips property.
1766 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
1767 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1769 * gtk/gtktoggletoolbutton.c: Add an active property.
1771 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1773 Allow completion popups to be wider than the entry. (#131916,
1776 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1778 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1779 Don't force the popup to have the same width as the entry if
1780 popup-set-width is FALSE.
1782 * gtk/gtk.symbols: Add new functions.
1784 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1786 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1787 Use gtk_accel_map_change_entry(), so that reusing the same
1788 action name works. (#170727, Paolo Borelli)
1790 2005-04-04 Tor Lillqvist <tml@novell.com>
1792 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1793 function, to log a clipboard format name symbolically.
1794 (_gdk_win32_data_to_string): Also new, to log random data bytes.
1796 Implement delayed rendering on Win32, specifically for transfering
1797 images through the clipboard from GTK+ apps to other
1798 apps (#168173, implementation by Ivan Wong):
1800 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1801 Handle WM_RENDERFORMAT.
1803 * gdk/win32/gdkprivate-win32.h
1804 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1805 _delayed_rendering_data and _image_bmp.
1807 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1809 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1810 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1811 assume they are handled through delayed rendering.
1813 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1814 Return all available formats (including those registered by GTK+
1815 apps) on request_targets.
1816 (gdk_selection_property_get): We should append a zero byte like
1818 (gdk_win32_selection_add_targets): New function, for
1819 gtkselection's use. Win32 requires that the clipboard owner
1820 registers all valid formats even if the owner wants delayed
1822 (_gdk_win32_selection_convert_to_dib): New function. Convert
1823 images to DIB using gdk-pixbuf.
1825 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1827 * gtk/gtkselection.c (gtk_selection_add_target,
1828 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
1829 to register target formats.
1831 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
1833 2005-04-03 Hans Breuer <hans@breuer.org>
1835 [merged from gtk-2-6 branch]
1836 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
1837 the line pattern not the start of the line. Fixes bug #171641.
1839 * gtk/makefile.msc.in : follow .symbols changes
1841 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
1842 dynamically. (It is not available in _WIN_VER <= 0x0400)
1844 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
1846 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
1848 [also applied to gtk-2-6 branch]
1849 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
1851 * gdk/makefile.msc.in : add gtkmnemonichash.obj
1853 * test/testgtk.c(set_parent_signal) : use g_message instead of
1854 g_print to keep the 'testgtk --bench=all' output clean
1856 2005-04-03 Matthias Clasen <mclasen@redhat.com>
1858 * gtk/gtkruler.c: Add a "metric" property.
1860 * gtk/gtkradiomenuitem.c: Add a "group" property like
1861 the one found in radio buttons.
1863 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
1865 (gtk_radio_button_set_group): Add change notification.
1867 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1869 * gtk/gtkselection.c: Move documentation inline, document
1870 if add_target functions append or prepend. (#172350,
1873 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1875 Make gtk_combo_box_get_active_text do the right thing for
1876 GtkComboBoxEntry (#171373, Robert Staudinger)
1878 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
1880 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
1883 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1884 Implement get_active_text by always returning the content of
1887 2005-03-31 Sven Neumann <sven@gimp.org>
1889 Merged from gtk-2-6:
1892 * gtk/gtkiconview.c: fixed gtk-doc comments.
1894 2005-03-31 Michael Natterer <mitch@gimp.org>
1896 Allow to pop up menus without grabbing the keyboard. Useful for
1897 stuff like virtual keyboards. Fixes bug #159890
1900 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
1901 and public API gtk_menu_shell_set/get_take_focus().
1903 * gtk/gtkmenu.c (gtk_menu_popup)
1904 (popup_grab_on_window): don't grab the keyboard if take_focus
1907 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
1908 parent menu_shell's take_focus property to the submenu which is
1909 about to be popped up.
1911 2005-03-30 Federico Mena Quintero <federico@ximian.com>
1913 Merged from gtk-2-6:
1917 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
1918 if the row which changed is the same as the row being edited.
1920 2005-03-30 Matthias Clasen <mclasen@redhat.com>
1922 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1923 Make enable_search control only typeahead, not C-f. (#170435,
1925 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
1927 * gdk/gdkpixbuf.h: Include cairo.h
1929 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
1930 Don't accept n_targets == -1.
1931 (clipboard_unset): unref the old_data, not the
1932 user_data which we have just cleared. (#172038, Sven
1935 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
1936 segfault if somebody tries to popup an unrealized
1937 combo box. (#172031, Felipe Heidrich)
1939 2005-03-30 Tor Lillqvist <tml@novell.com>
1941 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
1942 state field should represent the state before the event, like on
1944 (gdk_event_translate): Fix event filter handling. If an event
1945 filter (global, client message filter, of window-specific) returns
1946 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
1947 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
1948 from gdk_event_translate() which means that DefWindowProc() will
1950 (gdk_event_translate): Fix client message handling. Append a
1951 GDK_CLIENT_EVENT unless there is a filter that matches and returns
1952 something other than GDK_FILTER_CONTINUE. (#135552)
1954 2005-03-29 Matthias Clasen <mclasen@redhat.com>
1956 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
1957 Document the need to refilter if parameters of the visibility function
1958 change. (#169516, Olivier Sessink)
1960 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
1962 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
1963 invalidate areas that are covered by mapped input-output child
1964 windows. Bug 141380.
1966 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
1968 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
1969 the preview label ellipsize so the dialog layout stays constant.
1972 2005-03-28 Matthias Clasen <mclasen@redhat.com>
1974 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
1975 the context menu of the search entry if it is not visible.
1976 (#169534, Billy Biggs)
1978 2005-03-27 Tor Lillqvist <tml@novell.com>
1980 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
1981 after all, and in fact necessary with HEAD libtool.
1983 2005-03-26 Matthias Clasen <mclasen@redhat.com>
1986 * gdk/gdkdisplaymanager.c:
1987 Use canonical names for g_object_notify() as well.
1989 2005-03-24 Tor Lillqvist <tml@novell.com>
1991 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
1992 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
1993 gtk+-2.0.pc file and automatically used by dependents. MSVC users
1994 who use pkg-config will have to manually edit it out from
1995 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
1996 some kind of conditionals in .pc files?
1998 2005-03-23 Matthias Clasen <mclasen@redhat.com>
2000 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2001 a call whose result was unused and leaked. (#170776,
2004 Some cleanups to the GtkDialog code: (#170746,
2006 * gtk/gtkdialog.c (action_widget_activated): Simplify,
2007 use _gtk_dialog_get_response_for_widget.
2008 (gtk_dialog_add_action_widget): Use the correct signal
2010 (gtk_dialog_set_response_sensitive):
2011 (gtk_dialog_set_default_response): Use get_response_data.
2012 (gtk_dialog_run): Don't disconnect the signals if the
2013 dialog was destroyed while running.
2015 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
2017 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2018 Use g_return_if_fail, not g_return_val_if_fail.
2020 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2022 Implement bookmark renaming (#136216, Sean Middleditch)
2024 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
2025 get_bookmark_label and set_bookmark_label vfuncs.
2027 * gtk/gtkfilesystem.h:
2028 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2029 (gtk_file_system_get_bookmark_label): Wrappers for the
2032 * gtk/gtk.symbols: Add new exported symbols.
2034 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
2035 (gtk_file_system_unix_get_bookmark_label): Implementations
2036 for the Unix backend.
2038 * gtk/gtkfilechooserdefault.c: Add a context menu to
2039 the bookmarks pane, and allow to rename bookmarks.
2041 2005-03-22 Matthias Clasen <mclasen@redhat.com>
2043 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
2044 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
2045 * gtk/gtknotebook.c (gtk_notebook_unmap):
2046 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2047 the widget is unmapped. (#168791, Ryan Lortie)
2049 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2051 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2052 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2053 their G_ counterparts, but also mark the name, nick
2054 and blurb as static.
2056 * gtk/*.c: Mark param spec strings as static, using
2059 * gtk/gtkspinbutton.h: Fix a typo.
2061 2005-03-21 Matthias Clasen <mclasen@redhat.com>
2063 * gtk/gtkcellrendererprogress.c:
2064 * gtk/gtkcellrendererpixbuf.c:
2065 * gtk/gtkcellrenderercombo.c:
2066 * gtk/gtkcellrenderer.c:
2067 * gtk/gtkcalendar.c:
2071 * gtk/gtkaspectframe.c:
2073 * gtk/gtkalignment.c:
2074 * gtk/gtkactiongroup.c:
2076 * gtk/gtkaccellabel.c:
2077 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2079 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
2080 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2081 param spec strings as static.
2083 2005-03-21 Tor Lillqvist <tml@novell.com>
2085 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2086 variables, unhandled enum value in switch). Use g_object_unref()
2087 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2089 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
2090 Add missing "case" keyword.
2092 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2095 2005-03-20 Tor Lillqvist <tml@novell.com>
2097 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2098 Terminal Services session number, window station name (always
2099 "WinSta0" in interactive processes), and desktop name (typically
2100 "Default"), concatenated with backslash separators.
2101 (gdk_display_open): Accept only NULL or the string
2102 gdk_display_get_name() returns as display name.
2104 2005-03-20 Matthias Clasen <mclasen@redhat.com>
2106 Make PLT-reduction work with gcc4, and don't include
2107 everything in gdkalias.h:
2109 * gtk/grk.symbols: Group symbols by header and source file.
2110 * gtk/makegtkalias.pl: Protect definitions by the same
2111 preprocessor symbols used to guard the headers. Move
2112 the alias declarations to a separate file which is
2113 produced when calling makegtkalias.pl -def
2114 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
2116 * gtk/*.c: Include gtkalias.h after the other headers,
2117 include gtkaliasdef.c at the bottom.
2118 * gtk/*.h: Small cleanups.
2120 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
2122 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2123 Make right-clicks not pop up the menu.
2125 2005-03-18 Owen Taylor <otaylor@redhat.com>
2127 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
2128 Call cairo_surface_finish()
2130 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2131 _gdk_windowing_set_surface_device_offset().
2133 2005-03-18 Tor Lillqvist <tml@novell.com>
2135 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2136 WM_MOUSEMOVE, don't check if this process owns the active
2137 window. This makes cross-application widget embedding work better.
2138 On WM_MOVE, don't bother checking for window visibility.
2140 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2141 unused variables. Add some casts to silence gcc.
2143 2005-02-24 Owen Taylor <otaylor@redhat.com>
2145 * gdk/gdkwindow.c: Use cairo_set_device_offset().
2147 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2148 gdk/win32/gdkpixmap-win32.c:
2149 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
2150 drawable. Add _gdk_drawable_win32_finish() to clean up resources
2151 when a drawable is destroyed.
2153 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2154 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
2155 acquire/release_dc when getting a DC to use with a GC or for
2156 blitting from a pixmap.
2158 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2160 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2161 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2164 * gdk/win32/gdkdrawable-win32.c: Remove
2165 gdk_draw_rectangle_alpha_libgtk_only()
2167 2005-03-17 Owen Taylor <otaylor@redhat.com>
2169 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2170 EXTEND_REPEAT on the stipple pattern.
2172 2005-03-17 Matthias Clasen <mclasen@redhat.com>
2174 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2175 in example in the docs. (#170611, Jianfei Wang)
2177 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2178 adjustment values on resize. (#170567, Tomislav Jonjic)
2180 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2181 if there is no cache. (#170652, Diego Gonzalez)
2183 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
2184 Make inline completion insert the prefix at the
2185 right spot. (#170146, Doug Quale)
2187 2005-03-17 Tor Lillqvist <tml@novell.com>
2189 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2191 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2193 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
2194 Typo fix in the docs.
2196 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
2197 Typo fix in the docs.
2199 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
2200 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
2201 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
2202 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
2203 (gtk_icon_view_set_column_spacing)
2204 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
2205 (gtk_icon_view_set_margin): Add docs.
2207 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
2210 2005-03-15 Owen Taylor <otaylor@redhat.com>
2212 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
2213 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2214 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2217 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2218 function to create_cairo_context()
2220 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2222 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2225 * tests/testcairo.c: Update for create_cairo_context()
2227 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2228 Reimplement in terms of Cairo, bypass the vtable entries.
2230 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2231 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2232 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2233 implementation of draw_trapezoids / draw_glyphs[_transformed].
2235 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2237 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2238 gdk_pango_context_get_for_screen() into the backend independent code.
2240 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2243 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2244 gdk_draw_rectangle_alpha_libgtk_only.
2246 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
2247 gdk_pixbuf_set_as_cairo_source()
2249 * gdk/gdk.symbols: Update
2251 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2252 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2254 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2255 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2256 radio button style for now to get something more scalable.
2258 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2259 antialiasing/dpi settings.
2261 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2263 * demos/gtk-demo/editable_cells.c: Also demonstrate
2264 GtkCellRenderer::editing-started and separators.
2266 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
2268 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2270 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2272 Make PLT-reduction work with gcc4, and don't include
2273 everything in gdkalias.h:
2275 * gdk/gdk.symbols: Group symbols by header and source file.
2276 * gdk/makegdkalias.pl: Protect definitions by the same
2277 preprocessor symbols used to guard the headers. Move
2278 the alias declarations to a separate file which is
2279 produced when calling makegdkalias.pl -def
2280 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2282 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2283 headers, include gdkaliasdef.c at the bottom.
2285 2005-03-16 Tor Lillqvist <tml@novell.com>
2287 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2288 debugging output only if asked for, not always.
2290 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2291 debugging printout instead of +%d+%d. Misc other additions and
2292 cosmetic improvements to debugging printouts. Use API_CALL() and
2293 GDI_CALL() macros in more places.
2295 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2296 gdk_window_move_resize): To detect child windows, check whether
2297 the real parent is not the desktop window, instead of relying on
2298 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2299 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2300 de facto child windows.
2302 * gdk/win32/gdkprivate-win32.h
2303 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2304 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2307 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2308 toplevel_window_type field.
2310 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2311 GDK on Win32, we can compare directly to _gdk_root instead of
2312 checking the window type.
2313 (gdk_window_reparent): When reparenting a child of the desktop
2314 clear out the window decorations. Correspondingly, when
2315 reparenting to the desktop, add decorations. As in the X11
2316 backend, save the window type of a toplevel window when
2317 reparenting, in case it is reparented back to toplevel.
2319 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2321 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2322 example for manually setting up a group of actions.
2324 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2325 Document that inline completion requires text-column to be set.
2326 (gtk_entry_completion_compute_prefix): Return NULL if text-column
2329 * gtk/gtkentry.c (check_completion_callback): Call
2330 gtk_entry_completion_complete() before inserting the prefix,
2331 otherwise the prefix may depend on (random) state of the
2334 2005-03-15 Anders Carlsson <andersca@imendio.com>
2336 * docs/iconcache.txt:
2339 * gtk/gtkiconcache.c: (find_image_offset),
2340 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2341 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2342 * gtk/gtkiconcache.h:
2343 Update to be able to fetch pixbuf data and icon metadata.
2345 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2346 (icon_info_ensure_scale_and_pixbuf):
2347 Use new cache functions.
2349 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2350 (maybe_cache_image_data), (scan_directory), (write_pixdata),
2351 (get_image_meta_data_size), (get_image_pixel_data_size),
2352 (get_image_data_size), (get_single_node_size), (get_bucket_size),
2353 (write_bucket), (main):
2354 Update to write pixbuf data as well as information from .icon
2357 2005-03-15 Tor Lillqvist <tml@novell.com>
2359 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2360 debugging function. As GetKeyNameText() returns a localized key
2361 name we need to convert it to UTF-8.
2363 * gdk/win32/gdkprivate-win32.h: Declare it.
2365 * gdk/win32/gdkevents-win32.c: Use it.
2367 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2368 handling of children of foreign windows. They should be child
2369 windows from Windows's perspective, even if they are toplevel GDK
2372 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
2374 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2375 for big window support. Now also the test in testgtk works.
2377 2005-03-11 Matthias Clasen <mclasen@redhat.com>
2379 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2380 style changes. (#169334, Yury Puzis)
2382 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2383 the doc comments. (#169967, Masao Mutoh)
2385 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
2387 Big window fix for Win32. Big windows are still emulated within
2388 16-bit coordinate limits, though. Big windows now work on NT-based
2391 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2394 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2396 * gdk/win32/gdkwindow-win32.c: Minor related changes.
2398 2005-03-10 Matthias Clasen <mclasen@redhat.com>
2400 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
2401 Fix a doc typo. (#169873, Johan Dahlin)
2403 * gtk/gtkdialog.c (gtk_dialog_map): Don't
2404 try to focus the default_widget if there is
2405 none. (#169881, Thomas Leonard)
2407 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
2409 * configure.in: Remove inadvertent gail references, require
2412 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2414 * configure.in: Require GLib 2.7.0
2416 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2418 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2419 (#169728, Morten Welinder, Owen Taylor)
2421 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2422 in the docs. (#169729, Morten Welinder)
2424 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2426 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
2427 when the model is unset. (#169528, Tomislav Jonjic)
2429 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2431 * gtk/gtkviewport.c (gtk_viewport_class_init):
2432 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
2433 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
2434 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
2435 * gtk/gtktext.c (gtk_text_class_init):
2436 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
2437 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
2438 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
2439 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
2440 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
2441 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
2442 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
2443 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
2444 * gtk/gtkimage.c (gtk_image_class_init):
2445 * gtk/gtkruler.c (gtk_ruler_class_init):
2446 * gtk/gtkiconview.c (gtk_icon_view_class_init):
2447 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
2448 * gtk/gtkprogress.c (gtk_progress_class_init):
2449 * gtk/gtkmenu.c (gtk_menu_class_init):
2450 * gtk/gtkscale.c (gtk_scale_class_init):
2451 * gtk/gtkpaned.c (gtk_paned_class_init):
2452 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
2453 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
2454 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
2455 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
2456 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2457 * gtk/gtkcurve.c (gtk_curve_class_init):
2458 * gtk/gtkcombo.c (gtk_combo_class_init):
2459 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
2460 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
2461 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
2462 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
2463 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
2464 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
2465 * gtk/gtkcellview.c (gtk_cell_view_class_init):
2466 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
2467 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
2468 * gtk/gtkclist.c (gtk_clist_class_init):
2469 * gtk/gtkctree.c (gtk_ctree_class_init):
2470 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
2471 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
2472 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
2473 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
2474 * gtk/gtkcalendar.c (gtk_calendar_class_init):
2475 * gtk/gtkbbox.c (gtk_button_box_class_init):
2476 * gtk/gtktable.c (gtk_table_class_init):
2477 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
2478 * gtk/gtkframe.c (gtk_frame_class_init):
2479 * gtk/gtkaction.c (gtk_action_class_init):
2480 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
2481 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
2482 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2484 2005-03-08 Matthias Clasen <mclasen@redhat.com>
2486 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
2487 * gtk/gtkrange.c (gtk_range_class_init):
2488 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
2489 * gtk/gtktexttag.c (gtk_text_tag_class_init):
2490 * gtk/gtktextview.c (gtk_text_view_class_init):
2491 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
2492 * gtk/gtknotebook.c (gtk_notebook_class_init):
2493 * gtk/gtkentry.c (gtk_entry_class_init):
2494 * gtk/gtkexpander.c (gtk_expander_class_init):
2495 * gtk/gtkarrow.c (gtk_arrow_class_init):
2496 * gtk/gtkalignment.c (gtk_alignment_class_init):
2497 * gtk/gtkbutton.c (gtk_button_class_init):
2498 * gtk/gtklabel.c (gtk_label_class_init):
2499 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
2500 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2501 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
2502 * gtk/gtktreeview.c (gtk_tree_view_class_init):
2503 * gtk/gtkbox.c (gtk_box_class_init):
2504 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
2505 * gtk/gtkcontainer.c (gtk_container_class_init):
2506 * gtk/gtkwidget.c (gtk_widget_class_init):
2507 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2508 when registering param specs.
2510 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2511 (#169607, Mark McLoughlin)
2513 * gtk/gtk.symbols: Add the new attributes here, too.
2516 * gtk/gtktreeview.h:
2517 * gtk/gtktreeviewcolumn.h:
2518 * gtk/gtktextbuffer.h:
2520 * gtk/gtkfilechooserdialog.h:
2522 * gtk/gtkcontainer.h:
2523 * gtk/gtkcelllayout.h:
2524 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2525 appropriate. (#165682, Marc Meissner)
2527 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2529 Convert the gdk keyval-keyname tables to a big string
2530 + offsets. (#168901)
2532 * gdk/gen-keyname-table.pl: Perl script inspired by
2533 pango/tools/gen-color-table.pl to create the
2534 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2535 of offsets pointing into a big const string.
2537 * gdk/keynames.txt: List of keyval-keyname pairs.
2538 * gdk/keyname-table.h: Generated tables.
2540 * gdk/gdkkeynames.c: Include keyname-table.h and don't
2541 generate the inverse table at runtime.
2543 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2545 * gtk/gtkstyle.c: Document which parameters may be NULL.
2546 (#166855, Frank Naumann)
2548 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2550 * AUTHORS: Add original authors of incorporated software.
2552 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
2554 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2556 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2558 * gtk/gtksettings.c (gtk_settings_get_property):
2559 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
2560 the values here. (#169047, Philip Langdale)
2562 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2563 Don't warn if a stock icon cannot be found. (#168830,
2566 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2568 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
2569 Avoid warnings if gtk_widget_reparent() is called at
2570 unusual times. (#168966, Christian Persch)
2572 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
2574 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
2575 const warnings on data structure seeding.
2577 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
2579 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2581 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2583 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
2584 Fix prelighting. (#157392, Vincent Noel, patch by
2587 * gtk/gtkicontheme.c (theme_lookup_icon): Make
2588 icon data caching work again. (#168851, Alexander Larsson)
2590 * gdk-pixbuf/gdk-pixbuf.c:
2591 * gdk-pixbuf/gdk-pixbuf-features.h.in:
2592 Revert the previous change, since it breaks
2595 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2598 * gdk/gdkpixbuf-drawable.c
2600 * gdk/x11/gdkdnd-x11.c
2601 * gdk/x11/gdkevents-x11.c
2602 * gdk/x11/gdkproperty-x11.c
2603 * gdk/x11/gdkvisual-x11.c
2604 * gdk-pixbuf/gdk-pixbuf.c
2605 * gdk-pixbuf/gdk-pixbuf-features.h.in
2608 * gtk/gtkcolorbutton.c
2610 * gtk/gtkcontainer.c
2611 * gtk/gtkfilechooserdefault.c
2615 * gtk/gtkinputdialog.c
2616 * gtk/gtkitemfactory.c
2620 * gtk/gtktreedatalist.c
2621 * gtk/gtkuimanager.c
2622 * gtk/tree_minus.xpm
2624 * gtk/xdgmime/xdgmime.c
2625 * gtk/xdgmime/xdgmime.h:
2626 Move constant data to .rodata.
2628 2005-02-27 Matthias Clasen <mclasen@redhat.com>
2630 * gtk/gtkaction.c (connect_proxy): Improve the handling
2631 of buttons as action proxys. (#165534, Milosz Derezynski)
2633 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
2634 (#168646, Vincent Untz)
2636 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
2637 Unset "focus-on-click" for the save folder combo. (#168688,
2640 2005-02-25 Matthias Clasen <mclasen@redhat.com>
2642 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
2645 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
2646 path here. (#168443, Morten Welinder)
2648 2005-02-24 Robert Ögren <gtk@roboros.com>
2650 Implement better handling of Wintab tablet context overlap on
2653 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2654 function that brings any tablet contexts to the top of the overlap
2656 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2657 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2658 Call _gdk_input_set_tablet_active when a window is activated (on
2661 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2663 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
2664 Don't leak parent_path. (#168435, Morten Welinder)
2666 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
2668 * gtk/gtkstyle.c: Add
2670 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2674 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2676 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2677 (gtk_combo_box_model_row_deleted): Update the displayed row in
2678 the cell_view. (#167842, Gustavo Carneiro)
2680 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2682 Fix #167259, reported by Christian Persch:
2684 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
2685 widget, even if we avoid the unrealizing.
2686 (gtk_widget_reparent_subwindows): Make reparenting work for
2687 !NO_WINDOW widgets which have other windows which are siblings
2688 of widget->window (as e.g. GtkSpinButton).
2690 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2692 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
2693 Don't emit a warning if a parent node is filtered out. (#164726,
2696 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2698 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
2699 change, since gtk_widget_set_style_internal() already
2702 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2704 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2705 fonts may have changed. (#164128, Phil Blundell)
2707 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
2708 (gtk_about_dialog_new): Move initialization code from _new to
2709 _init. (#168249, Murray Cumming)
2711 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
2713 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2714 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2717 2005-02-23 Tor Lillqvist <tml@novell.com>
2719 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2720 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2722 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
2724 * gtk/updateiconcache.c: #include <config.h>
2726 2005-02-22 Federico Mena Quintero <federico@ximian.com>
2728 Merged from gtk-2-6:
2730 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2732 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2733 (gdk_rgb_convert_565_d): Likewise.
2734 (DM_565): Made a static const precomputed array to avoid
2735 allocating it at runtime.
2736 (gdk_rgb_preprocess_dm_565): #ifdef out.
2738 2005-02-20 Matthias Clasen <mclasen@redhat.com>
2741 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2742 in the documentation.
2744 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2745 Set have_render_with_trapezoids to GDK_YES when we have
2746 a new enough Render extension. (#167965,Billy Biggs)
2748 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2749 the last user interaction when focusing the window. (#166379,
2752 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
2754 * gtk/gtkuimanager.c (start_element_handler): make sure expand
2755 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2757 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
2759 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2761 2005-02-16 Matthias Clasen <mclasen@redhat.com>
2763 * docs/iconcache.txt: Add some information about the
2764 icon cache format (since I can't locate it at freedesktop.org)
2766 Fixes for #143829, Tommi Komulainen, Christian Persch:
2768 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2769 typeselect_flush_timeout when destroying the widgets
2771 (gtk_tree_view_ensure_interactive_directory): Add the
2772 popup to the window group of the toplevel it belongs to.
2774 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
2775 (gtk_combo_box_popup): Do the same here.
2777 2005-02-14 Matthias Clasen <mclasen@redhat.com>
2779 * configure.in: Kill --enable-ansi (#164394)
2781 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2783 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
2784 when the pathbar goes away. (#167094, Rodney Dawes)
2785 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
2788 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2790 Support vertical menubars (#166632):
2792 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
2793 directions, with values for left-to-right, right-to-left,
2794 top-to-bottom and bottom-to-top.
2798 * gtk/gtkmenubar.c: Add two properties, pack-direction and
2799 child-pack-direction, which specify how children and
2800 grandchildren of a menubar are packed, with getters and setters.
2802 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
2803 (gtk_menu_bar_get_property): Implement set_property and get_property.
2805 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
2806 (gtk_menu_bar_size_allocate): Take pack direction into account.
2808 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
2809 move_current here move all the menubar-specific direction
2810 tweaking from the generic menushell implementation here.
2812 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
2813 direction tweaking from the generic menushell implementation here.
2815 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
2816 (gtk_menu_bar_size_allocate): Take pack direction into account.
2818 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
2819 (gtk_image_menu_item_size_allocate):
2820 (gtk_image_menu_item_toggle_size_request): Take child pack
2821 direction into account and pack the image vertically if
2824 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2825 Set the submenu direction to left-right for menuitems in
2827 (gtk_real_menu_shell_move_current): Simplify by moving
2828 direction tweaking to menu- and menubar-specific
2829 implementations. Take pack direction into account when
2832 * tests/testmenubars.c: Test menubars in various packing
2833 direction combinations.
2835 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2837 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2839 Complete the fix for #165770, Vincent Noel:
2841 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
2842 fallback size be 16, to be equal to the default for
2843 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2844 (gtk_file_chooser_button_init):
2845 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2846 GTK_ICON_SIZE_SMALL_TOOLBAR.
2848 2005-02-09 Matthias Clasen <mclasen@redhat.com>
2850 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
2851 keynav for going from menubar to menu.
2853 2005-02-08 Christian Rose <menthos@menthos.com>
2855 * configure.in: Added "xh" to ALL_LINGUAS.
2857 2005-02-08 Matthias Clasen <mclasen@redhat.com>
2859 * gtk/gtkuimanager.c (start_element_handler): Accept
2860 the "expand" attribute and set a flag in the node if it
2862 (update_node): If the expand flag is set, make separator
2863 toolitems non-drawn and expanding. (#166489, Christian Persch)
2865 2005-02-05 Hans Breuer <hans@breuer.org>
2867 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
2868 build with Cairo dependency. The patch to acually use Cairo
2869 on win32 will be on gtk-devel-list soon.
2870 * tests/makefile.msc : add testcairo building
2872 * gtk/stock-icons/makefile.msc : split command line into two to
2873 work with the shells default
2875 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
2877 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
2880 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2881 Add some extra parens for bitop order of operations disambiguiation.
2883 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
2884 domain when setting a translate function.
2886 * tests/testcombo.c: removed unused variable.
2888 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2890 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
2891 being NULL. (#166179, Diego Gonzalez)
2893 2005-02-04 Owen Taylor <otaylor@redhat.com>
2895 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
2896 up comment to talk only about backwards compat, not
2897 forward/backwards compat. (#166293, reported by Vincent Noel)
2899 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2901 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
2902 when there is not enough space. This avoids a nasty size
2903 allocation loop in the file chooser. (#154007, reported
2904 by Milosz Derezynski, patch by Robert Ögren)
2906 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2908 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
2909 selection of RTL direction if the widget does not have
2910 focus. (#164125, Frederic Crozat)
2912 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
2914 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
2916 2005-02-03 Owen Taylor <otaylor@redhat.com>
2918 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
2919 gdk_drawable_set_cairo_target().
2921 * tests/testtreeflow.c (enum): Use grand not rand as a variable
2922 name because one of the cairo headers is pulling in stdlib.h.
2924 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
2927 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
2929 * Require libpangocairo for all backends.
2931 2005-02-03 Tor Lillqvist <tml@novell.com>
2933 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
2934 wide character version of ImmGetCompositionString() here,
2935 too. (#165278, Takuro Ashie)
2937 2005-02-03 Matthias Clasen <mclasen@redhat.com>
2939 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
2940 one roundtrip per motion event. (#166173, pointed out
2941 by Chris Lee, patch by Søren Sandmann)
2945 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2946 New function which allows to change the function used for
2947 translation stock labels, on a per-domain basis. Use this
2948 functionality to switch the GTK+ stock items to use Q_()
2949 prefixed msgids. (#166179, Funda Wang)
2951 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
2954 2005-02-02 Federico Mena Quintero <federico@ximian.com>
2956 Merged from gtk-2-6:
2958 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2959 Don't select the first row if the chooser is not mapped. This
2960 happens when it's acting on behalf of GtkFileChooserButton. Also,
2961 don't select the first row if we are in SAVE or CREATE_FOLDER
2962 modes --- I had missed that (see the ChangeLog entry from
2963 2005-01-18). Fixes #165264.
2965 2005-02-02 Tor Lillqvist <tml@novell.com>
2967 Implement lazy extended input initialization on Win32, by Robert
2968 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
2969 be a good idea in any case even if it didn't fix any visible
2972 The Wacom tablet driver seems to get confused if Wintab is
2973 initialized but no window is shown before the process exits. This
2974 is the case for some GIMP plug-ins, for instance.
2976 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
2977 non-static (and renamed).
2978 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
2980 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
2982 * gdk/win32/gdkinput.c (gdk_devices_list,
2983 gdk_display_list_devices, gdk_input_set_extension_events): Call
2984 _gdk_input_wintab_init_check() here instead.
2986 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
2988 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
2989 of a single window so that gtk_clipboard_request_contents() can be
2990 called inside a GtkClipboardReceivedFunc(). (#163844)
2992 2005-02-01 Matthias Clasen <mclasen@redhat.com>
2994 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
2995 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
2997 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
2998 to NULL after freeing it. (#165800, Damon Chaplin)
3000 2005-02-01 Michael Natterer <mitch@gimp.org>
3002 * configure.in: depend on stable pango-1.8, not unstable 1.7
3004 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3006 Merged from gtk-2-6:
3008 * gtk/gtkfilechooserdefault.c
3009 (browse_files_model_finished_loading_cb): Don't
3010 g_assert_not_reached() if we are in any other state. Another code
3011 path may have triggered a folder reload. Fixes #165556.
3013 2005-02-01 Federico Mena Quintero <federico@ximian.com>
3015 Merged from gtk-2-6:
3019 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3020 fallback size be 16, to be equal to the default for
3021 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3022 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3023 GTK_ICON_SIZE_SMALL_TOOLBAR.
3025 2005-02-01 Matthias Clasen <mclasen@redhat.com>
3027 * */*.c: Fix many instances of "the the" in docs and
3028 comments. (#165815, Masao Mutoh)
3030 * gtk/updateiconcache.c (main): Add a --quiet option.
3032 2005-02-01 Tor Lillqvist <tml@novell.com>
3034 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3035 reset_after_dead, handle_dead): New functions, code blocks
3036 refactored out of update_keymap(). No functionality change.
3038 (update_keymap): Use ToUnicodeEx() when available (on NT-based
3039 Windows) instead of ToAsciiEx(). Makes keyboard input work in
3040 Unicode-only input locales that don't have any ANSI codepage, for
3041 instance Hindi and Bengali. Use _gdk_input_codepage only on
3044 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3045 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3046 TranslateCharsetInfo() to get the input locale's corresponding
3049 2005-01-31 Matthias Clasen <mclasen@redhat.com>
3051 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
3052 NULL-terminated va lists. (#165683)
3054 2005-01-29 Matthias Clasen <mclasen@redhat.com>
3056 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
3057 Typo fix. (#165581, Masao Mutoh)
3059 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
3061 * README.cvs-commits: update ancient IRC info.
3063 2005-01-27 Federico Mena Quintero <federico@ximian.com>
3065 Merged from gtk-2-6:
3067 * gtk/gtkfilechooserdefault.c
3068 (gtk_file_chooser_default_select_path): Oops, don't assert that we
3069 can't reach the end of the function; this happens if we are still
3070 loading but don't need a path change. Fixes #165213.
3072 2005-01-27 Matthias Clasen <mclasen@redhat.com>
3074 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3075 Make wrapping work in RTL mode.
3077 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3078 obey HIG spacing a bit more, add a hand cursor when over the
3079 link button. (#163979, Jorn Baayen)
3081 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3083 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
3084 Don't allow -1 as minimum-key-length.
3085 (gtk_entry_completion_set_model): Add missing notification.
3086 (gtk_entry_completion_set_minimum_key_length): Add missing
3087 notification, allow setting minimum-key-length to 0. (#165194,
3090 2005-01-26 Matthias Clasen <mclasen@redhat.com>
3092 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3093 the license dialog is initially displayed without a horizontal
3095 (gtk_about_dialog_class_init): Document the fact that the
3096 license text is not wrapped. (#165012, Christian Rose)
3098 2005-01-25 Matthias Clasen <mclasen@redhat.com>
3100 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
3103 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
3104 docs. (#165163, Jeff Franks)
3106 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3107 for a string GValue. (#165203, Damon Chaplin)
3109 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3111 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
3112 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
3115 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3117 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3119 2005-01-24 Federico Mena Quintero <federico@ximian.com>
3121 Merged from gtk-2-6:
3123 Fix #147785 and clean up the loading code:
3125 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3126 be EMPTY, PRELOAD, LOADING, FINISHED.
3127 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3128 (struct _GtkFileChooserDefault): Added a pending_select_paths
3130 (load_remove_timer): Add the new states.
3131 (load_setup_timer): Likewise.
3132 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
3133 (browse_files_model_finished_loading_cb): Switch to the
3134 LOAD_FINISHED state.
3135 (enum PendingOp): Removed.
3136 (struct _GtkFileChooserDefault): Removed the pending_op and
3137 pending_select_path fields.
3138 (pending_select_paths_free): New utility function.
3139 (pending_select_paths_add): New utility function.
3140 (gtk_file_chooser_default_finalize): Call
3141 pending_select_paths_free().
3142 (pending_op_queue): Removed.
3143 (pending_op_process): Removed.
3144 (pending_select_paths_process): New function.
3145 (browse_files_model_finished_loading_cb): Call
3146 pending_select_paths_process().
3147 (center_selected_row_foreach_cb): Handle multiple selection by
3148 only centering the first row.
3149 (get_is_file_filtered): Constify.
3150 (gtk_file_chooser_default_select_path): Queue into a list of paths
3151 to select if we are not finished loading.
3152 (show_and_select_paths): New utility function.
3153 (up_folder_handler): Use pending_select_paths_add().
3154 (gtk_file_chooser_default_should_respond): Do not call
3155 pending_op_queue(); free the pending_selected_paths instead.
3156 (gtk_file_chooser_default_initial_focus): Don't queue a pending
3157 operation, and don't select the first row unconditionally --- this
3158 will happen when the folder is done loading.
3159 (shortcuts_row_activated_cb): Free the pending_select_paths.
3160 (pending_select_paths_store_selection): New utility function.
3161 (gtk_file_chooser_default_map): Call
3162 pending_select_paths_store_selection() to save the selection
3163 before reloading the folder.
3164 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
3165 move the cursor here; it will be done when processing the pending paths.
3167 * tests/testfilechooser.c (main): Add a button to the command
3168 window to unmap and remap the file chooser.
3170 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3172 * docs/tutorial/gtk-tut.sgml:
3173 * docs/tutorial/gtk_tut.sgml:
3174 * docs/reference/gtk/tmpl/gtkliststore.sgml:
3175 * gtk/gtkactiongroup.c:
3176 * gtk/gtksizegroup.c:
3177 * gtk/gtksizegroup.h:
3178 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3179 appropriate. (#165108, Dan Winship)
3181 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3183 * gtk/gtkwidget.c (gtk_widget_class_init): Document
3184 GtkWidget::style-set. (#164222, Alex Graveley)
3186 2005-01-22 Matthias Clasen <mclasen@redhat.com>
3188 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
3189 Remove the accidentally added prototype for this unimplemented
3190 function. (#164893, Jeff Franks)
3192 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3195 2005-01-23 Tor Lillqvist <tml@novell.com>
3197 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3198 dead accent key. (#164859, reported and fix verified by Daniel
3201 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3202 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3205 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
3206 Don't call GetVolumeInformation() for network drives. They might
3207 be disconnected, and calling GetVolumeInformation() will then
3208 cause long delays. (#164448, reported by Dave Neary.) It seems to
3209 be very hard to reliably find out whether a network drive is
3210 connected or not, so it's easier to just not try getting the
3211 volume name for them. See the bug report for discussion.
3213 Make volume name display formats translatable.
3215 Fix for #163702, from Ivan Wong:
3217 * gdk/win32/gdkprivate-win32.h
3218 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3220 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3221 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3222 GDK_SELECTION_CLEAR event.
3224 * gdk/win32/gdkselection-win32.c
3225 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3226 when emptying the clipboard ourselves.
3228 (gdk_selection_send_notify_for_display): Remove the artifical
3229 GDK_SELECTION_CLEAR event generation.
3231 2005-01-21 Matthias Clasen <mclasen@redhat.com>
3233 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3234 provided by Bill Haneman.
3236 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3238 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
3241 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3242 here, even if the only focusable widgets are labels.
3244 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3246 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3248 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
3249 Add a follow-state property which when TRUE causes the pixbuf
3250 to be tinted according to state.
3252 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3253 Use follow-state and colorize the pixbuf when appropriate.
3255 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3257 Support wrapping in GtkCellRendererText (#163608):
3259 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3260 Add wrap-mode and wrap-width properties which cause a
3261 text cell to break to a specified width when set.
3263 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3264 and wrap-width when they are set.
3266 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3268 * gtk/gtkmodules.c (load_module): Don't reverse the order
3269 of modules when putting them in gtk_modules. (#162676, Dennis
3270 Cranston, patch by Remus Draica)
3272 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
3273 if the tree is empty. (#164669, Priit Laes)
3275 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
3277 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3278 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3281 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
3283 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3284 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3286 2005-01-19 Tor Lillqvist <tml@novell.com>
3288 * gdk/win32/gdkkeys-win32.c (update_keymap,
3289 gdk_keymap_translate_keyboard_state): Handle keyboards with
3290 ShiftLock (and not CapsLock) correctly. (#161814)
3292 2005-01-19 Matthias Clasen <mclasen@redhat.com>
3294 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3295 In save mode, don't return paths containing nonexisting
3296 directories. (#162443, Jean Marie Favreau)
3298 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
3299 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3301 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3304 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
3305 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
3309 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
3310 Add a function to obtain the last user interaction
3311 time. (#163119, Elijah Newren)
3313 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
3315 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3318 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
3320 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3321 disambiguate nested if/else.
3323 2005-01-18 Federico Mena Quintero <federico@ximian.com>
3325 Merged from gtk-2-6:
3327 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3328 operation to select the first file if we are in SAVE or
3329 CREATE_FOLDER modes. Executing that operation would overwrite the
3330 contents of the save-name entry.
3332 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3335 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
3336 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3337 pointer warping to GDK. (#160437)
3339 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3341 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3343 * gtk/gtkstyle.c (gtk_default_draw_check)
3344 (gtk_default_draw_option, gtk_default_draw_handle): Add some
3345 more NULL checks, patch by Michael Natterer.
3347 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
3349 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3352 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3353 NULL widget. (#164477, Michael Natterer)
3355 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3357 Avoid X errors when running against servers which
3358 implement XRender < 0.4. (#164427, Albert Chin)
3360 * gdk/x11/gdkprivate-x11.h:
3361 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3362 New function to check for trapezoid support in XRender.
3363 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
3366 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
3367 separate have_render_with_trapezoids field.
3369 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3371 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3373 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3375 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
3377 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3380 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3382 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3383 and restore the selected row in the bookmark list and the
3384 save folder combo. (#164290)
3386 2005-01-16 Matthias Clasen <mclasen@redhat.com>
3388 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3389 Fix argument order in docs.
3391 2005-01-15 Matthias Clasen <mclasen@redhat.com>
3393 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
3394 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
3395 if the keymap is neutral. (#164125, Phil Blundell)
3397 2005-01-14 Matthias Clasen <mclasen@redhat.com>
3399 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3400 reset the property to its default value -1.
3401 (gtk_tree_view_get_search_column): Return the default value in
3402 the g_return_val_if_fail() check. (#163864, Richard Hult)
3404 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
3405 Add a translator hint. (#163889)
3407 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3408 is an enum value, not a define. Pointed out by Tommi Komulainen.
3409 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3411 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3413 * configure.in: Check for nl_langinfo()
3414 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3415 available to determine first day of week (#163842, Vincent Untz)
3417 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
3418 the lifecycle of widgets. (#159503, Christian Persch)
3420 * demos/gtk-demo/main.c (create_text): Use monospace for the
3421 source code view. (#163526, Theerud Lawtrakul)
3423 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3424 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
3427 * configure.in: Add an OS_LINUX conditional.
3429 * gdk/Makefile.am (TESTS):
3430 * gdk-pixbuf/Makefile.am (TESTS):
3431 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
3434 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3436 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3437 (gtk_tree_view_set_headers_clickable): Make the headers-visible
3438 property readwrite instead of just writable, and remove the
3439 g_return_if_fail check that there is a model when setting this
3440 property. Also improve the blurb. (#163851, Richard Hult)
3442 2005-01-12 Owen Taylor <otaylor@redhat.com>
3444 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3445 initialization of gdktarget, that was causing it to be
3446 evaluated before host was set. Simplify --with-gdktarget help
3449 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
3450 which doesn't work with slightly older versions of GNU grep
3451 in install-libtool-import-lib rule.
3453 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
3455 Fix for #162790, by Iwan Wong:
3457 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3458 correctly. Simplify the interface to render_line_horizontal() and
3459 render_line_vertical(). Need to draw lines "manually" also on
3460 NT-based Windowses if we have a dash offset or are drawing
3461 double-dashed lines.
3463 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3464 double-dash flag, and a brush for the background colour (used by
3465 the odd dashes in the double-dash line style) in the GdkGCWin32
3468 * gdk/win32/gdkgc-win32.c: Set up above new fields.
3470 2005-01-10 Federico Mena Quintero <federico@ximian.com>
3474 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3475 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3476 (gtk_file_system_unix_get_folder): Make error reporting more
3477 accurate. Don't bail out if we can't read the directory.
3478 (fill_in_stats): Don't return an error; just assume we don't have
3479 stat info for this folder's files.
3480 (fill_in_names): Don't create the hash table for the names if we
3481 can't open the directory.
3482 (gtk_file_folder_unix_list_children): Don't emit the
3483 "finished-loading" signal --- we don't do asynchronous loads, so
3484 we are always finished loading.
3485 (gtk_file_folder_unix_get_info): Use helper functions; handle the
3486 case where we can't stat '/'.
3487 (get_icon_type_from_path): Don't call fill_in_stats() here; only
3488 use the info we have.
3489 (fill_in_mime_type): Don't return an error. Don't do anything if
3490 we don't have the stat info.
3492 2005-01-10 Owen Taylor <otaylor@redhat.com>
3494 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3497 2005-01-10 Matthias Clasen <mclasen@redhat.com>
3499 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3500 signals. (#163319, Murray Cumming)
3502 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
3504 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3505 cursor also when changing the cursor of a window that is the first
3506 ancestor of the window containing the pointer that has a cursor
3507 defined. (#163035, Ivan Wong)
3509 2005-01-09 Anders Carlsson <andersca@gnome.org>
3511 * gtk/gtkcellrenderertext.c: (get_size):
3512 * gtk/gtklabel.c: (gtk_label_size_request):
3513 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3514 Don't pass NULL to pango_context_get_metrics. Use
3515 pango_context_get_language instead, which is way faster.
3517 2005-01-08 Matthias Clasen <mclasen@redhat.com>
3519 * configure.in: Bump version
3521 * === Released 2.6.1 ===
3523 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3525 2005-01-07 Tor Lillqvist <tml@iki.fi>
3527 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3528 Fix braino. (#163232, Arnaud Charlet)
3530 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3532 * gtk/gtkiconview.c: Make markup_column work, and fix some
3533 layout issues when either icon or text is missing. (#163065)
3535 2005-01-06 Federico Mena Quintero <federico@ximian.com>
3537 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3538 "Open _Location" item. Fixes #148839.
3540 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3542 * README.in: Fix a typo. (#163128, kentaro fukuchi)
3544 2005-01-06 James M. Cape <jcape@ignore-your.tv>
3546 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
3547 (gtk_file_chooser_button_new_with_backend): Use default title if
3550 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
3553 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3557 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
3558 a pending operation to select the first row.
3560 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3562 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
3563 button_data_free() explicitly; the button is weak-reffed and the
3564 callback will free the button data. Fixes #163010.
3565 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
3566 failure case, call gtk_widget_destroy() on it.
3568 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
3569 gtk_file_system_get_folder() again (see the ChangeLog entry from
3570 2004-08-25). We can't first get the parent folder and then
3571 request the info for the path in question, as the parent folder
3572 may not be readable. See bug #162617.
3573 (gtk_file_chooser_default_set_current_folder): Assert that the
3574 passed-in path is not null.
3575 (shortcuts_find_current_folder): Likewise.
3576 (shortcuts_add_current_folder): Likewise.
3577 (set_list_model): Likewise.
3578 (gtk_file_chooser_default_map): Only reload the current folder if
3580 (bookmarks_check_add_sensitivity): Check for the current folder
3582 (browse_files_select_first_row): Don't set the cursor if there is
3585 2005-01-05 Matthias Clasen <mclasen@redhat.com>
3587 * gtk/gtkfilechooserdefault.c: Don't construct errors from
3588 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
3589 (get_file_info, check_is_folder): Translate errors from
3590 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
3591 of the fix for #162911, noticed by Murray Cumming.
3593 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
3595 * gtk/gtkviewport.c (gtk_viewport_realize):
3596 * gtk/gtktextview.c ((text_window_realize): Set the background of
3597 the windows to None instead of adding EXPOSURE_MASK, as suggested
3600 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
3601 the user time when receiving a WM_DELETE message. (#162980,
3604 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
3606 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
3607 only reorder on button 1, part of #141937
3609 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
3613 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
3614 to win->window's event_mask
3616 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
3617 to viewport->view_window.
3619 2005-01-04 Matthias Clasen <mclasen@redhat.com>
3621 * demos/testpixbuf.c (main): Remove the size_prepared callback,
3622 to test incremental display.
3623 (new_testrgb_window): Return the drawing area, not the window,
3624 since we want to queue draws on the drawing area.
3626 2005-01-03 Matthias Clasen <mclasen@redhat.com>
3628 * examples/*: Re-extract.
3630 * docs/tutorial/gtk-tut.sgml: Small corrections.
3632 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
3633 section. (#161414, Robert Ancell)
3635 * docs/tutorial/gtk-tut.sgml: Make it build.
3637 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
3638 regarding modality. (#112903, Dave Bordoley)
3640 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
3641 Add a little motivation. (#145556, Tommi Komulainen)
3643 * docs/tutorial/gtk-tut.sgml: Clarify section on
3644 g_signal_connect_swapped. (#120543, David Bourguignon)
3646 Make gtk_icon_theme_load_icon() work independent of
3647 icon factory initialization. (#162791, Tristan Van Berkom)
3649 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
3650 _gtk_icon_factory_ensure_default_icons, and make it non-static.
3652 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3654 2005-01-02 Matthias Clasen <mclasen@redhat.com>
3656 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
3657 Don't add a shortcut here. (#162752, Tor Lillqvist)
3659 2005-01-02 Tor Lillqvist <tml@iki.fi>
3661 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3662 CoTaskMemFree in get_special_folder() below.
3664 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3665 Win32 using _gtk_file_system_win32_path_compare().
3667 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3669 * gtk/gtkfilechooserbutton.c (model_add_special)
3670 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3671 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3674 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3675 consider all drives "mounted", including floppies. Trying to
3676 inspect the contents of a nonexistent floppy will cause errors
3677 later that are handled normally, no need to avoid them
3678 completely. Keep the drive type in the GtkFileSystemVolume.
3679 Support UNC paths. (#161797, #137874) Fix error message
3680 capitalizations as in gtkfilesystemunix.c.
3682 (gtk_file_system_win32_init): Start one timeout per
3685 (gtk_file_system_win32_finalize): Remove the timeout.
3687 (get_special_folder): Copied from GLib.
3689 (_gtk_file_system_win32_get_desktop): New function, uses
3690 get_special_folder().
3692 (gtk_file_system_win32_list_volumes): Don't start a timeout at
3693 each call to this function. Don't assume A: and B: are floppies.
3695 (gtk_file_system_win32_get_volume_for_path): Don't assume all
3696 volumes are drive roots, i.e. support share roots of UNC paths
3699 (gtk_file_system_win32_get_folder): Don't assume errno is set
3700 after g_file_test() returns FALSE. It isn't on Win32 (and even on
3701 Unix I don't think one should assume anything about errno after
3704 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3706 (gtk_file_system_win32_volume_get_display_name): Don't call
3707 GetVolumeInformation() on drives A: or B: if they are removable,
3708 as they might then be floppies, causing an unnecessary
3711 (gtk_file_system_win32_volume_render_icon): Use network icon for
3712 unrecognized drive types.
3714 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3715 confused by UNC paths.
3717 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3718 for case-insensitive UTF-8 path comparison.
3720 (extract_icon): Use SHGetFileInfo() which is faster than
3721 ExtractAssociatedIcon(). Icon extraction is still slow, though,
3724 (win32_pseudo_mime_lookup): Don't use the same icon for all
3725 shortcuts or executables. Cache only other file type icons.
3727 (gtk_file_system_win32_render_icon): Use network stock icon for
3728 remote drives and UNC server share roots. Compare home directory
3729 case-insensitively. Do lookup icons also for executable files,
3730 after all, it's these files that can have individual icons in the
3731 first place. Yes, it can be slow. Needs work.
3733 (filename_is_drive_root): Require also the slash after the colon.
3735 (filename_is_server_share): New function.
3737 (_gtk_file_system_win32_path_compare): New function, does
3738 case-folded UTF-8 comparison.
3740 * gtk/gtkfilesystemwin32.h: Declare
3741 _gtk_file_system_win32_path_compare().
3743 2005-01-01 Matthias Clasen <mclasen@redhat.com>
3745 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3746 custom image by passing NULL.
3747 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3748 a problem with changing stock labels. (#162273, Marcin
3751 2005-01-01 Tor Lillqvist <tml@iki.fi>
3753 * gtk/gtkmodules.c (get_module_path)
3754 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3755 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3756 g_getenv() now returning UTF-8 on Win32, no need to call
3759 2004-12-31 Matthias Clasen <mclasen@redhat.com>
3761 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
3762 (_gtk_key_hash_lookup): Don't sort a list of values as if
3763 it was a list of entries. This fixes crashes during mnemonic
3764 activation in the presence of multiple keymaps. (#162488,
3767 2004-12-30 Matthias Clasen <mclasen@redhat.com>
3769 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3770 state propagation when making an insensitive combo box sensitive
3771 again. (#162524, Carlos Garnacho Parro)
3773 * gtk/gtkfilechooserdefault.c: Use secondary text for error
3776 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3777 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3778 for error messages. Also mark some error messages for translation,
3779 fix capitalization of error messages.
3781 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3782 Use g_value_get_boolean() for ellipsize_set. (#162447,
3785 2004-12-30 Tor Lillqvist <tml@iki.fi>
3787 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3790 2004-12-28 Matthias Clasen <mclasen@redhat.com>
3792 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3793 submenu direction from the parent menu.
3795 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
3796 Return a boolean indicating whether an item in the submenu
3798 (gtk_real_menu_shell_move_current): When going in child
3799 direction, don't get stuck at completely insensitive
3800 submenus. (#162055, Billy Biggs)
3802 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3804 Make the clipboard image API more robust (#162357,
3805 Torsten Schoenfeld):
3807 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3808 ref the pixbuf if it is NULL.
3810 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
3811 NULL-terminate the varargs in the call to
3812 gdk_pixbuf_save_to_buffer().
3813 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
3814 if there is data to load.
3816 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3818 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3819 Set x_root and y_root in button and motion events from
3820 extended input devices. (#148715, Robert Ögren)
3822 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
3823 typo. (#162339, Alessio Dessi)
3825 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3826 properties as new since 2.4. (#156101, Billy Biggs)
3828 * configure.in: Add a warning about the linux-fb
3829 target. (#155488, Zeeshan Ali)
3831 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
3834 2004-12-26 Matthias Clasen <mclasen@redhat.com>
3836 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
3837 Typo fix. (#162219, Masao Mutoh)
3838 (gtk_file_chooser_set_preview_widget_active):
3839 Another typo. (#162218, Masao Mutoh)
3841 2004-12-23 Matthias Clasen <mclasen@redhat.com>
3843 * gtk/gtkliststore.c (gtk_list_store_iter_children):
3844 Return TRUE if there are children. (#162134, Iñigo Serna,
3845 patch by John Finlay)
3847 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
3848 Transfer state from the button to the cell view to get
3849 prelighting right. (#156327, Ricardo Veguilla)
3851 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
3853 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
3854 timeout. Written by Christian Persch.
3856 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
3860 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
3861 background for windows that get expose events.
3863 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
3864 hack to repaint !expose windows.
3866 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
3868 Bug #147497, make menu items activate immediately when you release
3871 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
3872 items activate immediately.
3874 * gtk/gtkmenu.c (definitely_within_item): New function
3875 * gtk/gtkmenu.c (check_threshold): New function
3877 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3879 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
3880 null the mnemonic_menu when unsetting a mnemonic, reported
3883 2004-12-21 Matthias Clasen <mclasen@redhat.com>
3885 * gtk/gtkliststore.c (generate_order): Generate the order the
3886 way it is supposed to be, order[new_pos] == old_pos.
3887 (gtk_list_store_reorder): Invert the order before using it.
3889 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3891 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
3893 * gtk/gtkliststore.c (generate_order): Generate the order the
3894 way it is supposed to be, order[new_pos] == old_pos.
3895 (gtk_list_store_reorder): Invert the order before using it.
3897 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
3900 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
3902 * gtk/queryimmodules.c (main): print out the version and binary
3903 name in the header comment. Problem reported by Seth Nickell.
3905 2004-12-20 Matthias Clasen <mclasen@redhat.com>
3907 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
3908 root path to gtk_tree_model_rows_reordered(). (#161720,
3909 Marcin Krzyzanowski)
3911 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
3912 translate NULL messages. (#161789, Morten Welinder)
3914 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
3915 the secondary label on show_all(). (#161707, Christian Persch)
3917 2004-12-19 Tor Lillqvist <tml@iki.fi>
3919 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
3920 Use wide character API when available. Use UTF-8 for filenames.
3922 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
3923 the string's trailing zero byte in the property's length, just for
3926 2004-12-18 Matthias Clasen <mclasen@redhat.com>
3928 * gtk/gtkfilechooserentry.c (check_completion_callback)
3929 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
3931 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
3932 (shortcuts_drag_outside_idle_cb): Add missing
3933 GDK_THREADS_ENTER/LEAVE. (#161604)
3935 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
3936 (list_select_func): Don't call gtk_file_info_get_is_folder()
3939 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
3940 (gtk_about_dialog_init): Add missing initializations. (#161646,