1 2005-06-19 Kristian Rietveld <kris@gtk.org>
3 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
4 if treeview's height is smaller than the current page_size (just
7 2005-06-19 Kristian Rietveld <kris@gtk.org>
9 Make mousewheel scrolling possible in typeahead mode, suggestion
10 from Reinout van Schouwen (#307898).
12 * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
13 connect treeview search window to scroll_event signal,
14 (gtk_tree_view_search_scroll_event): implement.
16 2005-06-19 Kristian Rietveld <kris@gtk.org>
18 * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
19 the event on to treeview, so it has a change of selecting a row, etc.
20 (#169677, Kirk Bridger).
22 2005-06-19 Kristian Rietveld <kris@gtk.org>
24 This commit includes a fix for #169463, Stefan Kost.
26 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
27 when cell_area is set, return cell_area width/height as width/height,
28 so the focus rectangle will be drawn correctly.
30 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
31 of focus-line-width property,
32 (validate_row): take focus_line_width into account.
34 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
35 also take focus_line_width into account when calculating the cell_area
36 y and height (before, we only took it into account when calculating
39 2005-06-19 Matthias Clasen <mclasen@redhat.com>
42 * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
43 with getter and setter. (#171612, Christian Neumair)
45 2005-06-18 Matthias Clasen <mclasen@redhat.com>
47 * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this
48 work for inserting before/after an existing menuitem or
49 toolitem. (#155946, Christian Persch)
51 * tests/testmerge.c (delayed_toggle_dynamic): Test the
52 "insert after" functionality of gtk_ui_manager_add_ui.
54 * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
55 (#300678, Sven Neumann)
57 * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
58 constructed with GtkUIManager.
62 * gtk/gtkimage.c (gtk_image_clear): Make this function
63 public. (#64792, Havoc Pennington)
65 2005-06-18 Kristian Rietveld <kris@gtk.org>
67 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
68 of the separate loop setting cell data with cell drawing loop
69 (introduced in revision 1.280), since this breaks focus handling
72 Sat Jun 18 04:22:51 2005 Manish Singh <yosh@gimp.org>
74 * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
75 checks don't work on boxed types.
77 * gdk/x11/gdkcursor-x11.c:
78 * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
81 Sat Jun 18 04:21:58 2005 Manish Singh <yosh@gimp.org>
83 * gtk/gtktreeview.c (do_presize_handler): remove unused variable
86 2005-06-18 Matthias Clasen <mclasen@redhat.com>
88 * gtk/gtkcellrenderertoggle.c:
90 * gtk/gtktreeview.c: Typo fixes in comments.
92 * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
93 2 children are added. (#308111, Morten Welinder)
95 * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
96 1-based. (#163842, Pierre Ossman)
98 2005-06-17 Kristian Rietveld <kris@gtk.org>
100 Fix #160281, testcase from Peter Bloomfield.
102 * gtk/gtktreeview.c (do_presize_handler): always size request
103 and update adjustments in fixed height mode,
104 (gtk_tree_view_build_tree): if a fixed height is set, set this
105 height on newly added nodes.
107 2005-06-17 Tor Lillqvist <tml@novell.com>
109 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
110 and suggested_action fields in the GdkDragContext to
111 GDK_ACTION_COPY. Otherwise apps that check the suggested_action
112 field, like eog, won't accept dropped files.
114 2005-06-17 Matthias Clasen <mclasen@redhat.com>
116 Support the ICCCM urgency hint. (#61858, Havoc Pennington)
119 * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
120 with getter and setter.
124 * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint):
125 Add a setter for the urgency hint.
127 * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
130 * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
131 hint in the WM_HINTS property when appropriate.
133 2005-06-17 Matthias Clasen <mclasen@redhat.com>
135 * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
137 * gdk/x11/gdkcursor-x11.c:
138 * gdk/gdkcursor.c: Improve some return_if_fail checks,
139 and add the missing non-Xcursor fallback for
140 _gdk_x11_cursor_update_theme(), noticed by Jeroen
143 * gtk/gtkbutton.c (gtk_button_class_init): Document
144 several button signals as not useful.
146 * gtk/gtkentrycompletion.c (gtk_entry_completion_complete):
147 Resize the popup if necessary. (#308076, Vincent Noel)
149 * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
150 draw on the old and new focus widgets, if their defaultness
151 changes. (#305607, Billy Biggs)
153 2005-06-17 Kristian Rietveld <kris@gtk.org>
155 * gtk/gtktreeview.c (validate_visible_area): make sure the row
156 above 'above_path' is always in a validated state, so it does
157 not mess up scrolling. (#303319, testcase from Billy Biggs).
159 2005-06-17 Matthias Clasen <mclasen@redhat.com>
161 * gdk/x11/gdkprivate-x11.h:
162 * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
163 for cached cursors which are not associated with a window
164 at the time of the theme change, by storing a serial
165 number in each cursor, and updating the theme_serial
166 counter whenever the cursor theme changes.
168 * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
169 Private function to update a cursor to the current
170 cursor theme if necessary.
172 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
173 * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
174 _gdk_x11_cursor_update_theme() here.
176 2005-06-17 Owen Taylor <otaylor@redhat.com>
178 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
179 #if G_BYTE_ORDER == GDK_LSB_FIRST.
181 2005-06-17 Kristian Rietveld <kris@gtk.org>
183 * gtk/gtktreeview.c (validate_visible_area): don't try to update
184 the top_row rowref ourselves here, but just have _dy_to_top_row()
186 (gtk_tree_view_scroll_to_cell): handle scrolling via
187 validate_visible_area() if the treeview is not visible or needs
188 reallocation. (#165246, Nickolay V. Shmyrev).
190 2005-06-17 Kristian Rietveld <kris@gtk.org>
192 Fixes #307914 (Alexander Larsson), fixing some breakage caused
193 by my previous commit.
195 * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
196 when it fits on a single page,
197 (scroll_sync_handler): same here.
199 Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org>
201 * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
203 * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
204 g_return_val_if_fail.
206 * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
209 * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
210 takes a GtkWidget, not a GtkImage.
212 2005-06-16 Matthias Clasen <mclasen@redhat.com>
214 * gtk/gtkfilechooserdefault.c (button_new): Simplify
215 the code and respect the show-button-images setting.
216 (#307941, Vincent Noel)
218 * gtk/gtkdnd.c: Update the RGBA cursor if an
219 icon is set after the cursor has been constructed.
220 Also handle repeated setting of icons correctly.
222 2005-06-16 Matthias Clasen <mclasen@redhat.com>
224 * gtk/gtkbutton.c (gtk_button_set_image): Add some more
225 docs. (#307818, Christian Persch)
227 2005-06-15 Matthias Clasen <mclasen@redhat.com>
229 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
230 Initialize all fields of the expose event. (#151693,
233 2005-06-15 Matthias Clasen <mclasen@redhat.com>
235 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
236 red and blue in place.
238 * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
239 formatting, pointed out by Kjartan Maraas.
241 * gtk/gtksettings.c: Add two new settings,
242 gtk-cursor-theme-name and gtk-cursor-theme-size to
243 control the cursor theme.
245 * gdk/x11/gdkevents-x11.c: Add two new X settings,
246 Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
247 these to the gtk settings.
249 * tests/testgtk.c (create_cursors): Add a cursor theme
252 * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
253 GdkCursor and add a private getter for it, so that we can
254 update the cursor when the cursor theme changes.
258 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
259 New function to change the cursor theme.
261 * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
262 g_return_if_fail() non-NULL checks.
264 2005-06-15 Matthias Clasen <mclasen@redhat.com>
266 * gdk/abicheck.sh: Use uniq to filter out duplicates.
267 * gdk/gdk.symbols: Fix a define.
269 2005-06-14 Matthias Clasen <mclasen@redhat.com>
271 * gtk/gtkwindow.c (gtk_window_parse_geometry):
272 Fix up the example. (#307699, Michal Suchanek)
274 2005-06-14 Matthias Clasen <mclasen@redhat.com>
276 * gtk/gtkcalendar.c: Update num_marked_dates as we
277 used to do. (#307689, Thorsten Schoenfeld)
279 2005-06-14 Federico Mena Quintero <federico@ximian.com>
285 * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
286 "selection-changed" and do the normal housekeeping even if we are
287 in SAVE mode and there is nothing selected. We didn't emit that
288 signal if we were in SAVE mode and unselect_all() got called.
289 (gtk_file_chooser_default_unselect_all): Call
290 pending_select_paths_free() so that we cancel any asynchronous
292 (gtk_file_chooser_default_set_current_name): Likewise.
294 2005-06-14 Federico Mena Quintero <federico@ximian.com>
300 * gtk/gtkfilechooserdefault.c
301 (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
302 mode. If the parent path is a folder, only create a subfolder if
303 we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
304 and respond. Also, pick up the case where the user types
305 "dirname/" instead of "dirname".
306 (check_save_entry): Make the return type void. Add some return
307 parameters so that we can do more thorough checking.
308 (gtk_file_chooser_default_get_paths): If the file part is empty
309 and we are in SAVE mode, return an empty selection.
311 2005-06-15 Kristian Rietveld <kris@gtk.org>
313 Patch for #163214 (reported by Tommi Komulainen) and fixes some
314 other scrolling/validation related bugs along the why.
316 * gtk/gtktreeview.c (gtk_tree_view_size_request): run
317 do_validate_rows once and don't queue a size request there,
318 (gtk_tree_view_size_allocate): don't update vadj value without
319 reason, sync top_row/dy after the window sizes and adjustments
321 (validate_visible_area): always update dy when scrolling,
322 manually set top_row here after changing the vadj (don't depend
323 on _adjustment_changed and top_row/dy sync to do this), since we
324 now always set top_row here correctly, we can always free
325 scroll_to_path at the end which avoids infinite expose loops,
326 (do_validate_rows): add queue_resize boolean, remove top_row/dy
327 sync here, we cannot do it safely at this place since the
328 window sizes and adjustments are out of sync,
329 (validate_rows), (validate_rows_handler): update call to
332 2005-06-14 Matthias Clasen <mclasen@redhat.com>
334 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a
335 stub for the no-Xcursor case. (noticed by Luis Villa)
337 Use named cursors for the DND cursors, the names are "dnd-none",
338 "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA
339 cursor instead of cursor+window when possible. This saves
340 roundtrips during the drag operation, and makes translucent icons
343 * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
344 for the default dnd cursors.
346 * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
347 used during the drag here, also store the icon pixbuf here.
349 * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
350 switch the default cursors from xbm to inlined pixbufs.
352 * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
353 GtkDragSourceInfo as well, since it has to composite the
354 drag-specific cursors. The cursors combined from the image of
355 the themed cursor and the icon_pixbuf stored in the info.
357 * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
358 icon if there is an icon_pixbuf, which will be composited into
361 * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
362 the pixbuf in the info struct for later compositing into the
363 cursor instead of creating an icon window.
365 * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
366 RGBA cursor for the drag, and need to display the cancel
367 animation, construct the icon window here.
369 * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the
370 drag-specific cursors and the icon_pixbuf when done with
373 2005-06-14 Matthias Clasen <mclasen@redhat.com>
375 * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
376 with the name "color-picker", when available.
380 * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image)
381 (gdk_cursor_new_from_name): New functions to construct named
382 cursors and to get the image used for a cursor.
384 2005-06-13 Matthias Clasen <mclasen@redhat.com>
386 * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
387 path bar is done, implementing the following principles:
388 (#137289, patch by Benjamin Otte)
390 1. Re-root only if $HOME is an ancestor of the current path.
392 2. When re-rooting, make sure the Left arrow appears in the path
393 bar, so that you can navigate up from $HOME to /. In that case,
394 make sure the Right arrow doesn't appear if the sub-hierarchy from
395 $HOME to the cwd fits in the window.
397 3. Make sure that hitting Alt-Up takes you always one folder up,
398 even when the path bar is re-rooted.
400 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
401 Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
403 * gtk/gtkfilechooserbutton.c (model_update_current_folder):
404 Free the data of the row before overwriting it. (#307490,
407 2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
409 * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
410 leak the cairo context. Closes bug #307426.
412 2005-06-13 Matthias Clasen <mclasen@redhat.com>
414 Make invisible text work a bit better (#66194, patch by
418 * gtk/gtktextiter.[hc]: Add function to move by
421 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal):
422 Skip invisible text when moving by paragraphs.
424 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
425 Skip invisible lines here too.
427 2005-06-12 Matthias Clasen <mclasen@redhat.com>
429 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
430 Don't leak the format names. (#307190, Morten Welinder)
432 2005-06-12 Kjartan Maraas <kmaraas@gnome.org>
434 * gdk/x11/gdkasync.c: (send_event_handler): Plug
435 a leak. Closes bug #307281.
437 2005-06-12 Matthias Clasen <mclasen@redhat.com>
439 * gtk/gtkcalendar.c (calendar_paint_header):
440 (gtk_calendar_size_request): Allow localization of the
441 format in which the year is displayed. (#135451, Paisa
444 * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
446 * gdk/gdkcairo.c: Small doc additions.
448 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row):
449 Check start_button_mask before starting a drag. (#149058,
452 * gtk/gtkfilesystemunix.c: Support .hidden files. (#129170,
453 Sayamindu Dasgupta, patch by Jan Arne Petersen)
455 2005-06-11 Matthias Clasen <mclasen@redhat.com>
459 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
460 provided by Owen Taylor.
464 * gtk/gtkiconview.c (gtk_icon_view_get_visible_range):
465 Add a function to determine what parts of the model are
466 visible. (#306726, Jonathan Blandford)
468 * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
469 files the same way as hidden files, to be closer to what
470 Nautilus does. (#136196, Sean Middleditch)
472 2005-06-10 Matthias Clasen <mclasen@redhat.com>
474 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
475 Don't modify strings returned from gettext().
477 Fri Jun 10 19:06:03 2005 Manish Singh <yosh@gimp.org>
479 * gtk/gtktextdisplay.c (render_para): don't use deprecated
480 gdk_gc_unref function.
482 2005-06-10 Matthias Clasen <mclasen@redhat.com>
484 Allow setting paragraph background. (#81045, Gustavo
485 Carneiro, patch by Jeroen Zwartepoorte)
487 * gtk/gtktextlayout.c (set_para_values): Propagate
488 pg_bg_color to the display struct.
489 (gtk_text_layout_free_line_display): Free it here.
491 * gtk/gtktextdisplay.c (render_para): If pg_bg_color
492 is set, draw a rectangle in that color behind
495 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add
496 paragraph-background, paragraph-background-gdk and
497 paragraph-background-set properties.
498 (set_pg_bg_color): A setter for paragraph-background.
500 * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
503 * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
505 (struct _GtkTextTag): Add pg_bg_color_set.
507 2005-06-10 Kjartan Maraas <kmaraas@gnome.org>
509 * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
510 cairo surface when done with it. Plugs a fairly large leak in
512 ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
513 826 blocks are definitely lost in loss record 25239 of 25250
514 Like this from nautilus.
516 2005-06-10 Michael Natterer <mitch@imendio.com>
519 * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
520 to get an action's accel_closure (Fixes #141750 and #148106).
522 2005-06-10 Matthias Clasen <mclasen@redhat.com>
524 * gdk/gen-keyname-table.pl: Generate N_() calls for
525 translatable key names.
527 * gdk/keynames.txt: Mark some key names as translatable.
529 * gdk/keyname-table.h: Regenerated.
531 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
532 some context to the msg ids for keyboard modifiers and
534 (_gtk_accel_label_class_get_accelerator_label): Try to
535 translate key names. (#300224, Christian Rose)
537 2005-06-10 Federico Mena Quintero <federico@ximian.com>
543 * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
544 immediately if we are in CREATE_FOLDER mode, so that we can fill
545 the entry with the newly-selected folder.
546 (gtk_file_chooser_default_set_property): Warn against turning on
547 multiple selection for CREATE_FOLDER mode, or about setting that
548 action while multiple selection is on.
549 (update_chooser_entry): Change the entry's contents as well if we
550 are in CREATE_FOLDER mode. If nothing is selected, clear the
552 (trap_activate_cb): Don't trap enter/space if modifiers are
553 pressed. This lets one use Ctrl-space to toggle rows in multiple
555 (gtk_file_chooser_default_should_respond): Clean up the if-chain
556 mess of special cases by using an array to determine what to do.
557 Also, for the save-entry case in CREATE_FOLDER mode, actually fix
558 the bug where the file chooser would switch to an existing folder
559 rather than confirming with it, and create the folder ourselves.
560 (error_creating_folder_over_existing_file_dialog): New function.
562 * gtk/gtkfilechooserentry.c (check_completion_callback): Only
563 insert the common prefix if we are in an "open" mode. Use a
565 (append_common_prefix): New helper function; code moved over from
566 check_completion_callback().
567 (find_common_prefix): New helper function.
568 (gtk_file_chooser_entry_focus): Append the common prefix if the
569 user requests it explicitly.
571 2005-06-10 Matthias Clasen <mclasen@redhat.com>
573 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand):
574 * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow):
575 * gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
576 * gtk/gtkstock.c (gtk_stock_set_translate_func):
577 * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment):
578 * gtk/gtkscrolledwindow.h:
579 * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
581 * gtk/gtkiconview.c (gtk_icon_view_set_margin):
582 * gtk/gtkicontheme.c (gtk_icon_info_load_icon):
583 * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
585 2005-06-09 Matthias Clasen <mclasen@redhat.com>
587 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
589 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
590 (#306212, Steve Chaplin, docs provided by Billy Biggs)
592 * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small
593 cleanup. (#305539, Paolo Borelli)
595 2005-06-09 Rodrigo Moya <rodrigo@novell.com>
597 * configure.in: added cairo to list of $GTK_PACKAGES.
599 2005-06-09 Matthias Clasen <mclasen@redhat.com>
601 * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
602 the user time on the window when a drop happens. (#169364, Alexander
603 Hunziker, patch by Elijah Newren)
605 * gdk/x11/gdkwindow-x11.c: Small markup fixes.
609 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
610 to scroll to a path. (#306838, Jonathan Blandford)
612 2005-06-08 Matthias Clasen <mclasen@redhat.com>
614 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
615 item. (#306839, Jonathan Blandford)
617 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
618 negative before appending the index, to avoid double error
619 message. (#306393, Morten Welinder)
621 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
622 Don't crash if search_window is NULL. (#304914, Victor Osadci,
623 testcase by Olaf Vitters)
625 * gtk/gtkimage.c: Make the file property readable.
626 (#170674, Lorenzo Gil Sanchez)
629 2005-06-08 Matthias Clasen <mclasen@redhat.com>
631 * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
632 g_utf8_collate_key_for_filename().
634 2005-06-07 Kjartan Maraas <kmaraas@gnome.org>
636 * gtk/gtkfilechooserbutton.c: (update_label_and_image):
637 Merge leak fix from stable. Bug 306754.
639 2005-06-05 Tor Lillqvist <tml@novell.com>
641 * gdk/win32/gdkscreen-win32.c
642 (_gdk_windowing_substitute_screen_number): Return NULL unless
643 screen number is zero. We have only one screen on Win32.
644 (gdk_screen_make_display_name): Call gdk_display_get_name() and
647 * modules/engines/Makefile.am
648 * modules/input/Makefile.am: Decide whether to build the
649 ms-windows theme engine based on the GDK backend, not based on
650 platform. (I.e., if building for Cygwin with the X11 backend, we
651 shouldn't build the ms-windows engine, but if building for Cygwin
652 but with the Win32 backend, we should.) Ditto for the IME
653 (Windows) input module. (#305832)
655 2005-06-04 Tor Lillqvist <tml@novell.com>
657 * gdk/win32/gdkcursor-win32.c
658 * gdk/win32/gdkwindow-win32.c
659 * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
660 Support cursors with alpha on XP. Use code in common with the
661 support for alpha icons that already was present. (#306101, Tim
664 * modules/engines/ms-windows/msw_style.c: Render insensitive icons
665 in a way that more closely matches Windows. (#305986, Tim Evans).
667 * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
670 2005-06-03 Dom Lachowicz <cinamod@hotmail.com>
672 * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
673 * modules/engines/ms-windows/xp_theme.c: Ditto
674 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
676 Thu May 26 16:43:27 2005 Manish Singh <yosh@gimp.org>
678 * gtk/gtkentrycompletion.h: Add declarations for
679 gtk_entry_completion_{get,set}_popup_single_match.
681 2005-05-26 Matthias Clasen <mclasen@redhat.com>
684 * gtk/gtkentrycompletion.c: Add a property to suppress the
685 popup for single matches. (#154711)
687 * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
689 * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action):
692 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the
693 redisplay after modifying the tag in the btree, otherwise
694 we end up showing the old tags until the next redraw comes
695 around. (#143537, Gary Kramlich, Peter Wainwright)
697 * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make
698 autoscrolling work at the bottom of the screen.
700 2005-05-26 Maciej Katafiasz <email@mathrick.org>
702 * docs/reference/gtk/tmpl/gtkentry.sgml:
703 Point to GtkTextView instead of GtkText. Fixes bug #305535
705 2005-05-26 Sven Neumann <sven@gimp.org>
707 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
708 aggressive PNG compression level (bug #305340).
710 2005-05-26 Tor Lillqvist <tml@novell.com>
712 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
713 from the root window, take the multi-monitor offset into
716 2005-05-25 Matthias Clasen <mclasen@redhat.com>
718 * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
721 * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading):
722 Remove another C99ism.
724 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the
725 background of rows insensitive when the treeview is insensitive.
726 (pointed out by Billy Biggs)
728 * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
729 and DND, and clipboard persistency.
731 * gtk/gtkselection.c (gtk_target_list_add_image_targets):
732 Make sure png comes first, otherwise dnd may use bmp by
733 default, loosing transparency.
735 2005-05-25 Michael Natterer <mitch@imendio.com>
737 * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
738 handler when changing cursor visibility because it would expose
739 the whole paragraph where the cursor is. Instead, expose the
740 cursors' areas manually. (#173047).
742 (text_window_invalidate_cursors): new function which exposes the
745 * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
746 same cursor size calculation is in text_window_invalidate_cursors().
748 2005-05-25 Matthias Clasen <mclasen@redhat.com>
750 * demos/gtk-demo/editable_cells.c (create_items_model): Also
751 demonstrate GtkCellRendererProgress.
753 * demos/gtk-demo/Makefile.am (demos):
754 * demos/gtk-demo/combobox.c: Add a demo showing combo box
757 * demos/gtk-demo/Makefile.am (demos):
758 * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
760 2005-05-24 Matthias Clasen <mclasen@redhat.com>
762 * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
764 2005-05-24 Tor Lillqvist <tml@novell.com>
766 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
767 gtk-alternative-button-order (setting it to TRUE).
769 2005-05-23 Matthias Clasen <mclasen@redhat.com>
771 * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
772 an unused variable. (#305130, Jaap A. Haitsma)
774 * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
775 the focus away from the file list when operating the filter
776 combo with the pointer. (#304844, Sven Neumann)
778 2005-05-23 Tor Lillqvist <tml@novell.com>
780 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
781 GDK_Menu. (#172383, Ivan Wong)
783 * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
784 of the special cases this function takes care of, use it as
785 such. This takes care of for instance the Bengali Virama, see bug
788 2005-05-20 Matthias Clasen <mclasen@redhat.com>
790 * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
791 buffer overrun. (#142444, Leonard Michlmayr)
793 * gtk/gtkfilesystem.c: Remove C99-isms (#304879,
796 2005-05-18 Matthias Clasen <mclasen@redhat.com>
798 * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri):
799 Use the correct function to conver the uri to a path. (#304565,
802 * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
803 Cancel button properly. (#304234, Sven Neumann)
805 2005-05-18 Anders Carlsson <andersca@imendio.com>
807 * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
808 (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
810 If the horizontal adjustment changes because of a change in the
811 layout width, then do a complete redraw. This is because there
812 might be right-aligned or centered text that needs to be redrawn.
814 2005-05-18 Matthias Clasen <mclasen@redhat.com>
816 * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
817 the event masks of descendent windows. (#169821, Tommi Komulainen)
819 * gtk/gtktreeview.c (gtk_tree_view_get_drop_column)
820 (gtk_tree_view_set_column_drag_info): Fix some errors in the
821 handling of drop columns. (#143355, John Finlay)
823 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
824 Remove the no longer needed workaround.
826 * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
827 allocations of mapped children.
829 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
832 2005-05-18 Tor Lillqvist <tml@novell.com>
834 * gdk/win32/gdkevents-win32.c
835 * gdk/win32/gdkkeys-win32.c
836 * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
837 lParam of WM_KEY* messages to distinguish between left and right
838 Control and Alt keys. Unfortunately, the right Shift key doesnt
839 set KF_EXTENDED, so to distinguish between left and right Shift
840 keys, check the scan code. (#304584)
842 2005-05-18 Matthias Clasen <mclasen@redhat.com>
844 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
845 length overflows. (#161520, Ian Wienand)
847 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
848 parameter names to make gtk-doc happy.
850 * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
851 values of draw-value and value-pos to be the values we
852 actually use in _init. (#304547, Mikael Hallendal)
854 * gtk/gtkcellrendererpixbuf.c: Support named icons in
855 cells by adding a icon-name property. (#165777, Anders
859 * gtk/gtktoolbutton.h:
860 * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name)
861 (gtk_tool_button_get_icon_name): Support named icons in
862 tool buttons by adding a icon-name property. (#116577,
867 * gtk/gtkdnd.c (gtk_drag_source_set_icon_name)
868 (gtk_drag_set_icon_name): New functions to support themed
869 drag icons. (#116577, Christian Neumair)
871 2005-05-17 Owen Taylor <otaylor@redhat.com>
873 * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface):
874 Update to changed cairo interface.
876 * gdk/x11/gdkdrawable-x11.[ch]:
877 Add _gdk_x11_drawable_update_size()
879 * gdk/x11/gdkwindow-x11.c (gdk_window_resize)
880 (gdk_window_move_resize)
881 * gdk/x11/gdkevents-x11.c (gdk_event_translate):
882 Call _gdk_x11_drawable_update_size().
884 2005-05-17 Matthias Clasen <mclasen@redhat.com>
886 * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
887 if the text view is not editable.
889 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
890 the popup posted if the button is released over the cellview.
891 This matches the behaviour of other combo box implementations.
894 * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
895 when recursing. (#153682, Felipe Heidrich)
897 2005-05-16 Matthias Clasen <mclasen@redhat.com>
899 * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
900 and GDK_Page_Down twice. (#168333, Hazael Maldonado Torres)
902 * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if
903 the entry is not editable. (#304171, Nikos Kouremenos)
905 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
906 Make sure the action of the button and the dialog are in sync,
907 when the dialog is provided by the app. (#303987, David A Knight)
909 * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
910 in the docs. (#303940, Masao Mutoh)
912 * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
914 * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
915 casting. (#304089, Philip Langdale)
917 * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
918 the label if we need to. (#169390, Felix Riemann)
920 Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org>
923 * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
926 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
927 call gdk_cairo_set_source_color() with a color.
929 * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
931 * tests/testiconview.c (main): cast args of drag functions to the
934 2005-05-13 Owen Taylor <otaylor@redhat.com>
936 * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
938 * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export
939 gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
941 2005-05-11 Owen Taylor <otaylor@redhat.com>
943 * tests/testgtk.c (on_alpha_window_expose): Fix to use
944 gdk_cairo_create(). (create_alpha_window): Hook up "response"
947 2005-05-11 Owen Taylor <otaylor@redhat.com>
949 * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
950 to draw the swatch in to avoid having an extraneous window.
952 * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
953 color when !has_opacity.
955 2005-05-10 Owen Taylor <otaylor@redhat.com>
957 * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
958 files for Cairo convenience functionality.
960 * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
961 convenience functions to add GdkRectangle, GdkRegion to a cairo path.
963 * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
964 gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
966 * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
967 gdk_drawable_create_cairo_context() to gdk_cairo_create().
969 * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
970 Rename gdk_pixbuf_set_as_cairo_source() to
971 gdk_cairo_set_source_pixbuf().
973 * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
974 gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
977 * gdk/gdk.symbols: Update.
979 * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
980 coordinate system problem that was causing the wrong portions
983 * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
984 gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
985 gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
986 gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
987 gtk/gtkcellview.c (gtk_cell_view_expose)
988 gtk/gtkdnd.c (gtk_drag_highlight_expose)
989 gtk/gtkentry.c (gtk_entry_draw_text)
990 gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
992 * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
993 GTK+ style ... use instance-private data and standard names for
994 private structure, etc. Move function docs inline.
996 * gtk/gtkcalendar.[ch]: Switch to drawing everything in
997 expose. Switch drawing to Cairo.
999 * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1000 gtk_calendar_freeze/thaw
1002 2005-05-10 Tor Lillqvist <tml@novell.com>
1004 * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1005 that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1006 == gdk_screen_get_default(), as that might return NULL when this
1009 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1011 * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1012 padding in RTL mode. (#303572, Maciej Katafiasz)
1014 2005-05-09 Owen Taylor <otaylor@redhat.com>
1016 * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
1017 Fill in unused bits so they can be used for the depth-32 target case.
1018 Rewrite so that that gives a marginal speedup rather than a
1019 marginal slowdown. (on x86)
1021 * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1022 Add gdk_screen_get_rgba_colormap/visual to get a visual for
1023 windows with an alpha channel, if one exists.
1025 * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1026 Stub out gdk_screen_get_rgba_colormap/visual.
1028 * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1029 "unused" wasn't right for depth == 32, since it depended on
1032 * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1034 http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1036 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1037 Implement again, without using Xft.
1039 * tests/testgtk.c: Add a test for windows with an alpha channel.
1041 2005-05-09 Matthias Clasen <mclasen@redhat.com>
1043 * autogen.sh: Revert accidental commit.
1045 2005-05-08 Matthias Clasen <mclasen@redhat.com>
1047 * gdk/gdkcolor.c (gdk_cairo_set_source_color):
1052 * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1054 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1056 * gtk/gtkscrolledwindow.h:
1057 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar):
1058 (gtk_scrolled_window_get_cscrollbar): Change the return
1059 type to GtkWidget*, proposed by Owen Taylor.
1061 * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm)
1062 (gdk_screen_get_height_mm): Fix typos in the docs. (#303389,
1065 2005-05-07 Matthias Clasen <mclasen@redhat.com>
1067 * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1070 2005-05-07 Owen Taylor <otaylor@redhat.com>
1072 * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1073 the background color.
1075 2005-05-07 Owen Taylor <otaylor@redhat.com>
1077 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
1078 Change prototype to match cairo_set_source_surface().
1080 * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1081 gtk/gtkhsv.c tests/testcairo.c.
1083 2005-05-06 Federico Mena Quintero <federico@ximian.com>
1085 Merged from gtk-2-6:
1087 * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1088 types if this is an AFS directory.
1089 (fill_in_names): If we are in an AFS directory, set the MIME type
1090 blindly to "x-directory/normal".
1092 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1094 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1095 initialize child-visible to FALSE, otherwise we may end up
1096 with the wrong page visible initially. (#302283, Patrik Fimml)
1098 * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1099 appear insensitive in insensitive treeviews.
1101 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1103 * gtk/gtktoolbar.c: Fix a typo in the docs. (#303024,
1106 2005-05-06 Matthias Clasen <mclasen@redhat.com>
1109 * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1110 support in the tree view. (#150270)
1112 2005-05-05 Matthias Clasen <mclasen@redhat.com>
1115 * gtk/gtkwidget.h: Small cleanups.
1117 * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1120 2005-05-04 Owen Taylor <otaylor@redhat.com>
1122 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1123 in focus tracking when we move between has_pointer_focus and
1124 has_focus_window directly. (#109246, Billy Biggs, Niko Tyni
1127 * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1128 happen in the case of no window manager + keyboard grabs, by
1129 moving to a more consistent model of when we pay attention to
1130 mode=NotifyGrab/NotifyUngrab events.
1132 * docs/focus_tracking.txt: Extensive writeup about how to track
1135 Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
1137 * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1138 cairo_set_source_surface()/cairo_paint();
1140 2005-05-04 Tor Lillqvist <tml@novell.com>
1142 * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1143 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1144 _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1145 gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1148 2005-05-03 Matthias Clasen <mclasen@redhat.com>
1150 * gtk/gtkfilesystem.c:
1151 * gtk/gtkcelleditable.c:
1152 * gtk/gtktreemodel.c: Avoid getting the interface struct
1153 twice in the same function. (#300513, Billy Biggs)
1155 * gtk/gtkscrolledwindow.h:
1156 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar):
1157 * gtk/gtk.symbols: Add getters for the scrollbars. (#167181,
1161 * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
1162 Make this function public. (#170748, Morten Welinder)
1164 2005-05-02 Federico Mena Quintero <federico@ximian.com>
1166 Merged from gtk-2-6:
1170 * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1171 to store struct stat for /afs and /net, and boolean fields to say
1172 whether these are valid.
1173 (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1174 (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1175 field of the folder structure.
1176 (fill_in_names): If the folder is a network directory, create a
1177 fake struct stat for its entries.
1178 (fill_in_stats): Don't stat() the children of network directories.
1180 * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1181 is 0, use "Unknown" for the cell's displayed text.
1183 2005-04-28 Owen Taylor <otaylor@redhat.com>
1185 * gtk/gtkwidget.c: Add a draw-border style property to allow
1186 themes to draw outside the widget's allocation.
1188 * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1189 that were working around the clip-leakage bug in Cairo.
1191 * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1194 * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1195 That updates a Cairo context to match a GC.
1197 * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1198 for tiles/stipples/clipping to gdk_draw_glyphs(),
1199 gdk_draw_trapezoids().
1201 * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1202 implementation of stipples. Use one cairo_t across the entire
1203 drawing operation. Replace cairo_matrix_create() with
1204 stack-allocated matrices.
1206 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1207 gdk/win32/gdkgc-win32.c: Save various aspects of the
1208 GC state (fill, tile, stipple, foreground, background, clip region)
1209 in instance-private-data for future use. Add getters.
1210 Get rid of _gdk_windowing_gc_get_foreground() function implemented
1213 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1214 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1215 _gdk_gc_init() to do initial setup of the GC from values;
1216 fixes some problems from drawable redirection.
1218 * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1219 gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
1220 gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
1221 the generic code, add _gdk_windowing_gc_copy(),
1222 _gdk_windowing_gc_set_clip_region() to do backend specific
1225 * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1226 gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1227 gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1228 Don't duplicate state that now is stored by the generic code.
1230 * gdk/gdk.symbols Update
1232 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1234 * tests/testiconview.c: Test cell renderers.
1236 * gtk/gtk.symbols: Add new functions.
1238 * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1239 cell renderers for drawing and editing. (#148144, #160242)
1241 2005-05-02 Matthias Clasen <mclasen@redhat.com>
1243 * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1244 width for cases where pango_layout_get_pixel_extents() returns
1245 a rectangle with nonzero x.
1247 * gtk/gtkselection.c: Small doc fixes.
1249 * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus):
1250 (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1252 2005-05-02 Michael Natterer <mitch@imendio.com>
1254 * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1255 "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1256 multiple times when using gtk_get_option_group(), just as one can
1257 call gtk_init() multiple times without doing any harm.
1259 2005-05-01 Matthias Clasen <mclasen@redhat.com>
1261 * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1262 the event to unanchored children in the text window.
1263 (#302494, Stephen Kennedy)
1265 2005-04-30 Tor Lillqvist <tml@novell.com>
1267 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1268 multi-monitor offset into account. (#302525)
1270 2005-04-29 Matthias Clasen <mclasen@redhat.com>
1272 * gtk/gtkradioaction.c: Make the docs build. (#302230,
1275 * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1276 function, instead show the bin_window when it is created.
1278 * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
1279 grab focus to unrealized widgets. (#302240, Philip Langdale)
1281 * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1282 background upon state changes. (#301651, Billy Biggs)
1283 (gtk_tree_view_get_path_at_pos): Take RTL into account
1284 when iterating over the columns. (#302163)
1286 * configure.in: Check for nm.
1288 * gtk/Makefile.am: Use $(NM), not nm directly. (#301299,
1289 Nguyen Thai Ngoc Duy)
1291 * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1292 the internal unselect_all function, since we need the unselection
1293 to happen even in browse mode. (#300995, Mathias Hasselmann)
1295 * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1296 of triggering a ::notify by re-setting the property. (#300982,
1299 * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1301 * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1302 scroll horizontally when necessary, and keep the northwest
1303 corner of the item visible. (#300913, Mathias Hasselmann)
1305 * tests/testiconview.c: Add some more tests.
1307 * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1308 if the path does not point to a row in the model. (#300909,
1310 (gtk_icon_view_rows_reordered): Re-layout here. (#301009,
1313 * tests/testtext.c: Add some more attribute tests.
1315 * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1316 of the rise property. String change, but it is more important to
1317 be correct than to be translated. (#301740)
1319 2005-04-25 Tor Lillqvist <tml@novell.com>
1321 * gtk/gtkfilesystemwin32.c
1322 (gtk_file_system_win32_volume_get_display_name): Get volume name
1323 also on Win9x. (#301798, Daniel Atallah)
1324 (canonicalize_filename): Add explicit braces to silence compiler
1327 2005-04-22 Tor Lillqvist <tml@novell.com>
1329 * gtk/gtkmain.c: Initailize gettext before use. Calling
1330 bindtextdomain() and bind_textdomain_codeset() in
1331 do_post_parse_initialization() is too late. Put the calls in a new
1332 function gettext_initialization(), and call that from
1333 gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1334 GTK+'s part, but the same problem occurs also at least in
1335 atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1337 2005-04-19 Ivan, Wong Yat Cheung <email@ivanwong.info>
1339 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1340 character height instead of cell height. Fix #301228.
1342 2005-04-18 Federico Mena Quintero <federico@ximian.com>
1344 Merged from gtk-2-6:
1346 * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1347 obsolete assertion that the selected row can't be a volume; this
1348 is handled by the "removable" column now. Fixes #301017.
1350 2005-04-18 Owen Taylor <otaylor@redhat.com>
1352 * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1353 * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1354 gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1355 setting color and opacity. (#301066, Vincent Noel)
1357 2005-04-15 Federico Mena Quintero <federico@ximian.com>
1359 Merged from gtk-2-6:
1361 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1362 Patch from Christian Neumair <chris@gnome-de.org>; only select the
1363 first row if we are in OPEN mode. The only other case we were
1364 letting pass through was SELECT_FOLDER, but selecting the first
1365 row when changing folders confuses people when folders are
1366 actually being selected. Fixes #171885.
1368 2005-04-13 Matthias Clasen <mclasen@redhat.com>
1370 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1371 Revert the fix for #169870, adjust the documentation instead.
1373 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1374 Revert the fix for #170727.
1376 2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
1380 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1383 * gtk/updateiconcache.c: Guard inclusion of unistd.h and
1386 2005-04-09 Matthias Clasen <mclasen@redhat.com>
1388 * gdk/x11/gdkinput-xfree.c:
1389 * gdk/x11/gdkinput-none.c:
1390 * gdk/gtk.symbols: Some more fixes necessary to
1391 make building with gcc 4 work.
1393 Add 16x16 versions of the zoom icons and of
1394 GTK_STOCK_INDEX. Some of the images were taken from
1395 the hicolor icon theme, and were originally created
1396 by Jakub Steiner and Tuomas Kuosmanen. (#167515,
1399 * gtk/stock-icons/stock_index_16.png:
1400 * gtk/stock-icons/stock_zoom_1_16.png:
1401 * gtk/stock-icons/stock_zoom_fit_16.png:
1402 * gtk/stock-icons/stock_zoom_in_16.png:
1403 * gtk/stock-icons/stock_zoom_out_16.png: New images.
1405 * gtk/stock-icons/Makefile.am: Add the new images.
1407 * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose):
1408 Don't display too many broken images. (#169870, Roman
1409 Kagan, patch by Ivan Wong)
1411 * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
1412 output. (#300013, Tommi Komulainen)
1414 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1416 * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size):
1417 If a stock_id is unknown, display the missing image. (#169870,
1420 * gtk/gtkiconcache.c (icon_name_hash): Use the same function
1421 as in updateiconcache.c. (spotted by Morten Welinder)
1423 2005-04-08 Carl Worth <cworth@cworth.org>
1425 * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
1426 now that cairo exposes the cairo_matrix_t structure.
1428 * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
1429 cairo API change in signedness of data argument.
1431 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1433 * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
1434 work when called from gtk_combo_box_destroy(). (#172999,
1437 2005-04-08 Matthias Clasen <mclasen@redhat.com>
1439 Fix double-click to autosize treeview columns. This was
1440 probably broken since 2.2 ! (#169675)
1442 * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
1443 "user-resized" state of the column on a double-click to
1445 (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column):
1446 Enter the "user-resized" state of the column only if a drag
1447 actually changes the column width, not on any click.
1449 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1451 * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
1452 images on menus. (#169532, Benjamin Otte)
1454 * gtk/updateiconcache.c (write_card16, write_card32): Avoid
1455 unaligned access. (#172947)
1457 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
1458 Consistently use the term "Bookmarks" in the UI. (#166906,
1461 Some fixes from Morten Welinder (#172947):
1463 * gtk/updateiconcache.c (icon_name_hash): Make this compiler-
1464 and platform-independent.
1465 (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
1466 (build_cache): Error out if a stat fails.
1468 2005-04-07 Matthias Clasen <mclasen@redhat.com>
1470 * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add
1471 a hint about hiding expanders.
1473 * gtk/updateiconcache.c (is_cache_up_to_date): Return
1474 TRUE if the cache is newer than the directory. (#172852,
1477 * configure.in: Replace an explicit pkg-config by
1478 $PKG_CONFIG. (#168074, Hans-Wolfgang Loidl)
1480 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
1481 Ignore regions which fall completely outside the line.
1482 (#165862, Felipe Heidrich)
1484 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1486 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1487 -1 as possible value.
1488 (gtk_tree_view_enable_model_drag_source)
1489 (gtk_tree_view_enable_model_drag_dest): Pass the target list
1490 to the underlying dnd implementation, otherwise we miss the
1491 target info in the drag-data-received signal. (#164085, Jorn
1494 2005-04-06 Matthias Clasen <mclasen@redhat.com>
1496 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column)
1497 (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1498 to gdk_window_get_pointer(). (#168015, Billy Biggs)
1500 * po/.cvsignore, po-properties/.cvsignore: Remove
1501 Makefile.in.in. (#171092, Stepan Kasal)
1503 * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify
1504 scanner->value, copy it first. (#165693, Tommi Komulainen)
1506 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1508 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus):
1509 * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1510 grab_focus for GtkComboBox and GtkComboBoxEntry. (#171912,
1513 * gtk/gtkicontheme.c: Store icon caches along with the
1514 mtimes of the toplevel directories. The previous
1515 mechanism of a hashtable-per-theme caused duplicate icon
1516 caches for the same toplevel directory to be created.
1519 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1521 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level):
1522 Fix a typo in a warning.
1524 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1525 the license and credits buttons from being affected by
1526 gtk_widget_show_all(). (#172724)
1528 2005-04-05 Matthias Clasen <mclasen@redhat.com>
1530 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
1531 reference to the item. (#167920, Hazael Maldonado Torres)
1533 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1534 more docs on interactive search.
1536 2005-04-05 Tor Lillqvist <tml@novell.com>
1538 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1539 display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1540 returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1542 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1543 24bpp GdkVisual on 32bpp displays. (#140706)
1545 Mon Apr 4 19:13:23 2005 Jonathan Blandford <jrb@redhat.com>
1547 Fix for #172319, Tristan Van Berkom:
1549 * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1550 gtk_tree_view_real_expand_row() instead of doing this by hand.
1552 2005-04-04 Johan Dahlin <johan@gnome.org>
1554 * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1555 (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1556 (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1558 Mon Apr 4 14:33:55 2005 Manish Singh <yosh@gimp.org>
1560 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1561 cast combo->priv->entry to GTK_ENTRY()
1563 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1564 cast completion->priv->tree_view to GTK_TREE_VIEW()
1566 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1568 * gtk/gtktextbuffer.c: Some trivial doc fixes.
1570 * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve
1571 the wording of the doc comment. (#172422, Vincent Untz)
1573 2005-04-04 Owen Taylor <otaylor@redhat.com>
1575 * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1576 drawing to Cairo. Also always draw the entire triangle instead
1577 of just drawing the center for prelight. (Fixes inconsistent
1578 drawing in GtkTreeView.)
1580 2005-04-04 Johan Dahlin <johan@gnome.org>
1582 * gtk/gtk.symbols: Remove symbols accidentally added.
1583 * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1584 * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1585 Use object_class instead of gobject_class
1587 Mon Apr 4 12:14:35 2005 Søren Sandmann <sandmann@redhat.com>
1589 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1590 widget coordinates instead of root coordinates. Patch from Jorn
1593 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1595 * gtk/gtktoolbar.c: Add a tooltips property.
1597 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init):
1598 * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1600 * gtk/gtktoggletoolbutton.c: Add an active property.
1602 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1604 Allow completion popups to be wider than the entry. (#131916,
1607 * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1609 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1610 Don't force the popup to have the same width as the entry if
1611 popup-set-width is FALSE.
1613 * gtk/gtk.symbols: Add new functions.
1615 2005-04-04 Matthias Clasen <mclasen@redhat.com>
1617 * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel):
1618 Use gtk_accel_map_change_entry(), so that reusing the same
1619 action name works. (#170727, Paolo Borelli)
1621 2005-04-04 Tor Lillqvist <tml@novell.com>
1623 * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1624 function, to log a clipboard format name symbolically.
1625 (_gdk_win32_data_to_string): Also new, to log random data bytes.
1627 Implement delayed rendering on Win32, specifically for transfering
1628 images through the clipboard from GTK+ apps to other
1629 apps (#168173, implementation by Ivan Wong):
1631 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1632 Handle WM_RENDERFORMAT.
1634 * gdk/win32/gdkprivate-win32.h
1635 * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1636 _delayed_rendering_data and _image_bmp.
1638 * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1640 * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1641 Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1642 assume they are handled through delayed rendering.
1644 * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1645 Return all available formats (including those registered by GTK+
1646 apps) on request_targets.
1647 (gdk_selection_property_get): We should append a zero byte like
1649 (gdk_win32_selection_add_targets): New function, for
1650 gtkselection's use. Win32 requires that the clipboard owner
1651 registers all valid formats even if the owner wants delayed
1653 (_gdk_win32_selection_convert_to_dib): New function. Convert
1654 images to DIB using gdk-pixbuf.
1656 * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1658 * gtk/gtkselection.c (gtk_selection_add_target,
1659 gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
1660 to register target formats.
1662 * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
1664 2005-04-03 Hans Breuer <hans@breuer.org>
1666 [merged from gtk-2-6 branch]
1667 * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
1668 the line pattern not the start of the line. Fixes bug #171641.
1670 * gtk/makefile.msc.in : follow .symbols changes
1672 * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
1673 dynamically. (It is not available in _WIN_VER <= 0x0400)
1675 * gdk/win32/makefile.msc : removed gdkpango-win32.obj
1677 * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
1679 [also applied to gtk-2-6 branch]
1680 * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
1682 * gdk/makefile.msc.in : add gtkmnemonichash.obj
1684 * test/testgtk.c(set_parent_signal) : use g_message instead of
1685 g_print to keep the 'testgtk --bench=all' output clean
1687 2005-04-03 Matthias Clasen <mclasen@redhat.com>
1689 * gtk/gtkruler.c: Add a "metric" property.
1691 * gtk/gtkradiomenuitem.c: Add a "group" property like
1692 the one found in radio buttons.
1694 * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
1696 (gtk_radio_button_set_group): Add change notification.
1698 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1700 * gtk/gtkselection.c: Move documentation inline, document
1701 if add_target functions append or prepend. (#172350,
1704 2005-04-01 Matthias Clasen <mclasen@redhat.com>
1706 Make gtk_combo_box_get_active_text do the right thing for
1707 GtkComboBoxEntry (#171373, Robert Staudinger)
1709 * gtk/gtkcombobox.h: Add a get_active_text vfunc.
1711 * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
1714 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1715 Implement get_active_text by always returning the content of
1718 2005-03-31 Sven Neumann <sven@gimp.org>
1720 Merged from gtk-2-6:
1723 * gtk/gtkiconview.c: fixed gtk-doc comments.
1725 2005-03-31 Michael Natterer <mitch@gimp.org>
1727 Allow to pop up menus without grabbing the keyboard. Useful for
1728 stuff like virtual keyboards. Fixes bug #159890
1731 * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
1732 and public API gtk_menu_shell_set/get_take_focus().
1734 * gtk/gtkmenu.c (gtk_menu_popup)
1735 (popup_grab_on_window): don't grab the keyboard if take_focus
1738 * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
1739 parent menu_shell's take_focus property to the submenu which is
1740 about to be popped up.
1742 2005-03-30 Federico Mena Quintero <federico@ximian.com>
1744 Merged from gtk-2-6:
1748 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
1749 if the row which changed is the same as the row being edited.
1751 2005-03-30 Matthias Clasen <mclasen@redhat.com>
1753 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1754 Make enable_search control only typeahead, not C-f. (#170435,
1756 (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
1758 * gdk/gdkpixbuf.h: Include cairo.h
1760 * gtk/gtkclipboard.c (gtk_clipboard_set_can_store):
1761 Don't accept n_targets == -1.
1762 (clipboard_unset): unref the old_data, not the
1763 user_data which we have just cleared. (#172038, Sven
1766 * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't
1767 segfault if somebody tries to popup an unrealized
1768 combo box. (#172031, Felipe Heidrich)
1770 2005-03-30 Tor Lillqvist <tml@novell.com>
1772 * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
1773 state field should represent the state before the event, like on
1775 (gdk_event_translate): Fix event filter handling. If an event
1776 filter (global, client message filter, of window-specific) returns
1777 GDK_FILTER_CONTINUE, continue as if nothing happened. If it
1778 returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
1779 from gdk_event_translate() which means that DefWindowProc() will
1781 (gdk_event_translate): Fix client message handling. Append a
1782 GDK_CLIENT_EVENT unless there is a filter that matches and returns
1783 something other than GDK_FILTER_CONTINUE. (#135552)
1785 2005-03-29 Matthias Clasen <mclasen@redhat.com>
1787 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func):
1788 Document the need to refilter if parameters of the visibility function
1789 change. (#169516, Olivier Sessink)
1791 Mon Mar 28 15:13:42 2005 Søren Sandmann <sandmann@redhat.com>
1793 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
1794 invalidate areas that are covered by mapped input-output child
1795 windows. Bug 141380.
1797 2005-03-28 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
1799 * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
1800 the preview label ellipsize so the dialog layout stays constant.
1803 2005-03-28 Matthias Clasen <mclasen@redhat.com>
1805 * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
1806 the context menu of the search entry if it is not visible.
1807 (#169534, Billy Biggs)
1809 2005-03-27 Tor Lillqvist <tml@novell.com>
1811 * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
1812 after all, and in fact necessary with HEAD libtool.
1814 2005-03-26 Matthias Clasen <mclasen@redhat.com>
1817 * gdk/gdkdisplaymanager.c:
1818 Use canonical names for g_object_notify() as well.
1820 2005-03-24 Tor Lillqvist <tml@novell.com>
1822 * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
1823 in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
1824 gtk+-2.0.pc file and automatically used by dependents. MSVC users
1825 who use pkg-config will have to manually edit it out from
1826 gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
1827 some kind of conditionals in .pc files?
1829 2005-03-23 Matthias Clasen <mclasen@redhat.com>
1831 * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
1832 a call whose result was unused and leaked. (#170776,
1835 Some cleanups to the GtkDialog code: (#170746,
1837 * gtk/gtkdialog.c (action_widget_activated): Simplify,
1838 use _gtk_dialog_get_response_for_widget.
1839 (gtk_dialog_add_action_widget): Use the correct signal
1841 (gtk_dialog_set_response_sensitive):
1842 (gtk_dialog_set_default_response): Use get_response_data.
1843 (gtk_dialog_run): Don't disconnect the signals if the
1844 dialog was destroyed while running.
1846 Tue Mar 22 14:16:31 2005 Manish Singh <yosh@gimp.org>
1848 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
1849 Use g_return_if_fail, not g_return_val_if_fail.
1851 2005-03-22 Matthias Clasen <mclasen@redhat.com>
1853 Implement bookmark renaming (#136216, Sean Middleditch)
1855 * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
1856 get_bookmark_label and set_bookmark_label vfuncs.
1858 * gtk/gtkfilesystem.h:
1859 * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
1860 (gtk_file_system_get_bookmark_label): Wrappers for the
1863 * gtk/gtk.symbols: Add new exported symbols.
1865 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
1866 (gtk_file_system_unix_get_bookmark_label): Implementations
1867 for the Unix backend.
1869 * gtk/gtkfilechooserdefault.c: Add a context menu to
1870 the bookmarks pane, and allow to rename bookmarks.
1872 2005-03-22 Matthias Clasen <mclasen@redhat.com>
1874 * gtk/gtkpathbar.c (gtk_path_bar_unmap):
1875 * gtk/gtkspinbutton.c (gtk_spin_button_unmap):
1876 * gtk/gtknotebook.c (gtk_notebook_unmap):
1877 * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
1878 the widget is unmapped. (#168791, Ryan Lortie)
1880 2005-03-21 Matthias Clasen <mclasen@redhat.com>
1882 * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
1883 GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
1884 their G_ counterparts, but also mark the name, nick
1885 and blurb as static.
1887 * gtk/*.c: Mark param spec strings as static, using
1890 * gtk/gtkspinbutton.h: Fix a typo.
1892 2005-03-21 Matthias Clasen <mclasen@redhat.com>
1894 * gtk/gtkcellrendererprogress.c:
1895 * gtk/gtkcellrendererpixbuf.c:
1896 * gtk/gtkcellrenderercombo.c:
1897 * gtk/gtkcellrenderer.c:
1898 * gtk/gtkcalendar.c:
1902 * gtk/gtkaspectframe.c:
1904 * gtk/gtkalignment.c:
1905 * gtk/gtkactiongroup.c:
1907 * gtk/gtkaccellabel.c:
1908 * gtk/gtkaboutdialog.c: Mark param spec strings as static.
1910 * gdk/gdkpango.c (gdk_pango_renderer_class_init):
1911 * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
1912 param spec strings as static.
1914 2005-03-21 Tor Lillqvist <tml@novell.com>
1916 * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
1917 variables, unhandled enum value in switch). Use g_object_unref()
1918 instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
1920 * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
1921 Add missing "case" keyword.
1923 * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
1926 2005-03-20 Tor Lillqvist <tml@novell.com>
1928 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
1929 Terminal Services session number, window station name (always
1930 "WinSta0" in interactive processes), and desktop name (typically
1931 "Default"), concatenated with backslash separators.
1932 (gdk_display_open): Accept only NULL or the string
1933 gdk_display_get_name() returns as display name.
1935 2005-03-20 Matthias Clasen <mclasen@redhat.com>
1937 Make PLT-reduction work with gcc4, and don't include
1938 everything in gdkalias.h:
1940 * gtk/grk.symbols: Group symbols by header and source file.
1941 * gtk/makegtkalias.pl: Protect definitions by the same
1942 preprocessor symbols used to guard the headers. Move
1943 the alias declarations to a separate file which is
1944 produced when calling makegtkalias.pl -def
1945 * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
1947 * gtk/*.c: Include gtkalias.h after the other headers,
1948 include gtkaliasdef.c at the bottom.
1949 * gtk/*.h: Small cleanups.
1951 Fri Mar 18 23:59:49 2005 Soeren Sandmann <sandmann@redhat.com>
1953 * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
1954 Make right-clicks not pop up the menu.
1956 2005-03-18 Owen Taylor <otaylor@redhat.com>
1958 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
1959 Call cairo_surface_finish()
1961 * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
1962 _gdk_windowing_set_surface_device_offset().
1964 2005-03-18 Tor Lillqvist <tml@novell.com>
1966 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1967 WM_MOUSEMOVE, don't check if this process owns the active
1968 window. This makes cross-application widget embedding work better.
1969 On WM_MOVE, don't bother checking for window visibility.
1971 * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
1972 unused variables. Add some casts to silence gcc.
1974 2005-02-24 Owen Taylor <otaylor@redhat.com>
1976 * gdk/gdkwindow.c: Use cairo_set_device_offset().
1978 * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
1979 gdk/win32/gdkpixmap-win32.c:
1980 Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
1981 drawable. Add _gdk_drawable_win32_finish() to clean up resources
1982 when a drawable is destroyed.
1984 * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
1985 (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
1986 acquire/release_dc when getting a DC to use with a GC or for
1987 blitting from a pixmap.
1989 * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
1991 * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
1992 Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
1995 * gdk/win32/gdkdrawable-win32.c: Remove
1996 gdk_draw_rectangle_alpha_libgtk_only()
1998 2005-03-17 Owen Taylor <otaylor@redhat.com>
2000 * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2001 EXTEND_REPEAT on the stipple pattern.
2003 2005-03-17 Matthias Clasen <mclasen@redhat.com>
2005 * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2006 in example in the docs. (#170611, Jianfei Wang)
2008 * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2009 adjustment values on resize. (#170567, Tomislav Jonjic)
2011 * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2012 if there is no cache. (#170652, Diego Gonzalez)
2014 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
2015 Make inline completion insert the prefix at the
2016 right spot. (#170146, Doug Quale)
2018 2005-03-17 Tor Lillqvist <tml@novell.com>
2020 * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2022 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2024 * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
2025 Typo fix in the docs.
2027 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
2028 Typo fix in the docs.
2030 * gtk/gtkiconview.c (gtk_icon_view_set_columns)
2031 (gtk_icon_view_get_columns, gtk_icon_view_set_item_width)
2032 (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
2033 (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
2034 (gtk_icon_view_set_column_spacing)
2035 (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin)
2036 (gtk_icon_view_set_margin): Add docs.
2038 * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
2041 2005-03-15 Owen Taylor <otaylor@redhat.com>
2043 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
2044 gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2045 gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2048 * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2049 function to create_cairo_context()
2051 * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2053 * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2056 * tests/testcairo.c: Update for create_cairo_context()
2058 * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2059 Reimplement in terms of Cairo, bypass the vtable entries.
2061 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2062 gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2063 gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2064 implementation of draw_trapezoids / draw_glyphs[_transformed].
2066 * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2068 * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2069 gdk_pango_context_get_for_screen() into the backend independent code.
2071 * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2074 * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2075 gdk_draw_rectangle_alpha_libgtk_only.
2077 * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
2078 gdk_pixbuf_set_as_cairo_source()
2080 * gdk/gdk.symbols: Update
2082 * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2083 gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2085 * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2086 gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2087 radio button style for now to get something more scalable.
2089 * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2090 antialiasing/dpi settings.
2092 2005-03-16 Matthias Clasen <mclasen@redhat.com>
2094 * demos/gtk-demo/editable_cells.c: Also demonstrate
2095 GtkCellRenderer::editing-started and separators.
2097 Tue Mar 15 20:34:33 2005 Manish Singh <yosh@gimp.org>
2099 * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2101 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2103 Make PLT-reduction work with gcc4, and don't include
2104 everything in gdkalias.h:
2106 * gdk/gdk.symbols: Group symbols by header and source file.
2107 * gdk/makegdkalias.pl: Protect definitions by the same
2108 preprocessor symbols used to guard the headers. Move
2109 the alias declarations to a separate file which is
2110 produced when calling makegdkalias.pl -def
2111 * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2113 * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2114 headers, include gdkaliasdef.c at the bottom.
2116 2005-03-16 Tor Lillqvist <tml@novell.com>
2118 * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2119 debugging output only if asked for, not always.
2121 * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2122 debugging printout instead of +%d+%d. Misc other additions and
2123 cosmetic improvements to debugging printouts. Use API_CALL() and
2124 GDI_CALL() macros in more places.
2126 * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2127 gdk_window_move_resize): To detect child windows, check whether
2128 the real parent is not the desktop window, instead of relying on
2129 the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2130 windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2131 de facto child windows.
2133 * gdk/win32/gdkprivate-win32.h
2134 * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2135 GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2138 * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2139 toplevel_window_type field.
2141 * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2142 GDK on Win32, we can compare directly to _gdk_root instead of
2143 checking the window type.
2144 (gdk_window_reparent): When reparenting a child of the desktop
2145 clear out the window decorations. Correspondingly, when
2146 reparenting to the desktop, add decorations. As in the X11
2147 backend, save the window type of a toplevel window when
2148 reparenting, in case it is reparented back to toplevel.
2150 2005-03-15 Matthias Clasen <mclasen@redhat.com>
2152 * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2153 example for manually setting up a group of actions.
2155 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2156 Document that inline completion requires text-column to be set.
2157 (gtk_entry_completion_compute_prefix): Return NULL if text-column
2160 * gtk/gtkentry.c (check_completion_callback): Call
2161 gtk_entry_completion_complete() before inserting the prefix,
2162 otherwise the prefix may depend on (random) state of the
2165 2005-03-15 Anders Carlsson <andersca@imendio.com>
2167 * docs/iconcache.txt:
2170 * gtk/gtkiconcache.c: (find_image_offset),
2171 (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2172 (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2173 * gtk/gtkiconcache.h:
2174 Update to be able to fetch pixbuf data and icon metadata.
2176 * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2177 (icon_info_ensure_scale_and_pixbuf):
2178 Use new cache functions.
2180 * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2181 (maybe_cache_image_data), (scan_directory), (write_pixdata),
2182 (get_image_meta_data_size), (get_image_pixel_data_size),
2183 (get_image_data_size), (get_single_node_size), (get_bucket_size),
2184 (write_bucket), (main):
2185 Update to write pixbuf data as well as information from .icon
2188 2005-03-15 Tor Lillqvist <tml@novell.com>
2190 * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2191 debugging function. As GetKeyNameText() returns a localized key
2192 name we need to convert it to UTF-8.
2194 * gdk/win32/gdkprivate-win32.h: Declare it.
2196 * gdk/win32/gdkevents-win32.c: Use it.
2198 * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2199 handling of children of foreign windows. They should be child
2200 windows from Windows's perspective, even if they are toplevel GDK
2203 2005-03-13 Ivan, Wong Yat Cheung <email@ivanwong.info>
2205 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2206 for big window support. Now also the test in testgtk works.
2208 2005-03-11 Matthias Clasen <mclasen@redhat.com>
2210 * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2211 style changes. (#169334, Yury Puzis)
2213 * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2214 the doc comments. (#169967, Masao Mutoh)
2216 2005-03-12 Ivan, Wong Yat Cheung <email@ivanwong.info>
2218 Big window fix for Win32. Big windows are still emulated within
2219 16-bit coordinate limits, though. Big windows now work on NT-based
2222 * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2225 * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2227 * gdk/win32/gdkwindow-win32.c: Minor related changes.
2229 2005-03-10 Matthias Clasen <mclasen@redhat.com>
2231 * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
2232 Fix a doc typo. (#169873, Johan Dahlin)
2234 * gtk/gtkdialog.c (gtk_dialog_map): Don't
2235 try to focus the default_widget if there is
2236 none. (#169881, Thomas Leonard)
2238 Wed Mar 9 19:20:44 2005 Manish Singh <yosh@gimp.org>
2240 * configure.in: Remove inadvertent gail references, require
2243 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2245 * configure.in: Require GLib 2.7.0
2247 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2249 * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2250 (#169728, Morten Welinder, Owen Taylor)
2252 * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2253 in the docs. (#169729, Morten Welinder)
2255 * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2257 * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
2258 when the model is unset. (#169528, Tomislav Jonjic)
2260 2005-03-09 Matthias Clasen <mclasen@redhat.com>
2262 * gtk/gtkviewport.c (gtk_viewport_class_init):
2263 * gtk/gtkuimanager.c (gtk_ui_manager_class_init):
2264 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
2265 * gtk/gtktipsquery.c (gtk_tips_query_class_init):
2266 * gtk/gtktext.c (gtk_text_class_init):
2267 * gtk/gtkstatusbar.c (gtk_statusbar_class_init):
2268 * gtk/gtkspinbutton.c (gtk_spin_button_class_init):
2269 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
2270 * gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
2271 * gtk/gtkoldeditable.c (gtk_old_editable_class_init):
2272 * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
2273 * gtk/gtktoolbutton.c (gtk_tool_button_class_init):
2274 * gtk/gtktoolitem.c (gtk_tool_item_class_init):
2275 * gtk/gtkimage.c (gtk_image_class_init):
2276 * gtk/gtkruler.c (gtk_ruler_class_init):
2277 * gtk/gtkiconview.c (gtk_icon_view_class_init):
2278 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
2279 * gtk/gtkprogress.c (gtk_progress_class_init):
2280 * gtk/gtkmenu.c (gtk_menu_class_init):
2281 * gtk/gtkscale.c (gtk_scale_class_init):
2282 * gtk/gtkpaned.c (gtk_paned_class_init):
2283 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
2284 * gtk/gtkfontbutton.c (gtk_font_button_class_init):
2285 * gtk/gtkfontsel.c (gtk_font_selection_class_init):
2286 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
2287 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2288 * gtk/gtkcurve.c (gtk_curve_class_init):
2289 * gtk/gtkcombo.c (gtk_combo_class_init):
2290 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
2291 * gtk/gtkcolorbutton.c (gtk_color_button_class_init):
2292 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
2293 * gtk/gtkmenuitem.c (gtk_menu_item_class_init):
2294 * gtk/gtkcheckbutton.c (gtk_check_button_class_init):
2295 * gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
2296 * gtk/gtkcellview.c (gtk_cell_view_class_init):
2297 * gtk/gtktoolbar.c (gtk_toolbar_class_init):
2298 * gtk/gtkmenubar.c (gtk_menu_bar_class_init):
2299 * gtk/gtkclist.c (gtk_clist_class_init):
2300 * gtk/gtkctree.c (gtk_ctree_class_init):
2301 * gtk/gtkcolorsel.c (gtk_color_selection_class_init):
2302 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
2303 * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
2304 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
2305 * gtk/gtkcalendar.c (gtk_calendar_class_init):
2306 * gtk/gtkbbox.c (gtk_button_box_class_init):
2307 * gtk/gtktable.c (gtk_table_class_init):
2308 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
2309 * gtk/gtkframe.c (gtk_frame_class_init):
2310 * gtk/gtkaction.c (gtk_action_class_init):
2311 * gtk/gtkaccellabel.c (gtk_accel_label_class_init):
2312 * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
2313 * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2315 2005-03-08 Matthias Clasen <mclasen@redhat.com>
2317 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
2318 * gtk/gtkrange.c (gtk_range_class_init):
2319 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
2320 * gtk/gtktexttag.c (gtk_text_tag_class_init):
2321 * gtk/gtktextview.c (gtk_text_view_class_init):
2322 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
2323 * gtk/gtknotebook.c (gtk_notebook_class_init):
2324 * gtk/gtkentry.c (gtk_entry_class_init):
2325 * gtk/gtkexpander.c (gtk_expander_class_init):
2326 * gtk/gtkarrow.c (gtk_arrow_class_init):
2327 * gtk/gtkalignment.c (gtk_alignment_class_init):
2328 * gtk/gtkbutton.c (gtk_button_class_init):
2329 * gtk/gtklabel.c (gtk_label_class_init):
2330 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
2331 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2332 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
2333 * gtk/gtktreeview.c (gtk_tree_view_class_init):
2334 * gtk/gtkbox.c (gtk_box_class_init):
2335 * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
2336 * gtk/gtkcontainer.c (gtk_container_class_init):
2337 * gtk/gtkwidget.c (gtk_widget_class_init):
2338 * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2339 when registering param specs.
2341 * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2342 (#169607, Mark McLoughlin)
2344 * gtk/gtk.symbols: Add the new attributes here, too.
2347 * gtk/gtktreeview.h:
2348 * gtk/gtktreeviewcolumn.h:
2349 * gtk/gtktextbuffer.h:
2351 * gtk/gtkfilechooserdialog.h:
2353 * gtk/gtkcontainer.h:
2354 * gtk/gtkcelllayout.h:
2355 * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2356 appropriate. (#165682, Marc Meissner)
2358 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2360 Convert the gdk keyval-keyname tables to a big string
2361 + offsets. (#168901)
2363 * gdk/gen-keyname-table.pl: Perl script inspired by
2364 pango/tools/gen-color-table.pl to create the
2365 gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2366 of offsets pointing into a big const string.
2368 * gdk/keynames.txt: List of keyval-keyname pairs.
2369 * gdk/keyname-table.h: Generated tables.
2371 * gdk/gdkkeynames.c: Include keyname-table.h and don't
2372 generate the inverse table at runtime.
2374 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2376 * gtk/gtkstyle.c: Document which parameters may be NULL.
2377 (#166855, Frank Naumann)
2379 2005-03-07 Matthias Clasen <mclasen@redhat.com>
2381 * AUTHORS: Add original authors of incorporated software.
2383 Thu Mar 3 16:59:44 2005 Manish Singh <yosh@gimp.org>
2385 * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2387 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2389 * gtk/gtksettings.c (gtk_settings_get_property):
2390 * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
2391 the values here. (#169047, Philip Langdale)
2393 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2394 Don't warn if a stock icon cannot be found. (#168830,
2397 2005-03-03 Matthias Clasen <mclasen@redhat.com>
2399 * gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
2400 Avoid warnings if gtk_widget_reparent() is called at
2401 unusual times. (#168966, Christian Persch)
2403 Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
2405 * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
2406 const warnings on data structure seeding.
2408 Tue Mar 1 13:53:56 2005 Manish Singh <yosh@gimp.org>
2410 * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2412 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2414 * gtk/gtkmenutoolbutton.c (button_state_changed_cb):
2415 Fix prelighting. (#157392, Vincent Noel, patch by
2418 * gtk/gtkicontheme.c (theme_lookup_icon): Make
2419 icon data caching work again. (#168851, Alexander Larsson)
2421 * gdk-pixbuf/gdk-pixbuf.c:
2422 * gdk-pixbuf/gdk-pixbuf-features.h.in:
2423 Revert the previous change, since it breaks
2426 2005-03-01 Matthias Clasen <mclasen@redhat.com>
2429 * gdk/gdkpixbuf-drawable.c
2431 * gdk/x11/gdkdnd-x11.c
2432 * gdk/x11/gdkevents-x11.c
2433 * gdk/x11/gdkproperty-x11.c
2434 * gdk/x11/gdkvisual-x11.c
2435 * gdk-pixbuf/gdk-pixbuf.c
2436 * gdk-pixbuf/gdk-pixbuf-features.h.in
2439 * gtk/gtkcolorbutton.c
2441 * gtk/gtkcontainer.c
2442 * gtk/gtkfilechooserdefault.c
2446 * gtk/gtkinputdialog.c
2447 * gtk/gtkitemfactory.c
2451 * gtk/gtktreedatalist.c
2452 * gtk/gtkuimanager.c
2453 * gtk/tree_minus.xpm
2455 * gtk/xdgmime/xdgmime.c
2456 * gtk/xdgmime/xdgmime.h:
2457 Move constant data to .rodata.
2459 2005-02-27 Matthias Clasen <mclasen@redhat.com>
2461 * gtk/gtkaction.c (connect_proxy): Improve the handling
2462 of buttons as action proxys. (#165534, Milosz Derezynski)
2464 * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
2465 (#168646, Vincent Untz)
2467 * gtk/gtkfilechooserdefault.c (save_folder_combo_create):
2468 Unset "focus-on-click" for the save folder combo. (#168688,
2471 2005-02-25 Matthias Clasen <mclasen@redhat.com>
2473 * demos/testpixbuf.c (main): Remove a C++ comment. (#168531,
2476 * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a
2477 path here. (#168443, Morten Welinder)
2479 2005-02-24 Robert Ögren <gtk@roboros.com>
2481 Implement better handling of Wintab tablet context overlap on
2484 * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2485 function that brings any tablet contexts to the top of the overlap
2487 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2488 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2489 Call _gdk_input_set_tablet_active when a window is activated (on
2492 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2494 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path):
2495 Don't leak parent_path. (#168435, Morten Welinder)
2497 Thu Feb 24 14:20:16 2005 Søren Sandmann <sandmann@redhat.com>
2499 * gtk/gtkstyle.c: Add
2501 g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2505 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2507 * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2508 (gtk_combo_box_model_row_deleted): Update the displayed row in
2509 the cell_view. (#167842, Gustavo Carneiro)
2511 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2513 Fix #167259, reported by Christian Persch:
2515 * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented
2516 widget, even if we avoid the unrealizing.
2517 (gtk_widget_reparent_subwindows): Make reparenting work for
2518 !NO_WINDOW widgets which have other windows which are siblings
2519 of widget->window (as e.g. GtkSpinButton).
2521 2005-02-24 Matthias Clasen <mclasen@redhat.com>
2523 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
2524 Don't emit a warning if a parent node is filtered out. (#164726,
2527 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2529 * gtk/gtklabel.c (gtk_label_style_set): Revert the last
2530 change, since gtk_widget_set_style_internal() already
2533 2005-02-23 Matthias Clasen <mclasen@redhat.com>
2535 * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2536 fonts may have changed. (#164128, Phil Blundell)
2538 * gtk/gtkaboutdialog.c (gtk_about_dialog_init)
2539 (gtk_about_dialog_new): Move initialization code from _new to
2540 _init. (#168249, Murray Cumming)
2542 Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
2544 * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2545 jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2548 2005-02-23 Tor Lillqvist <tml@novell.com>
2550 * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2551 MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2553 Tue Feb 22 13:49:09 2005 Manish Singh <yosh@gimp.org>
2555 * gtk/updateiconcache.c: #include <config.h>
2557 2005-02-22 Federico Mena Quintero <federico@ximian.com>
2559 Merged from gtk-2-6:
2561 Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2563 * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2564 (gdk_rgb_convert_565_d): Likewise.
2565 (DM_565): Made a static const precomputed array to avoid
2566 allocating it at runtime.
2567 (gdk_rgb_preprocess_dm_565): #ifdef out.
2569 2005-02-20 Matthias Clasen <mclasen@redhat.com>
2572 * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2573 in the documentation.
2575 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
2576 Set have_render_with_trapezoids to GDK_YES when we have
2577 a new enough Render extension. (#167965,Billy Biggs)
2579 * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2580 the last user interaction when focusing the window. (#166379,
2583 Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
2585 * gtk/gtkuimanager.c (start_element_handler): make sure expand
2586 is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2588 Thu Feb 17 14:52:57 2005 Manish Singh <yosh@gimp.org>
2590 * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2592 2005-02-16 Matthias Clasen <mclasen@redhat.com>
2594 * docs/iconcache.txt: Add some information about the
2595 icon cache format (since I can't locate it at freedesktop.org)
2597 Fixes for #143829, Tommi Komulainen, Christian Persch:
2599 * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2600 typeselect_flush_timeout when destroying the widgets
2602 (gtk_tree_view_ensure_interactive_directory): Add the
2603 popup to the window group of the toplevel it belongs to.
2605 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget)
2606 (gtk_combo_box_popup): Do the same here.
2608 2005-02-14 Matthias Clasen <mclasen@redhat.com>
2610 * configure.in: Kill --enable-ansi (#164394)
2612 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2614 * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling
2615 when the pathbar goes away. (#167094, Rodney Dawes)
2616 (change_icon_theme): Use GTK_ICON_SIZE_MENU here as
2619 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2621 Support vertical menubars (#166632):
2623 * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack
2624 directions, with values for left-to-right, right-to-left,
2625 top-to-bottom and bottom-to-top.
2629 * gtk/gtkmenubar.c: Add two properties, pack-direction and
2630 child-pack-direction, which specify how children and
2631 grandchildren of a menubar are packed, with getters and setters.
2633 * gtk/gtkmenubar.c (gtk_menu_bar_set_property):
2634 (gtk_menu_bar_get_property): Implement set_property and get_property.
2636 * gtk/gtkmenubar.c (gtk_menu_bar_size_request):
2637 (gtk_menu_bar_size_allocate): Take pack direction into account.
2639 * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement
2640 move_current here move all the menubar-specific direction
2641 tweaking from the generic menushell implementation here.
2643 * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific
2644 direction tweaking from the generic menushell implementation here.
2646 * gtk/gtkmenuitem.c (gtk_menu_item_size_request):
2647 (gtk_menu_bar_size_allocate): Take pack direction into account.
2649 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request)
2650 (gtk_image_menu_item_size_allocate):
2651 (gtk_image_menu_item_toggle_size_request): Take child pack
2652 direction into account and pack the image vertically if
2655 * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2656 Set the submenu direction to left-right for menuitems in
2658 (gtk_real_menu_shell_move_current): Simplify by moving
2659 direction tweaking to menu- and menubar-specific
2660 implementations. Take pack direction into account when
2663 * tests/testmenubars.c: Test menubars in various packing
2664 direction combinations.
2666 * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2668 2005-02-11 Matthias Clasen <mclasen@redhat.com>
2670 Complete the fix for #165770, Vincent Noel:
2672 * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
2673 fallback size be 16, to be equal to the default for
2674 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2675 (gtk_file_chooser_button_init):
2676 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2677 GTK_ICON_SIZE_SMALL_TOOLBAR.
2679 2005-02-09 Matthias Clasen <mclasen@redhat.com>
2681 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
2682 keynav for going from menubar to menu.
2684 2005-02-08 Christian Rose <menthos@menthos.com>
2686 * configure.in: Added "xh" to ALL_LINGUAS.
2688 2005-02-08 Matthias Clasen <mclasen@redhat.com>
2690 * gtk/gtkuimanager.c (start_element_handler): Accept
2691 the "expand" attribute and set a flag in the node if it
2693 (update_node): If the expand flag is set, make separator
2694 toolitems non-drawn and expanding. (#166489, Christian Persch)
2696 2005-02-05 Hans Breuer <hans@breuer.org>
2698 * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
2699 build with Cairo dependency. The patch to acually use Cairo
2700 on win32 will be on gtk-devel-list soon.
2701 * tests/makefile.msc : add testcairo building
2703 * gtk/stock-icons/makefile.msc : split command line into two to
2704 work with the shells default
2706 Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org>
2708 * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
2711 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2712 Add some extra parens for bitop order of operations disambiguiation.
2714 * gtk/gtkstock.c: Fix const confusion, make our own copy of the
2715 domain when setting a translate function.
2717 * tests/testcombo.c: removed unused variable.
2719 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2721 * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
2722 being NULL. (#166179, Diego Gonzalez)
2724 2005-02-04 Owen Taylor <otaylor@redhat.com>
2726 * configure.in: Revert gtk_binary_version to 2.4.0. Fix
2727 up comment to talk only about backwards compat, not
2728 forward/backwards compat. (#166293, reported by Vincent Noel)
2730 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2732 * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
2733 when there is not enough space. This avoids a nasty size
2734 allocation loop in the file chooser. (#154007, reported
2735 by Milosz Derezynski, patch by Robert Ögren)
2737 2005-02-04 Matthias Clasen <mclasen@redhat.com>
2739 * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
2740 selection of RTL direction if the widget does not have
2741 focus. (#164125, Frederic Crozat)
2743 Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
2745 * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
2747 2005-02-03 Owen Taylor <otaylor@redhat.com>
2749 * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
2750 gdk_drawable_set_cairo_target().
2752 * tests/testtreeflow.c (enum): Use grand not rand as a variable
2753 name because one of the cairo headers is pulling in stdlib.h.
2755 * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
2758 * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
2760 * Require libpangocairo for all backends.
2762 2005-02-03 Tor Lillqvist <tml@novell.com>
2764 * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
2765 wide character version of ImmGetCompositionString() here,
2766 too. (#165278, Takuro Ashie)
2768 2005-02-03 Matthias Clasen <mclasen@redhat.com>
2770 * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
2771 one roundtrip per motion event. (#166173, pointed out
2772 by Chris Lee, patch by Søren Sandmann)
2776 * gtk/gtkstock.c (gtk_stock_set_translate_func):
2777 New function which allows to change the function used for
2778 translation stock labels, on a per-domain basis. Use this
2779 functionality to switch the GTK+ stock items to use Q_()
2780 prefixed msgids. (#166179, Funda Wang)
2782 * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
2785 2005-02-02 Federico Mena Quintero <federico@ximian.com>
2787 Merged from gtk-2-6:
2789 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2790 Don't select the first row if the chooser is not mapped. This
2791 happens when it's acting on behalf of GtkFileChooserButton. Also,
2792 don't select the first row if we are in SAVE or CREATE_FOLDER
2793 modes --- I had missed that (see the ChangeLog entry from
2794 2005-01-18). Fixes #165264.
2796 2005-02-02 Tor Lillqvist <tml@novell.com>
2798 Implement lazy extended input initialization on Win32, by Robert
2799 Ögren. Fixes #163163, possibly #162334. Lazy initialization would
2800 be a good idea in any case even if it didn't fix any visible
2803 The Wacom tablet driver seems to get confused if Wintab is
2804 initialized but no window is shown before the process exits. This
2805 is the case for some GIMP plug-ins, for instance.
2807 * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
2808 non-static (and renamed).
2809 (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
2811 * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
2813 * gdk/win32/gdkinput.c (gdk_devices_list,
2814 gdk_display_list_devices, gdk_input_set_extension_events): Call
2815 _gdk_input_wintab_init_check() here instead.
2817 2005-02-02 Ivan, Wong Yat Cheung <email@ivanwong.info>
2819 * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
2820 of a single window so that gtk_clipboard_request_contents() can be
2821 called inside a GtkClipboardReceivedFunc(). (#163844)
2823 2005-02-01 Matthias Clasen <mclasen@redhat.com>
2825 * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
2826 in XDG_DATA_DIRS/pixmaps. (#165950, Thomas Zajic)
2828 * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
2829 to NULL after freeing it. (#165800, Damon Chaplin)
2831 2005-02-01 Michael Natterer <mitch@gimp.org>
2833 * configure.in: depend on stable pango-1.8, not unstable 1.7
2835 2005-02-01 Federico Mena Quintero <federico@ximian.com>
2837 Merged from gtk-2-6:
2839 * gtk/gtkfilechooserdefault.c
2840 (browse_files_model_finished_loading_cb): Don't
2841 g_assert_not_reached() if we are in any other state. Another code
2842 path may have triggered a folder reload. Fixes #165556.
2844 2005-02-01 Federico Mena Quintero <federico@ximian.com>
2846 Merged from gtk-2-6:
2850 * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
2851 fallback size be 16, to be equal to the default for
2852 GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2853 (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2854 GTK_ICON_SIZE_SMALL_TOOLBAR.
2856 2005-02-01 Matthias Clasen <mclasen@redhat.com>
2858 * */*.c: Fix many instances of "the the" in docs and
2859 comments. (#165815, Masao Mutoh)
2861 * gtk/updateiconcache.c (main): Add a --quiet option.
2863 2005-02-01 Tor Lillqvist <tml@novell.com>
2865 * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
2866 reset_after_dead, handle_dead): New functions, code blocks
2867 refactored out of update_keymap(). No functionality change.
2869 (update_keymap): Use ToUnicodeEx() when available (on NT-based
2870 Windows) instead of ToAsciiEx(). Makes keyboard input work in
2871 Unicode-only input locales that don't have any ANSI codepage, for
2872 instance Hindi and Bengali. Use _gdk_input_codepage only on
2875 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2876 WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
2877 TranslateCharsetInfo() to get the input locale's corresponding
2880 2005-01-31 Matthias Clasen <mclasen@redhat.com>
2882 * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate
2883 NULL-terminated va lists. (#165683)
2885 2005-01-29 Matthias Clasen <mclasen@redhat.com>
2887 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw):
2888 Typo fix. (#165581, Masao Mutoh)
2890 Thu Jan 27 14:25:45 2005 Manish Singh <yosh@gimp.org>
2892 * README.cvs-commits: update ancient IRC info.
2894 2005-01-27 Federico Mena Quintero <federico@ximian.com>
2896 Merged from gtk-2-6:
2898 * gtk/gtkfilechooserdefault.c
2899 (gtk_file_chooser_default_select_path): Oops, don't assert that we
2900 can't reach the end of the function; this happens if we are still
2901 loading but don't need a path change. Fixes #165213.
2903 2005-01-27 Matthias Clasen <mclasen@redhat.com>
2905 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
2906 Make wrapping work in RTL mode.
2908 * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
2909 obey HIG spacing a bit more, add a hand cursor when over the
2910 link button. (#163979, Jorn Baayen)
2912 2005-01-26 Matthias Clasen <mclasen@redhat.com>
2914 * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
2915 Don't allow -1 as minimum-key-length.
2916 (gtk_entry_completion_set_model): Add missing notification.
2917 (gtk_entry_completion_set_minimum_key_length): Add missing
2918 notification, allow setting minimum-key-length to 0. (#165194,
2921 2005-01-26 Matthias Clasen <mclasen@redhat.com>
2923 * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
2924 the license dialog is initially displayed without a horizontal
2926 (gtk_about_dialog_class_init): Document the fact that the
2927 license text is not wrapped. (#165012, Christian Rose)
2929 2005-01-25 Matthias Clasen <mclasen@redhat.com>
2931 * gtk/gtkbutton.c (gtk_button_set_image): Fix docs. (#165180,
2934 * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix
2935 docs. (#165163, Jeff Franks)
2937 * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
2938 for a string GValue. (#165203, Damon Chaplin)
2940 2005-01-24 Matthias Clasen <mclasen@redhat.com>
2942 * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display):
2943 Initialize user_time from DESKTOP_STARTUP_ID. (#165131,
2946 2005-01-24 Federico Mena Quintero <federico@ximian.com>
2948 * gtk/gtkfilechooserdefault.c: Removed leftover comments.
2950 2005-01-24 Federico Mena Quintero <federico@ximian.com>
2952 Merged from gtk-2-6:
2954 Fix #147785 and clean up the loading code:
2956 * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
2957 be EMPTY, PRELOAD, LOADING, FINISHED.
2958 (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
2959 (struct _GtkFileChooserDefault): Added a pending_select_paths
2961 (load_remove_timer): Add the new states.
2962 (load_setup_timer): Likewise.
2963 (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state.
2964 (browse_files_model_finished_loading_cb): Switch to the
2965 LOAD_FINISHED state.
2966 (enum PendingOp): Removed.
2967 (struct _GtkFileChooserDefault): Removed the pending_op and
2968 pending_select_path fields.
2969 (pending_select_paths_free): New utility function.
2970 (pending_select_paths_add): New utility function.
2971 (gtk_file_chooser_default_finalize): Call
2972 pending_select_paths_free().
2973 (pending_op_queue): Removed.
2974 (pending_op_process): Removed.
2975 (pending_select_paths_process): New function.
2976 (browse_files_model_finished_loading_cb): Call
2977 pending_select_paths_process().
2978 (center_selected_row_foreach_cb): Handle multiple selection by
2979 only centering the first row.
2980 (get_is_file_filtered): Constify.
2981 (gtk_file_chooser_default_select_path): Queue into a list of paths
2982 to select if we are not finished loading.
2983 (show_and_select_paths): New utility function.
2984 (up_folder_handler): Use pending_select_paths_add().
2985 (gtk_file_chooser_default_should_respond): Do not call
2986 pending_op_queue(); free the pending_selected_paths instead.
2987 (gtk_file_chooser_default_initial_focus): Don't queue a pending
2988 operation, and don't select the first row unconditionally --- this
2989 will happen when the folder is done loading.
2990 (shortcuts_row_activated_cb): Free the pending_select_paths.
2991 (pending_select_paths_store_selection): New utility function.
2992 (gtk_file_chooser_default_map): Call
2993 pending_select_paths_store_selection() to save the selection
2994 before reloading the folder.
2995 (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't
2996 move the cursor here; it will be done when processing the pending paths.
2998 * tests/testfilechooser.c (main): Add a button to the command
2999 window to unmap and remap the file chooser.
3001 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3003 * docs/tutorial/gtk-tut.sgml:
3004 * docs/tutorial/gtk_tut.sgml:
3005 * docs/reference/gtk/tmpl/gtkliststore.sgml:
3006 * gtk/gtkactiongroup.c:
3007 * gtk/gtksizegroup.c:
3008 * gtk/gtksizegroup.h:
3009 * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3010 appropriate. (#165108, Dan Winship)
3012 2005-01-24 Matthias Clasen <mclasen@redhat.com>
3014 * gtk/gtkwidget.c (gtk_widget_class_init): Document
3015 GtkWidget::style-set. (#164222, Alex Graveley)
3017 2005-01-22 Matthias Clasen <mclasen@redhat.com>
3019 * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full):
3020 Remove the accidentally added prototype for this unimplemented
3021 function. (#164893, Jeff Franks)
3023 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3026 2005-01-23 Tor Lillqvist <tml@novell.com>
3028 * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3029 dead accent key. (#164859, reported and fix verified by Daniel
3032 * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3033 GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3036 * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name):
3037 Don't call GetVolumeInformation() for network drives. They might
3038 be disconnected, and calling GetVolumeInformation() will then
3039 cause long delays. (#164448, reported by Dave Neary.) It seems to
3040 be very hard to reliably find out whether a network drive is
3041 connected or not, so it's easier to just not try getting the
3042 volume name for them. See the bug report for discussion.
3044 Make volume name display formats translatable.
3046 Fix for #163702, from Ivan Wong:
3048 * gdk/win32/gdkprivate-win32.h
3049 * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3051 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3052 WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3053 GDK_SELECTION_CLEAR event.
3055 * gdk/win32/gdkselection-win32.c
3056 (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3057 when emptying the clipboard ourselves.
3059 (gdk_selection_send_notify_for_display): Remove the artifical
3060 GDK_SELECTION_CLEAR event generation.
3062 2005-01-21 Matthias Clasen <mclasen@redhat.com>
3064 * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3065 provided by Bill Haneman.
3067 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3069 * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs. (#164725,
3072 * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3073 here, even if the only focusable widgets are labels.
3075 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3077 Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3079 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init)
3080 Add a follow-state property which when TRUE causes the pixbuf
3081 to be tinted according to state.
3083 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3084 Use follow-state and colorize the pixbuf when appropriate.
3086 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3088 Support wrapping in GtkCellRendererText (#163608):
3090 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
3091 Add wrap-mode and wrap-width properties which cause a
3092 text cell to break to a specified width when set.
3094 * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3095 and wrap-width when they are set.
3097 2005-01-20 Matthias Clasen <mclasen@redhat.com>
3099 * gtk/gtkmodules.c (load_module): Don't reverse the order
3100 of modules when putting them in gtk_modules. (#162676, Dennis
3101 Cranston, patch by Remus Draica)
3103 * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash
3104 if the tree is empty. (#164669, Priit Laes)
3106 Wed Jan 19 18:57:02 2005 Manish Singh <yosh@gimp.org>
3108 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3109 GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3112 Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
3114 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3115 strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3117 2005-01-19 Tor Lillqvist <tml@novell.com>
3119 * gdk/win32/gdkkeys-win32.c (update_keymap,
3120 gdk_keymap_translate_keyboard_state): Handle keyboards with
3121 ShiftLock (and not CapsLock) correctly. (#161814)
3123 2005-01-19 Matthias Clasen <mclasen@redhat.com>
3125 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3126 In save mode, don't return paths containing nonexisting
3127 directories. (#162443, Jean Marie Favreau)
3129 * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
3130 macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3132 * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3135 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents):
3136 Support _NET_VIRTUAL_ROOTS. (#163910, Carsten Haitzler)
3140 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time):
3141 Add a function to obtain the last user interaction
3142 time. (#163119, Elijah Newren)
3144 Tue Jan 18 13:56:09 2005 Manish Singh <yosh@gimp.org>
3146 * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3149 Tue Jan 18 13:46:46 2005 Manish Singh <yosh@gimp.org>
3151 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3152 disambiguate nested if/else.
3154 2005-01-18 Federico Mena Quintero <federico@ximian.com>
3156 Merged from gtk-2-6:
3158 * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3159 operation to select the first file if we are in SAVE or
3160 CREATE_FOLDER modes. Executing that operation would overwrite the
3161 contents of the save-name entry.
3163 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3166 * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
3167 * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3168 pointer warping to GDK. (#160437)
3170 * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3172 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3174 * gtk/gtkstyle.c (gtk_default_draw_check)
3175 (gtk_default_draw_option, gtk_default_draw_handle): Add some
3176 more NULL checks, patch by Michael Natterer.
3178 Tue Jan 18 10:55:47 2005 Søren Sandmann <sandmann@redhat.com>
3180 * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3183 * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3184 NULL widget. (#164477, Michael Natterer)
3186 2005-01-18 Matthias Clasen <mclasen@redhat.com>
3188 Avoid X errors when running against servers which
3189 implement XRender < 0.4. (#164427, Albert Chin)
3191 * gdk/x11/gdkprivate-x11.h:
3192 * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3193 New function to check for trapezoid support in XRender.
3194 (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
3197 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
3198 separate have_render_with_trapezoids field.
3200 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3202 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3204 * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3206 Mon Jan 17 16:44:36 2005 Jonathan Blandford <jrb@redhat.com>
3208 * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3211 2005-01-17 Matthias Clasen <mclasen@redhat.com>
3213 * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3214 and restore the selected row in the bookmark list and the
3215 save folder combo. (#164290)
3217 2005-01-16 Matthias Clasen <mclasen@redhat.com>
3219 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3220 Fix argument order in docs.
3222 2005-01-15 Matthias Clasen <mclasen@redhat.com>
3224 * gtk/gtktextview.c (gtk_text_view_check_keymap_direction):
3225 * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL
3226 if the keymap is neutral. (#164125, Phil Blundell)
3228 2005-01-14 Matthias Clasen <mclasen@redhat.com>
3230 * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3231 reset the property to its default value -1.
3232 (gtk_tree_view_get_search_column): Return the default value in
3233 the g_return_val_if_fail() check. (#163864, Richard Hult)
3235 * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
3236 Add a translator hint. (#163889)
3238 * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3239 is an enum value, not a define. Pointed out by Tommi Komulainen.
3240 * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3242 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3244 * configure.in: Check for nl_langinfo()
3245 * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3246 available to determine first day of week (#163842, Vincent Untz)
3248 * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about
3249 the lifecycle of widgets. (#159503, Christian Persch)
3251 * demos/gtk-demo/main.c (create_text): Use monospace for the
3252 source code view. (#163526, Theerud Lawtrakul)
3254 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3255 for the Credits button to avoid duplicate. (#163465, Tim-Philipp
3258 * configure.in: Add an OS_LINUX conditional.
3260 * gdk/Makefile.am (TESTS):
3261 * gdk-pixbuf/Makefile.am (TESTS):
3262 * gtk/Makefile.am (TESTS): Only run abicheck on Linux. (#163917,
3265 2005-01-13 Matthias Clasen <mclasen@redhat.com>
3267 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3268 (gtk_tree_view_set_headers_clickable): Make the headers-visible
3269 property readwrite instead of just writable, and remove the
3270 g_return_if_fail check that there is a model when setting this
3271 property. Also improve the blurb. (#163851, Richard Hult)
3273 2005-01-12 Owen Taylor <otaylor@redhat.com>
3275 * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3276 initialization of gdktarget, that was causing it to be
3277 evaluated before host was set. Simplify --with-gdktarget help
3280 * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1
3281 which doesn't work with slightly older versions of GNU grep
3282 in install-libtool-import-lib rule.
3284 2005-01-12 Tor Lillqvist <tlillqvist@novell.com>
3286 Fix for #162790, by Iwan Wong:
3288 * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3289 correctly. Simplify the interface to render_line_horizontal() and
3290 render_line_vertical(). Need to draw lines "manually" also on
3291 NT-based Windowses if we have a dash offset or are drawing
3292 double-dashed lines.
3294 * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3295 double-dash flag, and a brush for the background colour (used by
3296 the odd dashes in the double-dash line style) in the GdkGCWin32
3299 * gdk/win32/gdkgc-win32.c: Set up above new fields.
3301 2005-01-10 Federico Mena Quintero <federico@ximian.com>
3305 * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3306 GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3307 (gtk_file_system_unix_get_folder): Make error reporting more
3308 accurate. Don't bail out if we can't read the directory.
3309 (fill_in_stats): Don't return an error; just assume we don't have
3310 stat info for this folder's files.
3311 (fill_in_names): Don't create the hash table for the names if we
3312 can't open the directory.
3313 (gtk_file_folder_unix_list_children): Don't emit the
3314 "finished-loading" signal --- we don't do asynchronous loads, so
3315 we are always finished loading.
3316 (gtk_file_folder_unix_get_info): Use helper functions; handle the
3317 case where we can't stat '/'.
3318 (get_icon_type_from_path): Don't call fill_in_stats() here; only
3319 use the info we have.
3320 (fill_in_mime_type): Don't return an error. Don't do anything if
3321 we don't have the stat info.
3323 2005-01-10 Owen Taylor <otaylor@redhat.com>
3325 * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3328 2005-01-10 Matthias Clasen <mclasen@redhat.com>
3330 * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3331 signals. (#163319, Murray Cumming)
3333 2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
3335 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3336 cursor also when changing the cursor of a window that is the first
3337 ancestor of the window containing the pointer that has a cursor
3338 defined. (#163035, Ivan Wong)
3340 2005-01-09 Anders Carlsson <andersca@gnome.org>
3342 * gtk/gtkcellrenderertext.c: (get_size):
3343 * gtk/gtklabel.c: (gtk_label_size_request):
3344 * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3345 Don't pass NULL to pango_context_get_metrics. Use
3346 pango_context_get_language instead, which is way faster.
3348 2005-01-08 Matthias Clasen <mclasen@redhat.com>
3350 * configure.in: Bump version
3352 * === Released 2.6.1 ===
3354 * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3356 2005-01-07 Tor Lillqvist <tml@iki.fi>
3358 * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3359 Fix braino. (#163232, Arnaud Charlet)
3361 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3363 * gtk/gtkiconview.c: Make markup_column work, and fix some
3364 layout issues when either icon or text is missing. (#163065)
3366 2005-01-06 Federico Mena Quintero <federico@ximian.com>
3368 * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3369 "Open _Location" item. Fixes #148839.
3371 2005-01-06 Matthias Clasen <mclasen@redhat.com>
3373 * README.in: Fix a typo. (#163128, kentaro fukuchi)
3375 2005-01-06 James M. Cape <jcape@ignore-your.tv>
3377 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
3378 (gtk_file_chooser_button_new_with_backend): Use default title if
3381 * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
3384 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3388 * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
3389 a pending operation to select the first row.
3391 2005-01-05 Federico Mena Quintero <federico@ximian.com>
3393 * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
3394 button_data_free() explicitly; the button is weak-reffed and the
3395 callback will free the button data. Fixes #163010.
3396 (_gtk_path_bar_set_path): Don't ref/sink the button. And for the
3397 failure case, call gtk_widget_destroy() on it.
3399 * gtk/gtkfilechooserdefault.c (check_is_folder): Use
3400 gtk_file_system_get_folder() again (see the ChangeLog entry from
3401 2004-08-25). We can't first get the parent folder and then
3402 request the info for the path in question, as the parent folder
3403 may not be readable. See bug #162617.
3404 (gtk_file_chooser_default_set_current_folder): Assert that the
3405 passed-in path is not null.
3406 (shortcuts_find_current_folder): Likewise.
3407 (shortcuts_add_current_folder): Likewise.
3408 (set_list_model): Likewise.
3409 (gtk_file_chooser_default_map): Only reload the current folder if
3411 (bookmarks_check_add_sensitivity): Check for the current folder
3413 (browse_files_select_first_row): Don't set the cursor if there is
3416 2005-01-05 Matthias Clasen <mclasen@redhat.com>
3418 * gtk/gtkfilechooserdefault.c: Don't construct errors from
3419 the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
3420 (get_file_info, check_is_folder): Translate errors from
3421 the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
3422 of the fix for #162911, noticed by Murray Cumming.
3424 Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com>
3426 * gtk/gtkviewport.c (gtk_viewport_realize):
3427 * gtk/gtktextview.c ((text_window_realize): Set the background of
3428 the windows to None instead of adding EXPOSURE_MASK, as suggested
3431 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update
3432 the user time when receiving a WM_DELETE message. (#162980,
3435 Tue Jan 4 16:52:14 2005 Jonathan Blandford <jrb@redhat.com>
3437 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
3438 only reorder on button 1, part of #141937
3440 Tue Jan 4 11:36:43 2005 Søren Sandmann <sandmann@redhat.com>
3444 * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
3445 to win->window's event_mask
3447 * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
3448 to viewport->view_window.
3450 2005-01-04 Matthias Clasen <mclasen@redhat.com>
3452 * demos/testpixbuf.c (main): Remove the size_prepared callback,
3453 to test incremental display.
3454 (new_testrgb_window): Return the drawing area, not the window,
3455 since we want to queue draws on the drawing area.
3457 2005-01-03 Matthias Clasen <mclasen@redhat.com>
3459 * examples/*: Re-extract.
3461 * docs/tutorial/gtk-tut.sgml: Small corrections.
3463 * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
3464 section. (#161414, Robert Ancell)
3466 * docs/tutorial/gtk-tut.sgml: Make it build.
3468 * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
3469 regarding modality. (#112903, Dave Bordoley)
3471 * gtk/gtkfixed.c (gtk_fixed_set_has_window):
3472 Add a little motivation. (#145556, Tommi Komulainen)
3474 * docs/tutorial/gtk-tut.sgml: Clarify section on
3475 g_signal_connect_swapped. (#120543, David Bourguignon)
3477 Make gtk_icon_theme_load_icon() work independent of
3478 icon factory initialization. (#162791, Tristan Van Berkom)
3480 * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
3481 _gtk_icon_factory_ensure_default_icons, and make it non-static.
3483 * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3485 2005-01-02 Matthias Clasen <mclasen@redhat.com>
3487 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder):
3488 Don't add a shortcut here. (#162752, Tor Lillqvist)
3490 2005-01-02 Tor Lillqvist <tml@iki.fi>
3492 * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3493 CoTaskMemFree in get_special_folder() below.
3495 * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3496 Win32 using _gtk_file_system_win32_path_compare().
3498 * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3500 * gtk/gtkfilechooserbutton.c (model_add_special)
3501 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3502 _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3505 * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3506 consider all drives "mounted", including floppies. Trying to
3507 inspect the contents of a nonexistent floppy will cause errors
3508 later that are handled normally, no need to avoid them
3509 completely. Keep the drive type in the GtkFileSystemVolume.
3510 Support UNC paths. (#161797, #137874) Fix error message
3511 capitalizations as in gtkfilesystemunix.c.
3513 (gtk_file_system_win32_init): Start one timeout per
3516 (gtk_file_system_win32_finalize): Remove the timeout.
3518 (get_special_folder): Copied from GLib.
3520 (_gtk_file_system_win32_get_desktop): New function, uses
3521 get_special_folder().
3523 (gtk_file_system_win32_list_volumes): Don't start a timeout at
3524 each call to this function. Don't assume A: and B: are floppies.
3526 (gtk_file_system_win32_get_volume_for_path): Don't assume all
3527 volumes are drive roots, i.e. support share roots of UNC paths
3530 (gtk_file_system_win32_get_folder): Don't assume errno is set
3531 after g_file_test() returns FALSE. It isn't on Win32 (and even on
3532 Unix I don't think one should assume anything about errno after
3535 (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3537 (gtk_file_system_win32_volume_get_display_name): Don't call
3538 GetVolumeInformation() on drives A: or B: if they are removable,
3539 as they might then be floppies, causing an unnecessary
3542 (gtk_file_system_win32_volume_render_icon): Use network icon for
3543 unrecognized drive types.
3545 (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3546 confused by UNC paths.
3548 (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3549 for case-insensitive UTF-8 path comparison.
3551 (extract_icon): Use SHGetFileInfo() which is faster than
3552 ExtractAssociatedIcon(). Icon extraction is still slow, though,
3555 (win32_pseudo_mime_lookup): Don't use the same icon for all
3556 shortcuts or executables. Cache only other file type icons.
3558 (gtk_file_system_win32_render_icon): Use network stock icon for
3559 remote drives and UNC server share roots. Compare home directory
3560 case-insensitively. Do lookup icons also for executable files,
3561 after all, it's these files that can have individual icons in the
3562 first place. Yes, it can be slow. Needs work.
3564 (filename_is_drive_root): Require also the slash after the colon.
3566 (filename_is_server_share): New function.
3568 (_gtk_file_system_win32_path_compare): New function, does
3569 case-folded UTF-8 comparison.
3571 * gtk/gtkfilesystemwin32.h: Declare
3572 _gtk_file_system_win32_path_compare().
3574 2005-01-01 Matthias Clasen <mclasen@redhat.com>
3576 * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3577 custom image by passing NULL.
3578 (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3579 a problem with changing stock labels. (#162273, Marcin
3582 2005-01-01 Tor Lillqvist <tml@iki.fi>
3584 * gtk/gtkmodules.c (get_module_path)
3585 * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3586 gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3587 g_getenv() now returning UTF-8 on Win32, no need to call
3590 2004-12-31 Matthias Clasen <mclasen@redhat.com>
3592 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval)
3593 (_gtk_key_hash_lookup): Don't sort a list of values as if
3594 it was a list of entries. This fixes crashes during mnemonic
3595 activation in the presence of multiple keymaps. (#162488,
3598 2004-12-30 Matthias Clasen <mclasen@redhat.com>
3600 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3601 state propagation when making an insensitive combo box sensitive
3602 again. (#162524, Carlos Garnacho Parro)
3604 * gtk/gtkfilechooserdefault.c: Use secondary text for error
3607 * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3608 (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3609 for error messages. Also mark some error messages for translation,
3610 fix capitalization of error messages.
3612 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3613 Use g_value_get_boolean() for ellipsize_set. (#162447,
3616 2004-12-30 Tor Lillqvist <tml@iki.fi>
3618 * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3621 2004-12-28 Matthias Clasen <mclasen@redhat.com>
3623 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3624 submenu direction from the parent menu.
3626 * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
3627 Return a boolean indicating whether an item in the submenu
3629 (gtk_real_menu_shell_move_current): When going in child
3630 direction, don't get stuck at completely insensitive
3631 submenus. (#162055, Billy Biggs)
3633 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3635 Make the clipboard image API more robust (#162357,
3636 Torsten Schoenfeld):
3638 * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3639 ref the pixbuf if it is NULL.
3641 * gtk/gtkselection.c (gtk_selection_data_set_pixbuf):
3642 NULL-terminate the varargs in the call to
3643 gdk_pixbuf_save_to_buffer().
3644 (gtk_selection_data_get_pixbuf): Only use a pixbuf loader
3645 if there is data to load.
3647 2004-12-27 Matthias Clasen <mclasen@redhat.com>
3649 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3650 Set x_root and y_root in button and motion events from
3651 extended input devices. (#148715, Robert Ögren)
3653 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
3654 typo. (#162339, Alessio Dessi)
3656 * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3657 properties as new since 2.4. (#156101, Billy Biggs)
3659 * configure.in: Add a warning about the linux-fb
3660 target. (#155488, Zeeshan Ali)
3662 * gtk/gtkmain.c (gtk_init_with_args): Typo fix. (#162278,
3665 2004-12-26 Matthias Clasen <mclasen@redhat.com>
3667 * gtk/gtkfilechooser.c (gtk_file_chooser_set_action):
3668 Typo fix. (#162219, Masao Mutoh)
3669 (gtk_file_chooser_set_preview_widget_active):
3670 Another typo. (#162218, Masao Mutoh)
3672 2004-12-23 Matthias Clasen <mclasen@redhat.com>
3674 * gtk/gtkliststore.c (gtk_list_store_iter_children):
3675 Return TRUE if there are children. (#162134, Iñigo Serna,
3676 patch by John Finlay)
3678 * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed):
3679 Transfer state from the button to the cell view to get
3680 prelighting right. (#156327, Ricardo Veguilla)
3682 Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
3684 * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
3685 timeout. Written by Christian Persch.
3687 Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
3691 * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
3692 background for windows that get expose events.
3694 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
3695 hack to repaint !expose windows.
3697 Wed Dec 22 11:35:41 2004 Søren Sandmann <sandmann@redhat.com>
3699 Bug #147497, make menu items activate immediately when you release
3702 * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
3703 items activate immediately.
3705 * gtk/gtkmenu.c (definitely_within_item): New function
3706 * gtk/gtkmenu.c (check_threshold): New function
3708 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3710 * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
3711 null the mnemonic_menu when unsetting a mnemonic, reported
3714 2004-12-21 Matthias Clasen <mclasen@redhat.com>
3716 * gtk/gtkliststore.c (generate_order): Generate the order the
3717 way it is supposed to be, order[new_pos] == old_pos.
3718 (gtk_list_store_reorder): Invert the order before using it.
3720 2004-12-22 Matthias Clasen <mclasen@redhat.com>
3722 Fix sorting of list stores. (#161886, Marcin Krzyzanowski)
3724 * gtk/gtkliststore.c (generate_order): Generate the order the
3725 way it is supposed to be, order[new_pos] == old_pos.
3726 (gtk_list_store_reorder): Invert the order before using it.
3728 * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
3731 Wed Dec 22 01:24:01 2004 Jonathan Blandford <jrb@redhat.com>
3733 * gtk/queryimmodules.c (main): print out the version and binary
3734 name in the header comment. Problem reported by Seth Nickell.
3736 2004-12-20 Matthias Clasen <mclasen@redhat.com>
3738 * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
3739 root path to gtk_tree_model_rows_reordered(). (#161720,
3740 Marcin Krzyzanowski)
3742 * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
3743 translate NULL messages. (#161789, Morten Welinder)
3745 * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
3746 the secondary label on show_all(). (#161707, Christian Persch)
3748 2004-12-19 Tor Lillqvist <tml@iki.fi>
3750 * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
3751 Use wide character API when available. Use UTF-8 for filenames.
3753 * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
3754 the string's trailing zero byte in the property's length, just for
3757 2004-12-18 Matthias Clasen <mclasen@redhat.com>
3759 * gtk/gtkfilechooserentry.c (check_completion_callback)
3760 (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
3762 * gtk/gtkfilechooserdefault.c (edited_idle_cb)
3763 (shortcuts_drag_outside_idle_cb): Add missing
3764 GDK_THREADS_ENTER/LEAVE. (#161604)
3766 * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb):
3767 (list_select_func): Don't call gtk_file_info_get_is_folder()
3770 * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name):
3771 (gtk_about_dialog_init): Add missing initializations. (#161646,