1 2006-07-24 Richard Hult <richard@imendio.com>
3 * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_type_hint): Set the
4 window level depending on the type hint.
6 * gdk/quartz/gdkevents-quartz.c (gdk_keyboard_grab,
7 pointer_ungrab_internal): Only break the grab if the new window is
9 (gdk_event_translate): Catch the case where the entire app loses
10 focus and break any grabs. Only do implicit grabs when the event
11 mask has both press and release.
13 * gdk/quartz/gdkkeys-quartz.c (translate_keysym):
14 * gdk/quartz/gdkselection-quartz.c:
16 * gdk/quartz/GdkQuartzWindow.c
17 ([GdkQuartzWindow -windowDidResignKey:]): Use this to update the
18 focus window instead of resignMain, fixes the case where other apps
19 uses focus follows mouse (like the terminal can).
21 2006-07-23 Matthias Clasen <mclasen@redhat.com>
23 * configure.in: Bump version
25 * === Released 2.10.1 ===
29 * gtk/gtkstyle.c (gtk_default_draw_box_gap): Draw
30 gaps on the left/right properly. (#348134, Benjamin Otte)
32 * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
33 Fix a memory leak. (#348424, Carlos Garcia Campos)
35 2006-07-21 Matthias Clasen <mclasen@redhat.com>
38 * gtk/gtkrc.c (_gtk_rc_context_destroy): New function to
39 destroy an rc context.
41 * gtk/gtksettings.c (gtk_settings_finalize): Destroy the rc context.
42 (gtk_settings_get_for_screen): Unref the settings when the screen
43 goes away. (#348096, Chris Wilson)
45 2006-07-21 Richard Hult <richard@imendio.com>
47 * gdk/quartz/gdkgc-quartz.c: (gdk_quartz_gc_get_values),
48 (gdk_quartz_gc_set_values), (_gdk_windowing_gc_copy),
49 (gdk_gc_get_screen): Implement.
51 * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_back_pixmap):
54 2006-07-21 Matthias Clasen <mclasen@redhat.com>
56 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string):
57 0-terminate outbuf in all cases. (#348227, Nguyen Thái Ngoc Duy)
59 2006-07-21 Michael Natterer <mitch@imendio.com>
61 Enable symbolic colors and color expressions in style
62 properties. Fixes bug #346751.
64 * gtk/gtkrc.c (rc_parse_token_or_compound): add GtkRcStyle
65 parameter and replace symbolic colors by color constants.
67 (gtk_rc_parse_assignment): likewise. Also support parsing of
68 expressions of the form identifier(compound).
70 (gtk_rc_parse_style): pass the GtkRcStyle to
71 gtk_rc_parse_assignment().
73 (gtk_rc_parse_statement): pass NULL since we don't have a
76 2006-07-21 Michael Natterer <mitch@imendio.com>
78 * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize):
79 remove accidential 2nd parameter to g_object_unref().
81 2006-07-21 Matthias Clasen <mclasen@redhat.com>
83 * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize):
84 Don't leak the action_view. (#348120, Chris Wilson)
86 * gtk/gtknotebook.c (gtk_notebook_paint): Improve drawing
87 of tabs while reordering. (#348115, Benjamin Otte)
89 * gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
90 leak the adjustments. (#348094, Chris Wilson)
92 * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
93 the during_reorder flag. (#348049, Sven Herzberg, patch
96 2006-07-20 Matthias Clasen <mclasen@redhat.com>
98 * gtk/gtkmenu.c (gtk_menu_destroy): Just remove the scroll
99 timeout here, don't access settings. (#348095, Chris Wilson)
101 * gtk/gtktextlayout.c (gtk_text_layout_set_contexts): Fix
102 messed up refcounting. (#348090, Chris Wilson)
104 * gtk/gtkicontheme.h:
105 * gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache):
106 Export this privately.
108 * gtk/gtkiconfactory.c (render_fallback_image): And call it
109 here to initialize the builtin cache before using it. (#348063,
112 2006-07-19 Federico Mena Quintero <federico@novell.com>
114 * tests/autotestfilechooser.c (test_black_box): Argh, initialize
116 (set_filename_timeout_cb): Renamed from timeout_cb().
117 (test_confirm_overwrite): New function, test confirmation before
118 overwriting a file in SAVE mode.
120 2006-07-20 Michael Natterer <mitch@imendio.com>
122 * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_finalize):
123 fix typo to make it compile again.
125 2006-07-20 Emmanuele Bassi <ebassi@gnome.org>
127 * gtk/gtkrecentchoosermenu.c:
128 (gtk_recent_chooser_menu_finalize): Correctly chain up the
129 finalization vfunc. (#348089, Chris Wilson)
131 2006-07-20 Richard Hult <richard@imendio.com>
133 * gdk/quartz/gdkevents-quartz.c: (generate_grab_broken_event):
134 Append the event to the queue instead of using gdk_event_put.
135 (_gdk_quartz_get_mouse_window, find_current_keyboard_window):
137 (get_event_mask_from_ns_event, create_focus_event)
138 (convert_window_coordinates_to_root, find_window_for_event)
139 (gdk_event_translate): Improve readability (style changes).
140 (gdk_flush, gdk_display_sync, gdk_display_flush)
141 (gdk_event_send_client_message_for_display),
142 (gdk_screen_broadcast_client_message): Remove FIXMEs.
143 (gdk_screen_get_setting): Reindent.
144 Also move find_child_window_by_point to gdkwindow-quartz.c.
146 * gdk/quartz/gdkwindow-quartz.c:
147 (find_child_window_by_point_helper),
148 (_gdk_quartz_find_child_window_by_point): Move here from
150 (_gdk_windowing_window_get_pointer): Handle destroyed windows and
151 imlement the return value.
152 (_gdk_windowing_window_at_pointer): Implement.
154 2006-07-19 Richard Hult <richard@imendio.com>
156 * gtk/gtkdnd-quartz.c (register_types): Reindent.
158 * gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
161 2006-07-19 Richard Hult <richard@imendio.com>
163 * gdk/quartz/GdkQuartzWindow.c
164 ([GdkQuartzWindow -windowDidResignMain:]):
165 * gdk/quartz/gdkevents-quartz.c (_gdk_quartz_update_focus_window):
166 Listen to windowDidResignMain notifications and properly update the
167 focus window when windows are unfocused.
169 2006-07-19 Kristian Rietveld <kris@imendio.com>
171 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init),
172 (gtk_cell_renderer_text_[gs]et_property), (get_layout): add
173 align_set field to keep track whether the align property was
174 set by the user, if not we will use the alignment by looking
175 at the direction of the widget. (#157439)
177 2006-07-19 Matthias Clasen <mclasen@redhat.com>
179 * modules/printbackends/file/gtkprintbackendfile.c
180 (file_printer_get_settings_from_options): Check if option
181 is NULL before using it. (#348014, Christian Persch)
183 * gdk/x11/gdkx.h (gdk_font_lookup_for_display): When looking
184 up a font XID, add the XID_FONT_BIT. (#348001)
186 2006-07-19 Richard Hult <richard@imendio.com>
188 * gdk/quartz/GdkQuartzView.c ([GdkQuartzView -drawRect:]):
189 * gdk/quartz/gdkpixmap-quartz.c (gdk_pixmap_new): Remove unused
190 variables to fix compiler warnings.
192 2006-07-19 Richard Hult <richard@imendio.com>
194 * gdk/quartz/gdkwindow-quartz.c (gdk_window_impl_quartz_init)
195 (gdk_window_set_type_hint, gdk_window_get_type_hint):
196 * gdk/quartz/GdkQuartzWindow.c
197 ([GdkQuartzWindow -canBecomeMainWindow])
198 ([GdkQuartzWindow -canBecomeKeyWindow]): Implement type hints and
199 use them to determine which windows should be allowed to become
200 main and key windows.
202 2006-07-19 Richard Hult <richard@imendio.com>
204 * gdk/quartz/gdkwindow-quartz.c:
205 (_gdk_windowing_window_get_pointer): Get the position correctly
206 for the root window. Fixes bug #347976, patch by Dave Vasilevsky.
208 2006-07-18 Matthias Clasen <mclasen@redhat.com>
212 * gtk/gtkdnd.c: Make the ipc widgets GtkWindows instead
213 of GtkInvisibles, and put them in the same window group
214 as the drag source, to avoid interactions between DND
215 and window groups. (#347277, Michael Wu, analysis by
218 2006-07-18 John (J5) Palmieri <johnp@redhat.com>
220 * modules/printbackends/cups/gtkprintbackendcups.c:
221 Make bits from my last commit are conditionally compiled
222 only if cups 1.2 is available.
224 2006-07-18 John (J5) Palmieri <johnp@redhat.com>
226 * gtk/gtkprinteroption.h:
227 * gtk/gtkprinteroptionwidget.c:
228 * modules/printbackends/cups/gtkprintbackendcups.c:
229 add GTK_PRINTER_OPTION_TYPE_PICKONE_PASSWORD,
230 GTK_PRINTER_OPTION_TYPE_PICKONE_PASSCODE,
231 GTK_PRINTER_OPTION_TYPE_PICKONE_REAL,
232 GTK_PRINTER_OPTION_TYPE_PICKONE_INT,
233 and GTK_PRINTER_OPTION_TYPE_PICKONE_STRING options to support a subset
234 of the new CUPS 1.2 custom options spec
236 2006-07-18 Federico Mena Quintero <federico@novell.com>
238 Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the
239 location entry in Save mode preserve the stuff from
240 set_filename(); it was overwriting it with $cwd.
242 This is the same fix for
243 http://bugzilla.gnome.org/show_bug.cgi?id=347066
245 * tests/autotestfilechooser.c: (test_black_box): Added black-box
246 test for set_filename() and set_current_name().
248 * gtk/gtkfilechooser.c (gtk_file_chooser_get_type): Cast to
249 GClassInitFunc in the call to g_type_register_static_simple(), to
250 avoid a compiler warning.
252 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
253 Added a browse_files_last_selected_name field. We'll copy the
254 logic from gtkfilesel.c to see when to clear the location entry.
255 (struct _GtkFileChooserDefault): Removed the
256 processing_pending_selections field.
258 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
259 Free impl->browse_files_last_selected_name.
260 (pending_select_paths_process): Don't use
261 impl->processing_pending_selections.
262 (update_chooser_entry): Keep track of the name that was last
263 selected in the file list. We use this to know when to clear the
264 location entry. The logic is similar to that of
265 gtkfilesel.c:gtk_file_selection_file_changed(). This also lets us
266 get rid of the processing_pending_selections flag.
267 (update_chooser_entry): Clear the entry if we didn't have a
269 (location_switch_to_filename_entry): Do not set $cwd as the
270 contents of the location entry here...
271 (location_popup_handler): ... but do it here instead, only as the
272 result of the user asking to turn on the location entry.
273 (gtk_file_chooser_default_get_paths): If the location entry is
274 empty, do the fallback of seeing if it is sensible to say that
275 $cwd is the selected path.
276 (gtk_file_chooser_default_update_current_folder): Don't set the
277 text of the location entry; this is no longer needed with the
279 (shortcuts_activate_iter): Clear the location entry when
280 activating a shortcut if we are not in SAVE mode. This keeps the
281 contents of the location entry consistent even when switching
282 folders via the shortcuts.
284 2006-07-18 Michael Natterer <mitch@imendio.com>
286 * gtk/gtkrange.c: remember the sensitivity of the steppers in
287 GtkRangeLayout, update it in gtk_range_calc_layout() and check for
288 changes in layout_changed(), so adjustment changes that leave the
289 slider position unchanged are still able to update the steppers'
290 sensitivity. Fixes bug #347902.
292 2006-07-18 Kristian Rietveld <kris@imendio.com>
294 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
297 2006-07-18 Kristian Rietveld <kris@imendio.com>
299 Fix for #335012, reported by Matteo Nastasi.
301 * gtk/gtktreeview.c (gtk_tree_view_real_start_editing): if the
302 requested space of the editable is smaller than the cell area,
303 put it up above the middle of the cell area.
305 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
306 configure the inner border to cover the cell area if the
307 entry requisition is smaller than the cell_area.
309 2006-07-18 Kristian Rietveld <kris@imendio.com>
311 Another fix for #164884.
313 * gtk/gtktreeprivate.h: add in_grab field.
315 * gtk/gtktreeview.c (gtk_tree_view_button_press): only save press
316 to possibly begin a drag when there's no grab pending,
317 (gtk_tree_view_grab_notify): toggle in_grab field.
319 2006-07-18 Kristian Rietveld <kris@imendio.com>
321 * gtk/gtktreeview.c (gtk_tree_view_realize): use MAX
322 priv->width, alloc.width when allocating the bin_window,
323 (gtk_tree_view_bin_expose): don't overrun bin_window when drawing
326 2006-07-17 Richard Hult <richard@imendio.com>
328 * gtk/gtkdnd-quartz.c: (gtk_drag_begin_internal): Set an empty
329 NSImage if there is none, covers the cases where applications try
330 to set a pixmap which is not supported by the quartz backend.
332 2006-07-17 Richard Hult <richard@imendio.com>
334 * gdk/quartz/gdkevents-quartz.c: (create_key_event):
335 * gdk/quartz/gdkkeys-quartz.c: (_gdk_quartz_key_event_type),
336 (_gdk_quartz_key_is_modifier):
337 * gdk/quartz/gdkprivate-quartz.h: Fill in string, length and
338 is_modifier for key events. Map some more keys into gdk keyvals.
340 2006-07-17 Matthias Clasen <mclasen@redhat.com>
342 * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Don't undo
343 reordering if we haven't been reordering. (#346836, Ed Catmur)
345 2006-07-17 Richard Hult <richard@imendio.com>
347 * gdk/quartz/gdkkeys-quartz.c: Add escape to the list of special
348 keys, to get the escape key working.
350 2006-07-17 Richard Hult <richard@imendio.com>
352 * gdk/quartz/gdkdisplay-quartz.c (gdk_display_open): Initialize
355 2006-07-17 Kristian Rietveld <kris@imendio.com>
357 * gtk/gtktreeview.c (gtk_tree_view_build_tree): check if the iter
358 still has children after running the test-expand-row func,
359 (gtk_tree_view_real_expand_row): ditto. (#302127, Billy Biggs).
361 2006-07-17 Michael Natterer <mitch@imendio.com>
363 * gtk/gtkcalendar.c (calendar_timer): use 5 * gtk-timeout-repeat,
364 just as many other widgets. Makes the calendar arrow buttons
365 usable for quick month/year skipping (#142582).
367 2006-07-17 Richard Hult <richard@imendio.com>
369 * gdk/quartz/gdkwindow-quartz.c:
370 (_gdk_windowing_window_destroy_foreign): Fix comment.
371 (gdk_window_set_title): Surround by release pool macros.
372 (gdk_window_get_type_hint): Fix return value.
373 (gdk_window_get_frame_extents): Implement.
374 (gdk_window_iconify): Use the release pool macros.
375 (gdk_window_deiconify): Likewise.
376 (_gdk_windowing_get_pointer): Implement.
377 (gdk_window_get_deskrelative_origin, gdk_window_get_root_origin):
380 * gdk/quartz/gdkevents-quartz.c (create_crossing_event)
381 (create_scroll_event, convert_window_coordinates_to_root):
382 Set coordinates and root coordinates for crossing and scroll
385 * gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display):
386 Map some more cursors.
388 2006-07-17 Matthias Clasen <mclasen@redhat.com>
390 * gdk/gdkwindow.c (gdk_window_get_pointer): Add some more
391 detail to the docs. (#311399, Nikos Kouremenos)
393 * gtk/gtkentrycompletion.c (gtk_entry_completion_set_match_func):
394 * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_set_text_column):
395 Fix typos in the docs.
397 2006-07-16 Matthias Clasen <mclasen@redhat.com>
399 * gtk/gtkassistant.c: Some small documentation
400 fixups. (#347711, Guillaume Cottenceau)
402 * gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark
403 the text of the location label as translatable.
405 * gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in
406 the docs. (#347211, Kouhei Sutou)
408 * configure.in: Make the test for the sync extension
409 more robust. (#347315, Tommi Komulainen)
411 2006-07-13 Michael Emmel <mike.emmel@gmail.com>
413 * gdk/directfb/gdkdrawable-directfb.c
414 Remove +1 in fill and draw rect this may be wrong.
415 Commented out update calls left for reference the should not be needed.
416 Comment out subsurface for cairo remove when proved its not needed
417 * gdk/directfb/gdkkeys-directfb.c
418 Allow multiple calls and return if initalized
419 * gdk/directfb/gdkmain-directfb.c
420 Make sure string is malloced since its freed by apps
421 * gdk/directfb/gdkprivate-directfb.c
422 Added back pointer to window for paintable impl
423 * gdk/directfb/gdkvisual-directfb.c
424 Fix for Bug 346733 make sure visual list is populated
425 * gdk/directfb/gdkwindow-directfb.c
426 Finally removed uneeded pixmap buffering now implements GdkPainter
428 2006-07-11 Emmanuele Bassi <ebassi@gnome.org>
430 * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_show_numbers),
431 (gtk_recent_chooser_get_show_numbers): Check if the chooser
432 implementation supports the "show-number" property and use a
433 meaningful warning in case it doesn't; tell developers not to
436 2006-07-10 Matthias Clasen <mclasen@redhat.com>
440 * gtk/gtkprintbackend.c:
441 * gtk/gtkprintoperation-unix.c:
442 * gtk/gtkscrolledwindow.c:
443 * gtk/gtktoolbar.c: Fix some typos with inline property
444 docs. (#347065, John Finlay)
446 * gtk/gtkfilechooserbutton.c: Fix some memory handling
447 issues. (#347043, Chris Wilson)
449 2006-07-10 Emmanuele Bassi <ebassi@gnome.org>
451 * gtk/gtkrecentchooserdefault.c (scan_for_uri_cb): Do not
452 leak the URI returned by the model; select the row when
453 calling gtk_recent_chooser_set_current_uri(). (patch by
456 2006-07-10 Matthias Clasen <mclasen@redhat.com>
458 * gtk/gtkpapersize.c (gtk_paper_size_is_equal): Fix a
459 typo in the docs. (#347041, Kouhei Sutou)
461 * gtk/gtkprintcontext.c (gtk_print_context_get_height): Fix
462 a typo in the docs. (#347032, Kouhei Sutou)
464 * gtk/gtkassistant.c (gtk_assistant_focus): Don't assume
465 that priv->current_page is non-NULL. (#347048, Guillaume
468 * gtk/gtk.symbols: Add some missing deprecation guards.
470 * gdk/directfb/gdkwindow-directfb.c: Don't confuse gtk-doc.
472 2006-07-10 Richard Hult <richard@imendio.com>
474 * gdk/quartz/gdkpixmap-quartz.c: (gdk_bitmap_create_from_data):
475 Account for alignment when reading xbm data. (#346721, patch
478 2006-07-09 Richard Hult <richard@imendio.com>
480 * gdk/quartz/gdkgeometry-quartz.c:
481 * gdk/quartz/gdkmain-quartz.c:
482 * gdk/quartz/gdkpixmap-quartz.c:
483 * gdk/quartz/gdkwindow-quartz.c:
484 * gtk/gtkclipboard-quartz.c: Implement some more stubs for pygtk,
487 2006-07-09 Richard Hult <richard@imendio.com>
489 * gdk/quartz/gdkwindow-quartz.c (gdk_window_new): Release the pool
491 (move_resize_window_internal): Surround by alloc/release pool.
492 Patch from Brian Tarricone, fixes bug #347018.
494 2006-07-08 Matthias Clasen <mclasen@redhat.com>
496 * gtk/gtkfilechooserbutton.c (update_label_and_image): Don't
497 leak an empty list. (#346970, Chris Wilson)
499 2006-07-08 Behdad Esfahbod <behdad@gnome.org>
501 * gdk/gdkpango.c (layout_iter_get_line_clip_region),
502 (gdk_pango_layout_line_get_clip_region),
503 (gdk_pango_layout_get_clip_region): Fix quadratic implementation of
504 gdk_pango_layout_get_clip_region into a linear one. (#337910, patch
507 2006-07-07 Richard Hult <richard@imendio.com>
509 * gdk/quartz/gdkevents-quartz.c: Generate a grab broken event when
510 appropriate. Fixes bug #346603, patch from Dave Vasilevsky.
512 * gdk/quartz/gdkevents-quartz.c:
513 * gdk/quartz/gdkkeys-quartz.c:
514 * gdk/quartz/gdkprivate-quartz.c: Another patch from Dave Vasilevsky,
515 fixes bug #346605. Makes modifier key events being sent properly.
517 2006-07-07 Michael Natterer <mitch@imendio.com>
520 * gtk/gtksettings.c: fix canonicalization of property names which
521 was broken after recent constant string cleanup.
523 2006-07-07 Matthias Clasen <mclasen@redhat.com>
525 * gtk/gtkicontheme.c: Small memory savings.
527 2006-07-06 Matthias Clasen <mclasen@redhat.com>
529 * gtk/gtkfilechooserbutton.c: Get the display name
530 for the home directory. (#346498, Dennis Cranston,
531 patch by Andreas Köhler)
533 2006-07-06 Behdad Esfahbod <behdad@gnome.org>
535 * configure.in: Drop required Pango version down to 1.12.0. (#346597)
537 2006-07-06 John (J5) Palmieri <johnp@redhat.com>
539 * modules/printbackends/cups/gtkprintbackendcups.c:
540 (cups_request_printer_list_cb): Get the name of the first printer
541 in a class to use when requesting a PPD
542 (cups_request_ppd_cb, cups_request_ppd): Fix the parameters of
543 the "details-acquired" signal emittion
544 (cups_request_ppd): get the ppd name from the cups printer
546 * modules/printbackends/cups/gtkprintercups.c (gtk_printer_cups_get_ppd_name):
547 New method for getting the name of the ppd we should request
549 2006-07-06 Michael Natterer <mitch@imendio.com>
551 * gtk/gtkrc.c: added a bunch of utility functions to copy
552 icon_factories and color_hashes between GtkRcStyles and make sure
553 that newly created, duplicated and merged styles have access to
554 all icon_factories and color_hashes they need. Fixes bug #346668.
556 2006-07-06 Matthias Clasen <mclasen@redhat.com>
558 * gtk/*.c: Improve the -/_ consistency in signal and
559 property names, reducing the amount of near-duplicate strings.
561 2006-07-05 Matthias Clasen <mclasen@redhat.com>
563 * gtk/gtktreeview.c (gtk_tree_view_set_enable_tree_lines): Don't
564 leak dash_list. (#346639, Christian Persch)
566 * gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above)
567 (gtk_window_set_keep_below): Fix some assignments involving
568 booleans. (#346467, Christian Persch)
570 2006-07-03 Matthias Clasen <mclasen@redhat.com>
572 * gtk/gtkgamma.c: Use serialized pixbufs instead of xpms.
574 2006-07-03 Runa Bhattacharjee <runabh@gmail.com>
576 * configure.in: Added Bengali India (bn_IN) to ALL_LINGUAS.
578 2006-06-26 Michael Emmel <mike.emmel@gmail.com>
580 * gdk/directfb/gdkdirectfb.h: changed ifdef to compile with api introduced
582 * gdk/directfb/gdkwindow-directfb.c: changed ifdef to 0.9.25
584 2006-07-03 Matthias Clasen <mclasen@redhat.com>
586 * configure.in: Bump version
588 2006-07-02 Matthias Clasen <mclasen@redhat.com>
590 * === Released 2.10.0 ===
592 * gtk/gtkmenubar.c (window_key_press_handler): Treat
593 "" like NULL when parsing the menu-bar-accel setting.
594 * gtk/gtkmenu.c (gtk_menu_key_press): Here too.
595 (#346420, Yevgen Muntyan)
597 * configure.in: Require cairo 1.2 and GLib 2.12,
600 2006-06-30 Matthias Clasen <mclasen@redhat.com>
602 * gtk/gtknotebook.c (gtk_notebook_tab_space): Remove
603 redundant assignments to page, which may cause NULL
604 dereferences. (#346334, Dave Vasilevsky)
606 * demos/gtk-demo/editable_cells.c: Portability fix.
607 (#346375, Thomas Klausner)
609 * NEWS, README.in, INSTALL.in: Updates
611 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize):
612 Don't leak default_sort_data. (#346341, Christian Weiske)
614 * gtk/Makefile.am: Make sure all win32-specific printing
615 sources are distributed. (#346312, Erik van Pienbroek)
617 * gtk/gtkprinter.c (gtk_enumerate_printers): Always call the
618 destroy notify. (#346027, Christian Persch)
620 * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
621 Documentation updates.
623 * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
624 Don't leak the ranges. (#346237, Carolyn MacLeod)
626 * gtk/gtkprintjob.[hc]: Add a PREVIEW capability to hide
627 the preview button. (#346113, Christian Persch)
629 * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
630 Hide the preview button depending on the capability.
632 * gtk/gtkprintoperation-unix.c: Set the PREVIEW capability.
634 2006-06-29 Bill Skaggs <weskaggs@primate.ucdavis.edu>
636 * gtk/gtkprogress.h: revert last change by Matthias -- it broke the
637 build of gtkprogressbar.
639 2006-06-29 Matthias Clasen <mclasen@redhat.com>
641 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Update the
642 size of the drawable for the root window when the screen size
643 changes. (#346102, Sven Herzberg)
645 2006-06-29 Matthias Clasen <mclasen@redhat.com>
649 * gtk/gtkprintoperation.c: Clarify docs for the allow-async
650 property. (#346108, Christian Persch)
652 2006-06-28 Matthias Clasen <mclasen@redhat.com>
655 * gtk/gtkprintunixdialog.c:
656 * gtk/gtkprintoperationpreview.c:
657 * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
658 * gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
659 * gtk/gtkentry.c (gtk_entry_new):
660 * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
661 * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
664 * gtk/gtkaspectframe.h:
665 * gtk/gtkaboutdialog.c:
667 * gtk/gtkinputdialog.c:
668 * gtk/gtk.symbols: Remove unnecessary includes.
670 * gtk/gtkprogress.[hc]:
671 * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
672 remove unnecessary includes.
674 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Only select the
675 XKB event details we actually care about. (#346079, Ryan Lortie)
677 2006-06-27 Kristian Rietveld <kris@gtk.org>
679 * gtk/gtktreeview.c (gtk_tree_view_set_model): cancel the
680 expand collapse timeout when unsetting the model (Fixes #327164,
681 reported by Daichi Kawahata).
683 2006-06-26 Michael Emmel <mike.emmel@gmail.com>
685 * gdk/directfb/gdkdirectfb.h: added ifdef to compile with directfb 0.9.24
686 * gdk/directfb/gdkwindow-directfb.c: ifdef depend on directfb cvs
688 2006-06-26 Kristian Rietveld <kris@gtk.org>
690 Make the insert and set functions somewhat more convenient.
691 (#343841, David Necas).
693 * gtk/gtkliststore.c (gtk_list_store_insert_with_values): allow
695 (gtk_list_store_insert_with_valuesv): likewise.
697 * gtk/gtktreestore.c (gtk_tree_store_insert_with_values): ditto,
698 (gtk_tree_store_insert_with_valuesv): likewise.
700 2006-06-26 Michael Natterer <mitch@imendio.com>
702 * gtk/gtktextview.c (gtk_text_view_size_allocate): revert "keep
703 cursor visible when size changes" since it breaks things (#344874).
705 2006-06-26 Matthias Clasen <mclasen@redhat.com>
707 * gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid
708 a refcounting leak in the python bindings. (#344876, Phil Dumont)
710 2006-06-25 Matthias Clasen <mclasen@redhat.com>
712 * gtk/gtkprinter.c (gtk_enumerate_printers): Make
713 this work when the enumeration is stopped early. (#344074,
716 2006-06-24 Matthias Clasen <mclasen@redhat.com>
718 * gtk/gtkcombobox.c: Update the height as well
719 when changing fonts. (#321393, Billy Biggs)
721 2006-06-23 Christian Rose <menthos@menthos.com>
723 * configure.in: Added "ur" to ALL_LINGUAS.
725 2006-06-22 Matthias Clasen <mclasen@redhat.com>
727 Fix #345663, reported by Kazuki Iwamoto
729 * gtk/gtkaction.c: Include gtkiconfactory.h
731 * gtk/gtkactiongroup.c: Include gtkicontheme.h
733 2006-06-22 Michael Natterer <mitch@imendio.com>
735 * gtk/gtktextview.c (gtk_text_view_size_allocate): keep the cursor
736 visible when the size changes. Fixes bug #344874.
738 2006-06-22 Matthias Clasen <mclasen@redhat.com>
740 * gtk/gtkpintjob.h: Add a note about updating the registration.
741 * gtk/gtkprintjob.c (gtk_print_capabilites_get_type): Add missing
744 * modules/printbackends/cups/gtkprintbackendcups.c: Remove
745 an unused variable and make it compile with Cups 1.1. (#345644,
748 2006-06-21 Matthias Clasen <mclasen@redhat.com>
750 * configure.in: Bump version
752 * === Released 2.9.4 ===
754 * modules/printbackends/file/gtkprintbackendfile.c:
755 Apply a patch by Christian Persch to support PostScript and PDF
758 * gtk/gtkprinteroptionwidget.c (radio_changed_cb): Don't free
761 2006-06-21 Matthias Clasen <mclasen@redhat.com>
763 Apply a patch by John Palmieri to use buffered io using
764 GIOChannels, clean up error handling and support Cups 1.2
765 api in the printing code.
768 * configure.in: Detect Cups 1.2
771 * gtk/gtkmain.c: Add a printing debug key.
773 * gtk/gtkprintbackend.[hc]: Remove the GError parameter from
774 gtk_print_backend_print_stream, and take a GIOChannel instead
777 * gtk/gtkprinter-private.h:
778 * gtk/gtkprinter.c: Replace the fd parameter of
779 _gtk_printer_create_cairo_surface by a GIOChannel.
781 * gtk/gtkprintjob.[hc]: Remove the GError parameter from
782 gtk_print_job_send and make it return void.
784 * gtk/gtkprintoperation-unix.c:
785 * gtk/gtkprintjob.c: Adjust callers, add some debugging support.
787 * modules/printbackends/Makefile.am: Fix DIST_SUBDIRS.
789 * modules/printbackends/cups/Makefile.am:
790 * modules/printbackends/lpr/Makefile.am: Add debug CFLAGS.
792 * modules/printbackends/cups/gtkcupsutils.[hc]:
793 * modules/printbackends/cups/gtkprintbackendcups.c:
794 * modules/printbackends/file/gtkprintbackendfile.c:
795 * modules/printbackends/lpr/gtkprintbackendfile.c: Adapt to
796 the GIOChannel and GError changes, add debug output
798 2006-06-21 Matthias Clasen <mclasen@redhat.com>
800 * gtk/gtkprinter.c (gtk_enumerate_printers): Remove an
805 * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration
806 of the grid-lines property (#345456, Murray Cumming)
808 2006-06-21 Kristian Rietveld <kris@imendio.com>
810 Allocate space for the grid lines when they are enabled.
812 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): make sure the cell
813 area does not overlap with the grid lines, also draw the line for
814 "the next cell" in the last loop iteration, make sure the cursor falls
815 in between the grid lines,
816 (validate_row): request extra space for the grid lines.
818 2006-06-21 Matthias Clasen <mclasen@redhat.com>
820 * gtk/gtkprintbackend.h:
821 * gtk/gtkprintbackend.c (gtk_print_backend_print_stream): Add an
824 * modules/printbackends/file/gtkprintbackendfile.c
825 (gtk_print_backend_file_print_stream):
826 * modules/printbackends/lpr/gtkprintbackendlpr.c
827 (gtk_print_backend_lpr_print_stream):
828 * modules/printbackends/cups/gtkprintbackendcups.c
829 (gtk_print_backend_cups_print_stream):
830 * gtk/gtkprintjob.c (gtk_print_job_send): Update all callers and
833 * modules/printbackends/cups/gtkprintbackendcups.c: Remove the
834 GError parameter from cups_request_execute(), and various other
837 2006-06-20 Matthias Clasen <mclasen@redhat.com>
839 * gtk/gtkprintjob.c (gtk_print_job_class_init): Make
840 track-print-status a property.
842 2006-06-20 Murray Cumming <murrayc@murrayc.com>
844 * gtk/gtkprintoperation.c: (gtk_print_operation_class_init):
845 Correctly register the done signal - it sends an enum, not an int.
847 2006-06-20 Christian Persch <chpe@cvs.gnome.org>
851 * modules/printbackends/Makefile.am
852 A modules/printbackends/file/.cvsignore
853 A modules/printbackends/file/Makefile.am
854 A modules/printbackends/file/gtkprintbackendfile.c
855 A modules/printbackends/file/gtkprintbackendfile.h
856 R modules/printbackends/pdf/*:
857 Rename "pdf" backend to "file" backend. Step 2 from bug #339592.
859 2006-06-20 Christian Persch <chpe@cvs.gnome.org>
861 * gtk/gtkprinteroptionwidget.c: (filesave_changed_cb),
862 (alternative_set), (construct_widgets): Convert input to filename
863 encoding and construct an URI from that.
864 * gtk/gtkprintsettings.h: Add OUTPUT_FILE_FORMAT and OUTPUT_URI keys.
865 * modules/printbackends/pdf/gtkprintbackendpdf.c: Use those defines.
866 Step 1 from bug #339592.
868 2006-06-20 Matthias Clasen <mclasen@redhat.com>
870 * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add to docs.
872 Fix handling of stock items without icons in action-based
873 ui. (#342458, Callum McKenzie)
875 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Set
876 the stock id even if there is no icon for it.
878 * gtk/gtkaction.c (connect_proxy):
879 * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
880 construct a stock icon if the stock item has an icon.
882 2006-06-20 Matthias Clasen <mclasen@redhat.com>
884 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better
888 * gtk/gtkprintsettings.h:
889 * gtk/gtkprintsettings.c: Remove unused print-to-file setting.
891 2006-06-20 Carlos Garnacho <carlosg@gnome.org>
893 * gtk/gtknotebook.c (gtk_notebook_stop_reorder): unset the pressed
895 (gtk_notebook_grab_notify): stop reorder when the widget becomes
896 shadowed. Fixes bug #335873
898 2006-06-18 Christian Persch <chpe@cvs.gnome.org>
900 * gtk/gtkdialog.c: (gtk_dialog_class_init): Set default action area
901 spacing to HIG-compliant 6px. Bug #345106, follow-up from bug #163850.
903 2006-06-20 Matthias Clasen <mclasen@redhat.com>
905 * gtk/gtkiconview.c (gtk_icon_view_enable_model_drag_dest):
906 Small doc fix. (#345176, Claudio Saavedra)
908 * gdk/x11/gdkwindow-x11.c (gdk_window_set_functions): Update
909 the docs. (#345194, Yevgen Muntyan)
911 2006-06-19 Matthias Clasen <mclasen@redhat.com>
913 * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Don't leak
915 (gtk_tree_view_set_column_drag_info): Don't crash if the
916 column_drop_func says always no. (#344850, Christian Weiske)
918 Make transparent tray icons work. (#320034, based on a
919 patch by Dan Winship)
921 * gtk/gtktrayicon-x11.c (gtk_tray_icon_init): Make trayicons
922 app-paintable and non-double buffered.
924 * gtk/gtkrc.c (_gtk_rc_init): Give tray icons a parent-relative
925 background in the default style.
927 2006-06-19 Matthias Clasen <mclasen@redhat.com>
929 * gtk/updateiconcache.c: Marks strings for translation. (#314278,
932 * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix): Don't
933 call g_str_has_prefix on a NULL strung. (#344897, Tommi Komulainen)
935 * gtk/gtkfilechooserdefault.c:
936 Avoid a near-duplicate string and add some
937 translator comments. (#345320, #345321, Hendrik Richter)
939 2006-06-19 Federico Mena Quintero <federico@novell.com>
941 * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder)
942 (gtk_file_chooser_get_current_folder_uri): Clarify the use of
943 these functions, to avoid the case where a chooser is in
944 SELECT_FOLDER mode and people mistakenly use _get_current_folder()
945 to get the selection: they should use _get_filename() instead.
947 2006-06-19 Alexander Larsson <alexl@redhat.com>
951 Add gtk_label_set_line_wrap_mode, gtk_label_get_line_wrap_mode, and
952 a wrap-mode property that lets you set the PangoWrapMode.
954 2006-06-19 Matthias Clasen <mclasen@redhat.com>
956 * gtk/gtk.symbols: Add new functions
959 * gtk/gtkprinter.c (gtk_enumerate_printers): New function
960 to list all printers (#344074, Felipe Heidrich)
962 * gtk/gtkprinter-private.h:
963 * gtk/gtkprinter.c (_gtk_printer_get_options)
965 * gtk/gtkprintbackend.h: Add a capabilities argument to the
966 printer_get_options method and to the _gtk_printer_get_options
969 * modules/printbackends/lpr/gtkprintbackendlpr.c
970 (lpr_printer_get_options):
971 * modules/printbackends/pdf/gtkprintbackendpdf.c
972 (pdf_printer_get_options):
973 * modules/printbackends/cups/gtkprintbackendcups.c
974 (cups_printer_get_options):
975 * gtk/gtkprintunixdialog.c (selected_printer_changed): Adjust
976 callers and implementations.
978 * gtk/gtkprintjob.h: Add a GENERATE_PS capability.
979 * gtk/gtkprintunixdialog.c (is_printer_active): And use it here.
981 2006-06-18 Matthias Clasen <mclasen@redhat.com>
983 * tests/testnouiprint.c (main): Don't open a display connection.
985 * gtk/gtkprintbackend.c (gtk_print_backend_load_modules): Make
986 this work without a display connection. (339702, Alexander Larsson)
988 * gtk/gtkwindow.c (gtk_window_move): Small doc addition.
989 (#345275, Behdad Esfahbod)
991 2006-06-17 Matthias Clasen <mclasen@redhat.com>
993 * modules/printbackends/pdf/gtkprintbackendpdf.c:
994 * modules/printbackends/lpr/gtkprintbackendlpr.c: Fix a typo:
995 s/Extention/Extension/.
997 * gtk/gtkprintunixdialog.c: Clean up the handling of
998 printer-specific options. There is just one extension point on the
999 main tab now, and all options in the GtkPrintDialogExtension
1000 group are put there.
1002 * gtk/gtkprinteroption.h:
1003 * gtk/gtkprinteroption.c: Add GTK_PRINTER_OPTION_TYPE_ALTERNATIVE
1004 which is semantically the same as PICKONE, but is intended to
1005 show all options all the time.
1007 * gtk/gtkprinteroptionwidget.c: Implement ALTERNATIVE as radio
1010 2006-06-16 Matthias Clasen <mclasen@redhat.com>
1012 * modules/printbackends/cups/gtkprintbackendcups.c:
1013 * modules/printbackends/lpr/gtkprintbackendlpr.c: Use a stock icon
1016 * gtk/gtkprintunixdialog.c (add_option_to_table): Don't grow
1019 * gtk/gtkprintbackend.h: Add a GtkPrintSettings parameter to the
1020 printer_create_cairo_surface method.
1022 * modules/printbackends/pdf/gtkprintbackendpdf.c:
1023 * modules/printbackends/cups/gtkprintbackendcups.c:
1024 * modules/printbackends/lpr/gtkprintbackendlpr.c:
1025 * gtk/gtkprinter.c (_gtk_printer_create_cairo_surface):
1026 * gtk/gtkprinter-private.h:
1027 * gtk/gtkprintjob.c (gtk_print_job_get_surface): Adapt all users.
1029 * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
1030 leak match data. (#345107, Christian Weiske)
1032 * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict
1033 label out of the button box. (#339456, Christian Persch)
1035 * gtk/gtksizegroup.c (compute_dimension): Ignore unmapped widgets
1036 when ignore_hidden is TRUE. (#344707, Christian Persch)
1038 * configure.in: Require cvs glib.
1040 * gtk/gtkprintoperation-unix.c:
1041 (_gtk_print_operation_platform_backend_create_preview_surface):
1042 Don't use a temporary directory for preview files, since it
1043 is not clear who cleans it up. Instead, use g_mkstemp() directly
1044 to create a temp pdf file, and make the preview app responsible
1047 * gtk/gtkprintbackend.c: Move the registration of the
1048 gtk-print-preview-command setting from gtkprintbackend.c to
1049 gtkprintoperation-unix.c, to make sure it is registered before
1050 the first use. Also, document the two settings.
1052 * tests/print-editor.c: Add a "Preview" menu item.
1054 * gtk/gtkprintoperation-unix.c (handle_print_response): When starting
1055 a preview from the print dialog, set the action to PREVIEW.
1057 * gtk/gtkprintoperation.c: Cosmetic changes.
1059 2006-06-16 Matthias Clasens <mclasen@redhat.com>
1061 * gtk/gtkprintoperation-unix.c: Mark the preview filename
1062 as translatable (#345093, Christian Persch)
1064 Fri Jun 16 11:49:53 2006 Tim Janik <timj@imendio.com>
1066 * fixed #337882 by applying patches from Tommi Komulainen:
1068 * gtk/gtkprogressbar.c:
1069 (gtk_progress_bar_paint_activity):
1070 (gtk_progress_bar_get_activity): Move activity bar offset and size
1071 calculations to separate function.
1072 (gtk_progress_bar_paint_text): Allow caller to specify offset for the
1073 prelight part in addition to width.
1074 (gtk_progress_bar_paint): Paint the text also in activity mode, #337882.
1076 * gtk/gtkprogressbar.c: (gtk_progress_bar_paint_text): Paint the
1077 prelighted text on top of the normal rather than side by side, to
1078 simplify painting text in activity mode.
1080 2006-06-16 Matthias Clasen <mclasen@redhat.com>
1082 * modules/printbackends/cups/gtkprintbackendcups.c: Include
1083 gtkprinter-private.h (#345038, Christian Persch)
1085 2006-06-15 Matthias Clasen <mclasen@redhat.com>
1087 * modules/printbackends/pdf/gtkprintbackendpdf.c: Use the
1090 * gtk/gtkprintoperation-unix.c: Set the GENERATE_PDF capability
1091 when creating a print dialog. (noted by Yevgen Muntyan)
1093 2006-06-15 Carlos Garnacho <carlosg@gnome.org>
1095 * gtk/gtknotebook.c (gtk_notebook_motion_notify): use
1096 gdk_window_get_pointer() to get pointer coordinates, but limit its
1097 calls to a maximum of 45 times per second for not being too
1098 CPU/network abusive. stop drag operation if (event->state &
1099 GDK_BUTTON1_MASK) is FALSE to prevent tabs from "adhering" to the
1100 pointer. Fixes bug #341571
1101 (gtk_notebook_calculate_tabs_allocation), (gtk_notebook_button_press):
1102 get rid of the "tab jumps to pointer" sensation when beginning a drag
1103 by using the pointer offset in the tab when the drag begins as an
1105 (gtk_notebook_redraw_tabs_union): remove, it wasn't worth the little
1106 performance gain and could draw artifacts under some circumstances.
1107 (gtk_notebook_drag_end): do not reparent the detached tab label until
1108 the animation has ended.
1110 2006-06-15 Bastien Nocera <hadess@hadess.net>
1112 * configure.in: Update the Cairo requirements (#345008)
1114 2006-06-15 Matthias Clasen <mclasen@redhat.com>
1116 * gtk/gtkprintoperationpreview.c
1117 (gtk_print_operation_preview_base_init): Fix errors in the
1118 signal definitions. (#344891, Marko Anastasov)
1120 2006-06-14 Michael Emmel <mike.emmel@gmail.com>
1122 * configure.in: updated mininum dfb to 0.9.24
1123 * gdk/directfb/gdkdirectfb.h: added more directfb wrapper functions
1124 * gdk/directfb/gdkdrawable-directfb.c: wrapper functions and patch from
1125 Claudio Ciccani <klan@users.sf.net> to use a subsurface for cairo
1126 * gdk/directfb/gdkvisual-directfb.c: changed initalization sequence
1127 * gdk/directfb/gdkwindow-directfb.c: corrected reparent for toplevels
1128 * gdk/directfb/gdkdisplay-directfb.c: changed initilization sequence
1129 to a more rational order
1131 2006-06-14 Federico Mena Quintero <federico@novell.com>
1133 * perf/gtkwidgetprofiler.c (gtk_widget_profiler_profile_expose):
1134 New function; it lets us time the expose sequence of a widget.
1135 (create_widget): New helper function.
1136 (map_widget): New helper function.
1137 (profile_boot): Use create_widget() instead of doing it by hand.
1138 (profile_map_expose): Use map_widget() instead of doing it by hand.
1140 * perf/main.c (main): Call gtk_widget_profiler_profile_expose() as well.
1142 2006-06-14 Matthias Clasen <mclasen@redhat.com>
1144 * gtk/gtkpagesetupunixdialog.c: Use GKeyFile for the custom
1145 filename storage. (#344867, Christian Persch)
1147 * gtk/gtkselection.c: Call init_atoms before using atoms
1148 in several functions. (#344743, John Finlay)
1150 * gtk/gtktreeview.c (gtk_tree_view_set_search_position+_func):
1151 Allow NULL to reset to default. (#344838, John Finlay)
1153 * gtk/gtkprintjob.h: Collect booleans into a bitfield
1154 (#344765, Christian Persch)
1156 2006-06-13 Matthias Clasen <mclasen@redhat.com>
1158 * configure.in: Bump version
1160 2006-06-12 Matthias Clasen <mclasen@redhat.com>
1162 * === Released 2.9.3 ===
1166 * gtk/gtk.symbols: Add gtk_tree_view_grid_lines_get_type.
1168 * configure.in: Set interface age to 0
1170 2006-06-12 Kristian Rietveld <kris@imendio.com>
1172 Introduce grid and tree lines in GtkTreeView. (#106406,
1175 * gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
1177 * gtk/gtkenums.h: add GtkTreeViewGridLines.
1179 * gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
1180 (gtk_tree_view_get_grid_lines),
1181 (gtk_tree_view_set_enable_tree_lines),
1182 (gtk_tree_view_get_enable_tree_lines): new API,
1183 (gtk_tree_view_class_init): new properties,
1184 (gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
1185 (gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
1186 (gtk_tree_view_bin_expose): implement.
1188 * gtk/gtk.symbols: update.
1190 2006-06-12 Matthias Clasen <mclasen@redhat.com>
1192 * gtk/gtkprintunixdialog.c (is_printer_active): Use
1193 gtk_printer_accepts_ps here.
1195 * modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init):
1196 Mark the virtual "Print to PDF" printer as not accepting PS.
1200 * gtk/gtkprinter.c: Add two new properties accepts-pdf and
1201 accepts-ps (with getters) to allow learning supported formats.
1203 * gtk/gtkprintjob.h: Add a GTK_PRINT_CAPABILITY_GENERATE_PDF
1206 * gtk/gtkprintunixdialog.c: Use it here to hide "Print to PDF"
1207 from the printer list. (#339592, Christian Persch)
1209 * gtk/gtkfilechooserdefault.c: Add support for pasting
1210 filenames into the filechooser. (#153212, Bastian Nocera)
1212 2006-06-12 Kristian Rietveld <kris@gtk.org>
1214 * gtk/gtktreemodelfilter.[ch]
1215 (gtk_tree_model_filter_convert_child_iter_to_iter),
1216 (gtk_tree_model_filter_convert_child_path_to_path): report status
1217 in return value instead of spewing assertions. (#335729, Yevgen
1220 2006-06-12 Matthias Clasen <mclasen@redhat.com>
1222 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize):
1223 Clean up user data. (#344624, Christian Weiske)
1227 * gtk/gtkprintjob.c:
1228 * gtk/gtkprintbackend.c:
1229 * gtk/gtkpagesetupunixdialog.c:
1230 * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
1232 2006-06-11 Matthias Clasen <mclasen@redhat.com>
1234 * gtk/gtkassistant.c: Add an accessible implementation in
1235 order to make the buttons visible to a11y tools. (pointed out
1236 by David Malcolm, #343945)
1238 * gtk/gtkprintoperation-win32.c: Store scale as a percentage.
1239 (#344560, Christian Persch)
1241 * gtk/gtkprogressbar.h: Add a dirty flag to GtkProgressBar.n/
1242 * gtk/gtkprogressbar.c: Defer updating of the offscreen
1243 pixmap until expose. (#344543, Chris Wilson)
1245 2006-06-11 Emmanuele Bassi <ebassi@gnome.org>
1247 * gtk/gtkrecentchooserdefault.c
1248 (get_is_recent_filtered):
1249 * gtk/gtkrecentchoosermenu.c
1250 (get_is_recent_filtered):
1251 Do not leak the groups string vector. (#344607,
1254 2006-06-11 Tor Lillqvist <tml@novell.com>
1256 * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739,
1259 * gdk/win32/gdkproperty-win32.c (gdk_property_change): Convert \n
1260 to \r\n also when storing CF_UNICODETEXT (UTF-16) in the
1261 Clipboard. (#344496)
1263 2006-06-10 Matthias Clasen <mclasen@redhat.com>
1265 * gtk/gtkrecentchooserwidget.c
1266 (gtk_recent_chooser_widget_new_for_manager):
1267 * gtk/gtkrecentchoosermenu.c
1268 (gtk_recent_chooser_menu_new_for_manager):
1269 Allow NULL to mean the default manager. (#344530,
1272 * gtk/gtkprintoperation-unix.c (page_setup_data_free):
1273 Check if rdata->page_setup is set before unreffing it.
1274 (#344518, Christian Persch)
1276 * gtk/gtkprintoperation.h: Remove an extra comma. (#344528,
1279 * modules/printbackends/gtkprintbackendpdf.c
1280 (gtk_print_backend_pdf_print_stream): Use the passed in
1281 destroy notify. (#344513, Christian Persch)
1283 * configure.in: Require cairo 1.1.7
1285 * gtk/gtkprintoperation.c:
1286 * modules/printbackends/pdf/gtkprintbackendpdf.c: Use
1287 cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
1288 (#344512, Elijah Newren)
1290 * gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
1291 gdk work. (#344386, Masatake Yamamoto)
1293 * gtk/gtkprintoperation.c: Register create_custom_widget as
1294 an object-returning signal. (#344505, Marko Anastasov, patch
1295 by Christian Persch)
1297 * gtk/gtkmarshalers.list: Add the right marshaller.
1300 * gtk/gtkprintjob.[hc]: Register GtkPrintCapabilities as a
1301 flags type. (#344504, Marko Anastasov)
1303 2006-06-09 Benjamin Berg <benjamin@sipsolutions.net>
1305 * gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
1306 into account when placing submenus (#344290)
1308 2006-06-09 Michael Natterer <mitch@imendio.com>
1310 * gtk/gtkrange.c: added new style properties "trough-side-details"
1311 and "draw-trough-under-steppers" and fixed the "stepper-spacing"
1312 style property. Fixes bugs #342339 and #342249.
1314 "draw-trough-under-steppers", when set to FALSE, starts trough
1315 drawing next to the steppers instead of drawing the trough "below"
1316 (around) the steppers. If "stepper-spacing" is set to any value
1317 larger than zero, "draw-trough-under-steppers" is set to FALSE
1318 automatically to avoid rendering an area that looks clickable but
1321 (gtk_range_calc_layout): honor draw-trough-under-steppers.
1322 Don't reserve stepper-spacing on sides of the range that don't
1325 (gtk_range_expose): changed drawing accordingly. Implement
1326 "trough-side-details" which enables drawing of the upper and lower
1327 parts of the trough with different details. This is useful for
1328 theme engines which want to draw these parts differently.
1330 (coord_to_value): correctly take all rendering options into
1331 account. stepper-spacing > 0 caused jumping and otherwise
1332 strangely behaving ranges before.
1334 (other functions): changed accordingly.
1336 2006-06-09 Tor Lillqvist <tml@novell.com>
1338 * gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
1339 Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
1340 DeleteDC() on DCs acquired with CreateCompatibleDC() (for
1341 bitmaps). According to MSDN, this is the correct thing to do, even
1342 if always using DeleteDC() seems to have worked fine in
1343 practice. (#337491, Chris Wilson)
1345 2006-06-08 Matthias Clasen <mclasen@redhat.com>
1347 * tests/testprint.c: Update for api changes.
1349 * gtk/gtkprintoperation.c: Fix some copy-and-paste errors,
1350 and rename the pdf-target property to export-filename.
1352 * gtk/gtkfilechooserdefault.c: Turn off profiling code.
1354 * tests/print-editor.c: Update for api changes.
1356 * gtk/gtk.h: Include gtkprintoperationpreview.h
1358 * gtk/gtkprintoperationpreview.c (gtk_print_operation_preview_is_selected):
1359 Use g_return_val_if_fail (#344288, Kazuki Iwamoto)
1361 * gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here.
1363 * gtk/gtkprintunixdialog.c:
1364 * gtk/gtkprintoperation-unix.c:
1365 * gtk/gtkprintjob.c:
1366 * gtk/gtkprintbackend.c: Instead include it here.
1369 * gtk/gtkprintoperation.h:
1370 * gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
1372 2006-06-08 Matthias Clasen <mclasen@redhat.com>
1374 * gtk/gtkprintoperation.h (GtkPrintOperationResult): Get
1375 rid of GTK_PRINT_OPERATION_RESULT_PREVIEW.
1377 * gtk/gtkprintoperation-unix.c:
1378 * gtk/gtkprintoperation.c: Update all users.
1380 2006-06-08 Tor Lillqvist <tml@novell.com>
1382 * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1383 [WM_WINDOWPOSCHANGED] Replace identical code as in
1384 handle_configure_event() with call to that function.
1385 [WM_SIZING] Fix implementation of aspect ratio hints. (#344244)
1386 The hints are for the geometry of the client area, not of the
1387 window including decorations. Improve resizing behaviour in the
1388 presence of aspect hints, to be more in line with typical X window
1391 2006-06-08 Matthias Clasen <mclasen@redhat.com>
1393 * gtk/gtktoolbutton.c (gtk_tool_button_style_set): Give
1394 GtkToolButton the same treatment.
1396 * gtk/gtkbutton.c (gtk_button_style_set): Don't call
1397 construct_child here, since some apps make assumptions
1398 about the lifecycle of the constructed label.
1400 2006-06-08 Alexander Larsson <alexl@redhat.com>
1402 * gtk/gtkprintoperation-unix.c (finish_print):
1403 Fix up unix fallout from previous change.
1405 2006-06-08 Alexander Larsson <alexl@redhat.com>
1407 * gtk/gtkprintoperation-win32.c:
1408 Update windows to build with new APIs and first cut
1411 * gtk/gtkprintoperation-private.h:
1412 * gtk/gtkprintoperation-unix.c:
1413 * gtk/gtkprintoperation.c
1414 Various updates needed when making the preview work on win32.
1416 * tests/print-editor.c:
1417 Print, don't preview.
1419 2006-06-07 Matthias Clasen <mclasen@redhat.com>
1421 * gtk/gtkentry.c (popup_targets_received): Make Delete
1422 menuitem insensitive if entry is not editable. (#344232,
1425 * gtk/gtkprintoperation.c: Add some docs.
1427 * gtk/gtk.symbols: Add gtk_print_operation_set_allow_async.
1429 * gtk/gtkprintoperation.h: Remove gtk_print_operation_run_async.
1431 * tests/testnotebookdnd.c: Update callers.
1433 * gtk/gtknotebook.h:
1434 * gtk/gtknotebook.c (gtk_notebook_set_window_creation_hook):
1435 Add a destroy notify for the callback data. (#344209,
1438 2006-06-07 Jürg Billeter <j@bitron.ch>
1440 * gtk/Makefile.am: Fix building gtkbuiltincache.h without system GTK+.
1442 2006-06-07 Alexander Larsson <alexl@redhat.com>
1445 * gtk/gtkprintoperation-private.h:
1446 * gtk/gtkprintoperation-unix.c:
1447 * gtk/gtkprintoperation.[ch]:
1449 Make async a setting instead of separate calls.
1450 Combine settings like show_dialog, show_preview and pdf_target into
1451 an action enum that you pass to gtk_print_dialog_run().
1453 * tests/print-editor.c:
1454 * tests/testnouiprint.c:
1455 * tests/testprint.c:
1456 * demos/gtk-demo/printing.c:
1459 2006-06-07 Bastien Nocera <hadess@hadess.net>
1461 * configure.in: Update the ATK requirements (#344148)
1463 2006-06-07 Matthias Clasen <mclasen@redhat.com>
1465 * modules/printbackends/cups/gtkprintercups.c
1466 (gtk_printer_cups_finalize): Fix a C99ism.
1467 (#344123, Jens Ganseuer)
1469 2006-06-06 Behdad Esfahbod <behdad@gnome.org>
1471 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Correct
1472 rounding of rect members. Improved docs. (#337603)
1474 2006-06-06 Matthias Clasen <mclasen@redhat.com>
1476 * gtk/gtkicontheme.c: Small optimization
1478 2006-06-05 Matthias Clasen <mclasen@redhat.com>
1480 * configure.in: Bump version
1482 * === Released 2.9.2 ===
1484 * configure.in: Set interface age to 0.
1488 * gtk/gtkprintoperationpreview.c: Include gtkalias.h
1490 * gtk/gtk.symbols: Add some forgotten new functions.
1492 2006-06-04 Matthias Clasen <mclasen@redhat.com>
1494 * gtk/gtknotebook.c (gtk_notebook_calculate_shown_tabs):
1495 (gtk_notebook_calc_tabs): Fix borderline cases in tab
1496 visibility calculation. (#168105, Carlos Garnacho Parro)
1498 * gdk/x11/gdkfont-x11.c (_gdk_font_destroy): Remove the right
1499 XID from the xid table. (#341327, Sampo Savolainen, Tim Janik)
1501 2006-06-04 Behdad Esfahbod <behdad@gnome.org>
1503 * gtk/gtkprintoperationpreview.h: Add missing G_END_DECLS (#343838)
1505 2006-06-03 Richard Hult <richard@imendio.com>
1507 * gdk/quartz/Makefile.am:
1508 * gdk/quartz/gdkspawn-quartz.c: Add spawn functions, copied from the
1511 2006-06-02 Matthias Clasen <mclasen@redhat.com>
1513 * gtk/gtkprintoperation-private.h:
1514 * gtk/gtkprintoperation.h:
1515 * gtk/gtkprintoperation.c: Add a show-preview property.
1517 * gtk/gtkprintoperation-unix.c: Implement it here.
1519 * gtk/gtkprintoperation-unix.c: Cleanups
1521 2006-06-02 Kristian Rietveld <kris@imendio.com>
1523 Rubber banding for GtkTreeView, #80127. Uses same method as
1526 * gtk/gtktreeview.c (gtk_tree_view_class_init),
1527 (gtk_tree_view_init), (gtk_tree_view_get_property),
1528 (gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
1529 (gtk_tree_view_get_rubber_banding): add property,
1530 (gtk_tree_view_button_press): start rubber banding if enabled and
1531 press is on a non-selected node,
1532 (gtk_tree_view_button_release): stop rubber banding,
1533 (gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
1535 (gtk_tree_view_bin_expose): draw rubber band if active,
1536 (gtk_tree_view_stop_rubberband),
1537 (gtk_tree_view_update_rubber_band_selection_range),
1538 (gtk_tree_view_update_rubber_band_selection),
1539 (gtk_tree_view_update_rubber_band),
1540 (gtk_tree_view_paint_rubber_band): new functions.
1542 * gtk/gtktreeview.h: add new set/get function for rubber banding
1545 * gtk/gtktreeprivate.h: add a bunch of new private fields.
1547 2006-06-02 Kristian Rietveld <kris@imendio.com>
1549 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): revert fix of
1550 #164884 because it's not a problem in gtk+ but in applications and
1551 it breaks starting drags from the edge of a row.
1553 2006-06-02 Kristian Rietveld <kris@imendio.com>
1555 Separate sensitive/selectable properties.
1557 * gtk/gtktreeselection.c (tree_column_is_sensitive): remove,
1558 (_gtk_tree_selection_row_is_selectable): remove checks to see if at
1559 least one column is sensitive,
1560 (gtk_tree_selection_real_select_node): remove code which enables
1561 insensitive rows to always be unselected.
1563 * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove code
1564 that unselects a node if it just became insensitive.
1566 * gtk/gtkcombobox.c (gtkcombo_box_list_select_func): new function,
1567 based on the at least one column sensitive check from
1568 _gtk_tree_selection_row_is_selectable(),
1569 (gtk_combo_box_list_setup): set selection function on tree selection.
1571 2006-06-02 Kristian Rietveld <kris@imendio.com>
1573 * gtk/gtktreemodelfilter.c
1574 (gtk_tree_model_filter_convert_child_path_to_path): need to use
1575 gtk_tree_model_filter_get_iter_full() since the path returned
1576 by gtk_real_tree_model_filter_convert_child_path_to_path() includes
1579 2006-06-02 Matthias Clasen <mclasen@redhat.com>
1581 * gtk/gtkstatusicon.c (gtk_status_icon_get_geometry): Allow
1582 to return partial information. (#343625, Christian Persch)
1584 * gtk/gtkwindow.c (gtk_window_key_release_event): Chain up
1585 to key_release, not to key_press. (#343677, Tommi Komulainen)
1587 2006-06-02 Alexander Larsson <alexl@redhat.com>
1590 Add gtkprintoperationpreview.[ch]
1591 Set default preview command. Hardcoded for now.
1593 * gtk/gtkmarshalers.list:
1594 Add BOOLEAN:OBJECT,OBJECT,OBJECT
1596 * gtk/gtkprintbackend.c:
1597 Add preview command property.
1599 * gtk/gtkprintcontext.[ch]:
1600 Make less dependent on PrintOperation for output settings
1601 Externally set cairo_t and dpi. Resettable.
1602 Create fontmap without metrics hinting (so that print preview
1603 text layout doesn't depend on zoom level).
1605 * gtk/gtkprintoperation-private.h:
1606 * gtk/gtkprintoperation-unix.c:
1607 * gtk/gtkprintoperation.[ch]:
1608 Initial work on print preview API and default implementation
1609 using an external preview app.
1611 * gtk/gtkprintoperation-win32.c:
1612 Some needed updates. Not done, needs more work.
1614 * gtk/gtkprintoperationpreview.[ch]:
1615 New interface used in print preview api.
1617 * gtk/gtkprintunixdialog.c:
1618 Add print preview dialog.
1620 * tests/print-editor.c:
1621 Test using an custom print preview widget.
1623 2006-06-02 Emmanuele Bassi <ebassi@gnome.org>
1625 * gtk/gtkrecentmanager.c
1626 (gtk_recent_info_get_application_info): Fix a typo (spotted by
1627 Paolo Borelli and coverity).
1629 2006-06-01 Matthias Clasen <mclasen@redhat.com>
1631 * tests/testnotebookdnd.c: Small tweaks to test more things.
1633 * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Add
1634 an icon-spacing style property for the same purpose.
1636 * gtk/gtkbutton.c (gtk_button_class_init): Add an image-spacing
1637 style property that allows to adjust the spacing between image
1638 and label in button. (#320431, James Moger)
1640 * gtk/gtkprintoperation-private.h:
1641 * gtk/gtkprintoperation.c:
1642 * gtk/gtkprintoperation-unix.c: Move the
1643 PrintPagesData.wait flag to GtkPrintOperationPrivate.is_sync.
1644 Also use a recursive mainloop instead of manually looping.
1646 * gtk/gtkprintoperation.c: Add some examples to the docs.
1648 * gtk/gtkprintbackend.c (gtk_print_backend_class_init):
1649 Intern signal names.
1651 * gtk/gtkprintunixdialog.c:
1652 * gtk/gtkprintoperation-unix.c: Use canonical signal names.
1654 2006-05-31 Matthias Clasen <mclasen@redhat.com>
1656 * gtk/gtkpagesetupunixdialog.c: Add docs, cleanup some
1659 * gtk/gtkprintoperation.c (print_pages_idle): Don't
1660 treat manual_scale like a percentage, its a factor.
1662 * gtk/gtktreeview.c (gtk_tree_view_class_init): Document
1663 signals. (#302556, Stefan Kost)
1665 2006-05-31 Alexander Larsson <alexl@redhat.com>
1668 * demos/gtk-demo/printing.c:
1669 * tests/print-editor.c:
1670 * tests/testnouiprint.c:
1671 * tests/testprint.c:
1672 * tests/testprintfileoperation.c:
1673 Further updates from the GtkPrintContext functions rename.
1675 * modules/printbackends/cups/gtkcupsutils.c:
1676 Always set requesting-user-name when doing cups requests.
1678 2006-05-31 Alexander Larsson <alexl@redhat.com>
1680 * gtk/gtkpagesetupunixdialog.c:
1681 Remove request_details_tag with g_signal_handler_disconnect,
1682 not g_source_remove. (#343475)
1684 2006-05-31 Matthias Clasen <mclasen@redhat.com>
1686 * gtk/gtkprintcontext.h:
1687 * gtk/gtkprintcontext.c:
1688 * gtk/gtkprintoperation.c:
1689 * gtk/gtkprintoperation-unix.c: Change some function names to be
1691 gtk_print_context_get_cairo -> gtk_print_context_get_cairo_context
1692 gtk_print_context_get_fontmap -> gtk_print_context_get_pango_fontmap
1693 gtk_print_context_create_context -> gtk_print_context_create_pango_context
1694 gtk_print_context_create_layout -> gtk_print_context_create_pango_layout
1697 * gtk/gtkpagesetupunixdialog.c: Don't run the custom page
1698 size dialog. (#340444, Christian Persch)
1700 * demos/gtk-demo/main.c (main): Display comments in friendly
1701 DodgerBlue instead of scary red. (#343444, Carol Spears)
1703 * gtk/gtkfontbutton.c:
1704 * gtk/gtkcolorbutton.c: Clarify the docs of the color-set and
1705 font-set signals. (#343438, Olexiy Avramchenko)
1707 2006-05-30 Matthias Clasen <mclasen@redhat.com>
1709 * gtk/gtkmain.c (gtk_grab_notify_foreach): Don't skip internal
1710 children when emitting grab-notify. (#343425, Markku Vire)
1713 * gdk/gdkwindow.c: Don't use G_DEFINE_TYPE, since the instance
1714 struct name does not match the type name. (#343453, Ed Catmur)
1718 * gtk/gtkbutton.c: Add a GtkButton::image-position property
1719 with getter and setter, to allow constructing buttons with
1720 the image stacked on top of the label. (#342930, Johan Dahlin)
1722 2006-05-30 Johan Dahlin <jdahlin@async.com.br>
1725 * gtk/gtkbutton.c: (gtk_button_class_init), (gtk_button_init),
1726 (gtk_button_set_property), (gtk_button_get_property),
1727 (gtk_button_construct_child), (gtk_button_set_image_spacing),
1728 (gtk_button_get_image_spacing):
1730 * gtk/gtktoolbutton.c: (gtk_tool_button_class_init),
1731 (gtk_tool_button_construct_contents),
1732 (gtk_tool_button_set_property), (gtk_tool_button_get_property),
1733 (_gtk_tool_button_get_button), (gtk_tool_button_set_icon_spacing),
1734 (gtk_tool_button_get_icon_spacing):
1735 * gtk/gtktoolbutton.h:
1736 Add GtkButton:image-spacing and GtkToolButton::icon-spacing.
1737 (#320431, James Moger)
1739 2006-05-30 Kristian Rietveld <kris@gtk.org>
1741 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): only
1742 check sort column id if connected to sortable model.
1744 2006-05-30 Behdad Esfahbod <behdad@gnome.org>
1746 * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
1747 underline in requested rectangle. (Ported from pango fix.)
1749 2006-05-29 Michael Natterer <mitch@imendio.com>
1751 * gtk/gtkdialog.h: removed forgotten declaration of
1752 _gtk_dialog_get_response_for_widget(), the function has been made
1753 public a long time ago.
1755 2006-05-29 Michael Natterer <mitch@imendio.com>
1757 * gtk/gtktextview.c (gtk_text_view_target_list_notify): applied
1758 patch from Chris Wilson which replaces a useless loop with
1759 built-in access to free'd memory by a simple integer comparison.
1762 2006-05-29 Kristian Rietveld <kris@gtk.org>
1764 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): select
1765 the current focus row if nothing is selected and ctrl is not pressed.
1766 (Fixes #324480, Murray Cumming/Srirama Sharma).
1768 2006-05-28 Kristian Rietveld <kris@gtk.org>
1770 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_focus): refactor
1771 to work correctly in RTL mode.
1773 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): make
1774 cursor movement to left/right work correctly in RTL mode.
1776 2006-05-28 Behdad Esfahbod <behdad@gnome.org>
1778 * gdk/gdkrectangle.c (gdk_rectangle_union, gdk_rectangle_intersect):
1779 Note in docs that @dest can be the same as @src1 or @src2. (#343233,
1782 2006-05-28 Kristian Rietveld <kris@gtk.org>
1784 * gtk/gtkstyle.c (gtk_default_draw_flat_box): handle
1785 cell_even_ruled_sorted and cell_odd_ruled_sorted for the selected
1788 2006-05-28 Kristian Rietveld <kris@gtk.org>
1790 * gtk/gtkenums.h: add GTK_ARROW_NONE.
1792 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_column): always
1793 "show" the arrow if sort_column_id >= 0, only set arrow type if
1794 this column is the column we are currently sorting on. (#331338).
1796 2006-05-27 Matthias Clasen <mclasen@redhat.com>
1798 * gtk/gtkrecentchoosermenu.c: Avoid trivial differences
1799 in translated strings. (#343088, Clytie Siddall)
1801 2006-05-28 Kristian Rietveld <kris@gtk.org>
1803 * gtk/gtktreeview.c (gtk_tree_view_build_tree): emit test_expand_row
1804 and test return value before expanding a branch. (Fixes #321523,
1805 reported by Daniel Lindenaar).
1807 2006-05-28 Kristian Rietveld <kris@gtk.org>
1809 * gtk/gtktreeview.c (gtk_tree_view_insert_column): set the sizing
1810 type of the new column to FIXED,
1811 (gtk_tree_view_insert_column_with_attributes): likewise. (#341898,
1814 2006-05-27 Kristian Rietveld <kris@gtk.org>
1816 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_remove_node):
1817 only unref if elt->ref_count > 0,
1818 (gtk_tree_model_filter_row_deleted): likewise. (Fixes #340839,
1819 reported by Yevgen Muntyan).
1821 2006-05-27 Kristian Rietveld <kris@gtk.org>
1823 Small refactoring. (#340428, Paolo Borelli).
1825 * gtk/gtkliststore.c (gtk_list_store_set_valist_internal),
1826 (gtk_list_store_insert_with_valuesv): refactor code to determine
1827 iter compare func into gtk_list_store_get_compare_func().
1829 * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal),
1830 (gtk_tree_store_insert_with_valuesv): likewise.
1832 2006-05-27 Kristian Rietveld <kris@gtk.org>
1834 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_arrow): really fix
1837 2006-05-27 Kristian Rietveld <kris@gtk.org>
1839 Editable cell window placement and RTL fixes.
1841 * gtk/gtktreeview.c (gtk_tree_view_button_press),
1842 (gtk_tree_view_bin_expose), (gtk_tree_view_get_cell_area),
1843 (gtk_tree_view_create_row_drag_icon): Only add indentation to x
1845 (gtk_tree_view_create_row_drag_icon): Iterate over columns in reverse
1846 direction if in rtl mode.
1848 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1849 horizontal_separator is not part of the real background area width,
1850 add 2 * focus_line_width to real_cell_area.x and not
1851 real_background_area.x, fix up event coordinates check in the
1852 PACK_END loop, also set depth to zero at the end of the PACK_END
1854 (_gtk_tree_view_get_neighbor_sizes): also add column_spacing for each
1857 2006-05-26 Matthias Clasen <mclasen@redhat.com>
1859 * gtk/stock-icons/24/gtk-orientation-landscape.png:
1860 * gtk/stock-icons/24/gtk-orientation-portrait.png:
1861 * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
1862 * gtk/stock-icons/24/gtk-orientation-reverse-portrait.png:
1863 Cleaned up icons by Diana Fong.
1865 2006-05-26 Kristian Rietveld <kris@gtk.org>
1867 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_arrow): queue a redraw
1868 for the full width of the row, not just the width we got allocated.
1869 (Fixes #333284, reported by Benjamin Berg).
1871 2006-05-26 Kristian Rietveld <kris@gtk.org>
1873 * gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): set dy to
1874 page_size + height in the event dy + page_size is about to become
1877 2006-05-25 Matthias Clasen <mclasen@redhat.com>
1880 * gtk/gtkstatusicon.h:
1881 * gtk/gtkstatusicon.c (gtk_status_icon_get_geometry):
1882 New function that can be used to e.g. position
1883 notification bubbles wrt to the status icon.
1884 (#341450, Christian Persch, Havoc Pennington)
1886 2006-05-25 Matthias Clasen <mclasen@redhat.com>
1888 Make GTK+ work as an untrusted X client. (#136571,
1891 * gdk/x11/gdkdisplay-x11.h:
1892 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): When
1893 opening a display, determine if we are untrusted.
1895 * gdk/x11/gdkdisplay-x11.c (gdk_notify_startup_complete):
1896 Just bail out when we are untrusted.
1898 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Work around
1899 a bug in the Xorg XSECURITY implementation by coercing
1900 toplevel InputOnly windows to InputOutput.
1902 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_get_pointer):
1903 (_gdk_windowing_window_get_pointer):
1904 When untrusted, call XQueryPointer on an auxiliary
1905 window, not on the root window.
1907 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
1908 If untrusted, loop through all GDK-aware toplevels on all
1909 screens in the hope we hit one containing the pointer;
1910 then use that as the basis of the current XQueryPointer
1913 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1914 (gdk_keyboard_grab): Ignore failed grabs when untrusted.
1916 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Only
1917 cache our own toplevels when untrusted.
1919 * gdk/x11/gdkdnd-x11.c (motif_send_enter): Don't try
1920 to do Motif DND as untrusted client.
1922 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window):
1923 (gdk_x11_screen_get_window_manager_name):
1924 (gdk_x11_screen_supports_net_wm_hint):
1925 Bail out early if untrusted.
1927 * gtk/gtkcolorsel.c (grab_color_at_mouse): If getting
1928 the color under the pointer by screenshooting the root
1929 window fails, it tries to get the color from our own
1932 * gtk/gtkcolorsel.c (get_screen_color): Make the
1933 dropper_grab_widget a child of the dialog, not a
1936 * gtk/gtkinvisible.c (gtk_invisible_realize): Respect
1937 a parent window that has been set before realizing.
1939 * gtk/gtkwidget.c (gtk_widget_get_parent_window):
1940 Always return a previously set parent window.
1942 2006-05-24 Matthias Clasen <mclasen@redhat.com>
1944 * gtk/gtkfontbutton.c (gtk_font_button_clicked):
1945 * gtk/gtkcolorbutton.c (gtk_color_button_clicked):
1946 Fix the handling of modality by copying what
1947 GtkFileChooserButton does. (#342754, Yevgen Muntyan)
1949 * gtk/gtkprintunixdialog.c (create_main_page): Make
1950 the range entry insensitive if another range option
1951 is selected. (#342783, Caolan McNamara)
1952 (update_dialog_from_capabilities): Make the collate
1953 check button insensitive unless multiple copies are
1954 printed (#342781, Caolan McNamara)
1956 * gtk/gtkwidget.c: Remove style properties when a widget
1957 class gets finalized, to make style properties work in
1958 dynamic types. (#342513, Christian Persch)
1960 2006-05-24 Henrique Romano <henrique@async.com.br>
1962 * gtk/gtkcellview.c: (gtk_cell_view_class_init),
1963 (gtk_cell_view_get_property), (gtk_cell_view_set_property):
1964 Add model property for GtkCellView, part of #172535.
1966 2006-05-24 Matthias Clasen <mclasen@redhat.com>
1968 * gtk/gtkprintoperation.h:
1969 * gtk/gtkprintoperation-private.h:
1971 * gtk/gtkprintoperation.c: Add a custom-tab-label property.
1973 * gtk/gtkprintoperation-unix.c (get_print_dialog): Use it
1974 here. (#342752, Yevgen Muntyan)
1976 2006-05-24 Alexander Larsson <alexl@redhat.com>
1979 * gtk/gtkprintunixdialog.[ch]:
1980 Add gtk_print_unix_dialog_set_manual_capabilities that controls
1981 what widgets to enable in the dialog depending on the apps
1984 * gtk/gtkprintbackend.[ch]:
1985 * gtk/gtkprinter-private.h:
1987 * gtk/gtkprintjob.h:
1988 Add printer_get_capabilities to backend.
1989 Move some fallback calls to the printbackend base class.
1991 * gtk/gtkprintoperation-unix.c:
1992 Set manual capabilities
1994 * modules/printbackends/cups/gtkprintbackendcups.c:
1995 Implement get_capabilities
1997 * modules/printbackends/lpr/gtkprintbackendlpr.c:
1998 * modules/printbackends/pdf/gtkprintbackendpdf.c:
1999 Move some methods to baseclass.
2001 2006-05-23 Matthias Clasen <mclasen@redhat.com>
2003 * gtk/gtkprintoperation.c (print_pages): Do the begin-print
2004 emission in the idle, so that the print dialog goes away
2007 2006-05-23 Matthias Clasen <mclasen@redhat.com>
2010 * gtk/gtkprintoperation.h:
2011 * gtk/gtkprintoperation.c: Add a boolean show-progress
2012 property, and show a progress dialog if it is set to TRUE.
2014 * gtk/gtkprintoperation.c (pdf_end_run):
2015 * gtk/gtkprintoperation-win32.c (win32_end_run):
2016 * gtk/gtkprintoperation-unix.c (unix_end_run):
2017 * gtk/gtkprintoperation-private.h: Add a cancelled
2018 parameter to end_run, and call it even if the print
2019 operation was cancelled.
2021 2006-05-23 Alexander Larsson <alexl@redhat.com>
2023 * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
2024 Allow absolute filenames in filename entry.
2025 Patch from Yevgen Muntyan (#341679)
2027 2006-05-23 Alexander Larsson <alexl@redhat.com>
2030 * gtk/gtkprintunixdialog.[ch]:
2031 Add gtk_print_unix_dialog_add_custom_tab
2033 * gtk/gtkprintoperation-unix.c:
2034 Implement custom widgets for unix.
2035 Fix some warnings by including cairo-ps/pdf.h
2037 * gtk/gtkprintoperation-win32.c:
2038 Mark string for translation.
2040 2006-05-22 Matthias Clasen <mclasen@redhat.com>
2042 * gtk/gtkprintoperation.c (gtk_print_operation_class_init):
2045 2006-05-22 Alexander Larsson <alexl@redhat.com>
2048 Make sure grab-notify is emitted on toplevels as well as
2052 * gtk/gtkwin32embedwidget.[ch]
2053 Add new widget used for win32 port to embed gtk+
2054 widgets in windows dialog.
2056 * gtk/gtkmarshalers.list:
2059 * gtk/gtkprintoperation-private.h:
2060 * gtk/gtkprintoperation.[ch]:
2061 Generic support for custom widgets in print dialog.
2063 * gtk/gtkprintoperation-win32.c:
2064 Implement custom widget support for win32.
2066 * tests/print-editor.c:
2067 Allow setting of font using custom widgets in the print dialog.
2069 2006-05-22 Behdad Esfahbod <behdad@gnome.org>
2071 Rollback the following changes, to fix it the proper way in Pango:
2073 * gdk/gdkinternals.h:
2074 * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
2075 (update_fontmap_resolution), (gdk_screen_set_resolution): Add new
2076 function _gdk_screen_get_font_map() and have one fontmap per screen,
2077 with the correct resolution set on it.
2079 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
2080 _gdk_screen_get_font_map() instead of setting resolution on the
2081 PangoCairoContext. (#342529)
2083 2006-05-22 Emmanuele Bassi <ebassi@gnome.org>
2085 * gtk/gtkrecentmanager.h:
2086 * gtk/gtkrecentmanager.c
2087 (gtk_recent_info_get_application_info): Don't mask "time" with
2088 the "time" argument.
2090 2006-05-22 Matthias Clasen <mclasen@redhat.com>
2092 * gdk/gdkcolor.h: gdk_color_parse returns boolean, not int.
2093 (#342569, Masatake Yamato)
2095 * gtk/gtkprintunixdialog.c (dialog_set_scale): Don't return
2096 a value from a void function.
2098 * gtk/gtkprinter.c (_gtk_printer_prepare_for_print)
2099 (_gtk_printer_get_settings_from_options)
2100 (_gtk_printer_request_details): Don't return values from void
2103 * gtk/gtkrecentchooserutils.c (delegate_unselect_uri): Don't
2104 return a value from a void function.
2106 * gtk/gtkfilesystem.c (gtk_file_system_cancel_operation): Don't
2107 return a value from a void function. Also, don't put
2108 semicolons behind G_DEFINE_TYPE. (#342543)
2110 * gtk/gtkwidget.c (gtk_widget_class_init): Add docs
2111 for new style properties. (#342535, Mart Raudsepp)
2113 * gdk/x11/gdkscreen-x11.c: Remove _gdk_x11_screen_request_cm_notification
2115 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Directly call
2116 gdk_display_request_selection_notification.
2118 * gdk/x11/gdkdisplay-x11.c: Several cleanups.
2120 2006-05-21 Behdad Esfahbod <behdad@gnome.org>
2122 * gdk/gdkinternals.h:
2123 * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
2124 (update_fontmap_resolution), (gdk_screen_set_resolution): Add new
2125 function _gdk_screen_get_font_map() and have one fontmap per screen,
2126 with the correct resolution set on it.
2128 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
2129 _gdk_screen_get_font_map() instead of setting resolution on the
2130 PangoCairoContext. (#342529)
2132 2006-05-22 Tor Lillqvist <tml@novell.com>
2134 * gtk/gtkfilesystemwin32.c: Make it compile again. Doesn't work
2135 properly yet, though. There is lots of commonality between this
2136 file and gtkfilesystemunix.c that should really be factored out.
2138 2006-05-19 Matthias Clasen <mclasen@redhat.com>
2140 * gtk/gtkpaned.c (gtk_paned_compute_position): Avoid warnings
2141 if a child is NULL. (#342007, Patrick Monnerat)
2144 * gtk/gtkprintoperation.h:
2145 * gtk/gtkprintoperation.c (gtk_print_operation_cancel): New function
2146 to cancel a running print operation.
2148 * gtk/gtkprintoperation-private.h (struct _GtkPrintOperationPrivate):
2149 Add a cancelled flag, use g types, use bitfields.
2151 * gtk/gtkprintoperation.c (print_pages): Clean up after the idle
2152 in the synchronous case.
2154 * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a
2155 boundary case in scrolling where a tab was not shown. (#168105,
2156 Hiroyuki Ikezoe, patch by Kouhei Sutou)
2158 2006-05-19 Damon Chaplin <damon@gnome.org>
2160 * gtk/gtkfontsel.c (gtk_font_selection_init): use
2161 atk_relation_add_target() to add the targets, since it sets up weak
2162 references to avoid crashes. (#305530)
2164 2006-05-18 Matthias Clasen <mclasen@redhat.com>
2166 * gtk/gtkprintoperation.h:
2167 * gtk/gtkprintoperation.c: Add a GtkPrintOperation:: paginate signal
2168 that gets emitted to paginate a document in chunks.
2170 * gtk/gtkprintoperation-private.h:
2171 * gtk/gtkmarshalers.list: Add necessary glue.
2173 * gtk/gtkcalendar.c (gtk_calendar_drag_motion): Don't produce
2174 a stuck drag if shift is held. (#341734, Sebastien Bacher)
2176 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
2177 Always set protocol. (#342003, Tommi Komulainen)
2179 * gtk/gtkimage.c (icon_theme_changed): Only unref the pixbuf
2180 if the image has the appropriate storage type. (#342096, Tommi
2183 * configure.in: Actually require GLib 2.11
2185 * gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
2186 end up at the right spot. (#342072, Yevgen Muntyan)
2188 2006-05-18 Michael Natterer <mitch@imendio.com>
2190 * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
2191 style property and use GTK_PARAM_READABLE instead of
2192 G_PARAM_READABLE. Moved one "activate_slider" variable to the
2193 local scope its used in.
2195 2006-06-18 Michael Emmel <mike.emmel@gmail.com>
2197 * gdk/directfb/gdkscreen-directfb.c:
2198 * added gdk_screen_is_composited to compile
2201 2006-05-17 Alexander Larsson <alexl@redhat.com>
2203 * gtk/gtkprintoperation-win32.c:
2204 Update to changed APIs.
2206 2006-05-16 Matthias Clasen <mclasen@redhat.com>
2208 * configure.in: Bump version
2210 * === Released 2.9.1 ====
2212 * configure.in: Reset interface age
2216 Tue May 16 12:36:25 2006 Søren Sandmann <sandmann@redhat.com>
2218 * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Move getting the
2219 property out of the loop, and rename the variable 'max_expand'.
2221 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Fix the decription
2222 for the max-child-expand property.
2224 2006-05-16 Matthias Clasen <mclasen@redhat.com>
2226 * gtk/gtkprinter.c (gtk_printer_class_init):
2227 * gtk/gtkprintjob.c (gtk_print_job_class_init):
2228 * gtk/gtkprintoperation.c (gtk_print_operation_class_init):
2231 * gtk/gtkpagesetupunixdialog.c (populate_dialog): Add labels
2232 for page orientations, also add the fourth one. (#339589)
2234 * gtk/stock-icons/24/gtk-orientation-reverse-portrait.png: New
2237 * gtk/Makefile.am: Add it here.
2239 * gtk/gtkstock.[hc]: Add stock items for the page orientations.
2241 2006-05-16 Michael Natterer <mitch@imendio.com>
2243 * gtk/gtktoolbar.c: added "max-child-expand" style property which
2244 limits the space taken by expanding tool items. Fixes bug #340722.
2246 2006-05-16 Kristian Rietveld <kris@imendio.com>
2248 * gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles
2249 in the button list. (Fixes #341035, reported by William Jon McCann).
2251 2006-05-16 Kristian Rietveld <kris@imendio.com>
2253 * gtk/gtkfilechooserdefault.c
2254 (show_and_select_paths_finished_loading): put the newly selected
2255 row(s) the in the middle of the view,
2256 (update_current_folder_get_info_cb),
2257 (gtk_file_chooser_default_update_current_folder): make sure reload
2258 state is set to RELOAD_HAS_FOLDER while loading the new folder,
2259 so _map() won't start loading the current working directory. (Fixes
2260 #341028, reported by Michael Natterer).
2262 2006-05-15 Matthias Clasen <mclasen@redhat.com>
2264 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix
2265 an RTL problem with toggles in expander columns.
2266 (#341896, Roozbeh Pournader)
2268 Mon May 15 15:12:05 2006 Søren Sandmann <sandmann@redhat.com>
2270 * gtk/gtklayout.c (gtk_layout_realize),
2271 * gtk/gtkiconview.c (gtk_icon_view_realize),
2272 * gtk/gtktreeview.c (gtk_tree_view_realize): Set the background of
2273 the clip windows to NULL, since they are generally invisible and
2274 don't have EXPOSURE set, which means they temp-unvlicker code
2275 doesn't apply to them.
2277 * gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child): Unset
2278 the background of the parent window during resizing. Invalidate
2279 the uncoered area of the parent window. Bug 341332.
2281 2006-05-15 Richard Hult <richard@imendio.com>
2283 * gdk/quartz/gdkevents-quartz.c (_gdk_events_init): Remove obsolete
2285 (poll_func): Remove assert and add a comment on how to fix properly.
2286 (gdk_events_pending): Implement.
2288 2006-05-15 Matthias Clasen <mclasen@redhat.com>
2290 * gtk/gtkprintoperation.c: Reverse the order of
2291 ranges when printing in reverse. (#341578)
2293 2006-05-15 Alexander Larsson <alexl@redhat.com>
2295 * gtk/gtkprintjob.[ch]:
2296 Added gtk_print_job_set/get_track_print_status
2298 * gtk/gtkprintoperation-private.h:
2299 * gtk/gtkprintoperation.[ch]:
2300 Add gtk_print_operation_set_track_print_status.
2302 * gtk/gtkprintoperation-unix.c:
2303 Implement track_print_status on unix
2305 * gtk/gtkprintoperation-win32.c:
2306 Implement track_print_status on win32
2311 * modules/printbackends/cups/gtkprintbackendcups.c:
2312 Implement track_print_status for cups
2314 * tests/print-editor.c:
2315 Test track_print_status.
2317 2006-05-15 Matthias Clasen <mclasen@redhat.com>
2319 * gtk/gtkprintoperation.c: Do page rendering in an idle when
2320 running asynchronous.
2322 2006-05-15 Alexander Larsson <alexl@redhat.com>
2325 * gtk/gtkprintbackend.[ch]: (_gtk_print_backend_create):
2326 Never unload print backends.
2327 Remove gtk_print_backend_unref_at_idle.
2329 * modules/printbackends/cups/gtkprintbackendcups.c:
2330 (cups_dispatch_watch_finalize):
2331 Don't use the unref_at_idle hack since that caused
2332 deadlocks. Instead we never unload print backends, which
2333 is not really a big problem.
2335 2006-05-14 Murray Cumming <murrayc@murray.com>
2337 * gtk/gtkframe.c: Restored the / at the start of the comment
2338 block, to fix the build.
2340 2006-05-13 Matthias Clasen <mclasen@redhat.com>
2344 * gdk/*.c: Remove erroneous ; after G_DEFINE_TYPE
2345 macros. (#341692, Yevgen Muntyan)
2347 * gtk/gtktextbtree.c:
2348 * gtk/gtktextview.c: Move some asserts to the right
2349 place. (#341661, #341665, Pascal Terjan)
2351 2006-05-12 Matthias Clasen <mclasen@redhat.com>
2353 * gtk/gtknotebook.c: Fix some corner cases in the size
2354 allocation logic for tabs. (#341577, Carlos Garnacho Parro)
2356 * gtk/gtkprintunixdialog.c: Some fixes to capitalization of
2357 labels. (#341558, Dennis Cranston)
2359 * gtk/gtknotebook.c: Handle tab_label being NULL better.
2360 (#341455, William Jon McCann, patch by Carlos Garnacho Parro)
2362 * gtk/gtkruler.c: Reinstate the ruler metrics strings, since
2363 they are used by glade, pointed out by Damon Chaplin.
2365 2006-05-12 Alexander Larsson <alexl@redhat.com>
2368 Better handling of the window group on unsetting transient-for, since
2369 the transient parent might have changed group.
2372 Combine the handling of transient for the attach-widget and the
2373 window group handling by setting transient-to on popup/popdown only.
2377 * gtk/gtkprintunixdialog.c:
2378 Remove part of old fix no longer needed.
2380 2006-05-12 Alexander Larsson <alexl@redhat.com>
2382 * gtk/gtkprintoperation.c (gtk_print_operation_set_n_pages):
2383 Update g_object_notify to new property name.
2385 2006-05-12 Alexander Larsson <alexl@redhat.com>
2387 * gtk/gtkrecentmanager.c:
2391 * demos/gtk-demo/printing.c:
2392 * gtk/gtkprintoperation-win32.c:
2393 * gtk/gtkprintoperation.[ch]:
2394 * gtk/gtkprintsettings.[ch]:
2395 * modules/printbackends/cups/gtkprintbackendcups.c:
2396 * modules/printbackends/lpr/gtkprintbackendlpr.c:
2397 * modules/printbackends/pdf/gtkprintbackendpdf.c:
2398 * tests/print-editor.c:
2399 * tests/testnouiprint.c:
2400 * tests/testprint.c:
2401 * tests/testprintfileoperation.c:
2402 Rename functions from nr_of_pages to n_pages, and num_copies to
2403 n_copies to match other gtk+ names.
2405 * gtk/gtkmenu.c: (gtk_menu_popdown):
2406 Only re-set window group on popdown if we set it on popup (i.e.
2407 if there is a parent menu shell).
2408 Fixed part of bug #340401
2411 Add (contruct) property "transient-for" to GtkWindow. This
2412 is needed for the fix to bug #340401.
2414 * gtk/gtkprintunixdialog.c:
2415 Use the transient-for property on construction and populate the dialog
2416 with widgets after that. This fixes bug #340401.
2417 More n_pages renames.
2419 2006-05-11 Emmanuele Bassi <ebassi@cvs.gnome.org>
2421 * gtk/gtkrecentmanager.h: Remove the error parameter to the
2422 gtk_recent_manager_add() and gtk_recent_manager_add_full()
2423 functions; remove the unneeded error codes from the error
2424 enumeration. (#336774).
2426 * gtk/gtkrecentmanager.c: Make gtk_recent_manager_add() and
2427 gtk_recent_manager_add_full() complain loudly about wrong or
2428 missing meta-data, instead of using a GError. (#336774)
2430 2006-05-11 Matthias Clasen <mclasen@redhat.com>
2432 * demos/gtk-demo/Makefile.am (demos): Add it here.
2434 * demos/gtk-demo/printing.c (do_printing): Add a GtkPrintOperation demo.
2436 2006-05-11 Carlos Garcia Campos <carlosgc@gnome.org>
2438 * gtk/gtkfilechooserembed.c: use I_() instead of _() when creating
2439 response-requested signal. Fixes bug #341416
2441 2006-05-11 Matthias Clasen <mclasen@redhat.com>
2443 * gdk/gdkkeysyms.h: Regenerated from Xorg 7.1 keysyms.h, using
2444 gdkkeysyms-update.pl.
2446 * gdk/gdkkeysyms-update.pl: Script to sync gdkkeysyms.h
2447 with Xorg. (#321896, Simos Xenitellis)
2449 * gdk/Makefile.am (EXTRA_DIST): Add gdkkeysyms-update.pl
2451 * gdk/gdkkeysyms.h: Consistently use lowercase in hex numbers.
2453 2006-05-10 Carlos Garnacho <carlosg@gnome.org>
2455 * gtk/gtknotebook.c: check that tab_label is not NULL before checking
2456 that it's notebook's child. Closes #341247.
2458 Wed May 10 15:57:53 2006 Tim Janik <timj@imendio.com>
2460 * applied unified patch for configurable scroll arrow sizes from
2461 bug #333632 and bug #325282.
2463 * gtk/gtkwidget.c (gtk_widget_class_init): added ::scroll-arrow-hlength
2464 and ::scroll-arrow-vlength style properties. fixed upper limit for
2465 ::separator-width and ::separator-height to be MAXINT.
2467 * gtk/gtkmenu.c: use GtkWidget::scroll-arrow-vlength to determine the
2468 scroll arrow size, instead of using a hard coded constant.
2470 * gtk/gtknotebook.c: use GtkWidget::scroll-arrow-vlength and
2471 GtkWidget::scroll-arrow-hlength to determine scroll arrow sizes.
2472 added GtkNotebook::arrow-spacing style property to configure the
2473 spacing between scroll arrows.
2475 2006-05-10 Matthias Clasen <mclasen@redhat.com>
2477 * gtk/gtkpagesetupunixdialog.c: Don't include langinfo.h
2478 unconditionally. (#341217)
2480 2006-05-10 John (J5) Palmieri <johnp@redhat.com>
2482 * modules/printbackends/cups/gtkprintbackendcups.c:
2483 make the _CUPS_MAP_ATTR_STR macro not dup the string so we don't
2486 2006-05-10 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
2488 * gtk/paper_names.c: Correct #11 Envelope typo.
2490 2006-05-09 Tor Lillqvist <tml@novell.com>
2492 * gdk/win32/gdkevents-win32.c (doesnt_want_scroll): Look at both
2493 GDK_SCROLL_MASK and GDK_BUTTON_PRESS_MASK. (#139628)
2495 2006-05-09 Matthias Clasen <mclasen@redhat.com>
2497 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add a :cursor-position
2498 property. (#334412, Yevgen Muntyan)
2501 * gtk/gtkmessagedialog.[hc]: Add an image property. (#337306, Alex Graveley)
2503 2006-05-09 Carlos Garnacho <carlosg@gnome.org>
2505 * gtk/gtknotebook.c: create an independent GdkWindow to behave nicely
2506 during reordering with tab_labels with their own window, also use
2507 gtk_drag_set_icon_widget() for the DnD icon to avoid drawing garbage
2508 from offscreen regions. Closes bug #335707.
2509 (gtk_notebook_tab_space), (gtk_notebook_calculate_shown_tabs),
2510 (gtk_notebook_calculate_tabs_allocation): new functions,
2511 gtk_notebook_pages_allocate() functionality has been splitted into
2514 2006-05-08 Matthias Clasen <mclasen@redhat.com>
2516 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_add_shortcut_folder):
2517 * gtk/gtktextbufferserialize.c (parse_attr_element): Fix some typos in
2518 messages. (#341091, Tino Meinen)
2520 * gtk/gtkstatusicon.c: Some cleanups.
2522 * gtk/gtkstatusicon.c (gtk_status_icon_get_property): Silently return
2523 NULL if the storage type of the image does not match. (#340516, Christian
2526 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Elide (_x) in the middle
2527 of the string, too. (#323956, Abel Cheung)
2529 * gtk/gtkuimanager.c (update_node): Fix tooltips. (#340527, Jon-Kare Hellan)
2531 * configure.in: Require Pango 1.13.0
2533 * gtk/gtknotebook.c:
2535 * gtk/gtkrange.c: Fix doc typos.
2537 2006-05-08 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
2539 * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_class_init):
2540 Corrected a duplicate word.
2542 * gtk/gtkrecentmanager.c (gtk_recent_manager_add_full): Corrected
2545 2006-05-07 Matthias Clasen <mclasen@redhat.com>
2547 * gtk/gtkrange.c (gtk_range_key_press): Chain up, to
2548 make bindings work. Noticed by Al Puzzuoli.
2550 2006-05-07 Matthias Clasen <mclasen@redhat.com>
2552 * gtk/gtkseparator.c:
2553 * gtk/gtkscrollbar.c:
2555 * gtk/gtkoldeditable.c:
2558 * gtk/gtkimcontext.c:
2560 * gtk/gtkscale.c: Make types abstract again.
2562 2006-05-06 Matthias Clasen <mclasen@redhat.com>
2564 * gdk/gdkwindow.c (gdk_window_get_toplevels): Fix a wrong
2565 reference in the docs. (#340870, Ed Catmur)
2567 2006-05-05 Christian Persch <chpe@cvs.gnome.org>
2569 * modules/printbackends/cups/gtkprintbackendcups.c:
2570 * modules/printbackends/lpr/gtkprintbackendlpr.c:
2571 * modules/printbackends/pdf/gtkprintbackendpdf.c: Always register
2572 the type with the type module, even if it had been registered
2573 before. Fixes bug #340676.
2575 2006-05-05 Matthias Clasen <mclasen@redhat.com>
2577 * gtk/gtkprintunixdialog.c: Use theme colors for
2578 the page layout indicator, and do RTL flipping for
2579 the collate indicator.
2581 2006-05-05 Matthias Clasen <mclasen@redhat.com>
2583 * configure.in: Require GLib 1.11.0
2585 * configure.in: Bump version
2587 * === Released 2.9.0 ===
2589 * configure.in: Require cairo 1.1.6
2591 * gtk/Makefile.am: Tweaks to make distcheck work.
2593 2006-05-05 Alexander Larsson <alexl@redhat.com>
2595 * gtk/gtkprintoperation-unix.c:
2596 Implement per-page paper sizes.
2598 * gtk/gtkprintoperation.c:
2599 Implement per-page paper sizes for pdf output.
2600 Make gtk_print_operation_set_pdf_target() work again
2602 * tests/Makefile.am:
2603 * tests/testprint.c:
2604 * tests/testprintfileoperation.[ch]:
2605 Add more test code for printing support.
2606 This tests per-page paper sizes & orientation and
2607 deriving from GtkPrintOperation.
2609 2006-05-04 Michael Emmel <mike.emmel@gmail.com>
2611 * gdk/directfb/gdkkeys-directfb.c: DIKI_ALTGR to compile with
2614 2006-05-04 Michael Natterer <mitch@imendio.com>
2616 * gtk/gtk.symbols: remove gtk_printer_set_backend so it compiles
2619 2006-05-04 Alexander Larsson <alexl@redhat.com>
2624 * gtk/gtkpagesetupunixdialog.c:
2625 * gtk/gtkprintunixdialog.c:
2626 Destroy backends when finalizing dialogs.
2627 Fix printer leak in selected_printer_changed.
2629 * gtk/gtkprintbackend.[ch]:
2630 Convert from interface to baseclass.
2631 Move printer hashtable here so that the baseclass can handle
2632 the slightly complicated ownership model.
2633 Add gtk_print_backend_destroy which runs the dispose method,
2634 causing the ref-cycles between the backend and its printers
2636 Add gtk_print_backend_unref_at_idle().
2638 * gtk/gtkprinter.[ch]:
2639 GtkPrinter objects now ref their backend so that its always
2640 availible, since its needed for the printer object to work.
2641 This causes a reference-cycle that is broken using
2642 gtk_print_backend_destroy.
2643 Add gtk_printer_compare.
2645 * gtk/gtkprintoperation-private.h:
2646 * gtk/gtkprintoperation-unix.c:
2647 * gtk/gtkprintoperation.c:
2648 Implement !show_dialog for unix.
2649 Make sure the print data is fully spooled before returning
2650 from a sync run_dialog.
2653 * modules/printbackends/cups/gtkcupsutils.[ch]:
2654 Add gtk_cups_request_ipp_add_strings
2656 * modules/printbackends/cups/gtkprintbackendcups.c:
2657 * modules/printbackends/cups/gtkprintercups.c:
2658 * modules/printbackends/lpr/gtkprintbackendlpr.c:
2659 * modules/printbackends/pdf/gtkprintbackendpdf.c:
2660 Convert backends to derive instead of implementing interface.
2661 Move common code into baseclass.
2663 Remove the printer polling in dispose, not finalize.
2664 In the cups watch, remove the backend at idle instead of
2665 immediately, since the unref can cause the module to be unloaded.
2666 Limit the number of printer attributes requested
2667 Get printer uri in initial printer listing so that we can use
2668 the printer object immediately.
2670 * tests/Makefile.am:
2671 * tests/testnouiprint.c:
2672 Add testcase for !show_dialog.
2674 2006-05-04 Matthias Clasen <mclasen@redhat.com>
2677 * gtk/gtkfilesystem.c:
2678 * gtk/gtkfilesystemunix.c:
2679 * gtk/gtkprintbackend.h:
2680 * gtk/gtkrecentchooserdefault.c:
2681 * gtk/gtkrecentchooserdefault.h:
2682 * gtk/paper_names_offsets.c: Make symbol list mstch reality.
2684 * gtk/Makefile.am: Fix a typo.
2686 * gdk/x11/Makefile.am (EXTRA_DIST): Add gdksettings.c
2688 2006-05-03 Matthias Clasen <mclasen@redhat.com>
2692 2006-05-04 Murray Cumming <murrayc@murrayc.com>
2694 * gtk/gtktreemodel.c: (gtk_tree_model_base_init): Changed the
2695 language of the signals documentation slightly. Bug #340205.
2697 2006-05-03 Federico Mena Quintero <federico@novell.com>
2699 Merged the federico-filename-entry branch, to fix bug #136541.
2700 Combined ChangeLogs:
2702 2006-04-17 Federico Mena Quintero <federico@novell.com>
2704 * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
2705 Oops, we *do* need to check that we are in OPEN mode before
2706 selecting the first row in the file list. See
2707 https://bugzilla.novell.com/show_bug.cgi?id=166906
2708 (gtk_file_chooser_default_get_paths): If we are in the case for
2709 the file list, and the list has no selected rows, jump to the case
2710 for the filename entry. This is so that
2712 1. The user types a filename in the SAVE filename entry
2715 2. He then double-clicks on a folder ("bar") in the file
2718 will yield the expected "bar/foo.txt" selection.
2720 2006-03-29 Federico Mena Quintero <federico@novell.com>
2722 * gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button
2725 * gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the
2726 location label bold.
2728 2006-03-29 Federico Mena Quintero <federico@novell.com>
2730 * gtk/gtkfilechooserdefault.c (location_mode_set): Just change the
2731 location_mode field if we are in SAVE/CREATE_FOLDER modes.
2732 (gtk_file_chooser_default_get_paths): Get the path based on the
2733 currently focused widget, or the last-focused widget. This is
2734 what we should have been doing in the beginning, but it worked out
2735 fine because we didn't have the possibility of a filename entry in
2737 (gtk_file_chooser_default_should_respond): Handle the case where
2738 the last focused widget is the location_entry.
2740 2006-03-28 Federico Mena Quintero <federico@novell.com>
2742 * gtk/gtkfilechoosersettings.[ch]: New files with a simple
2743 framework for saving/loading settings from the file chooser in
2744 $XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.
2746 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap):
2747 Save the current settings.
2748 (settings_save): New helper function. We save the location_mode
2749 and show_hidden flags.
2750 (gtk_file_chooser_default_map): Load the settings.
2751 (settings_load): New helper function.
2753 * gtk/gtkfilechooserentry.c
2754 (_gtk_file_chooser_entry_set_file_part): Oops, don't modify
2755 in_change. Our handlers are what set the file_part, so they
2756 *must* be run when we modify the text.
2758 2006-03-27 Federico Mena Quintero <federico@novell.com>
2760 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
2761 Removed the save_file_name_entry. We'll make this be the same as
2762 the location_entry widget.
2763 (struct _GtkFileChooserDefault): Leave only location_button,
2764 location_entry_box, location_label, location_entry. We'll use a
2765 single toggle button for the location entry, which will appear
2767 (struct _GtkFileChooserDefault): Added a
2768 processing_pending_selections flag.
2770 * gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the
2771 old location_entry if necessary, and hide the location toggle
2773 (update_chooser_entry): In multiple selection mode, just clear the
2775 (check_save_entry): Allow running in OPEN or SELECT_FOLDER modes
2776 if we are in LOCATION_MODE_FILENAME_ENTRY.
2777 (gtk_file_chooser_default_should_respond): Switch to a folder if
2778 the location_entry contains a folder name in OPEN and SAVE mode,
2779 not just SAVE mode. If the entry doesn't contain a folder name,
2780 but is otherwise well-formed, and we are in OPEN mode, return that
2781 we should respond with that filename.
2782 (gtk_file_chooser_default_initial_focus): Focus the location_entry
2784 (browse_widgets_create): Create the location_entry_box and the
2785 location_label here.
2786 (update_appearance): Call location_mode_set() when switching back
2787 to OPEN/SELECT_FOLDER mode. Hide the location_button when
2788 switching to SAVE/CREATE_FOLDER mode.
2789 (pending_select_paths_process): Turn the
2790 processing_pending_selections flag on and off around changes to
2791 the current selection. Don't special-case OPEN mode anymore,
2792 since the new flag will take care of things in
2793 update_chooser_entry().
2794 (update_chooser_entry): Don't do anything if
2795 processing_pending_selections is TRUE. This keeps the entry from
2796 being polluted when changing folders.
2797 (location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle
2798 between the path bar and the entry. In SAVE/CREATE_FOLDER modes, simply focus the
2800 (update_from_entry): Removed.
2801 (location_entry_create): Removed.
2802 (open_location_cb): Removed.
2803 (file_list_build_popup_menu): Don't add an "Open _Location" menu item.
2804 (location_entry_set_initial_text): Don't do anything if
2805 current_folder is NULL.
2807 * gtk/gtkfilechooserentry.c
2808 (_gtk_file_chooser_entry_set_file_part): Turn in_change on and off
2809 around the call to gtk_entry_set_text(). This makes completion
2810 not happen when the caller has explicitly set a name.
2812 2006-03-24 Federico Mena Quintero <federico@novell.com>
2814 * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
2815 Added fields location_mode_box, location_pathbar_radio,
2816 location_filename_radio, location_widget_box, location_label,
2817 location_entry. The radio buttons will switch between the pathbar
2818 and the location entry; the other boxes are for layout purposes.
2819 (enum LocationMode): New enum.
2820 (struct _GtkFileChooserDefault): Added a location_mode field.
2822 * gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the
2823 location radio buttons to switch between the pathbar and the
2824 location entry. Pack the browse_path_bar in the new
2825 location_widget_box instead of a generic hbox.
2826 (location_buttons_create): New function.
2827 (gtk_file_chooser_default_init): Initialize impl->location_mode.
2828 (location_switch_to_path_bar): New function.
2829 (location_switch_to_filename_entry): New function.
2831 * gtk/gtkfilechooserbutton.c (model_add_special): The display_name
2832 should not be const.
2834 2006-05-03 Matthias Clasen <mclasen@redhat.com>
2836 * gtk/gtkprintunixdialog.c: Replace the xpm collate icons
2837 by cairo drawing that respects themes.
2839 * gdk/quartz/Makefile.am (libgdk_quartz_la_SOURCES): Add
2840 missing files. (#340533, Ludovic Rousseau)
2842 * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
2843 cairo context here. (#340522, Christian Persch)
2845 * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
2846 use gtk_dialog_run for the error dialog, and improve the
2847 dialog in other ways. (#340510, Christian Persch)
2849 * gtk/gtkpagesetupunixdialog.c: Beautify the custom
2850 paper size dialog. (#339590, patch by Christian Persch)
2852 * gtk/gtkaccessible.c:
2853 * gtk/gtkclipboard.c:
2854 * gtk/gtkfilefilter.c:
2855 * gtk/gtkimmodule.c:
2856 * gtk/gtkmenubar.c: More G_DEFINE_TYPE conversion.
2858 * gtk/gtkwidget.c: Make GtkWidget abstract again.
2860 2006-05-02 Matthias Clasen <mclasen@redhat.com>
2862 * gtk/*.c: Use G_DEFINE_TYPE and g_type_register_static_simple()
2863 where applicable, for ~5000 lines of code reduction. This also
2864 reduces the size of the data section by ~9k. The overall library
2865 sizes shrinks a bit less, since the text section gets a bit
2868 2006-05-02 Kristian Rietveld <kris@imendio.com>
2870 * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set tmpnode to
2871 the return value of the _gtk_rbtree_insert* functions, since that
2872 is the node we really want to check for visibilty.
2874 2006-05-02 Matthias Clasen <mclasen@redhat.com>
2876 * gtk/gtkprinter.[hc]: Don't use virtual as a parameter name.
2877 (#340394, Christian Persch)
2879 2006-05-02 Christian Persch <chpe@cvs.gnome.org>
2881 * gtk/gtkpagesetupunixdialog.c:
2882 * gtk/gtkprintcontext.c:
2884 * gtk/gtkprinteroptionwidget.c:
2885 * gtk/gtkprintjob.c:
2886 * gtk/gtkprintoperation-unix.c:
2887 * gtk/gtkprintoperation.c:
2888 * gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv
2889 multiple times in the same function. Bug #340288.
2891 2006-05-02 Michael Natterer <mitch@imendio.com>
2893 * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the
2894 inablity to do height-for-width text layout and suggest to use
2895 gtk_widget_set_size_request() for getting a label that wraps at
2896 some specific position.
2898 2006-05-02 Kristian Rietveld <kris@imendio.com>
2900 * ChangeLog.gtk-async-file-chooser: added ChangeLog entries from
2901 the kris-async-branch.
2903 * Makefile.am: updated EXTRA_DIST
2905 2006-05-02 Alexander Larsson <alexl@redhat.com>
2907 * ChangeLog.gtk-printing:
2908 * Makefile.am (EXTRA_DIST):
2909 Add ChangeLog.gtk-printing
2911 2006-05-01 Matthias Clasen <mclasen@localhost.localdomain>
2915 2006-05-02 Kristian Rietveld <kris@imendio.com>
2918 * configure.in: Up ABI version to 2.10.0 (by Matthias' request).
2920 2006-05-01 Kristian Rietveld <kris@imendio.com>
2922 Merge of the GTK+ asynchronous file chooser branch. Please see
2923 the kris-asynch-branch for more detailed ChangeLog entries.
2925 * configure.in: increase binary version to 2.9.0.
2928 * gtk/gtkfilechooser.c:
2929 * gtk/gtkfilechooserbutton.c:
2930 * gtk/gtkfilechooserdefault.c:
2931 * gtk/gtkfilechooserdialog.c:
2932 * gtk/gtkfilechooserembed.c:
2933 * gtk/gtkfilechooserembed.h:
2934 * gtk/gtkfilechooserentry.c:
2935 * gtk/gtkfilechooserentry.h:
2936 * gtk/gtkfilechooserprivate.h:
2937 * gtk/gtkfilesystem.c:
2938 * gtk/gtkfilesystem.h:
2939 * gtk/gtkfilesystemmodel.c:
2940 * gtk/gtkfilesystemmodel.h:
2941 * gtk/gtkfilesystemunix.c:
2944 Merge from kris-async-branch.
2946 2006-05-01 Matthias Clasen <mclasen@redhat.com>
2950 2006-04-30 Matthias Clasen <mclasen@redhat.com>
2952 * gtk/gtktreemodel.c (gtk_tree_model_base_init): Document
2953 GtkTreeModel signals.
2955 2006-04-19 Michael Emmel <mike.emmel@gmail.com>
2957 * gdk/directfb/gdkdrawable-directfb.c: removed all subtracting one on
2960 2006-04-30 Kristian Rietveld <kris@imendio.com>
2962 Fix for #340200, spotted by Torsten Schoenfeld.
2964 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): fix up logic
2965 calculating the level indentation,
2966 (gtk_tree_view_start_editing): remove code calculating the
2967 level indentation, since _get_cell_area() takes care of this for us.
2969 2006-04-30 Matthias Clasen <mclasen@redhat.com>
2971 Fix problems with setting symbolic colors from rc files.
2972 (#338345, Benjamin Berg)
2974 * gtk/gtkrc.c (gtk_rc_settings_changed, gtk_rc_font_name_changed)
2975 (gtk_rc_color_hash_changed, gtk_rc_reparse_all_for_settings): Don't
2976 freeze notification for settings changes while parsing; instead
2977 manually avoid recursion, and update the color hashes.
2979 2006-04-30 Matthias Clasen <mclasen@redhat.com>
2981 * gtk/gtksettings.c (gtk_settings_class_init): Change the default
2982 value of the gtk-color-scheme setting to "".
2984 * gtk/gtkprinteroption.c:
2985 * gtk/gtkprinteroptionwidget.c:
2986 * gtk/gtkprintunixdialog.c: Improve the print dialog layout,
2987 mark some more strings for translation. (#340139, Christian Persch)
2989 * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
2990 of the ::size-changed signal, and improve its documentation.
2991 (#340112, Christian Persch)
2993 2006-04-29 Behdad Esfahbod <behdad@gnome.org>
2995 * gtk/gtkwidget.c (gtk_widget_create_pango_layout)
2996 (gtk_widget_get/create_pango_context): Change colormap to font map in
2999 2006-04-29 Matthias Clasen <mclasen@redhat.com>
3002 * gtk/gtkstatusicon.h:
3003 * gtk/gtkstatusicon.c (gtk_status_icon_position_menu): Add a menu
3004 position function for use with popups on status icons. (#334573,
3007 * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism. (#340055,
3010 2006-04-28 Matthias Clasen <mclasen@redhat.com>
3012 * gtk/gtkcellrenderertext.c (get_size): Use _static variants when
3013 copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
3015 2006-04-28 Behdad Esfahbod <behdad@gnome.org>
3017 * gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
3020 2006-04-28 Matthias Clasen <mclasen@redhat.com>
3022 * gtk/gtktreeview.c (gtk_tree_view_drag_begin): Don't force
3023 the standard DND icon if the user has a custom DND source.
3024 (#339522, Joe Wreschnig)
3026 2006-04-28 Michael Natterer <mitch@imendio.com>
3028 * gtk/gtktextbuffer.c (create_clipboard_contents_buffer): keep a
3029 reference to the source buffer while the clipboard contents buffer
3030 exists, because it is needed for serializing the contents buffer.
3031 Makes copying from the contents buffer possible even after the
3032 resp. text view is destroyed (for example when there is a
3033 clipboard manager running on app exit) (bug #339195).
3035 2006-04-27 Behdad Esfahbod <behdad@gnome.org>
3037 * gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
3038 before dividing by PANGO_SCALE. (#334582)
3040 2006-04-27 Matthias Clasen <mclasen@redhat.com>
3042 * gtk/gtkentry.c (popup_position_func): Improve positioning
3043 of the menu when popped up by keynav. (#334987, Christian
3046 * gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
3047 of being called after the drag is cancelled. (#339224,
3050 * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
3051 Use XFixes only if it is available. (#339839, Marko Anastasov)
3053 2006-04-26 Federico Mena Quintero <federico@novell.com>
3055 * gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional
3056 on having a GTK_RESPONSE_CANCEL button -> end the idiocy. Fixes
3059 2006-04-26 Kristian Rietveld <kris@imendio.com>
3061 * gtk/gtktreeview.c (node_is_visible): new function,
3062 (validate_visible_area): when a node is validated, only queue a
3063 redraw for that node, not for the entire widget (a redraw for the
3064 entire widget is only needed when the sizes change, and
3065 _queue_resize() will take care of that),
3066 (do_validate_rows): do not queue a redraw, redraws are only needed
3067 for changes in the visible area and validate_visible_area() takes
3069 (gtk_tree_view_row_inserted): for fixed height mode, only queue
3070 a resize and redraw if the node is visible, else no redraw is needed.
3072 2006-04-26 Kristian Rietveld <kris@imendio.com>
3074 If this new "row-ending-details" property is turned on, more
3075 detailed "details" will be passed to the theme engine for drawing
3076 the background, drop indicator and focus rectangle. Requirement is
3077 that the theme engine supports these details. (#333760).
3079 * gtk/gtktreeview.c (gtk_tree_view_class_init): add row-ending-details
3081 (gtk_tree_view_bin_expose): pass more detailed detail to
3082 gtk_paint_flat_box() if the property is turned on,
3083 (gtk_tree_view_bin_expose): likewise for the drop indicator,
3084 (gtk_tree_view_bin_expose): likewise for the focus rectangle.
3086 2006-04-26 Kristian Rietveld <kris@imendio.com>
3088 New "show-expanders" and "level-indentation" properties, which can
3089 be used for customizing the tree view. (For example to do
3090 grouping as demonstrated in the test application).
3091 Discussion in #80869.
3093 * gtk/gtktreeprivate.h: add level_indentation field.
3095 * gtk/gtktreeview.c (gtk_tree_view_class_init),
3096 (gtk_tree_view_init), (gtk_tree_view_set_property),
3097 (gtk_tree_view_get_property): add the properties to the object,
3098 (gtk_tree_view_button_press), (do_prelight),
3099 (gtk_tree_view_bin_expose), (validate_row),
3100 (gtk_tree_view_discover_dirty_iter), (gtk_tree_view_get_cell_area),
3101 (gtk_tree_view_create_row_drag_icon): take the new properties
3103 (gtk_tree_view_start_editing): fix cell placement code.
3105 * tests/testgrouping.c: new test application, showing how to
3108 * tests/Makefile.am: updated.
3110 2006-04-25 Matthias Clasen <mclasen@redhat.com>
3112 * gdk/gdk.symbols: Add gdk_screen_is_composited
3114 * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add docs.
3116 * gtk/gtkprintoperation.c: Add docs.
3118 Tue Apr 25 10:25:28 2006 Søren Sandmann <sandmann@redhat.com>
3120 * tests/testgtk.c (create_alpha_window): Create 'composited' label.
3122 * tests/testgtk.c (on_composited_changed): New function, change
3123 the label to say whether the screen is composited or not.
3125 * gtk/gtkwindow.c (gtk_window_on_composited_changed): When
3126 composited status change, invalidate the window and propagate the signal;.
3128 * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
3129 if reset_type_hint is TRUE.
3131 * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
3132 the old hints, store a shadow copy in the public window->type_hint
3133 bitfield, otherwise set this field to normal. Set the private
3134 field to the type hint.
3136 * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint.
3138 * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
3139 "reset_type_hint" indicating whether the type hint needs to be
3140 reset. New field type_hint containing a GdkWindowTypeHint.
3142 * gtk/gtkwidget.c (propagate_composited_changed): New function to
3143 propagate changes in composited status.
3144 (gtk_widget_class_init): Add composited_changed signal.
3146 * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.
3148 * gtk/gtkwidget.c (gtk_widget_is_composited): New function.
3150 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.
3152 * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint
3154 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
3155 the item belongs to a menubar. Set the type_hint appropriately
3156 depending on the outcome.
3158 * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.
3160 * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
3161 changed on the attach widget.
3163 * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
3164 set the transient_for property for menus.
3166 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.
3168 * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
3169 transient for the toplevel.
3171 * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
3172 transient-for, for the popup window.
3174 * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
3177 * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
3178 for new window types.
3180 * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
3181 New function called whenever the compositing manager comes and goes.
3183 * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.
3185 * gdk/x11/gdkscreen-x11.c
3186 (_gdk_x11_screen_request_cm_notification, make_cm_atom,
3187 check_is_composited): New functions
3189 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
3190 _gdk_x11_screen_process_owner_change when an
3191 XFixesSelectionNotifyEvent is received.
3193 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
3194 _gdk_x11_screen_request_cm_notification() on all screens.
3196 * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
3199 * gdk/gdkscreen.c (gdk_screen_class_init): New signal,
3200 'composited-changed'.
3202 * gdk/gdkwindow.h: Add new EWMH window types.
3204 * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
3206 2006-04-25 Matthias Clasen <mclasen@redhat.com>
3208 * modules/printbackends/cups/gtkprintbackendcups.c:
3209 Add some more translatable PPD option names.
3211 2006-04-24 Matthias Clasen <mclasen@redhat.com>
3214 * po-properties/POTFILES.in: Updates
3216 * gtk/paper_names.c: Declare PaperInfo here.
3218 * gtk/gen-paper-names.c: Add a prefix to gettext msgids.
3220 * gtk/paper_names_offsets.c: Regenerated.
3222 * gtk/gtkpapersize.c (gtk_paper_size_get_display_name):
3223 Use g_strip_context() to strip the prefix.
3225 2006-04-24 Matthias Clasen <mclasen@redhat.com>
3227 * gtk/gtkfontbutton.c: Small doc fixes.
3229 * gtk/gtkprintunixdialog.h:
3230 * gtk/gtkpagesetupunixdialog.h: Fix includes (#338665)
3232 * gtk/gtkprintsettings.h (GtkPageRange): Declare in a way grokked by gtk-doc.
3234 * gdk/gdkregion-generic.c: Documentation fixes.
3236 * gdk/directfb/gdkmain-directfb.c: Make the comment not look like
3239 * gtk/gtkprintunixdialog.c: Add docs.
3241 * gtk/gtkstatusicon.c (gtk_status_icon_get_visible): Typo fix.
3243 2006-04-24 Alexander Larsson <alexl@redhat.com>
3246 Don't ref the backend since the backend owns the printer.
3248 2006-04-24 Alexander Larsson <alexl@redhat.com>
3250 * gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers):
3253 2006-04-24 Alexander Larsson <alexl@redhat.com>
3255 * gtk/gtkprintunixdialog.c (create_page_setup_page):
3256 Even/Odd Pages -> Even/Odd Sheets
3258 2006-04-24 Matthias Clasen <mclasen@redhat.com>
3261 * gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the
3262 gtk_print_operation_run() code and add an _async version.
3264 * gtk/gtkprintoperation-private.h:
3265 * gtk/gtkprintoperation-unix.c
3266 (_gtk_print_operation_platform_backend_run_dialog_async)
3267 (gtk_print_run_page_setup_dialog_async): Variants of the run functions
3268 which don't call gtk_dialog_run(), but only show the dialog and return,
3269 and handle the response in a signal handler.
3271 * gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async)
3272 (_gtk_print_operation_platform_backend_run_dialog_async): Implement these
3273 by calling the sync versions.
3275 * gtk/gtkprintoperation-unix.c: Cleanups.
3277 * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup):
3278 Remove redundant code.
3280 * gtk/Makefile.am: Install gtkprintjob.h as Unix-specific print API.
3282 * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
3283 Return a copy of the original page setup if the dialog was canceled.
3285 2006-04-24 Alexander Larsson <alexl@redhat.com>
3287 * gtk/gtkprintjob.h:
3288 Declare GtkPrintJob.
3290 * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_settings):
3291 Change g_return_if_fail to g_return_val_if_fail.
3293 2006-04-24 Alexander Larsson <alexl@redhat.com>
3296 Check for cairo-pdf.h.
3297 Check for cairo-ps.h on non-win32.
3299 2006-04-24 Matthias Clasen <mclasen@redhat.com>
3301 * gtk/gtkclipboard.h:
3303 * gtk/gtkprintsettings.h:
3304 * gtk/gtkprintsettings.c: Match parameter names with the headers.
3306 * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
3309 * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
3310 * gtk/gtkstatusicon.c (gtk_status_icon_get_storage_type):
3311 * gtk/gtktreeview.c (gtk_tree_view_set_search_position_func):
3312 * gtk/gtktreeview.c (gtk_tree_view_get_headers_clickable):
3313 * gtk/gtkcellrendererspin.c (gtk_cell_renderer_spin_new):
3314 * gtk/gtkmenu.c (gtk_menu_get_for_attach_widget): Fix the docs.
3316 * gtk/gtkprinter.h: Don't declare GtkPrintJob here.
3317 * gtk/gtkprinter-private.h: Instead include gtkprintjob.h.
3319 2006-04-23 Matthias Clasen <mclasen@redhat.com>
3321 * gtk/gtkprinter-private.h:
3322 * gtk/gtkprintbackend.h:
3323 * gtk/gtkprinter.[hc]:
3324 * gtk/gtkprintjob.[hc]: Use g types, add documentation, and some
3327 * gtk/gtkaboutdialog.c (activate_url): Avoid a compiler warning.
3329 * gtk/gtkpapersize.[hc]: Use g types, add documentation.
3331 * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_get_settings):
3332 Use g_return_val_if_fail in non-void functions.
3334 * gtk/Makefile.am: Add gtkprintutils.[hc]
3336 * gtk/gtkprintutils.[hc]: New files, move the unit conversion
3339 * gtk/gtkpagesetupunixdialog.c:
3340 * gtk/gtkprintsettings.c:
3341 * gtk/gtkpagesetup.c:
3342 * gtk/gtkpapersize.c: Replace all static copies of to_mm/from_mm
3343 by the copies in gtkprintutils.c.
3345 * gtk/gtkpagesetup.[hc]: Use g types, add documentation.
3347 * gtk/gtkprintsettings.c: More documentation
3349 2006-04-22 Tor Lillqvist <tml@novell.com>
3351 * gtk/Makefile.am (gtk_private_h_sources): Small workaround for
3352 weird bug in some versions of Automake at least on Windows.
3354 2006-04-21 Alexander Larsson <alexl@redhat.com>
3356 Merge the gtk-printing branch.
3357 For more detailed ChangeLog entries, see the ChangeLog.gtk-printing.
3362 * docs/tools/widgets.c:
3363 * gtk+-unix-print-2.0.pc.in:
3365 * gtk/gen-paper-names.c:
3369 * gtk/gtkiconfactory.c:
3370 * gtk/gtkmarshalers.list:
3371 * gtk/gtkpagesetup.[ch]:
3372 * gtk/gtkpagesetupunixdialog.[ch]:
3373 * gtk/gtkpapersize.[ch]:
3374 * gtk/gtkprint-win32.[ch]:
3375 * gtk/gtkprintbackend.[ch]:
3376 * gtk/gtkprintcontext.[ch]:
3377 * gtk/gtkprinter-private.h:
3378 * gtk/gtkprinter.[ch]:
3379 * gtk/gtkprinteroption.[ch]:
3380 * gtk/gtkprinteroptionset.[ch]:
3381 * gtk/gtkprinteroptionwidget.[ch]:
3382 * gtk/gtkprintjob.[ch]:
3383 * gtk/gtkprintoperation-private.h:
3384 * gtk/gtkprintoperation-unix.c:
3385 * gtk/gtkprintoperation-win32.c:
3386 * gtk/gtkprintoperation.[ch]:
3387 * gtk/gtkprintsettings.[ch]:
3388 * gtk/gtkprintunixdialog.[ch]:
3389 * gtk/paper_names.c:
3390 * gtk/paper_names_offsets.c:
3391 Platform independent printing API and implementations
3392 for unix and windows.
3395 * gtk/stock-icons/24/gtk-orientation-landscape.png:
3396 * gtk/stock-icons/24/gtk-orientation-portrait.png:
3397 * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
3398 Add stock icons for page orientation.
3400 * modules/Makefile.am:
3401 * modules/printbackends/Makefile.am:
3402 * modules/printbackends/cups/Makefile.am:
3403 * modules/printbackends/cups/gtkcupsutils.[ch]:
3404 * modules/printbackends/cups/gtkprintbackendcups.[ch]:
3405 * modules/printbackends/cups/gtkprintercups.[ch]:
3407 Cups printing backend for unix.
3409 * modules/printbackends/lpr/Makefile.am:
3410 * modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
3411 lpr printing backend for unix.
3413 * modules/printbackends/pdf/Makefile.am:
3414 * modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
3415 print-to-pdf printing backend for unix.
3418 * tests/Makefile.am:
3419 * tests/print-editor.c:
3420 Test application for printing.
3423 * gdk/win32/gdkevents-win32.c:
3424 * gdk/win32/gdkwin32.h:
3425 Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
3426 mainloop while displaying a win32 common dialog.
3428 * gdk/directfb/Makefile.am:
3431 2006-04-20 Paolo Borelli <pborelli@katamail.com>
3433 * gtk/gtkcombobox.c: plug small leak (#339132)
3434 * tests/testcombo.c: ditto
3436 2006-04-19 Michael Emmel <mike.emmel@gmail.com>
3438 * gdk/directfb/gdkdrawable-directfb.c: fixed off by one error in
3439 clip patch from (#330824)
3441 2006-04-19 Murray Cumming <murrayc@murrayc.com>
3443 * gtk/gtkfilechooserbutton.c: _GtkFileChooserButtonPrivate:
3444 Added has_title flag so we can remember whether a title has
3446 (gtk_file_chooser_button_constructor): If no title has been
3447 set then set it to the default title. This means that the
3448 default title will be used if the dialog was instantiated with
3449 g_object_new(), without using the gtk_file_chooser_button_new()
3450 convenience function. This helps language bindings.
3451 (gtk_file_chooser_button_set_property): Set has_title when
3454 2006-04-19 Tor Lillqvist <tml@novell.com>
3456 * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_NUMPAD[0-9]
3457 to GDK_KP_[0-9]. (#337562)
3459 2006-04-18 Matthias Clasen <mclasen@redhat.com>
3461 * gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than
3462 using a fixed array of size 128.
3464 * gtk/gtkiconcache.c: Apply a patch by Paolo Borelli to factor
3465 out a strip_suffix() function and save some memory. (#338307)
3467 2006-04-18 Carlos Garnacho <carlosg@gnome.org>
3469 * gtk/gtknotebook.c (gtk_notebook_pages_allocate): removed wrong
3470 condition check that caused tab labels not to be drawn under certain
3471 circumstances. Bug #338734.
3473 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
3475 * configure.in: Remove obsolete entry for no_NO
3476 * po-properties/no.po: And the translation
3477 * po/no.po: And the translation.
3479 2006-04-17 Matthias Clasen <mclasen@redhat.com>
3481 * demos/gtk-demo/colorsel.c (expose_event_callback): Small formatting
3484 2006-04-17 Christian Persch <chpe@cvs.gnome.org>
3486 * gtk/gtkdnd.c: (gtk_drag_dest_set), (gtk_drag_dest_set_proxy): Fix
3487 UMR in gtk_drag_dest_motion. Bug #338725.
3489 2006-04-17 Matthias Clasen <mclasen@redhat.com>
3491 * gtk/gtksettings.c (gtk_settings_class_init):
3492 * gtk/gtkentry.c (gtk_entry_class_init): Fix typos
3493 in property blurbs. (#338772, Clytie Siddall)
3495 2006-04-16 Richard Hult <richard@imendio.com>
3497 * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_draw_drawable): Add check
3498 for source being a window.
3500 * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_get_pointer):
3501 Don't assert on window not being the root window.
3503 2006-04-16 Richard Hult <richard@imendio.com>
3505 * gdk/quartz/gdkdrawable-quartz.c: Remove leading cairo/ in include.
3507 2006-04-16 Matthias Clasen <mclasen@redhat.com>
3509 * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
3510 possible array overrun. (Coverity)
3512 * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
3513 possible array overrun. (Coverity)
3515 * gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
3516 Avoid a NULL dereference. (Coverity)
3518 2006-04-15 Matthias Clasen <mclasen@redhat.com>
3520 * gtk/gtkrecentmanager.c: Make filename_warning() static,
3521 and use caseless matching when looking for file:/.
3522 (#336772, Morten Welinder)
3524 2006-04-13 Anders Carlsson <andersca@imendio.com>
3526 * gdk/quartz/gdkevents-quartz.c:
3527 (synthesize_enter_event):
3528 (synthesize_leave_event):
3529 (synthesize_crossing_events):
3530 Take grabs into account.
3532 (find_window_for_event):
3533 Only return grabbed window when owner_events is FALSE.
3535 2006-04-13 Matthias Clasen <mclasen@redhat.com>
3537 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
3538 to avoid a possible NULL dereference. (Coverity)
3540 2006-04-12 Matthias Clasen <mclasen@redhat.com>
3542 * gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't
3543 allow passing NULL for x1 or x2, adjust callers.
3545 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes):
3546 Reorganize to avoid a possible NULL pointer dereference. (Coverity)
3548 * gtk/gtknotebook.c (gtk_notebook_page_allocate): Reorganize
3549 to avoid a possible NULL dereference. (Coverity)
3551 * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
3552 closed displays correctly. (Coverity)
3554 * contrib/gdk-pixbuf-xlib/Makefile.am:
3555 * modules/engines/pixbuf/Makefile.am
3556 * gdk-pixbuf/Makefile.am: Build fixes for Cygwin. (#338262)
3558 * gdk/x11/gdkselection-x11.c (make_list): Make this work
3559 for list == NULL. (Coverity)
3561 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_entries_for_keycode):
3562 Rearrange the code a bit.
3564 * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
3565 Handle _gtk_text_line_get_data() returning NULL in all
3568 * gtk/gtkuimanager.c: Make find_menu_position and
3569 find_toolbar_position void. (#338100)
3571 2006-04-12 Anders Carlsson <andersca@imendio.com>
3573 * gdk/quartz/gdkkeys-quartz.c:
3574 Handle page up and page down.
3576 2006-04-12 Anders Carlsson <andersca@imendio.com>
3578 * gdk/quartz/gdkdrawable-quartz.c:
3579 (_gdk_quartz_drawable_release_context):
3580 Don't flush if we're inside a begin_paint/end_paint pair.
3582 * gdk/quartz/gdkwindow-quartz.c:
3583 (gdk_window_impl_quartz_end_paint):
3584 Free clip region here.
3586 2006-04-12 Matthias Clasen <mclasen@redhat.com>
3588 * gtk/gtkuimanager.c (start_element_handler): Don't pass
3589 a negative value as string length to get_child_node(). (Coverity)
3591 * gtk/gtkicontheme.c (insert_theme): Handle dirs == NULL
3592 gracefully. (Coverity)
3594 * gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
3595 if the widget is not a child. (Coverity)
3597 2006-04-11 Matthias Clasen <mclasen@redhat.com>
3599 * gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error
3602 * gtk/gtktextview.c (selection_motion_event_handler): Remove
3603 some unused variables.
3605 * gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
3606 a patch from David Trowbridge to improve the positioning of the
3607 search popup. (#338047)
3609 2006-04-11 Emmanuele Bassi <ebassi@cvs.gnome.org>
3611 * gtk/gtkrecentmanager.c (gtk_recent_manager_init)
3612 (gtk_recent_manager_new): Remove the unneeded setting of the
3613 storage file inside the constructor. (Murray Cumming)
3614 (build_recent_items_list): Reset the dirty bit when done rebuilding
3615 the list from the storage file.
3617 2006-04-11 Matthias Clasen <mclasen@redhat.com>
3619 * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
3622 * gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
3623 dereference info before checking it for NULL. (Coverity)
3625 2006-04-11 Anders Carlsson <andersca@mac.imendio.com>
3627 * gdk/quartz/GdkQuartzView.c:
3628 (-[GdkQuartzView drawRect:]):
3629 * gdk/quartz/gdkdrawable-quartz.c:
3630 (gdk_quartz_ref_cairo_surface):
3631 (_gdk_quartz_drawable_get_context):
3632 (_gdk_quartz_drawable_release_context):
3633 * gdk/quartz/gdkwindow-quartz.c:
3634 (gdk_window_impl_quartz_finalize):
3635 (gdk_window_impl_quartz_class_init):
3636 (gdk_window_impl_quartz_begin_paint_region):
3637 (gdk_window_impl_quartz_end_paint):
3638 (gdk_window_impl_quartz_invalidate_maybe_recurse):
3639 (gdk_window_impl_quartz_process_updates):
3640 (gdk_window_impl_quartz_paintable_init):
3641 (_gdk_window_impl_quartz_get_type):
3642 * gdk/quartz/gdkwindow-quartz.h:
3643 Have GdkWindowImplQuartz implement GdkPaintable.
3645 2006-04-10 Michael Natterer <mitch@imendio.com>
3647 * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
3648 pasted rich text should not be affected by tags that are active at
3649 the insertion point. Therefore, remove and remember all active
3650 tags, and re-apply them left and right of the inserted text after
3651 pasting. Fixes bug #337653.
3653 2006-04-11 Anders Carlsson <andersca@imendio.com>
3655 * gdk/gdkinternals.h:
3657 (_gdk_paintable_get_type):
3658 (gdk_window_begin_paint_region):
3659 (gdk_window_end_paint):
3660 (gdk_window_process_updates):
3661 (gdk_window_invalidate_maybe_recurse):
3662 Add new GdkPaintable interface which implementation objects can
3663 implement in order to override gdk painting functions.
3665 2006-04-10 Vladimer Sichinava <vlsichinava@gmail.com>
3667 * configure.in: Added "ka" (Georgian) to ALL_LINGUAS
3669 2006-04-07 Hans Breuer <hans@breuer.org>
3671 * gtk/makefile.msc.in tests/makefile.msc : updated
3673 2006-04-06 Tor Lillqvist <tml@novell.com>
3675 Correct the appearance of non-square icons and cursors: pad them
3676 to square so that Windows won't stretch them.
3678 * gdk/win32/gdkcursor-win32.c (create_alpha_bitmap)
3679 (create_color_bitmap): Always create square bitmaps, take only
3680 side length as argument.
3681 (pixbuf_to_hbitmaps_alpha_winxp, pixbuf_to_hbitmaps_normal):
3682 Corresponding changes.
3684 2006-04-05 Matthias Clasen <mclasen@redhat.com>
3686 * gtk/gtktextview.c (text_window_realize): Lower the window, to
3687 prevent late-constructed text windows from covering child
3688 widgets. (#336796, Yevgen Muntyan)
3690 * gtk/gtkmain.c (gtk_grab_add, gtk_grab_remove, gtk_grab_notify)
3691 (gtk_grab_notify_foreach): Rework the code which emits ::grab-notify
3692 signals to ensure that we emit enough signals. Also optimize the
3693 code to not do unnecessary tree walking.
3695 * gtk/gtkwidget.c (gtk_widget_class_init): Document ::grab-notify.
3697 2006-04-05 Paolo Borelli <pborelli@katamail.com>
3699 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle the case of \r
3700 and \n split across lines. Bug #337022.
3701 * tests/testtextbuffer.c: add unit test.
3703 Tue Apr 4 12:25:36 2006 Søren Sandmann <sandmann@redhat.com>
3705 * gdk/x11/gdkimage-x11.c (gdk_image_class_init): Add "_private" to
3708 2006-04-04 Matthias Clasen <mclasen@redhat.com>
3711 * gdk/gdkdisplaymanager.c:
3717 * gdk/x11/gdkcolor-x11.c:
3718 * gdk/x11/gdkdisplay-x11.c:
3719 * gdk/x11/gdkdnd-x11.c:
3720 * gdk/x11/gdkdrawable-x11.c:
3721 * gdk/x11/gdkgc-x11.c:
3722 * gdk/x11/gdkimage-x11.c:
3723 * gdk/x11/gdkinput.c:
3724 * gdk/x11/gdkpixmap-x11.c:
3725 * gdk/x11/gdkscreen-x11.c:
3726 * gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE.
3728 * gdk/x11/gdkcolor-x11.c:
3729 * gdk/x11/gdkdnd-x11.c:
3730 * gdk/x11/gdkimage-x11.c: Use instance private data.
3732 2006-04-03 Matthias Clasen <mclasen@redhat.com>
3734 * gdk/gdkrgb.c: Get rid of a duplicate copy of the visual names.
3736 * gtk/gtkmain.c: Make gtk_args const.
3738 * gtk/gtkicontheme.c (pixbuf_supports_svg): Save one static.
3740 * gtk/gtkrecentchooser.c (gtk_recent_chooser_error_quark):
3741 * gtk/gtkrecentmanager.c (gtk_recent_manager_error_quark):
3742 * gtk/gtkfilechooser.c (gtk_file_chooser_error_quark):
3743 * gtk/gtkfilesystem.c (gtk_file_system_error_quark):
3744 * gtk/gtkicontheme.c (gtk_icon_theme_error_quark): No point
3745 in making the error path fast by caching quarks.
3747 * gtk/gtkfilesel.c (no_stat_dirs): Avoid relocation.
3749 * gdk/gdk.c: Here too.
3751 * gdk/gdkinternals.h:
3752 * gdk/x11/gdkmain-x11.c:
3753 * gdk/win32/gdkmain-win32.c:
3754 * gdk/directfb/gdkdisplay-directfb.c:
3755 * gdk/quartz/gdkmain-quartz.c: Make _gdk_windowing_args const.
3757 * gdk/win32/gdkpixmap-win32.c: Include gdkscreen.h (#337032,
3760 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Mention
3761 that %NULL is allowed. (#336937, Christian Neumair)
3763 * gtk/gtkmain.c: Get rid of an unnecessary static variable.
3765 * gtk/gtktextlayout.c: Fix a warning.
3767 * gtk/gtktextsegment.h:
3768 * gtk/gtktextsegment.c:
3769 * gtk/gtktextchild.c:
3770 * gtk/gtktextbtree.c:
3771 * gtk/gtktextmark.c:
3772 * gtk/gtktexttypes.h: Make the segment class pointers const.
3774 * gtk/gtktextbufferserialize.c: Make parser struct const.
3776 * gtk/gtkuimanager.c: Make parser struct const.
3778 * gtk/gtklinkbutton.c: Make the default colors const.
3780 * gtk/gtkuimanager.c: Avoid relocations.
3782 * gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
3785 * gtk/gtktext.c (gtk_text_key_press): Avoid relocations.
3787 * gtk/gtkrc.c (gtk_rc_add_initial_default_files)
3788 (gtk_rc_add_default_file): Allocate the gtk_rc_default_files array
3791 2006-04-02 Matthias Clasen <mclasen@redhat.com>
3793 * gtk/gtkrc.c: Avoid relocations for the array of symbol names.
3795 * gtk/gtkruler.c: Remove unused strings from the ruler_metrics
3796 structs, to avoid relocations. (#336917, Stephane Chauveau)
3798 2006-04-02 Emmanuele Bassi <ebassi@cvs.gnome.org>
3800 * gtk/gtkrecentmanager.c (gtk_recent_manager_set_filename): Build
3801 the items list after setting the storage file.
3803 * gtk/gtkrecentmanager.c (display_closed): Use the right string
3804 for unsetting the default manager object from the screen.
3806 2006-04-01 Behdad Esfahbod <behdad@gnome.org>
3808 * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Oops. (#336784)
3810 2006-04-01 Behdad Esfahbod <behdad@gnome.org>
3812 * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Use a GString
3813 instead of static buffer to reduce .bss by 8kb. (#336784)
3815 2006-04-01 Dom Lachowicz <cinamod@hotmail.com>
3817 * modules/engines/ms-windows/msw_style.c (draw_hline): Emulate WinXP's
3818 drawing of menu separators
3820 2006-03-31 Behdad Esfahbod <behdad@gnome.org>
3822 * gtk/gtkrecentmanager.c: Convert filenames to UTF-8 before printing
3823 them out in warning messages. (#336770, Morten Welinder)
3825 2006-03-31 Behdad Esfahbod <behdad@gnome.org>
3827 * gtk/gtkrecentmanager.c (gtk_recent_info_last_application): Update
3828 last_stamp inside the look. (#336771, Morten Welinder)
3830 2006-03-31 Behdad Esfahbod <behdad@gnome.org>
3832 * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_get_property):
3833 Add missing break. (#336769, Morten Welinder)
3835 2006-03-31 Behdad Esfahbod <behdad@gnome.org>
3837 * gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
3838 * gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
3839 instead of FALSE in g_return_val_if_fail in a pointer-returning
3840 function. (#336764, Morten Welinder)
3842 2006-04-01 Gora Mohanty <gmohanty@cvs.gnome.org>
3844 * configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
3846 2006-03-31 Matthias Clasen <mclasen@redhat.com>
3848 * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
3849 assert that the age is positive. (#336773, Morten Welinder)
3851 2006-03-31 Matthias Clasen <mclasen@redhat.com>
3853 * gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile
3854 parser in the error case.
3856 * gtk/gtkicontheme.c (load_icon_data, free_unthemed_icon)
3857 (icon_data_free, load_themes):
3858 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon_data): Use the slice
3859 allocator for GtkIconData and UnthemedIcon structs.
3861 2006-03-30 Behdad Esfahbod <behdad@gnome.org>
3863 * gtk/gtkcalendar.c: Fix translation comments for localizable
3864 digit formats. (fixes bug #336650)
3866 2006-03-30 Matthias Clasen <mclasen@redhat.com>
3868 * gtk/gtkrecentmanager.h (struct _GtkRecentData): Fix the doc
3871 * gtk/gtkrecentmanager.c (gtk_recent_manager_has_item)
3872 (gtk_recent_manager_purge_items, gtk_recent_manager_lookup_item)
3873 (gtk_recent_manager_get_limit, gtk_recent_manager_add_full)
3874 (gtk_recent_manager_get_items, gtk_recent_manager_remove_item):
3876 * gtk/gtkrecentfilter.c (gtk_recent_filter_add_age):
3877 * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_show_numbers)
3878 (gtk_recent_chooser_set_sort_func):
3879 * gtk/gtknotebook.h (gtk_notebook_set_tab_detachable): Sync
3880 parameter names between .c and .h files to help gtk-doc.
3882 * gdk/gdkregion-generic.c (gdk_region_get_clipbox): Reword
3883 docs to help gtk-doc.
3885 * docs/tools/widgets.c (get_all_widgets): Add
3886 GtkRecentChooserDialog.
3888 * gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
3889 icon window when constructing the fallback_icon. This
3890 fixes a crash when dragging icons between screens in
3891 nautilus. (#325751, Hylke van der Schaaf)
3893 2006-03-30 Michael Emmel <mike.emmel@gmail.com>
3895 * gdk/directfb/gdkpixmap-directfb.c implement
3896 (gdk_pixmap_foreign_new_for_screen)
3898 2006-03-30 Emmanuele Bassi <ebassi@cvs.gnome.org>
3900 Add documentation for the GtkLinkButton (#336592)
3902 * docs/reference/tmpl/gtklinkbutton.sgml: Add description
3903 of the GtkLinkButton.
3905 * docs/reference/gtk/migrating-GtkLinkButton.sgml: Guidelines
3906 for migrating code from GnomeHRef to the GtkLinkButton.
3908 * docs/reference/gtk/gtk-docs.sgml:
3909 * docs/reference/gtk/Makefile.am: Build glue for the porting
3912 2006-03-29 Matthias Clasen <mclasen@redhat.com>
3916 * gdk/win32/gdkpixmap-win32.c:
3917 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_screen):
3918 New function to allow wrapping a native pixmap without
3919 a server roundtrip. (#334954, David Baron)
3922 * gtk/gtkrecent*.c: Fix some symbol aliasing glitches.
3924 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org>
3926 * gtk/gtkrecentchoosermenu.c: Make gtkalias.h the last included file.
3928 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org>
3930 * gtk/gtk.symbols: Fix a typo that broke aliasing rules.
3932 2006-03-29 Richard Hult <richard@imendio.com>
3934 * gdk/quartz/gdkproperty-quartz.c: Add missing CLIPBOARD atom.
3936 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org>
3938 * docs/reference/gtk/migrating-GtkRecentChooser.sgml: Add a migration
3939 guide for porting to the new GtkRecent stuff from the old EggRecent
3942 * docs/reference/gtk/tmpl/gtkrecentchooser.sgml:
3943 * docs/reference/gtk/tmpl/gtkrecentchooserdialog.sgml:
3944 * docs/reference/gtk/tmpl/gtkrecentchoosermenu.sgml:
3945 * docs/reference/gtk/tmpl/gtkrecentchooserwidget.sgml:
3946 * docs/reference/gtk/tmpl/gtkrecentfilter.sgml:
3947 * docs/reference/gtk/tmpl/gtkrecentmanager.sgml: Add template files
3948 for the reference guide.
3950 * docs/reference/gtk/gtk-docs.sgml:
3951 * docs/reference/gtk/gtk-sections.txt:
3952 * docs/reference/gtk/Makefile.am: Build glue for add GtkRecent to
3953 the reference guide.
3955 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org>
3957 * tests/Makefile.am:
3958 * tests/testrecentchooser.c: Add a test suite for GtkRecentChooser.
3960 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org>
3962 Import GtkRecent* from libegg.
3964 * gtk/gtkrecentmanager.[ch]: Add GtkRecentManager, an object
3965 for managing a list of recently used resources.
3967 * gtk/gtkrecentchooser.[ch]:
3968 * gtk/gtkrecentchooserdefault.[ch]:
3969 * gtk/gtkrecentchooserdialog.[ch]:
3970 * gtk/gtkrecentchoosermenu.[ch]:
3971 * gtk/gtkrecentchooserprivate.h:
3972 * gtk/gtkrecentchooserutils.[ch]:
3973 * gtk/gtkrecentchooserwidget.[ch]: Add GtkRecentChooser, a
3974 GTypeInterface for widgets implementing viewers for recently
3977 * gtk/gtkrecentfilter.[ch]: GtkRecentFilter, a filter object
3978 for GtkRecentChooser implementations.
3982 * gtk/Makefile.am: Build glue for GtkRecent*.
3984 2006-03-29 Matthias Clasen <mclasen@redhat.com>
3986 * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Emit
3987 page-added before switch-page. (#335691, Christian Persch)
3989 2006-03-29 Matthias Clasen <mclasen@redhat.com>
3991 * gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle
3992 double queuing, rather than asserting that it does not
3995 2006-03-28 Matthias Clasen <mclasen@redhat.com>
3997 * gtk/gtknotebook.c (gtk_notebook_set_tab_detachable): Fix
3998 docs syntax, also commit a patch from #335707 to improve
3999 notebook DND with window widgets.
4001 * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
4002 (selection_motion_event_handler): Fix drag-selection after
4003 double-click. (#323862, Benjamin Berg)
4005 * gtk/gtktextview.c (get_iter_at_pointer): Factor this out
4006 into a function and use it in move_mark_to_pointer_and_scroll,
4007 drag_scan_timeout and selection_motion_event_handler.
4010 2006-03-28 Matthias Clasen <mclasen@redhat.com>
4012 * gtk/gtktextview.c (gtk_text_view_do_popup)
4013 (gtk_text_view_grab_notify): Move the call to
4014 gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
4015 to gtk_text_view_grab_notify, so that it works not only
4016 for the text views own popup, but also for other ways in which
4017 we might become grab-shadowed during a selection drag.
4020 2006-03-28 Sven Herzberg <herzi@gnome-de.org>
4022 reviewed by: Tim Janik
4024 * gtk/gtkpixmap.c: (gtk_pixmap_set): only check for equal colormaps if
4025 the new pixmap is not NULL; fixes a warning when gtk_pixmap_set is
4026 called from gtk_pixmap_finalize (bug 336254)
4028 2006-03-27 Anders Carlsson <andersca@imendio.com>
4030 * gdk/quartz/gdkevents-quartz.c:
4031 (select_thread_func):
4034 (gdk_event_translate):
4035 Make the poll func work with real file descriptors.
4036 We do this by creating a thread which calls poll and then
4037 signals the main thread using a run loop source.
4039 * gtk/gtkclipboard-quartz.c:
4040 (-[GtkClipboardOwner pasteboard:provideDataForType:]):
4041 Remove debugging output
4043 2006-03-27 Matthias Clasen <mclasen@redhat.com>
4045 * gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that
4046 the widget is viewable. (#336200, Bastian Nocera)
4048 2006-03-27 Michael Natterer <mitch@imendio.com>
4050 * gtk/gtkmenu.c (gtk_menu_scroll_by): bail out if there is no need
4051 for scrolling (more obvious than adding additional conditions to
4052 the scroll offset calculation). Fixes bug #335912.
4054 2006-03-27 Anders Carlsson <andersca@imendio.com>
4057 Add -xobjective-c to cflags.
4058 (#335956, Lllian Angel)
4060 * gtk/gtkdnd-quartz.c:
4061 (gtk_drag_dest_set_track_motion):
4062 (gtk_drag_dest_get_track_motion):
4063 Add stubs for new functions.
4064 (#335955, Lillian Angel)
4066 2006-03-27 Richard Hult <richard@imendio.com>
4068 * gdk/quartz: Add more stubs.
4070 2006-03-27 Michael Natterer <mitch@imendio.com>
4072 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
4075 2006-03-26 Matthias Clasen <mclasen@redhat.com>
4077 * gtk/Makefile.am: Fix a srcdir != builddir build problem.
4078 (#335915, Yevgen Muntyan)
4080 * gtk/gtktextbuffer.c (gtk_text_buffer_get_property):
4081 * gtk/gtksettings.c (gtk_settings_get_property):
4082 * gtk/gtkuimanager.c (gtk_ui_manager_get_property): Fix leaks.
4084 * gtk/gtktexttag.c (gtk_text_tag_get_property):
4085 * gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
4086 Avoid an unnecessary strdup. (#336013)
4088 2006-03-24 Matthias Clasen <mclasen@redhat.com>
4090 * gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
4091 gdk_window_invalidate_rect() on unrealized widgets. (#335717,
4094 Fri Mar 24 14:53:20 2006 Tim Janik <timj@imendio.com>
4096 * gtk/gtktreemodel.h:
4097 * gtk/gtktextbtree.h: back out G_GNUC_WARN_UNUSED_RESULT on iterator
4098 functions which turned out to cause too much trouble.
4100 2006-03-23 Matthias Clasen <mclasen@redhat.com>
4102 * AUTHORS: small update
4104 2006-03-23 Matthias Clasen <mclasen@redhat.com>
4106 Support subclasses in RC files. (#142417, Todd Berman, patch
4107 based on a patch by Benjamin Berg)
4110 * gtk/gtkrc.c: Support <classname> elements in widget_class paths
4111 in rc files which match any classes derived from named class.
4113 (_gtk_rc_init): Use the new syntax in the default rc string.
4115 * gtk/gtkbindings.c: Support the new syntax for bindings too.
4117 * tests/testrc.c: Tests for widget_class path matching
4119 2006-03-23 Carlos Garnacho <carlosg@gnome.org>
4121 * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event()
4122 is called when track_motion is TRUE to receive drag_motion and
4123 drag_leave events properly.
4125 2006-03-22 Matthias Clasen <mclasen@redhat.com>
4127 * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed
4128 signal after removing the page. (#335238, Christian Persch)
4130 2006-03-22 Carlos Garnacho <carlosg@gnome.org>
4132 * gtk/gtkexpander.c: Make it to expand when hovering during DnD
4134 2006-03-22 Matthias Clasen <mclasen@redhat.com>
4136 Improved DND support for GtkNotebook (#332991, Carlos Garnacho)
4140 * gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest
4141 with getter and setter, for cases where the drag destination
4142 is interested in drag motion events independent of targets.
4144 * gtk/gtksettings.c (gtk_settings_class_init): Add a setting
4145 for the timeout used when expanding during DND.
4147 * gtk/gtknotebook.c: Use the track_motion flag to switch
4148 notebook tabs when hovering over tabs during DND.
4150 2006-03-22 Matthias Clasen <mclasen@redhat.com>
4152 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Use fg_gc to
4153 draw the inter-row drop highlight. Also draw the line all the
4154 way across, and flip it in RTL mode. (#334906, Ian McDonald)
4156 2006-03-22 Johan Dahlin <jdahlin@async.com.br>
4158 * tests/testtreeview.c: Add a column that demonstrates how to use
4159 the new spinbutton cellrenderer.
4161 2006-03-22 Matthias Clasen <mclasen@redhat.com>
4163 * tests/prop-editor.c:
4164 * tests/testtreeview.c: Remove pointless includes of config.h,
4165 to make it easier compilable against system GTK+.
4167 2006-03-22 Michael Natterer <mitch@imendio.com>
4169 * gtk/gtkentry.c: renamed last-char-timeout to
4170 password-hint-timeout and store all its data in a struct attached
4173 * gtk/gtkcellrendererspin.c: fix typo in #include.
4175 2006-03-22 Carlos Garnacho <carlosg@gnome.org>
4177 * gtk/gtknotebook.c: send a GtkWidget** instead of a GtkNotebookPage*
4178 when doing tabs DnD, this allows DnD interaction with other widgets,
4179 added some docs for this too.
4180 * tests/testnotebookdnd.c: add some code to test it.
4182 2006-03-22 Matthias Clasen <mclasen@redhat.com>
4185 * gtk/gtkcellrendererspin.h:
4186 * gtk/gtkcellrendererspin.c: Add a cell renderer which
4187 uses a spinbutton to edit the value of a cell. (#156023,
4188 Daniel Kasak, Lorenzo Gil Sanchez, Carlos Garnacho)
4191 * gtk/Makefile.am: Glue it in.
4193 2006-03-21 Matthias Clasen <mclasen@redhat.com>
4195 * tests/testtreeview.c (drag_begin_cb): Test setting up
4196 drag icons for tree dnd.
4198 2006-03-22 Michael Natterer <mitch@imendio.com>
4200 * gtk/gtkentry.c: applied modified patch from maemo-gtk which
4201 allows the most recently entered character in a hidden entry to be
4202 shown for a configurable period of time. Fixes bug #334560.
4204 2006-03-22 Michael Natterer <mitch@imendio.com>
4206 * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): count down
4207 from G_MAXUINT to avoid clashes with application-added DND
4210 * gtk/gtktextview.c (gtk_text_view_init): set an empty
4211 GtkTargetList on the drag_dest so it is not NULL when a derived
4212 class' init() function is called.
4214 (gtk_text_view_target_list_notify): copy the text buffer's paste
4215 targets into the view's destinstion target list (preserving
4216 application-added DND targets), instead of replacing the view's
4217 target list. Fixes bug #334399.
4219 2006-03-21 Anders Carlsson <andersca@imendio.com>
4224 * gtk/gtkclipboard-quartz.c: Added.
4225 * gtk/gtkdnd-quartz.c: Added.
4226 * gtk/gtkquartz.c: Added.
4227 * gtk/gtkquartz.h: Added.
4228 Add dnd and clipboard implementations.
4230 2006-03-21 Michael Natterer <mitch@imendio.com>
4232 * gdk/quartz/Makefile.am: removing trailing \ fixes the build.
4234 2006-03-21 Anders Carlsson <andersca@imendio.com>
4236 * gdk/quartz/gdkgeometry-quartz.c:
4237 (gdk_window_scroll):
4238 Implement gdk_window_scroll.
4240 2006-03-21 Anders Carlsson <andersca@imendio.com>
4242 * gdk/quartz/GdkQuartzWindow.c:
4243 (drag_operation_to_drag_action):
4244 (drag_action_to_drag_operation):
4245 (update_context_from_dragging_info):
4246 (-[GdkQuartzWindow draggingEntered:]):
4247 (-[GdkQuartzWindow draggingEnded:]):
4248 (-[GdkQuartzWindow draggingExited:]):
4249 (-[GdkQuartzWindow draggingUpdated:]):
4250 (-[GdkQuartzWindow performDragOperation:]):
4251 (-[GdkQuartzWindow wantsPeriodicDraggingUpdates]):
4252 (-[GdkQuartzWindow draggedImage:endedAt:operation:]):
4253 * gdk/quartz/gdkdnd-quartz.c:
4254 (gdk_drag_context_finalize):
4255 (gdk_drag_context_init):
4256 (gdk_drag_context_class_init):
4259 Add the GDK part of the DND implementation.
4261 * gdk/quartz/Makefile.am:
4262 Add some missing headers.
4264 * gdk/quartz/gdkdrawable-quartz.h:
4265 * gdk/quartz/gdkprivate-quartz.h:
4266 * gdk/quartz/gdkquartz.h:
4267 * gdk/quartz/gdkwindow-quartz.c:
4268 (gdk_quartz_window_get_nsview):
4269 New function, for use by the GTK part of the DND implementation
4271 2006-03-21 Anders Carlsson <andersca@imendio.com>
4273 * gdk/quartz/gdkdrawable-quartz.c:
4274 (gdk_quartz_ref_cairo_surface):
4275 (gdk_quartz_draw_rectangle):
4276 (gdk_quartz_draw_arc):
4277 (gdk_quartz_draw_polygon):
4278 (gdk_quartz_draw_drawable):
4279 (gdk_quartz_draw_segments):
4280 (gdk_quartz_draw_lines):
4281 (gdk_quartz_draw_pixbuf):
4282 (gdk_quartz_draw_image):
4283 (_gdk_quartz_drawable_get_context):
4284 * gdk/quartz/gdkdrawable-quartz.h:
4285 Offset coordinates by 0.5 pixels to get consistant results for both
4286 image contexts and screen contexts.
4288 2006-03-21 Anders Carlsson <andersca@imendio.com>
4290 * gdk/quartz/GdkQuartzWindow.c
4291 ([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events
4292 when the window position changes.
4294 2006-03-20 Matthias Clasen <mclasen@redhat.com>
4296 * gtk/gtkdnd.c (gtk_drag_get_cursor): Remove an unused variable.
4298 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): Don't leave
4299 page->tab_label dangling.
4300 (gtk_notebook_real_remove): Use GTK_IN_DESTRUCTION to determine
4301 if we are being called during destruction of the notebook, rather
4302 than maintaining that information as a passed-in parameter.
4303 (gtk_notebook_destroy): Leave the removal of the children
4304 to the container destroy method. (#319032, Yevgen Muntyan)
4306 2006-03-20 Matthias Clasen <mclasen@redhat.com>
4308 * gtk/gtkcombobox.c (gtk_combo_box_remove): Use the existing
4309 GTK_IN_DESTRUCTION flag, rather than roll our own.
4311 2006-03-20 Matthias Clasen <mclasen@redhat.com>
4314 * gtk/gtkscrolledwindow.h:
4315 * gtk/gtkscrolledwindow.c: Add a window-placement-set property
4316 and a gtk-scrolled-window-placement setting. (#157025, Christian
4319 2006-03-20 Matthias Clasen <mclasen@redhat.com>
4321 * gtk/gtkmain.c (gtk_get_option_group): Make sure gettext
4322 is initialized before using it. (#335129, Christian Persch)
4324 2006-03-19 Matthias Clasen <mclasen@redhat.com>
4326 * MAINTAINERS: Add this, at the request of the GNOME sysadmin team.
4328 * AUTHORS: Updates, typo fix
4330 * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Document that
4331 @cell must be one of the renderers of the icon view, warn if
4332 it is not, and ignore @start_editing if @cell is not set.
4333 (#335001, Emmanuel Rodriguez)
4335 2006-03-16 Matthias Clasen <mclasen@redhat.com>
4337 * configure.in: Add a missing comma. (#334774, Peter Breitenlohner)
4339 * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full)
4340 (gtk_action_group_add_toggle_actions_full)
4341 (gtk_action_group_add_radio_actions_full): Check for a stock
4342 icon, not a stock item, when deciding whether to use stock-id
4343 or icon-name. (#334760, Jody Goldberg)
4345 * gtk/gtkimage.c (gtk_image_clear): Update the size of the image,
4346 by swapping the implementations of gtk_image_clear and
4347 gtk_image_reset. (#334657)
4349 * README.in: Add a note about GtkNotebook signals.
4351 2006-03-15 Matthias Clasen <mclasen@redhat.com>
4353 * gtk/gtkcombobox.c (gtk_combo_box_list_button_released)
4354 (gtk_combo_box_list_key_press): Popdown the list before changing
4355 the active iter, otherwise people will be surprised by the
4356 grabs that are still in place when their ::changed handler
4359 2006-03-15 Dom Lachowicz <cinamod@hotmail.com>
4361 * modules/engines/ms-windows/msw_style.c: Override style->realize/
4362 style->unrealize, so that GTK+ doesn't automatically attempt to apply
4363 shading to the GC colors, causing a mismatch with the Win32 native
4364 colors. Problem found by (and suggested solution by) "Cosmic Integer"
4366 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Make expander-size
4367 a bit closer to Microsoft's values (bug 325699, Brad Taylor)
4369 2006-03-14 Matthias Clasen <mclasen@redhat.com>
4371 * tests/testcellrenderertext.c: Add test cases for alignment.
4373 * gtk/gtkcellrenderertext.c: Add an alignment property,
4374 and fix some cases where ellipsize_set was being used to
4375 mean "we're ellipsizing" even when ellipsize was set to NONE.
4376 (#318761, Ross Burton)
4378 * gtk/gtkimcontextsimple.c: Make return and release work again
4379 to commit a hex sequence. Additionally, make escape reset the
4380 im context when in a hex sequence. (#334423, Behdad Esfahbod)
4382 2006-03-13 Matthias Clasen <mclasen@redhat.com>
4384 Make actions work with named icons. (#323484, Jorn Baayen)
4386 * gtk/gtkactiongroup.c: If the stock-id field of a GtkActionEntry
4387 does not contain a registered stock id, interpret it as an
4390 * gtk/gtkaction.c: Add an icon-name property to actions and
4391 use it for icons if a stock-id is not specified.
4393 2006-03-12 Matthias Clasen <mclasen@redhat.com>
4395 * gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
4396 for the creation of geometry info here. (#114533)
4398 2006-03-11 Tor Lillqvist <tml@novell.com>
4400 * gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for
4401 outlined polygons, too. Same idea as in draw_rectangle(): Set pen
4402 to NULL_PEN if drawing a filled polygon, set brush to HOLLOW_BRUSH
4403 if drawing a polygon outline. (#332662)
4404 (gdk_win32_draw_polygon): Corresponding simplification: no need to
4405 add an extra final copy of the starting point.
4407 2006-03-11 Dom Lachowicz <cinamod@hotmail.com>
4409 * modules/engines/ms-windows: Speed up the Windows theme
4410 considerably (#163724, John Ehresman)
4411 Be more careful about setting Pango font descriptions (#333372)
4413 2006-03-11 Matthias Clasen <mclasen@redhat.com>
4415 * gtk/gtkrange.c (gtk_range_key_press): Allow to cancel
4416 a drag with ESC. (#58389, Søren Sandmann)
4418 2006-03-10 Matthias Clasen <mclasen@redhat.com>
4420 * gtk/gtkrange.c: Add a style property ::activate_slider that
4421 allows themes to draw the slider active while dragged. (#311992,
4424 * gtk/gtkcolorsel.c (gtk_color_selection_init): Fix two labels.
4426 * gtk-engine-check-abi.sh: Add a script to check that theme
4427 engines don't export any extra functions.
4429 2006-03-10 Matthias Clasen <mclasen@redhat.com>
4431 * gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic
4432 conflict. (#163850, Dennis Cranston)
4434 * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Make the behaviour
4435 of the about dialog consistent with other dialogs in gtk. If the
4436 dialog is constructed with gtk_about_dialog_new(), the creator
4437 is reponsible for handling the response by hiding or closing the
4438 dialog. gtk_show_about_dialog() handles it by hiding the dialog.
4439 (#333360, Daniel Drake)
4441 * README.in: Mention this change.
4443 2006-03-10 Matthias Clasen <mclasen@redhat.com>
4445 Apply a patch from Dennis Cranston to make dialogs more
4446 consistent (#163850)
4448 * gtk/gtkcolorsel.c (make_label_spinbutton): Left-align labels.
4450 * gtk/gtkfontsel.c (gtk_font_selection_init):
4451 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init):
4452 * gtk/gtkcolorsel.c (gtk_color_selection_init):
4453 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
4454 * gtk/gtkinputdialog.c (gtk_input_dialog_init): Update the layout
4455 of the dialog to follow HIG recommendations. Also update labels.
4457 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): HIG-compatible
4459 (gtk_message_dialog_font_size_change): Merged into
4460 gtk_message_dialog_style_set.
4462 2006-03-10 Matthias Clasen <mclasen@redhat.com>
4464 * gtk/gtkstyle.c: Remove g_return_if_fail() checks
4465 from static functions.
4467 2006-03-10 Federico Mena Quintero <federico@novell.com>
4469 Make Shift-P and Shift-N activate typeahead in GtkTreeView
4470 (i.e. they are just normal capital letters). Fixes bug #334098.
4472 * gtk/gtktreeview.c (gtk_tree_view_add_move_binding): Add an
4473 "add_shifted_binding" argument which determines whether we'll add
4474 the same binding with GDK_SHIFT_MASK.
4475 (gtk_tree_view_class_init): Use add_shifted_binding=FALSE for GDK_p
4476 and GDK_n; use TRUE for all the rest.
4478 2006-03-10 Michael Natterer <mitch@imendio.com>
4480 * gtk/gtkentry.[ch]: applied refactored patch from maemo-gtk that
4481 replaces the INNER_BORDER define by an "inner-border" style
4482 property of type GtkBorder. Additionally, add an "inner-border"
4483 object property plus API which allows to override any theme
4484 border, to allow pixel-perfect positioning of entries for inline
4485 editing. Fixes bug #333922.
4487 * gtk/gtk.symbols: add the new public functions.
4489 2006-03-09 Matthias Clasen <mclasen@redhat.com>
4491 * gtk/gtkcombobox.c (gtk_combo_box_class_init): Replace the
4492 popup-show and popup-hide signals with a readonly popup-shown
4493 property. (#162531, Christian Persch)
4495 2006-03-09 Ross Burton <ross@openedhand.com>
4499 * gtk/gtktogglebutton.c:
4500 Turn off prelighting when gtk-touchscreen-mode is enabled (#135666)
4502 Thu Mar 9 14:29:43 2006 Tim Janik <timj@gtk.org>
4504 * gtk/gtkobject.c (gtk_object_init): move the floating flag from
4505 the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
4506 kudos to mitch for debugging this.
4508 2006-03-09 Matthias Clasen <mclasen@redhat.com>
4510 * Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST.
4512 2006-03-09 Tor Lillqvist <tml@novell.com>
4514 * gtk/gtk.symbols: No gtk_tray_icon_get_type on Win32.
4516 2006-03-08 Carlos Garnacho <carlosg@gnome.org>
4518 Rename ::tab-added and ::tab-removed signals to ::page-added and
4519 ::page-removed for not conflicting with other tab reordering
4520 implementations. Fixes bug #333743.
4522 Also rename ::tab-reordered to ::page-reordered, and emit it in
4523 gtk_notebook_reorder_child () to make it behave consistently with the
4526 * gtk/gtknotebook.c (gtk_notebook_class_init): rename signals.
4527 (gtk_notebook_reorder_tab)
4528 (gtk_notebook_button_release)
4529 (gtk_notebook_remove)
4530 (gtk_notebook_real_insert_page): emit respectively renamed signals
4531 (gtk_notebook_reorder_child): also emit ::page-reordered here
4533 * tests/testnotebookdnd.c: use renamed signals
4535 2006-03-08 Michael Natterer <mitch@imendio.com>
4538 * gdk/x11/gdkscreen-x11.c
4539 * gdk/gdk.symbols: added gdk_screen_get_active_window() and
4540 gdk_screen_get_window_stack() (patch from maemo-gtk).
4543 * gdk/directfb/gdkscreen-directfb.c
4544 * gdk/quartz/gdkscreen-quartz.c
4545 * gdk/win32/gdkscreen-win32.c: added the functions as stubs.
4547 2006-03-08 Michael Natterer <mitch@imendio.com>
4549 * tests/prop-editor.c (unichar_changed): zero-initialize the
4550 GValue before calling g_value_init().
4552 2006-03-08 Michael Natterer <mitch@imendio.com>
4554 * gtk/gtkentry.c (gtk_entry_adjust_scroll): make sure that the
4555 text_area_width is always >= 0. Fixes bug #316712 (Dan Winship).
4557 2006-03-07 Federico Mena Quintero <federico@novell.com>
4559 Cancel drags when the grabs get broken. Fixes bug #333056:
4561 * gtk/gtkdnd.c (gtk_drag_selection_received): The time argument is
4562 a guint, not guint32.
4563 (gtk_drag_source_event_cb): Return gboolean, not gint.
4564 (gtk_drag_anim_timeout): Likewise.
4565 (gtk_drag_motion_cb): Likewise.
4566 (gtk_drag_key_cb): Likewise.
4567 (gtk_drag_button_release_cb): Likewise.
4568 (gtk_drag_abort_timeout): Likewise.
4569 (gtk_drag_begin_internal): Connect to "grab-broken-event" on the
4571 (gtk_drag_source_info_destroy): Disconnect from the
4572 "grab-broken-event" callback.
4573 (gtk_drag_end): Likewise.
4574 (gtk_drag_grab_broken_event_cb): New callback. We cancel the drag
4575 if the grab was broken and not regrabbed by the DnD code.
4577 2006-03-07 Federico Mena Quintero <federico@novell.com>
4579 * gtk/gtkfilechooserdefault.c (shortcuts_button_press_event_cb):
4580 Hack to let the treeview's button-press-event handler run before
4581 ours. This lets the selection be updated before we pop up a
4584 Tue Mar 7 17:16:34 2006 Tim Janik <timj@gtk.org>
4586 * configure.in: depend on glib-2.10.1.
4588 * gtk/gtkobject.c: fixed up messing with non-GtkObject floating flags.
4589 this requires glib-2.10.1.
4591 2006-03-07 Michael Natterer <mitch@imendio.com>
4593 Add infrastructure for copy/paste and DND of rich text for
4594 GtkTextBuffer. Fixes bug #324177.
4596 * gtk/gtktextbufferrichtext.[ch]: new files implementing a
4597 per-buffer registry of rich text formats.
4599 * gtk/gtk.h: #include gtktextbufferrichtext.h
4601 * gtk/gtktextbufferserialize.[ch]: new files implementing an
4602 internal serialization format that can handle all of a text
4603 buffer's tags and pixbufs. It's not useful for anything except
4604 tranfer between instances of GtkTextBuffer (Anders Carlsson).
4606 * gtk/Makefile.am: build the new files.
4608 * gtk/gtkclipboard.[ch]: added convenience APIs for rich text,
4609 just as they exist for plain text and pixbufs.
4611 * gtk/gtkselection.[ch]: added rich text convenience APIs here
4612 too. Return the target list from gtk_target_list_ref(). Register
4613 GtkTargetList as boxed type. Added
4614 gtk_target_table_new_from_list() and gtk_target_table_free(),
4615 which make converting between GtkTargetList and arrays of
4616 GtkTargetEntry considerably easier.
4618 * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon()
4619 which creates a fancy rich text icon (Matthias Clasen).
4621 * gtk/gtktextbuffer.[ch]: use all the new stuff above and
4622 implement copy and paste of rich text. Added APIs for getting the
4623 target lists used for copy and paste. Added public enum
4624 GtkTextBufferTargetInfo which contains the "info" IDs associated
4625 with the entries of the target lists.
4627 * gtk/gtktextview.c: use the new rich text APIs and
4628 GtkTextBuffer's new target list API to enable DND of rich text
4631 * gtk/gtk.symbols: export all the new symbols added.
4633 * tests/testtext.c: added rich text testing stuff.
4635 2006-03-06 Matthias Clasen <mclasen@redhat.com>
4637 * gtk/gtktextview.c (text_window_invalidate_cursors): Take
4638 cursor width into account when calculating the area to
4639 be invalidated. (#333377, #323401 Steve Frécinaux)
4641 * gtk/gtkmain.c (post_parse_hook): Set error when returning
4642 FALSE. (#333268, Paolo Maggi, Christian Persch)
4644 * gtk/gtkpixmap.c (gtk_pixmap_set): Check that the pixmap
4645 has the right depth. (#333363, Ed Catmur)
4647 2006-03-05 Matthias Clasen <mclasen@redhat.com>
4649 * gtk/gtkiconview.c (adjust_wrap_width): Apply some
4650 arbitrary lower limit for the guessed wrap width. (#332466,
4653 2006-03-05 Matthias Clasen <mclasen@redhat.com>
4655 Fix handling of image-only buttons. (#332985, Kalle
4658 * gtk/gtkbutton.c (gtk_button_construct_child): Don't
4659 return early if there an image to show.
4660 (show_image): Always return TRUE if there is no text.
4662 2006-03-04 Matthias Clasen <mclasen@redhat.com>
4664 * gdk/x11/gdkinput-x11 (gdk_input_translate_coordinates):
4665 Adjust the handling of min values for the x and y axes of
4666 extended input devices (#324562, #142536, Denis Auroux and
4669 * gtk/gtkexpander.c (gtk_expander_paint_focus): Position
4670 the focus rectangle correctly in RTL mode. (#333291,
4673 2006-03-03 Tor Lillqvist <tml@novell.com>
4675 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
4676 (gtk_im_context_simple_reset): Avoid emitting superfluous
4677 preedit_changed signals. Thanks to Matthias. (#319407)
4679 2006-03-03 Michael Natterer <mitch@imendio.com>
4681 Applied modified patch from maemo-gtk which makes separators more
4682 themeable. Fixes bug #332022.
4684 * gtk/gtkwidget.c: added style properties "wide-separators",
4685 "separator-width" and "separator-height".
4687 * gtk/gtkhseparator.c
4688 * gtk/gtkvseparator.c
4690 * gtk/gtktoolbar.c: honor the new settings and paint separators
4691 using gtk_paint_box() if wide-separators is true.
4693 2006-03-02 Dom Lachowicz <cinamod@hotmail.com>
4695 * modules/engines/ms-windows/msw_style.c: Fix combobox theming
4696 regression noted in bug 321301
4697 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
4699 2006-03-02 Matthias Clasen <mclasen@redhat.com>
4701 * gtk/gtkiconview.c (gtk_icon_view_layout)
4702 (gtk_icon_view_row_inserted, gtk_icon_view_scroll_to_path):
4703 Make scroll_to_path work for newly inserted items, by delaying
4704 the scroll until layout is done. (#332923, Cory Dodt)
4706 * gtk/gtkcolorbutton.c (render): Use GTK_WIDGET_IS_SENSITIVE,
4707 not GTK_WIDGET_SENSITIVE. (#333133, Christian Persch)
4709 2006-03-02 Ross Burton <ross@openedhand.com>
4711 * gtk/gtktooltips.c:
4712 Disable tooltips if gtk-touchscreen-mode is activated (#315112).
4714 2006-03-01 Kristian Rietveld <kris@imendio.com>
4716 * gtk/gtktreeselection.c (row_is_selectable): rename to
4717 _gtk_tree_selection_row_is_selectable and export internally,
4718 (gtk_tree_selection_real_select_node): changed so it is always
4719 possible to unselect insensitive nodes, changed the logic a bit to
4722 * gtk/gtktreeprivate.h: add _gtk_tree_selection_row_is_selectable.
4724 * gtk/gtktreeview.c (gtk_tree_view_row_changed): Unselect a row if
4725 it became insensitive.
4727 2006-02-27 Federico Mena Quintero <federico@novell.com>
4729 * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Check that
4730 the fontsel has a screen assigned before doing anything. This
4731 will at least warn the caller of what is wrong, since we only
4732 populate the family_list until we get a screen. Also, put the
4733 reference docs here. Fixes bug #332756.
4734 (gtk_font_selection_dialog_get_font_name): Document this here.
4735 (gtk_font_selection_get_font_name): Document this here; mention
4736 that the font names get normalized, so the result of this function
4737 may not be the same as what you set with
4738 gtk_font_selection_set_font_name().
4740 2006-02-27 Matthias Clasen <mclasen@redhat.com>
4743 * gtk/gtktrayicon-x11.c: Fix symbol lists for make check.
4745 2006-02-27 Michael Natterer <mitch@imendio.com>
4747 * gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the
4748 "Gtk/TouchscreenMode" XSettings property, remove trailing
4751 * gdk/x11/checksettings.c: #include <string.h> and sprinkled some
4754 Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com>
4757 * gdksettings.c: moved and renamed the gdk_settings_names and
4760 * gdk/x11/checksettings.c: test program for the gdk_settings_map array.
4762 * gdk/x11/Makefile.am: run checksettings as part of make check.
4764 2006-02-27 Matthias Clasen <mclasen@redhat.com>
4766 * gtk/gtkdnd.c (gtk_drag_get_cursor): Comment out some unused
4767 code, and fix the reference point of composited drag cursors.
4768 (#320132, Christian Neumair)
4770 Sun Feb 26 10:24:10 PST 2006 Michael Emmel <mike.emmel@gmail.com>
4772 *gdk/directfb/README
4773 Updated README to remove old build instructions
4775 Sat Feb 25 10:35:23 PST 2006 Michael Emmel <mike.emmel@gmail.com>
4777 *gdk/directfb/gdkdisplay-directfb.c
4778 *gdk/directfb/gdkwindow-directfb.c
4779 Added stubs for shape window functions to fix compile problems
4781 2006-02-24 Federico Mena Quintero <federico@novell.com>
4783 * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Make the
4784 column header visible, and make it be "_Places". Changed the
4785 accessible object name to Places as well. Fixes bug #331306.
4786 (file_pane_create): Do not create the path bar and "create folder"
4788 (browse_widgets_create): ... but create them here instead. This
4789 moves the path bar to be above both the hpaned, giving it the full
4790 width of the dialog. Fixes bug #327733.
4792 Thu Feb 23 13:28:21 2006 Tim Janik <timj@imendio.com>
4794 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): remove unconditional
4795 warnings about missing X locale support. Gdk properly handles this
4798 Fri Feb 17 14:20:29 2006 Tim Janik <timj@imendio.com>
4800 * gtk/gtktreemodel.h:
4801 * gtk/gtktextbtree.h: added G_GNUC_WARN_UNUSED_RESULT warnings for
4802 iterator functions, to avoid invalid iterators go unnoticed,
4803 suggested by Markku Vire <markku.vire@movial.fi>.
4805 2006-02-23 Matthias Clasen <mclasen@redhat.com>
4807 * tests/Makefile.am:
4808 * tests/testnotebookdnd.c: Add notebook DND tests.
4810 * gtk/gtknotebook.h: Add a reorder_tab keynav signal and an
4811 insert_page vfunc to GtkNotebook.
4814 * gtk/gtknotebook.c: Support notebook DND. New API includes
4815 gtk_notebook_set_window_creation_hook,
4816 gtk_notebook_[gs]et_group_id,
4817 gtk_notebook_[gs]et_tab_reorderable,
4818 gtk_notebook_[gs]et_tab_detachable (#73240, Carlos Garnacho)
4820 2006-02-23 Matthias Clasen <mclasen@redhat.com>
4822 * gtk/gtktextiter.c: Fix macro declaration
4824 * gtk/gtkaboutdialog.c: Remove an accidentally included function.
4826 2006-02-22 Matthias Clasen <mclasen@redhat.com>
4828 * gtk/gtktextbtree.c:
4829 * gtk/gtktextiter.c: Minor optimizations. (#332059, Arnaud Charlet)
4831 * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
4832 here, when changing the value of this property. (#331651)
4834 * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
4835 make the tab menu keynavigatable. (#331440)
4837 2006-02-22 Matthias Clasen <mclasen@redhat.com>
4839 * gtk/gtkaboutdialog.c: Change Close buttons to GTK_RESPONSE_CANCEL
4840 so Escape works. (#331940, Daniel Drake)
4842 2006-02-22 Michael Natterer <mitch@imendio.com>
4844 * gtk/gtksettings.c: added boolean property gtk-touchscreen-mode,
4845 which essentially means "there are no motion notify events", so
4846 widgets can't use the pointer hovering them for anything.
4848 * gtk/gtkmenu.c: if gtk-touchscreen-mode is TRUE, scroll menus
4849 when clicking the scroll arrows, since hovering goes undetected.
4852 Added boolean style property "double-arrows" which always makes
4853 both scroll arrows visible when the menu is too long.
4854 For pushed-in popup menus, both arrows are always shown
4855 (regardless of double-arrows), in order to fix user confusion
4856 about the blank area. Fixes bug #129463.
4858 2006-02-21 Kristian Rietveld <kris@imendio.com>
4860 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
4861 Make sure we always update the virtual root, also when ->priv->root
4862 is still NULL. (Markku Vire)
4864 2006-02-21 Anders Carlsson <andersca@imendio.com>
4866 * gdk/quartz/gdkselection-quartz.c:
4868 (gdk_text_property_to_utf8_list_for_display):
4869 Add these from the win32 backend.
4871 2006-02-20 Matthias Clasen <mclasen@redhat.com>
4873 * gtk/gtknotebook.c: Properly update internal state
4874 when child visibility changes. (#331785, Sebastien Bacher)
4876 * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the
4877 background color from the gc when it is needed. (#331820)
4879 2006-02-19 Matthias Clasen <mclasen@redhat.com>
4881 * gdk/gdkgc.c (_gdk_gc_update_context): Add a gc_changed
4882 argument, and avoid setting the clip region if the gc
4885 * gdk/gdkgc.c: Update all callers.
4887 * gdk/gdkpango.c (get_cairo_context): Avoid updating the
4888 context if nothing changed.
4890 2006-02-20 Anders Carlsson <andersca@imendio.com>
4892 * gdk/quartz/gdkdisplay-quartz.c:
4893 (gdk_display_supports_shapes):
4894 (gdk_display_supports_input_shapes):
4895 * gdk/quartz/gdkwindow-quartz.c:
4896 (gdk_display_warp_pointer):
4897 (gdk_window_input_shape_combine_mask):
4898 (gdk_window_input_shape_combine_region):
4899 (gdk_window_set_child_input_shapes):
4900 (gdk_window_set_accept_focus):
4901 (gdk_window_merge_child_input_shapes):
4902 Add stubs for input shape functions.
4904 2006-02-20 Anders Carlsson <andersca@imendio.com>
4906 * gdk/quartz/gdkevents-quartz.c:
4907 (get_keyboard_modifiers_from_nsevent):
4908 Fix typo so ctrl gets passed on to the gdk event.
4910 * gdk/quartz/gdkproperty-quartz.c:
4912 g_strdup the atom name.
4914 2006-02-20 Tor Lillqvist <tml@novell.com>
4916 * gdk/win32/gdkdisplay-win32.c (gdk_display_supports_shapes):
4917 New function, return TRUE.
4918 (gdk_display_supports_input_shapes): New function, return FALSE.
4920 * gdk/win32/gdkwindow-win32.c (do_shape_combine_region): New
4921 function. Factor out code from gdk_window_shape_combine_mask().
4922 (gdk_window_shape_combine_region): Actually do something. Convert
4923 region to a HRGN and call do_shape_combine_region().
4924 (gdk_window_input_shape_combine_mask)
4925 (gdk_window_input_shape_combine_region)
4926 (gdk_window_set_child_input_shapes)
4927 (gdk_window_merge_child_input_shapes): New functions, dummy
4930 2006-02-20 Michael Natterer <mitch@imendio.com>
4932 * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): adding boolean
4933 have_shapes and have_input_shapes members fixes the build.
4935 2006-02-20 Tor Lillqvist <tml@novell.com>
4937 * gdk/win32/gdkfont-win32.c: Replace all calls to g_strcasecmp()
4938 with g_ascii_strcasecmp().
4940 2006-02-19 Matthias Clasen <mclasen@redhat.com>
4942 Support input shapes: (#331070)
4947 * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes)
4948 (gdk_display_supports_input_shapes): Functions to determine
4949 if a display supports shaped windows or input shapes.
4951 * gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region):
4952 (gdk_window_input_shape_combine_mask):
4953 (gdk_window_set_child_input_shapes):
4954 (gdk_window_merge_child_input_shapes): Input shape versions
4955 of the window shape API.
4959 * gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask):
4960 New function to set an input shape on a widget.
4962 2006-02-19 Matthias Clasen <mclasen@redhat.com>
4964 * gtk/gtklinkbutton.c (gtk_link_button_class_init): Fix
4967 2006-02-17 Matthias Clasen <mclasen@redhat.com>
4971 * gtk/gtkdnd.c (gtk_drag_update_idle): Protect against
4972 info->last_event being NULL.
4973 (gtk_drag_key_cb): Handle arrow keys to move the drag icon
4974 and space or enter to drop.
4976 2006-02-17 Matthias Clasen <mclasen@redhat.com>
4978 * gdk/gdkregion-generic.c (gdk_region_union_with_rect):
4979 Be robust and reject rectangles with negative width or
4980 height. (#331467, Benjamin Berg)
4983 2006-02-17 Kristian Rietveld <kris@imendio.com>
4985 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
4986 Only update the virtual root if the child path is an ancestor
4987 of the virtual root. (Patch from Markku Vire).
4989 2006-02-16 Federico Mena Quintero <federico@novell.com>
4991 * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
4992 ::initial_focus() on the child before calling ::map() on our
4993 parent class. This will prevent the shortcuts treeview from
4994 highlighting its first row as a result of getting assigned focus
4995 by gtk_dialog_map().
4997 2006-02-14 Matthias Clasen <mclasen@redhat.com>
4999 * gtk/gtkwidget.c (gtk_widget_send_expose): Remove redundant
5000 check. Pointed out by Bodo-Merle Sandor.
5002 * gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
5003 Remove unnecessary checks.
5005 2006-02-12 Matthias Clasen <mclasen@redhat.com>
5007 * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
5008 examples in the docs. (#330944, John Spray)
5010 2006-02-10 Matthias Clasen <mclasen@redhat.com>
5012 * gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
5013 row_spacing/column_spacing confusion. (#330732, Donald Straney)
5015 2006-02-10 Matthias Clasen <mclasen@redhat.com>
5017 * gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
5019 * gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected):
5020 Guard against NULL. (#330177, Raphael Slinckx)
5022 2006-02-10 Murray Cumming <murrayc@murrayc.com>
5024 * docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that
5025 the changed signal is emitted when typing - not just when
5026 selecting from the list. Suggest use of GtkEntry::action to
5027 etect end of typing.
5028 gtk/gtkcombobox.c: (gtk_combo_box_class_init): changed signal
5029 ocumentation: Mention that the GtkComboBoxEntry emits it when
5030 he users types, not just when he selects from the list.
5032 2006-02-10 Murray Cumming <murrayc@murrayc.com
5034 * gtk/gtkassistant.h: Correct the declaration of the prepare
5035 default signal handler to match its registration and use.
5037 2006-02-09 Ross Burton <ross@burtonini.com>
5039 * gtk/gtkfontbutton.c:
5040 Work out the font size in floating point, and display the font
5041 size with %g instead of %d (#317590)
5043 2006-02-09 Tor Lillqvist <tml@novell.com>
5045 * gdk/win32/gdkevents-win32.c (gdk_event_translate)
5046 <WM_MOUSELEAVE>: If we don't know where we went, and have
5047 generated a leave event, set current_window to the root
5048 window. This assures we will generate proper enter and leave
5049 events for popup windows. (#325521)
5051 2006-02-08 John Ehresman <jpe@wingware.com>
5053 * gdk/win32/gdkevents-win32.c (gdk_event_translate)
5055 * gdk/win32/gdkwindow-win32.c (show_window_internal)
5056 (gdk_window_raise): Call SetWindowPos() instead of
5057 SetForegroundWindow() or BringWindowToTop() if the window
5058 shouldn't accept focus. (#327375)
5060 2006-02-08 John Ehresman <jpe@wingware.com>
5062 * gdk/win32/gdkwindow-win32.c: Let gdk_window_set_decorations()
5063 take precedence over anything derived from hints. Restructure
5064 related code and logic, add some new helper functions. (#327217)
5066 2006-02-08 Matthias Clasen <mclasen@redhat.com>
5068 * gtk/gtkfilechooserbutton.c: Don't put relevant callss
5069 in g_assert(). (#329876, Kristian Rietveld)
5071 2006-02-08 Tor Lillqvist <tml@novell.com>
5073 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab)
5074 (gdk_display_pointer_ungrab, gdk_keyboard_grab)
5075 (gdk_display_keyboard_ungrab): Consistenly use assign_object()
5076 when assigning GdkWindow pointers so that the ref counting doesn't
5079 (handle_stuff_while_moving_or_resizing): Don't use deprecated API.
5081 (gdk_event_translate) <WM_MOUSEMOVE>: When the pointer is grabbed
5082 with owner_events FALSE, generate enter and leave events only for
5083 the grab window. (#321054)
5085 2006-02-08 Kristian Rietveld <kris@imendio.com>
5087 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_ref_path),
5088 (gtk_tree_model_filter_unref_path): free temporary paths after
5089 usage (patch from maemo-gtk),
5090 (gtk_tree_model_filter_clear_cache): fix little typo in the docs
5091 (patch from maemo-gtk).
5093 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): remove
5096 2006-02-08 Matthias Clasen <mclasen@redhat.com>
5098 * gtk/gtkfilesystem.c (gtk_file_info_copy): Copy the display_key
5099 as well. (#330389, Markku Vire)
5101 2006-02-08 Tor Lillqvist <tml@novell.com>
5103 * gtk-zip.sh.in: Drop the timestamp from the zipfile names.
5105 2006-02-07 Sven Neumann <sven@gimp.org>
5107 * gdk/directfb/AUTHORS: updated mine and Dok's email address.
5109 2006-02-06 Kristian Rietveld <kris@gtk.org>
5111 * gtk/gtktreeview.c (gtk_tree_view_get_search_entry): fix compiler
5114 2006-02-05 Dom Lachowicz <cinamod@hotmail.com>
5116 * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Bug #330022
5117 Wrong pixel values are computed when color = 0xFF and alpha = 0xFF
5119 2006-02-04 Michael Emmel <mike.emmel@gmail.com>
5120 Added new directfb backend located in gdk/directfb
5121 plus patches to compile new backend
5122 compile with --with-gdktarget=directfb
5124 2006-02-03 Federico Mena Quintero <federico@ximian.com>
5126 Work around https://bugs.freedesktop.org/show_bug.cgi?id=4320,
5127 which used to be our own
5128 http://bugzilla.gnome.org/show_bug.cgi?id=314616. If one uses a
5129 pixmap for a pattern in Cairo, and sets the pattern to
5130 CAIRO_EXTEND_REPEAT; and if the destination surface is also a
5131 pixmap, Cairo does a slow copy instead of using XCopyArea(). So,
5132 we use the same code that we used in GTK+ 2.6 (pre-cairo), by
5133 filling the double-buffer pixmap with a tiled GC and
5136 * gdk/gdkwindow.c (BackingRectMethod): New structure with a
5137 cairo_t and a GdkGC field. Depending on which of these fields
5138 gets filled in, we'll use Cairo or GDK to clear the double-buffer
5139 pixmap when painting a window.
5140 (setup_backing_rect_method): Fill a BackingRectMethod as
5141 appropriate, depending on the window's configuration and our
5142 knowledge of whether Cairo is fast or slow when doing repeating
5144 (gdk_window_clear_backing_rect): Call
5145 setup_backing_rect_method(). Depending on what it returns, use
5146 Cairo to clear the double-buffer pixmap, or plain GDK.
5148 2006-02-03 Matthias Clasen <mclasen@redhat.com>
5150 * gtk/gtklabel.c (get_layout_location): Fix handling
5151 of padding in RTL. (#329099, Hooman Mesgary)
5153 2006-02-02 Matthias Clasen <mclasen@redhat.com>
5155 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
5156 Make drops on the root window work again. (#145243, Andrew S. Dixon)
5158 2006-02-01 Matthias Clasen <mclasen@redhat.com>
5160 * gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal
5163 2006-01-31 Matthias Clasen <mclasen@redhat.com>
5165 * autogen.sh: Touch README and INSTALL here to pacify
5166 automake. (#329124, Kjartan Maraas, Tim Janik)
5168 2006-01-31 Matthias Clasen <mclasen@redhat.com>
5171 * gtk/gtkassistant.h:
5172 * gtk/gtkassistant.c: Actually implement visibility handling,
5173 and add gtk_assistant_update_buttons_state.
5175 * tests/testassistant.c: Test visibility handling.
5177 2006-01-31 Kristian Rietveld <kris@imendio.com>
5179 * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add support for row
5180 hinting for the selected state.
5182 2006-01-30 Matthias Clasen <mclasen@redhat.com>
5184 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
5185 Make sure the tree view is realized, since we grab the
5186 focus to it. (#329144, Wouter Bolsterlee)
5188 * gtk/gtkspinbutton.h:
5189 * gtk/gtkspinbutton.c: Add a wrapped signal. (#322933,
5190 Carlos Garnacho Parro)
5192 * gtk/gtkassistant.c: More generous spacing. (#328082,
5193 Christian Persch, patch by Carlos Garnacho)
5195 * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_set_property):
5196 Use the setter for active. (#329208, Guillaume Cottenceau)
5198 * docs/tools/widgets.c (get_all_widgets): Add GtkLinkButton
5200 * gtk/gtkassistant.c (gtk_assistant_init): Move the
5201 last button to the left where it does not affect
5202 the positioning of forward/back.
5204 2006-01-29 Matthias Clasen <mclasen@redhat.com>
5206 More GtkAssistant work, by Carlos Garnacho.
5208 * tests/testassistant.c: Additions.
5210 * gtk/gtkassistant.c: Handle page visibility, other
5213 * docs/tools/widgets.c: Add GtkAssistant.
5215 2006-01-28 Behdad Esfahbod <behdad@gnome.org>
5217 * configure.in: If major.minor of required and available glib versions
5218 are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)
5220 * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
5222 2006-01-28 Dom Lachowicz <cinamod@hotmail.com>
5224 * modules/engines/ms-windows/msw-style.c: Re-sync with gtk-wimp
5225 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
5227 2006-01-28 Matthias Clasen <mclasen@redhat.com>
5230 * gtk/gtklinkbutton.h:
5231 * gtk/gtklinkbutton.c: Allow to set a global hook function
5232 thats called whenever a link button is clicked.
5234 More work on GtkAssistant by Carlos Garnacho:
5236 * demos/gtk-demo/Makefile.am:
5237 * demos/gtk-demo/assistant.c: Add a GtkAssistant demo.
5239 * gtk/gtkassistant.c: Handle focus, several small fixes to the
5242 2006-01-27 Federico Mena Quintero <federico@ximian.com>
5246 * gtk/gtkfilechooserdefault.c
5247 (gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
5248 the location dialog populated to "/".
5249 (tree_view_keybinding_cb): Likewise.
5250 (trap_activate_cb): Likewise.
5252 2006-01-25 Behdad Esfahbod <behdad@gnome.org>
5254 * gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
5255 strings for L10n in size calculation too.
5257 * gtk/gtkcalendar.c (calendar_paint_week_numbers): Expand buffer to
5258 accomodate localized digits.
5260 2006-01-26 Matthias Clasen <mclasen@redhat.com>
5262 * tests/prop-editor.c: Introspect child properties. too.
5264 2006-01-25 Behdad Esfahbod <behdad@gnome.org>
5266 * gtk/gtkcalendar.c (calendar_paint_week_numbers, calendar_paint_day):
5267 Use contexed translated strings calendar:week:digits|%d and
5268 calendar:day:digits|%d to let translators choose localized digits for
5269 week and day numbers. (bug #317171, Hamed Malek)
5271 2006-01-25 Behdad Esfahbod <behdad@gnome.org>
5273 * gtk/gtklabel.c (get_layout_location): Use logical extents of the
5274 layout instead of ink extents. According to Pango docs, that's what
5275 should be used for placement. Moreover, simply use
5276 pango_layout_get_pixel_size instead of getting the extents and
5279 2006-01-25 Matthias Clasen <mclasen@redhat.com>
5281 * gtk/gtkentrycompletion.c:
5282 * gtk/gtkentry.c: Be more careful when blocking signals.
5284 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): Only
5285 set the cursor size if it is != 0.
5287 * gtk/gtksettings.c (gtk_settings_class_init): Change the default value
5288 of gtk-cursor-theme-size to 0, meaning "use default".
5290 2006-01-24 Kristian Rietveld <kris@gtk.org>
5292 #322591, Jonathan Blandford.
5294 * gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
5295 (gtk_tree_view_set_search_entry),
5296 (gtk_tree_view_get_search_position_func),
5297 (gtk_tree_view_set_search_position_func): New functions,
5298 and small adaptions to the tree view code to allow for setting
5299 the entry and search position function.
5301 * gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
5302 typedef, which is now in gtktreeview.h as
5303 GtkTreeViewSearchPositionFunc. Add/update fields.
5305 * gtk/gtk.symbols: Add new functions.
5307 * tests/testtreesort.c: Add a little test for _set_search_entry().
5309 2006-01-23 Matthias Clasen <mclasen@redhat.com>
5311 Add GtkLinkButton, a port of GnomeHRef. (#314808, Emmanuele Bassi)
5313 * gtk/gtklinkbutton.h:
5314 * gtk/gtklinkbutton.c: New files.
5318 * gtk/Makefile.am: Glue.
5320 * gtk/gtkaboutdialog.c: Use GtkLinkButton.
5322 * gtk/gtkwidget.c: Add link-color and visited-link-color style
5323 properties. (#113649, Leena Gunda)
5325 * gtk/gtkaboutdialog.c: Use the new style properties here instead
5326 of the about dialogs own link-color property.
5328 2006-01-23 Kristian Rietveld <kris@gtk.org>
5330 * gtk/gtktreemodel.c (gtk_tree_model_base_init): don't copy
5331 tree paths when emitting signals. (#325041, Matthias Clasen).
5333 2006-01-23 Behdad Esfahbod <behdad@gnome.org>
5335 * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
5336 text in ellipsized GtkLabel: use layout width if set, otherwise
5337 fallback to ink extents width. (#322042)
5339 2006-01-23 Matthias Clasen <mclasen@redhat.com>
5341 * gtk/gtkassistant.c (compute_last_button_state): Only show the
5342 last button if we can jump to the end.
5343 (gtk_assistant_init): Make the spacing and button order more
5346 Fix drawing issues in progress bars. (#328081, Christian Persch)
5348 * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Always
5349 request enough space.
5350 (gtk_progress_bar_paint_activity)
5351 (gtk_progress_bar_paint_continuous)
5352 (gtk_progress_bar_paint_discrete): Clip when drawing the bar.
5354 2006-01-23 Michael Natterer <mitch@imendio.com>
5356 * gtk/gtkcolorbutton.c: move destruction of the private GdkGC
5357 from finalize() to unrealize(). Fixes BadMatch on display change
5360 2006-01-22 Kristian Rietveld <kris@gtk.org>
5362 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Revert previous
5363 commit after more searching in the bugzilla archives (see #309221).
5365 2006-01-22 Kristian Rietveld <kris@gtk.org>
5367 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Remove second call
5368 to gtk_tree_view_column_cell_set_cell_data, since we also set the
5369 cell data before iterating over the columns for exposure. (Fixes
5370 #322471, Duncan Coutts).
5372 2006-01-21 Matthias Clasen <mclasen@redhat.com>
5374 * tests/testassistant.c: Add some tests for GtkAssistant
5376 * tests/Makefile.am: Glue
5378 2006-01-20 Matthias Clasen <mclasen@redhat.com>
5380 * gtk/gtkassistant.c: Fix the docs to reflect the actual signal
5383 * gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
5384 crash if layout is NULL. (#327934, Christian Kirbach)
5386 2006-01-20 Dan Winship <danw@novell.com>
5388 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
5389 tree_view_keybinding_cb, trap_activate_cb): On "unix", pop up the
5390 "Open Location" window on "~" as well as "/". #153213
5391 (location_entry_create): Fix this so autocompletion still works
5392 correctly in that case.
5394 2006-01-19 Matthias Clasen <mclasen@redhat.com>
5396 * configure.in: Explicitly link against Xrender.
5397 (#327538, Christophe Belle)
5399 * gdk/x11/gdkprivate-x11.h (XID_FONT_BIT):
5400 * gdk/x11/gdkfont-x11.c:
5401 * gdk/x11/gdkxid.c: Use an unused high bit in the
5402 XID to mark fonts in the global xid hash table.
5404 * gdk/x11/gdkcursor-x11.c (update_cursor): Skip fonts
5405 when iterating over the xid hash table, since calling
5406 GDK_IS_WINDOW () on an GdkFont can cause a segfault.
5407 (#327751, Ryan Lovett)
5409 2006-01-19 Matthias Clasen <mclasen@redhat.com>
5411 * gtk/gtkassistant.[hc]: Use a priv pointer for
5412 cheap access to the priv struct. (#327725, Christian
5415 * gtk/gtkassistant.h: Fix line endings.
5417 2006-01-18 Matthias Clasen <mclasen@redhat.com>
5419 * gtk/gtkassistant.[hc]: Add GtkAssistant, a widget to
5420 construct multi-step wizards. (#115348, Martyn Russell,
5421 Matthias Clasen, Carlos Garnacho Parro)
5425 * gtk/gtk.h: Necessary glue.
5427 2006-01-18 Anders Carlsson <andersca@imendio.com>
5429 * gdk/quartz/gdkevents-quartz.c:
5430 (get_mm_from_pixels):
5431 (gdk_screen_get_width_mm):
5432 (gdk_screen_get_height_mm):
5433 Implement these functions.
5434 (#327228, Thomas Broyer).
5436 2006-01-18 Anders Carlsson <andersca@imendio.com>
5438 * gdk/quartz/gdkdrawable-quartz.c:
5439 (gdk_quartz_draw_polygon):
5440 (gdk_quartz_draw_lines):
5441 Implement these functions.
5442 (#327226, Thomas Broyer)
5444 2006-01-18 Anders Carlsson <andersca@imendio.com>
5446 * gdk/quartz/gdkkeys-quartz.c:
5447 (maybe_update_keymap):
5448 Support non-MacRoman keyboard layouts.
5449 (#322585, Wolfgang Thaller)
5451 2006-01-18 Anders Carlsson <andersca@imendio.com>
5453 * gdk/quartz/gdkmain-quartz.c:
5454 (_gdk_windowing_init):
5455 Make the process a foreground application.
5456 (#322481, Wolfgang Thaller)
5458 2006-01-18 Matthias Clasen <mclasen@redhat.com>
5461 * gtk/gtktreemodel.c: Fix several g_new() calls which
5462 were using extra indirections or pointless casts.
5463 (#327423, Morten Welinder)
5465 Tue Jan 17 19:27:59 2006 Tim Janik <timj@imendio.com>
5467 * gtk/gtkprogress.c: fix adopted from maemo-gtk.
5468 gtk_progress_create_pixmap(): clear out the newly created offscreen
5469 pixmap, so themes making use of transparency don't draw onto garbage.
5471 2006-01-17 Michael Natterer <mitch@imendio.com>
5473 * gtk/gtkbutton.c: remove the "child-spacing" style property again
5474 and add "inner-border" instead. That's far more flexible and
5475 "child-spacing" was a bad name anyway.
5477 2006-01-17 Michael Natterer <mitch@imendio.com>
5479 * configure.in (ALL_LINGUAS): remove "ang" again until all po
5482 2006-01-16 Abel Cheung <maddog@linuxhall.org>
5484 * configure.in: Added "ang" "zh_HK" to ALL_LINGUAS.
5486 2006-01-16 Matthias Clasen <mclasen@redhat.com>
5488 * README.in: Mention new pixbuf engine features.
5491 * gtk/gtkradioaction.[hc]: Add a current-value property and a
5492 setter for it. (#322735, Jorn Baayen)
5494 2006-01-16 Michael Natterer <mitch@imendio.com>
5496 * gtk/gtkbutton.c: applied patch from maemo-gtk which adds a
5497 child-spacing style property. Fixes bug #327202.
5499 2006-01-16 Anders Carlsson <andersca@imendio.com>
5501 * gdk/quartz/gdkdisplay-quartz.c:
5502 * gdk/quartz/gdkevents-quartz.c:
5503 (gdk_keyboard_grab):
5504 (gdk_display_keyboard_ungrab):
5505 (gdk_keyboard_grab_info_libgtk_only):
5506 (find_window_for_event):
5507 Implement keyboard grabs.
5509 (_gdk_quartz_send_map_events):
5510 * gdk/quartz/gdkmain-quartz.c:
5511 * gdk/quartz/gdkprivate-quartz.h:
5512 New function that synthesizes map events.
5514 * gdk/quartz/gdkwindow-quartz.c:
5515 (_gdk_windowing_window_init):
5516 The root window is always visible.
5518 (all_parents_shown):
5519 (show_window_internal):
5523 Ungrab keyboard and pointer
5525 2006-01-15 Kristian Rietveld <kris@gtk.org>
5527 Fixes #324099, Tommi Komulainen.
5529 * gtk/gtktreestore.[ch] (gtk_tree_store_insert_with_values),
5530 (gtk_tree_store_insert_with_valuesv): new functions, analog to
5531 those found in GtkListStore.
5533 * gtk/gtktreestore.c (gtk_tree_store_real_set_value),
5534 (gtk_tree_store_set_valist), (gtk_tree_store_set_valist_internal),
5535 (gtk_tree_store_sort_iter_changed): refactored.
5537 * gtk/gtk.symbols: updated.
5539 * tests/treestoretest.c: added a test for this new functionality.
5541 2006-01-14 Matthias Clasen <mclasen@redhat.com>
5543 * gtk/gtkentry.c (gtk_entry_drag_data_received): Remove
5546 * gtk/gtkiconfactory.c (get_default_icons): Register RTL
5547 versions of the indent and unindent icons. (#326857,
5550 * gtk/Makefile.am (STOCK_ICONS): And add them here.
5552 Fix a crash with combo boxes in RESIZE_IMMEDIATE
5553 containers. (#326806, Sebastian Bacher)
5555 * gtk/gtkcombobox.c (gtk_combo_box_size_allocate)
5556 (gtk_combo_box_size_request): Don't call
5557 gtk_combo_box_check_appearance() from here, as that
5558 can lead to recursion.
5559 (gtk_combo_box_init): Instead, call it here.
5561 2006-01-14 Kristian Rietveld <kris@gtk.org>
5563 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_iter_children): fix
5564 a typo which caused this whole thing to not function ...
5566 2006-01-14 Kristian Rietveld <kris@gtk.org>
5568 * gtk/gtktreeview.c (gtk_tree_view_size_allocate),
5569 (validate_visible_area): fixup adjustments and top_row if the
5570 current dy + page_size exceeds the new tree view height. (Fixes
5571 #316689, reported by Chris Lord).
5573 2006-01-13 Matthias Clasen <mclasen@redhat.com>
5575 * */abicheck.sh: Make this work on more platforms.
5577 2006-01-13 Kristian Rietveld <kris@imendio.com>
5579 * tests/testtreefocus.c (set_indicator_size), (main): add a little
5580 test for the newly introduced indicator-size property.
5582 2006-01-13 Kristian Rietveld <kris@imendio.com>
5584 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
5585 initialize the inconsistent field in the private structure,
5586 (gtk_cell_renderer_toggle_class_init),
5587 (gtk_cell_renderer_toggle_{set,get}_property),
5588 (gtk_cell_renderer_toggle_get_size): introduce a indicator-size
5591 2006-01-13 Michael Natterer <mitch@imendio.com>
5593 * gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
5594 (gtk_tree_view_real_collapse_row): don't animate the expander
5595 arrows if gtk-enable-animations is FALSE (bug #142582).
5597 2006-01-12 Matthias Clasen <mclasen@redhat.com>
5599 * gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
5600 tab-curvature with style properties. (#325282, Alexander Nedotsukov)
5602 * gtk/gtktextview.c (gtk_text_view_commit_text)
5603 (gtk_text_view_delete_from_cursor, gtk_text_view_backspace):
5604 Reset the virtual cursor position. (#326003, Evert Verhellen)
5606 * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
5607 about RGBA windows. (#326486, Benjamin Otte)
5609 2006-01-12 Michael Natterer <mitch@imendio.com>
5611 * gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
5612 display's "closed" signal and free the cached scratch images upon
5613 display closing (bug #85715).
5615 2006-01-12 Michael Natterer <mitch@imendio.com>
5617 * gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
5618 animation if the gtk-enable-animations setting is FALSE
5621 2006-01-11 Matthias Clasen <mclasen@redhat.com>
5623 * gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
5625 2006-01-11 Matthias Clasen <mclasen@redhat.com>
5627 * gtk/gtklabel.c: Add some notify batching, always
5628 emit notify after setting the new value.
5630 * gtk/gtkmessagedialog.c: Add properties. (#311254,
5632 (gtk_message_dialog_new): Remove some redundant code, pointed
5633 out by Gustavo Carneiro.
5635 * gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
5636 up properly if the grab fails.
5637 (finish_drag): Don't leak a reference to moveresize_window
5640 2006-01-11 Matthias Clasen <mclasen@redhat.com>
5642 * gdk/x11/gdkevents-x11.c: Fix string offsets.
5644 Allow falling back to another icon theme before
5645 hicolor. (#325546, Rodney Dawes)
5647 * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
5649 * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
5651 * gtk/gtkicontheme.c: Consult the fallback icon theme before
5654 2006-01-10 Matthias Clasen <mclasen@redhat.com>
5656 * tests/testgtk.c: Add an expander example.
5658 * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
5659 when losing the focus. (#326064, Andrew Conkling)
5661 * gtk/gtkimmulticontext.c:
5663 * gtk/gtkhandlebox.c: Convert to use instance private data.
5665 * gtk/gtk.h: Remove duplicate include. (#326429,
5668 * gtk/gtkpaned.c: Convert to use instance private data.
5670 2006-01-10 Michael Natterer <mitch@imendio.com>
5672 * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
5673 right object ("closed" is emitted by the display, not the screen).
5676 2006-01-10 Anders Carlsson <andersca@imendio.com>
5678 * gdk/quartz/gdkproperty-quartz.c:
5679 (ensure_atom_tables):
5680 (intern_atom_internal):
5682 (gdk_atom_intern_static_string):
5684 Implement local-only atoms.
5686 2006-01-09 Matthias Clasen <mclasen@redhat.com>
5688 * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
5689 (#326341, Benoît Carpentier)
5693 * gtk/gtkwindow.c (gtk_window_get_group): Make this function
5694 public API. (#307099, Todd Berman)
5698 * gtk/gtkentrycompletion.c:
5700 * gtk/gtkcombobox.c: Update all callers.
5702 * gtk/gtkentry.c (paste_received): Make GtkEntryCompletion
5703 complete on pastes at the end. (#165714, Christian Neumair)
5705 * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
5706 Prevent the first row being focused on map. (#137351,
5709 2006-01-09 Johan Dahlin <jdahlin@async.com.br>
5712 * gtk/gtkeditable.h:
5713 * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
5714 * gtk/gtksizegroup.h:
5715 (struct _GtkSizeGroup):
5717 Add gtk_size_group_get_widgets, fixes #326324.
5718 Also mark all fields of GtkSizeGroup as private
5720 2006-01-09 Matthias Clasen <mclasen@redhat.com>
5722 * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
5723 leak preedit_string and preedit_attrs. (#322332, Paolo
5728 * gtk/gtkaction.c (gtk_widget_get_action): New function to
5729 get the action for a proxy. (#326288)
5731 * gtk/gtkaction.c: Go back to the old key for attaching the
5732 action to the proxy. (#326288, Diego González)
5734 2006-01-08 Matthias Clasen <mclasen@redhat.com>
5736 * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
5737 empty strings. (#326200, Christian Stimming)
5739 2006-01-08 Matthias Clasen <mclasen@redhat.com>
5741 * gtk/gtkentry.[hc]:
5742 * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
5744 * gtk/gtklabel.c (get_layout_location): Fix label alignment
5745 when width-chars is set. (#326098, Benjamin Otte)
5747 * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the
5748 single-rectangle case. (#326127, Benjamin Berg)
5749 (gdk_region_copy): Use miRegionCopy() here.
5751 2006-01-07 Matthias Clasen <mclasen@redhat.com>
5753 Fix actiongroup-action interaction that relied on
5754 actions connecting to notify on themselves:
5756 * gtk/gtkaction.[hc]: Factor out the code updating the
5757 visibility/sensitivity of proxies into _gtk_action_sync_visible()
5758 and _gtk_action_sync_sensible().
5760 * gtk/gtkactiongroup.c: Call the new functions when the
5761 group visibility/sensitivity changes.
5763 2006-01-06 Matthias Clasen <mclasen@redhat.com>
5765 * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive)
5766 (gtk_action_group_set_visible): Add missing property change
5769 2006-01-06 Matthias Clasen <mclasen@redhat.com>
5771 * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
5772 directory name for the home dir. (#325817, Federico Mena Quintero)
5774 * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
5776 (gtk_text_tag_class_init): The default value for the direction
5777 property is GTK_TEXT_DIR_NONE. Add notes about the initial values
5778 of the font and language properties.
5780 * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
5781 an action signal. (#325782, Martyn Russell)
5783 * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
5784 the old adjustments signals. (#325869, Jorn Baayen)
5786 2006-01-06 Hans Breuer <hans@breuer.org>
5788 * tests/makefile.msc : added a bunch of tests
5789 * tests/testcellrenderertext.c : use g_snprintf()
5790 * tests/testfilechooserbutton.c : don't include unistd.h twice.
5791 Removed the unconditional one and added direct.h for G_OS_WIN32
5793 2006-01-05 Hans Breuer <hans@breuer.org>
5795 * gdk/makefile.msc : also recurse into win32 for ::clean
5796 * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
5797 to simulate links) and file renames
5799 2006-01-05 Johan Dahlin <jdahlin@async.com.br>
5801 * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
5802 instead of -G_MAXUINT.
5804 2006-01-05 Matthias Clasen <mclasen@redhat.com>
5806 * gtk/gtkwindow.c: Only connect to the event if we have
5807 a frame, since the handler is only relevant in that case.
5809 * gtk/gtkaction.c (connect_proxy, disconnect_proxy):
5810 Use a weak reference rather than the destroy signal to track
5813 * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
5815 * gtk/gtkaction.c (gtk_action_sync_property):
5816 (gtk_action_sync_stock_id): Removed.
5818 2006-01-05 Rodrigo Moya <rodrigo@novell.com>
5820 * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
5821 signal and arguments.
5823 2006-01-05 Matthias Clasen <mclasen@redhat.com>
5825 * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
5828 2006-01-04 Matthias Clasen <mclasen@redhat.com>
5830 * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
5833 * gtk/gtkbindings.c: Use the slice allocator and allocate signal
5834 and arguments in one block.
5836 * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
5837 a list of NULLs. (#325723, Steve Chaplin)
5839 2006-01-04 Rodrigo Moya <rodrigo@novell.com>
5841 * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
5842 by -1 (when n_args is 0).
5844 2006-01-04 Michael Natterer <mitch@imendio.com>
5846 * gtk/gtkmenutoolbutton.c
5847 (gtk_menu_tool_button_set_menu)
5848 (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
5849 and gtk_menu_detach() instead of reffing/unreffing the menu
5850 manually. Also fixes brokenness on screen change (bug #85715).
5852 2006-01-04 Matthias Clasen <mclasen@redhat.com>
5854 * gtk/gtkaccelmap.c:
5855 * gtk/gtkactiongroup.c:
5857 * gtk/gtkfilesystemunix.c:
5861 * gtk/gtktextiter.c:
5862 * gtk/gtktextlayout.c:
5863 * gtk/gtkuimanager.c:
5866 * gtk/gtkxembed.c: Use the slice allocator for many small
5869 * gtk/gtkcolorsel.c:
5870 * gtk/gtktreeview.c: Use IPN.
5872 * gtk/gtkwidget.c: Remove an unused field from the AccelPath
5875 2006-01-04 Tor Lillqvist <tml@novell.com>
5877 * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
5879 2006-01-03 Matthias Clasen <mclasen@redhat.com>
5881 * gtk/gtkdnd.c: Make it compile
5883 * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
5884 for non-motion events. (#325443, Peter Harvey)
5886 * gtk/gtkaction.c: Avoid connecting to notify on our own
5889 2006-01-02 Matthias Clasen <mclasen@redhat.com>
5891 * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
5892 words, delete preceding whitespace as well. (#325358, Akkana Peck)
5894 2006-01-02 Anders Carlsson <andersca@imendio.com>
5896 * gdk/quartz/GdkQuartzWindow.c:
5897 (-[GdkQuartzWindow canBecomeMainWindow]):
5898 (-[GdkQuartzWindow canBecomeKeyWindow]):
5899 Have these return TRUE
5901 * gdk/quartz/gdkevents-quartz.c:
5902 (pointer_grab_internal):
5905 (find_child_window_by_point_helper):
5906 Fix bug in offset calculation
5908 (find_window_for_event):
5909 Use grab window toplevel when a grab is in effect
5911 (gdk_event_translate):
5912 Don't call _gdk_event_button_generate on mouse up
5914 * gdk/quartz/gdkgc-quartz.c:
5915 (_gdk_quartz_gc_new):
5918 * gdk/quartz/gdkwindow-quartz.c:
5920 Make TEMP windows borderless
5925 (gdk_window_get_origin):
5928 2006-01-02 Tor Lillqvist <tml@novell.com>
5930 * gdk/win32/gdkwindow-win32.c
5931 (gdk_window_impl_win32_get_visible_region): Make identical to the
5932 X11 implementation. (#322264, John Ehresman)
5934 * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
5935 invalidated region from ScrollWindowEx() instead of an incorrect
5936 attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
5938 * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
5940 * gdkprivate-win32.h: Declare it.
5942 2005-12-31 Matthias Clasen <mclasen@redhat.com>
5945 * gtk/gtkentry.c: Connect to notify instead of multiple
5948 2005-12-30 Matthias Clasen <mclasen@redhat.com>
5952 * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap. (#318805,
5955 * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
5956 gdk_display_manager_set_default_display() to change the default
5957 display. (#153623, Stefan Kost)
5959 * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
5960 (setup_type): Alert dialogs should not have titles and should
5961 not be displayed in the taskbar. (#310443, Carlos Garnacho Parro,
5964 2005-12-29 Matthias Clasen <mclasen@redhat.com>
5966 * gtk/gtkliststore.c:
5967 * gtk/gtktreestore.c: Always call the get_path and get_iter
5968 implementations directly, rather than the current mixture whith
5969 some calls going through the GtkTreeModel interface.
5971 * gtk/gtktreemodelsort.c:
5972 * gtk/gtkliststore.c:
5973 * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
5974 in static functions.
5976 * gtk/gtktreedatalist.c: Use the slice allocater for
5977 GtkTreeDataSortHeader.
5979 * gtk/gtktreedatalist.h:
5980 * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
5982 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func):
5983 * gtk/gtkliststore.c (gtk_list_store_set_sort_func):
5984 * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
5986 2005-12-27 Matthias Clasen <mclasen@redhat.com>
5988 * gtk/gtkbindings.h (GtkBindingSignal):
5989 * gtk/gtkbindings.c (binding_signal_new): Make the
5990 args a flexible array inside the struct, and allocate them
5993 Wed Dec 28 00:45:46 2005 Tim Janik <timj@gtk.org>
5995 * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
5996 clist rows which crashes in gslice later on.
5998 2005-12-27 Federico Mena Quintero <federico@ximian.com>
6000 * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
6001 FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
6002 not NULL. Fixes bug #317687.
6004 2005-12-27 Matthias Clasen <mclasen@redhat.com>
6006 * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
6007 (gdk_screen_get_setting): Avoid relocations for the settings
6010 * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
6013 * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
6014 the set_name by interning it.
6016 2005-12-26 Matthias Clasen <mclasen@redhat.com>
6018 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
6019 before calling gdk_window_new().
6021 * gtk/gtktextbtree.c: Use the slice allocator for some other small
6022 auxiliary structures as well.
6024 * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
6027 * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info)
6028 (gtk_text_btree_remove_tag_info): Use the slice allocator for
6031 * README.in: Mention the stripping of (_F) suffixes.
6033 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of
6034 the form "(_<single character>)", since this is the preferred way
6035 for some languages to indicate accelerators. (#323956, Yang Hong)
6037 * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
6039 (gtk_label_grab_focus): And use it here to select the contents of
6040 the label when appropriate.
6041 (gtk_label_class_init): Use the same keybindings for select all/
6042 unselect all as GtkEntry and GtkTextView.
6044 * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
6045 focus, avoid leaving a selection in a label.
6047 2005-12-25 Matthias Clasen <mclasen@redhat.com>
6049 * gtk/gtkwindow.c: Documentation fixes. (#324815,
6052 * configure.in: Require GLib 2.9.2
6054 2005-12-24 Matthias Clasen <mclasen@redhat.com>
6056 * gdk/gdkregion-generic.c:
6057 * gdk/gdkpolyreg-generic.c:
6059 * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid
6060 extra allocation for rectangular regions.
6062 Thu Dec 22 18:53:14 2005 Tim Janik <timj@gtk.org>
6064 * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
6066 Thu Dec 22 17:55:11 2005 Tim Janik <timj@gtk.org>
6068 * gtk/gtkobject.h: parent type fixups in structure declarations.
6070 Thu Dec 22 16:01:27 2005 Tim Janik <timj@imendio.com>
6072 * gtk/gtkobject.c: derive GtkObject from GUnowned,
6073 so it initially has a floating reference count.
6074 gtk_object_class_init(): installa floating flag handler with
6075 libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
6076 in the ->flags member.
6078 * tests/floatingtest.c: test floating flag uses.
6080 2005-12-21 Matthias Clasen <mclasen@redhat.com>
6082 * gdk/gdkregion-generic.c: Use the slice allocator
6083 for regions. Still todo: avoid extra allocations for
6084 the single-rectangle case.
6086 * gtk/gtksettings.c (gtk_settings_class_init): Update
6087 class_n_properties after installing color-hash, since
6088 other classes install settings, too.
6091 * gtk/gtkclist.c: Fix some mistakes in the conversion
6092 from mem chunks to slice allocator.
6094 * gtk/gtkiconview.c (adjust_wrap_width): Adjust the
6095 wrap-width also if an explicit item width is set.
6096 (#322475, Alex Graveley)
6098 2005-12-20 Matthias Clasen <mclasen@redhat.com>
6100 * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset
6101 pressed_button to -1 after handling a double click, so that
6102 motion events occurring between here and the release event
6103 don't trigger DND. (#324588, Dave Andreoli)
6105 2005-12-19 Matthias Clasen <mclasen@redhat.com>
6107 * gtk/gtkcellrenderer.c:
6108 * gtk/gtkselection.c:
6109 * gtk/gtkcalendar.c:
6110 * gtk/gtkitemfactory.c:
6112 * gdk/gdkpixbuf-render.c: Documentation updates
6114 * gtk/gtktreemodel.c:
6116 * gtk/gtkwindow.c: Documentation fixes.
6118 2005-12-19 Michael Natterer <mitch@imendio.com>
6120 * gtk/gtkentry.c: implement boolean property "truncate-multiline"
6121 which, when enabled, truncates multi-line pastes or drops to their
6122 first line. Fixes bug #322252.
6124 * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
6125 truncate-multiline here.
6127 2005-12-17 Matthias Clasen <mclasen@redhat.com>
6129 * gtk/gtksettings.c (get_color_hash): Don't crash if
6130 there is no color scheme. (#324429, Diego Gonzalez)
6132 2005-12-16 Matthias Clasen <mclasen@redhat.com>
6134 * gtk/gtkfilesystem.c (gtk_file_system_module_load):
6135 * gtk/gtkimmodule.c (gtk_im_module_load):
6136 * gtk/gtkthemes.c (gtk_theme_engine_load):
6137 * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
6140 * gtk/gtksettings.[hc]: Rework the way the color scheme setting
6141 is inherited. Now the overriding is done on a per-color basis,
6142 rather than for the setting as a whole. This has the effect
6143 that themes can declare defaults for all the symbolic colors they
6144 use by specifying a value for the gtk-color-scheme setting in
6145 their rc file, while still allowing the XSetting to override
6146 "standard" symbolic colors. The hash table is now available
6147 through the color-hash property.
6149 * gtk/gtkrc.c: Use the new color-hash property.
6151 2005-12-14 Matthias Clasen <mclasen@redhat.com>
6153 * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
6154 children when doing focus sorting. (#323995, Dan Winship)
6156 2005-12-14 Rodney Dawes <dobey@novell.com>
6158 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
6159 Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
6160 (get_icon_for_mime_type): Look up the mime type icons according to the
6161 Icon Naming Specification and then fall back to the gnome-mime- prefix
6162 for the mime type icons
6166 2005-12-14 Matthias Clasen <mclasen@redhat.com>
6168 * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
6169 cannot be loaded. (#323504, Kjartan Maraas)
6171 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs
6172 for the row-activated signal. (#324044, Davyd Madeley)
6174 2005-12-14 Michael Natterer <mitch@imendio.com>
6176 * tests/test-images/valid_jpeg_progressive_test: new test image.
6178 Tue Dec 13 09:47:20 2005 Tim Janik <timj@gtk.org>
6180 * README.in: added a link to the floating reference docs in the
6181 2.10 release NEWS section.
6183 2005-12-12 Matthias Clasen <mclasen@redhat.com>
6185 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index):
6186 Speed this function up, using the fact that visibility is
6187 constant across segments. (#321548, Paolo Borelli)
6189 * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets):
6190 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
6191 stepping backwards. (#320638, Larry Ewing, Paolo Borelli)
6193 * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
6194 _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
6195 upon initial theme load. (#323876, Peter Lund)
6197 * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
6198 the size-changed signal correctly. (#323848, Murray Cumming)
6200 * gtk/gtkmarshalers.list: Add necessary marshaller.
6202 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
6203 fall thru to the wrong window types. (#323843)
6205 Make the gtk-color-scheme setting work.
6207 * gtk/gtksettings.h:
6208 * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
6209 that takes care of initializing the color hash if it is not
6212 * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get):
6215 2005-12-10 Matthias Clasen <mclasen@redhat.com>
6217 * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
6220 2005-12-09 Matthias Clasen <mclasen@redhat.com>
6222 * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
6223 leak list[0]. (#323629, Markku Vire)
6225 * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
6226 when freeing the RequestData. (#323577)
6228 2005-12-07 Matthias Clasen <mclasen@redhat.com>
6230 * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
6233 * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a
6234 variable name clash. (#323475, Ross Burton)
6236 2005-12-07 Ross Burton <ross@burtonini.com>
6238 * docs/reference/gtk/tmpl/gtkenums.sgml:
6239 * gtk/gtktoolbutton.c:
6240 If the toolbar mode is ICONS and there is no icon set then show
6241 the label, and vice versa (#322019)
6243 2005-12-07 Matthias Clasen <mclasen@redhat.com>
6245 * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a
6246 variable name clash. (#323475, Ross Burton)
6248 * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
6249 window when synthesizing the key event. (#323077,
6250 Sadrul Habib Chowdhury)
6252 (gtk_tree_view_search_key_press_event): Also listen for
6253 GDK_ISO_Left_Tab. (#323077, Sadrul Habib Chowdhury)
6255 * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
6256 Only scroll if we have focus. (#316310, Paolo Borelli)
6258 * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
6259 spotted by Crispin Flowerday.
6261 2005-12-06 Behdad Esfahbod <behdad@gnome.org>
6263 * gtk/gtksettings.c (settings_update_font_options): Turn metrics
6264 hinting on (part of #307196)
6266 2005-12-06 Matthias Clasen <mclasen@redhat.com>
6268 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
6269 commit from reset, it upstets GtkTextView.
6271 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
6272 careful when turning blinking on and off.
6273 (gtk_text_view_focus_out_event): Make the cursor really invisible
6274 when the focus goes away. (#323087, Sadrul Habib Chowdhury)
6275 (cursor_blinks): Check the gtk-cursor-blink setting first.
6277 * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
6278 issues with new_event and its window.
6280 * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
6281 as a detach func. (#323386, Jorn Baayen)
6283 * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
6284 the libdate routines. (#323045, Kazuki Iwamoto)
6286 * gdk/gdk.c (gdk_parse_args):
6287 * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
6288 from g_option_context_parse().
6290 Tue Dec 6 11:37:59 2005 Tim Janik <timj@gtk.org>
6292 * gdk/gdkevents.c (gdk_event_new): fix missing hash table
6295 Tue Dec 6 10:32:17 2005 Tim Janik <timj@gtk.org>
6297 * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
6300 2005-12-05 Federico Mena Quintero <federico@ximian.com>
6302 * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
6303 modifiers", not "event->state && modifiers". Patch by Sadrul
6304 Habib Chowdhury <imadil@gmail.com>. Fixes bug #323073.
6306 2005-12-05 Matthias Clasen <mclasen@redhat.com>
6309 * gtk/gtkuimanager.c:
6310 * gtk/gtktreedatalist.c:
6313 * gtk/gtkitemfactory.c:
6314 * gtk/gtkseparator.[hc]:
6315 * gtk/gtkclist.[hc]:
6317 * gtk/gtkgc.c: Use g_slice instead of mem chunks.
6319 2005-12-05 Michael Natterer <mitch@imendio.com>
6321 * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
6322 "timeout-initial", "timeout-repeat", "color-scheme" and
6323 "enable-animations" to X settings.
6325 2005-12-05 Matthias Clasen <mclasen@redhat.com>
6328 * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
6330 * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
6331 after sending it to the search entry. (#323209, Crispin Flowerday)
6333 * README.in: Add a note about GTK_FLOATING.
6335 * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
6337 2005-12-02 Matthias Clasen <mclasen@redhat.com>
6339 * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
6340 a pixbuf. (#323024, Paolo Borelli)
6342 2005-12-02 Matthias Clasen <mclasen@redhat.com>
6344 * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
6345 if mime_type is NULL. (#322998, Sadrul Habib Chowdhury)
6347 2005-12-02 Michael Natterer <mitch@imendio.com>
6349 * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
6350 adds a "horizontal-padding" style property. Fixes bug #323036.
6352 2005-12-01 Michael Natterer <mitch@imendio.com>
6354 Merged modified patch from maemo-gtk that allows to disable
6355 toolbar animations. Addresses bug #142582.
6357 * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
6358 (patch from Christian Neumair)
6360 * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
6361 property is FALSE. Replaced the individual "notify::foo"
6362 connections to GtkSettings by a single "notify" callback and
6363 dispatch internally.
6365 2005-12-01 Michael Natterer <mitch@imendio.com>
6367 * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
6368 assignment of widget_class->motion_notify_event
6370 2005-11-29 Matthias Clasen <mclasen@redhat.com>
6372 * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add
6373 an active property. (#322673, Jorn Baayen)
6375 Properly handle model changes in GtkTreeSelection: (#322569,
6378 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6379 Get a reference to the model, and stop the iteration if the model
6380 of the treeview is changed on the way.
6382 * gtk/gtktreeprivate.h:
6383 * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
6384 private function to emit the GtkTreeSelection::changed signal.
6386 * gtk/gtktreeview.c (gtk_tree_view_set_model): Call
6387 _gtk_tree_selection_emit_changed() when the model changes.
6389 2005-11-28 Federico Mena Quintero <federico@ximian.com>
6391 Fixes the critical warnings from bug #317999, thus fixing the bug
6394 * gtk/gtkfilechooserdefault.c
6395 (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
6396 use _gtk_file_chooser_get_current_folder_path() instead of fetching the
6397 impl->current_folder directly. The latter may be null if we are
6398 in RELOAD_NONE state.
6400 2005-11-28 Federico Mena Quintero <federico@ximian.com>
6402 Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
6404 * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
6405 current_folder to the pending select paths here; the path bar will
6407 (path_bar_clicked): Add the child_path to the pending select paths
6409 (show_and_select_paths): Don't filter out folders.
6410 (show_and_select_paths): Don't take separate arguments for
6411 only_one_path and multiple paths.
6413 * tests/autotestfilechooser.c (test_folder_switch_and_filters):
6414 New test about preserving the filters when we change folders.
6416 2005-11-28 Matthias Clasen <mclasen@redhat.com>
6418 * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
6419 -20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
6421 * gtk/gtkaction.c (gtk_action_sync_button_stock_id)
6422 (connect_proxy): Buttons use the label property for stock ids. (#322565,
6425 * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
6426 handle the cell list and indices into it. (#321856)
6428 2005-11-28 Matthias Clasen <mclasen@redhat.com>
6430 * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
6431 the timeout is done. (#322291, Jean-Yves Lefort)
6433 2005-11-28 Matthias Clasen <mclasen@redhat.com>
6435 * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
6436 F2 work for renaming bookmarks. (#320822, Jaap A. Haitsma, patch
6439 2005-11-28 Tor Lillqvist <tml@novell.com>
6441 * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
6442 Implement the conditional use of FlashWindowEx() properly for MSVC
6443 compilations. The code was confusingly assuming that if compiled
6444 with a "new" compiler, it will only be run on "new" Windows
6445 versions. We want it to run on "old" versions, too, even if
6446 compiled with a "new" compiler. There are two orthogonal issues:
6447 whether the compiler defines the necessary API in its headers, and
6448 whether it is present at run-time. (#318077)
6450 * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
6451 Windows to get the localized weekday and month names. strftime()
6452 in the Microsoft C library returns strings in the default codepage
6453 for the locale of the process, not the system codepage. Thus
6454 g_locale_to_utf8() isn't useable on the return value from
6455 strftime(). (#322603)
6457 2005-11-27 Matthias Clasen <mclasen@redhat.com>
6459 * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6460 Fix an example. (#322493, Elie De Brauwer)
6462 Fix two memory handling problems in GtkTreeView: (#322350,
6465 * gtk/gtktreeview.c (gtk_tree_view_destroy)
6466 (gtk_tree_view_set_model): Remove all references to nodes in
6468 (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
6469 before removing the children.
6471 * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a
6472 PangoLayout here. (#322505, Paolo Borelli)
6474 2005-11-27 Tor Lillqvist <tml@novell.com>
6476 Once again rework Win32 window decoration code. Doesn't break
6477 #104514. The dialogs in gtk-demo now have the same decorations and
6478 behaviour as on X11. Tried to fix #322516 but it seems very hard
6479 to make the trivial sample program there behave as expected. OTOH,
6480 simply moving the gtk_window_decorate() call in the #322516 sample
6481 program after the call to gtk_widget_show() helps...
6483 * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
6484 the correct semantics. Each call to gdk_window_set_decorations()
6485 which calls this function is supposed to affect all decorations.
6487 (decorate_based_on_hints): New function, looks at both geometry
6488 hints and type hint and sets window decorations based on
6489 that. Consolidate code from gdk_window_set_geometry_hints() and
6490 gdk_window_set_type_hint() here.
6492 (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
6493 decorate_based_on_hints().
6495 2005-11-25 Dom Lachowicz <cinamod@hotmail.com>
6497 * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
6498 Includes improved menu icon spacing, [+]/[-] expander drawing,
6499 status-bar gippie drawing, and notebook tab drawing.
6501 2005-11-24 Michael Natterer <mitch@imendio.com>
6503 * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
6504 that used to hold signal handler IDs to two guint of padding.
6506 * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
6509 (gtk_toolbar_screen_changed): changed accordingly.
6511 Wed Nov 23 18:55:47 2005 Tim Janik <timj@imendio.com>
6513 * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
6514 in terms of the GObject floating/sink API.
6516 * gtk/gtkaboutdialog.c:
6518 * gtk/gtkcellview.c:
6520 * gtk/gtkcolorsel.c:
6521 * gtk/gtkcombobox.c:
6522 * gtk/gtkfilechooserdefault.c:
6523 * gtk/gtkiconview.c:
6524 * gtk/gtkinvisible.c:
6525 * gtk/gtkitemfactory.c:
6528 * gtk/gtkmenutoolbutton.c:
6529 * gtk/gtknotebook.c:
6530 * gtk/gtkprogress.c:
6532 * gtk/gtkspinbutton.c:
6533 * gtk/gtkstatusicon.c:
6535 * gtk/gtktextview.c:
6537 * gtk/gtktoolbutton.c:
6538 * gtk/gtktoolitem.c:
6539 * gtk/gtktreeitem.c:
6540 * gtk/gtktreeview.c:
6541 * gtk/gtktreeviewcolumn.c:
6542 * gtk/gtkuimanager.c:
6543 * gtk/gtkviewport.c:
6546 ported to use GObject's g_object_ref_sink().
6548 * gtk/gtkcolorsel.c:
6549 * gtk/gtkfilechooserdefault.c:
6550 * gtk/gtkaboutdialog.c:
6551 fixed compiler warnings.
6553 2005-11-23 Matthias Clasen <mclasen@redhat.com>
6555 * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
6556 about gtk-color-scheme.
6558 2005-11-23 Behdad Esfahbod <behdad@gnome.org>
6560 * configure.in (enable_explicit_deps): Fix typo when checking
6561 libtool config deplibs_check_method. Moreover, enable explicit
6562 deps if we get anything other than pass_all from libtool. (part of
6565 2005-11-23 Matthias Clasen <mclasen@redhat.com>
6567 * gtk/updateiconcache.c (write_csource): Don't create a big
6568 string, since Visual C++ doesn't like strings longer than 64k.
6569 (#322238, Kazuki IWAMOTO
6571 * gtk/gtkentry.c: Include gtkimcontextsimple.h (#322235,
6574 2005-11-23 Michael Natterer <mitch@imendio.com>
6576 * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
6577 windows on other screens (correctly remove all temporary
6580 2005-11-23 Michael Natterer <mitch@imendio.com>
6582 Added symbolic themable colors. Patch is a merged version of
6583 proposals from Matthias and maemo-gtk. Fixes bug #114355.
6585 * configure.in: require glib >= 2.9.1 for refcountable hashtables.
6587 * gtk/gtksettings.c: added property "color-scheme" which is a
6588 string defining colors like "foreground:black\nbackground:grey".
6589 Automatically provide a name->GdkColor hash table mapping for the
6592 * gtk/gtkrc.[ch]: added list of color hashes that works like the
6593 list of icon factories. Append the color scheme hash from
6594 GtkSettings if it exists. Extended gtkrc syntax to allow defining
6595 and referencing of logical colors. Also allow to modulate colors
6596 in gtkrc by using arbitrary expressions of mix(), shade(),
6597 lighter() and darker(). Added internal function
6598 _gtk_rc_style_get_color_hashes().
6600 * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
6601 Get the list from _gtk_rc_style_get_color_hashes(). Export
6602 internal function _gtk_style_shade() (used by above color
6603 expressions). Added public API gtk_style_lookup_color() which
6604 looks up a logical color by name.
6606 * gtk/gtk.symbols: add gtk_style_lookup_color
6608 * tests/testgtkrc: use symbolic colors for making
6611 2005-11-22 Michael Natterer <mitch@imendio.com>
6613 Made button-press timeouts which work like key repeat timeouts
6614 configurable. Addresses bug #142582:
6616 * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
6617 "gtk-timeout-repeat" which defalt to 200/20 (ms).
6619 Use the values from GtkSettings instead of hardcoding them
6620 (the repeat value is either taken as-is for fast repeat or
6621 multiplied by 5 for slow repeat). Changed all places to use these
6622 two standard initial/repeat timings:
6624 * gtk/gtkcalendar.c (unchanged 200/20)
6625 * gtk/gtknotebook.c (unchanged 200/100)
6626 * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
6627 * gtk/gtkrange.c (changed from 250/100 to 200/100)
6628 * gtk/gtkspinbutton.c (unchanged 200/20)
6630 2005-11-21 Anders Carlsson <andersca@imendio.com>
6638 * docs/tools/Makefile.am:
6639 Only build docshooter when the X11 backend is used.
6641 * gtk/gtkplug-stub.c:
6642 Include gtkplug.h here.
6644 * gtk/gtksocket-stub.c:
6645 Include gtksocket.h here.
6647 2005-11-21 Matthias Clasen <mclasen@redhat.com>
6649 * gtk/gtkinputdialog.c: Convert GtkInputDialog to
6650 g_type_class_add_private.
6652 * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
6654 * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
6657 * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
6658 with getter and setter. (#316482, Olexiy Avramchenko)
6660 * tests/testcombo.c (main): Test gtk_combo_box_set_title
6662 * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
6663 pointed out by Michael Natterer.
6665 Fix for bug #321542, Benedikt Meurer:
6667 * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
6668 Emit notify::active.
6670 (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
6671 g_signal_emit, not g_signal_emit_by_name.
6673 2005-11-18 Matthias Clasen <mclasen@redhat.com>
6675 Fix crashes in connection with pathbar scrolling (#321560,
6678 * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons):
6679 Stop scrolling when desensitising slider buttons.
6680 (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press):
6683 * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
6684 scrolling_down flag.
6686 2005-11-18 Matthias Clasen <mclasen@redhat.com>
6688 * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
6689 (#321777, Jens Granseuer)
6691 * gtk/gtkaction.c (disconnect_proxy): Disconnect the
6692 sync callback for the visibility property. (#321761,
6695 Turn off input methods in invisible entries, since
6696 they are confusing. (#317002, James Su)
6698 * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
6699 methods if visibility changes.
6700 (popup_targets_received): Don't show the input method
6701 menu if the entry is invisible.
6703 2005-11-17 Matthias Clasen <mclasen@redhat.com>
6705 * README.in: Add a note about range arrow sensitivity.
6707 * perf/treeview.c: const correctness fixes
6708 found by Arjan van de Ven and gcc.
6710 2005-11-16 Michael Natterer <mitch@imendio.com>
6712 * gtk/gtkimage.c (animation_timeout): call
6713 gtk_window_process_updates() so the animation keeps running even
6714 if the main loop is busy with sources that eat a lot of cpu with
6715 high priority. Fixes bug #321444.
6717 (gtk_image_new_from_animation): document the fact that the
6718 animation will stop running if the main loop is busy with sources
6719 that have priorities higher than G_PRIORITY_DEFAULT.
6721 * tests/testimage.c: added test case that shows an animation even
6722 though a cpu-eating idle function is running.
6724 2005-11-16 Michael Natterer <mitch@imendio.com>
6726 * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
6727 function which destroys the display's event source. Also removes
6728 the source from the global display_sources list and unrefs it.
6730 * gdk/x11/gdkprivate-x11.h: declare the function.
6732 * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
6733 instead of half-destroying the source here.
6735 2005-11-15 Matthias Clasen <mclasen@redhat.com>
6737 * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
6738 leak. (#321032, Peter Zelezny)
6740 2005-11-15 Michael Natterer <mitch@imendio.com>
6742 * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
6743 display->xid_ht as late as possible (right before XCloseDisplay)
6744 because it still needs to be around when the display's screens are
6747 2005-11-14 Matthias Clasen <mclasen@redhat.com>
6749 * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
6750 leak result. (#321441, Tommi Komulainen)
6752 2005-11-14 Matthias Clasen <mclasen@redhat.com>
6754 * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
6755 Don't crash if there is no builtin icon.
6757 2005-11-14 Michael Natterer <mitch@imendio.com>
6759 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
6760 removed redundant calls to g_object_notify().
6762 2005-11-13 Matthias Clasen <mclasen@redhat.com>
6764 * gdk/gdkcolor.c (gdk_color_parse): Documentation
6765 improvements. (#321338)
6767 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
6768 limit an inclusive boundary. (#321299)
6770 2005-11-12 Michael Natterer <mitch@imendio.com>
6772 * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
6775 2005-11-12 Dom Lachowicz <cinamod@hotmail.com>
6777 * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32
6778 theme's handling of toolbars, handleboxes, and menubars more in-line
6779 with Microsoft's IE style.
6780 * modules/engines/ms-windows/*.c: Indentation cleanups
6782 2005-11-12 Matthias Clasen <mclasen@redhat.com>
6784 Make builtin icons work in gtk_window_set_icon_name()
6785 (#321046, Maxim Udushlivy)
6787 * gtk/gtkicontheme.c (insert_theme): Always insert the default
6789 (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
6791 (theme_lookup_icon, find_builtin_icon): ...and not from here.
6792 (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
6793 (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
6795 2005-11-12 Tor Lillqvist <tml@novell.com>
6797 * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
6798 dotfiles, no such convention on Win32. Just hide files with the
6799 hidden attribute. (#314627)
6801 2005-11-11 Federico Mena Quintero <federico@ximian.com>
6803 * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
6804 check whether the path is a folder. It is useful to bookmark
6805 files as well (e.g. todo.txt), and this will also help
6807 (shortcuts_add_bookmark_from_path): Likewise.
6808 (shortcuts_activate_iter): Change folders or select files, as
6811 2005-11-11 Federico Mena Quintero <federico@ximian.com>
6813 * tests/autotestfilechooser.c (main): Use
6814 g_log_set_default_handler() instead of explicitly setting a
6815 handler for each domain.
6817 * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
6818 the base path of the volume if it is mounted.
6820 2005-11-11 Michael Natterer <mitch@imendio.com>
6822 Added per-stepper API for GtkRange's stepper sensitivity as
6823 discussed in bug #321056:
6825 * gtk/gtkenums.h: added GtkSensitivityType which can be
6828 * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
6829 and "upper-stepper-sensitivity" and public getters/setters for
6830 them. Changed stepper drawing to honor the new properties.
6832 * gtk/gtk.symbols: added the new symbols.
6834 2005-11-10 Matthias Clasen <mclasen@redhat.com>
6836 * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
6837 emit them when the popup is shown or hidden. (#162531, Tommi
6840 * tests/testcombo.c: Add an example of popuplating a combobox
6843 * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
6844 erroneous semicolon.
6846 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
6849 Don't corrupt odd keymaps (#316638, Kean Johnston)
6851 * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
6852 handle frobbing keymaps with odd numbers of syms/code.
6854 * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to
6857 Improve navigation to parent folders. (#318444, Andrei Yurkevich)
6859 * gtk/gtkpathbar.[hc]: Add a child_path argument to
6860 the path_clicked signal.
6861 * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
6862 child_path, if it is provided.
6863 * gtk/marshalers.list (path_bar_clicked): Add the necessary
6866 * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
6870 * gtk/gtktreeview.h:
6871 * gtk/gtktreeview.c: Implement a getter for headers-clickable.
6872 (#163851, Richard Hult)
6874 2005-11-10 Michael Natterer <mitch@imendio.com>
6876 Applied patch from maemo-gtk that addresses many issues wrt
6877 display migration and display closing (bug #85715).
6879 * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
6880 default display to NULL when it's closed. Instead set the most
6881 recently opened display as new default (if one exists).
6883 * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
6886 * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
6887 exist before unrefing them.
6889 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
6890 is closed, allow destruction of the root window.
6892 * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
6893 dispose(), free stuff that was leaked before.
6895 * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
6896 the xsettings_client still exists before destroying it.
6898 * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
6901 * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
6902 dispose() implementation.
6904 * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
6905 dispose() and check if it still exists before unrefing it. Set
6906 their pointers to NULL/None *after* upchaining in dispose(),
6907 because X11 implementations of members of the parent class still
6908 need them for their own destruction.
6910 * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
6911 was g_error()ing when finalizing a visual.
6913 * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
6914 get_clipboard_widget() because it would create the widget if it
6915 doesn't exist. Use g_object_get_data() directly instead.
6917 * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
6920 2005-11-10 Simos Xenitellis <simos@gnome.org>
6922 * configure.in: Added Tatar (tt) to ALL_LINGUAS.
6924 Wed Nov 9 16:29:42 2005 Tim Janik <timj@imendio.com>
6926 * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
6927 to render its arrows insensitive when the adjustment is in
6928 its min or max position. this makes range arrow behaviour
6929 consistent with spin button behaviour. (#321056)
6931 2005-11-09 Tor Lillqvist <tml@novell.com>
6933 * gdk/gdkinternals.h
6934 * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
6935 the GdkDebugFlag enum.
6937 * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
6938 this file instead of MISC. Now asking for MISC will give mainly
6939 window manipulation debugging output with the Win32 backend.
6941 2005-11-09 Tor Lillqvist <tml@novell.com>
6943 * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
6945 (_gdk_win32_get_adjusted_client_rect): Remove this two-line
6946 function which was used only in one place.
6948 (get_outer_rect): Use _gdk_win32_adjust_client_rect().
6950 (gdk_window_set_geometry_hints): If we have identical minimum and
6951 maximum size hints, remove the resize and maximize
6952 decorations/functions. (#104514)
6954 If we have a maximum size hint, remove the maximize
6955 decoration/function but ensure the resize decoration/function is
6956 available. Otherwise ensure both resize and maximize
6957 decorations/functions are there.
6959 (set_or_clear_style_bits): Factored out common code from
6960 gdk_window_set_decorations() and gdk_window_set_functions().
6962 Hack the window style setting once more: Only touch the window
6963 style bits corresponding to the GdkWMDecoration or GdkWMFunction
6964 parameter bitmasks. Hopefully this finally is the correct thing to
6965 do. We used to clear all other bits than those that were being
6966 set, or set all other bits than those that were being cleared.
6968 Take into account that adding or removing decorations leaves the
6969 window's outer size unchanged, i.e., the client area's size and
6970 position change. This is apparently not what we want, so change
6971 also the window's (outer) position and size appropriately so that
6972 the client area's position and size stay constant.
6974 gtk-demo's color selector dialog is now non-resizable like on X11
6975 (I tested with metacity in GNOME). Torn off menus are shrinkable
6976 vertically but have a maximum size, and are not maximizable or
6977 minimizable, like on X11.
6979 (gdk_window_set_decorations, gdk_window_set_functions): Let
6980 set_or_clear_decorations() do most of the job.
6982 * gdk/win32/gdkprivate-win32.h: Remove declaration of
6983 _gdk_win32_get_adjusted_client_rect().
6985 2005-11-09 Tor Lillqvist <tml@novell.com>
6987 * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
6988 * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
6989 gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
6990 type hint. Implement gdk_window_get_type_hint() by just returning
6993 2005-11-09 Tor Lillqvist <tml@novell.com>
6995 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
6996 Remove code that has been permanently ifdeffed out for two years.
6998 2005-11-08 Matthias Clasen <mclasen@redhat.com>
7000 * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
7001 finalizing a gc. (#320789, Nickolay V. Shmyrev)
7003 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
7004 icons if they would make the request large enough to cause
7005 Xlib to loose the connection. (#320909, Claudio Saavedra)
7007 2005-11-08 Michael Natterer <mitch@imendio.com>
7011 * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
7012 extracted from maemo-gtk). Fixes bug #320872.
7014 2005-11-07 Matthias Clasen <mclasen@redhat.com>
7016 * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
7017 looks the bookmark label when reordering. (#320720, Jeremy Cook)
7019 * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
7020 Don't grab focus when a slider button is pressed, instead, use
7021 a bit in the pathbar struct to determine whether to scroll up
7022 or down. (#314486, Carlos Garnacho)
7024 * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
7025 Don't popup the completions if the focus has already been
7026 moved somewhere else. (#319914, Christian Persch)
7028 * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured):
7029 Raise the drag_window after reconfiguring the
7030 toolbar. (#320803, Christian Persch)
7033 * gtk/gtkfilechooserbutton.h:
7034 * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
7035 with setter and getter. (#318945, Christian Persch)
7037 Mon Nov 7 16:15:16 2005 Tim Janik <timj@imendio.com>
7039 * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
7041 2005-11-07 Matthias Clasen <mclasen@redhat.com>
7043 * configure.in: Adjust to the stock icon changes.
7045 2005-11-07 Tor Lillqvist <tml@novell.com>
7047 * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
7048 Correct the calculation of maskstride. (#320152, Peter Zelezny)
7050 2005-11-06 Michael Natterer <mitch@imendio.com>
7052 * gtk/Makefile.am (icons): fixed rule to actually create the
7053 symlinks, erroring out if anything goes wrong.
7055 2005-11-06 Tor Lillqvist <tml@novell.com>
7057 * gtk/updateiconcache.c (build_cache): Can't rename a file if the
7058 target exists on Win32. First rename the target temporarily, then
7059 if the renaming of the source to target fails, restore the
7060 original name for the target.
7062 * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
7064 2005-11-06 Tor Lillqvist <tml@novell.com>
7066 (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
7067 like pixbuf_to_hbitmaps_normal().
7068 (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
7069 G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
7070 setting the G_WIN32_PRETEND_WIN9X environment variable.
7072 2005-11-06 Tor Lillqvist <tml@novell.com>
7074 Make icon masks work on Win98 (#320152, Peter Zelezny)
7076 * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
7077 parameter for the depth of the bitmap, so that this function can
7078 be used to create 1-bit bitmaps, too.
7079 (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
7080 and initialize it properly.
7082 2005-11-04 Matthias Clasen <mclasen@redhat.com>
7084 Store builtin stock icons in an icon cache, instead of
7085 populating a hash table with pixbufs at startup, to save both
7086 memory and startup time.
7088 * gtk/stock-icons/*: Reorganize the icons in a directory structure
7089 suitable for gtk-update-icon-cache, and rename them to match the
7092 * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
7093 add _gtk_icon_cache_has_icon_in_directory().
7095 * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
7096 to store the contents of the icon cache in a C header.
7098 * gtk/gtkbuiltincache.h: Generated private header which contains
7099 the icon cache for the builtin icons.
7101 * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
7102 icons, and use that in addition to the hash table whenever
7103 builtin icons are searched.
7105 * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
7106 use it for static stock ids.
7107 (get_default_icons): Don't add the builtin
7108 icons to the icon theme, just register the stock ids.
7109 (render_fallback_image): Take the fallback image out of the
7112 * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add
7113 the necessary machinery to rebuild gtkbuiltincache.h.
7115 2005-11-04 Michael Natterer <mitch@imendio.com>
7117 * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
7118 from maemo-gtk that changes the mtime check for rc files from
7119 '>' to '!=', otherwise theme changes go unnoticed when turning
7120 back the clock (Tommi Komulainen).
7122 2005-11-04 Tor Lillqvist <tml@novell.com>
7124 * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
7127 2005-11-03 Tor Lillqvist <tml@novell.com>
7129 * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
7130 the Win32 backend, check that GdkDisplay* parameters are equal to
7131 _gdk_display instead of using the unnecessarily general
7134 (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
7135 color bitmap to have "color" in their name, for similarity with
7136 pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
7137 too, instead of creating a b&w bitmap with CreateBitmap(). Set up
7138 the mask bitmap's contents, ones for those pixels in the color
7139 bitmap where the alpha is zero, zero for other pixels. We used to
7140 use an uninitialized mask bitmap! This meant that icons and
7141 cursors created presumably worked more or less by accident.
7142 Totally blank icons with zero alpha everywhere (as used by
7143 gtktrayicon.c) definitely did not work as expected.
7145 * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
7147 * gtk/gtkstatusicon.c: Implement for Win32. Use code from
7148 gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
7149 necessary and can be removed from CVS. It has never been mentioned
7150 in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
7151 are used on Win32. One label widget is used (but never shown) as
7152 gtk_widget_render_icon() needs a widget.
7154 Ifdefs used as necessary in several places. It might be cleaner to
7155 split out the backend-specific parts to separate files, or at
7156 least collect them into separate blocks in the file.
7158 (wndproc): New function. Window procedure to monitor mouse events
7159 in the system tray icon. Call gtk_status_icon_button_press() as
7161 (create_tray_observer): New function. Creates a hidden window that
7162 only serves as a tray icon message observer.
7164 * tests/teststatusicon.c (icon_activated): Position the dialog
7165 with GTK_WIN_POS_CENTER.
7166 (do_quit): New function, hide and unref the GtkStatusIcon, and
7167 call gtk_main_quit().
7168 (popup_menu): Add a Quit menu item that calls do_quit().
7170 2005-11-02 Tor Lillqvist <tml@novell.com>
7172 * gdk/win32/gdkcolor-win32.c
7173 * gdk/win32/gdkscreen-win32.c
7174 * gdk/win32/gdkwindow-win32.c: Whitespace consistency
7175 fixes. Remove superfluous test for GdkWindow* parameters being
7176 non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
7177 GdkScreen and one GdkDisplay in the Win32 backend, use those
7178 variables instead of the getter functions. For GdkDisplay* and
7179 GdkScreen* parameters, check that they are equal to the
7180 corresponding singleton variables instead of the more general
7181 GDK_IS_DISPLAY() or GDK_IS_SCREEN().
7183 2005-11-02 Matthias Clasen <mclasen@redhat.com>
7185 * gtk/gtktextview.c: Remove some g_return_if_fail() from
7186 static functions, replace some others by g_assert().
7188 * gtk/gtktextview.c (selection_motion_event_handler)
7189 (gtk_text_view_start_selection_drag): Keep track of the original
7190 selection boundaries during a drag selection, in order to correctly
7191 decide when to extend or shrink the selection. (#320167,
7192 reported by Arvind S N, patch by Paolo Borelli)
7194 * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets):
7195 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
7196 manual offset calculations by g_utf8_offset_to_pointer().
7197 (#320360, Paolo Borelli)
7199 Tue Nov 1 16:18:24 2005 Tim Janik <timj@imendio.com>
7201 * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free
7202 nodes via the g_slice_*() API.
7203 _gtk_rbtree_new(): fixed wrong node allocation via g_new().
7205 2005-11-01 Tor Lillqvist <tml@novell.com>
7207 * gdk/win32/gdkprivate-win32.h
7208 * gdk/win32/gdkglobals-win32.c
7209 * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
7210 pre-interned GdkAtoms and pre-registered clipboard formats. Sort
7211 their declarations, definitions and assignments into a more
7212 logical and consistent order.
7214 * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
7215 CF_ prefix for the predefined clipboard format names. Put quotes
7216 around registered format names to distinguish them.
7218 * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
7219 immediately with a warning if the property type is STRING, TEXT,
7220 COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
7221 should never pretend to handle on Win32. Handle only UTF8_STRING
7222 here, other formats with delayed rendering. Use \uc1 instead of
7223 \uc0 when generating Rich Text Format for easier testability on
7224 XP, where WordPad misinterprets \uc0 encoded characters. Add more
7225 GDK_NOTE debugging output for Clipboard operations.
7227 * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
7228 (gdk_selection_convert): Don't pretent to handle STRING, just
7229 UTF8_STRING. Streamline error handling, don't unnecessarily have a
7230 GError which then isn't used for anything anyway if it gets set.
7231 (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
7232 COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
7234 * config.h.win32.in: Sync with what configure produces.
7236 * configure.in: Don't look for X_PACKAGES unless building for
7237 x11. (#313986, John Ehresman)
7239 2005-10-28 Erdal Ronahi <erdal.ronahi@gmail.com>
7241 * configure.in: Added ku (Kurdish) to ALL_LINGUAS
7242 Wondered why there was no ku there before??
7244 2005-10-28 Matthias Clasen <mclasen@redhat.com>
7246 * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
7247 window to the toplevels window group. (#319912, Christian Persch)
7249 2005-10-28 Kristian Rietveld <kris@gtk.org>
7251 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
7254 2005-10-28 Matthias Clasen <mclasen@redhat.com>
7256 * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
7257 drag cursors. (#319200, Federico Mena Quintero)
7259 * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
7260 Shift-G to go to the previous match, like firefox. (#320061, Christian
7263 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
7264 C99ism. (#320000, Kazuki Iwamoto)
7266 * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little
7267 stars. (#319985, Bastien Nocera)
7269 * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
7270 FALSE, so we don't flush repeatedly. (#319151, Alexander Larsson)
7272 2005-10-26 Michael Natterer <mitch@imendio.com>
7276 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
7277 make sure that setting any of pixbuf/stock-id/icon-name resets the
7278 others because they are mutually exclusive, and that unsetting any
7279 of them only resets the pixbuf and nothing else. Also added
7280 some missing g_object_notify().
7282 (gtk_cell_renderer_pixbuf_get_property): simplified calls to
7283 g_value_set_object().
7285 (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
7286 (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
7287 g_object_notify ("pixbuf").
7289 2005-10-27 Matthias Clasen <mclasen@redhat.com>
7291 * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
7292 careful about initializing cell_area. (#319382, Tommi
7295 * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
7296 Ctrl-PageUp/PageDown. (#318670, Christian Neumair)
7298 * demos/gtk-demo/clipboard.c (paste_received): Only set the
7299 text if it is not NULL. (#319930, Thomas Klausner)
7301 * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
7302 loader before trying to get the pixbuf. (#319930, Thomas Klausner)
7304 2005-10-26 Matthias Clasen <mclasen@redhat.com>
7306 * gtk/gtkfilesystem.c (gtk_file_system_module_load):
7307 * gtk/gtkthemes.c (gtk_theme_engine_load):
7308 * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
7309 when dlopening modules. (#319557, Laszlo Peter)
7311 2005-10-26 Matthias Clasen <mclasen@redhat.com>
7313 * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
7314 segments when determining text direction. (#319065, Tommi Komulainen)
7316 * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
7317 on duplicate destroy. (#318953, Gustavo Carneiro)
7319 * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
7320 Point out that destroy-with-parent is a bad idea for the dialog
7321 passed to this function. (#318943, Christian Persch)
7323 * */Makefile.am: use $(GLIB_MKENUMS) instead of
7324 glib-mkenums. (#318582, Damien Carbery)
7326 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
7327 docs. (#317682, Christian Neumair)
7329 * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
7330 seem to affect the placement of the data in the readonly
7331 section, and causes problems with some compilers. (#317844)
7333 2005-10-25 Matthias Clasen <mclasen@redhat.com>
7335 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7336 Fix some issues with background drawing in RTL. (#318781,
7339 * tests/Makefile.am:
7340 * tests/testentrycompletion.c: Apply a patch by Christian
7341 Persch to add property editors.
7343 * gtk/gtkstatusicon.c: Emit activate on single-click,
7344 not on double-click, change proposed by Milosz Derezynski.
7346 2005-10-25 Kristian Rietveld <kris@gtk.org>
7348 Fixes #311955, reported by Markku Vire; and a lot more.
7350 * gtk/gtktreemodelfilter.c: Made this thing work correctly.
7351 Levels can now have invisible nodes cached, functions have been
7352 rewritten/refactored to take this into account; also the logic in
7353 some functions has been corrected.
7355 Each referenced node now references all visible children or a single
7356 invisible child, in order to be able to monitor all changes in the
7357 child model required for correct operation.
7359 When a virtual root is set, all nodes on the virtual root level are
7362 At last, a bunch of random bug fixes and comment updates.
7364 2005-10-25 Matthias Clasen <mclasen@redhat.com>
7366 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
7367 more docs. (#319722, Paolo Borelli)
7369 * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the
7370 initialization of screen_x11->xft_rgba more explicit. (#319627,
7373 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
7374 in a blurb. (#319499, Francisco Javier F. Serrador)
7376 2005-10-24 Matthias Clasen <mclasen@redhat.com>
7378 Add settings to hide the input method and Unicode control character
7379 submenus in the context menus of GtkEntry and GtkTextView.
7381 * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
7383 * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
7385 * gtk/gtktextview.c (popup_targets_received):
7386 * gtk/gtkentry.c (popup_targets_received): Use the settings here.
7388 2005-10-24 Kristian Rietveld <kris@gtk.org>
7390 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
7391 row-has-child-toggled when the level is not in the cache does not
7392 make sense. (This bug probably crept in during the early stages
7393 of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
7394 implementation yet),
7395 (gtk_tree_model_sort_real_unref_node): only get the child iter
7396 when we will actually also use it.
7398 2005-10-22 Michael Natterer <mitch@imendio.com>
7400 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
7401 widget being realized, in addition to being visible, to avoid
7402 running into precondition check in gtk_tree_view_get_cell_area().
7405 2005-10-22 Dom Lachowicz <cinamod@hotmail.com>
7407 * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style):
7408 Experimentally, scrollbar steppers can shrink to 8 pixels on
7409 Win32. Reflect that in the theme.
7410 * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
7411 there is a 1-pixel border between a scrollbar and its child
7412 in ScrolledWindows on Win32. Reflect that in the theme.
7414 2005-10-20 Matthias Clasen <mclasen@redhat.com>
7416 * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
7417 for the selection window. (#318806, Alex Larsson)
7419 2005-10-18 Federico Mena Quintero <federico@ximian.com>
7423 * tests/autotestfilechooser.c
7424 (test_button_folder_states_for_action): Test that we have either
7425 $cwd or the explicitly-set folder.
7426 (test_reload_sequence): Likewise.
7428 * gtk/gtkfilechooserdefault.c
7429 (gtk_file_chooser_default_get_current_folder): If our reload_state
7430 is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
7432 2005-10-14 Tor Lillqvist <tml@novell.com>
7434 * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
7435 It didn't really do anything useful, and was just confusing and
7436 incomplete. Comments claimed we don't do delayed rendering, but in
7437 fact we do, for images. (The delayed rendering code has other
7438 problems, though, see #168173.) The clipboard viewer code was
7439 probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
7440 the message when necessary). It was just test code, it said so in
7441 a comment. Add something similar back later if necessary.
7443 (_win32_on_clipboard_change,
7444 _gdk_win32_register_clipboard_notification): Remove.
7446 (gdk_display_supports_selection_notification,
7447 gdk_display_request_selection_notification): Always just return
7448 FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
7450 2005-10-13 Tor Lillqvist <tml@novell.com>
7452 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
7453 Alt-Enter specially. It does not have any special meaning and
7454 should be passed on to the application. (#318378, Tim Evans)
7456 2005-10-13 Tor Lillqvist <tml@novell.com>
7458 Set visual depth to 24 for 32 bits-per-pixel devices on
7459 Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
7460 optimized composite_0888() function rather than the slower image
7461 dithering functions to draw pixbufs (#313993, John Ehresman)
7463 * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
7464 _gdk_windowing_get_bits_for_depth() to initialize
7465 GdkImage::bits_per_pixel.
7466 (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
7468 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
7469 _gdk_windowing_get_bits_for_depth() to initialize
7470 BITMAPINFOHEADER::biBitCount.
7472 * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
7473 GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
7476 2005-10-12 Stefan Kost <ensonic@users.sf.net>
7478 * demos/gtk-demo/appwindow.c: (about_cb):
7479 use PACKAGE_VERSION,bump year (#318654)
7481 2005-10-11 Matthias Clasen <mclasen@redhat.com>
7483 * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off
7484 toggle here with the matching on toggle if it immediately follows.
7485 This is a common case, and handling it here prevents quadratic blowup
7486 in cleanup_line() below. (#317125)
7488 * gtk/gtktextsegment.h:
7489 * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
7490 the character counts into this function instead of computing them
7493 2005-10-10 Tommi Komulainen <tommi.komulainen@iki.fi>
7495 * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
7497 * gtk/gtkfilechooserdefault.c
7498 (gtk_file_chooser_default_add_shortcut_folder): Return an error code
7499 when the shortcut already exists in the sidebar. (#147521)
7501 2005-10-09 Matthias Clasen <mclasen@redhat.com>
7503 * tests/testcombo.c: Demonstrate how to use custom widgets in
7506 2005-10-07 Federico Mena Quintero <federico@ximian.com>
7510 * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
7511 the the result of gtk_file_chooser_get_folder() is NULL or
7512 non-NULL at the right times. Log the tests.
7513 (test_button_folder_states): New test for the initial states of
7514 the current folder in GtkFileChooserButton.
7515 (main): Test that the number of warnings/errors/critical errors is
7518 * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
7519 Clarify the documentation on when this can return NULL.
7520 (gtk_file_chooser_get_current_folder_uri): Likewise.
7522 * gtk/gtkfilechooserbutton.c (struct
7523 _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
7524 we use it to keep track of whether a folder has been set.
7525 (gtk_file_chooser_button_map): Implement. If no folder has been
7526 loaded before, we at least try to load $cwd here.
7527 (gtk_file_chooser_button_constructor): If the construct-time
7528 dialog already has a folder set, turn on our folder_has_been_set
7530 (dialog_current_folder_changed_cb): Turn on our
7531 folder_has_been_set flag.
7533 2005-10-07 Michael Natterer <mitch@gimp.org>
7535 * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
7536 PROFILE_FILE_CHOOSER because they break compilation after the
7537 removal of <unistd.h>.
7539 2005-10-07 Matthias Clasen <mclasen@redhat.com>
7541 * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
7542 by moving it out of the profiling ifdef.
7544 * gtk/gtkfilechooserdefault.c: Remove a redundant (and
7545 unconditional) include of unistd.h (#318211, Kazuki Iwamoto)
7547 * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
7548 g_return_val_if_fail(), not g_return_if_fail(). (#318412,
7551 2005-10-06 Matthias Clasen <mclasen@redhat.com>
7554 * gtk/gtktextbuffer.h:
7555 * gtk/gtktextbuffer.c: Add a readonly has-selection property
7556 with a getter. (#318161, Paolo Borelli)
7558 2005-10-05 Matthias Clasen <mclasen@redhat.com>
7560 * README.in: Start collecting release notes for 2.10.
7562 * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
7563 leak fix, since the assertion failures were traced to
7564 an xchat bug. (#314696)
7566 * gtk/gtkstyle.c (gtk_style_detach):
7567 (gtk_style_attach): Documentation improvements.
7568 (gtk_style_detach): Assert that the attach_count is > 0.
7570 2005-10-04 Federico Mena Quintero <federico@ximian.com>
7572 * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
7573 shortcut position, not a ShortcutsIndex, to make the function more
7575 (home_folder_handler): Pass the resolved index to
7576 switch_to_shortcut(), rather than just SHORTCUTS_HOME.
7577 (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
7578 (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
7579 binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0. These
7580 make the respective key switch to the first, second, ..., tenth
7582 (quick_bookmark_handler): Implement.
7584 2005-10-04 Federico Mena Quintero <federico@ximian.com>
7586 * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
7587 Desktop; just use their real names on the file system for the
7590 * gtk/gtkfilechooserdefault.c
7591 (gtk_file_chooser_default_class_init): Add a "desktop-folder"
7592 binding signal, and bind it to M-d by default.
7593 (desktop_folder_handler): Implement the default handler.
7594 (home_folder_handler): Use a helper function.
7595 (switch_to_shortcut): New helper function.
7596 (shortcuts_append_home): Don't special-case the name of "Home";
7597 just use the folder name.
7599 2005-10-04 Tor Lillqvist <tml@novell.com>
7601 * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
7602 HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
7604 2005-10-04 Matthias Clasen <mclasen@redhat.com>
7606 * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
7607 from yesterday, since it leads to assertion failures. (#317879,
7610 2005-10-03 Matthias Clasen <mclasen@redhat.com>
7612 * gtk/gtkcalendar.c (gtk_calendar_init): Call
7613 calendar_compute_days() after setting priv->week_start.
7615 2005-10-03 Matthias Clasen <mclasen@redhat.com>
7617 * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
7618 removing it from the hash table. (#314696, Benjamin Berg)
7620 2005-10-01 Tor Lillqvist <tml@novell.com>
7622 * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
7623 BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
7624 is that the the desktop isn't visible because the session has been
7625 switched, the screen is locked, or a terminal server session
7626 disconnected, so no error message necessary. (#137796)
7628 It is of course remotely possible that BitBlt() failing with
7629 ERROR_INVALID_HANDLE might also be caused by some other
7630 problem. We could strive for perfection and track whether the
7631 desktop is visible by using WTSRegisterSessionNotification() and
7632 handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
7633 this issue, though. If we would track desktop visibility, we
7634 should then avoid even trying to update the display at all while
7635 the desktop isn't visible.
7637 2005-09-30 Matthias Clasen <mclasen@redhat.com>
7639 * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
7640 to correct the calculations for the first week day. We may
7641 just have to remove this code if too many locales turn out
7642 to have broken data.
7644 * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
7645 some cases. (#317611, Tommi Komulainen)
7647 * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
7648 Prevent overflow when storing size hints in an unsigned
7649 short variable. Tracked down by Ray Strode and Søren Sandmann.
7651 2005-09-29 Matthias Clasen <mclasen@redhat.com>
7653 * gtk/gtkbutton.c (gtk_button_set_image): Check arguments. (#317491,
7656 * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
7657 grab shadowed. (#317332)
7659 2005-09-29 Tor Lillqvist <tml@novell.com>
7661 * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
7663 2005-09-28 Federico Mena Quintero <federico@ximian.com>
7665 * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
7666 if the unmap test fails.
7667 (test_reload_sequence): Use gtk_widget_show_now() instead of
7668 gtk_widget_show() for the dialog.
7669 Thanks to Tim Janik for noticing these.
7671 2005-09-28 Federico Mena Quintero <federico@ximian.com>
7673 * tests/testcellrenderertext.c: New file with a set of tests for
7674 GtkCellRendererText. The idea is to run a text renderer through
7675 most of its interesting property values to see that it works
7678 * tests/Makefile.am: Added testcellrenderertext.
7680 * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
7681 entry/exit of this function for profiling.
7682 (gtk_file_chooser_default_style_set): Mark the start/end of the
7683 calls to the parent class and the the signal emission for profiling.
7685 2005-09-29 Tor Lillqvist <tml@novell.com>
7687 * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
7688 passed to bindtextdomain() which isn't UTF-8-aware, so convert to
7689 system codepage using g_win32_locale_filename_from_utf8().
7690 (#317457, Kazuki Iwamoto)
7692 2005-09-28 Matthias Clasen <mclasen@redhat.com>
7694 * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms
7695 here. (#317039, Paolo Borelli)
7698 * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
7699 to make this function work as boxed copy function. (#317455,
7702 * gtk/gtkclipboard.c (request_image_received_func): Don't unref
7703 NULL. (#316828, Tor Lillqvist)
7705 2005-09-28 Tor Lillqvist <tml@novell.com>
7707 * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
7710 2005-09-27 Federico Mena Quintero <federico@ximian.com>
7712 Don't reload the current folder unnecessarily on ::map().
7714 * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
7715 the reloading state.
7716 (struct _GtkFileChooserDefault): Added a "reload_state" field.
7718 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
7719 Initialize impl->reload_state.
7720 (gtk_file_chooser_default_map): Check the impl->reload_state; load
7721 a default folder if no folder has been set, or reload the current
7722 one only if we had been unmapped first.
7723 (gtk_file_chooser_default_update_current_folder): Set the
7724 reload_state to RELOAD_HAS_FOLDER.
7725 (gtk_file_chooser_default_unmap): Implement, and set the
7726 reload_state to RELOAD_WAS_UNMAPPED.
7727 (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
7728 here; they'll get (re)loaded on ::map() anyway.
7730 * gtk/gtkfilechooserwidget.c
7731 (gtk_file_chooser_widget_constructor): Don't set a default folder here.
7733 * tests/autotestfilechooser.c (test_action_widgets): Don't take in
7734 a dialog; build it ourselves.
7735 (test_reload): New test to ensure that we don't load the default
7736 folder more than once, and that we reload it when
7737 unmapping/remapping.
7738 (get_impl_from_dialog): New utility function.
7739 (test_widgets_for_current_action): Use get_impl_from_dialog().
7741 2005-09-27 Federico Mena Quintero <federico@ximian.com>
7743 * gtk/gtkfilechooserdefault.c
7744 (gtk_file_chooser_default_constructor): Mark the entry/exit of
7745 this function for profiling.
7746 (check_icon_theme): Likewise.
7747 (change_icon_theme): Likewise.
7748 (settings_notify_cb): Likewise.
7749 (gtk_file_chooser_default_screen_changed): Likewise.
7750 (update_chooser_entry): If the selection is empty, clear the file
7751 name entry only if we are in CREATE_FOLDER mode. In SAVE mode,
7752 nothing will be selected when the user starts typeahead in the
7753 treeview, and we don't want to clear the file name entry in that
7754 case --- the user could be typing-ahead to look for a folder name.
7755 Fixes bug #308332, patch by Jürg Billeter.
7757 2005-09-27 Matthias Clasen <mclasen@redhat.com>
7759 * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
7760 Pop below the entry if there's more free space below the entry
7761 than above. (#316948, Tommi Komulainen)
7763 2005-09-26 Federico Mena Quintero <federico@ximian.com>
7765 Do not create the save mode-specific widgets in the open modes, so
7766 that we don't carry their baggage around.
7768 * gtk/gtkfilechooserdefault.c
7769 (gtk_file_chooser_default_constructor): Don't create the
7771 (save_widgets_create): Set the impl->save_widgets directly here,
7772 instead of passing the widgets back to the caller. Also, pack
7773 them into the impl's box.
7774 (update_appearance): Create or destroy the save widgets as
7775 appropriate. Set the action of the save_file_name_entry here.
7776 (shortcuts_add_current_folder): Set the active item in the
7777 save_folder_combo only if it exists.
7778 (gtk_file_chooser_default_set_property): Don't set the action of
7779 the save_file_name_entry here.
7780 (gtk_file_chooser_default_update_current_folder): Set the base
7781 folder of the save_file_name_entry only if the entry exists.
7782 (shortcuts_drag_data_received_cb): Cast the selection_data->data
7783 to (const char *) since that's what shortcuts_drop_uris() expects.
7784 (file_list_drag_data_received_cb): Likewise, for
7785 g_uri_list_extract_uris().
7787 2005-09-26 Tor Lillqvist <tml@novell.com>
7789 * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
7790 the shaped flag here, too. (#316871)
7791 (gdk_window_shape_combine_region): Currently unimplemented, so
7792 don't do anything to the shaped flag here.
7794 2005-09-26 Matthias Clasen <mclasen@redhat.com>
7796 Fix #316871, reported by Dan Winship:
7798 * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
7800 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask)
7801 (gdk_window_shape_combine_region): Set it here.
7803 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
7804 remove the child area for shaped windows.
7806 2005-09-23 Matthias Clasen <mclasen@redhat.com>
7808 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
7809 Don't leak expander pixbufs. (#316946, Tommi Komulainen)
7811 2005-09-22 Michael Natterer <mitch@imendio.com>
7813 Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
7814 consistent with GTK+ terminology:
7816 * gtk/gtkcellrendererkeys.[ch]
7817 * tests/testkeys.c: removed...
7819 * gtk/gtkcellrendereraccel.[ch]
7820 * tests/testaccel.c: ...and added.
7825 * tests/Makefile.am: changed accordingly.
7827 2005-09-22 Matthias Clasen <mclasen@redhat.com>
7829 * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
7830 for the grab-broken-event signal, noticed by Damon Chaplin.
7832 2005-09-21 Tor Lillqvist <tml@novell.com>
7834 * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
7835 gdk_text_property_to_text_list_for_display,
7836 gdk_text_property_to_utf8_list_for_display,
7837 gdk_win32_selection_add_targets,
7838 _gdk_win32_selection_convert_to_dib): Free return value from
7840 (gdk_text_property_to_text_list_for_display): Drop GError variable
7841 that isn't actually used after being set.
7843 2005-09-20 Johan Dahlin <jdahlin@async.com.br>
7845 * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in
7848 2005-09-20 Tor Lillqvist <tml@novell.com>
7850 * gdk/win32/gdkselection-win32.c
7851 (gdk_selection_owner_get_for_display): Do return the correct owner
7852 for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
7853 a window GDK knows about). The reason to return NULL seems to have
7854 gone when in the fix for bug #163702 the artificial
7855 GDK_SELECTION_CLEAR event generation was removed from
7856 gdk_selection_send_notify_for_display(). Fixes bug #316552.
7858 2005-09-20 Matthias Clasen <mclasen@redhat.com>
7860 Avoid unnecessary XkbGetState() calls and XkbStateNotify
7861 events. (#151555, Søren Sandmann)
7863 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use
7864 XkbSelectEventDetails() to select XkbStateNotify events
7865 for only the state we care about.
7867 * gdk/x11/gdkprivate-x11.h:
7868 * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
7869 the event into the function and update the keymap state from
7870 the state information contained in the event. Adjust all callers.
7872 2005-09-19 Matthias Clasen <mclasen@redhat.com>
7874 * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
7875 in multiple places to avoid segfaults if the index is out of range.
7876 (#316422, Guillaume Cottenceau)
7877 (gtk_icon_view_set_drag_dest_item):
7878 (gtk_icon_view_scroll_to_path): Fix a typo in the docs. (#316419,
7879 #316424, Guillaume Cottenceau)
7881 2005-09-18 Hans Breuer <hans@breuer.org>
7883 * gtk/gtktrayicon-win32.c : now handling events by hard-coded
7884 g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
7886 2005-09-18 Hans Breuer <hans@breuer.org>
7888 * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
7889 _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
7890 * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
7891 the icon and is blinking with teststatusicon. More to come ...
7893 2005-09-18 Hans Breuer <hans@breuer.org>
7895 * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
7896 cause gtkprogressbar.c has #include <config.h> conditionally; less
7897 noise from generated gtk.def
7898 * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
7900 * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
7901 For me it works as well as the *NIX implemenation, that is not at all.
7903 * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
7905 * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
7906 only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
7907 back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
7908 again - if compiled properly.
7910 * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
7911 already coming with Gtk+. Makes it compile on win32.
7913 2005-09-18 Guilherme de S. Pastore <gpastore@cvs.gnome.org>
7915 * README.cvs-commits: fixed some tiny typos
7917 2005-09-16 Tor Lillqvist <tml@novell.com>
7919 * modules/engines/ms-windows/msw_style.c (draw_extension,
7920 draw_box_gap): Check whether the widget actually is a GtkNotebook
7921 before treating it as such. Drop some unneeded local variables,
7922 use parameter with same information instead. (#316412)
7924 2005-09-15 Federico Mena Quintero <federico@ximian.com>
7926 * tests/autotestfilechooser.c: Start a set of automated tests for
7927 the file chooser. The only test in there right now doesn't pass
7928 yet. It specifies the intended behavior of the first optimization
7929 of a series which I'll do on the file chooser (see
7930 http://primates.ximian.com/~federico/news-2005-09.html#14 for the
7931 details of this optimization).
7933 * tests/Makefile.am: Added autotestfilechooser.c.
7935 * gtk/gtkfilechooserprivate.h (struct
7936 _GtkFileChooserDialogPrivate): Move all the file chooser's private
7937 structures to here, so that they can be accessed by
7938 tests/autotestfilechooser.c: _GtkFileChooserDialogPrivate,
7939 _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
7941 * gtk/gtkfilechooserdialog.c: See above.
7943 * gtk/gtkfilechooserwidget.c: See above.
7945 * gtk/gtkfilechooserdefault.c: See above.
7947 Thu Sep 15 15:27:55 2005 Tim Janik <timj@imendio.com>
7950 gtk_window_map_event(): new function to work around lost unmap requests.
7953 2005-09-14 Federico Mena Quintero <federico@ximian.com>
7955 * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
7956 an easy-to-find profiling marker when starting to create a file
7958 (browse_files_model_finished_loading_cb): Likewise, for when the
7959 chooser is finished loading.
7961 2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
7963 * gtk/gtkcolorbutton.c: Check "color" argument in
7964 gtk_color_button_set_color ()
7966 2005-09-14 Matthias Clasen <mclasen@redhat.com>
7968 * gtk/gtklabel.c (gtk_label_get_type):
7969 * gtk/gtkbutton.c (gtk_button_get_type):
7970 * gtk/gtkwindow.c (gtk_window_group_get_type): No point in
7971 using a mem chunk for window groups, buttons, labels.
7973 * gtk/updateiconcache.c (foreach_remove_func): Fix
7974 a use-after-free bug. (#316256, Alexander Nedotsukov)
7976 2005-09-13 Matthias Clasen <mclasen@redhat.com>
7978 * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
7980 * gdk/*.c: Various cleanups. (#315359, Kjartan Maraas)
7982 2005-09-13 Matthias Clasen <mclasen@redhat.com>
7984 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
7985 Let GDK_Return pass through in some more cases.
7987 * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
7988 activating the entry.
7990 * gtk/gtkiconview.c (gtk_icon_view_class_init):
7991 (gtk_icon_view_get_dest_item_at_pos): Fix typos in the
7992 docs. (#316008, #316027, #316121, Guillaume Cottenceau)
7994 * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
7995 (#316001, Guillaume Cottenceau)
7997 * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
7998 mistake in the docs. (#315993, Guillaume Cottenceau)
8000 * tests/testentrycompletion.c (create_simple_completion_model): Add
8001 some strings containing multibyte characters.
8003 * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
8004 Fix prefix insertion for multibyte characters. (#316095,
8007 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
8008 * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
8009 return NULL if the widget is not realized. (#316023,
8010 Guillaume Cottenceau)
8012 2005-09-11 Matthias Clasen <mclasen@redhat.com>
8015 * gdk/gdkproperty.h:
8016 * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
8017 New function to avoid pointless strdups when creating atoms
8018 from static strings.
8021 * gtk/*.c: Use gdk_atom_intern_static_string() where
8024 2005-09-09 Matthias Clasen <mclasen@redhat.com>
8026 * gtk/gtkcellrendererkeys.h:
8027 * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
8028 and editing accelerators, a port of EggCellRendererKeys .
8032 * gtk/Makefile.am: Add the keys cell renderer.
8034 * tests/Makefile.am:
8035 * tests/testkeys.c: Test GtkCellRendererKeys
8037 2005-09-09 Matthias Clasen <mclasen@redhat.com>
8039 Make it possible to determine if a key event is for a
8042 * gdk/x11/gdkprivate-x11.h:
8043 * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier):
8044 New function to determine if a keycode is mapped to a modifier.
8045 (get_xkb): Get the modmap.
8047 * gdk/x11/gdkevents-x11.c (translate_key_event): Set the
8048 is_modifier bit by calling _gdk_keymap_key_is_modifier().
8050 * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
8053 2005-09-09 Matthias Clasen <mclasen@redhat.com>
8055 * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an
8056 unused variable, noticed by Kjartan Maraas.
8058 2005-09-09 Matthias Clasen <mclasen@redhat.com>
8060 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
8061 Make drag reordering work properly for columns other than the
8062 first. (#315054, Dan Winship)
8064 * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle
8065 invalid fontnames better. (#136926, Michael R. Walton)
8067 Stop cursor blinking in non-editable regions of a text view.
8068 (#311508, Torbjörn Andersson)
8070 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink):
8071 (cursor_blinks): Take editability into account when deciding
8072 whether the cursor blinks.
8073 (gtk_text_view_button_release_event):
8074 (gtk_text_view_move_cursor_internal): Update cursor blinking here.
8076 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
8077 Use connect_after to connect to the focus_out event. This
8078 ensures that the entry has already stopped blinking by the time
8079 we emit the edited signal. (#315229, Thomas Leonard)
8081 * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
8083 * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
8084 unsigned ints to -1. (#315481, Kjartan Maraas)
8086 * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
8087 to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
8088 (#314473, Stanislav Brabec)
8090 2005-09-09 Matthias Clasen <mclasen@redhat.com>
8092 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
8093 memory handling. (#314975, Torsten Schoenfeld)
8095 * gtk/gtkiconview.c (gtk_icon_view_class_init):
8096 * gtk/gtkfilesel.c (gtk_file_selection_class_init):
8097 * gtk/gtkcombobox.c (gtk_combo_box_class_init):
8098 * gtk/gtklabel.c (gtk_label_class_init):
8099 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
8100 Stylistic improvements and clarifications for some blurbs.
8101 (#315520, Clytie Siddall)
8103 2005-09-09 Tor Lillqvist <tml@novell.com>
8105 * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
8106 display name. There is only one GdkDisplay on Win32, and
8107 constructing the display name isn't entirely trivial, so cacheing
8108 is probably worth it. For instance GIMP calls this function a lot.
8109 (gdk_display_open): Call gdk_display_get_name() to prime the
8111 (gdk_display_get_n_screens, gdk_display_get_screen,
8112 gdk_display_get_default_screen): Verify parameter correctness like
8113 the X11 backend does.
8115 * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
8116 Return a freshly allocated string, as the API specifies. Fixes a
8117 heap corruption problem that caused random errors and crashes in
8120 2005-09-07 Matthias Clasen <mclasen@redhat.com>
8122 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
8123 Make C-u commit and restart hex input if we are already in a
8126 2005-09-06 Matthias Clasen <mclasen@redhat.com>
8128 * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
8129 (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
8130 if they are mapped to the same modifier.
8132 * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
8133 to gtkstatusicon.c and gtktrayicon-x11.c
8135 * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
8136 default accel mod mask.
8138 * gtk/gtkaccelgroup.c (gtk_accelerator_parse):
8139 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
8140 Don't use GDK_ALT_MASK.
8142 * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
8144 2005-09-06 Matthias Clasen <mclasen@redhat.com>
8146 Add support for extra virtual modifiers: (#85780, Owen Taylor)
8148 * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
8151 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
8152 Mod2 - Mod5 and against Super, Hyper, Meta.
8154 * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):
8155 * gtk/gtkaccelgroup.c (gtk_accelerator_parse)
8156 (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
8158 * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a
8159 modmap to maintain the information which X modifiers map to
8161 (get_xkb): Set up the modmap from the XKB tables.
8162 (update_keymaps): Set up the modmap from the information returned
8163 by XGetModifierMapping in the non-XKB case.
8165 * gdk/x11/gdkprivate-x11.h:
8166 * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New
8167 function to set the virtual modifiers in the state.
8169 * gdk/x11/gdkevents-x11.c (translate_key_event): Call
8170 _gdk_keymap_add_virtual_modifiers here.
8172 * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super,
8173 Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
8176 2005-09-05 Matthias Clasen <mclasen@redhat.com>
8178 * gtk/gtkaction.c (connect_proxy): Set the label of a button
8179 if it has no child. (#315253, John Finlay)
8181 2005-09-02 Matthias Clasen <mclasen@redhat.com>
8183 * gtkimcontextsimple.h: Add a modifiers_dropped bit
8185 2005-09-02 Matthias Clasen <mclasen@redhat.com>
8187 * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
8188 on destroy to avoid problems when they are called on a destroyed
8189 widget. (#315135, John Cupitt)
8191 * gtk/gtkentry.c (gtk_entry_class_init):
8192 * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
8193 for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)
8195 * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
8196 code. Now we only steal a single key combination, Ctrl-Shift-U,
8198 A hex Unicode sequence must be started with Ctrl-Shift-U, followed
8199 by a sequence of hex digits entered with Ctrl-Shift still held.
8200 Releasing one of the modifiers or pressing space while the modifiers
8201 are still held commits the character. It is possible to erase
8202 digits using backspace.
8203 As an extension to the above, we also allow to start the sequence
8204 with Ctrl-Shift-U, then release the modifiers before typing any
8205 digits, and enter the digits without modifiers.
8206 (#82011, Owen Taylor)
8208 2005-09-02 Matthias Clasen <mclasen@redhat.com>
8210 * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
8211 we still need to deliver the destroy event. (#314980, Chris Lahey)
8213 * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
8214 im context before committing \n or \t.
8216 2005-09-02 Alexander Larsson <alexl@redhat.com>
8218 * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
8219 (shortcuts_activate_volume):
8220 Handle base_path being null in the rest of the cases (#310270)
8222 2005-09-02 Tor Lillqvist <tml@novell.com>
8224 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
8225 cursor position also in root window coordinates. Prune out
8226 superfluous WM_MOUSEMOVE events even earlier, based on root window
8227 coordinates. Windows sends WM_MOUSEMOVE messages after a new
8228 window has ben mapped below the cursor even if the mouse doesn't
8229 move. We used to generate GDK_MOTION_NOTIFY in these cases. This
8230 confused at least gtk_menu_motion_notify(). (#314995)
8232 * gtk/gtkintl.h: No need to include config.h here. It caused
8233 warnings about GTK_LOCALEDIR being redefined on Win32 when
8234 compiling files where gtkintl.h is included after gtkprivate.h
8235 (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
8237 * gtk/gtkplug.c: Include config.h.
8239 2005-09-01 Matthias Clasen <mclasen@redhat.com>
8241 * gtk/gtkfilesystemunix.c: Pass statbufs down to
8242 xdg_mime_get_mime_type_for_file() where possible, to avoid
8245 * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
8246 typo. (#314921, Guillaume Cottenceau)
8248 * gdk/*.c: Intern some more strings.
8250 * gtk/*.c: Define an I_() macro and use it instead of the
8251 bulky g_intern_static_string().
8253 2005-08-31 Matthias Clasen <mclasen@redhat.com>
8255 * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
8256 instead of copying it.
8258 * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
8260 * gtk/*.c: Also intern static strings passed to
8261 g_object_set_data().
8264 * gtk/Makefile.am: Intern type names in code generated by
8269 * gdk/*.c: Intern type names before registering the type to avoid
8272 * configure.in: Require GLib 2.9.0
8274 2005-08-31 Matthias Clasen <mclasen@redhat.com>
8276 * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
8277 and add icon-size and icon-size-set properties. (#314172)
8279 * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
8280 groups across transient parents. (#312918, Christian Persch)
8282 * gtk/gtktreemodel.c: Some documentation fixes. (#314882,
8283 Guillaume Cottenceau)
8285 * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions):
8286 Fix a typo in the docs. (#314878, Guillaume Cottenceau)
8288 2005-08-30 Matthias Clasen <mclasen@redhat.com>
8290 * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
8291 make C-/ select all and C-\ unselect all. (#309301,
8294 * gtk/gtkimcontextsimple.c: Change the compose sequence for
8295 soft hyphen to be multi_key-minus-minus-space, and add
8296 compose sequences multi_key-minus-minus-period and
8297 multi_key-minus-minus-minus for en dash and em dash.
8298 (#172653, Christian Lohmaier)
8300 * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
8301 code. (#313946, Christian Persch)
8303 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
8304 fix for the default value of the "ui" property.
8306 2005-08-30 Matthias Clasen <mclasen@redhat.com>
8309 * gtk/gtkselection.h:
8310 * gtk/gtkselection.c: Add functions which look for text, image
8311 or uri targets in an array of atoms. (#314089, Mark Wielaard)
8314 * gtk/gtkselection.h:
8315 * gtk/gtkselection.c (gtk_selection_data_targets_include_uri):
8316 Add a function to check wether targets include uri.
8317 (#314092, Mark Wielaard)
8321 * gtk/gtkwindow.c: Add a deletable property with getter
8322 and setter, to control the close button in the window
8323 frame. (#59718, Havoc Pennington)
8325 2005-08-29 Matthias Clasen <mclasen@redhat.com>
8327 * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
8328 to the arrow keys for menu navigation. (#162825, Carl Worth)
8330 * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
8332 * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
8334 * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock):
8335 * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
8336 refer to nonexisting stock ids.
8338 * gtk/gtktextview.c (popup_targets_received):
8339 * gtk/gtkentry.c (popup_targets_received): Construct
8340 the "Select All" menuitem from stock.
8342 * gtk/stock-icons/stock_select_all_{16,24}.png:
8343 * gtk/stock-icons/Makefile.am:
8344 * gtk/gtkiconfactory.c:
8346 * gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
8349 * gtk/gtktrayicon.c: Add a pointer to the spec.
8351 * gtk/gtkstatusicon-x11.c: Add docs.
8353 * gtk/gtkstatusicon.h: Fix a typo.
8355 Add a cross-platform "tray icon" API, by
8356 porting EggStatusIcon/EggTrayIcon (#105101)
8358 * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
8359 displays an icon in a notification area.
8361 * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
8362 X11, using GtkTrayIcon.
8364 * gtk/gtktrayicon.h:
8365 * gtk/gtktrayicon.c: An implementation of the freedesktop.org
8366 system tray specification, not public API.
8368 * gtk/gtk.symbols: Add new exported functions.
8370 * gtk/gtk.h: Include gtkstatusicon.h.
8372 * gtk/Makefile.am: Add new files.
8374 * tests/Makefile.am:
8375 * tests/teststatusicon.c: Test for GtkStatusIcon.
8377 2005-08-29 Christopher Aillon <caillon@redhat.com>
8379 * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
8380 and GTK_STOCK_DISCONNECT
8382 2005-08-29 Matthias Clasen <mclasen@redhat.com>
8384 * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
8385 Use XFixesChangeSaveSet if available. (#314682)
8387 * gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
8388 was active. (#314298, Christian Persch, analysis by Mark McLoughlin)
8390 2005-08-29 Matthias Clasen <mclasen@redhat.com>
8392 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
8393 accidentally leftover duplicate pixbuf creation. (#314700,
8396 * gtk/gtksettings.c (settings_update_cursor_theme): Don't
8397 leak the cursor theme name. (#314693, Kjartan Maraas)
8399 * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
8400 state.children in all cases. (#313862, Kjartan Maraas)
8402 2005-08-28 Matthias Clasen <mclasen@redhat.com>
8404 * po/POTFILES.in, po-properties/POTFILES.in:
8407 2005-08-27 Matthias Clasen <mclasen@redhat.com>
8409 * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
8410 value of the ui property. (#314532, Yong Wang)
8412 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
8413 when G_MAXLONG is passed as length.
8415 2005-08-26 Matthias Clasen <mclasen@redhat.com>
8417 * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
8418 to avoid overloading --force. (JP Rosevaar)
8420 2005-08-26 Matthias Clasen <mclasen@redhat.com>
8422 * configure.in: Bump version to 2.9.0
8426 * gdk/gdkscreen.c: Make the GdkScreen font options api
8427 public, and add properties GdkScreen::font-options and
8428 GdkScreen::resolution. (#314004)
8431 * gtk/gtksettings.c:
8432 * gtk/gtkwidget.c: Adjust all callers.
8434 * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
8435 * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
8436 * gdk/gdkscreen.c: Include gdkintl.h.
8438 * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
8439 variable warning, pointed out by Colin Walters. (#314585)
8441 2005-08-26 Tor Lillqvist <tml@novell.com>
8443 * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
8445 (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
8447 2005-08-26 Matthias Clasen <mclasen@redhat.com>
8449 * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
8450 of week_start. (#314473, JP Rosevaar)
8452 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
8454 * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
8455 lock. (#314533, Thomas Fitzsimmons)
8457 2005-08-25 Matthias Clasen <mclasen@redhat.com>
8459 * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
8460 NULL gracefully. (#314523, Ed Catmur)
8462 2005-08-25 Owen Taylor <otaylor@redhat.com>
8464 * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
8465 Handle theme == NULL.
8467 2005-08-25 Matthias Clasen <mclasen@redhat.com>
8469 * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
8470 y offset into account when positioning the popup. (#314470,
8473 2005-08-25 Owen Taylor <otaylor@redhat.com>
8475 * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
8476 as instance_init, not base_init! (#314452, Fix from Frederic
8477 Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
8478 rather than 1 for a negative flag value.
8480 2005-08-24 Owen Taylor <otaylor@redhat.com>
8482 * gdk/gdkpango.c (draw_error_underline): Add a note about
8483 cut-and-paste between here and Pango.
8485 2005-08-24 Matthias Clasen <mclasen@redhat.com>
8487 * === Released 2.8.2 ===
8489 * gtk/gtkclipboard.c (request_image_received_func): Use the correct
8490 callback for image/gif, and also try image/bmp. (#314086, Mark
8493 * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
8494 Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev. (#314382,
8499 * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
8500 and cursor settings get propagated down to the screen initially.
8501 Pointed out by Frederic Crozat.
8503 * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
8504 message if the screen is NULL. Noticed by Kjartan Maraas.
8506 2005-08-24 Matthias Clasen <mclasen@redhat.com>
8510 * === Released 2.8.1 ===
8514 2005-08-24 Matthias Clasen <mclasen@redhat.com>
8516 * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
8517 against lazy filterers which return values other than TRUE or
8518 FALSE from their visible func. (#314335)
8520 2005-08-23 Owen Taylor <otaylor@redhat.com>
8522 Fix for #314004, reported by Michael Reinsch:
8525 * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
8526 Add gdk_screen_get/set_resolution_libgtk_only()
8528 * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
8529 the options for the screen on the newly created context.
8531 * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c:
8532 Move font options and dpi code from gtkwidget.c to gtksettings.c, set
8533 the font options on the screen.
8535 * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
8536 the font options from the screen and set them on the context.
8538 2005-08-23 Kristian Rietveld <kris@gtk.org>
8540 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
8541 bother inserting new rows in a level with a zero refcount and
8542 immediately free the level. (Fixes #312350, reported by Markku Vire).
8544 2005-08-23 Matthias Clasen <mclasen@redhat.com>
8546 * gtk/updateiconcache.c: Complain when there is no index.theme file
8547 in the specified directory, unless --force is used. Also add an
8548 --index-only option to create caches without image data.
8550 * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
8551 C99ism. (#314262, Robert Jeff Mitchell)
8553 2005-08-22 Manish Singh <yosh@gimp.org>
8555 * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
8557 * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
8559 2005-08-22 Matthias Clasen <mclasen@redhat.com>
8561 * gtk/gtkwindow.c (gtk_window_client_event):
8562 * gtk/gtkicontheme.c (ensure_valid_themes)
8563 (_gtk_icon_theme_check_reload): Implement a clientmessage based
8564 scheme for makeing sure that all GTK+ applications notice if an
8565 icon theme has been updated. This should prevent multiple versions
8566 of an icon theme cache to be mapped in memory at the same time,
8567 which can cause excessive memory consumption. (#313156, Chris
8570 2005-08-22 Matthias Clasen <mclasen@redhat.com>
8572 * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
8573 regarding icon theme changes.
8575 * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
8576 pixbufs which are backed by the mmapped memory of an icon cache,
8577 increase the refcount of the icon cache, so that the memory is not
8578 munmapped away underneath the pixbuf upon icon theme changes.
8579 (#314170, Kjartan Maraas)
8581 * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order
8582 to link against Xext. (#314062)
8584 * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
8585 overruns. (#314081, Hans Breuer)
8587 2005-08-20 Matthias Clasen <mclasen@redhat.com>
8589 * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
8590 returned layout must not be modified.
8592 Sat Aug 20 16:12:14 2005 Jonathan Blandford <jrb@redhat.com>
8594 * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
8595 scroll_to_path if the model changes.
8597 * gtk/gtkiconview.c: (gtk_icon_view_destroy),
8598 (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
8599 (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
8600 we're realized, #312798
8601 (gtk_icon_view_set_model): clear scroll_to_path if the model
8604 2005-08-20 Matthias Clasen <mclasen@redhat.com>
8606 * gtk/gtkrange.c (gtk_range_adjustment_changed)
8607 (gtk_range_adjustment_value_changed): Don't queue a draw
8608 if the layout has not changed. (#313991, Benjamin Berg)
8610 2005-08-19 Matthias Clasen <mclasen@redhat.com>
8612 * gtk/gtktreeitem.c: Remove duplicate lines. (#313344,
8615 * modules/engines/ms-windows/msw_style.c (setup_system_styles):
8618 * gtk/gtkfilechooserbutton.c (change_icon_theme)
8619 (model_add_special, model_add_special, model_add_volumes):
8620 Handle pixbuf being NULL without warnings. Also, don't
8621 leak pixbuf references when the icon theme is changed.
8623 * gtk/gtkmain.c (gtk_get_event_widget): Don't access
8624 the user data on destroyed windows, since at best
8625 it can be a stale pointer. (#313953, Robin Green)
8627 2005-08-19 Matthias Clasen <mclasen@redhat.com>
8629 * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
8630 (#313900, Sebastien Bacher)
8632 * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
8633 FALSE if the tree is empty. (#313891, Guillaume Cottenceau)
8635 * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
8636 (xdnd_read_actions, get_client_window_at_coords_recurse):
8637 Free data returned from XGetWindowProperty.
8639 * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
8640 Free data returned from XGetWindowProperty. (313867, Kjartan
8643 * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
8644 children in all cases. (#313862, Kjartan Maraas)
8646 * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs
8647 in the per-directory hash, even if they come from the icon cache.
8648 We tried to avoid that before, but as a result leaked icon data
8649 structs. (#313852, Kjartan Maraas)
8651 2005-08-18 Matthias Clasen <mclasen@redhat.com>
8653 * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
8654 signal handlers on destroy, not on finalize. (#313759, Brett Atoms)
8656 2005-08-15 Owen Taylor <otaylor@redhat.com>
8658 * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
8659 files for x11/xext. (Jonas Bonn)
8661 2005-08-15 Tor Lillqvist <tml@novell.com>
8663 * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
8666 2005-08-15 Owen Taylor <otaylor@redhat.com>
8668 * configure.in: Fix have_base_pc / have_base_x_pc typo.
8670 * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
8671 (#313417, James Andrewartha)
8673 * configure.in: Add fontconfig to X_PACKAGES, since we use it for
8674 FcNameConstant(). (More of #313417)
8676 2005-08-15 Matthias Clasen <mclasen@redhat.com>
8678 * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
8679 modal dialogs, make sure to inherit the window group from
8680 the parent, since we don't inherit window groups across
8681 transient parents currently. (#312918, Christian Persch)
8683 * gtk/gtkmessagedialog.c (gtk_message_dialog_new):
8684 * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs.
8686 * gtk/gtkiconview.c (gtk_icon_view_select_path)
8687 (gtk_icon_view_scroll_to_path): Handle paths of depth 0
8688 gracefully. (#312796, Jonathan Blandford)
8690 * tests/testtoolbar.c: Add some more tests for menu placement.
8692 * gtk/gtkmenutoolbutton.c (menu_position_func):
8693 * gtk/gtktoolbar.c (menu_position_func): Improve positioning
8694 of toolbutton menus and of the overflow menu. (#312937,
8695 #153870, Christian Persch, Paolo Borelli)
8697 2005-08-15 Tor Lillqvist <tml@novell.com>
8699 * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
8700 the nonportable <libgen.h> and dirname().
8702 2005-08-15 Matthias Clasen <mclasen@redhat.com>
8704 * gtk/gtksizegroup.c: Use object data to mark widgets and
8705 groups as visited, so that we avoid constant extra list
8706 traversals. Also allocate quarks in class_init. (#311618,
8709 * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the
8710 download location for the hicolor icon theme. (#313475, Olexiy
8713 * gtk/gtkicontheme.c: Remove debug spew.
8715 2005-08-15 Owen Taylor <otaylor@redhat.com>
8717 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
8718 * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
8719 * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
8720 Handle pixmap == NULL when checking for a colormap.
8723 2005-08-14 Matthias Clasen <mclasen@redhat.com>
8725 * gtk/updateiconcache.c: Store only one copy of the pixel data
8726 for symlinked icons. To achieve this, maintain a hashtable
8727 mapping pathnames to pixel data, and share the pixel data for
8728 all symlinks resolving to the same pathname. When writing out
8729 the image data, write out the pixel data only the first time
8730 it is met, and store the offset pointing to the first copy
8731 for use in all later cases.
8732 This reduces the size of the Bluecurve icon cache from 40