]> Pileus Git - ~andy/gtk/blob - ChangeLog
Unregister XIM callbacks here. (#309054)
[~andy/gtk] / ChangeLog
1 2005-06-26  Matthias Clasen  <mclasen@redhat.com>
2
3         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): 
4         Unregister XIM callbacks here.  (#309054)
5
6         * modules/input/gtkimcontextxim.h: Small cleanup.
7
8         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
9         scroll offset when drawing the box.  (#308834, Tom von 
10         Schwerdtner)
11
12 2005-06-26  Tor Lillqvist  <tml@novell.com>
13
14         * gdk/Makefile.am
15         * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
16         keyword, so no need to remove those entries from the import
17         library. libtool installs the .dll.a import library itself, so no
18         need to do it here. Install the .def file.
19
20 Sun Jun 26 00:04:36 2005  Manish Singh  <yosh@gimp.org>
21
22         * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
23         GDK_GRAB_BROKEN to the switch cases.
24
25         * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
26         variables.
27
28         * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
29
30 2005-06-26  Matthias Clasen  <mclasen@redhat.com>
31
32         * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
33         header drag operations if the grab is broken.
34
35         * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
36         the grab is broken.
37
38         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do 
39         explicitly ungrab pointer and keyboard. We're unmapping
40         the grab window anyway. 
41         (gtk_combo_box_popup): Handle grab failures.
42
43 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
44
45         * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
46         Don't emit grab-broken for overgrabbing, until we figure
47         out how to do that without breaking the menu code.
48
49 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
50
51         Add a GrabBroken event to GDK, and a grab-broken-event
52         signal to GtkWidget.  (#107320, Simon Cooke, initial patch 
53         by John Ehresman)
54
55         * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
56         define a GdkEventGrabBroken event struct.
57
58         * gdk/win32/gdkevents-win32.c (gdk_event_translate): 
59         Generate GrabBroken events in response to WM_KILLFOCUS.
60
61         * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
62         when a grab is broken by the window becoming unviewable,
63         or by another grab from the same client.
64         
65         * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
66
67         * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
68         GrabBroken events into grab_broken_event signals.
69
70         * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
71         events.
72
73         * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
74         the menu when the grab is broken.
75
76         * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop 
77         the color picker if the grab is broken.
78
79         * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
80         the grab is broken.
81
82 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
83
84         Add some new stock items.  (#166480, Kristof Vansant)
85         
86         * gtk/stock-icons/stock_fullscreen_16.png: 
87         * gtk/stock-icons/stock_fullscreen_24.png: 
88         * gtk/stock-icons/stock_leave_fullscreen_16.png: 
89         * gtk/stock-icons/stock_leave_fullscreen_24.png: 
90         * gtk/stock-icons/stock_info_16.png: 
91         * gtk/stock-icons/stock_info_24.png: New icons.
92
93         * gtk/stock-icons/Makefile.am: Add new icons.
94
95         * gtk/gtkstock.h: Define names for the new icons.
96
97         * gtk/gtkstock.c (builtin_items): Register new stock items.
98         
99         * gtk/gtkiconfactory.c (get_default_icons): Register new 
100         stock icons.
101
102 2005-06-24  Owen Taylor  <otaylor@redhat.com>
103
104         * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
105         conversion functions for MSB machines: convert_0888[_br]
106         now work on bytes so are endian independent. 
107         (Reported by David Zeuthen)
108
109 2005-06-24  Matthias Clasen  <mclasen@redhat.com>
110
111         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
112         jump to the next line if we are at the end of the line.  
113         (gtk_text_view_move_cursor_internal): Make movement by
114         paragraphs up/down symmetric.  (#307055, Behnam Esfahbod)
115
116 2005-06-23  Tor Lillqvist  <tml@novell.com>
117
118         Improve and simplify line segment rendering on Win32, especially
119         the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
120         bugs #306396 and #308413.
121
122         * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
123         line_style, cap_style and join_style as such in the
124         GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
125         check the line_style.
126
127         * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
128         up the GDI pen type, style, end cap and join attributes to use
129         based on the pen width, GDK line style, end cap style, and join
130         style.
131
132         For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
133         cap style, which typically are used for XOR drawing where it is
134         essential that the last pixel is not drawn, use a GDI cosmetic
135         pen. Only for a cosmetic pen does GDI not draw the last pixel. I
136         deduced this by experimetation, the documentation is rather vague.
137
138         For other GDK pens use a geometric GDI pen. If the width is 0 or 1
139         and the GDK end cap style is GDK_CAP_BUTT, and the line style is
140         GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
141         single-pixel length lines are drawn. (For sngle-pixel width lines
142         roundness as such is of course irrelevant.) For dashed lines, use
143         PS_ENDCAP_FLAT.
144
145         For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
146         respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
147
148         For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
149         work better than PS_USERSTYLE. For other dashed lines, use
150         PS_USERSTYLE and the dashes as set by the user (or the default
151         four-pixel on-off style).
152
153         (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
154         Call fixup_pen() to do the pen settings after modifying some of
155         the GDK GC attributes that affect pens.
156
157         * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
158         render_line_vertical, draw_segments): Check GdkGCWin32::line_style
159         instead of the the removed pen_double_dash member. Don't use
160         PATCOPY unconditionally in the PatBlt() call, use a raster op
161         code that depends on the GC function in use.
162
163         (draw_rectangle, draw_segments, draw_lines): Be more careful in
164         deciding when to do the manual dash rendering.
165
166         (draw_segments): Don't do any manual "last point" drawing at
167         all. The above changes takes care of narrow line segments being
168         drawn correctly in most cases, at least on NT-based Windows.
169
170 2005-06-23  Matthias Clasen  <mclasen@redhat.com>
171
172         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): 
173         Fix an error in the cache timeout logic.  (#166601, Morten
174         Welinder)
175
176         * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
177         keynav for header reordering and resizing to Alt-arrows and
178         Shift-Alt-arrows, following a proposal by the keynav 
179         authority. (#308666, Calum Benson)
180
181         * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
182         a leftover debugging envvar.  
183
184 2005-06-23  Owen Taylor  <otaylor@redhat.com>
185
186         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
187         big endian case for 3-channel source. (Reported by
188         David Zeuthen)
189
190 2005-06-23  Matthias Clasen  <mclasen@redhat.com>
191
192         * gtk/gtkbutton.c (gtk_button_construct_child): Don't
193         trigger warnings if there are extra references to the
194         hbox.  (#308677, Dan Winship)
195
196         * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
197         g_file_set_contents().  (#308722, Morten Welinder)
198
199 2005-06-22  Matthias Clasen  <mclasen@redhat.com>
200
201         * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
202         time field in the event.  (#308573, Morten Welinder)
203
204         * gtk/gtkfilesystemunix.c: Remove gratitious differences
205         between the stable branch and HEAD, which sneaked in with
206         the bookmark renaming.  
207
208 2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>
209
210         * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
211         Closes bug #308581.
212
213 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
214
215         * gtk/gtkarrow.c:
216         * gtk/gtkimage.c:
217         * gtk/gtklabel.c:
218         * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
219         on centering calculations to match the behaviour of other parts
220         of GTK+. (#307419, Ryan Lortie)
221
222 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
223
224         * gtk/gtkdnd.c (gtk_drag_source_set): Connect to 
225         button-release-event as well, to handle touchscreen 
226         scenarios better.  (#171490, Markku Vire)
227
228         * gtk/*.h: Trivial cleanups. (#169647, #303455, 
229         Fabricio Barros Cabral, Benoit Carpentier)
230
231         * gdk/gdk.symbols: 
232         * gdk/gdkwindow.h: 
233         * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
234         function which can be used to implement scrolling in 
235         non-window widgets.  (#135165, Søren Sandmann)
236
237 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
238
239         * gtk/gtkiconcache.c: Handle MAP_FAILED.  (#308449, Georg
240         Schwarz)
241
242 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
243
244         * configure.in: Bump version number.
245
246         * === Released 2.7.0 ===
247
248 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
249
250         * gtk/gtk.symbols:
251         * gtk/gtkwindow.h:
252         * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
253         gtk_window_present which takes a timestamp.  (#166379, Elijah Newren)
254
255 2005-06-19  Matthias Clasen  <mclasen@redhat.com>
256         
257         * gtk/gtk.symbols: Add a forgotten symbol
258
259         * NEWS: Updates
260
261 2005-06-19  Kristian Rietveld  <kris@gtk.org>
262
263         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
264         check which avoids processing updates on bin_window and scrolling
265         if the node is already visible. (#170600, Billy Biggs).
266
267 2005-06-19  Kristian Rietveld  <kris@gtk.org>
268
269         * gtk/gtktreeview.c (validate_visible_area): only keep the
270         row at the same position if the full row is visible. (#304623,
271         Jorn Baayen).
272
273 2005-06-19  Kristian Rietveld  <kris@gtk.org>
274
275         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
276         if treeview's height is smaller than the current page_size (just
277         like we do elsewhere).
278
279 2005-06-19  Kristian Rietveld  <kris@gtk.org>
280
281         Make mousewheel scrolling possible in typeahead mode, suggestion
282         from Reinout van Schouwen (#307898).
283
284         * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
285         connect treeview search window to scroll_event signal,
286         (gtk_tree_view_search_scroll_event): implement.
287
288 2005-06-19  Kristian Rietveld  <kris@gtk.org>
289
290         * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
291         the event on to treeview, so it has a change of selecting a row, etc.
292         (#169677, Kirk Bridger).
293
294 2005-06-19  Kristian Rietveld  <kris@gtk.org>
295
296         This commit includes a fix for #169463, Stefan Kost.
297
298         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
299         when cell_area is set, return cell_area width/height as width/height,
300         so the focus rectangle will be drawn correctly.
301
302         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
303         of focus-line-width property,
304         (validate_row): take focus_line_width into account.
305
306         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
307         also take focus_line_width into account when calculating the cell_area
308         y and height (before, we only took it into account when calculating
309         x and width).
310
311 2005-06-19  Matthias Clasen  <mclasen@redhat.com>
312
313         * gtk/gtk.symbols:
314         * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
315         with getter and setter.  (#171612, Christian Neumair)
316
317 2005-06-18  Matthias Clasen  <mclasen@redhat.com>
318
319         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this 
320         work for inserting before/after an existing menuitem or
321         toolitem.  (#155946, Christian Persch)
322
323         * tests/testmerge.c (delayed_toggle_dynamic): Test the 
324         "insert after" functionality of gtk_ui_manager_add_ui.
325
326         * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
327         (#300678, Sven Neumann)
328         
329         * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
330         constructed with GtkUIManager.
331
332         * gtk/gtk.symbols: 
333         * gtk/gtkimage.h: 
334         * gtk/gtkimage.c (gtk_image_clear): Make this function
335         public.  (#64792, Havoc Pennington)
336
337 2005-06-18  Kristian Rietveld  <kris@gtk.org>
338
339         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
340         of the separate loop setting cell data with cell drawing loop
341         (introduced in revision 1.280), since this breaks focus handling
342         wrt special cells.
343
344 Sat Jun 18 04:22:51 2005  Manish Singh  <yosh@gimp.org>
345
346         * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
347         checks don't work on boxed types.
348
349         * gdk/x11/gdkcursor-x11.c: 
350         * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
351         GDK_IS_CURSOR.
352         
353 Sat Jun 18 04:21:58 2005  Manish Singh  <yosh@gimp.org>
354
355         * gtk/gtktreeview.c (do_presize_handler): remove unused variable
356         height_old.
357
358 2005-06-18  Matthias Clasen  <mclasen@redhat.com>
359
360         * gtk/gtkcellrenderertoggle.c:
361         * gtk/gtktextview.c:
362         * gtk/gtktreeview.c: Typo fixes in comments.
363
364         * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
365         2 children are added.  (#308111, Morten Welinder)
366
367         * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
368         1-based.  (#163842, Pierre Ossman)
369
370 2005-06-17  Kristian Rietveld  <kris@gtk.org>
371
372         Fix #160281, testcase from Peter Bloomfield.
373
374         * gtk/gtktreeview.c (do_presize_handler): always size request
375         and update adjustments in fixed height mode,
376         (gtk_tree_view_build_tree): if a fixed height is set, set this
377         height on newly added nodes.
378
379 2005-06-17  Tor Lillqvist  <tml@novell.com>
380
381         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
382         and suggested_action fields in the GdkDragContext to
383         GDK_ACTION_COPY. Otherwise apps that check the suggested_action
384         field, like eog, won't accept dropped files.
385
386 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
387
388         Support the ICCCM urgency hint.  (#61858, Havoc Pennington)
389         
390         * gtk/gtk.symbols: 
391         * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
392         with getter and setter.
393
394         * gdk/gdk.symbols: 
395         * gdk/gdkwindow.h: 
396         * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint): 
397         Add a setter for the urgency hint.
398
399         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
400         urgency hint here.
401
402         * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
403         hint in the WM_HINTS property when appropriate.
404
405 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
406
407         * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
408
409         * gdk/x11/gdkcursor-x11.c: 
410         * gdk/gdkcursor.c: Improve some return_if_fail checks,
411         and add the missing non-Xcursor fallback for 
412         _gdk_x11_cursor_update_theme(), noticed by Jeroen 
413         Zwartepoorte.
414
415         * gtk/gtkbutton.c (gtk_button_class_init): Document
416         several button signals as not useful.
417
418         * gtk/gtkentrycompletion.c (gtk_entry_completion_complete): 
419         Resize the popup if necessary.  (#308076, Vincent Noel)
420
421         * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
422         draw on the old and new focus widgets, if their defaultness
423         changes.  (#305607, Billy Biggs)
424
425 2005-06-17  Kristian Rietveld  <kris@gtk.org>
426
427         * gtk/gtktreeview.c (validate_visible_area): make sure the row
428         above 'above_path' is always in a validated state, so it does
429         not mess up scrolling. (#303319, testcase from Billy Biggs).
430
431 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
432
433         * gdk/x11/gdkprivate-x11.h: 
434         * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
435         for cached cursors which are not associated with a window
436         at the time of the theme change, by storing a serial
437         number in each cursor, and updating the theme_serial 
438         counter whenever the cursor theme changes.
439         
440         * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme): 
441         Private function to update a cursor to the current
442         cursor theme if necessary.
443
444         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
445         * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
446         _gdk_x11_cursor_update_theme() here.
447
448 2005-06-17  Owen Taylor  <otaylor@redhat.com>
449
450         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
451         #if G_BYTE_ORDER == GDK_LSB_FIRST.
452
453 2005-06-17  Kristian Rietveld  <kris@gtk.org>
454
455         * gtk/gtktreeview.c (validate_visible_area): don't try to update
456         the top_row rowref ourselves here, but just have _dy_to_top_row()
457         do it,
458         (gtk_tree_view_scroll_to_cell): handle scrolling via
459         validate_visible_area() if the treeview is not visible or needs
460         reallocation. (#165246, Nickolay V. Shmyrev).
461
462 2005-06-17  Kristian Rietveld  <kris@gtk.org>
463
464         Fixes #307914 (Alexander Larsson), fixing some breakage caused
465         by my previous commit.
466
467         * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
468         when it fits on a single page,
469         (scroll_sync_handler): same here.
470
471 Thu Jun 16 15:33:42 2005  Manish Singh  <yosh@gimp.org>
472
473         * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
474
475         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
476         g_return_val_if_fail.
477
478         * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
479         for all cases.
480
481         * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
482         takes a GtkWidget, not a GtkImage.
483
484 2005-06-16  Matthias Clasen  <mclasen@redhat.com>
485
486         * gtk/gtkfilechooserdefault.c (button_new): Simplify
487         the code and respect the show-button-images setting.
488         (#307941, Vincent Noel)
489
490         * gtk/gtkdnd.c: Update the RGBA cursor if an
491         icon is set after the cursor has been constructed.
492         Also handle repeated setting of icons correctly.
493
494 2005-06-16  Matthias Clasen  <mclasen@redhat.com>
495
496         * gtk/gtkbutton.c (gtk_button_set_image): Add some more
497         docs.  (#307818, Christian Persch)
498
499 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
500
501         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
502         Initialize all fields of the expose event.  (#151693,
503         Jim Evins)
504
505 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
506
507         * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
508         red and blue in place.
509
510         * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
511         formatting, pointed out by Kjartan Maraas.
512
513         * gtk/gtksettings.c: Add two new settings, 
514         gtk-cursor-theme-name and gtk-cursor-theme-size to
515         control the cursor theme.
516
517         * gdk/x11/gdkevents-x11.c: Add two new X settings,
518         Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
519         these to the gtk settings.
520
521         * tests/testgtk.c (create_cursors): Add a cursor theme
522         testcase.
523
524         * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the 
525         GdkCursor and add a private getter for it, so that we can 
526         update the cursor when the cursor theme changes.
527         
528         * gdk/gdk.symbols: 
529         * gdk/x11/gdkx.h: 
530         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
531         New function to change the cursor theme.
532
533         * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
534         g_return_if_fail() non-NULL checks.
535
536 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
537
538         * gdk/abicheck.sh: Use uniq to filter out duplicates.
539         * gdk/gdk.symbols: Fix a define.
540
541 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
542
543         * gtk/gtkwindow.c (gtk_window_parse_geometry):
544         Fix up the example.  (#307699, Michal Suchanek)
545
546 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
547
548         * gtk/gtkcalendar.c: Update num_marked_dates as we
549         used to do.  (#307689, Thorsten Schoenfeld)
550  
551 2005-06-14  Federico Mena Quintero  <federico@ximian.com>
552
553         Merged from gtk-2-6:
554
555         Fix #302087:
556
557         * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
558         "selection-changed" and do the normal housekeeping even if we are
559         in SAVE mode and there is nothing selected.  We didn't emit that
560         signal if we were in SAVE mode and unselect_all() got called.
561         (gtk_file_chooser_default_unselect_all): Call
562         pending_select_paths_free() so that we cancel any asynchronous
563         selections.
564         (gtk_file_chooser_default_set_current_name): Likewise.
565
566 2005-06-14  Federico Mena Quintero  <federico@ximian.com>
567
568         Merged from gtk-2-6:
569
570         Fixes #307640:
571
572         * gtk/gtkfilechooserdefault.c
573         (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
574         mode.  If the parent path is a folder, only create a subfolder if
575         we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
576         and respond.  Also, pick up the case where the user types
577         "dirname/" instead of "dirname".
578         (check_save_entry): Make the return type void.  Add some return
579         parameters so that we can do more thorough checking.
580         (gtk_file_chooser_default_get_paths): If the file part is empty
581         and we are in SAVE mode, return an empty selection.
582
583 2005-06-15  Kristian Rietveld  <kris@gtk.org>
584
585         Patch for #163214 (reported by Tommi Komulainen) and fixes some
586         other scrolling/validation related bugs along the why.
587
588         * gtk/gtktreeview.c (gtk_tree_view_size_request): run
589         do_validate_rows once and don't queue a size request there,
590         (gtk_tree_view_size_allocate): don't update vadj value without
591         reason, sync top_row/dy after the window sizes and adjustments
592         are in sync again,
593         (validate_visible_area): always update dy when scrolling,
594         manually set top_row here after changing the vadj (don't depend
595         on _adjustment_changed and top_row/dy sync to do this), since we
596         now always set top_row here correctly, we can always free
597         scroll_to_path at the end which avoids infinite expose loops,
598         (do_validate_rows): add queue_resize boolean, remove top_row/dy
599         sync here, we cannot do it safely at this place since the
600         window sizes and adjustments are out of sync,
601         (validate_rows), (validate_rows_handler): update call to
602         do_validate_rows().
603
604 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
605
606         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a 
607         stub for the no-Xcursor case. (noticed by Luis Villa)
608
609         Use named cursors for the DND cursors, the names are "dnd-none",
610         "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA 
611         cursor instead of cursor+window when possible. This saves 
612         roundtrips during the drag operation, and makes translucent icons 
613         possible.
614         
615         * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
616         for the default dnd cursors.
617
618         * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
619         used during the drag here, also store the icon pixbuf here. 
620
621         * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
622         switch the default cursors from xbm to inlined pixbufs. 
623
624         * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
625         GtkDragSourceInfo as well, since it has to composite the 
626         drag-specific cursors. The cursors combined from the image of
627         the themed cursor and the icon_pixbuf stored in the info.
628
629         * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
630         icon if there is an icon_pixbuf, which will be composited into
631         the cursor later.
632
633         * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
634         the pixbuf in the info struct for later compositing into the
635         cursor instead of creating an icon window.
636         
637         * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
638         RGBA cursor for the drag, and need to display the cancel
639         animation, construct the icon window here.
640
641         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the 
642         drag-specific cursors and the icon_pixbuf when done with
643         the drag.
644
645 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
646
647         * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
648         with the name "color-picker", when available.
649
650         * gdk/gdk.symbols: 
651         * gdk/gdkcursor.h: 
652         * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image) 
653         (gdk_cursor_new_from_name): New functions to construct named
654         cursors and to get the image used for a cursor.  
655
656 2005-06-13  Matthias Clasen  <mclasen@redhat.com>
657
658         * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
659         path bar is done, implementing the following principles:
660         (#137289, patch by Benjamin Otte)
661         
662         1. Re-root only if $HOME is an ancestor of the current path.
663
664         2. When re-rooting, make sure the Left arrow appears in the path 
665         bar, so that you can navigate up from $HOME to /.  In that case, 
666         make sure the Right arrow doesn't appear if the sub-hierarchy from 
667         $HOME to the cwd fits in the window.
668
669         3. Make sure that hitting Alt-Up takes you always one folder up, 
670         even when the path bar is re-rooted.
671
672         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
673         Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
674
675         * gtk/gtkfilechooserbutton.c (model_update_current_folder): 
676         Free the data of the row before overwriting it.  (#307490,
677         Kjartan Maraas)
678
679 2005-06-13  Kjartan Maraas  <kmaraas@gnome.org>
680
681         * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
682         leak the cairo context. Closes bug #307426.
683
684 2005-06-13  Matthias Clasen  <mclasen@redhat.com>
685
686         Make invisible text work a bit better (#66194, patch by
687         Jeroen Zwartepoorte)
688         
689         * gtk/gtk.symbols:
690         * gtk/gtktextiter.[hc]: Add function to move by
691         visible lines.
692
693         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): 
694         Skip invisible text when moving by paragraphs.
695
696         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually): 
697         Skip invisible lines here too.
698
699 2005-06-12  Matthias Clasen  <mclasen@redhat.com>
700
701         * gtk/gtkselection.c (gtk_target_list_add_image_targets): 
702         Don't leak the format names.  (#307190, Morten Welinder)
703
704 2005-06-12  Kjartan Maraas  <kmaraas@gnome.org>
705
706         * gdk/x11/gdkasync.c: (send_event_handler): Plug
707         a leak. Closes bug #307281.
708
709 2005-06-12  Matthias Clasen  <mclasen@redhat.com>
710
711         * gtk/gtkcalendar.c (calendar_paint_header): 
712         (gtk_calendar_size_request): Allow localization of the
713         format in which the year is displayed.  (#135451, Paisa 
714         Seeluangsawat)
715
716         * gdk/*.h: Cleanup.  (#169648, Fabricio Barros Cabral)
717
718         * gdk/gdkcairo.c: Small doc additions.
719
720         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row): 
721         Check start_button_mask before starting a drag.  (#149058, 
722         Andreas Volz)
723
724         * gtk/gtkfilesystemunix.c: Support .hidden files.  (#129170,
725         Sayamindu Dasgupta, patch by Jan Arne Petersen)
726
727 2005-06-11  Matthias Clasen  <mclasen@redhat.com>
728
729         * NEWS: Updates.
730
731         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
732         provided by Owen Taylor.
733
734         * gtk/gtk.symbols: 
735         * gtk/gtkiconview.h: 
736         * gtk/gtkiconview.c (gtk_icon_view_get_visible_range): 
737         Add a function to determine what parts of the model are
738         visible.  (#306726, Jonathan Blandford)
739
740         * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
741         files the same way as hidden files, to be closer to what
742         Nautilus does.  (#136196, Sean Middleditch)
743
744 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
745
746         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
747         Don't modify strings returned from gettext().
748
749 Fri Jun 10 19:06:03 2005  Manish Singh  <yosh@gimp.org>
750
751         * gtk/gtktextdisplay.c (render_para): don't use deprecated
752         gdk_gc_unref function.
753
754 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
755
756         Allow setting paragraph background.  (#81045, Gustavo
757         Carneiro, patch by Jeroen Zwartepoorte)
758         
759         * gtk/gtktextlayout.c (set_para_values): Propagate 
760         pg_bg_color to the display struct.
761         (gtk_text_layout_free_line_display): Free it here.
762
763         * gtk/gtktextdisplay.c (render_para): If pg_bg_color
764         is set, draw a rectangle in that color behind
765         the paragraph.
766
767         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add 
768         paragraph-background, paragraph-background-gdk and
769         paragraph-background-set properties.
770         (set_pg_bg_color): A setter for paragraph-background.
771
772         * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
773         pg_bg_color.
774
775         * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
776         pg_bg_color.
777         (struct _GtkTextTag): Add pg_bg_color_set.
778
779 2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
780
781         * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
782         cairo surface when done with it. Plugs a fairly large leak in
783         some cases.
784         ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
785         826 blocks are definitely lost in loss record 25239 of 25250
786         Like this from nautilus.
787
788 2005-06-10  Michael Natterer  <mitch@imendio.com>
789
790         * gtk/gtk.symbols
791         * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
792         to get an action's accel_closure (Fixes #141750 and #148106).
793
794 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
795
796         * gdk/gen-keyname-table.pl: Generate N_() calls for
797         translatable key names.
798
799         * gdk/keynames.txt: Mark some key names as translatable.
800         
801         * gdk/keyname-table.h: Regenerated.
802
803         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
804         some context to the msg ids for keyboard modifiers and
805         key names.
806         (_gtk_accel_label_class_get_accelerator_label): Try to
807         translate key names.  (#300224, Christian Rose)
808
809 2005-06-10  Federico Mena Quintero  <federico@ximian.com>
810
811         Merged from gtk-2-6:
812
813         Fixes #162358:
814
815         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
816         immediately if we are in CREATE_FOLDER mode, so that we can fill
817         the entry with the newly-selected folder.
818         (gtk_file_chooser_default_set_property): Warn against turning on
819         multiple selection for CREATE_FOLDER mode, or about setting that
820         action while multiple selection is on.
821         (update_chooser_entry): Change the entry's contents as well if we
822         are in CREATE_FOLDER mode.  If nothing is selected, clear the
823         chooser entry.
824         (trap_activate_cb): Don't trap enter/space if modifiers are
825         pressed.  This lets one use Ctrl-space to toggle rows in multiple
826         selection mode.
827         (gtk_file_chooser_default_should_respond): Clean up the if-chain
828         mess of special cases by using an array to determine what to do.
829         Also, for the save-entry case in CREATE_FOLDER mode, actually fix
830         the bug where the file chooser would switch to an existing folder
831         rather than confirming with it, and create the folder ourselves.
832         (error_creating_folder_over_existing_file_dialog): New function.
833
834         * gtk/gtkfilechooserentry.c (check_completion_callback): Only
835         insert the common prefix if we are in an "open" mode.  Use a
836         helper function.
837         (append_common_prefix): New helper function; code moved over from
838         check_completion_callback().
839         (find_common_prefix): New helper function.
840         (gtk_file_chooser_entry_focus): Append the common prefix if the
841         user requests it explicitly.
842
843 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
844
845         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): 
846         * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): 
847         * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): 
848         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
849         * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): 
850         * gtk/gtkscrolledwindow.h: 
851         * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus): 
852
853         * gtk/gtkiconview.c (gtk_icon_view_set_margin): 
854         * gtk/gtkicontheme.c (gtk_icon_info_load_icon): 
855         * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
856
857 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
858
859         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
860
861         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
862         (#306212, Steve Chaplin, docs provided by Billy Biggs)
863
864         * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small 
865         cleanup.  (#305539, Paolo Borelli)
866
867 2005-06-09  Rodrigo Moya <rodrigo@novell.com>
868
869         * configure.in: added cairo to list of $GTK_PACKAGES.
870
871 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
872
873         * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
874         the user time on the window when a drop happens.  (#169364, Alexander
875         Hunziker, patch by Elijah Newren)
876
877         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
878
879         * gtk/gtk.symbols: 
880         * gtk/gtkiconview.h: 
881         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
882         to scroll to a path.  (#306838, Jonathan Blandford)
883
884 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
885
886         * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
887         item.  (#306839, Jonathan Blandford)
888
889         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
890         negative before appending the index, to avoid double error
891         message.  (#306393, Morten Welinder)
892
893         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
894         Don't crash if search_window is NULL.  (#304914, Victor Osadci,
895         testcase by Olaf Vitters)
896
897         * gtk/gtkimage.c: Make the file property readable.  
898         (#170674, Lorenzo Gil Sanchez)
899
900         
901 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
902
903         * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
904         g_utf8_collate_key_for_filename().
905
906 2005-06-07  Kjartan Maraas  <kmaraas@gnome.org>
907
908         * gtk/gtkfilechooserbutton.c: (update_label_and_image):
909         Merge leak fix from stable. Bug 306754.
910
911 2005-06-05  Tor Lillqvist  <tml@novell.com>
912
913         * gdk/win32/gdkscreen-win32.c
914         (_gdk_windowing_substitute_screen_number): Return NULL unless
915         screen number is zero. We have only one screen on Win32.
916         (gdk_screen_make_display_name): Call gdk_display_get_name() and
917         return that.
918         
919         * modules/engines/Makefile.am
920         * modules/input/Makefile.am: Decide whether to build the
921         ms-windows theme engine based on the GDK backend, not based on
922         platform. (I.e., if building for Cygwin with the X11 backend, we
923         shouldn't build the ms-windows engine, but if building for Cygwin
924         but with the Win32 backend, we should.) Ditto for the IME
925         (Windows) input module. (#305832)
926
927 2005-06-04  Tor Lillqvist  <tml@novell.com>
928
929         * gdk/win32/gdkcursor-win32.c
930         * gdk/win32/gdkwindow-win32.c
931         * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
932         Support cursors with alpha on XP. Use code in common with the
933         support for alpha icons that already was present. (#306101, Tim
934         Evans)
935
936         * modules/engines/ms-windows/msw_style.c: Render insensitive icons
937         in a way that more closely matches Windows. (#305986, Tim Evans).
938
939         * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
940         gdk-pixbuf.
941
942 2005-06-03  Dom Lachowicz <cinamod@hotmail.com>
943
944         * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
945         * modules/engines/ms-windows/xp_theme.c: Ditto
946         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
947
948 Thu May 26 16:43:27 2005 Manish Singh  <yosh@gimp.org>
949
950         * gtk/gtkentrycompletion.h: Add declarations for
951         gtk_entry_completion_{get,set}_popup_single_match.
952
953 2005-05-26  Matthias Clasen  <mclasen@redhat.com>
954
955         * gtk/gtk.symbols: 
956         * gtk/gtkentrycompletion.c: Add a property to suppress the
957         popup for single matches.  (#154711)
958
959         * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
960
961         * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): 
962         Use it here.
963
964         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the 
965         redisplay after modifying the tag in the btree, otherwise 
966         we end up showing the old tags until the next redraw comes 
967         around.   (#143537, Gary Kramlich, Peter Wainwright)
968
969         * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
970         autoscrolling work at the bottom of the screen.
971
972 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
973
974         * docs/reference/gtk/tmpl/gtkentry.sgml:
975         Point to GtkTextView instead of GtkText. Fixes bug #305535
976
977 2005-05-26  Sven Neumann  <sven@gimp.org>
978
979         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
980         aggressive PNG compression level (bug #305340).
981
982 2005-05-26  Tor Lillqvist  <tml@novell.com>
983
984         * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
985         from the root window, take the multi-monitor offset into
986         account. (#305511)
987
988 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
989
990         * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
991         icon by name.
992
993         * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading): 
994         Remove another C99ism.
995
996         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
997         background of rows insensitive when the treeview is insensitive.
998         (pointed out by Billy Biggs)
999
1000         * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
1001         and DND, and clipboard persistency.
1002
1003         * gtk/gtkselection.c (gtk_target_list_add_image_targets): 
1004         Make sure png comes first, otherwise dnd may use bmp by
1005         default, loosing transparency.
1006
1007 2005-05-25  Michael Natterer  <mitch@imendio.com>
1008
1009         * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
1010         handler when changing cursor visibility because it would expose
1011         the whole paragraph where the cursor is. Instead, expose the
1012         cursors' areas manually. (#173047).
1013
1014         (text_window_invalidate_cursors): new function which exposes the
1015         cursors.
1016
1017         * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
1018         same cursor size calculation is in text_window_invalidate_cursors().
1019
1020 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
1021
1022         * demos/gtk-demo/editable_cells.c (create_items_model): Also
1023         demonstrate GtkCellRendererProgress.
1024
1025         * demos/gtk-demo/Makefile.am (demos): 
1026         * demos/gtk-demo/combobox.c: Add a demo showing combo box 
1027         variations.
1028
1029         * demos/gtk-demo/Makefile.am (demos): 
1030         * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
1031
1032 2005-05-24  Matthias Clasen  <mclasen@redhat.com>
1033
1034         * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
1035
1036 2005-05-24  Tor Lillqvist  <tml@novell.com>
1037
1038         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
1039         gtk-alternative-button-order (setting it to TRUE).
1040
1041 2005-05-23  Matthias Clasen  <mclasen@redhat.com>
1042
1043         * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
1044         an unused variable.  (#305130, Jaap A. Haitsma)
1045
1046         * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
1047         the focus away from the file list when operating the filter
1048         combo with the pointer.  (#304844, Sven Neumann)
1049
1050 2005-05-23  Tor Lillqvist  <tml@novell.com>
1051
1052         * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
1053         GDK_Menu. (#172383, Ivan Wong)
1054
1055         * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
1056         of the special cases this function takes care of, use it as
1057         such. This takes care of for instance the Bengali Virama, see bug
1058         #165723.
1059
1060 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
1061
1062         * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
1063         buffer overrun.  (#142444, Leonard Michlmayr)
1064
1065         * gtk/gtkfilesystem.c: Remove C99-isms (#304879, 
1066         Kazuki IWAMOTO)
1067
1068 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1069
1070         * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri): 
1071         Use the correct function to conver the uri to a path.  (#304565,
1072         Ismael Juma)
1073
1074         * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
1075         Cancel button properly.  (#304234, Sven Neumann)
1076
1077 2005-05-18  Anders Carlsson  <andersca@imendio.com>
1078
1079         * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
1080         (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
1081         * gtk/gtktextview.h:
1082         If the horizontal adjustment changes because of a change in the
1083         layout width, then do a complete redraw. This is because there
1084         might be right-aligned or centered text that needs to be redrawn.
1085
1086 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1087         
1088         * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
1089         the event masks of descendent windows.  (#169821, Tommi Komulainen)
1090
1091         * gtk/gtktreeview.c (gtk_tree_view_get_drop_column) 
1092         (gtk_tree_view_set_column_drag_info): Fix some errors in the
1093         handling of drop columns.  (#143355, John Finlay)
1094
1095         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
1096         Remove the no longer needed workaround.
1097
1098         * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
1099         allocations of mapped children.
1100
1101         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
1102         Add a bug reference.
1103
1104 2005-05-18  Tor Lillqvist  <tml@novell.com>
1105
1106         * gdk/win32/gdkevents-win32.c
1107         * gdk/win32/gdkkeys-win32.c
1108         * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1109         lParam of WM_KEY* messages to distinguish between left and right
1110         Control and Alt keys. Unfortunately, the right Shift key doesnt
1111         set KF_EXTENDED, so to distinguish between left and right Shift
1112         keys, check the scan code. (#304584)
1113
1114 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1115
1116         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1117         length overflows.  (#161520, Ian Wienand)
1118
1119         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1120         parameter names to make gtk-doc happy.
1121
1122         * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1123         values of draw-value and value-pos to be the values we
1124         actually use in _init. (#304547, Mikael Hallendal)
1125
1126         * gtk/gtkcellrendererpixbuf.c: Support named icons in
1127         cells by adding a icon-name property. (#165777, Anders
1128         Carlsson)
1129
1130         * gtk/gtk.symbols:
1131         * gtk/gtktoolbutton.h: 
1132         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) 
1133         (gtk_tool_button_get_icon_name): Support named icons in 
1134         tool buttons by adding a icon-name property. (#116577, 
1135         Christian Neumair)
1136
1137         * gtk/gtk.symbols: 
1138         * gtk/gtkdnd.h: 
1139         * gtk/gtkdnd.c (gtk_drag_source_set_icon_name) 
1140         (gtk_drag_set_icon_name): New functions to support themed 
1141         drag icons.  (#116577, Christian Neumair)
1142
1143 2005-05-17  Owen Taylor  <otaylor@redhat.com>
1144
1145         * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface): 
1146         Update to changed cairo interface.
1147
1148         * gdk/x11/gdkdrawable-x11.[ch]:
1149         Add _gdk_x11_drawable_update_size()
1150         
1151         * gdk/x11/gdkwindow-x11.c (gdk_window_resize) 
1152         (gdk_window_move_resize)
1153         * gdk/x11/gdkevents-x11.c (gdk_event_translate): 
1154         Call _gdk_x11_drawable_update_size().
1155
1156 2005-05-17  Matthias Clasen  <mclasen@redhat.com>
1157
1158         * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1159         if the text view is not editable.  
1160
1161         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1162         the popup posted if the button is released over the cellview.
1163         This matches the behaviour of other combo box implementations.  
1164         (#171378)
1165         
1166         * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1167         when recursing.  (#153682, Felipe Heidrich)
1168
1169 2005-05-16  Matthias Clasen  <mclasen@redhat.com>
1170
1171         * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up 
1172         and GDK_Page_Down twice.  (#168333, Hazael Maldonado Torres)
1173
1174         * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if 
1175         the entry is not editable.  (#304171, Nikos Kouremenos)
1176         
1177         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor): 
1178         Make sure the action of the button and the dialog are in sync,
1179         when the dialog is provided by the app.  (#303987, David A Knight)
1180
1181         * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1182         in the docs.  (#303940, Masao Mutoh)
1183
1184         * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1185
1186         * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1187         casting.  (#304089, Philip Langdale)
1188
1189         * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1190         the label if we need to.  (#169390, Felix Riemann)
1191
1192 Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
1193
1194         * gdk/gdkdraw.c
1195         * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1196         declaration.
1197
1198         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1199         call gdk_cairo_set_source_color() with a color.
1200
1201         * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1202
1203         * tests/testiconview.c (main): cast args of drag functions to the
1204         appropriate type.
1205
1206 2005-05-13  Owen Taylor  <otaylor@redhat.com>
1207
1208         * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1209
1210         * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export 
1211         gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1212         
1213 2005-05-11  Owen Taylor  <otaylor@redhat.com>
1214
1215         * tests/testgtk.c (on_alpha_window_expose): Fix to use
1216         gdk_cairo_create(). (create_alpha_window): Hook up "response"
1217         to close the window.
1218
1219 2005-05-11  Owen Taylor  <otaylor@redhat.com>
1220
1221         * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1222         to draw the swatch in to avoid having an extraneous window.
1223         
1224         * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1225         color when !has_opacity.
1226
1227 2005-05-10  Owen Taylor  <otaylor@redhat.com>
1228
1229         * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1230         files for Cairo convenience functionality.
1231
1232         * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1233         convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1234
1235         * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c 
1236         gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1237
1238         * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1239         gdk_drawable_create_cairo_context() to gdk_cairo_create().
1240
1241         * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1242         Rename gdk_pixbuf_set_as_cairo_source() to 
1243         gdk_cairo_set_source_pixbuf().
1244
1245         * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1246         gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1247         Adjust for renames.
1248
1249         * gdk/gdk.symbols: Update.
1250
1251         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix 
1252         coordinate system problem that was causing the wrong portions
1253         to be invalidated.
1254
1255         * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1256         gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1257         gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1258         gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1259         gtk/gtkcellview.c (gtk_cell_view_expose)
1260         gtk/gtkdnd.c (gtk_drag_highlight_expose)
1261         gtk/gtkentry.c (gtk_entry_draw_text) 
1262         gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1263
1264         * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1265         GTK+ style ... use instance-private data and standard names for
1266         private structure, etc. Move function docs inline.
1267
1268         * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1269         expose. Switch drawing to Cairo.
1270
1271         * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1272         gtk_calendar_freeze/thaw
1273
1274 2005-05-10  Tor Lillqvist  <tml@novell.com>
1275
1276         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1277         that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1278         == gdk_screen_get_default(), as that might return NULL when this
1279         function is called.
1280
1281 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
1282
1283         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1284         padding in RTL mode.  (#303572, Maciej Katafiasz)
1285
1286 2005-05-09  Owen Taylor  <otaylor@redhat.com>
1287
1288         * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br): 
1289         Fill in unused bits so they can be used for the depth-32 target case.
1290         Rewrite so that that gives a marginal speedup rather than a
1291         marginal slowdown. (on x86)
1292
1293         * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1294         Add gdk_screen_get_rgba_colormap/visual to get a visual for
1295         windows with an alpha channel, if one exists.
1296
1297         * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1298         Stub out gdk_screen_get_rgba_colormap/visual.
1299
1300         * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1301         "unused" wasn't right for depth == 32, since it depended on
1302         shifting by 32.
1303
1304         * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1305         Keith Packard,
1306         http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1307
1308         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1309         Implement again, without using Xft.
1310
1311         * tests/testgtk.c: Add a test for windows with an alpha channel.
1312
1313 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
1314
1315         * autogen.sh: Revert accidental commit.
1316
1317 2005-05-08  Matthias Clasen  <mclasen@redhat.com>
1318
1319         * gdk/gdkcolor.c (gdk_cairo_set_source_color): 
1320         * gdk/gdkimage.h: 
1321         * gdk/gdkdraw.c: 
1322         * gdk/gdkcolor.h: 
1323         * gdk/gdkcursor.h: 
1324         * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1325
1326 2005-05-07  Matthias Clasen  <mclasen@redhat.com>
1327
1328         * gtk/gtkscrolledwindow.h: 
1329         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): 
1330         (gtk_scrolled_window_get_cscrollbar): Change the return 
1331         type to GtkWidget*, proposed by Owen Taylor. 
1332
1333         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm) 
1334         (gdk_screen_get_height_mm): Fix typos in the docs.  (#303389,
1335         Masao Mutoh)
1336
1337 2005-05-07  Matthias Clasen <mclasen@redhat.com>
1338
1339         * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1340         by Owen Taylor.
1341
1342 2005-05-07  Owen Taylor  <otaylor@redhat.com>
1343
1344         * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1345         the background color.
1346
1347 2005-05-07  Owen Taylor  <otaylor@redhat.com>
1348
1349         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
1350         Change prototype to match cairo_set_source_surface().
1351
1352         * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1353         gtk/gtkhsv.c tests/testcairo.c.
1354
1355 2005-05-06  Federico Mena Quintero  <federico@ximian.com>
1356
1357         Merged from gtk-2-6:
1358
1359         * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1360         types if this is an AFS directory.
1361         (fill_in_names): If we are in an AFS directory, set the MIME type
1362         blindly to "x-directory/normal".
1363
1364 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
1365
1366         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1367         initialize child-visible to FALSE, otherwise we may end up
1368         with the wrong page visible initially.  (#302283, Patrik Fimml)
1369
1370         * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1371         appear insensitive in insensitive treeviews. 
1372
1373 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
1374
1375         * gtk/gtktoolbar.c: Fix a typo in the docs.  (#303024, 
1376         Morten Welinder)
1377
1378 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
1379
1380         * gtk/gtk.symbols:
1381         * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1382         support in the tree view.  (#150270)
1383
1384 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
1385
1386         * gtk/gtktreednd.h: 
1387         * gtk/gtkwidget.h: Small cleanups.
1388
1389         * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1390         a typo.
1391
1392 2005-05-04  Owen Taylor  <otaylor@redhat.com>
1393
1394         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1395         in focus tracking when we move between has_pointer_focus and 
1396         has_focus_window directly. (#109246, Billy Biggs, Niko Tyni 
1397         and others)
1398
1399         * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1400         happen in the case of no window manager + keyboard grabs, by
1401         moving to a more consistent model of when we pay attention to
1402         mode=NotifyGrab/NotifyUngrab events.
1403         
1404         * docs/focus_tracking.txt: Extensive writeup about how to track
1405         focus under X11.
1406
1407 Wed May  4 13:21:41 2005  Søren Sandmann  <sandmann@redhat.com>
1408
1409         * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1410         cairo_set_source_surface()/cairo_paint();
1411
1412 2005-05-04  Tor Lillqvist  <tml@novell.com>
1413
1414         * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1415         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1416         _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1417         gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1418         again.
1419
1420 2005-05-03  Matthias Clasen  <mclasen@redhat.com>
1421
1422         * gtk/gtkfilesystem.c: 
1423         * gtk/gtkcelleditable.c: 
1424         * gtk/gtktreemodel.c: Avoid getting the interface struct
1425         twice in the same function.  (#300513, Billy Biggs)
1426
1427         * gtk/gtkscrolledwindow.h:
1428         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): 
1429         * gtk/gtk.symbols: Add getters for the scrollbars.  (#167181,
1430         Billy Biggs)    
1431
1432         * gtk/gtkdialog.h: 
1433         * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): 
1434         Make this function public.  (#170748, Morten Welinder)
1435
1436 2005-05-02  Federico Mena Quintero  <federico@ximian.com>
1437
1438         Merged from gtk-2-6:
1439
1440         Fixes #301068:
1441
1442         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1443         to store struct stat for /afs and /net, and boolean fields to say
1444         whether these are valid.
1445         (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1446         (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1447         field of the folder structure.
1448         (fill_in_names): If the folder is a network directory, create a
1449         fake struct stat for its entries.
1450         (fill_in_stats): Don't stat() the children of network directories.
1451
1452         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1453         is 0, use "Unknown" for the cell's displayed text.
1454
1455 2005-04-28  Owen Taylor  <otaylor@redhat.com>
1456
1457         * gtk/gtkwidget.c: Add a draw-border style property to allow
1458         themes to draw outside the widget's allocation.
1459
1460         * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1461         that were working around the clip-leakage bug in Cairo.
1462
1463         * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1464         save/fill/restore.
1465
1466         * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1467         That updates a Cairo context to match a GC.
1468
1469         * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1470         for tiles/stipples/clipping to gdk_draw_glyphs(), 
1471         gdk_draw_trapezoids().
1472
1473         * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1474         implementation of stipples. Use one cairo_t across the entire
1475         drawing operation. Replace cairo_matrix_create() with 
1476         stack-allocated matrices.
1477
1478         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c 
1479         gdk/win32/gdkgc-win32.c: Save various aspects of the 
1480         GC state (fill, tile, stipple, foreground, background, clip region)
1481         in instance-private-data for future use. Add getters.
1482         Get rid of _gdk_windowing_gc_get_foreground() function implemented 
1483         by the backends.
1484
1485         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1486         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1487         _gdk_gc_init() to do initial setup of the GC from values;
1488         fixes some problems from drawable redirection.
1489
1490         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1491         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move 
1492         gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into 
1493         the generic code, add _gdk_windowing_gc_copy(), 
1494         _gdk_windowing_gc_set_clip_region() to do backend specific
1495         stuff.
1496
1497         * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1498         gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1499         gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1500         Don't duplicate state that now is stored by the generic code.
1501
1502         * gdk/gdk.symbols Update
1503
1504 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
1505
1506         * tests/testiconview.c: Test cell renderers.
1507
1508         * gtk/gtk.symbols: Add new functions.
1509
1510         * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1511         cell renderers for drawing and editing. (#148144, #160242)
1512
1513 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
1514
1515         * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1516         width for cases where pango_layout_get_pixel_extents() returns
1517         a rectangle with nonzero x. 
1518
1519         * gtk/gtkselection.c: Small doc fixes.
1520
1521         * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus): 
1522         (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1523
1524 2005-05-02  Michael Natterer  <mitch@imendio.com>
1525
1526         * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1527         "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1528         multiple times when using gtk_get_option_group(), just as one can
1529         call gtk_init() multiple times without doing any harm.
1530
1531 2005-05-01  Matthias Clasen  <mclasen@redhat.com>
1532
1533         * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1534         the event to unanchored children in the text window.  
1535         (#302494, Stephen Kennedy)
1536
1537 2005-04-30  Tor Lillqvist  <tml@novell.com>
1538
1539         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1540         multi-monitor offset into account. (#302525)
1541
1542 2005-04-29  Matthias Clasen  <mclasen@redhat.com>
1543
1544         * gtk/gtkradioaction.c: Make the docs build.  (#302230,
1545         Ali Akcaagac)
1546
1547         * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1548         function, instead show the bin_window when it is created.
1549
1550         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
1551         grab focus to unrealized widgets.  (#302240, Philip Langdale)
1552
1553         * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1554         background upon state changes.  (#301651, Billy Biggs)
1555         (gtk_tree_view_get_path_at_pos): Take RTL into account
1556         when iterating over the columns.  (#302163)
1557         
1558         * configure.in: Check for nm.
1559
1560         * gtk/Makefile.am: Use $(NM), not nm directly. (#301299, 
1561         Nguyen Thai Ngoc Duy)
1562
1563         * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1564         the internal unselect_all function, since we need the unselection
1565         to happen even in browse mode.  (#300995, Mathias Hasselmann)
1566
1567         * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1568         of triggering a ::notify by re-setting the property.  (#300982,
1569         Sven Neumann)
1570
1571         * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1572
1573         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1574         scroll horizontally when necessary, and keep the northwest
1575         corner of the item visible.  (#300913, Mathias Hasselmann)
1576
1577         * tests/testiconview.c: Add some more tests.
1578
1579         * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1580         if the path does not point to a row in the model.  (#300909,
1581         Mathias Hasselmann)
1582         (gtk_icon_view_rows_reordered): Re-layout here.  (#301009, 
1583         Mathias Hasselmann)
1584
1585         * tests/testtext.c: Add some more attribute tests.
1586
1587         * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1588         of the rise property. String change, but it is more important to
1589         be correct than to be translated.  (#301740)
1590
1591 2005-04-25  Tor Lillqvist  <tml@novell.com>
1592
1593         * gtk/gtkfilesystemwin32.c
1594         (gtk_file_system_win32_volume_get_display_name): Get volume name
1595         also on Win9x. (#301798, Daniel Atallah)
1596         (canonicalize_filename): Add explicit braces to silence compiler
1597         warning.
1598
1599 2005-04-22  Tor Lillqvist  <tml@novell.com>
1600
1601         * gtk/gtkmain.c: Initailize gettext before use. Calling
1602         bindtextdomain() and bind_textdomain_codeset() in
1603         do_post_parse_initialization() is too late. Put the calls in a new
1604         function gettext_initialization(), and call that from
1605         gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1606         GTK+'s part, but the same problem occurs also at least in
1607         atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1608
1609 2005-04-19  Ivan, Wong Yat Cheung  <email@ivanwong.info>
1610
1611         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1612         character height instead of cell height. Fix #301228.
1613
1614 2005-04-18  Federico Mena Quintero  <federico@ximian.com>
1615
1616         Merged from gtk-2-6:
1617
1618         * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1619         obsolete assertion that the selected row can't be a volume; this
1620         is handled by the "removable" column now.  Fixes #301017.
1621
1622 2005-04-18  Owen Taylor  <otaylor@redhat.com>
1623
1624         * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1625         * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1626         gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1627         setting color and opacity. (#301066, Vincent Noel)
1628  
1629 2005-04-15  Federico Mena Quintero  <federico@ximian.com>
1630
1631         Merged from gtk-2-6:
1632
1633         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1634         Patch from Christian Neumair <chris@gnome-de.org>; only select the
1635         first row if we are in OPEN mode.  The only other case we were
1636         letting pass through was SELECT_FOLDER, but selecting the first
1637         row when changing folders confuses people when folders are
1638         actually being selected.  Fixes #171885.
1639
1640 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
1641
1642         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
1643         Revert the fix for #169870, adjust the documentation instead. 
1644
1645         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
1646         Revert the fix for #170727.     
1647
1648 2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
1649
1650         Fix #300218:
1651
1652         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
1653         C99ism.
1654
1655         * gtk/updateiconcache.c: Guard inclusion of unistd.h and
1656         utime.h.
1657
1658 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
1659
1660         * gdk/x11/gdkinput-xfree.c:
1661         * gdk/x11/gdkinput-none.c:
1662         * gdk/gtk.symbols: Some more fixes necessary to 
1663         make building with gcc 4 work.
1664
1665         Add 16x16 versions of the zoom icons and of 
1666         GTK_STOCK_INDEX. Some of the images were taken from 
1667         the hicolor icon theme, and were originally created 
1668         by Jakub Steiner and Tuomas Kuosmanen.  (#167515, 
1669         Vincent Noel)
1670         
1671         * gtk/stock-icons/stock_index_16.png:
1672         * gtk/stock-icons/stock_zoom_1_16.png:
1673         * gtk/stock-icons/stock_zoom_fit_16.png:
1674         * gtk/stock-icons/stock_zoom_in_16.png:
1675         * gtk/stock-icons/stock_zoom_out_16.png: New images.
1676         
1677         * gtk/stock-icons/Makefile.am: Add the new images. 
1678
1679         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
1680         Don't display too many broken images.  (#169870, Roman
1681         Kagan, patch by Ivan Wong)
1682
1683         * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
1684         output.  (#300013, Tommi Komulainen)
1685
1686 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
1687
1688         * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size): 
1689         If a stock_id is unknown, display the missing image. (#169870,
1690         Steven Walter)
1691
1692         * gtk/gtkiconcache.c (icon_name_hash): Use the same function 
1693         as in updateiconcache.c.  (spotted by Morten Welinder)
1694
1695 2005-04-08  Carl Worth  <cworth@cworth.org>
1696
1697         * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
1698         now that cairo exposes the cairo_matrix_t structure.
1699         
1700         * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
1701         cairo API change in signedness of data argument.
1702
1703 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
1704
1705         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
1706         work when called from gtk_combo_box_destroy().  (#172999,
1707         Christian Persch)
1708
1709 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
1710
1711         Fix double-click to autosize treeview columns. This was
1712         probably broken since 2.2 ! (#169675)
1713         
1714         * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
1715         "user-resized" state of the column on a double-click to
1716         autosize.
1717         (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column): 
1718         Enter the "user-resized" state of the column only if a drag
1719         actually changes the column width, not on any click.
1720
1721 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
1722
1723         * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
1724         images on menus.  (#169532, Benjamin Otte)
1725         
1726         * gtk/updateiconcache.c (write_card16, write_card32): Avoid
1727         unaligned access.  (#172947)
1728
1729         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): 
1730         Consistently use the term "Bookmarks" in the UI.  (#166906,
1731         Sebastian Bacher)
1732
1733         Some fixes from Morten Welinder (#172947):
1734         
1735         * gtk/updateiconcache.c (icon_name_hash): Make this compiler- 
1736         and platform-independent.
1737         (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
1738         (build_cache): Error out if a stat fails.  
1739
1740 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
1741
1742         * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add 
1743         a hint about hiding expanders.
1744
1745         * gtk/updateiconcache.c (is_cache_up_to_date): Return 
1746         TRUE if the cache is newer than the directory.  (#172852,
1747         Jacob Kroon)
1748
1749         * configure.in: Replace an explicit pkg-config by 
1750         $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
1751         
1752         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
1753         Ignore regions which fall completely outside the line.  
1754         (#165862, Felipe Heidrich)
1755
1756 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
1757
1758         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
1759         -1 as possible value.  
1760         (gtk_tree_view_enable_model_drag_source) 
1761         (gtk_tree_view_enable_model_drag_dest): Pass the target list 
1762         to the underlying dnd implementation, otherwise we miss the 
1763         target info in the drag-data-received signal.  (#164085, Jorn
1764         Baayen)
1765
1766 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
1767
1768         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column) 
1769         (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
1770         to gdk_window_get_pointer(). (#168015, Billy Biggs)
1771
1772         * po/.cvsignore, po-properties/.cvsignore: Remove
1773         Makefile.in.in.  (#171092, Stepan Kasal)
1774
1775         * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify 
1776         scanner->value, copy it first.  (#165693, Tommi Komulainen)
1777
1778 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1779
1780         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus): 
1781         * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
1782         grab_focus for GtkComboBox and GtkComboBoxEntry.  (#171912,
1783         Gustavo Carneiro)
1784
1785         * gtk/gtkicontheme.c: Store icon caches along with the
1786         mtimes of the toplevel directories. The previous
1787         mechanism of a hashtable-per-theme caused duplicate icon
1788         caches for the same toplevel directory to be created.  
1789         (#170030)
1790
1791 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1792
1793         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): 
1794         Fix a typo in a warning.
1795
1796         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
1797         the license and credits buttons from being affected by 
1798         gtk_widget_show_all().  (#172724)
1799
1800 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
1801
1802         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a 
1803         reference to the item.  (#167920, Hazael Maldonado Torres)
1804
1805         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
1806         more docs on interactive search.
1807
1808 2005-04-05  Tor Lillqvist  <tml@novell.com>
1809
1810         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
1811         display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
1812         returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
1813
1814         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
1815         24bpp GdkVisual on 32bpp displays. (#140706)
1816
1817 Mon Apr  4 19:13:23 2005  Jonathan Blandford  <jrb@redhat.com>
1818
1819         Fix for #172319, Tristan Van Berkom:
1820         
1821         * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
1822         gtk_tree_view_real_expand_row() instead of doing this by hand.
1823
1824 2005-04-04  Johan Dahlin  <johan@gnome.org>
1825
1826         * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
1827         (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
1828         (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
1829
1830 Mon Apr  4 14:33:55 2005  Manish Singh  <yosh@gimp.org>
1831
1832         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
1833         cast combo->priv->entry to GTK_ENTRY()
1834
1835         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
1836         cast completion->priv->tree_view to GTK_TREE_VIEW()
1837
1838 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1839
1840         * gtk/gtktextbuffer.c: Some trivial doc fixes.
1841
1842         * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve 
1843         the wording of the doc comment.  (#172422, Vincent Untz)
1844
1845 2005-04-04  Owen Taylor  <otaylor@redhat.com>
1846
1847         * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
1848         drawing to Cairo. Also always draw the entire triangle instead
1849         of just drawing the center for prelight. (Fixes inconsistent
1850         drawing in GtkTreeView.)
1851
1852 2005-04-04  Johan Dahlin  <johan@gnome.org>
1853
1854         * gtk/gtk.symbols: Remove symbols accidentally added.
1855         * gtk/gtkentryprivate.h: Add boolean property popup_set_width
1856         * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
1857         Use object_class instead of gobject_class
1858
1859 Mon Apr  4 12:14:35 2005  Søren Sandmann  <sandmann@redhat.com>
1860
1861         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
1862         widget coordinates instead of root coordinates. Patch from Jorn
1863         Baayen. (#172236)
1864
1865 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1866
1867         * gtk/gtktoolbar.c: Add a tooltips property.
1868
1869         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init): 
1870         * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
1871
1872         * gtk/gtktoggletoolbutton.c: Add an active property.
1873
1874 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1875
1876         Allow completion popups to be wider than the entry. (#131916, 
1877         Ross Burton)
1878         
1879         * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
1880
1881         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
1882         Don't force the popup to have the same width as the entry if 
1883         popup-set-width is FALSE.
1884
1885         * gtk/gtk.symbols: Add new functions.
1886
1887 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
1888
1889         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
1890         Use gtk_accel_map_change_entry(), so that reusing the same
1891         action name works.  (#170727, Paolo Borelli)
1892
1893 2005-04-04  Tor Lillqvist  <tml@novell.com>
1894
1895         * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
1896         function, to log a clipboard format name symbolically.
1897         (_gdk_win32_data_to_string): Also new, to log random data bytes.
1898
1899         Implement delayed rendering on Win32, specifically for transfering
1900         images through the clipboard from GTK+ apps to other
1901         apps (#168173, implementation by Ivan Wong):
1902
1903         * gdk/win32/gdkevents-win32.c (gdk_event_translate): 
1904         Handle WM_RENDERFORMAT.
1905
1906         * gdk/win32/gdkprivate-win32.h
1907         * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
1908         _delayed_rendering_data and _image_bmp.
1909
1910         * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
1911
1912         * gdk/win32/gdkproperty-win32.c (gdk_property_change):
1913         Accept formats other than GDK_TARGET_STRING or _utf8_string, and
1914         assume they are handled through delayed rendering.
1915
1916         * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
1917         Return all available formats (including those registered by GTK+
1918         apps) on request_targets.
1919         (gdk_selection_property_get): We should append a zero byte like
1920         X11 does.
1921         (gdk_win32_selection_add_targets): New function, for
1922         gtkselection's use. Win32 requires that the clipboard owner
1923         registers all valid formats even if the owner wants delayed
1924         rendering.
1925         (_gdk_win32_selection_convert_to_dib): New function. Convert
1926         images to DIB using gdk-pixbuf.
1927
1928         * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
1929
1930         * gtk/gtkselection.c (gtk_selection_add_target,
1931         gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
1932         to register target formats.
1933
1934         * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
1935
1936 2005-04-03  Hans Breuer  <hans@breuer.org>
1937
1938         [merged from gtk-2-6 branch]
1939         * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
1940         the line pattern not the start of the line. Fixes bug #171641.
1941
1942         * gtk/makefile.msc.in : follow .symbols changes
1943
1944         * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
1945         dynamically. (It is not available in _WIN_VER <= 0x0400)
1946
1947         * gdk/win32/makefile.msc : removed gdkpango-win32.obj
1948
1949         * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
1950
1951         [also applied to gtk-2-6 branch]
1952         * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
1953
1954         * gdk/makefile.msc.in : add gtkmnemonichash.obj
1955
1956         * test/testgtk.c(set_parent_signal) : use g_message instead of
1957         g_print to keep the 'testgtk --bench=all' output clean
1958
1959 2005-04-03  Matthias Clasen  <mclasen@redhat.com>
1960
1961         * gtk/gtkruler.c: Add a "metric" property.
1962
1963         * gtk/gtkradiomenuitem.c: Add a "group" property like
1964         the one found in radio buttons.
1965
1966         * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
1967         a typo in the docs.
1968         (gtk_radio_button_set_group): Add change notification.
1969         
1970 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
1971
1972         * gtk/gtkselection.c: Move documentation inline, document
1973         if add_target functions append or prepend.  (#172350, 
1974         Jon-Kare Hellan)
1975
1976 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
1977
1978         Make gtk_combo_box_get_active_text do the right thing for
1979         GtkComboBoxEntry (#171373, Robert Staudinger)
1980         
1981         * gtk/gtkcombobox.h: Add a get_active_text vfunc.
1982         
1983         * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
1984         implement it here.
1985
1986         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text): 
1987         Implement get_active_text by always returning the content of 
1988         the entry.
1989
1990 2005-03-31  Sven Neumann  <sven@gimp.org>
1991
1992         Merged from gtk-2-6:
1993
1994         * gtk/gtkbutton.c
1995         * gtk/gtkiconview.c: fixed gtk-doc comments.
1996
1997 2005-03-31  Michael Natterer  <mitch@gimp.org>
1998
1999         Allow to pop up menus without grabbing the keyboard. Useful for
2000         stuff like virtual keyboards. Fixes bug #159890
2001
2002         * gtk/gtk.symbols
2003         * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
2004         and public API gtk_menu_shell_set/get_take_focus().
2005
2006         * gtk/gtkmenu.c (gtk_menu_popup)
2007         (popup_grab_on_window): don't grab the keyboard if take_focus
2008         is FALSE.
2009
2010         * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
2011         parent menu_shell's take_focus property to the submenu which is
2012         about to be popped up.
2013
2014 2005-03-30  Federico Mena Quintero  <federico@ximian.com>
2015
2016         Merged from gtk-2-6:
2017
2018         Fix #170755:
2019
2020         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
2021         if the row which changed is the same as the row being edited.
2022
2023 2005-03-30  Matthias Clasen  <mclasen@redhat.com>
2024
2025         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
2026         Make enable_search control only typeahead, not C-f.  (#170435,
2027         Sven Neumann)
2028         (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
2029
2030         * gdk/gdkpixbuf.h: Include cairo.h
2031
2032         * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): 
2033         Don't accept n_targets == -1.
2034         (clipboard_unset): unref the old_data, not the
2035         user_data which we have just cleared.  (#172038, Sven
2036         Neumann)
2037
2038         * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't 
2039         segfault if somebody tries to popup an unrealized
2040         combo box.  (#172031, Felipe Heidrich)
2041
2042 2005-03-30  Tor Lillqvist  <tml@novell.com>
2043
2044         * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
2045         state field should represent the state before the event, like on
2046         X11. (#169753)
2047         (gdk_event_translate): Fix event filter handling. If an event
2048         filter (global, client message filter, of window-specific) returns
2049         GDK_FILTER_CONTINUE, continue as if nothing happened. If it
2050         returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
2051         from gdk_event_translate() which means that DefWindowProc() will
2052         not be called.
2053         (gdk_event_translate): Fix client message handling. Append a
2054         GDK_CLIENT_EVENT unless there is a filter that matches and returns
2055         something other than GDK_FILTER_CONTINUE. (#135552)
2056
2057 2005-03-29  Matthias Clasen  <mclasen@redhat.com>
2058
2059         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func): 
2060         Document the need to refilter if parameters of the visibility function
2061         change.  (#169516, Olivier Sessink)     
2062
2063 Mon Mar 28 15:13:42 2005  Søren Sandmann  <sandmann@redhat.com>
2064
2065         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2066         invalidate areas that are covered by mapped input-output child
2067         windows. Bug 141380.
2068
2069 2005-03-28  Jeroen Zwartepoorte  <jeroen.zwartepoorte@gmail.com>
2070
2071         * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
2072         the preview label ellipsize so the dialog layout stays constant.
2073         (#171398)
2074
2075 2005-03-28  Matthias Clasen  <mclasen@redhat.com>
2076
2077         * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
2078         the context menu of the search entry if it is not visible.
2079         (#169534, Billy Biggs)
2080
2081 2005-03-27  Tor Lillqvist  <tml@novell.com>
2082
2083         * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
2084         after all, and in fact necessary with HEAD libtool.
2085
2086 2005-03-26  Matthias Clasen  <mclasen@redhat.com>
2087
2088         * gtk/*.c: 
2089         * gdk/gdkdisplaymanager.c: 
2090         Use canonical names for g_object_notify() as well. 
2091
2092 2005-03-24  Tor Lillqvist  <tml@novell.com>
2093
2094         * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
2095         in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
2096         gtk+-2.0.pc file and automatically used by dependents. MSVC users
2097         who use pkg-config will have to manually edit it out from
2098         gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
2099         some kind of conditionals in .pc files?
2100
2101 2005-03-23  Matthias Clasen  <mclasen@redhat.com>
2102
2103         * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2104         a call whose result was unused and leaked.  (#170776,
2105         Kjartan Maraas)
2106
2107         Some cleanups to the GtkDialog code:  (#170746, 
2108         Morten Welinder)
2109         * gtk/gtkdialog.c (action_widget_activated): Simplify,
2110         use _gtk_dialog_get_response_for_widget.
2111         (gtk_dialog_add_action_widget): Use the correct signal
2112         id for non-buttons.
2113         (gtk_dialog_set_response_sensitive): 
2114         (gtk_dialog_set_default_response): Use get_response_data.
2115         (gtk_dialog_run): Don't disconnect the signals if the
2116         dialog was destroyed while running.
2117
2118 Tue Mar 22 14:16:31 2005  Manish Singh  <yosh@gimp.org>
2119
2120         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2121         Use g_return_if_fail, not g_return_val_if_fail.
2122
2123 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
2124
2125         Implement bookmark renaming  (#136216, Sean Middleditch)
2126         
2127         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add 
2128         get_bookmark_label and set_bookmark_label vfuncs.
2129
2130         * gtk/gtkfilesystem.h:
2131         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label): 
2132         (gtk_file_system_get_bookmark_label): Wrappers for the
2133         vfuncs.
2134
2135         * gtk/gtk.symbols: Add new exported symbols.
2136
2137         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label): 
2138         (gtk_file_system_unix_get_bookmark_label): Implementations
2139         for the Unix backend.
2140
2141         * gtk/gtkfilechooserdefault.c: Add a context menu to
2142         the bookmarks pane, and allow to rename bookmarks.
2143
2144 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
2145
2146         * gtk/gtkpathbar.c (gtk_path_bar_unmap): 
2147         * gtk/gtkspinbutton.c (gtk_spin_button_unmap): 
2148         * gtk/gtknotebook.c (gtk_notebook_unmap): 
2149         * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2150         the widget is unmapped.  (#168791, Ryan Lortie)
2151
2152 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
2153
2154         * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2155         GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2156         their G_ counterparts, but also mark the name, nick
2157         and blurb as static.
2158
2159         * gtk/*.c: Mark param spec strings as static, using
2160         the new macros.
2161
2162         * gtk/gtkspinbutton.h: Fix a typo.
2163
2164 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
2165
2166         * gtk/gtkcellrendererprogress.c: 
2167         * gtk/gtkcellrendererpixbuf.c: 
2168         * gtk/gtkcellrenderercombo.c: 
2169         * gtk/gtkcellrenderer.c: 
2170         * gtk/gtkcalendar.c: 
2171         * gtk/gtkbutton.c: 
2172         * gtk/gtkbox.c: 
2173         * gtk/gtkbbox.c: 
2174         * gtk/gtkaspectframe.c: 
2175         * gtk/gtkarrow.c: 
2176         * gtk/gtkalignment.c: 
2177         * gtk/gtkactiongroup.c: 
2178         * gtk/gtkaction.c:
2179         * gtk/gtkaccellabel.c: 
2180         * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2181
2182         * gdk/gdkpango.c (gdk_pango_renderer_class_init): 
2183         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2184         param spec strings as static.
2185
2186 2005-03-21  Tor Lillqvist  <tml@novell.com>
2187
2188         * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2189         variables, unhandled enum value in switch). Use g_object_unref()
2190         instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2191
2192         * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state): 
2193         Add missing "case" keyword.
2194
2195         * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2196         explicitly.
2197
2198 2005-03-20  Tor Lillqvist  <tml@novell.com>
2199
2200         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2201         Terminal Services session number, window station name (always
2202         "WinSta0" in interactive processes), and desktop name (typically
2203         "Default"), concatenated with backslash separators.
2204         (gdk_display_open): Accept only NULL or the string
2205         gdk_display_get_name() returns as display name.
2206
2207 2005-03-20  Matthias Clasen  <mclasen@redhat.com>
2208
2209         Make PLT-reduction work with gcc4, and don't include
2210         everything in gdkalias.h:
2211         
2212         * gtk/grk.symbols: Group symbols by header and source file.
2213         * gtk/makegtkalias.pl: Protect definitions by the same 
2214         preprocessor symbols used to guard the headers. Move
2215         the alias declarations to a separate file which is 
2216         produced when calling makegtkalias.pl -def
2217         * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate 
2218         this file.
2219         * gtk/*.c: Include gtkalias.h after the other headers, 
2220         include gtkaliasdef.c at the bottom.
2221         * gtk/*.h: Small cleanups.
2222
2223 Fri Mar 18 23:59:49 2005  Soeren Sandmann  <sandmann@redhat.com>
2224
2225         * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2226         Make right-clicks not pop up the menu.
2227
2228 2005-03-18  Owen Taylor  <otaylor@redhat.com>
2229
2230         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish): 
2231         Call cairo_surface_finish()
2232
2233         * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2234         _gdk_windowing_set_surface_device_offset().
2235
2236 2005-03-18  Tor Lillqvist  <tml@novell.com>
2237
2238         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2239         WM_MOUSEMOVE, don't check if this process owns the active
2240         window. This makes cross-application widget embedding work better.
2241         On WM_MOVE, don't bother checking for window visibility.
2242
2243         * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2244         unused variables. Add some casts to silence gcc.
2245
2246 2005-02-24  Owen Taylor  <otaylor@redhat.com>
2247
2248         * gdk/gdkwindow.c: Use cairo_set_device_offset().
2249
2250         * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2251         gdk/win32/gdkpixmap-win32.c: 
2252         Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the 
2253         drawable. Add _gdk_drawable_win32_finish() to clean up resources
2254         when a drawable is destroyed.
2255
2256         * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2257         (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use 
2258         acquire/release_dc when getting a DC to use with a GC or for 
2259         blitting from a pixmap.
2260
2261         * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2262
2263         * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2264         Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2265         implementations.
2266
2267         * gdk/win32/gdkdrawable-win32.c: Remove 
2268         gdk_draw_rectangle_alpha_libgtk_only()
2269
2270 2005-03-17  Owen Taylor  <otaylor@redhat.com>
2271
2272         * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2273         EXTEND_REPEAT on the stipple pattern.
2274
2275 2005-03-17  Matthias Clasen  <mclasen@redhat.com>
2276
2277         * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2278         in example in the docs.  (#170611, Jianfei Wang)
2279
2280         * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2281         adjustment values on resize.  (#170567, Tomislav Jonjic)
2282
2283         * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2284         if there is no cache.  (#170652, Diego Gonzalez)
2285         
2286         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
2287         Make inline completion insert the prefix at the
2288         right spot.  (#170146, Doug Quale)
2289
2290 2005-03-17  Tor Lillqvist  <tml@novell.com>
2291
2292         * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2293
2294 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
2295
2296         * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): 
2297         Typo fix in the docs.
2298         
2299         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): 
2300         Typo fix in the docs.
2301
2302         * gtk/gtkiconview.c (gtk_icon_view_set_columns) 
2303         (gtk_icon_view_get_columns, gtk_icon_view_set_item_width) 
2304         (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) 
2305         (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) 
2306         (gtk_icon_view_set_column_spacing) 
2307         (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin) 
2308         (gtk_icon_view_set_margin): Add docs.
2309         
2310         * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): 
2311         Add docs.
2312
2313 2005-03-15  Owen Taylor  <otaylor@redhat.com>
2314
2315         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c 
2316         gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2317         gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2318         ref_cairo_surface()
2319
2320         * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2321         function to create_cairo_context()
2322
2323         * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2324
2325         * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2326         not just the pixel.
2327
2328         * tests/testcairo.c: Update for create_cairo_context()
2329
2330         * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2331         Reimplement in terms of Cairo, bypass the vtable entries.
2332
2333         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2334         gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2335         gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2336         implementation of draw_trapezoids / draw_glyphs[_transformed].
2337
2338         * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2339
2340         * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2341         gdk_pango_context_get_for_screen() into the backend independent code.
2342
2343         * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2344         for drawing images.
2345
2346         * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2347         gdk_draw_rectangle_alpha_libgtk_only.
2348
2349         * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add 
2350         gdk_pixbuf_set_as_cairo_source()
2351
2352         * gdk/gdk.symbols: Update
2353
2354         * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2355         gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2356
2357         * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2358         gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2359         radio button style for now to get something more scalable.
2360
2361         *  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2362         antialiasing/dpi settings.
2363
2364 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
2365
2366         * demos/gtk-demo/editable_cells.c: Also demonstrate
2367         GtkCellRenderer::editing-started and separators.
2368
2369 Tue Mar 15 20:34:33 2005  Manish Singh  <yosh@gimp.org>
2370
2371         * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2372
2373 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
2374
2375         Make PLT-reduction work with gcc4, and don't include
2376         everything in gdkalias.h:
2377
2378         * gdk/gdk.symbols: Group symbols by header and source file.
2379         * gdk/makegdkalias.pl: Protect definitions by the same
2380         preprocessor symbols used to guard the headers. Move
2381         the alias declarations to a separate file which is
2382         produced when calling makegdkalias.pl -def
2383         * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2384         file.
2385         * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2386         headers, include gdkaliasdef.c at the bottom.
2387
2388 2005-03-16  Tor Lillqvist  <tml@novell.com>
2389
2390         * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2391         debugging output only if asked for, not always.
2392
2393         * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2394         debugging printout instead of +%d+%d. Misc other additions and
2395         cosmetic improvements to debugging printouts. Use API_CALL() and
2396         GDI_CALL() macros in more places.
2397
2398         * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2399         gdk_window_move_resize): To detect child windows, check whether
2400         the real parent is not the desktop window, instead of relying on
2401         the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2402         windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2403         de facto child windows.
2404
2405         * gdk/win32/gdkprivate-win32.h
2406         * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2407         GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2408         _gdk_root.
2409
2410         * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2411         toplevel_window_type field.
2412
2413         * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2414         GDK on Win32, we can compare directly to _gdk_root instead of
2415         checking the window type.
2416         (gdk_window_reparent): When reparenting a child of the desktop
2417         clear out the window decorations. Correspondingly, when
2418         reparenting to the desktop, add decorations. As in the X11
2419         backend, save the window type of a toplevel window when
2420         reparenting, in case it is reparented back to toplevel.
2421
2422 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
2423
2424         * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2425         example for manually setting up a group of actions.
2426
2427         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
2428         Document that inline completion requires text-column to be set.
2429         (gtk_entry_completion_compute_prefix): Return NULL if text-column
2430         is not set.
2431
2432         * gtk/gtkentry.c (check_completion_callback): Call 
2433         gtk_entry_completion_complete() before inserting the prefix,
2434         otherwise the prefix may depend on (random) state of the
2435         filter model.  
2436
2437 2005-03-15  Anders Carlsson  <andersca@imendio.com>
2438
2439         * docs/iconcache.txt:
2440         Update spec.
2441         
2442         * gtk/gtkiconcache.c: (find_image_offset),
2443         (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2444         (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2445         * gtk/gtkiconcache.h:
2446         Update to be able to fetch pixbuf data and icon metadata.
2447         
2448         * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2449         (icon_info_ensure_scale_and_pixbuf):
2450         Use new cache functions.
2451         
2452         * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2453         (maybe_cache_image_data), (scan_directory), (write_pixdata),
2454         (get_image_meta_data_size), (get_image_pixel_data_size),
2455         (get_image_data_size), (get_single_node_size), (get_bucket_size),
2456         (write_bucket), (main):
2457         Update to write pixbuf data as well as information from .icon
2458         files.
2459         
2460 2005-03-15  Tor Lillqvist  <tml@novell.com>
2461
2462         * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2463         debugging function. As GetKeyNameText() returns a localized key
2464         name we need to convert it to UTF-8.
2465
2466         * gdk/win32/gdkprivate-win32.h: Declare it.
2467
2468         * gdk/win32/gdkevents-win32.c: Use it.
2469
2470         * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2471         handling of children of foreign windows. They should be child
2472         windows from Windows's perspective, even if they are toplevel GDK
2473         windows.
2474
2475 2005-03-13  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2476
2477         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2478         for big window support. Now also the test in testgtk works.
2479
2480 2005-03-11  Matthias Clasen  <mclasen@redhat.com>
2481
2482         * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2483         style changes.  (#169334, Yury Puzis)
2484
2485         * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2486         the doc comments.  (#169967, Masao Mutoh)
2487
2488 2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2489
2490         Big window fix for Win32. Big windows are still emulated within
2491         16-bit coordinate limits, though. Big windows now work on NT-based
2492         Windows. (#169989)
2493
2494         * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2495         32-bit coordinates.
2496
2497         * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2498
2499         * gdk/win32/gdkwindow-win32.c: Minor related changes.
2500         
2501 2005-03-10  Matthias Clasen  <mclasen@redhat.com>
2502
2503         * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv): 
2504         Fix a doc typo.  (#169873, Johan Dahlin)
2505
2506         * gtk/gtkdialog.c (gtk_dialog_map): Don't
2507         try to focus the default_widget if there is 
2508         none.  (#169881, Thomas Leonard)
2509
2510 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
2511
2512         * configure.in: Remove inadvertent gail references, require
2513         Pango 1.9.0
2514
2515 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2516
2517         * configure.in: Require GLib 2.7.0
2518
2519 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2520
2521         * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2522         (#169728, Morten Welinder, Owen Taylor)
2523
2524         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2525         in the docs.  (#169729, Morten Welinder)
2526
2527         * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2528
2529         * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize 
2530         when the model is unset.  (#169528, Tomislav Jonjic)
2531
2532 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2533
2534         * gtk/gtkviewport.c (gtk_viewport_class_init): 
2535         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
2536         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init): 
2537         * gtk/gtktipsquery.c (gtk_tips_query_class_init): 
2538         * gtk/gtktext.c (gtk_text_class_init): 
2539         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): 
2540         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): 
2541         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): 
2542         * gtk/gtkoptionmenu.c (gtk_option_menu_class_init): 
2543         * gtk/gtkoldeditable.c (gtk_old_editable_class_init): 
2544         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): 
2545         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): 
2546         * gtk/gtktoolitem.c (gtk_tool_item_class_init): 
2547         * gtk/gtkimage.c (gtk_image_class_init): 
2548         * gtk/gtkruler.c (gtk_ruler_class_init): 
2549         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
2550         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
2551         * gtk/gtkprogress.c (gtk_progress_class_init): 
2552         * gtk/gtkmenu.c (gtk_menu_class_init): 
2553         * gtk/gtkscale.c (gtk_scale_class_init): 
2554         * gtk/gtkpaned.c (gtk_paned_class_init): 
2555         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
2556         * gtk/gtkfontbutton.c (gtk_font_button_class_init): 
2557         * gtk/gtkfontsel.c (gtk_font_selection_class_init): 
2558         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
2559         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
2560         * gtk/gtkcurve.c (gtk_curve_class_init): 
2561         * gtk/gtkcombo.c (gtk_combo_class_init): 
2562         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2563         * gtk/gtkcolorbutton.c (gtk_color_button_class_init): 
2564         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): 
2565         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): 
2566         * gtk/gtkcheckbutton.c (gtk_check_button_class_init): 
2567         * gtk/gtktogglebutton.c (gtk_toggle_button_class_init): 
2568         * gtk/gtkcellview.c (gtk_cell_view_class_init): 
2569         * gtk/gtktoolbar.c (gtk_toolbar_class_init): 
2570         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): 
2571         * gtk/gtkclist.c (gtk_clist_class_init): 
2572         * gtk/gtkctree.c (gtk_ctree_class_init): 
2573         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): 
2574         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
2575         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
2576         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init): 
2577         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
2578         * gtk/gtkbbox.c (gtk_button_box_class_init): 
2579         * gtk/gtktable.c (gtk_table_class_init): 
2580         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): 
2581         * gtk/gtkframe.c (gtk_frame_class_init): 
2582         * gtk/gtkaction.c (gtk_action_class_init): 
2583         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): 
2584         * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init): 
2585         * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2586
2587 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
2588
2589         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): 
2590         * gtk/gtkrange.c (gtk_range_class_init): 
2591         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): 
2592         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
2593         * gtk/gtktextview.c (gtk_text_view_class_init): 
2594         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): 
2595         * gtk/gtknotebook.c (gtk_notebook_class_init): 
2596         * gtk/gtkentry.c (gtk_entry_class_init): 
2597         * gtk/gtkexpander.c (gtk_expander_class_init): 
2598         * gtk/gtkarrow.c (gtk_arrow_class_init): 
2599         * gtk/gtkalignment.c (gtk_alignment_class_init): 
2600         * gtk/gtkbutton.c (gtk_button_class_init): 
2601         * gtk/gtklabel.c (gtk_label_class_init): 
2602         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
2603         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2604         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
2605         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
2606         * gtk/gtkbox.c (gtk_box_class_init): 
2607         * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): 
2608         * gtk/gtkcontainer.c (gtk_container_class_init): 
2609         * gtk/gtkwidget.c (gtk_widget_class_init): 
2610         * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2611         when registering param specs.
2612
2613         * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2614         (#169607, Mark McLoughlin)
2615         
2616         * gtk/gtk.symbols: Add the new attributes here, too.
2617
2618         * gtk/gtkwidget.h: 
2619         * gtk/gtktreeview.h: 
2620         * gtk/gtktreeviewcolumn.h: 
2621         * gtk/gtktextbuffer.h: 
2622         * gtk/gtkobject.h: 
2623         * gtk/gtkfilechooserdialog.h: 
2624         * gtk/gtkdialog.h: 
2625         * gtk/gtkcontainer.h: 
2626         * gtk/gtkcelllayout.h: 
2627         * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2628         appropriate.  (#165682, Marc Meissner)
2629
2630 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
2631
2632         Convert the gdk keyval-keyname tables to a big string
2633         + offsets. (#168901)
2634         
2635         * gdk/gen-keyname-table.pl: Perl script inspired by
2636         pango/tools/gen-color-table.pl to create the 
2637         gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2638         of offsets pointing into a big const string.
2639         
2640         * gdk/keynames.txt: List of keyval-keyname pairs.
2641         * gdk/keyname-table.h: Generated tables.
2642
2643         * gdk/gdkkeynames.c: Include keyname-table.h and don't
2644         generate the inverse table at runtime.
2645
2646 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
2647
2648         * gtk/gtkstyle.c: Document which parameters may be NULL.  
2649         (#166855, Frank Naumann)
2650
2651 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
2652
2653         * AUTHORS: Add original authors of incorporated software.
2654
2655 Thu Mar  3 16:59:44 2005  Manish Singh  <yosh@gimp.org>
2656
2657         * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2658
2659 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
2660
2661         * gtk/gtksettings.c (gtk_settings_get_property): 
2662         * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak 
2663         the values here.  (#169047, Philip Langdale)
2664
2665         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
2666         Don't warn if a stock icon cannot be found.  (#168830,
2667         Sven Neumann)
2668
2669 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
2670
2671         * gtk/gtkwidget.c (gtk_widget_reparent_subwindows): 
2672         Avoid warnings if gtk_widget_reparent() is called at
2673         unusual times.  (#168966, Christian Persch)
2674
2675 Tue Mar  1 14:04:08 2005  Manish Singh  <yosh@gimp.org>
2676
2677         * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
2678         const warnings on data structure seeding.
2679
2680 Tue Mar  1 13:53:56 2005  Manish Singh  <yosh@gimp.org>
2681
2682         * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2683
2684 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
2685
2686         * gtk/gtkmenutoolbutton.c (button_state_changed_cb): 
2687         Fix prelighting.  (#157392, Vincent Noel, patch by
2688         Christian Persch)
2689
2690         * gtk/gtkicontheme.c (theme_lookup_icon): Make 
2691         icon data caching work again.  (#168851, Alexander Larsson)
2692
2693         * gdk-pixbuf/gdk-pixbuf.c:
2694         * gdk-pixbuf/gdk-pixbuf-features.h.in:
2695         Revert the previous change, since it breaks
2696         bin compat.
2697
2698 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
2699
2700         * gdk/gdkkeyuni.c
2701         * gdk/gdkpixbuf-drawable.c
2702         * gdk/gdkrgb.c
2703         * gdk/x11/gdkdnd-x11.c
2704         * gdk/x11/gdkevents-x11.c
2705         * gdk/x11/gdkproperty-x11.c
2706         * gdk/x11/gdkvisual-x11.c
2707         * gdk-pixbuf/gdk-pixbuf.c
2708         * gdk-pixbuf/gdk-pixbuf-features.h.in
2709         * gtk/gtkaction.c
2710         * gtk/gtkbindings.c
2711         * gtk/gtkcolorbutton.c
2712         * gtk/gtkcombo.c
2713         * gtk/gtkcontainer.c
2714         * gtk/gtkfilechooserdefault.c
2715         * gtk/gtkfilesel.c
2716         * gtk/gtkgamma.c
2717         * gtk/gtkiconview.c
2718         * gtk/gtkinputdialog.c
2719         * gtk/gtkitemfactory.c
2720         * gtk/gtkmenu.c
2721         * gtk/gtktextview.c
2722         * gtk/gtktooltips.c
2723         * gtk/gtktreedatalist.c
2724         * gtk/gtkuimanager.c
2725         * gtk/tree_minus.xpm
2726         * gtk/tree_plus.xpm
2727         * gtk/xdgmime/xdgmime.c
2728         * gtk/xdgmime/xdgmime.h: 
2729         Move constant data to .rodata.
2730
2731 2005-02-27  Matthias Clasen  <mclasen@redhat.com>
2732
2733         * gtk/gtkaction.c (connect_proxy): Improve the handling
2734         of buttons as action proxys.  (#165534, Milosz Derezynski)
2735
2736         * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
2737         (#168646, Vincent Untz)
2738
2739         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
2740         Unset "focus-on-click" for the save folder combo.  (#168688,
2741         Sven Neumann)
2742
2743 2005-02-25  Matthias Clasen  <mclasen@redhat.com>
2744
2745         * demos/testpixbuf.c (main): Remove a C++ comment.  (#168531, 
2746         Paul Cornett)
2747
2748         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a 
2749         path here.  (#168443, Morten Welinder)
2750
2751 2005-02-24  Robert Ögren  <gtk@roboros.com>
2752
2753         Implement better handling of Wintab tablet context overlap on
2754         Win32. (#167298)
2755
2756         * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
2757         function that brings any tablet contexts to the top of the overlap
2758         order.
2759         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
2760         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2761         Call _gdk_input_set_tablet_active when a window is activated (on
2762         WM_ACTIVATE)
2763
2764 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2765
2766         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path): 
2767         Don't leak parent_path.  (#168435, Morten Welinder)
2768
2769 Thu Feb 24 14:20:16 2005  Søren Sandmann  <sandmann@redhat.com>
2770
2771         * gtk/gtkstyle.c: Add
2772
2773         g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
2774
2775         all over the place.
2776
2777 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2778
2779         * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
2780         (gtk_combo_box_model_row_deleted): Update the displayed row in 
2781         the cell_view.  (#167842, Gustavo Carneiro)
2782
2783 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2784
2785         Fix #167259, reported by  Christian Persch:
2786         
2787         * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented 
2788         widget, even if we avoid the unrealizing. 
2789         (gtk_widget_reparent_subwindows): Make reparenting work for
2790         !NO_WINDOW widgets which have other windows which are siblings
2791         of widget->window (as e.g. GtkSpinButton).
2792
2793 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
2794
2795         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
2796         Don't emit a warning if a parent node is filtered out. (#164726,
2797         Olivier Sessink)
2798
2799 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
2800
2801         * gtk/gtklabel.c (gtk_label_style_set): Revert the last 
2802         change, since gtk_widget_set_style_internal() already
2803         queues a resize.
2804
2805 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
2806
2807         * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
2808         fonts may have changed.  (#164128, Phil Blundell)
2809
2810         * gtk/gtkaboutdialog.c (gtk_about_dialog_init) 
2811         (gtk_about_dialog_new): Move initialization code from _new to 
2812         _init.  (#168249, Murray Cumming) 
2813
2814 Wed Feb 23 17:34:01 2005  Jonathan Blandford  <jrb@redhat.com>
2815
2816         * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
2817         jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
2818         widgets.
2819
2820 2005-02-23  Tor Lillqvist  <tml@novell.com>
2821
2822         * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
2823         MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
2824
2825 Tue Feb 22 13:49:09 2005  Manish Singh  <yosh@gimp.org>
2826
2827         * gtk/updateiconcache.c: #include <config.h>
2828
2829 2005-02-22  Federico Mena Quintero  <federico@ximian.com>
2830
2831         Merged from gtk-2-6:
2832
2833         Fix #164940, patch by Ben Maurer and Tommi Komulainen.
2834
2835         * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
2836         (gdk_rgb_convert_565_d): Likewise.
2837         (DM_565): Made a static const precomputed array to avoid
2838         allocating it at runtime.
2839         (gdk_rgb_preprocess_dm_565): #ifdef out.
2840
2841 2005-02-20  Matthias Clasen  <mclasen@redhat.com>
2842
2843         * gtk/gtkwindow.c: 
2844         * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
2845         in the documentation.
2846
2847         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
2848         Set have_render_with_trapezoids to GDK_YES when we have 
2849         a new enough Render extension.  (#167965,Billy Biggs) 
2850
2851         * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
2852         the last user interaction when focusing the window.  (#166379, 
2853         Elijah Newren)
2854
2855 Thu Feb 17 14:58:16 2005  Manish Singh  <yosh@gimp.org>
2856
2857         * gtk/gtkuimanager.c (start_element_handler): make sure expand
2858         is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
2859
2860 Thu Feb 17 14:52:57 2005  Manish Singh  <yosh@gimp.org>
2861
2862         * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
2863
2864 2005-02-16  Matthias Clasen  <mclasen@redhat.com>
2865
2866         * docs/iconcache.txt: Add some information about the
2867         icon cache format (since I can't locate it at freedesktop.org)
2868
2869         Fixes for #143829, Tommi Komulainen, Christian Persch:
2870         
2871         * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
2872         typeselect_flush_timeout when destroying the widgets
2873         it is operating on.  
2874         (gtk_tree_view_ensure_interactive_directory): Add the 
2875         popup to the window group of the toplevel it belongs to.
2876
2877         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget) 
2878         (gtk_combo_box_popup): Do the same here. 
2879
2880 2005-02-14  Matthias Clasen  <mclasen@redhat.com>
2881
2882         * configure.in: Kill --enable-ansi  (#164394)
2883
2884 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2885
2886         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling 
2887         when the pathbar goes away.  (#167094, Rodney Dawes)
2888         (change_icon_theme): Use GTK_ICON_SIZE_MENU here as 
2889         well  (Vincent Noel)
2890
2891 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2892
2893         Support vertical menubars  (#166632): 
2894         
2895         * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack 
2896         directions, with values for left-to-right, right-to-left, 
2897         top-to-bottom and bottom-to-top.
2898
2899         * gtk/gtk.symbols: 
2900         * gtk/gtkmenubar.h: 
2901         * gtk/gtkmenubar.c: Add two properties, pack-direction and
2902         child-pack-direction, which specify how children and 
2903         grandchildren of a menubar are packed, with getters and setters. 
2904
2905         * gtk/gtkmenubar.c (gtk_menu_bar_set_property): 
2906         (gtk_menu_bar_get_property): Implement set_property and get_property.
2907
2908         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): 
2909         (gtk_menu_bar_size_allocate): Take pack direction into account.
2910
2911         * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement 
2912         move_current here move all the menubar-specific direction 
2913         tweaking from the generic menushell implementation here.
2914
2915         * gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific 
2916         direction tweaking from the generic menushell implementation here.
2917
2918         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): 
2919         (gtk_menu_bar_size_allocate): Take pack direction into account.
2920
2921         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) 
2922         (gtk_image_menu_item_size_allocate): 
2923         (gtk_image_menu_item_toggle_size_request): Take child pack 
2924         direction into account and pack the image vertically if
2925         necessary.
2926
2927         * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
2928         Set the submenu direction to left-right for menuitems in 
2929         vertical menubars.
2930         (gtk_real_menu_shell_move_current): Simplify by moving
2931         direction tweaking to menu- and menubar-specific 
2932         implementations. Take pack direction into account when
2933         doing fallbacks.
2934
2935         * tests/testmenubars.c: Test menubars in various packing
2936         direction combinations.
2937
2938         * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
2939
2940 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
2941
2942         Complete the fix for #165770, Vincent Noel:
2943         
2944         * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
2945         fallback size be 16, to be equal to the default for
2946         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
2947         (gtk_file_chooser_button_init):
2948         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
2949         GTK_ICON_SIZE_SMALL_TOOLBAR. 
2950
2951 2005-02-09  Matthias Clasen  <mclasen@redhat.com>
2952
2953         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
2954         keynav for going from menubar to menu.
2955
2956 2005-02-08  Christian Rose  <menthos@menthos.com>
2957
2958         * configure.in: Added "xh" to ALL_LINGUAS.
2959
2960 2005-02-08  Matthias Clasen  <mclasen@redhat.com>
2961
2962         * gtk/gtkuimanager.c (start_element_handler): Accept 
2963         the "expand" attribute and set a flag in the node if it
2964         is set to "true".
2965         (update_node): If the expand flag is set, make separator
2966         toolitems non-drawn and expanding.  (#166489, Christian Persch)
2967
2968 2005-02-05  Hans Breuer  <hans@breuer.org>
2969
2970         * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
2971         build with Cairo dependency. The patch to acually use Cairo
2972         on win32 will be on gtk-devel-list soon.
2973         * tests/makefile.msc : add testcairo building
2974
2975         * gtk/stock-icons/makefile.msc : split command line into two to
2976         work with the shells default
2977
2978 Fri Feb  4 14:16:31 2005  Manish Singh  <yosh@gimp.org>
2979
2980         * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
2981         function.
2982
2983         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2984         Add some extra parens for bitop order of operations disambiguiation.
2985
2986         * gtk/gtkstock.c: Fix const confusion, make our own copy of the 
2987         domain when setting a translate function.
2988
2989         * tests/testcombo.c: removed unused variable.
2990
2991 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
2992
2993         * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
2994         being NULL.  (#166179, Diego Gonzalez)
2995
2996 2005-02-04  Owen Taylor  <otaylor@redhat.com>
2997
2998         * configure.in: Revert gtk_binary_version to 2.4.0. Fix
2999         up comment to talk only about backwards compat, not
3000         forward/backwards compat. (#166293, reported by Vincent Noel)
3001
3002 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
3003
3004         * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
3005         when there is not enough space. This avoids a nasty size
3006         allocation loop in the file chooser.  (#154007, reported 
3007         by Milosz Derezynski, patch by Robert Ögren)
3008
3009 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
3010
3011         * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
3012         selection of RTL direction if the widget does not have 
3013         focus.  (#164125, Frederic Crozat)
3014
3015 Thu Feb  3 19:15:55 2005  Manish Singh  <yosh@gimp.org>
3016
3017         * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
3018
3019 2005-02-03  Owen Taylor  <otaylor@redhat.com>
3020
3021         * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
3022         gdk_drawable_set_cairo_target().
3023
3024         * tests/testtreeflow.c (enum): Use grand not rand as a variable
3025         name because one of the cairo headers is pulling in stdlib.h.
3026
3027         * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
3028         example.
3029
3030         * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
3031
3032         * Require libpangocairo for all backends.
3033
3034 2005-02-03  Tor Lillqvist  <tml@novell.com>
3035
3036         * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
3037         wide character version of ImmGetCompositionString() here,
3038         too. (#165278, Takuro Ashie)
3039
3040 2005-02-03  Matthias Clasen  <mclasen@redhat.com>
3041
3042         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
3043         one roundtrip per motion event.  (#166173, pointed out
3044         by Chris Lee, patch by Søren Sandmann)
3045
3046         * gtk/gtk.symbols: 
3047         * gtk/gtkstock.h: 
3048         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
3049         New function which allows to change the function used for
3050         translation stock labels, on a per-domain basis. Use this
3051         functionality to switch the GTK+ stock items to use Q_()
3052         prefixed msgids.  (#166179, Funda Wang)
3053         
3054         * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
3055         Tommi Komulainen)
3056
3057 2005-02-02  Federico Mena Quintero  <federico@ximian.com>
3058
3059         Merged from gtk-2-6:
3060
3061         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3062         Don't select the first row if the chooser is not mapped.  This
3063         happens when it's acting on behalf of GtkFileChooserButton.  Also,
3064         don't select the first row if we are in SAVE or CREATE_FOLDER
3065         modes --- I had missed that (see the ChangeLog entry from
3066         2005-01-18).  Fixes #165264.
3067
3068 2005-02-02  Tor Lillqvist  <tml@novell.com>
3069
3070         Implement lazy extended input initialization on Win32, by Robert
3071         Ögren. Fixes #163163, possibly #162334. Lazy initialization would
3072         be a good idea in any case even if it didn't fix any visible
3073         problems, though.
3074
3075         The Wacom tablet driver seems to get confused if Wintab is
3076         initialized but no window is shown before the process exits. This
3077         is the case for some GIMP plug-ins, for instance. 
3078
3079         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
3080         non-static (and renamed).
3081         (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
3082
3083         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
3084
3085         * gdk/win32/gdkinput.c (gdk_devices_list,
3086         gdk_display_list_devices, gdk_input_set_extension_events): Call
3087         _gdk_input_wintab_init_check() here instead.
3088
3089 2005-02-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>
3090
3091         * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
3092         of a single window so that gtk_clipboard_request_contents() can be
3093         called inside a GtkClipboardReceivedFunc(). (#163844)
3094
3095 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
3096
3097         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
3098         in XDG_DATA_DIRS/pixmaps.  (#165950, Thomas Zajic)
3099
3100         * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
3101         to NULL after freeing it.  (#165800, Damon Chaplin)
3102
3103 2005-02-01  Michael Natterer  <mitch@gimp.org>
3104
3105         * configure.in: depend on stable pango-1.8, not unstable 1.7
3106
3107 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
3108
3109         Merged from gtk-2-6:
3110
3111         * gtk/gtkfilechooserdefault.c
3112         (browse_files_model_finished_loading_cb): Don't
3113         g_assert_not_reached() if we are in any other state.  Another code
3114         path may have triggered a folder reload.  Fixes #165556.
3115
3116 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
3117
3118         Merged from gtk-2-6:
3119
3120         Fix #165770:
3121
3122         * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3123         fallback size be 16, to be equal to the default for
3124         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3125         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3126         GTK_ICON_SIZE_SMALL_TOOLBAR.
3127
3128 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
3129
3130         * */*.c: Fix many instances of "the the" in docs and
3131         comments.  (#165815, Masao Mutoh)
3132
3133         * gtk/updateiconcache.c (main): Add a --quiet option.
3134
3135 2005-02-01  Tor Lillqvist  <tml@novell.com>
3136
3137         * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3138         reset_after_dead, handle_dead): New functions, code blocks
3139         refactored out of update_keymap(). No functionality change.
3140
3141         (update_keymap): Use ToUnicodeEx() when available (on NT-based
3142         Windows) instead of ToAsciiEx(). Makes keyboard input work in
3143         Unicode-only input locales that don't have any ANSI codepage, for
3144         instance Hindi and Bengali. Use _gdk_input_codepage only on
3145         Win9x. (#165723)
3146
3147         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3148         WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3149         TranslateCharsetInfo() to get the input locale's corresponding
3150         codepage, if any.
3151
3152 2005-01-31  Matthias Clasen  <mclasen@redhat.com>
3153
3154         * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate 
3155         NULL-terminated va lists.  (#165683)
3156
3157 2005-01-29  Matthias Clasen  <mclasen@redhat.com>
3158
3159         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw): 
3160         Typo fix.  (#165581, Masao Mutoh)
3161
3162 Thu Jan 27 14:25:45 2005  Manish Singh  <yosh@gimp.org>
3163
3164         * README.cvs-commits: update ancient IRC info.
3165
3166 2005-01-27  Federico Mena Quintero  <federico@ximian.com>
3167
3168         Merged from gtk-2-6:
3169
3170         * gtk/gtkfilechooserdefault.c
3171         (gtk_file_chooser_default_select_path): Oops, don't assert that we
3172         can't reach the end of the function; this happens if we are still
3173         loading but don't need a path change.  Fixes #165213.
3174
3175 2005-01-27  Matthias Clasen  <mclasen@redhat.com>
3176
3177         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3178         Make wrapping work in RTL mode.  
3179
3180         * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3181         obey HIG spacing a bit more, add a hand cursor when over the
3182         link button.  (#163979, Jorn Baayen)
3183
3184 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
3185
3186         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
3187         Don't allow -1 as minimum-key-length.
3188         (gtk_entry_completion_set_model): Add missing notification.
3189         (gtk_entry_completion_set_minimum_key_length): Add missing
3190         notification, allow setting minimum-key-length to 0.  (#165194,
3191         Vincent Ladeuil)
3192
3193 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
3194
3195         * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3196         the license dialog is initially displayed without a horizontal
3197         scrollbar.  
3198         (gtk_about_dialog_class_init): Document the fact that the 
3199         license text is not wrapped.  (#165012, Christian Rose)
3200
3201 2005-01-25  Matthias Clasen  <mclasen@redhat.com>
3202
3203         * gtk/gtkbutton.c (gtk_button_set_image): Fix docs.  (#165180,
3204         Jeff Franks)
3205
3206         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix 
3207         docs.  (#165163, Jeff Franks)
3208         
3209         * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3210         for a string GValue.  (#165203, Damon Chaplin)
3211
3212 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3213
3214         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): 
3215         Initialize user_time from DESKTOP_STARTUP_ID.  (#165131,
3216         Elijah Newren)
3217
3218 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
3219
3220         * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3221
3222 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
3223
3224         Merged from gtk-2-6:
3225
3226         Fix #147785 and clean up the loading code:
3227
3228         * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3229         be EMPTY, PRELOAD, LOADING, FINISHED.
3230         (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3231         (struct _GtkFileChooserDefault): Added a pending_select_paths
3232         field.
3233         (load_remove_timer): Add the new states.
3234         (load_setup_timer): Likewise.
3235         (load_timeout_cb): Likewise.  Switch to the LOAD_LOADING state.
3236         (browse_files_model_finished_loading_cb): Switch to the
3237         LOAD_FINISHED state.
3238         (enum PendingOp): Removed.
3239         (struct _GtkFileChooserDefault): Removed the pending_op and
3240         pending_select_path fields.
3241         (pending_select_paths_free): New utility function.
3242         (pending_select_paths_add): New utility function.
3243         (gtk_file_chooser_default_finalize): Call
3244         pending_select_paths_free().
3245         (pending_op_queue): Removed.
3246         (pending_op_process): Removed.
3247         (pending_select_paths_process): New function.
3248         (browse_files_model_finished_loading_cb): Call
3249         pending_select_paths_process().
3250         (center_selected_row_foreach_cb): Handle multiple selection by
3251         only centering the first row.
3252         (get_is_file_filtered): Constify.
3253         (gtk_file_chooser_default_select_path): Queue into a list of paths
3254         to select if we are not finished loading.
3255         (show_and_select_paths): New utility function.
3256         (up_folder_handler): Use pending_select_paths_add().
3257         (gtk_file_chooser_default_should_respond): Do not call
3258         pending_op_queue(); free the pending_selected_paths instead.
3259         (gtk_file_chooser_default_initial_focus): Don't queue a pending
3260         operation, and don't select the first row unconditionally --- this
3261         will happen when the folder is done loading.
3262         (shortcuts_row_activated_cb): Free the pending_select_paths.
3263         (pending_select_paths_store_selection): New utility function.
3264         (gtk_file_chooser_default_map): Call
3265         pending_select_paths_store_selection() to save the selection
3266         before reloading the folder.
3267         (select_func): Umm?  Call gtk_tree_selection_select_iter().  Don't
3268         move the cursor here; it will be done when processing the pending paths.
3269
3270         * tests/testfilechooser.c (main): Add a button to the command
3271         window to unmap and remap the file chooser.
3272
3273 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3274
3275         * docs/tutorial/gtk-tut.sgml:
3276         * docs/tutorial/gtk_tut.sgml:
3277         * docs/reference/gtk/tmpl/gtkliststore.sgml:
3278         * gtk/gtkactiongroup.c:
3279         * gtk/gtksizegroup.c:
3280         * gtk/gtksizegroup.h:
3281         * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3282         appropriate.  (#165108, Dan Winship)
3283
3284 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3285
3286         * gtk/gtkwidget.c (gtk_widget_class_init): Document 
3287         GtkWidget::style-set.  (#164222, Alex Graveley)
3288         
3289 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
3290
3291         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
3292         Remove the accidentally added prototype for this unimplemented 
3293         function.  (#164893, Jeff Franks)
3294
3295         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3296         drags.  (#164884)
3297
3298 2005-01-23  Tor Lillqvist  <tml@novell.com>
3299
3300         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3301         dead accent key. (#164859, reported and fix verified by Daniel
3302         Atallah.)
3303
3304         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3305         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3306         and upsilon.
3307
3308         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
3309         Don't call GetVolumeInformation() for network drives. They might
3310         be disconnected, and calling GetVolumeInformation() will then
3311         cause long delays. (#164448, reported by Dave Neary.) It seems to
3312         be very hard to reliably find out whether a network drive is
3313         connected or not, so it's easier to just not try getting the
3314         volume name for them. See the bug report for discussion.
3315
3316         Make volume name display formats translatable.
3317
3318         Fix for #163702, from Ivan Wong: 
3319         
3320         * gdk/win32/gdkprivate-win32.h 
3321         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3322         
3323         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3324         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3325         GDK_SELECTION_CLEAR event.
3326
3327         * gdk/win32/gdkselection-win32.c
3328         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3329         when emptying the clipboard ourselves.
3330
3331         (gdk_selection_send_notify_for_display): Remove the artifical
3332         GDK_SELECTION_CLEAR event generation.
3333
3334 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
3335
3336         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3337         provided by Bill Haneman.
3338
3339 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3340
3341         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
3342         George Kraft IV)
3343
3344         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3345         here, even if the only focusable widgets are labels.
3346
3347 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3348
3349         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3350         
3351         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
3352         Add a follow-state property which when TRUE causes the pixbuf
3353         to be tinted according to state.
3354
3355         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
3356         Use follow-state and colorize the pixbuf when appropriate.      
3357         
3358 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3359
3360         Support wrapping in GtkCellRendererText  (#163608):
3361         
3362         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
3363         Add wrap-mode and wrap-width properties which cause a 
3364         text cell to break to a specified width when set.
3365
3366         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3367         and wrap-width when they are set.
3368
3369 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3370
3371         * gtk/gtkmodules.c (load_module): Don't reverse the order
3372         of modules when putting them in gtk_modules.  (#162676, Dennis
3373         Cranston, patch by Remus Draica)
3374
3375         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
3376         if the tree is empty.  (#164669, Priit Laes)
3377
3378 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
3379
3380         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3381         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3382         function a bit too.
3383
3384 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
3385
3386         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3387         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3388
3389 2005-01-19  Tor Lillqvist  <tml@novell.com>
3390
3391         * gdk/win32/gdkkeys-win32.c (update_keymap,
3392         gdk_keymap_translate_keyboard_state): Handle keyboards with
3393         ShiftLock (and not CapsLock) correctly. (#161814)
3394
3395 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
3396
3397         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3398         In save mode, don't return paths containing nonexisting 
3399         directories.  (#162443, Jean Marie Favreau)
3400
3401         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
3402         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3403
3404         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3405         atom.
3406
3407         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
3408         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
3409         
3410         * gdk/gdk.symbols: 
3411         * gdk/x11/gdkx.h: 
3412         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
3413         Add a function to obtain the last user interaction 
3414         time.  (#163119, Elijah Newren)
3415
3416 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
3417
3418         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3419         PENDING_OP_NONE.
3420
3421 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
3422
3423         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3424         disambiguate nested if/else.
3425
3426 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
3427
3428         Merged from gtk-2-6:
3429
3430         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3431         operation to select the first file if we are in SAVE or
3432         CREATE_FOLDER modes.  Executing that operation would overwrite the
3433         contents of the save-name entry.
3434
3435 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3436
3437         * gdk/gdkdisplay.h: 
3438         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
3439         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3440         pointer warping to GDK.  (#160437)
3441
3442         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3443
3444 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3445
3446         * gtk/gtkstyle.c (gtk_default_draw_check) 
3447         (gtk_default_draw_option, gtk_default_draw_handle): Add some
3448         more NULL checks, patch by Michael Natterer.
3449
3450 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
3451
3452         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3453         and NULL widget.
3454
3455         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3456         NULL widget.  (#164477, Michael Natterer)
3457
3458 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3459
3460         Avoid X errors when running against servers which
3461         implement XRender < 0.4.  (#164427, Albert Chin)
3462         
3463         * gdk/x11/gdkprivate-x11.h:
3464         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
3465         New function to check for trapezoid support in XRender.
3466         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
3467         Use it here.
3468         
3469         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
3470         separate have_render_with_trapezoids field.
3471
3472         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3473
3474 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
3475
3476         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3477
3478 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
3479
3480         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3481         dist.
3482
3483 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
3484
3485         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3486         and restore the selected row in the bookmark list and the
3487         save folder combo.  (#164290)
3488
3489 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
3490
3491         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3492         Fix argument order in docs.  
3493
3494 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
3495
3496         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
3497         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
3498         if the keymap is neutral.  (#164125, Phil Blundell)
3499
3500 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
3501
3502         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3503         reset the property to its default value -1. 
3504         (gtk_tree_view_get_search_column): Return the default value in
3505         the g_return_val_if_fail() check.  (#163864, Richard Hult)
3506
3507         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
3508         Add a translator hint.  (#163889)
3509
3510         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3511         is an enum value, not a define. Pointed out by Tommi Komulainen.
3512         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3513
3514 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
3515
3516         * configure.in: Check for nl_langinfo()
3517         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3518         available to determine first day of week   (#163842, Vincent Untz)
3519
3520         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
3521         the lifecycle of widgets.  (#159503, Christian Persch)
3522
3523         * demos/gtk-demo/main.c (create_text): Use monospace for the 
3524         source code view.  (#163526, Theerud Lawtrakul)
3525
3526         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3527         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
3528         Müller)
3529         
3530         * configure.in: Add an OS_LINUX conditional.
3531
3532         * gdk/Makefile.am (TESTS):
3533         * gdk-pixbuf/Makefile.am (TESTS):
3534         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
3535         Roger Leigh)
3536
3537 2005-01-13  Matthias Clasen <mclasen@redhat.com>
3538
3539         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3540         (gtk_tree_view_set_headers_clickable): Make the headers-visible
3541         property readwrite instead of just writable, and remove the
3542         g_return_if_fail check that there is a model when setting this
3543         property. Also improve the blurb.  (#163851, Richard Hult)
3544
3545 2005-01-12  Owen Taylor <otaylor@redhat.com>
3546
3547         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3548         initialization of gdktarget, that was causing it to be
3549         evaluated before host was set. Simplify --with-gdktarget help
3550         message.
3551
3552         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
3553         which doesn't work with slightly older versions of GNU grep 
3554         in install-libtool-import-lib rule.
3555         
3556 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
3557
3558         Fix for #162790, by Iwan Wong:
3559         
3560         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3561         correctly. Simplify the interface to render_line_horizontal() and
3562         render_line_vertical(). Need to draw lines "manually" also on
3563         NT-based Windowses if we have a dash offset or are drawing
3564         double-dashed lines.
3565
3566         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3567         double-dash flag, and a brush for the background colour (used by
3568         the odd dashes in the double-dash line style) in the GdkGCWin32
3569         struct.
3570
3571         * gdk/win32/gdkgc-win32.c: Set up above new fields.
3572
3573 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
3574
3575         Fix #162617.
3576
3577         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3578         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3579         (gtk_file_system_unix_get_folder): Make error reporting more
3580         accurate.  Don't bail out if we can't read the directory.
3581         (fill_in_stats): Don't return an error; just assume we don't have
3582         stat info for this folder's files.
3583         (fill_in_names): Don't create the hash table for the names if we
3584         can't open the directory.
3585         (gtk_file_folder_unix_list_children): Don't emit the
3586         "finished-loading" signal --- we don't do asynchronous loads, so
3587         we are always finished loading.
3588         (gtk_file_folder_unix_get_info): Use helper functions; handle the
3589         case where we can't stat '/'.
3590         (get_icon_type_from_path): Don't call fill_in_stats() here; only
3591         use the info we have.
3592         (fill_in_mime_type): Don't return an error.  Don't do anything if
3593         we don't have the stat info.
3594
3595 2005-01-10  Owen Taylor  <otaylor@redhat.com>
3596
3597         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3598         to EXTRA_DIST.
3599
3600 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
3601
3602         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3603         signals.  (#163319, Murray Cumming)
3604
3605 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
3606
3607         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3608         cursor also when changing the cursor of a window that is the first
3609         ancestor of the window containing the pointer that has a cursor
3610         defined. (#163035, Ivan Wong)
3611
3612 2005-01-09  Anders Carlsson <andersca@gnome.org>
3613
3614         * gtk/gtkcellrenderertext.c: (get_size):
3615         * gtk/gtklabel.c: (gtk_label_size_request):
3616         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3617         Don't pass NULL to pango_context_get_metrics. Use 
3618         pango_context_get_language instead, which is way faster.
3619         
3620 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
3621
3622         * configure.in: Bump version
3623
3624         * === Released 2.6.1 ===
3625         
3626         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3627
3628 2005-01-07  Tor Lillqvist  <tml@iki.fi>
3629
3630         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3631         Fix braino. (#163232, Arnaud Charlet)
3632
3633 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
3634
3635         * gtk/gtkiconview.c: Make markup_column work, and fix some
3636         layout issues when either icon or text is missing.  (#163065)
3637
3638 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
3639
3640         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3641         "Open _Location" item.  Fixes #148839.
3642
3643 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
3644
3645         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
3646
3647 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
3648
3649         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
3650         (gtk_file_chooser_button_new_with_backend): Use default title if
3651         NULL is passed.
3652
3653         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
3654         match API.
3655
3656 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
3657
3658         Fix #161409:
3659
3660         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
3661         a pending operation to select the first row.
3662
3663 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
3664
3665         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
3666         button_data_free() explicitly; the button is weak-reffed and the
3667         callback will free the button data.  Fixes #163010.
3668         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
3669         failure case, call gtk_widget_destroy() on it.
3670
3671         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
3672         gtk_file_system_get_folder() again (see the ChangeLog entry from
3673         2004-08-25).  We can't first get the parent folder and then
3674         request the info for the path in question, as the parent folder
3675         may not be readable.  See bug #162617.
3676         (gtk_file_chooser_default_set_current_folder): Assert that the
3677         passed-in path is not null.
3678         (shortcuts_find_current_folder): Likewise.
3679         (shortcuts_add_current_folder): Likewise.
3680         (set_list_model): Likewise.
3681         (gtk_file_chooser_default_map): Only reload the current folder if
3682         it exists.
3683         (bookmarks_check_add_sensitivity): Check for the current folder
3684         being NULL.
3685         (browse_files_select_first_row): Don't set the cursor if there is
3686         no model loaded.
3687
3688 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
3689
3690         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
3691         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
3692         (get_file_info, check_is_folder): Translate errors from
3693         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
3694         of the fix for #162911, noticed by Murray Cumming.
3695
3696 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
3697
3698         * gtk/gtkviewport.c (gtk_viewport_realize):
3699         * gtk/gtktextview.c ((text_window_realize): Set the background of
3700         the windows to None instead of adding EXPOSURE_MASK, as suggested
3701         by Owen in #162112.
3702
3703         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
3704         the user time when receiving a WM_DELETE message.  (#162980, 
3705         Elijah Newren)
3706         
3707 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
3708
3709         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
3710         only reorder on button 1, part of #141937
3711
3712 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
3713
3714         Bug 162112.
3715         
3716         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
3717         to win->window's event_mask
3718
3719         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
3720         to viewport->view_window.
3721
3722 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
3723
3724         * demos/testpixbuf.c (main): Remove the size_prepared callback,
3725         to test incremental display.
3726         (new_testrgb_window): Return the drawing area, not the window,
3727         since we want to queue draws on the drawing area.
3728
3729 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
3730
3731         * examples/*: Re-extract.
3732
3733         * docs/tutorial/gtk-tut.sgml: Small corrections.
3734         
3735         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
3736         section.  (#161414, Robert Ancell)
3737
3738         * docs/tutorial/gtk-tut.sgml: Make it build.
3739
3740         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
3741         regarding modality.  (#112903, Dave Bordoley)
3742
3743         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
3744         Add a little motivation.  (#145556, Tommi Komulainen)
3745
3746         * docs/tutorial/gtk-tut.sgml: Clarify section on 
3747         g_signal_connect_swapped.   (#120543, David Bourguignon)
3748
3749         Make gtk_icon_theme_load_icon() work independent of
3750         icon factory initialization.  (#162791, Tristan Van Berkom)
3751         
3752         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
3753         _gtk_icon_factory_ensure_default_icons, and make it non-static.
3754
3755         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
3756
3757 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
3758
3759         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
3760         Don't add a shortcut here.  (#162752, Tor Lillqvist)
3761
3762 2005-01-02  Tor Lillqvist  <tml@iki.fi>
3763
3764         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
3765         CoTaskMemFree in get_special_folder() below.
3766
3767         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
3768         Win32 using _gtk_file_system_win32_path_compare().
3769
3770         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
3771
3772         * gtk/gtkfilechooserbutton.c (model_add_special)
3773         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
3774         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
3775         on Win32. (#144003)
3776
3777         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
3778         consider all drives "mounted", including floppies. Trying to
3779         inspect the contents of a nonexistent floppy will cause errors
3780         later that are handled normally, no need to avoid them
3781         completely. Keep the drive type in the GtkFileSystemVolume.
3782         Support UNC paths. (#161797, #137874) Fix error message
3783         capitalizations as in gtkfilesystemunix.c.
3784
3785         (gtk_file_system_win32_init): Start one timeout per
3786         GtkFileSystemWin32.
3787
3788         (gtk_file_system_win32_finalize): Remove the timeout.
3789
3790         (get_special_folder): Copied from GLib.
3791
3792         (_gtk_file_system_win32_get_desktop): New function, uses
3793         get_special_folder().
3794
3795         (gtk_file_system_win32_list_volumes): Don't start a timeout at
3796         each call to this function. Don't assume A: and B: are floppies.
3797
3798         (gtk_file_system_win32_get_volume_for_path): Don't assume all
3799         volumes are drive roots, i.e. support share roots of UNC paths
3800         (\\server\share).
3801
3802         (gtk_file_system_win32_get_folder): Don't assume errno is set
3803         after g_file_test() returns FALSE. It isn't on Win32 (and even on
3804         Unix I don't think one should assume anything about errno after
3805         g_file_test()).
3806
3807         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
3808
3809         (gtk_file_system_win32_volume_get_display_name): Don't call
3810         GetVolumeInformation() on drives A: or B: if they are removable,
3811         as they might then be floppies, causing an unnecessary
3812         delay. (#157820)
3813
3814         (gtk_file_system_win32_volume_render_icon): Use network icon for
3815         unrecognized drive types.
3816
3817         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
3818         confused by UNC paths.
3819
3820         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
3821         for case-insensitive UTF-8 path comparison.
3822
3823         (extract_icon): Use SHGetFileInfo() which is faster than
3824         ExtractAssociatedIcon(). Icon extraction is still slow, though,
3825         needs work.
3826
3827         (win32_pseudo_mime_lookup): Don't use the same icon for all
3828         shortcuts or executables. Cache only other file type icons.
3829
3830         (gtk_file_system_win32_render_icon): Use network stock icon for
3831         remote drives and UNC server share roots. Compare home directory
3832         case-insensitively. Do lookup icons also for executable files,
3833         after all, it's these files that can have individual icons in the
3834         first place. Yes, it can be slow. Needs work.
3835
3836         (filename_is_drive_root): Require also the slash after the colon.
3837
3838         (filename_is_server_share): New function.
3839
3840         (_gtk_file_system_win32_path_compare): New function, does
3841         case-folded UTF-8 comparison.
3842
3843         * gtk/gtkfilesystemwin32.h: Declare
3844         _gtk_file_system_win32_path_compare().
3845
3846 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
3847
3848         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
3849         custom image by passing NULL.
3850         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
3851         a problem with changing stock labels.  (#162273, Marcin 
3852         Krzyzanowski)
3853
3854 2005-01-01  Tor Lillqvist  <tml@iki.fi>
3855
3856         * gtk/gtkmodules.c (get_module_path)
3857         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
3858         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
3859         g_getenv() now returning UTF-8 on Win32, no need to call
3860         g_locale_to_utf8().
3861
3862 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
3863
3864         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
3865         (_gtk_key_hash_lookup): Don't sort a list of values as if
3866         it was a list of entries. This fixes crashes during mnemonic
3867         activation in the presence of multiple keymaps. (#162488, 
3868         Christian Persch)
3869
3870 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
3871
3872         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
3873         state propagation when making an insensitive combo box sensitive
3874         again.  (#162524, Carlos Garnacho Parro)
3875
3876         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
3877         dialogs.
3878
3879         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
3880         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
3881         for error messages. Also mark some error messages for translation,
3882         fix capitalization of error messages.
3883
3884         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
3885         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
3886         Brian Tarricone)
3887
3888 2004-12-30  Tor Lillqvist  <tml@iki.fi>
3889
3890         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
3891         only on Unix.
3892
3893 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
3894
3895         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
3896         submenu direction from the parent menu.
3897
3898         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
3899         Return a boolean indicating whether an item in the submenu
3900         was selected.
3901         (gtk_real_menu_shell_move_current): When going in child 
3902         direction, don't get stuck at completely insensitive 
3903         submenus.  (#162055, Billy Biggs)       
3904
3905 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
3906
3907         Make the clipboard image API more robust (#162357, 
3908         Torsten Schoenfeld):
3909         
3910         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
3911         ref the pixbuf if it is NULL.
3912
3913         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
3914         NULL-terminate the varargs in the call to 
3915         gdk_pixbuf_save_to_buffer(). 
3916         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
3917         if there is data to load.
3918
3919 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
3920
3921         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
3922         Set x_root and y_root in button and motion events from 
3923         extended input devices.  (#148715, Robert Ögren)
3924
3925         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
3926         typo.  (#162339, Alessio Dessi)
3927
3928         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
3929         properties as new since 2.4.  (#156101, Billy Biggs)
3930
3931         * configure.in: Add a warning about the linux-fb 
3932         target.  (#155488, Zeeshan Ali)
3933
3934         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
3935         Torsten Schoenfeld)
3936
3937 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
3938
3939         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
3940         Typo fix.  (#162219, Masao Mutoh)
3941         (gtk_file_chooser_set_preview_widget_active): 
3942         Another typo.  (#162218, Masao Mutoh)
3943
3944 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
3945
3946         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
3947         Return TRUE if there are children.  (#162134, Iñigo Serna,
3948         patch by John Finlay)
3949
3950         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
3951         Transfer state from the button to the cell view to get
3952         prelighting right.  (#156327, Ricardo Veguilla)
3953
3954 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
3955
3956         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
3957         timeout. Written by Christian Persch.
3958
3959 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
3960
3961         Bug #161561
3962         
3963         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
3964         background for windows that get expose events. 
3965
3966         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
3967         hack to repaint !expose windows.
3968
3969 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
3970
3971         Bug #147497, make menu items activate immediately when you release
3972         the button.
3973         
3974         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
3975         items activate immediately.
3976
3977         * gtk/gtkmenu.c (definitely_within_item): New function
3978         * gtk/gtkmenu.c (check_threshold): New function
3979
3980 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
3981
3982         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
3983         null the mnemonic_menu when unsetting a mnemonic, reported
3984         by Owen Taylor.
3985
3986 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
3987
3988         * gtk/gtkliststore.c (generate_order): Generate the order the
3989         way it is supposed to be, order[new_pos] == old_pos.
3990         (gtk_list_store_reorder): Invert the order before using it.
3991
3992 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
3993
3994         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
3995
3996         * gtk/gtkliststore.c (generate_order): Generate the order the
3997         way it is supposed to be, order[new_pos] == old_pos.
3998         (gtk_list_store_reorder): Invert the order before using it.
3999
4000         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
4001         list store fix.
4002
4003 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
4004
4005         * gtk/queryimmodules.c (main): print out the version and binary
4006         name in the header comment.  Problem reported by Seth Nickell.
4007
4008 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
4009
4010         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
4011         root path to gtk_tree_model_rows_reordered().  (#161720,
4012         Marcin Krzyzanowski)
4013
4014         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
4015         translate NULL messages.  (#161789, Morten Welinder)
4016
4017         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
4018         the secondary label on show_all().  (#161707, Christian Persch)
4019
4020 2004-12-19  Tor Lillqvist  <tml@iki.fi>
4021
4022         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
4023         Use wide character API when available. Use UTF-8 for filenames.
4024
4025         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
4026         the string's trailing zero byte in the property's length, just for
4027         safety.
4028
4029 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
4030
4031         * gtk/gtkfilechooserentry.c (check_completion_callback) 
4032         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
4033
4034         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
4035         (shortcuts_drag_outside_idle_cb): Add missing 
4036         GDK_THREADS_ENTER/LEAVE.  (#161604)
4037         
4038         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
4039         (list_select_func): Don't call gtk_file_info_get_is_folder()
4040         on NULL. 
4041
4042         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
4043         (gtk_about_dialog_init): Add missing initializations.  (#161646,
4044         Torsten Schoenfeld)
4045