1 Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
3 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
4 Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
6 * gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
7 Fixes build with gcc 3.x and -ansi.
9 Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
11 * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
12 an engine declaration occurs in a reopened style, and
13 g_free() of objects when errors occur.
15 2002-01-18 Matthias Clasen <matthiasc@poet.de>
17 * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
18 Clarify documentation. (#69026)
20 * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix
21 missing initialization of adjustment. (#69025)
23 2002-01-17 Raja R Harinath <harinath@cs.umn.edu>
26 <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
27 * gdk/Makefile.am: Remove use of automake conditionals to pick
29 * gtk/Makefile.am: Likewise.
31 * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
32 * gtk/Makefile.am (LDFLAGS): Likewise.
34 Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
36 * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
37 missing allocation.x/y offsets. (#68962, Jacob
40 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
41 Queue a redraw on the entire widget if we hide
42 the last page or show the first. (Also #68962)
44 2002-01-17 Havoc Pennington <hp@redhat.com>
46 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
47 GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
48 starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
49 as in the keynav spec, though it makes the interpretation of
50 GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
51 of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
54 Thu Jan 17 16:34:55 2002 Jonathan Blandford <jrb@redhat.com>
56 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
57 some reason, I was activating a row while just selecting it.
59 (gtk_tree_view_size_request): add a
60 validate_rows_handler to give us a rough width of the widget.
62 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
63 Queue a resize here just in case. It's needed in over half the
64 cases, and I don't want to do a diff to figure out exactly when
67 2002-01-17 Matthias Clasen <matthiasc@poet.de>
69 * gtk/gtkinputdialog.c,
70 gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
71 Mark children as composite. (#66360)
73 * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
74 composite children some more. (#66360)
76 2002-01-17 Havoc Pennington <hp@redhat.com>
78 * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
79 function (which I then decided not to use but I think it's needed
82 * gtk/gtktextview.c: add page_horizontally action signal and
83 implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig,
84 hackily modified to avoid adding GTK_MOVEMENT_ API. Part of
87 * gtk/gtkmarshalers.list: add NONE:INT,BOOL
89 Thu Jan 17 17:02:38 2002 Owen Taylor <otaylor@redhat.com>
91 * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
92 gtk_selection_remove_all() here, not in destroy/
93 finalize. (#66636, Sergey Vlasov)
95 * gtk/gtkselection.c (gtk_selection_request): Fix
96 reentrancy problem with multiple conversions.
98 * gtk/gtkselection.c (gtk_selection_remove_all):
99 Don't remove incrs, we don't need the widget for
102 * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
103 the widget field from here, we don't need it.
105 Thu Jan 17 13:08:34 2002 Owen Taylor <otaylor@redhat.com>
107 * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
108 here, and save/restore the X error handler to allow
109 people using GTK+ to set the X error handler to something
110 custom without disturbing the operation of GDK.
112 * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push)
113 * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
114 dummy implementations.
116 * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c
117 gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
118 for all error trapping.
120 * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
122 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
123 problem where we would add the results anyways,
124 and then add it again if no error occurred, and problem
125 where we could leave _gdk_error_warnings() unset.
127 Wed Jan 16 20:28:38 2002 Owen Taylor <otaylor@redhat.com>
129 * gtk/gtkfilesel.c: Fix "deleting" filename by adding
130 another boolean parameter to file_selection_populate() -
131 whether to clear the entry. Also, never fill in the
132 entry when the user clicks on something in the
133 directory list. (#6791, Reported by Jos Dehaes and many,
136 2002-01-16 Havoc Pennington <hp@redhat.com>
138 * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
139 cursor_y_pos with clamped delta rather than theoretical delta
140 (#68788). Also, if we can't page up/down further then jump
141 to top/bottom of the document.
143 Wed Jan 16 19:33:41 2002 Owen Taylor <otaylor@redhat.com>
145 * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
146 the dialog on map. (#52877, inspired by request from
149 Wed Jan 16 19:23:04 2002 Owen Taylor <otaylor@redhat.com>
151 * gtk/gtkbindings.c (gtk_binding_entry_activate):
152 Support "optional" bindings. If a binding signal
153 has a boolean return value, and returns FALSE it
154 is as if it didn't exist all.
156 * gtk/gtkbindings.c (binding_compose_params): Switch
159 * gtk/gtknotebook.[ch]: Make the select_page() and
160 change_current_page() signals only take effect when
161 the focus is on the tab area so that key presses
162 in children pass up to the toplevel correctly.
164 Wed Jan 16 12:16:37 2002 Owen Taylor <otaylor@redhat.com>
166 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix
167 calculation error in the (shouldn't happen) case where
168 option_menu->height < child_requisition.height. (Patch
169 from Jacob Berkman, #66969)
171 2002-01-15 Matthias Clasen <matthiasc@poet.de>
173 * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
175 * gtk/gtkscale.h (gtk_scale_value_width): Remove useless
176 compatibility macro. (#67730)
178 Wed Jan 16 10:54:38 2002 Owen Taylor <otaylor@redhat.com>
180 * configure.in: Fix typo in --help output.
183 Wed Jan 16 10:18:42 2002 Owen Taylor <otaylor@redhat.com>
185 * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add
188 * configure.in: Make TIFF, JPEG, PNG loaders mandatory
189 unless you configure with --without-libtiff, etc.
190 (#54045, Brian Cameron)
192 2002-01-16 Padraig O'Briain <padraig.obriain@sun.com>
194 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
195 Avoid unexpected warning message when navigating menu (#68517)
197 2002-01-15 Jody Goldberg <jody@gnome.org>
199 * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
200 GtkLayout may have been scrolled _before_ it was realized.
202 Tue Jan 15 18:10:24 2002 Owen Taylor <otaylor@redhat.com>
204 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
205 the timer on destroy, or when we are notified that we are
206 shadowed by a modal dialog.
208 * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
211 * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
212 weren't sent out for the default grab group.
214 * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
215 were getting events because they were part of the previous grab.
217 Tue Jan 15 12:23:33 2002 Owen Taylor <otaylor@redhat.com>
219 * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page):
220 focus the activated tab, not the page. (#53612)
222 * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
223 the last focus descendant of the page.
225 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
226 was on the previous page, move it to the last focused widget /
227 first element on the new page, if possible, or if not, to the
228 notebook itself. (#68224, reported by Jonathan Blandford)
230 * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
231 tabs aren't visible. (#65462, Damon Chaplin, fixed based
232 on patch from Anders Carlsson)
234 2002-01-15 Vitaly Tishkov <tvv@sparc.spb.su>
237 a misprint in documentation for gtk_style_render_icon () is fixed
239 Mon Jan 14 23:21:47 2002 Tim Janik <timj@gtk.org>
241 * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
242 mapping child, so we don't loose events.
244 2002-01-15 Sven Neumann <sven@gimp.org>
246 * gtk/gtkaccellabel.h
247 * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
248 names used in headers and code.
250 2002-01-14 jacob berkman <jacob@ximian.com>
252 * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
254 Tue Jan 15 01:13:51 2002 Kristian Rietveld <kris@gtk.org>
256 * gtk/gtktreemodelsort.c: fix a load of open line ends,
257 (gtk_tree_model_sort_set_model): only free root level if it's
260 2002-01-14 Matthias Clasen <matthiasc@poet.de>
262 * gtk/gtkoldeditable.c, gtk/gtkrc.c,
263 gtk/gtkstyle.c: Documentation additions.
265 * gtk/gtkmenu.c (gtk_menu_set_accel_path),
266 gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path),
267 gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
269 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
271 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
273 Mon Jan 14 17:14:13 2002 Owen Taylor <otaylor@redhat.com>
275 * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
276 mangle sequences of consecutive \n or \r.
278 Mon Jan 14 17:42:28 2002 Jonathan Blandford <jrb@redhat.com>
280 * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
283 * gtk/gtktreeview.c (install_presize_handler): only install the
284 handler if we're realized, #68056
286 Mon Jan 14 16:35:58 2002 Owen Taylor <otaylor@redhat.com>
288 * gtk/gtkwindow.c (gtk_window_move_resize): Unset
289 initial_pos_set after the first configure request.
291 2002-01-13 Jody Goldberg <jody@gnome.org>
293 * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
294 and will use a mem_chunk to do it. Avoid an unnecessary copy, a
297 Sun Jan 13 23:23:22 2002 Owen Taylor <otaylor@redhat.com>
299 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
300 widget->requisition was being used instead of
301 gtk_widget_get_child_requisition (), causing geometry widgets
302 with usizes to misbehave.
304 2002-01-14 Sven Neumann <sven@gimp.org>
306 * gtk/gtkrc.c: g_getenv() returns a const string.
308 2002-01-14 Hasbullah Bin Pit <sebol@ikhlas.com>
310 * configure.in: Added ms at ALL_LINGUAS.
311 * po/ms.po: Added Malay Translation.
313 2002-01-14 Matthias Clasen <matthiasc@poet.de>
315 * gtk/gtkitemfactory.c: Documentation.
317 2002-01-13 Sven Neumann <sven@gimp.org>
319 * gdk/gdkwindow.c: documentation cleanups.
321 Sun Jan 13 01:15:45 2002 Kristian Rietveld <kris@gtk.org>
323 * gtk/gtktreemodelsort.c: various cleanups,
324 (get_child_iter_from_elt): removed,
325 (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
326 and especially faster,
327 (gtk_tree_model_convert_iter_to_child_iter): use
328 gtk_tree_model_sort_elt_get_path
330 Sat Jan 12 16:57:31 2002 Kristian Rietveld <kris@gtk.org>
332 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
333 revert Owen's change (using a strdupped string as object data), so
334 the interactive search works again
336 2002-01-11 Havoc Pennington <hp@pobox.com>
338 * gtk/gtklabel.c: put in more links to Pango markup format docs
339 (gtk_label_set_justify): mention gtk_misc_set_alignment
341 2002-01-12 Tor Lillqvist <tml@iki.fi>
343 Fixes contributed by Archaeopteryx Software: This is a first small
344 part of their changes. Will commit more later.
346 * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
347 call fails, don't use bogus values.
349 gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
350 memory leak: g_free() the AND and XOR bitmaps after use.
351 (_gdk_cursor_destroy): If we are destroying the current Windows
352 cursor, set the Windows cursor to none first.
354 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
355 brush that was in the DC, like the win32-procution branch does. I
356 guess this plugs a resource leak? With the HDC cache, the old
357 brush might be something we created ourselves, and not a stock
358 brush. And it doesn't do any harm to call DeleteObject on stock
361 * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
362 the window has a cursor which is the current Windows cursor,
363 before destroying it set the current Windows cursor to none.
364 (gdk_window_set_cursor): Also here, if destroying the current
365 Windows cursor, set the current Windows cursor to none first.
366 (gdk_window_get_pointer): Revamp logic.
368 2002-01-10 jacob berkman <jacob@ximian.com>
370 * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
371 through the list rather than infinitely loop
373 2002-01-08 Matthias Clasen <matthiasc@poet.de>
375 * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
376 reset_rc_styles_recurse(). (#68084)
378 2002-01-10 Vitaly Tishkov <tvv@sparc.spb.su>
382 * gtk/gtktreemodelsort.c
386 Wed Jan 9 20:56:42 2002 Jonathan Blandford <jrb@redhat.com>
388 * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
389 symbols because we need them in MyEnhancedXkbTranslateKeyCode.
391 2002-01-10 Tor Lillqvist <tml@iki.fi>
393 Apply the same fixes and improvements as to the
394 gtk-1-3-win32-production branch: Bug fixes and cleanup of
395 selection and DND functionality. Still doesn't work as well as the
396 win32-production branch, though, but getting closer.
398 After this, need to add Archaeopteryx Software's OLE2 DND support.
400 * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
401 gdk_selection_send_notify, generate_selection_notify): Don't use
402 SendMessage() to generate events for the same app, instead use
405 * gdk/win32/gdkprivate-win32.h
406 * gdk/win32/gdkglobals-win32.c
407 * gdk/win32/gdkmain-win32.c
408 * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
409 initialisation and handling of gdk_selection_notify_msg,
410 gdk_selection_request_msg and gdk_selection_clear_msg.
412 * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
413 gdk_free_text_list, gdk_string_to_compound_text,
414 gdk_free_compound_text): Implement trivially, witrh a text_list
415 always having a single element, and a compound text always
416 consisting of just a single (UTF-8!) string. Let's see how well
419 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
420 non-ASCII paste from the clipboard: Try getting the same formats
421 from the Windows clipboard that gdk_property_change() puts there:
422 CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
424 * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
425 storing text on the clipboard, handle non-ASCII text
426 correctly. The logic is as follows:
428 If we have only ASCII characters, use CF_TEXT.
430 Else, if we are on NT, use CF_UNICODETEXT.
432 Else (we are on Win9x), if all the characters are present in the
433 code page of some installed locale, use CF_TEXT and also set
434 CF_LOCALE to that locale.
436 Else (still on Win9x) store as RTF. We use a very simple RTF
437 string, just the text, no fonts or other crap, with the non-ASCII
438 characters as Unicode \uN keywords. Additionally, also store the
439 UTF-8 string as such, under the format "UTF8_STRING", so that GDK
440 can also paste from the Clipboard what it has copied there. (Thus
441 no need to implement any RTF parser.)
443 (find_common_locale): New function, implements the search for a
444 locale for case 3 above.
446 * gdk/win32/gdkglobals-win32.c: New global variables
447 compound_text, text_uri_list, utf8_string, cf_rtf and
450 * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
451 converts from a wchar_t string to UTF-8.
452 (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
453 (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
455 * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
458 * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
460 * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
461 gdk_drag_context_ref() was called unnecessarily in a couple of
462 places, meaning drag contexts were never freed. The same memory
463 leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
465 (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
468 * gdk/win32/gdkselection-win32.c: Clarify the use of the
469 sel_prop_table. Now it is used only for storing the GDK_SELECTION
472 The file names dropped with WM_DROPFILES -style DND is stored
473 temporarily (between the drop and the target picking them up) in a
476 Have a separate hash table to map selection atoms to owner
477 windows. This used to be quite mixed up.
479 (_gdk_dropfiles_store): New function, to store the dropped file
480 list for the drop target to possibly fetch, and clear it
481 afterwards, from gdk_drop_reply().
483 (gdk_selection_owner_get): Much simplified now.
485 2002-01-09 jacob berkman <jacob@ximian.com>
487 * gtk/gtklayout.c (gtk_layout_style_set): set the background of
488 our bin window also (fixes #58957)
490 Wed Jan 9 19:10:07 2002 Jonathan Blandford <jrb@redhat.com>
492 * gtk/gtktreeselection.c
493 (_gtk_tree_selection_internal_select_node): Now we test we can
494 unselect nodes before selecting new ones.
495 (gtk_tree_selection_real_select_node): be careful comparing booleans.
497 Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
499 * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
500 gtk_tree_model_rows_reordered and not an iter with user_data
501 set to NULL (which is an invalid liststore iter, so
502 iter_n_children failed, etc)
504 2002-01-09 Sven Neumann <sven@gimp.org>
506 * tests/prop-editor.c: declared internal functions static.
508 Wed Jan 9 11:13:12 2002 Owen Taylor <otaylor@redhat.com>
510 * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path):
511 Fix problem with menus without accel groups, such as the
512 menus for option menus.
514 * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
515 drawing of handle on whether both children are visible,
516 not the drawing of the other child!. (#68325, Diego Gonzalez)
518 Wed Jan 9 10:20:16 2002 Owen Taylor <otaylor@redhat.com>
520 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
521 RENDER before trying to use it... XRenderFindFormat() prints
522 warnings if called when extension isn't present.
524 Wed Jan 9 15:20:40 2002 Tim Janik <timj@gtk.org>
526 * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
527 path upon parent changes.
529 Wed Jan 9 13:20:14 2002 Tim Janik <timj@gtk.org>
531 * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
532 fix to force vadjustments at size_alocate time from Xavier Ordoquy
533 <mcarkan@users.sourceforge.net>.
535 Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
537 * gtk/gtklayout.c (gtk_layout_get_property):
538 * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
539 * gtk/gtktreeview.c (gtk_tree_view_get_property):
540 * gtk/gtkwidget.c (gtk_widget_get_property):
541 * gtk/gtkfontsel.c (gtk_font_selection_get_property):
542 * gtk/gtkrange.c (gtk_range_get_property):
543 * gtk/gtkviewport.c (gtk_viewport_get_property):
544 * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
545 possible NULL pointer.
547 2002-01-08 Mike Kestner <mkestner@speakeasy.net>
549 * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
550 * gtk/gtktreednd.h : ditto.
551 * gtk/gtktreemodel.h : ditto.
552 * gtk/gtktreesortable.h : ditto.
553 * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
555 2002-01-08 Matthias Clasen <matthiasc@poet.de>
557 * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather
558 than XIDs in the docs.
560 * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
562 Tue Jan 8 18:39:23 2002 Jonathan Blandford <jrb@redhat.com>
564 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
565 Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
567 Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
569 * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
570 Handle TOGGLE/RADIOBUTTON as well. (#68201,
573 * gtk/gtktoolbar.c (get_first_child): Fix stupid
574 bug, just introduced.
576 Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
578 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
579 translations, once and for all.
581 * gtk/gtktextbuffer.c (paste_from_buffer): Free
582 the ClipboardRequest structure. (#66198, HideToshi
585 2002-01-08 jacob berkman <jacob@ximian.com>
587 * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
588 the child rather than the layout. see bug #68263
590 Tue Jan 8 14:51:19 2002 Owen Taylor <otaylor@redhat.com>
592 * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
593 the handle if we aren't showing both children.
594 (#68135, Diego Gonzalez)
596 Tue Jan 8 14:45:43 2002 Owen Taylor <otaylor@redhat.com>
598 * gtk/gtkwidget.c (gtk_widget_add_events): Fix
599 leak of result of gtk_container_get_children().
601 Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
603 * gtk/gtktoolbar.c: Fix leaks of results of
604 gtk_container_get_children(). (#68199, Damon Chaplin)
606 Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
608 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
609 Fix problem where child->requisition was accessed
610 directly instead of calling get_child_requisition()
611 (#68199, Damon Chaplin)
613 2001-01-08 James Henstridge <james@daa.com.au>
615 * gtk/gtkstyle.c: add trailing */ on doc comment.
617 Mon Jan 7 22:19:32 2002 Owen Taylor <otaylor@redhat.com>
619 * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
620 problem where were the offset into the image was passed
621 into convert_to_format() wrong.
623 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
624 gdk_x11_drawable_update_picture_clip () before using
625 the picture; allow update_picture_clip() to take a NULL gc
628 2002-01-07 Matthias Clasen <matthiasc@poet.de>
630 * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
632 * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
634 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
636 * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
638 * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
639 gtk/gtkwidget.c (gtk_widget_get_toplevel,
640 gtk_widget_push_composite_child), gtk/gtkdialog.c
641 (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
642 from messing up the indentation of inline examples.
644 * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
647 * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
648 gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
649 gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
651 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
652 gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
655 2002-01-07 Anders Carlsson <andersca@gnu.org>
657 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
658 unused pixels and rowstride variables.
659 (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
661 Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
663 * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
664 the pointer by x/y_offset into the new window when we found
665 the drag destination.
667 * gtk/gtkaccelmap.c (internal_change_entry): fix return code
668 for simulation when the entry already contains the required
671 2002-01-06 Matthias Clasen <matthiasc@poet.de>
673 * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by
674 G_DISABLE_CAST_CHECKS.
676 * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
677 gtk_accel_group_query, gtk_accel_group_find,
678 gtk_accel_groups_from_object): Document.
680 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
682 2002-01-04 Hans Breuer <hans@breuer.org>
684 * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c :
685 need to cast image->mem away from void* to avoid
686 'error C2036: 'void *' : unknown size'. Doing pointer
687 arithmetics on void pointers is a GCCism afaik.
689 * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
692 * gdk/makefile.msc gdk/win32/makefile.msc
693 gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
695 * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
696 and take care of image->visual possibly NULL.
698 * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
699 _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
700 Again take care of image->visual possibly NULL.
702 * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
704 * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
705 instead of private field access
707 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
708 colormap setting to the gdk-X behaviour
710 2001-01-04 Matthias Clasen <matthiasc@poet.de>
712 * gtk/gtkwidget.c: Documentation additions.
714 2001-01-04 Matthias Clasen <matthiasc@poet.de>
716 * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
718 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
720 2002-01-04 Havoc Pennington <hp@pobox.com>
722 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
724 Fri Jan 4 13:05:15 2002 Owen Taylor <otaylor@redhat.com>
726 * gtk/gtkdnd.c (gtk_drag_find_widget): At least
727 don't infinite loop if the widget and window heirarchies
730 * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
731 in heirarchy in ::drag_motion, ::drag_drop callbacks
732 by referencing child widget lists. (Patch from Tim)
734 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
735 with widgets where window.x != widget->allocation.x
737 Fri Jan 4 01:36:48 2002 Owen Taylor <otaylor@redhat.com>
739 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
740 a little bit. (More for consistency than because it
741 makes much of a difference.)
743 Thu Jan 3 22:18:15 2002 Owen Taylor <otaylor@redhat.com>
745 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
746 (_gdk_x11_have_render): Private function to tell if we have RENDER
749 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
750 None if we don't have RENDER extension.
752 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
753 use Xft unless we have render extension.
755 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
756 Handle missing render extension.
758 * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
759 gdk/gdkinternals.h: Add a private copy_to_image() virtual function
760 to the GdkDrawable vtable that extends get_image() to allow
761 copying onto existing images. Make the default implementation of
762 get_image() use this so that backends don't have to implement
763 both. Add private wrapper _gdk_drawable_copy_to_image().
765 * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
766 gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
767 copy_to_image() semantics, speed up by using ShmPixmaps and
768 XCopyArea when possible, XFlush() after ungrabbing the server,
769 generally redo the logic once again.
771 * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
772 _gdk_windowing_bits_per_depth(): Function to convert from depth to
773 bits-per-pixel. (We assume only one bpp per depth - X requires
776 * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
777 scratch image code into a generic _gdk_image_get_scratch() chunk
778 of code that we can use other places we need scratch images.
780 * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
781 Add _gdk_image_new_for_depth() as the backend
782 to _gdk_image_new() to allowing creating images with
783 a depth and no visual.
785 * gdk/gdkpixbuf-drawable.c: Fix so that getting
786 parts of images not at 0,0 actually works.
788 * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
789 gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
790 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
791 _gdk_draw_pixbuf() [ will be made public later ], to allow
792 backends to accelerate drawing pixbufs.
793 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
794 to be the default implementation.
795 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
796 - Optimize the default implementation by using
797 _gdk_image_copy_to_pixmap() and scratch shared images, and
798 special casing the compositing.
800 * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
801 with alpha using the RENDER extension.
803 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
804 Optimize by _gdk_image_copy_to_pixmap() and scratch images.
806 * tests/testrgb.c: Add test for speed of alpha composition,
807 reduce the number of iterations since alpha composition
810 * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
811 Private function to get a ShmPixmap for an image, if possible.
813 2002-01-04 Anders Carlsson <andersca@gnu.org>
815 * tests/testtreesort.c: Add my cool list of integers.
817 Thu Dec 27 18:12:55 2001 Owen Taylor <otaylor@redhat.com>
819 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
820 problem where retrieved atoms weren't properly returned.
822 2002-01-03 Anders Carlsson <andersca@gnu.org>
824 * gtk/gtktextview.c (gtk_text_view_key_press_event): When
825 tab is pressed and the text view isn't editable,
826 move the focus instead.
828 * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
831 * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
833 * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
835 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
838 * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
839 _gtk_tree_view_queue_draw_node.
840 (gtk_tree_view_row_has_child_toggled): Only redraw one node.
842 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func):
843 sort_column_id can be 0.
845 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
846 Only redraw one the node being selected.
848 * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
850 Wed Jan 2 23:09:06 2002 Tim Janik <timj@gtk.org>
852 * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
853 realized but visible && !mapped resize containers (which is
854 possible with unset CHILD_VISIBLE now).
856 2002-01-02 jacob berkman <jacob@ximian.com>
858 * gtk/Makefile.am (LDFLAGS): automake still doesn't support
859 libsomething_la_LDFLAGS, so fix the build again
861 2002-01-01 Havoc Pennington <hp@pobox.com>
863 * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
864 exposes to no window children not in the buffer window.
865 (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
866 - is this the right way to do it?
867 (gtk_text_view_focus): add focus method, just chains up for now,
868 I'm not sure why the GtkContainer implementation doesn't work
870 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
871 in the text line for the child anchor segment
873 * tests/testtext.c (do_add_focus_children): add another test
874 example (to put focusable buttons into the widget)
876 2002-01-01 Havoc Pennington <hp@pobox.com>
878 * docs/README.linux-fb: note that this file is obsolete
880 * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
881 files that they should not be edited and look in the reference
882 manual instead. Probably these files should just be replaced by
883 the note, and their main contents deleted.
885 * gtk/gtktextview.c: docs
887 * gtk/gtktextmark.c: docs
889 * gtk/gtktextchild.c: docs
891 * gtk/gtktextbuffer.c: docs stuff
893 * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
894 give people more leads in sorting out PRIMARY vs. CLIPBOARD
896 2002-01-01 Tor Lillqvist <tml@iki.fi>
898 * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
899 ../gdk-pixbuf/gdk-pixbuf-csource.
901 2001-12-31 Tor Lillqvist <tml@iki.fi>
903 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
905 (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
907 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
908 -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
911 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
914 * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
916 2002-01-01 Havoc Pennington <hp@pobox.com>
918 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc
921 2002-01-01 Havoc Pennington <hp@pobox.com>
923 * gtk/gtktextview.c (changed_handler): Replace call to
924 gtk_widget_size_request() that expected to actually compute the
925 request with a direct use of widget_class->size_request, so we get
926 our size request right; fixes remaining part of #63065 reported by
929 2001-12-31 Havoc Pennington <hp@pobox.com>
931 * tests/testtext.c (do_insert_and_scroll): remove backward_char
932 since we no longer have bogus newline
933 (dialog_response_callback): remove another backward_char horkage,
934 reported by Matthias Clasen #63065
936 2001-12-31 Havoc Pennington <hp@pobox.com>
938 * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
939 fix an incorrect assertion that the "valid" flag is always correct
940 in a node and add explanatory comment. This keeps me from
941 reproducing #59101, but I'm remembering that 59101 was actually
942 about incorrect pixel totals, so I'm not sure 59101 is actually
943 fixed. May just have stopped happening due to some change in
946 2001-12-31 Havoc Pennington <hp@pobox.com>
948 * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
949 selection if shift is down, bug #50939
950 (gtk_text_view_button_press_event): add double/triple click
951 selection to the current selection if shift is down
953 2001-12-31 Havoc Pennington <hp@pobox.com>
955 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
956 to use ensure_byte_offsets not ensure_char_offsets, patch
957 from Padraig O'Briain bug #67356
959 2001-12-30 Havoc Pennington <hp@pobox.com>
961 * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
962 the right values, reported by Jeff Franks
964 2001-12-30 Matthias Clasen <matthiasc@poet.de>
966 * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
968 2001-12-28 Matthias Clasen <matthiasc@poet.de>
970 * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c:
971 Minor documentation tweaks.
973 2001-12-28 Tor Lillqvist <tml@iki.fi>
975 * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
976 (unicode_classify): Don't return -1 on encountering an
977 unclassified character, but play it safe and return U_BASIC_LATIN.
979 Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com>
981 * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
982 of misc->xpad/ypad consistent with GtkLabel. Do
983 directional flipping when interpreting misc->xalign/yalign.
984 Fix off-by-one error for negative x,y. (#67472, reported
987 Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
989 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
990 Remove optimization that was causing problems because
991 we called gtk_widget_size_request() before we called
992 gtk_widget_queue_resize() so RESIZE_NEEDED was not
993 set. Optimization shouldn't mattter now that we
994 are smart about needlessly size requesting or allocating
995 widgets. (#67598, reported by Jacob Berkman)
997 Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
999 * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
1000 Call gdk_window_get_pointer() on menu->bin_window not
1001 menu->window, so we get the correct window for the
1002 menu item. (#65213, Guillermo S. Romero)
1004 Thu Dec 27 15:13:44 2001 Owen Taylor <otaylor@redhat.com>
1006 * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
1007 the title by setting to NULL. Move docs inline.
1008 Update the title if the tearoff window already
1009 exists. Code cleanup. (Fixes #65190, reported by
1012 Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
1014 * gtk/gtksocket.c (gtk_socket_key_press_event):
1015 gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
1016 special handling of key presses unless we are doing
1017 iter-app embedding. (Fixes #67590, Anders Carlsson)
1019 Thu Dec 27 16:37:04 2001 Kristian Rietveld <kris@gtk.org>
1021 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
1022 (gtk_tree_model_sort_sort_level),
1023 (gtk_tree_model_sort_insert_value): fix a few places where
1024 I was confused between modelsort iters and other iters. This was
1025 really going to happen someday ;)
1027 Wed Dec 26 23:41:41 2001 Kristian Rietveld <kris@gtk.org>
1029 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
1030 we are unprelighted before reordering
1032 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
1033 need to break out of the for loop, not return (this fixed
1034 the 'selection freeze' bug).
1036 * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
1037 be pretty stable now, though it still needs some more code
1040 Wed Dec 26 12:32:31 2001 Owen Taylor <otaylor@redhat.com>
1042 * docs/Changes-2.0.txt: Document the fact that
1043 gtk_paned_set_handle_size() has been removed.
1045 * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro,
1046 since it pointed to gtk_paned_set_handle_size(), which
1047 was removed. (#66760, Matt Wilson)
1049 Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com>
1051 * gtk/gtkdnd.c (gtk_drag_highlight): Connect
1052 gtk_drag_hightlight_expose _after_, so it works with
1053 widgets that paint there entire background. (#66735)
1055 Wed Dec 26 12:17:06 2001 Owen Taylor <otaylor@redhat.com>
1057 * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
1058 allocation to widget->allocation. (Fixes #67290,
1061 Wed Dec 26 11:49:01 2001 Owen Taylor <otaylor@redhat.com>
1063 (#67542, reported by Anders Carlsson)
1065 * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
1066 rc_style->font_desc with defaul style instead of replacing
1069 * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
1070 font descriptions in RC styles by calling
1071 pango_font_description_merge().
1073 2001-12-24 James Henstridge <james@daa.com.au>
1075 * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
1076 valid with both SGML and XML.
1078 Sat Dec 22 12:38:03 2001 Owen Taylor <otaylor@redhat.com>
1080 * configure.in: 1.3.12, interface, binary age 0.
1082 * configure.in: Require new versions of Glib, Pango, ATK.
1086 * configure.in: Make explicit what libtool we are executing.
1089 * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
1091 * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix
1092 parameter names for docs.
1094 Sat Dec 22 22:35:29 2001 Owen Taylor <otaylor@redhat.com>
1096 * gtk/gtkwindow.c (gtk_window_realize)
1097 gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
1099 * gtk/gtkentry.c (gtk_entry_key_release)
1100 gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
1101 key release events to the input method.
1103 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
1104 Handle release of Control/Shift to end hex sequence.
1106 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
1107 Handle key releases as well as presses.
1109 2001-12-21 Matthias Clasen <matthiasc@poet.de>
1111 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
1113 * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
1114 gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
1115 documentation about underscores and mnemonics. (#66380)
1117 * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
1118 cyclic reference in docs.
1120 * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
1121 of default value. (#65402)
1123 * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
1126 2001-12-20 Anders Carlsson <andersca@gnu.org>
1128 * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
1131 Tue Dec 18 16:15:55 2001 Owen Taylor <otaylor@redhat.com>
1133 * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
1134 (reported by Jeff Franks.)
1136 Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com>
1138 * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix
1139 prototype for direction_changed. (Reported by
1142 2001-12-18 Padraig O'Briain <padraig.obriain@sun.com>
1144 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
1145 Fix typo (list->data becomes list->next)
1147 2001-12-06 Havoc Pennington <hp@redhat.com>
1149 Add Unicode control char menu, based on patch from Dov.
1152 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
1153 gtk_entry_enter_text
1154 (gtk_entry_enter_text): function to do "typing in text"
1155 (popup_targets_received): add the Unicode menu items
1157 * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
1158 on Input Methods item, and add the unicode menu items.
1160 * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
1161 used in GtkEntry and GtkTextView - may become public later.
1163 2001-12-16 Kjartan Maraas <kmaraas@gnome.org>
1165 * gtk/gtkprogressbar.c: Fix a typo.
1166 * gtk/gtkpaned.c: Fix a typo.
1168 2001-12-15 Darin Adler <darin@bentspoon.com>
1172 * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
1173 g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
1174 * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
1175 * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
1176 * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
1177 * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
1178 Restructure loop to get rid of uninitialized variable warning. Also
1179 gives a tiny efficiency gain.
1181 2001-12-15 Murray Cumming <murrayc@usa.net>
1183 * Fixed first arg type of GtkScale's "format_value" signal's
1186 2001-12-14 Vitaly Tishkov tvv@sparc.spb.su
1187 docs/reference/gtk/tmpl/gtkcelleditable.sgml
1188 gtkcelleditable -> GtkCellEditable
1189 docs/reference/gtk/tmpl/gtktreesortable.sgml
1190 gtktreesortable -> GtkTreeSortable
1192 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1194 * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
1195 demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
1196 and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
1199 Thu Dec 13 22:02:41 2001 Kristian Rietveld <kris@gtk.org>
1201 * gtk/gtktreeview.c (validate_visible_area): free path
1204 2001-12-13 Matthias Clasen <matthiasc@poet.de>
1206 * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
1208 Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
1210 * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
1211 to find the clicked node in the tree when tree == NULL
1213 2001-12-13 Anders Carlsson <andersca@gnu.org>
1215 * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
1216 event->state with the default mod mask.
1218 2001-12-12 jacob berkman <jacob@ximian.com>
1220 * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
1222 Wed Dec 12 17:22:45 2001 Owen Taylor <otaylor@redhat.com>
1224 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
1225 Reset the existing slave before removing it to give
1226 it a chance to commit and emit "preedit_changed"
1227 in case there was still a preedit string.
1229 2001-12-12 Matthias Clasen <matthiasc@poet.de>
1231 * gtk/gtktextlayout.c: Typo fixes
1232 * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
1234 * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
1235 gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
1237 * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
1239 Wed Dec 12 16:43:10 2001 Jonathan Blandford <jrb@redhat.com>
1241 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
1242 validate_rows_timer in unrealize. Reported by Matthew Wilson.
1244 Wed Dec 12 16:18:26 2001 Owen Taylor <otaylor@redhat.com>
1246 * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
1247 "prepainting" the menu before realizing other than
1248 via gtk_style_set_background() - this was broken when
1249 we added menu scroll support.
1251 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1252 window in the expose event -- fixes problem with border
1253 flashing during scrolling.
1255 Wed Dec 12 15:11:49 2001 Owen Taylor <otaylor@redhat.com>
1257 * gtk/gtksettings.c (gtk_settings_get_property): Support
1258 using names/nicks for the gdk_settings values for enum valued
1259 types. (#57678, reported by Anders Carlsson)
1261 Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com>
1263 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
1264 with insert_page_menu. Code duplication is bad.
1266 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
1267 wrong fix yesterday.
1269 Wed Dec 12 14:27:30 2001 Owen Taylor <otaylor@redhat.com>
1271 * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
1274 2001-12-12 James Henstridge <james@daa.com.au>
1276 * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
1277 (menu_item)->accel_path first when looking up the accel path.
1279 Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
1281 * tests/testgtk.c (layout_expose_handler): Only draw
1282 for events on the bin window.
1284 Tue Dec 11 18:55:16 2001 Jonathan Blandford <jrb@redhat.com>
1286 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
1287 mnemonics work with notebooks.
1289 Tue Dec 11 15:25:06 2001 Jonathan Blandford <jrb@redhat.com>
1291 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
1292 bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
1293 Makes some flicker while scrolling go away.
1295 2001-12-11 Michael Natterer <mitch@gimp.org>
1297 * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
1298 adds alpha to the pixbuf; re-load the saved pixbuf and
1299 pixel-by-pixel compare it with the original one.
1301 Tue Dec 11 15:39:08 2001 Soeren Sandmann <sandmann@daimi.au.dk>
1303 * ChangeLog: Fix wrong ChangeLog entry
1304 * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1307 2001-12-10 jacob berkman <jacob@ximian.com>
1309 * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
1310 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1311 (gdk_keyboard_grab): do not grab things if the nograb debug flag
1314 * gdk/gdkinternals.h:
1315 * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1318 Mon Dec 10 19:42:29 2001 Jonathan Blandford <jrb@redhat.com>
1320 * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1321 didn't reset the timer.
1323 2001-12-10 Matthias Clasen <matthiasc@poet.de>
1325 * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1327 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1329 * gtk/gtkviewport.c: Add docs.
1331 Mon Dec 10 16:21:38 2001 Jonathan Blandford <jrb@redhat.com>
1333 * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1334 RBTree corruption bug--
1336 2001-12-10 Anders Carlsson <andersca@gnu.org>
1338 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1339 if edited_column is NULL, also grab focus before removing
1342 Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
1344 * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1345 denominator in the horizontal case just like we do in the vertical
1346 case (why I didn't notice that there were two cases the first time
1347 around is beyond me:). Also fix indentation in the vertical case.
1349 2001-12-09 Anders Carlsson <andersca@gnu.org>
1351 * gdk/x11/gdkevents-x11.c: Update xsettings name.
1353 * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1354 gtk-dnd-drag-threshold GtkSetting.
1356 * gtk/gtksettings.c (gtk_settings_class_init): Add
1357 setting for dnd drag threshold.
1359 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1361 * gtk/gtkcontainer.c: Add docs.
1363 2001-12-08 Matthias Clasen <matthiasc@poet.de>
1365 * gtk/gtkwidget.c: Doc markup fix.
1367 * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1369 * gtk/gtktreestore.c: Typo fixes. (#66445)
1371 * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
1373 * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1374 to gtk_clipboard_set_with_owner(). (#66424)
1376 Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com>
1378 * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1379 "<unknown>" if someone doesn't pass in a valid argc. (Patch from
1380 Fabrice Bellet <fabrice@gnu.org>, #54127).
1382 Sat Dec 8 10:04:54 2001 Jonathan Blandford <jrb@redhat.com>
1384 * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1385 of places, so that people with crashy trees can just run their
1386 program with GTK_DEBUG=TREE.
1388 Sat Dec 8 20:57:24 2001 Kristian Rietveld <kristian@planet.nl>
1390 * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1393 2001-12-08 Anders Carlsson <andersca@gnu.org>
1395 * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1396 since then the default GtkLayout expose handler won't be called.
1398 Fri Dec 7 23:42:50 2001 Jonathan Blandford <jrb@redhat.com>
1400 * gtk/gtktreeview.c (validate_rows_handler): remove
1403 * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1404 Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1407 Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com>
1409 * gtk/gtktreeview.c (validate_visible_area): get logic right,
1412 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1413 removing a node ended up with a corrupt tree. Really really nasty
1415 (_gtk_rbtree_debug_spew): new debug helper function
1416 (_fixup_validation): new inline function to clean up code
1419 Fri Dec 7 19:34:51 2001 Owen Taylor <otaylor@redhat.com>
1421 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1424 2001-12-07 Matthias Clasen <matthiasc@poet.de>
1426 * gtk/gtkstyle.h: Typo fixes.
1428 * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1430 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1432 Fri Dec 7 16:05:22 2001 Owen Taylor <otaylor@redhat.com>
1434 * modules/input/gtkimcontextxim.c: Display the XIM
1435 status callbacks with a popup window. (Patch from
1436 HideToshi Tajima, #50628, somewhat modified.)
1438 Fri Dec 7 12:07:15 2001 Tim Janik <timj@gtk.org>
1440 * gtk/Makefile.am: each source generation rule needs to use its own
1441 temporary file, to avoid clashes for parallel builds. fixed rules
1442 for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1444 2001-12-07 Havoc Pennington <hp@pobox.com>
1446 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1447 "cursors that are actually useful" in gdk_cursor_new() docs
1449 Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com>
1451 * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1452 in computing the size of the second child.
1454 Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com>
1456 * gtk/gtkrange.c: Make button 1 clicks on the trough
1457 do pages, button 3 steps. (Patch from Hans Breuer
1460 2001-12-06 Matthias Clasen <matthiasc@poet.de>
1462 * gtk/gtklabel.c: Fix docs. (#66383)
1464 * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
1467 * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1468 gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1470 * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1471 Don't emit a g_warning() about being deprecated. (#66208)
1473 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1475 * gtk/gtkcontainer.c: Doc fixes.
1477 * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1479 * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1481 2001-12-05 Sven Neumann <sven@gimp.org>
1483 * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1485 * gtk/queryimmodules.c: g_dir_read_name() returns const.
1487 Tue Dec 4 21:46:13 2001 HideToshi Tajima <hidetoshi.tajima@sun.com>
1489 * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1492 2001-12-04 Manish Singh <yosh@gimp.org>
1495 * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1498 * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1501 * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1503 2001-12-04 Havoc Pennington <hp@redhat.com>
1505 * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1506 g_assert_not_reached() that was bogus, since we demand-create the
1507 tag info. reported by Chris Phelps
1509 Jump through assorted hoops to fix bug from Chris Phelps where
1510 removing tags from the table resulted in btree trying to
1513 * gtk/gtktextbuffer.c: set up mechanics of adding/removing
1514 ourselves to the tag table
1516 * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
1517 (_gtk_text_tag_table_remove_buffer): private cruft to
1518 let us notify buffer of disappearing tags
1520 * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1521 header, put it in tagprivate
1523 * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1524 tag_removed; it's emitted too late.
1525 (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1528 Padding for ABI-compat expansion
1530 * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1531 (struct _GtkTextAppearance): one pad in here too
1533 * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1535 * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1536 since action signals etc. seem pretty likely
1538 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1540 * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1542 * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1544 2001-12-04 Matthias Clasen <matthiasc@poet.de>
1546 * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1548 * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1550 * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1552 Tue Dec 4 18:51:44 2001 Jonathan Blandford <jrb@redhat.com>
1554 * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1557 Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com>
1559 * demos/gtk-demo/main.c: (create_tree): Minor fix.
1561 * docs/tree-column-sizing.txt: Update
1563 * gtk/gtkrbtree.[ch]: Massive work to support validation.
1565 * gtk/gtktreemodel.c: Doc fixes.
1567 * gtk/gtktreeview.c: Incremental reflow added.
1568 * gtk/gtktreeviewcolumn.c: ditto
1569 * gtk/gtktreeviewcolumn.h: ditto
1571 2001-12-04 Havoc Pennington <hp@redhat.com>
1573 * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1574 "invisible" property, #65999
1576 2001-12-04 Matt Wilson <msw@redhat.com>
1578 * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1580 Tue Dec 4 12:16:31 2001 Owen Taylor <otaylor@redhat.com>
1582 * gtk/gtksettings.c (gtk_settings_set_property_value):
1583 Simplify, make more efficient and fix memory leak
1584 when turning quark into a string. (#66103, HideToshi
1587 * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1588 init() and unref priv->tooltips in destroy rather
1589 than calling gtk_object_destroy() which has no
1590 effect on memory management. (#66104, HideToshi
1593 * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1594 so we free the when the object is freed. (Fixes memory
1595 leak, #66096, HideToshi Tajima)
1597 * gdk/gdkevents.c (gdk_synthesize_window_state): Use
1598 a full GdkEvent structure to avoid reads of uninitialized/
1599 invalid memory in gdk_event_put() (#65877, patch
1600 from Hidetoshi Tajima)
1602 Tue Dec 4 11:06:54 2001 Owen Taylor <otaylor@redhat.com>
1604 * gtk/gtkmenuitem.c: Revert my last mistaken change -
1605 toggle-size-request doesn't take a requisition.
1607 * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1608 reference to marshaler that no longer exists.
1610 Mon Dec 3 16:39:17 2001 Owen Taylor <otaylor@redhat.com>
1612 Patch from Bill Haneman (with many modifications) to make
1613 the focus color work on dark themes and to make the
1614 focus line width configurable. (#61079, #63074)
1616 * gtk/gtkwidget.c: Add style properties,
1617 ::focus-widget, ::focus-line-width, and ::focus-padding.
1619 * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
1620 state argument as well so we can use fg[STATE] to
1621 draw instead of always drawing with black.
1622 Cange paint_focus() to respect GtkWidget::focus-width
1623 and GtkWidget::focus-line-pattern. Fix continuity
1624 problem where the default 1-1 stipple had a blob
1625 in one corner and a gap in the other. Change the
1626 interpretation of x/y/width/height to be the bounding
1627 box of the focus rect instead of the rectangle
1628 passed to gdk_draw_rectangle.
1630 * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
1631 gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
1632 gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
1633 and ::focus-line-padding.
1635 * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1636 and remove duplicated code; fix drawing of focus rectangle
1637 when interior-focus = FALSE. (#63072, #63073)
1639 * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1640 gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1641 Range and TreeViewColumn will need more extensive fixing.
1643 * gtk/gtkcolorsel.c: Honor focus line attributes when
1644 drawing the focus on the color swatches. (#63071)
1646 * gtk/gtkhsv.c: Honor focus line attributes when
1647 drawing the focus for the ring and triangle.
1649 * docs/widget_geometry.txt: Start at documenting how
1650 various widgets are drawn.
1652 * gtk/gtkbutton.c (_gtk_button_paint): Export
1653 _gtk_button_paint() librarywide, so we don't have
1654 duplicate a bunch of code in gtktogglebutton.c.
1656 * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1658 Mon Dec 3 21:04:13 2001 Jonathan Blandford <jrb@redhat.com>
1660 * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1663 2001-12-03 Alex Larsson <alexl@redhat.com>
1665 * gtk/gtkaccellabel.c:
1667 * gtk/gtkcolorsel.c:
1668 * gtk/gtkcontainer.c:
1670 * gtk/gtktextview.c:
1671 * gtk/gtktogglebutton.c:
1672 * gtk/gtktreeview.c:
1674 Return FALSE from expose handlers.
1676 Mon Dec 3 21:15:59 2001 Kristian Rietveld <kris@gtk.org>
1678 * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1679 we use pointers, we should free the previous pointer first (if
1680 it exists), before we set a new pointer. (#64726)
1682 * gtk/gtktreeprivate.h: get rid of cursor_drag
1684 * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
1686 (gtk_tree_view_bin_expose): don't directly return in the while
1688 (gtk_tree_view_class_init): indentend expanders by default
1689 (gtk_tree_view_header_focus): only give the button focus
1690 if it's clickable, visible and the column is reorderable
1693 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1694 create and free cursor
1696 Mon Dec 3 10:23:07 2001 Owen Taylor <otaylor@redhat.com>
1698 * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1699 some bugs with size requisition. (From Bill Haneman)
1701 * gtk/gtkcalendar.c: Draw headers and selection in
1702 base/text[SELECTED] instead of fg/bg[SELECTED].
1704 * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1705 code and formatting.
1707 2001-12-03 Havoc Pennington <hp@pobox.com>
1709 * gtk/gtktextview.c (set_window_height):
1710 (set_window_width): Hmm, setter functions normally assign the new
1711 value to the object field. Reported by Chris Phelps.
1713 2001-11-30 jacob berkman <jacob@ximian.com>
1715 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1716 signal id to 0 after we disconnect from it
1718 2001-11-30 Matthias Clasen <matthiasc@poet.de>
1720 * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1721 gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1722 gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1723 gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
1725 * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
1726 GTK_DISABLE_DEPRECATED.
1728 * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1729 gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1731 Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
1733 * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1734 move/resize code, removing various bad, non-functional
1735 hacks. (Fixes #65048, reported by Damon Chaplin.)
1737 Fri Nov 30 16:12:21 2001 Owen Taylor <otaylor@redhat.com>
1739 * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
1740 bad match error when target drawable is not the
1741 same depth as the root window. (#65841)
1745 2001-11-29 Matthias Clasen <matthiasc@poet.de>
1747 * gdk/gdkwindow.c: Typo fix.
1749 Thu Nov 29 21:35:56 2001 Kristian Rietveld <kristian@planet.nl>
1751 * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1752 empty menu items to behave like insensitive items (#59456)
1754 * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1755 next item if the first item in the menu is a tear off item
1756 (#59456-2, suggestion by Matthias Clasen)
1758 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1759 (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1760 (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1761 (gtk_real_menu_shell_activate_current): add check, so empty
1762 menu items behave like insensitive items (#59456)
1764 * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1765 the checks more readable ...
1767 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1768 (gtk_menu_shell_button_release): causes the menu to dropdown if the
1769 caption is clicked again (#64977)
1771 2001-11-29 Havoc Pennington <hp@redhat.com>
1773 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1774 assertion here that we were at the end iterator was not correct;
1775 change code to move us to the end iterator. bug #65731
1777 Wed Nov 28 20:05:44 2001 Owen Taylor <otaylor@redhat.com>
1779 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
1780 improper use of g_locale_to_utf8() to convert from
1781 latin-1, and do it the easy way by building the string
1782 correctly in the first place.
1784 Wed Nov 28 19:34:15 2001 Owen Taylor <otaylor@redhat.com>
1786 * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
1787 Convert atoms to and from atoms for properties of type XA_ATOM.
1788 (#65555, patch from Hidetoshi Tajima)
1790 Wed Nov 28 18:37:04 2001 Owen Taylor <otaylor@redhat.com>
1792 * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
1793 to avoid problems with Objective C.
1795 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1797 * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1799 * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1802 * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1804 Wed Nov 28 18:19:12 2001 Owen Taylor <otaylor@redhat.com>
1806 * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1807 accounting of menu->tearoff_scrollbar width to here
1808 and make sure we have the correct requisition.
1810 * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1811 by using gtk_window_move().
1813 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1814 the requisition to be updated by calling
1815 gtk_widget_size_request() (#65440)
1817 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
1818 queue resize before calling gtk_menu_set_tearoff_state().
1820 Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl>
1822 * demos/gtk-demo/editable_cells.c: fix typo
1824 * demos/gtk-demo/list_store.c (add_columns): remove call to
1825 gtk_tree_view_column_set_clickable which didn't make sense
1827 2001-11-28 Havoc Pennington <hp@redhat.com>
1829 * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1830 explaining the validation error in front of the G_BREAKPOINT
1832 * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1833 process updates with include_children = FALSE instead of TRUE, so
1834 we redraw the range only, not the whole darn window. Making
1835 GtkRange a NO_WINDOW widget had weirdly caused the text widget
1836 Trace/breakpoint trap bug to become much easier to trigger.
1838 Wed Nov 28 14:12:03 2001 Owen Taylor <otaylor@redhat.com>
1840 * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1843 2001-11-28 Matthias Clasen <matthiasc@poet.de>
1845 * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1847 * gdk/gdkcursor.h: Directly include the contents
1848 of gdkcursors.h in the GdkCursorType enum.
1850 * gdk/gdkcursors.h: Deleted.
1852 * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add
1855 * gdk/Makefile.am: Remove the X-derived-headers rule.
1857 Tue Nov 27 20:17:55 2001 Owen Taylor <otaylor@redhat.com>
1859 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1860 Notify on the ::active property _here_, not in
1861 gtk_check_menu_item_set_active.
1863 Mon Nov 26 19:11:18 2001 Jonathan Blandford <jrb@redhat.com>
1865 * gtk/gtkcellrendererpixbuf.c
1866 (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1867 (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1869 Sun Nov 25 21:19:02 2001 Owen Taylor <otaylor@redhat.com>
1871 * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1872 comment about what is going on in this file.
1874 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
1877 Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
1879 * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
1880 Calculate size based on the _child_ of the menu item,
1881 not the menuitem. (#65005, Damon Chaplin)
1883 * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1884 some extra vertical padding to the label widget ... restores
1885 GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1887 2001-11-26 Tor Lillqvist <tml@iki.fi>
1889 * demos/pixbuf-demo.c
1890 * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1892 * demos/gtk-demo/main.c (read_line): No flockfile() or
1893 getc_unlocked() on Win32.
1895 2001-11-25 Tor Lillqvist <tml@iki.fi>
1898 * acconfig.h: As we now use GDir, no need to check for dirent.h.
1900 Sun Nov 25 23:18:39 2001 Kristian Rietveld <kristian@planet.nl>
1902 * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1903 when finished (#65266)
1905 Sun Nov 25 23:16:29 2001 Kristian Rietveld <kristian@planet.nl>
1907 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1908 data after we set the property. (#65264)
1910 Sun Nov 25 23:14:06 2001 Kristian Rietveld <kristian@planet.nl>
1912 * gtk/gtkbutton.c: add destroy method so label_text gets freed
1913 if it has been allocated (#65268)
1915 Sat Nov 24 13:39:51 2001 Manish Singh <yosh@gimp.org>
1917 * gdk/linux-fb/gdkdrawable-fb2.c
1918 * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1920 * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1922 * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1925 * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1927 Sat Nov 24 22:05:27 2001 Kristian Rietveld <kristian@planet.nl>
1929 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1930 deactivate menu when menu_item isn't sensitive (#61389)
1932 Sat Nov 24 15:35:26 2001 Kristian Rietveld <kristian@planet.nl>
1934 * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1935 we return (in case of a failure here)
1937 Fri Nov 23 19:22:50 2001 Owen Taylor <otaylor@redhat.com>
1939 * gtk/gtknotebook.c: Handle events in windows other
1940 than widget->event_window properly. (#65079, reported
1943 * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1945 Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com>
1947 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1948 the image at the top. (#65020, request from Seth Nickell)
1950 Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
1952 * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1953 arithmetic that was resulting in rows being drawn too low.
1954 (#65001, reported by Damon Chaplin)
1956 Fri Nov 23 18:36:42 2001 Owen Taylor <otaylor@redhat.com>
1958 * gtk/gtkrange.c (gtk_range_button_press): Offset
1959 invalidated range correctly.
1961 * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
1962 of title window. (#65001, reported by Damon Chaplin)
1964 * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1965 horrible hack with use of ::event_after.
1967 Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com>
1971 * configure.in (ATK_REQUIRED_VERSION): Require
1972 GLib-1.3.11, Pango-0.22, ATK-0.7.
1974 * tests/prop-editor.c (property_widget): Restore
1975 to working as well as it did before.
1977 * gtk/gtklistitem.h: Mark deprecated since it is
1978 an integral part of GtkList.
1980 * demos/gtk-demo/demo-common.h: New header file,
1981 for a common functions not important to the meat
1984 * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1985 function to search for a file used by the demo.
1987 * demos/*.c: Use demo_find_file.
1989 2001-11-23 Matthias Clasen <matthiasc@poet.de>
1991 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1992 gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
1993 fixes already mentioned in ChangeLog entry on 2001-11-14.
1995 * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1997 2001-11-23 Hans Breuer <hans@breuer.org>
1999 * gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
2000 reflect Pango API change
2002 * gtk/gtk.def : updated externals
2004 * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
2005 g_return_val_if_fail() to avoid 'function must return a value'
2007 * gtk/gtkrc.c : added spaces to fix small coding style issues
2008 * gtk/gtkwidget.c : ... and linebreaks. Also a static for
2009 'static correctness'
2011 * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
2012 because they only can be build on win32 after applying my patch
2014 Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org>
2016 * gtk/gtkbutton.c (gtk_button_map): raise event window afte
2017 children, in order for the input pnly window to stay *above*
2020 Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org>
2022 * tests/testtreeview.c: make hackery worse ;) by checking fundamental
2023 type walks againts G_TYPE_FUNDAMENTAL_MAX.
2025 * tests/prop-editor.c: disable type hackery.
2027 Wed Nov 21 17:41:39 2001 Owen Taylor <otaylor@redhat.com>
2029 * gdk/gdkimage.c (gdk_image_get): Fix problem with
2032 Wed Nov 21 17:01:25 2001 Owen Taylor <otaylor@redhat.com>
2034 * gtk/gtkcellrenderer.h gtk/gtktreemodel.h
2035 gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
2036 trailing commas in enum declarations.
2038 Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com>
2040 * configure.in (GTK_MICRO_VERSION): Version 1.3.11,
2041 interface, binary age 0.
2045 * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
2048 * gtk/gtkmain.h: Remove unused and misnamespaced
2049 get_gtk_win32_directory() prototype.
2051 * gdk/gdkimage.c (gdk_image_get): Fix parameter names
2054 * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
2055 gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
2058 * gdk/gdkevents.c (gdk_event_get_coords)
2059 gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
2060 gtk/gtkdnd.c (gtk_drag_set_icon_stock):
2061 Fix parameter names in docs.
2063 * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
2064 (#64961, Akira Tagoh)
2066 Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com>
2068 * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
2070 * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
2072 * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
2074 * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
2075 back to gtk_accel_groups_from_object(), change @acceleratable
2076 parameter to gtk_accel_groups_activate() accordingly.
2078 * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
2079 left-over comment about quark return.
2081 * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
2083 * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
2084 (Patch from Matt Wilson)
2086 * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
2087 object is finalized.
2089 Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org>
2091 * applied patch from owen to get rid of accel map notifiers.
2092 changed things to fix reentrancy and API as discussed on gtk-devel.
2094 * gtk/gtkaccelgroup.[hc]:
2095 (gtk_accel_group_finalize): unregister this accel group from all
2097 (accel_closure_invalidate): handle invalidation of closures by
2098 disconnecting their accelerators.
2099 (quick_accel_add): move closure connection and changed notification
2100 into this function to reduce code duplication. don't emit change
2101 notification on closurers without accelerators.
2102 (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
2103 for a GtkAccelGroupEntry.
2104 (gtk_accel_group_connect): get rid of the accel_path_quark argument.
2105 (gtk_accel_group_connect_by_path): new function to add accelerators
2107 (gtk_accel_group_disconnect_closure): new function, disconnect a
2108 closure from of an accel group.
2109 (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
2110 accel_mods pair and remove them.
2111 (_gtk_accel_group_reconnect): new function that basically does
2112 gtk_accel_group_disconnect_closure() and
2113 gtk_accel_group_connect_by_path() once an accel path changed.
2114 (gtk_accel_groups_disconnect_closure): remove this, there's
2115 gtk_accel_group_disconnect_closure().
2117 * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
2119 (_gtk_accel_path_is_valid): make this non-static for
2120 gtkwidget.c and gtkaccelgroup.c assertions.
2121 (gtk_accel_map_add_notifer): removed this function.
2122 (gtk_accel_map_remove_notifer): same.
2123 (_gtk_accel_map_add_group):
2124 (_gtk_accel_map_remove_group): (un-)register accel groups, with
2125 accel paths for correct propagation.
2126 (gtk_accel_map_add_entry): return void.
2127 (gtk_accel_map_lookup): return gboolean instead of GQuark.
2129 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
2130 set accel_path on widgets.
2132 * gtk/gtkwidget.[hc]:
2133 (accel_path_changed): got rid of this, changes are handled by
2134 accel maps internally now.
2135 (_gtk_widget_set_accel_path): get things to work without notifiers.
2136 (gtk_widget_list_accel_closures): list accel closures of a widget.
2138 * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
2140 2001-11-20 Matthias Clasen <matthiasc@poet.de>
2142 * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
2144 Tue Nov 20 23:01:01 2001 Kristian Rietveld <kristian@planet.nl>
2146 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
2147 replace gboolean free_last in the function parameters with
2148 gint depth. Changes to reflect new situation.
2150 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2151 replace gboolean free_last, with gint depth, add gint current_depth.
2152 Changes to reflect new situation.
2154 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
2155 to reflect new situation
2157 * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
2159 Tue Nov 20 12:37:10 2001 Owen Taylor <otaylor@redhat.com>
2161 * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
2162 where notebook gap was double shifted by allocation.x/y
2164 * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
2167 Tue Nov 20 14:49:59 2001 Tim Janik <timj@gtk.org>
2169 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
2170 allocation to be relative to paned->allocation, now
2171 that this is a NO_WINDOW widget.
2172 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
2174 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
2175 needs to be a boxed property.
2177 Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
2179 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
2180 Use the widget's state when drawing the indicator, as
2181 in GtkCheckButton. This gives us color changes for
2182 un-prelighted checkbuttons. (#63308, Matt Wilson)
2184 Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
2186 (Fixes related to #64428, Michael Meeks)
2188 * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
2189 widget, so it gets mapped again properly when we
2192 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2193 plug->socket_window.
2195 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
2196 socket_window to NULL, not FALSE.
2198 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2199 socket->same_app to TRUE. (#64612)
2201 Mon Nov 19 15:50:41 2001 Owen Taylor <otaylor@redhat.com>
2203 * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add
2204 gtk_fixed_set/get_has_window() to remove criticism
2205 about GTK_WIDGET_SET_FLAGS() hacks.
2207 2001-11-19 Michael Natterer <mitch@gimp.org>
2209 * gtk/gtknotebook.c: show notebook->event_window with
2210 gdk_window_show_unraised(), so it doesn't catch the events which
2211 should go to the tab widgets first.
2213 Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com>
2215 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
2216 "resizable" property, to get rid of the
2217 GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
2218 (gtk_tree_view_column_set_resizable): New function to set resizable.
2219 (gtk_tree_view_column_set_resizable): getter.
2221 * tests/testtreecolumns.c (add_clicked): modify for above change.
2223 * Makefile.am (install-data-hook): remove old .pc files before
2224 installing the new one. We used to symlink this, and it will
2227 2001-11-19 Havoc Pennington <hp@pobox.com>
2229 * tests/testtext.c (fill_example_buffer): put in a test for
2230 negative indentation values
2232 Mon Nov 19 14:08:18 2001 Owen Taylor <otaylor@redhat.com>
2234 * gtk/gtklabel.c (gtk_label_init): Change default for
2235 justify to GTK_JUSTIFY_LEFT. Assuming that multiline
2236 labels are most often wrapped labels, this gives better
2237 compatibility with GTK+-1.2, where justification was
2238 ignored for wrapped labesl and is a more sensible
2239 default in any case. (#64489)
2241 * gtk/gtklabel.c (gtk_label_class_init): Fix default
2242 for wrap property to FALSE.
2244 2001-11-19 jacob berkman <jacob@ximian.com>
2246 * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
2248 Mon Nov 19 13:56:45 2001 Owen Taylor <otaylor@redhat.com>
2250 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
2251 RevertToParent, not RevertToNone. (#64613,
2254 Mon Nov 19 12:28:02 2001 Owen Taylor <otaylor@redhat.com>
2256 * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
2257 and label_yalign need to be float properties to
2258 correspond to GTK+-1.2, to gtk_frame_set_label_align,
2259 and to the types of the xalign and yalign properties of GtkMisc.
2260 (#63484, Vitaly Tishkov)
2262 Mon Nov 19 12:24:30 2001 Owen Taylor <otaylor@redhat.com>
2264 * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
2265 of plug_added vfunc. (#64408, Jeff Franks)
2267 Mon Nov 19 12:07:20 2001 Owen Taylor <otaylor@redhat.com>
2269 * configure.in (deps): Undef HAVE_STDLIB_H before
2270 checking for jpeg, because jconfig.h has this
2271 in it too (%#$@!). Fix from Matthias Clasen, #64500.
2273 Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
2275 * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
2276 memory leak when retrieving atom names. (Michael Meeks,
2279 2001-11-18 Alex Larsson <alexl@redhat.com>
2281 * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
2282 Update to new Pango API.
2284 Sun Nov 18 19:47:29 2001 Owen Taylor <otaylor@redhat.com>
2286 * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
2287 GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
2288 GTK_OBJECT_DESTROYED() check macro.
2290 * gtk/gtkbindings.c (gtk_bindings_activate): Remove
2291 instances of GTK_OBJECT_DESTROYED() that weren't
2294 * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
2295 for a connection to ::destroy.
2297 Sun Nov 18 18:18:11 2001 Owen Taylor <otaylor@redhat.com>
2299 * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
2300 have been since the beginning, but as special hack,
2301 allow clearing the NO_WINDOW flag to get a window widget.
2303 Sun Nov 18 22:01:36 Kristian Rietveld <kristian@planet.nl>
2305 * gtk/gtktreestore.c: return TRUE when value changed, so
2306 row_changed is being emitted
2308 2001-11-18 Hans Breuer <hans@breuer.org>
2310 * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2311 no label without op, even if it's a no-op.
2314 * gtk/makefile.msc.in : reflect marshaler split, some clean-up
2316 * config.h.win32.in : remove definition of HAVE_DIRENT_H
2317 * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2318 required anymore, replace it.
2319 * gtk/queryimmodules.c : DIR -> GDir replacement, also
2320 getcwd() -> g_get_current_dir()
2322 * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2323 Even 'noisy laugh' scolling appears to work, though I still can't
2324 claim to have fully understood what it is supposed to do ...
2326 Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com>
2328 * gtk/gtkenums.h: Include glib-object.h instead of
2331 * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2332 x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2333 argument to the window_at_pointer() field of
2334 GdkPointerHooks. (Patch from Erwann Chenede)
2336 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2339 2001-11-17 Matt Wilson <msw@redhat.com>
2341 * gtk/gtkenums.h: must include glib-object.h only
2343 Sat Nov 17 19:26:20 2001 Owen Taylor <otaylor@redhat.com>
2345 * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2346 key bindings in order of visibility - mnemonics, then
2347 accelerators, then send key to the focus widget, then
2348 bindings on the GtkWindow.
2350 * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
2351 Removed the xoffset, yoffset fields of GtkLayout which were
2352 identically zero for compat with 1.2, but were no longer
2353 compatible with all uses of these fields in 1.2.
2355 * gtk/gtkwindow.c (gtk_window_set_default): Remove
2358 Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
2360 * tests/testtreeview.c (gtk_tree_model_types_get_type):
2361 We no longer need to create the signals here ... they
2362 come from the interface.
2364 * gtk/maketypes.awk: Use GType, not GtkType in output.
2366 * gtk/gtktypeutils.h: Mark virtually all of this
2369 * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2370 the only use of this function is the GtkArg using
2371 GtkCallbackMarshal, since destroy notification is
2374 Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com>
2376 * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2377 gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2378 only for compatibility with GTK+-1.2; and deprecate it;
2379 put all marshalers we actually use into gtkmarshalers.list
2380 and use the _gtk_marshal_ prefix for these marshalers.
2382 2001-11-17 Murray Cumming <murrayc@usa.net>
2384 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2385 The first parameters of the signals are now registered as
2386 GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2388 2001-11-17 Tor Lillqvist <tml@iki.fi>
2390 * gtk-zip.sh.in: Build separate runtime and developer
2393 * gtk/gtk.def: Reflect recent accelerator-related changes.
2395 Fri Nov 16 19:44:35 2001 Owen Taylor <otaylor@redhat.com>
2397 * gtk/gtkwindow.c (gtk_window_set_default): Move
2398 notification of "has_default" to here, so it
2399 is safe to call gtk_window_set_default() instead
2400 of gtk_widget_grab_default().
2402 * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2403 gtk_widget_grab_focus(), which then calls
2404 _gtk_widget_internal_set_focus(). This makes
2405 gtk_window_set_focus() a safe way of both setting
2406 and unsetting the focus widget.
2408 * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2409 gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2410 to find the toplevel.
2412 * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2413 from the "internal functions" section.
2415 2001-11-16 jacob berkman <jacob@ximian.com>
2417 * tests/testgtk.c (create_radio_buttons): add some no-indicator
2420 * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2421 initially active, also initially be depressed
2422 (gtk_radio_button_clicked): also update our depressed state
2424 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
2426 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2427 key press events not just to focus/window but also to
2428 intermediate widgets.
2430 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2431 to switch pages. (Needs some work on handling focus
2432 when switching pages.)
2434 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
2436 * gtk/gtknotebook.c: Fix child allocations to be relative to
2437 widget position and some drawing bugs.
2439 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2440 with reading uninitialized variable.
2442 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
2444 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2445 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2448 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2451 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2452 we are drawing in a window when drawing the paned handle.
2454 2001-11-16 Sven Neumann <sven@gimp.org>
2456 * demos/gtk-demo/appwindow.c
2457 * demos/gtk-demo/menus.c: reduce compiler warnings
2459 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
2461 * demos/gtk-demo/main.c (button_press_event_cb): Remove
2462 unused callback to make things compile with
2463 gtk_tree_view_path_at_pos_change().
2465 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
2467 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2469 2001-11-15 Matthias Clasen <matthiasc@poet.de>
2471 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2473 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
2475 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2476 to get a GdkWindow to compare event->window to.
2478 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2479 the signal for lateral motion too, #64361
2481 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2482 arg as it is useless, #64137
2484 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
2486 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2488 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
2490 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2491 gdk_window_invalidate_maybe_recurse() for recursion.
2494 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2496 * gtk/gtkcontainer.c (gtk_container_expose): Call
2497 gtk_container_forall() not _foreach() to propagate,
2498 since we need to propagate exposes to internal children
2501 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
2502 Remove the restriction of only being able to call these
2503 on window widgets, since we have lots of NO_WINDOW widgets
2504 with windows now; for add events, recurse over the children
2505 of widget->window to find one owned by the widget.
2507 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2508 window to catch events.
2510 * gtk/gtktogglebutton.[ch]: Remove the code for switching
2511 between NO_WINDOW and WINDOW widgets based on the mode.
2513 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2514 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2516 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2518 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2521 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2523 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2525 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
2527 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2528 "message_type" and "buttons" CONSTRUCT properties. (#64069)
2530 * tests/testsocket.c: Expand tests to add a "local passive
2531 child" (Test case for #64428)
2533 2001-11-14 jacob berkman <jacob@ximian.com>
2535 * gtk/gtkgamma.c (button_clicked_callback): create the label with
2538 2001-11-15 Sven Neumann <sven@gimp.org>
2540 * tests/testgtk.c: make it compile without warnings.
2542 2001-11-14 Alex Larsson <alexl@redhat.com>
2545 Don't recalculate the layout on each gkt_label_ensure_layout () for
2548 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
2550 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2551 the currently selected column when we get the column, #64380
2553 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2554 to cancel CellRendererText editting, #63613
2556 * gtk/gtkcellrenderertext.c: ditto
2558 * gtk/gtkcellrenderertext.h: formatting changes
2560 2001-11-14 Matthias Clasen <matthiasc@poet.de>
2562 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2564 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2566 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2568 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2570 * gtk/gtklabel.c: Documentation fixes (#64452)
2572 2001-11-14 Daniel Egger <degger@fhm.edu>
2574 * gdk-pixbuf/io-xpm.c:
2575 (xpm_skip_whitespaces): Remove unused static function.
2576 (xpm_skip_string): Dito.
2577 (xpm_extract_color): Declare const variable const to avoid warnings.
2579 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2581 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2583 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
2586 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
2588 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2589 out accidental commit of debugging timing code.
2591 2001-11-14 Havoc Pennington <hp@redhat.com>
2593 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2594 it doesn't move to a new line each time you press it
2596 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2597 return value, #62987
2599 2001-11-14 Havoc Pennington <hp@redhat.com>
2601 * tests/testtextbuffer.c (main): bulk of the tests were commented
2604 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
2605 function work, should resolve #63426
2606 (gtk_text_iter_ends_line): return TRUE for the end iterator
2608 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2609 a couple things that might get cached in here.
2611 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
2613 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2614 "model" construct property for language bindings.
2616 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2617 function to let you set the column types of a GtkTreeStore for
2620 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2622 2001-11-13 Havoc Pennington <hp@redhat.com>
2624 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2625 including reference to bugzilla bug about how we should have
2626 a better way of positioning children
2628 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2630 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2631 size to side rects if they don't exist, #63438
2633 2001-11-13 Havoc Pennington <hp@redhat.com>
2635 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2636 properly replace selection with Return or Tab
2638 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2639 that didn't locate the end of the line correctly, should fix #63800
2641 2001-11-13 Havoc Pennington <hp@redhat.com>
2643 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2644 to requisition, request non-anchored children
2645 (gtk_text_view_size_allocate): handle border width, allocate
2646 non-anchored children
2647 (text_view_child_new_window): set the child as object data
2648 (gtk_text_view_move_child): allow children at negative
2649 coordinates, no reason why not
2650 (gtk_text_view_forall): make it copy the list of children before
2651 walking it, to avoid reentrancy issues
2652 (gtk_text_view_move_child): short-circuit if position is unchanged
2653 (changed_handler): only queue_resize if requisition has changed
2654 (gtk_text_view_init): don't redraw_on_allocate, since we can do
2655 a better job of invalidation ourselves
2657 * tests/testtext.c: add tests for the fixed-position children
2659 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
2661 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2662 with gdk threads macro.
2664 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
2666 * gtk/maketypes.awk: fix type utils generation on unix.
2668 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2671 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2672 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2673 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2674 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2675 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2676 introduced ::accel_changed signal for change notification, and
2677 gtk_accel_group_connect/disconnect to connect closures to accel groups.
2678 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2680 deprecated gtk_accel_group_ref/unref.
2682 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2683 to accel group changed notification and basically operate on closures.
2684 removed gtk_accel_label_get_accel_object and
2685 gtk_accel_label_set_accel_object.
2686 introduced gtk_accel_label_set_accel_closure, and for convenience,
2687 gtk_accel_label_set_accel_widget.
2689 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2690 which mostly moved into gtkaccelmap.[hc].
2691 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2692 and gtk_item_factory_print_func.
2694 * gtk/gtkmain.c: call _gtk_accel_map_init().
2696 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2697 that associates an accelerator path with menu items, through which
2698 persistent accelerator settings on menu items are enabled.
2700 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2701 paths of menu item can be default constructed to allow installation
2702 of accelerators on menu items that don't come with an accelerator
2705 * gtk/gtksettings.c: fix STRING type rc settings by special casing
2706 them appropriately in the parser.
2708 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2711 * gtk/gtkwidget.[hc]: accelerator API revamp.
2712 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2713 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2714 gtk_widget_(un)lock_accelerators.
2715 accelerators maintained through gtk_widget_add/remove_accelerator()
2716 are not runtime changable now, the correct sequence to setup a
2717 widget for runtime changable accelerators is now:
2718 gtk_accel_map_add_entry(accel_path, key, mods);
2719 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2721 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2722 group changes (as well as mnemonic changes) through the new signal
2725 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
2727 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2728 GString->string conversions.
2730 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
2732 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2733 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2735 2001-11-12 Matthias Clasen <matthiasc@poet.de>
2737 * gtk/gtktreeview.c: Documentation fixes. (#64377)
2739 * gtk/gtktreestore.c: Documentation fixes. (#64376)
2741 2001-11-11 Matthias Clasen <matthiasc@poet.de>
2743 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2744 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
2745 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
2746 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2748 2001-11-10 Hans Breuer <hans@breuer.org>
2750 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
2751 we know what we are talking about when asked for MINMAXINFO.
2752 Also some cleaning for !HAVE_DIMM_H etc.
2754 2001-11-10 Matthias Clasen <matthiasc@poet.de>
2756 * gtk/gtktreeviewcolumn.c: Fix docs for
2757 gtk_tree_view_column_set_sort_order. (#62647)
2759 * gtk/gtkcontainer.c: Fix docs for
2760 gtk_container_set_border_width. (#64139)
2762 * gtk/gtkcolorsel.c: Documentation fixes.
2764 2001-11-10 Hans Breuer <hans@breuer.org>
2766 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2767 don't have strcasecmp()
2769 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
2770 to remove the idle funcs in gtk_text_view_destroy (). To reduce
2771 code duplication wrap it in its own function and use it in
2772 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2774 * gdk/win32/gdkdrawable-win32.c : implement the finalize
2775 method like the X11 version does, allow to set_colormap NULL
2776 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2777 set_colormap, also some adaption to X11 version :
2778 (gdk_window_hide) call _gdk_window_clear_update_area
2779 (gdk_window_reparent) call _gdk_window_init_position
2781 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
2782 call gdk_window_resize() after all hints are set, because the
2783 window resizing process (WM_GETMINMAXINFO) takes all of them into
2786 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2788 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
2789 sizeof (GdkVisualPrivate)
2791 * gdk/gdk.def gtk/gtk.def : upated externals
2793 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2794 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2795 from now on use make.msc from $(TOP)/glib/build/win32
2797 * gtk/stock-icons/makefile.msc : add stock_missing_image
2799 2001-11-08 Tor Lillqvist <tml@iki.fi>
2801 * README.win32: Add headers. Add section about ActiveIMM.
2803 * configure.in: Add --with-ie55 flag to specify the location of
2804 the "IE55 libs and headers" package downloadable from Microsoft,
2805 which contains, among other things, the Active IMM header dimm.h
2806 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2807 Require GLib 1.3.10.
2809 * config.h.win32.in: New version, produced by merging two
2810 configure-generated ones (for gcc and MSVC). Hopefully #defines
2811 the same flags that the previous, hand-written one, did.
2814 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2816 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2817 stuff. Remove unused GdkIOClosure.
2819 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2822 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2823 for uuid.lib. (Does it really have to be this hard to use an
2824 existing library with libtool? Probably I am missing something.)
2826 2001-11-08 Darin Adler <darin@bentspoon.com>
2828 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2829 typo where it says LEFT instead of CENTER.
2831 2001-11-07 Darin Adler <darin@bentspoon.com>
2833 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2834 (gtk_dialog_set_default_response): Add g_return_if_fail.
2836 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
2838 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
2839 Add row_draggable() vfunc, and wrapper function.
2841 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2842 row_drop_possible take a GtkSelectionData, rather than
2845 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
2848 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2849 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2850 and rename them to enable_model_drag_source/dest.
2852 * gtk/treeviewcolumn.c: Add DND of columns between rows.
2853 Still can't drop _to_ the left tree, but other places
2856 * gtk/gtktreeview.c (unset_reorderable): Unset the
2857 reorderable property if unset/enable_model_drag_source/dest
2858 are called manually.
2860 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
2861 Correct for change in depth count handling.
2863 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2864 Pass in a expose area to gtk_tree_view_column_cell_render()
2866 2001-11-06 Havoc Pennington <hp@redhat.com>
2868 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2870 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
2872 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2874 2001-11-05 Havoc Pennington <hp@redhat.com>
2876 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2878 (gtk_text_view_realize): set parent window of child widgets
2879 (gtk_text_view_size_request): use child req to decide whether
2880 to invalidate layout, not widget->requisition
2882 * gtk/gtktextdisplay.c (render_layout_line): set
2883 shaped_width_pixels for NULL shape objects, so that we properly
2884 draw the "missing pixbuf/widget" thing
2885 (render_layout_line): don't draw the widget here
2886 (gtk_text_layout_draw): pass out a list of widgets that need exposing
2888 * demos/gtk-demo/textview.c (insert_text): add demo of child
2891 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2893 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2895 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2897 (gtk_text_view_value_changed): poke new X and Y into child allocations
2899 2001-11-06 Tor Lillqvist <tml@iki.fi>
2901 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2902 -specific directory on Windows, too (#63759).
2904 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
2906 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2907 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2908 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2909 directly to Picture objects instead of using XftDraw.
2910 This fixes the problem where we weren't able to
2911 properly destroy XftDraw objects before destroying
2912 the accompanying windows, and probably improves
2913 efficiency a bit too. (#50214)
2915 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
2917 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
2918 Clamp max window width/height to 32767, not 32768 since
2919 we have to be able to deal with a dx/y of -32768 without
2920 getting a width of 65536 when guffaw scrolling.
2922 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2923 for the guffaw scrolling case, fixing some problems with
2924 copy-area case as well. Fix BadValue bug with moving windows
2927 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2928 clip in window structue before calling gdk_window_invalidate_region
2929 since that trims new invalidations to the window's visible
2932 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
2933 Really set the static window gravity on the children, not
2934 repeatedly on the window.
2936 * gtk/testgtk.c: Add a torture test for big windows and
2937 gdk_window_scroll().
2939 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
2941 * acconfig.h configure.in: sigsetjmp is macroized in some places,
2942 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2944 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
2946 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2947 in terms of pango_color_parse().
2949 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2950 gdk_color_parse() implementations.
2952 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
2954 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
2955 queue_resize_on_group with both the old and new mode, not
2956 just the new mode. (#60171, Nicolas Setton). Also, notify
2957 the "mode" property.
2959 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
2961 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
2962 for use in "shallow invalidation" of a widget. (Windows belonging
2963 to the widget, but not to the widget's children)
2965 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2966 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
2967 up on ancestors up to the resize container on queue_resize. Size
2968 requests only actually take place if GTK_REQUEST_NEEDED, size
2969 allocations only take place if GTK_ALLOC_NEEDED or the size
2972 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2973 container->resize_widgets and the RESIZE_NEEDED flag since the
2974 above flags are sufficient to figure out what needs to be
2975 resized/reallocated. Remove code manipulating
2976 container->resize_widget.
2978 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2979 allows widgets to turn off being automatically invalidated is when
2982 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2983 a widget is resized or moved is "shallow" as described above -
2984 only the windows that need to be invalidated are invalidated.
2986 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
2987 Make these widget's init functions call
2988 gtk_widget_set_redraw_on_allocate(widget,FALSE).
2990 * gtk/gtkwindow.c (gtk_window_configure_event): Call
2991 _gtk_container_queue_resize(), since we don't want
2992 redrawing. (Probably could be done for other
2993 calls to gtk_widget_queue_resize() in gtkwindow.c,
2994 but this is the most important one.)
2996 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2997 gtk_widget_queue_draw() - size_allocate() handles
2998 that as appropriate.
3000 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
3001 of queue_clear() to avoid invalidating children.
3003 2001-11-04 jacob berkman <jacob@ximian.com>
3005 * gtk/gtkmain.c (find_module): don't free the module name until
3006 after we load the module
3008 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
3010 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
3011 derivation instead of boxed derivation.
3013 * gtk/gtkmarshal.list: Remove some now unused marshallers.
3015 2001-11-04 Tor Lillqvist <tml@iki.fi>
3017 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
3018 include yesterday, without really thinking), as that defeats the
3019 working of correct_libdir_prefix() (it becomes a no-op.). Add
3020 comment mentioning that. Thanks to Hans Breuer for noticing.
3022 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
3024 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
3025 signal argument (was GtkWidget*).
3027 * gtk/gtkwindow.c (gtk_window_frame_event),
3028 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
3029 Fixed argument types as above, removed GTK_WINDOW casts and
3030 added some GTK_WIDGET casts instead.
3032 2001-11-03 Hans Breuer <hans@breuer.org>
3034 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
3035 finalize to parent class to get removed from the toplevel_list.
3036 Should fix 'random' crashes of #63474.
3038 * gtk/gtktreemodelsort.c : chain finalize() to parent class
3040 2001-11-03 Tor Lillqvist <tml@iki.fi>
3042 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
3043 for .dll or .so as appropriate as module suffix.
3045 * gtk-zip.sh.in: Use correct import library names.
3047 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
3049 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
3050 Windows to turn build-time paths from a gtk.immodules distributed
3051 as part of a binary package into runtime ones in the
3052 end-user-chosen installation directory.
3053 (gtk_im_module_init): Use it for module path and domain
3056 2001-11-02 Tor Lillqvist <tml@iki.fi>
3058 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
3059 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
3062 2001-10-30 Tor Lillqvist <tml@iki.fi>
3064 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
3065 files. Configure on Win32 (running on Cygwin) thinks symlinks
3066 exist, but pkg-config is not necesarily a Cygwin program, and
3067 doesn't understand them.
3069 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
3071 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
3072 a bit. I don't think it's completely correct yet, but it's
3075 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
3077 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
3078 random + 5 for width and height. If people want padding,
3079 they should add padding. (Note the +5 isn't padding
3080 that will always appear - it just appears in the case
3081 where the widget is allocated it's requisition.)
3082 (#51018, Janet Davis)
3084 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
3086 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
3087 the structure for future expansion.
3089 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
3091 Patch from HideToshi Tajima (#51922)
3093 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
3095 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
3098 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
3099 to destroy the input context because we change the
3100 client window or use_preedit, make sure we empty
3103 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
3105 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
3106 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
3107 proposed ordering of buttons with [OK] in the lower
3108 right hand corner. Patch from Gregory Merchan,
3111 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
3113 * gtk/gtklabel.c (gtk_label_select_region_index): remove
3114 extraneous gtk_label_clear_layout (label)
3116 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3118 * tests/makefile.msc, gtk/makefile.msc.in: Removed
3119 -DGTK_DISABLE_COMPAT_H.
3121 * docs/Changes-2.0.txt:
3122 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
3124 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
3126 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
3128 * examples/**/Makefile.am: Convert to use pkg-config
3129 rather than gtk-config. (#53375, Skip Montanaro)
3131 2001-11-02 Matt Wilson <msw@redhat.com>
3133 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
3134 broken unused, non-compiling, static function.
3136 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
3138 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
3139 Iterate through children of the action area, not of
3140 the vbox. (#58278, Sergey Kuzminov)
3142 2001-11-01 Havoc Pennington <hp@pobox.com>
3144 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
3145 order to remove a workaround in Nautilus that forced
3148 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
3150 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
3152 * gtk/gtkrange.c: Patch from George Lebl to
3153 fix division by zero for full scroll bars. (#62114)
3155 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
3157 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
3158 around gtk_widget_event() if we are going to
3159 set a flag afterwards. (#63464)
3161 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
3163 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
3164 Actually add the missing/broken image icon as the
3165 image for the "missing image" stock icon.
3167 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
3169 * demos/gtk-demo/stock_browser.c (do_stock_browser):
3170 Set a reasonable default height for the window.
3172 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
3173 bug where subsequent '-' weren't converted to '_'.
3174 (#59550, Matthias Clasen)
3176 * demos/gtk-demo/appwindow.c (menu_items): Don't right
3177 justify the Help menu - just include a comment on
3178 how to do it. (#63539, Marius Andreiana)
3180 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
3181 list GTK_ICON_SIZE_INVALID.
3183 * demos/gtk-demo/stock_browser.c: Show the biggest available
3184 size, not a fixed size. (Often reported, including #63539,
3187 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
3189 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
3192 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
3195 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
3197 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
3200 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
3202 * gtk/gtkimcontext.[ch]: Add:
3203 - A ::retrieve_surrounding signal that asks the widget for
3204 context around the insertion point.
3205 - A ::delete_surrounding signal that asks the widget to
3206 delete context aroudn the insertion point.
3207 - gtk_im_context_set_context() for widgets to set context
3208 around the insertion point in response to ::retrieve_context.
3209 - gtk_im_context_get_context() for context to get context
3210 around the insertion point
3212 * gtkmarshal.list: Add BOOL:INT,INT
3214 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
3215 set_surrounding() methods, and the ::retrieve_surrounding /
3216 ::delete_surrounding signals.
3218 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
3219 GtkIMContext::retrieve_surrounding / ::delete_surrounding
3222 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
3224 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3225 it's amazing how well things work sometimes, even when they're
3228 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3229 where you could try to collapse a node w/o it having children.
3231 (gtk_tree_view_class_init): remove Shift L<->R as they already
3232 existed for expand/collapse.
3234 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
3236 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
3237 found by Matt Wilson.
3239 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
3241 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
3242 Control, and Shift|Control L<->R, #63475
3244 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
3246 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
3247 infinite loop noticed by yosh.
3249 2001-11-01 Michael Meeks <michael@ximian.com>
3251 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
3252 GTK_REALIZED flag so we don't re-enter when we are
3253 destroyed from the plug side.
3255 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
3257 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
3258 Add a "menu" property and notify on it. (#62798,
3261 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
3262 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
3263 Fix set_text to take a gchar, not a guchar, and to have
3266 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
3268 * gtk/gtkstock.c: fix typo to make it compile
3270 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
3272 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
3273 the widget is insensitive, draw the text insensitively, #63306
3275 2001-10-31 Matthias Clasen <matthiasc@poet.de>
3277 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
3279 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
3281 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
3282 gtk_selection_data_set_tree_row, #60218
3283 (gtk_tree_get_row_drag_data): rename
3284 gtk_selection_data_get_tree_row, #60218
3286 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
3287 get this right, after the third try, #63122.
3289 2001-10-31 jacob berkman <jacob@ximian.com>
3291 * gdk/gdkselection.h (GDK_TARGET_STRING):
3292 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
3293 for Xatoms (and not using the XA_* macros)!
3295 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
3297 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
3298 gtk_window_get_focus() getter to determine the currently
3299 focused widget within the window. (#63145, request
3300 from Damian Ivereigh)
3302 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
3304 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3306 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3307 GTK_SELECTION_NONE enum.
3308 (_gtk_tree_selection_internal_select_node): ditto
3310 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3313 * gtk/gtkcellrenderertoggle.c: more yummy constness.
3315 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3316 if mode == GTK_SELECTION_NONE
3318 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
3320 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3321 "cursor_changed" signal, #62850.
3323 2001-10-31 Matt Wilson <msw@redhat.com>
3325 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3326 allocating the treedatalist, zero it to make sure the values are
3327 cleared from any garbage that was in this chunk.
3329 2001-10-31 Murray Cumming <murrayc@usa.net>
3331 * gtk/cellrenderertext.h: "edited" default signal handler
3332 gchar* args are now const.
3333 gtk/cellrenderertoggle.h: "toggled" default signal handler
3334 gchar* arg is now const.
3335 Also changed other signal handlers for "edited" and "toggled" to
3336 have the same signature.
3338 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
3340 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3341 rewrite. Static models now totally work. I'm not 100% sure about
3342 row_inserted and row_changed, but I'll get those later.
3344 2001-10-30 Sven Neumann <sven@gimp.org>
3346 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3347 output for configure --help.
3349 2001-10-30 Havoc Pennington <hp@pobox.com>
3351 * gtk/gtktextview.c (changed_handler): Update the IM spot location
3352 here, if text was invalidated in the visible area, because the
3353 scroll offset doesn't normally change in that case, and the mark
3354 isn't set, just implicitly moved over as text is added/removed
3356 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
3358 * gtk/gtkseparatormenuitem.c: Code cleanup.
3359 (gtk_separator_menu_item_class_init): Fix bugs in this code.
3361 2001-10-29 jacob berkman <jacob@ximian.com>
3363 * gdk/Makefile.am (LDFLAGS):
3364 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3365 LDFLAGS, so put win32 flags in here
3367 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
3369 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3370 I can't believe this took this long to fix.
3372 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
3374 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3377 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
3379 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3380 the focus to the fileop entry for create dir / rename
3383 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
3385 * configure.in: Don't use AC_CHECK_FILE to check for a
3386 file since it always spits warnings about cross compilation,
3387 use -f instead. It's not like we cross compile properly
3390 * configure.in (gtktargetlib): Move call to AC_PROG_CC
3391 to suppress autoconf warning.
3393 * acconfig.h: Add some missing #undefs from recent
3396 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
3398 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3399 when we didn't find it. (#62944, Eric Lemings)
3401 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3402 sign in assignment. (#63209, Arkadiusz Miskiewicz)
3404 2001-10-29 Anders Carlsson <andersca@gnu.org>
3406 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3407 the buttons size request before using it. Fixes #61696.
3409 2001-10-29 Tor Lillqvist <tml@iki.fi>
3411 * README.win32: Updates.
3413 * gtk-zip.sh.in: New file, used to build distribution package for
3416 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3417 applicable with GDKVAR.
3419 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3422 * gdk/win32/gdkwin32.h
3423 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3424 X11 headers better, and to enable gdkwin32.h to be installed and
3425 included from applications, but not the *-win32.h headers.
3427 * gdk/win32/*.c: Corresponding small changes, simplifications of
3430 * gdk/win32/gdkregion-win32.c: Remove.
3432 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3434 * gdk/win32/gdkfont-win32.c
3435 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3437 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3438 GDK_NONE values into hash table.
3440 * gtk/gtk.def: Update.
3442 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3446 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3447 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3448 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3449 g_win32_get_package_installation_subdirectory() with the actual
3450 DLL name saved above. Redefine above directory name macros to call
3451 these functions. Remove some ifdefs.
3453 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3454 variable for export on Win32) also to the _vars file.
3456 Changes for autoconfiscated build on Win32, and addition of Win32
3457 backend to the related files:
3459 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3460 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3461 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3462 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3463 win32 target, using pangowin32. Don't use the
3464 -export-symbols-regex option on Win32, we use .def files to list
3465 exported symbols. Check <winsock.h> (for gethostname() in
3466 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3467 prevent premature m4 expansion.
3469 * acconfig.h: Add HAVE_WINTAB.
3471 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3472 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3473 MS_LIB_AVAILABLE, build MS import library. Install the import
3474 libraries. If HAVE_WINTAB, link with the Wintab library.
3476 * gdk/win32/Makefile.am: Actually enable building the win32
3477 objects here, not just list all files in EXTRA_DIST. Link in the
3478 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3479 copy the Wintab library into the .libs directory.
3481 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3482 name of the GDK DLL when fetching the icon. Use the HMODULE saved
3483 in gdk_dll_hinstance by DllMain.
3485 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3486 build/win32/lt-compile-resource script.
3488 * gdk/win32/rc/gdk.rc.in
3489 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3491 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3492 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3493 file. Install import libraries.
3495 2001-10-29 Anders Carlsson <andersca@gnu.org>
3497 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3499 2001-10-28 Hans Breuer <hans@breuer.org>
3501 * gdk/gdk.c gdk/gdkevents.c
3502 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3503 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3504 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3505 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3506 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3507 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3508 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3509 static correct-ness, underscore prefixing of library internal
3511 (applied the undisputed and the win32 part. Of the latter
3512 I'm probably the one who will change it back again, if Owen
3513 decides that the Gdk*Impl types should not be private to Gdk)
3515 * gdk/gdk.def : added the remaining exported functions
3517 2001-10-28 Matthias Clasen <matthiasc@poet.de>
3519 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3520 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3521 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3523 2001-10-28 jacob berkman <jacob@ximian.com>
3525 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3526 gtk_settings_get_default() here as that requires an X connection
3527 (which breaks doc building with no X connection) and is not
3529 (gtk_color_selection_init): delay palette loading until realize
3531 (gtk_color_selection_realize): load the palette, and initialize
3532 the global palette if it hasn't been already
3534 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3535 visual/cmap fields of klass->info since they are gone
3536 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3537 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3538 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3540 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3542 (gtk_preview_get_visual):
3543 (gtk_preview_get_cmap): mark as deprecated
3545 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3548 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
3550 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3551 structure to have GObject not GtkObject as
3552 parent_instance. (Jeff Franks.)
3554 2001-10-27 Matthias Clasen <matthiasc@poet.de>
3556 * gdk/x11/gdkinput.c: Typo fix.
3558 2001-10-26 Havoc Pennington <hp@pobox.com>
3560 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3561 update_im_spot_location here explicitly
3562 (gtk_text_view_reset_im_context): don't update the spot location
3565 2001-10-27 Anders Carlsson <andersca@gnu.org>
3567 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3570 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
3571 Clarify that we're returning a spin button in the _new function.
3574 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
3576 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
3577 Unfortunately, people apparently erroneously connect
3578 to ::clicked for GtkToggleButton and expect
3579 they know what happened in the default signal handler
3580 instead of appropriately connecting to notification
3581 signal ::toggled. When the revolution comes, such
3582 people will be first against the wall.
3584 We'll just have to go back to the old less-reliable
3585 set-it-back hacks for handling model-view check
3586 buttons and radio buttons. :-(.
3588 2001-10-27 Hans Breuer <hans@breuer.org>
3590 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3591 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3592 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3593 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3594 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3595 gtk/gtktreestore.c gtk/gtkvbbox.c :
3596 to simplify parsing for exported functions:
3597 - made implementation signature static, when the local
3598 prototype already was
3599 - put the functions return value on it's own line
3600 - added as space between the function name and the
3603 * gtk/gtk.def : added the remaining exported functions
3605 2001-10-27 Anders Carlsson <andersca@gnu.org>
3607 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3608 Add note about width having to be greater than 0. This fixes
3611 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
3612 Fix docs to say previous instead of next.
3613 (gtk_text_iter_backward_word_start): Likewise.
3614 This fixes bug #62980.
3616 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3617 that the valid width is in range 0-65535 pixels. Fixes bug
3620 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3621 a dot in the documentation. Fixes bug #62632.
3623 * gdk/x11/gdkmain-x11.c: Replace int and guint with
3624 long and gulong in some places to make the code 64-bit
3626 (_gdk_windowing_init_check): Replace gint with gulong.
3627 This patch was made by George Lebl and fixes bug #62113.
3629 * tests/testgtk.c (create_range_controls): Don't set a
3630 fixed height on the hscale widget. This fixes "bug"
3632 (create_window_states): Set up destroy signals so that
3633 all windows will be destroyed when one is. This fixes
3636 2001-10-26 Anders Carlsson <andersca@gnu.org>
3638 * gtk/gtktreeview.c:
3639 (gtk_tree_view_class_init): Create new "indent_expander"
3642 (gtk_tree_view_get_arrow_xrange): Add a tree argument
3643 to the function since the xrange can change depending
3644 on where in the tree we are.
3646 (coords_are_over_arrow): Update function call to
3647 gtk_tree_view_get_arrow_xrange.
3648 (gtk_tree_view_draw_arrow): Likewise.
3650 (gtk_tree_view_real_expand_collapse_cursor_row):
3651 Call real_{expand|collapse}_row, so that we'll have an
3654 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
3656 * tests/Makefile.am: fixed a small typo
3658 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
3660 * demos/gtk-demo/list_store.c (create_model): Anders
3661 Carlsson suggested to use G_N_ELEMENTS here
3663 2001-10-26 Sven Neumann <sven@gimp.org>
3665 * gtk/gtkbutton.[ch]
3666 * gtk/gtkdnd.c: fixed inline comments
3668 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3670 2001-10-26 Hans Breuer <hans@breuer.org>
3672 * gdk-pixbuf/gdk_pixbuf.def :
3674 * gtk/gtk.def : updated externals
3676 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3677 gdk_window_lookup implementation. It already was in
3678 gdk/win32/gdkwindow-win32.c
3680 * gdk/win32/gdkproperty-win32.c : made it compile again
3681 after GdkAtom API change
3683 * gtk/gtk/makefile.msc.in : updated
3685 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
3687 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3688 require GLib 1.3.10.
3692 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
3694 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3696 (_gtk_rbnode_rotate_right): Ditto.
3697 (_gtk_rbtree_node_mark_invalid): New function.
3698 (_gtk_rbtree_node_mark_valid): New function.
3700 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3701 GObject, not a GtkObject.
3702 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3704 (gtk_tree_model_sort_row_deleted): ditto.
3705 (gtk_tree_model_sort_{un,}ref_node): Fix.
3707 * gtk/gtktreeview.c: Protean incremental reflow support (commented
3710 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3713 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3714 Important 1 line fix to fix a lot of refcounting woes.
3716 2001-10-25 Matt Wilson <msw@redhat.com>
3718 * gtk/gtktextview.c (gtk_text_view_destroy): call
3719 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3720 now invalidates) so that we remove our idle functions.
3721 (gtk_text_view_destroy_layout): remove the first_validate_idle as
3724 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3725 the 'indent' property is G_MININT to G_MAXINT. Don't use
3726 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3729 2001-10-24 Anders Carlsson <andersca@gnu.org>
3731 * gtk/gtktreeview.c:
3732 (gtk_tree_view_real_expand_row): add an animate argument
3733 (gtk_tree_view_real_collapse_row): likewise
3735 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
3736 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3737 (gtk_tree_view_collapse_row): update functions that call
3738 real_{expand|collapse}_row to set the animate argument
3741 2001-10-24 Alex Larsson <alexl@redhat.com>
3743 * gdk/linux-fb/gdkfont-fb.c:
3744 Update to new Pango APIs
3746 * gdk/linux-fb/gdkproperty-fb.c:
3747 Update to new GdkAtom APIs
3749 * gdk/linux-fb/gdkwindow-fb.c:
3752 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
3754 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3756 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
3758 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3759 s_path as a child path
3761 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
3763 * gtk/gtktreemodelsort.c: more changes in an attempt to get
3764 it right. It's not yet ready for general consumption.
3766 * tests/treestoretest.c: add a button and entry for the new
3767 iter_change function
3768 (iter_change): new function, to test
3769 the row_changed signal implementation of the GtkTreeModelSort
3771 * tests/testtreesort.c: cleanups, changes to test more features
3772 of the GtkTreeModelSort at once
3774 2001-10-24 Havoc Pennington <hp@redhat.com>
3776 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3777 remove hack to strip off the bogus newline, since we killed the
3778 bogus newline; fixes #61779
3780 2001-10-24 Havoc Pennington <hp@redhat.com>
3782 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3783 create layout if we didn't have one
3784 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3785 as appropriate, avoids blanking the screen
3786 (gtk_text_view_invalidate): new function to do invalidation,
3787 containing old guts of invalidated_handler
3789 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
3791 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3794 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
3796 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
3797 set window->parent (except or the root window itself); if
3798 the window's parent is not a GdkWindow, or is a window of
3799 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3801 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3802 windows of type GDK_WINDOW_FOREIGN.
3804 2001-10-24 Havoc Pennington <hp@pobox.com>
3806 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3807 the front of a segment, use the "slow" technique for moving
3808 backward, so we don't mess up the any_segment field in the iter.
3811 * tests/testtextbuffer.c: add code to detect #57707, to avoid
3814 2001-10-23 Havoc Pennington <hp@redhat.com>
3816 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3817 if selection contains some editable text, #60975
3818 (gtk_text_view_scroll_to_iter): remove warning about scrolling
3819 prior to map; it should actually be OK to do so in many cases,
3820 it would be nice to warn about scrolling when many lines have
3821 height 0, but I don't know what to do about that. Perhaps
3822 move part of flush_scroll into this function? comment added
3825 2001-10-23 Havoc Pennington <hp@redhat.com>
3827 * gtk/gtktextview.c (changed_handler): Correctly keep the same
3828 text on the top of the screen, considering that the changed region
3829 may have overlapped the first paragraph. Should fix msw's "text
3830 widget scrolled to wrong place on map" bug, and probably some
3831 other scrolling cases as well.
3832 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
3833 instead of some random value
3835 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3836 grab_focus, so #59708 is really fixed
3838 2001-10-24 Anders Carlsson <andersca@gnu.org>
3840 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3841 (popup_targets_received): Call append_action_signal with stock items
3843 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3844 (gtk_label_do_popup): Call append_action_signal with stock items
3846 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3847 (popup_targets_received): Call append_action_signal with stock items
3849 2001-10-23 Havoc Pennington <hp@redhat.com>
3851 * gtk/gtktextview.c (changed_handler): queue a resize here; will
3852 temporarily slow down the widget a lot, until we figure out how to
3853 optimize to avoid full redraw everytime we queue a resize.
3855 2001-10-23 Havoc Pennington <hp@redhat.com>
3857 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3858 0 and char_len == 0, bug #61729
3860 2001-10-23 Havoc Pennington <hp@redhat.com>
3862 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3863 return value, #61714 (Vitaly Tishkov)
3864 (gtk_text_iter_backward_sentence_starts): ditto
3865 (gtk_text_iter_backward_word_starts): ditto
3866 (gtk_text_iter_forward_word_ends): ditto
3867 (gtk_text_iter_forward_sentence_ends): ditto
3868 (gtk_text_iter_backward_cursor_positions): ditto
3870 2001-10-23 Havoc Pennington <hp@redhat.com>
3872 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3873 fix from Dov Grobgeld, #61858
3875 2001-10-23 Havoc Pennington <hp@redhat.com>
3877 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
3878 Update IM spot location at appropriate times, #50626
3881 2001-10-23 Havoc Pennington <hp@redhat.com>
3883 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3884 on grab focus, unless it's caused by button click, #59708
3886 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
3888 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3890 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3891 G_CONST_RETURN. (Murray Cumming)
3893 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3894 Make G_CONST_RETURN.
3896 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3897 results of g_get_home_dir().
3899 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
3900 copy. Storing the return from gtk_entry_get_text() is evil.
3902 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
3903 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
3904 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3905 gtk/gtksignal.c: Add const.
3907 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3909 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
3910 if we are setting them on private widgets.
3912 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3913 Duplicate entry->text before setting it as object data.
3915 2001-10-22 Havoc Pennington <hp@redhat.com>
3917 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3918 up a char from the end iterator, fixes #61859 ("can't put cursor
3919 at the end of the buffer")
3921 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3922 to work with delimiters other than newline.
3924 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3927 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3928 last line, since the newline is no longer counted.
3929 (gtk_text_iter_get_bytes_in_line): ditto
3931 2001-10-22 Havoc Pennington <hp@redhat.com>
3933 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
3934 #58290 would trigger if it reappeared, I think
3936 2001-10-22 Havoc Pennington <hp@redhat.com>
3938 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3939 add temporary code to dump btree contents on assertion failure
3942 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3943 assertions that we're getting the right end iter segment
3945 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3946 verify that we aren't on the end iterator after moving
3947 forward one segment - fixes return value in an obscure case.
3948 Also, some trivial code cleanup/rearranging.
3950 2001-10-22 Havoc Pennington <hp@redhat.com>
3952 * gtk/gtktextlayout.h: add a #error unless you define
3953 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3955 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3957 2001-10-22 Havoc Pennington <hp@redhat.com>
3959 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
3962 2001-10-22 Havoc Pennington <hp@redhat.com>
3964 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
3967 2001-10-22 Havoc Pennington <hp@redhat.com>
3969 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
3972 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
3974 * gtk/gtklabel.c: Add cursor-position, selection-bound
3975 properties. (#62148, reported by Padraig O'Briain)
3977 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3978 to cursor_position. (1.3.x addition, text_position is an awful
3979 name.) Make cursor_position read-only to avoid sticky questions
3980 of interaction with selection_bound. (#62636, reported by
3983 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
3985 Fixing popup menus to have "Paste" sensitized correctly. Original
3986 patches from Damian Ivereigh, much mangled.
3988 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3989 gtk_selection_data_targets_include_text(). (#60854)
3991 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3992 the clipboard has text" function gtk_clipboard_wait_is_text_available.
3995 * gtk/gtkentry.c: Only enable the paste item if the clipboard
3996 contains text. (#60973)
3998 * gtk/gtktextview.c: Only enable the paste item if the clipboard
3999 contains text. (#60975)
4001 2001-10-22 Havoc Pennington <hp@redhat.com>
4003 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
4004 "height_lines" and "width_columns" properties, it doesn't make
4005 sense to set the size request on a text view really. #62103
4007 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
4009 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
4010 g_node_depth is broken, and that it's not worth being consistent
4013 2001-10-22 Havoc Pennington <hp@redhat.com>
4015 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
4017 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
4018 change the two boolean args to a flags field, so we can extend
4019 to add case insensitive, regexp searches later. #61852
4021 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
4023 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
4024 reflect reality, #62810
4026 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
4028 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
4030 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
4031 system. Instead of having a window the size of the tree, we have
4032 a window the size of widget->allocation, and simply draw with the
4034 (coords_are_over_arrow): ditto. Move to window coordinates.
4035 (do_prelight): ditto
4036 (do_unprelight): ditto
4038 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4039 Minor fix from Kristian Rietveld to fix unsorted case.
4041 2001-10-22 jacob berkman <jacob@ximian.com>
4043 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
4044 a PIXMAP cell (fixes crash when using PIXTEXT cells)
4046 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
4048 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
4049 (#58768, Vitaly Tishkov)
4051 * gtk/gtkobject.h: Deprecate with abandon.
4052 (#61942, Vitaly Tishkov, Matthias Clasen)
4054 * gtk/gtksignal.h: Deprecate everything.
4056 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
4057 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
4058 (#61942, Matthias Clasen)
4060 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
4063 * gtk/gtkitemfactory.h: Deprecate compat functions
4064 for GtkMenuFactory code. (#62071)
4066 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
4067 gdk_draw_text,gdk_draw_text_wc. (#62071)
4069 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
4071 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
4072 g_thread_init(), we don't want to link to -lgthread if we don't
4075 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
4077 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
4078 Add a function, gdk_threads_init() that must be explicitely
4079 called to enable the GDK thread mutex.
4081 2001-10-22 Jakub Steiner <jimmac@ximian.com>
4083 * gtk/stock-icons/stock_stop.png: no body parts
4085 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
4087 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
4088 problem with g_return_if_fail return value.
4090 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
4091 virtual atom code from the gdk-multihead branch, removing the per-display
4092 part. Virtualizing atoms needs to be done now to prevent compat
4093 breakage in direct Xlib accessing code in the future. (#62208)
4095 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
4096 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
4098 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
4099 an opaque pointer type so the compiler catches attempts
4100 to mingle it with X atoms.
4102 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
4103 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
4104 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
4105 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
4106 tests/testdnd.c,tests/testselection.c:
4107 Fix up for above atom changes.
4109 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
4110 now have the ability to add custom predefines.
4112 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
4113 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
4114 to gtk_clipboard_get().
4116 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
4117 for GdkAtom => pointer change.
4119 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
4120 atoms, fix for GdkAtom => pointer change.
4122 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
4124 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
4125 new function spin_button_get_arrow_size() instead.
4127 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
4128 arrow was hardcoded, it's now variable.
4132 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
4134 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
4135 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
4138 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
4140 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
4141 in favor of g_signal_*, gtk_object_* in favor of
4144 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
4146 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
4147 from GObject now, we have to use the g_object_* functions, not
4150 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
4152 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
4153 nailed down now (this code is not yet ready for general consumption)
4155 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
4157 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
4160 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
4162 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
4164 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
4166 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
4167 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
4168 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
4169 GObject, not GtkObject. (#62621)
4171 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
4173 * tests/testsocket.c: Remove now useless include of unistd.h,
4174 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
4176 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
4178 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
4179 Pango font API. #61933. (Untested, even for compilation.)
4181 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
4183 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
4184 export gtk_disable_setlocale(). (Caught by Sven Neumann)
4186 2001-10-18 Havoc Pennington <hp@redhat.com>
4188 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
4190 2001-10-18 Havoc Pennington <hp@redhat.com>
4192 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
4193 to GTK_RUN_LAST, #50239
4195 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
4197 * gtk/gtkimmodule.c (match_locale):
4198 Support "*" for all locales with least priority
4199 when to select default im module, #58201
4201 2001-10-18 Matthias Clasen <matthiasc@poet.de>
4203 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
4206 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
4208 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
4210 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
4211 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
4212 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
4213 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
4214 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
4215 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
4216 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
4218 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
4220 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
4221 Don't restrict the width of the spinbutton entry field
4222 to 10 digits. (#58681)
4224 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
4226 * tests/testtreeflow.c: new test program for the tree.
4228 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
4230 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
4231 reported by (Oleg Maiboroda), #62600
4233 2001-10-18 Michael Meeks <michael@ximian.com>
4235 * gtk/gtkentry.c (gtk_entry_set_property),
4236 (gtk_entry_get_property): impl 'text'
4237 (gtk_entry_class_init): add the 'text' prop.
4238 (gtk_entry_insert_text): notify 'text' changed.
4239 (gtk_entry_delete_text): ditto.
4241 2001-10-17 Matthias Clasen <matthiasc@poet.de>
4243 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
4244 Documentation updates.
4246 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
4248 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
4249 in truncating length of text to MAX_SIZE. (Found by
4250 Padraig O'Briain, #62055)
4252 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
4254 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
4255 MNEMONIC_ACTIVATE; signal was changed a long time
4258 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
4259 Fix wrong return statement. (Reported by HideToshi
4262 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
4263 left over select_all vfunc.
4265 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
4267 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
4268 a utility function to translate coordinates relative to
4269 one widget's allocation to coordinates relative to another
4270 widget's allocation.
4272 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
4274 - only accepts external focus if there is no active
4275 member of the group or the button is active.
4276 - makes arrow keys move the active button as well
4278 - make tab tab out directly.
4279 This makes a radio button group act as a single focus location.
4282 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
4283 it was only a small optimization that didn't matter and made
4284 things more complicated.
4286 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
4287 sorter for FOCUS_TAB as we did for the other focus directions,
4288 sort by center of widgets, not upper-left corner. (Shouldn't
4291 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
4292 from the different types of focusing: encapsulate sorting the
4293 widgets for the focus direction into one routine
4294 (gtk_container_focus_sort()) and then share the work of moving the
4295 focus between the different focus directions.
4297 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
4298 work correctly with focus chains containing non-immediate
4299 children. Sorting was being done using allocation coordinates for
4300 each widget in the focus chain, and if there were intermediate
4301 window-widgets, these allocations would not be in the same
4304 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
4306 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4307 mnemonic_activate function to option menu.
4309 2001-10-15 Murray Cumming <murrayc@usa.net>
4311 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
4312 Corrected the type names used in some calls to g_signal_new().
4314 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
4316 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4317 specs, use g_pattern_spec_equal() instead of direct field accesses.
4318 upon compressing two equal paths of the same type, the resulting
4319 priority has to be the maximum.
4320 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4321 GtkPathPriorityType enum and make it a macro.
4323 2001-10-12 Matthias Clasen <matthiasc@poet.de>
4325 * gtk/gtkwidget.c: Fix some doc comments.
4327 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
4329 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4332 2001-10-11 Matthias Clasen <matthiasc@poet.de>
4334 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4335 Remove stale gdk backend includes.
4337 2001-10-10 Michael Meeks <michael@ximian.com>
4339 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4340 and value_in_list properties.
4341 (gtk_combo_set_value_in_list): notify change.
4342 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4344 2001-10-11 James Henstridge <james@daa.com.au>
4346 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4347 that gtk+ can be built with automake 1.5 while not breaking
4348 things for automake 1.4.
4350 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
4352 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4355 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4356 to disable calling setlocale (LC_ALL, "").
4358 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
4359 docs that this function is not typically useful.
4361 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
4362 Automatically initialize GDK for the current locale
4363 on gdk_init(). Don't reset locale to C when
4364 XSupportsLocale() fails.
4366 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4367 useless checks for UTF-8 locale breakage that mattered
4370 * examples/calendar/calendar.c
4371 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
4374 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4375 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4377 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
4379 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4383 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
4385 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4386 new function, #61923
4387 (gtk_tree_selection_path_is_selected): Ditto
4389 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
4391 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4392 not a GtkObject. Thanks andersca.
4394 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4396 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
4398 * gtk/gtktreeviewcolumn.c
4399 (gtk_tree_view_model_sort_column_changed): fix broken code.
4401 2001-10-08 Matthias Clasen <matthiasc@poet.de>
4403 * gtk/gtkselection.c: s/succesfully/successfully/g
4405 2001-10-08 Havoc Pennington <hp@pobox.com>
4407 * demos/gtk-demo/stock_browser.c: remove unused enum
4409 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4410 pass the current selection state of the node in to the user
4413 2001-10-06 Matthias Clasen <matthiasc@poet.de>
4415 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
4416 non-existent function gdk_x11_cursor_get_xid
4417 by gdk_x11_cursor_get_xcursor.
4419 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
4421 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4424 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4425 unref nodes, #okay61676
4427 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4428 to the property; no need to clear the other columns. Also, we go
4429 to 'unsorted' if the model supports it.
4431 2001-10-05 Sven Neumann <sven@gimp.org>
4433 * demos/testpixbuf-save.c
4434 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
4437 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
4439 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4440 destroy the search dialog
4442 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4443 added check to prevent creation of a search dialog if there's
4446 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4447 it instead of "search-dialog" (when getting/setting the search dialog
4450 2001-10-05 Jakub Steiner <jimmac@ximian.com>
4452 * gtk/stock-icons/stock_broken_image.png: broken images icon
4454 2001-10-04 Havoc Pennington <hp@pobox.com>
4458 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4459 accelerator setting here...
4461 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4462 because we try to use it when a menu bar hasn't necessarily been
4465 2001-10-03 Havoc Pennington <hp@redhat.com>
4467 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
4468 it previously verified incorrect behavior
4472 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4474 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4476 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4478 (gtk_text_iter_forward_lines): if on the last line, move to end of
4481 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4482 don't return a line off the end
4484 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
4486 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4487 functions to do_insert_text and do_delete_text, add signals
4488 insert_text, delete_text and changed
4490 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4491 and changed. Updates to match new situation.
4493 * gtk/gtkspinbutton.c: updates to match new situation
4495 * gtk/gtkoldeditable.h: remove signals changed, insert_text
4498 * gtk/gtkoldeditable.c: updates to match new situation
4500 * gtk/gtktext.c: updates to match new situation
4504 2001-10-03 Havoc Pennington <hp@redhat.com>
4506 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
4509 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4512 * tests/testtextbuffer.c (logical_motion_tests): updates
4514 2001-10-03 jacob berkman <jacob@ximian.com>
4516 * gtk/gtkwidget.c (gtk_widget_style_get_property):
4517 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
4518 * gtk/gtksettings.c (apply_queued_setting):
4519 * gtk/gtkmain.c (gtk_init_check):
4520 * gtk/gtkcontainer.c (gtk_container_child_get_property):
4523 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
4525 * gtk/gtktreemodelsort.[ch]: preparation for surgery
4526 * tests/testtreesort.c: ditto
4528 2001-10-02 Havoc Pennington <hp@redhat.com>
4530 Throughout: assorted docs
4532 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4533 gdk_window_set_geometry_hints() should be used instead.
4535 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4538 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4539 seem to exist in any .c files
4541 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
4542 g_return_if_fail (pixel < colormap->size).
4544 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
4546 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4547 NULL for @target_list to mean, use
4548 gtk_drag_dest_get_target_list (widget).
4550 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4551 drop could hang when calling gtk_drag_finish with
4552 success == FALSE and del == TRUE.
4554 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4555 drops without a matching target found would propagate
4556 to the parent widget rather than being rejected.
4558 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
4559 Use text_view->dnd_mark instead of mark name to be
4560 consistent with the rest of the code.
4562 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4563 pendantically correct for a drop-only-in-some-places
4564 widget. (Check whether you can insert in drag_drop,
4565 not just in drag_motion ... matters in theory, and
4566 for Motif drag and drop in practice.)
4568 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
4569 Damian Ivereigh to not allow drops on non-editable
4572 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4573 text to be moved from a non-editable entry.
4575 2001-10-03 James Henstridge <james@daa.com.au>
4577 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4578 s/width/fixed_width/ in order to get things to compile.
4580 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
4582 * gtk/gtkcelleditable.c: docs
4584 * gtk/gtktreemodel.h: more docs.
4586 2001-10-02 Havoc Pennington <hp@redhat.com>
4588 * gdk/x11/gdkwindow-x11.c: docs
4590 * tests/testtextbuffer.c (logical_motion_tests): add sentence
4593 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
4595 * demos/gtk-demo/Makefile.am: add editable_cells.c,
4596 list_store.c and tree_store.c
4598 * demos/gtk-demo/appwindow.c: remove tearoff item from
4599 File menu, put menubar and toolbar in handle boxes.
4601 * demos/gtk-demo/genincude.pl: various changes to support trees
4603 * demos/gtk-demo/main.c: various changes to support trees
4605 * demos/gtk-demo/stock_browser.c: changed name of demo
4606 to Stock Item and Icon Browser, so geninclude.pl doesn't see
4609 * demos/gtk-demo/editable_cells.c: new file/demo
4610 * demos/gtk-demo/list_store.c: new file/demo
4611 * demos/gtk-demo/tree_store.c: new file/demo
4613 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
4615 * gtk/gtkrc.c gtk/gtksettings.c:
4616 g_string_printfa => g_string_append_printf.
4618 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
4620 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4621 and destroy handler.
4623 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4625 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4626 'start_editing' flag to select_cursor_row. Bug spotted by Manish
4627 Singh <yosh@gimp.org>.
4629 2001-10-01 Matthias Clasen <matthiasc@poet.de>
4631 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4632 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4634 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4636 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
4638 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4639 scroll_to_cell delayed code to happen in size_allocate.
4641 * gtk/gtkstyle.c (gtk_default_draw_expander): change
4642 prelight/normal arrow drawing.
4644 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4646 * gtk/gtktreestore.c: refactor.
4648 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
4650 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4651 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4652 centers the child in relation to the to indicator height.
4654 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
4656 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4659 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
4661 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4662 property code using g_param_spec_int and changed from
4663 g_value_get_enum to g_value_get_int instead. Probably a better way
4664 to fix the problem :-)
4666 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4668 * gtk/gtkcellrenderertext.c changed "weight" property type from
4669 g_param_spec_int to g_param_spec_enum.
4671 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
4673 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4674 fix: s/Wether/Whether/ in reorderable property description
4676 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
4678 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4679 start editing when you select with a keyboard.
4681 (gtk_tree_view_button_press_event): much more graceful now.
4683 * gtk/gtkstyle.c: Draw togglebutton better.
4685 2001-09-26 Havoc Pennington <hp@redhat.com>
4687 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4688 of passing non-stock label in to gtk_dialog_new_with_buttons
4690 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4693 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4696 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4697 exist, fall back to mnemonic label, not plain label, bug #61184
4699 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
4701 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4702 stupid and emitting the signal every time.
4704 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4706 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
4708 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4710 * contrib/gdk-pixbuf-xlib/Makefile.am: install
4711 gdk-pixbuf-xlib-2.0.pc.
4713 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
4715 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4716 problem where menmonic wasn't removed properly when
4717 setting a label when there already is a label.
4718 Also, handle setting the tab label back to the same
4719 value. (#61160, #61161)
4721 * gtk/gtkentry.c (paste_received): Patch from
4722 Damian Ivereigh to replace selection if there is
4725 2001-09-25 Darin Adler <darin@bentspoon.com>
4727 * tests/.cvsignore: Ignore new test program.
4729 2001-09-25 Havoc Pennington <hp@redhat.com>
4731 * gtk/gtktextview.c: fix for #50317
4733 2001-09-25 Havoc Pennington <hp@redhat.com>
4735 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
4736 gtk_text_iter_can_insert
4738 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4740 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4741 (gtk_text_iter_can_insert): new function to fix #60282, should
4742 also fix msw's "can paste into empty buffer" bug.
4744 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
4745 "event object," #59091
4747 * gtk/gtktextbtree.c: indentation fixes
4749 * gtk/gtktextiter.c (find_by_log_attrs): fixes
4751 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
4753 * configure.in: Version 1.3.9, interface age 0, binary age 0.
4755 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4759 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
4761 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4762 function for drawing cursors between gtkentry/gtklabel/gtktextview.
4763 Should this be public? It has a bit of an odd interface, but
4764 custom editing widgets probably should be using it.
4765 Function will draw with wider width for taller cursors, and
4766 draws a little indicator arrow to indicate directoin for split
4769 * gtk/gtktextview.c: Add a "cursor_color" property.
4771 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4772 gtk_text_layout_draw().
4774 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4775 _gtk_draw_insertion_cursor().
4777 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
4779 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4780 the behavior where you could turn family_set (etc) back on
4781 and get back the values you had before.
4783 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4784 g_string_ascii_up() rather than looping through the
4787 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
4789 * gtk/gtktreeviewcolumn.c
4790 (gtk_tree_view_column_set_cell_renderer): Removed
4791 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
4793 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4794 Patch from Detlef Reichl
4796 2001-09-25 Havoc Pennington <hp@redhat.com>
4798 * tests/testtextbuffer.c (line_separator_tests): Add tests for
4799 line separators, addresses bug #57428
4801 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
4803 * gtk/gtkentry.c: Make a GtkCellEditable
4804 (get_widget_window_size): Change to let it honor size_allocate
4805 when a CellEditable.
4807 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
4809 (gtk_tree_view_set_cursor): Now you can set the cursor
4810 horizontally, as well as start editing.
4812 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4813 code to look more like the other check buttons.
4815 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4816 Change the way we calculate cell size.
4818 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4820 * demos/gtk-demo/sizegroup.c: Add mnemonics.
4822 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4825 * gtk/gtkcellrenderertext.c: Change to be editable.
4827 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4829 * test/testtreesort.c: Fix misspelling
4831 * test/testreecolumns.c: Add mnemonics.
4833 * test/testreeedit.c: New test program.
4835 2001-09-25 Havoc Pennington <hp@pobox.com>
4837 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4838 etc. docs about how these are not going to do what you want for
4839 the X/win32 ports. Futile attempt to avoid a FAQ...
4841 2001-09-24 James Henstridge <james@daa.com.au>
4843 * gtk/gtkmarshal.list (VOID): add marshal function types.
4845 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4846 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4848 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4849 with no-op copy/free functions.
4851 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4852 GtkCTreeNode get_type function.
4854 2001-09-24 Havoc Pennington <hp@redhat.com>
4856 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4858 Get rid of the newline-that-could-not-be-deleted; buffers may
4859 now be zero-length. Much easier to fix than expected, once
4860 I figured out the right way to do it. However, there are
4861 various subtle bugs introduced by this that will have to get
4862 sorted out. Please use bugzilla.
4864 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
4866 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4867 response back from the window manager if our size hasn't changed
4868 since we won't get a response back from the window manager;
4869 there was code in there to do this, but it was in the wrong
4870 place so if the hints change and the size didn't we'd expect
4873 Also, optimize the position-only-changed case by running
4874 the resize queue immediately, and clean up some comments
4877 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
4879 * gtk/gtknotebook.h: Add a compat macro that got lost.
4881 * gtk/gtktreestore.c: Doc fixes.
4883 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4884 leak for windows that receive events after being destroyed.
4885 (#60863, Joshua N. Pritikin)
4887 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4888 rather than gtk_container_queue_resize().
4890 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4891 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4892 gtk_container_child_composite_name. (#60217.)
4894 2001-09-22 Hans Breuer <hans@breuer.org>
4896 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4898 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
4900 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4901 weight value should be an int
4903 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
4905 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4906 to gtk_menu_scroll_item_visible(). Only call
4907 gtk_menu_scroll_item_visible() if the menu widget has been
4908 realized. Fixes bug #55310.
4910 2001-09-21 Havoc Pennington <hp@redhat.com>
4912 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4913 key press to IM context if cursor isn't in an editable location;
4914 bug #58425, patch from Hidetoshi Tajima
4916 2001-09-21 Havoc Pennington <hp@redhat.com>
4920 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
4921 (_gtk_text_btree_unref): fix up mark memory management
4923 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4925 2001-09-20 Havoc Pennington <hp@redhat.com>
4927 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4928 try to handle alignment here, because it's done by PangoLayout
4929 after we set the layout width. Fix from Dov.
4931 2001-09-21 Hans Breuer <hans@breuer.org>
4934 * gtk/gtk.def : updated externals
4936 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
4937 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4938 Also handle that Win32 pathes cann't be hard-coded
4940 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4941 module, themes etc directory calculations
4943 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4944 >16 bit right. The size limit within Win9x appears _not_ to be 32767
4945 but slightly smaller ...
4947 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
4948 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4950 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4952 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4953 handling. I'm not sure if it is better now, but at least not worse
4955 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4957 * gdk/win32/gdkwin32.h : reflect recent API restrictions
4959 2001-09-21 Matt Wilson <msw@redhat.com>
4961 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4962 radio_menu_item->group to NULL after removing it from the list, as
4963 it is no longer in the group. (#60869)
4965 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4967 2001-09-20 Havoc Pennington <hp@pobox.com>
4969 * configure.in (PANGO_REQUIRED_VERSION)
4970 (ATK_REQUIRED_VERSION): add variables and checks for specific
4971 versions of dependencies. Previously we didn't verify the
4972 Pango or ATk versions.
4974 2001-09-09 Havoc Pennington <hp@pobox.com>
4976 * gtk/gtktextiter.c: fool with indentation
4977 (gtk_text_iter_in_range): add g_return_if_fail
4979 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
4981 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4982 ref count on new tag to be 1. Update doc. (#60836)
4984 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
4986 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4987 call to gdk_image_new_bitmap(). (#59094, reported by
4990 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
4992 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4993 day, as well as the current month and year.
4994 (#59047, reported by Vitaly Tishkov)
4996 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
4998 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4999 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
5001 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
5003 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
5005 (build_option_menu): add func argument, connect ::changed
5006 signal to option menu instead of connecting the ::activate
5007 signal to the menu items,
5009 (toplevel): get rid of RADIOMENUTOGGLED macro,
5011 (list_toggle_sel_mode), (clist_toggle_sel_mode),
5012 (ctree_toggle_line_style), (ctree_toggle_expander_style),
5013 (ctree_toggle_justify), (ctree_toggle_sel_mode),
5014 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
5015 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
5017 (notebook_type_changed): merged standard_notebook(),
5018 notabs_notebook(), scrollable_notebook() and borderless_notebook()
5019 into notebook_type_changed()
5021 (create_list), (create_ctree), (create_notebook),
5022 (create_progress_bar): changed OptionMenuItem arrays into
5023 gchar * arrays. Removed "Extended" item where used.
5027 2001-09-20 Sven Neumann <sven@gimp.org>
5032 * gtk/gtkselection.c
5034 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
5036 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
5038 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
5039 a missing pango_layout_iter_free ().
5041 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
5043 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
5044 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
5046 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
5047 the function definition so we don't accidentally rely on
5048 the compat #define from gtk_radio_menu_item_group.
5049 (#60782, Jeff Franks)
5051 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
5053 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
5054 incorrect values for top, right and bottom due to cut-and-paste
5055 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
5057 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
5059 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
5060 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
5061 window, not just on the client leader. (#58463)
5063 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
5065 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
5067 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
5068 non-public _gtk_menu_item_set_placement.
5070 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
5072 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
5074 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
5075 gdk/linux-fb/gdkcolor-fb.c:
5076 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
5079 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
5081 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
5082 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
5085 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
5087 Patch from Frank Belew #59037 for Solaris compilation.
5089 * gtk/maketypes.awk: Change syntax slightly for a call
5090 to sub(), apparently making awk on Solaris happier.
5092 * gtk/gtktreeview.c: Remove C++ comments.
5094 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
5096 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
5097 to handle '99% of the time. (#60473, reported by Christian Rose)
5099 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
5100 which no longer exists. (#60379, reported by Vitaly Tishkov)
5102 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
5106 * gdk/Makefile.am: kill EXTRA_DIST clearing.
5108 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
5110 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
5111 as its broken in automake 1.4, add explicit object rule to
5114 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
5115 get rid of uneccessary stamps, group stuff more logically, and build
5116 sources due to object rules. fix srcdir!=builddir.
5118 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
5120 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
5121 incorrect parameter to compute_double_length
5122 (#58680, patch from Matthias Clasen)
5124 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
5126 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
5128 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
5129 for GDK_RELEASE_MASK to avoid warnings with Forte.
5131 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
5134 2001-09-18 Alex Larsson <alexl@redhat.com>
5136 * gtk/gtkcheckbutton.c:
5137 * gtk/gtkradiobutton.c:
5138 Don't draw with GTK_STATE_ACTIVE.
5142 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
5144 * gtk/gtktextdisplay.c:
5145 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5146 unfocused with base_gc [GTK_STATE_ACTIVE].
5149 Add select all menu-item.
5150 Default cursor color is red.
5151 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5152 unfocused with base_gc [GTK_STATE_ACTIVE].
5154 * gtk/gtklabel.[ch]:
5155 Add keynav + menu to selectable lables.
5156 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5157 unfocused with base_gc [GTK_STATE_ACTIVE].
5160 Add drag and drop support.
5163 (This was checked in earlier)
5164 New default values for text/base SELECTED and ACTIVE
5166 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
5168 * configure.in: up version to 1.3.8, interface age 0,
5169 binary age 0, depend on glib 1.3.8.
5171 * NEWS: 1.3.8 updates.
5173 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
5175 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
5178 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
5179 reason to call it beyond emiting the two signals.
5181 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
5184 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
5186 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
5187 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
5188 PangoFontDescription.
5190 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
5191 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
5194 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
5196 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
5197 direct access to style->font. Deprecate gtk_style_ref/unref.
5199 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
5200 Remove gtk_style_ref/unref with g_object_ref/unref.
5202 * gtk/gtkcalendar.c: Remove leftover macros accessing
5205 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
5208 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
5211 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
5213 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
5214 "can_activate" properties in favor of
5215 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
5216 and GTK_CELL_RENDERER_MODE_EDITABLE
5218 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
5220 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
5221 editable widgets. This function is private, and should only be
5222 used by GtkTreeView.
5224 2001-09-18 Matt Wilson <msw@redhat.com>
5226 * docs/Makefile.am (EXTRA_DIST): don't use += before =
5228 * docs/faq/Makefile.am (EXTRA_DIST): likewise
5230 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
5232 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
5233 (EXTRA_HEADERS): likewise
5235 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
5236 (EXTRA_HEADERS): likewise
5237 (EXTRA_DIST): likewise
5238 (CLEANFILES): likewise
5240 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
5242 * tests/Makefile.am (EXTRA_DIST): likewise
5244 * Makefile.am (install-data-local): changed to use
5245 install-data-hook, which runs after install-pkgconfigDATA, so that
5246 the pkgconfigdir will have been created and populated first.
5248 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
5250 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
5251 be the last big GtkTreeView API change.
5253 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
5254 replace with "activate" and "start_editing". Also, added a
5255 "can_activate" and "can_edit" property.
5257 * gtk/gtktreeviewcolumn.c: modify to use above.
5259 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
5261 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
5263 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
5265 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
5266 icon instead of one with ugly white background.
5268 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
5270 * demos/gtk-demo/stock_browser.c (id_to_macro): make
5271 the uppercasing work. (#59550)
5273 2001-09-14 Jakub Steiner <jimmac@ximian.com>
5275 * gtk/stock-icons/dialog_error.png:
5276 * gtk/stock-icons/dialog_question.png: more road signs
5278 2001-09-13 Jakub Steiner <jimmac@ximian.com>
5280 * gtk/stock-icons/dialog_question.png:
5281 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
5284 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
5286 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
5287 signals to make them more clear. Also, change ::range_changed to
5289 * gtk/gtktreemodel.c: Adjust to interface change
5290 * gtk/gtktreemodel.h: ditto
5291 * gtk/gtktreemodelsort.c: ditto
5292 * gtk/gtktreestore.c: ditto
5293 * gtk/gtkliststore.c: ditto
5294 * gtk/gtktreeview.c: ditto
5295 * tests/testtreecolumns.c: ditto
5296 * gtk/gtkmarshal.list: Actually remove a marshaller!
5298 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
5301 Add support for Ctrl+Up/Down arrow to move cursor to beginning
5302 of previous/next paragraph. If within a paragraph cursor moves to
5303 beginning of that paragraph.
5305 2001-09-12 Jakub Steiner <jimmac@ximian.com>
5307 * gtk/stock-icons/dialog_question.png: replacing the shaky
5308 question mark with a sans-serif one.
5309 * gtk/stock-icons/stock_top.png, stock_bottom.png,
5310 stock_first.png, stock_last.png: using the new style arrows
5311 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5313 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5315 * gtk/stock-icons/stock_zoom*: anti-aliased
5316 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5317 '-' with a '_', removed the wrong files
5319 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
5321 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5323 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5324 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5325 than in gtk-2.0/major.minor.micro/<type>/. This
5326 works better for a search path for modules.
5328 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5329 gtk_binary_version variable holding major.minor.(micro-binary_age).
5331 * modules/input/Makefile.am (moduledir): Fix installation
5332 directory to match change in lookup location.
5334 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
5335 suffixes. Needs to be handled in g_module_build_path().
5337 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5340 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
5342 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5343 causing RC properties not to work.
5345 2001-09-11 Jakub Steiner <jimmac@ximian.com>
5347 * gtk/stock-icons/dialog-error.png: less drastic
5348 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5349 "STOP" is international enough.
5350 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5351 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5353 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
5355 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5356 (add|remove)_selection_clipboard symmetric. (bug #59836)
5358 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
5359 Avoid SEGV for empty tree. (bug #60243)
5361 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
5363 * tests/testgtk.c (create_idle_test): slight fix for
5364 g_object_set() not usable for nesting anymore.
5366 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
5367 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5368 properties, supply ::shadow_type properties instead as most
5371 2001-09-10 Alex Larsson <alexl@redhat.com>
5373 * demos/gtk-demo/stock_browser.c:
5378 * gdk/gdkrectangle.c:
5379 * gtk/gtktypeutils.c:
5380 Update to use the new g_boxed_type_register_static API.
5382 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5384 * gtk/gtktreestore.c:
5385 Fix looping in gtk_tree_store_init() waiting for zero random int.
5387 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
5389 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5390 behaviour which havoc broke. they have to default to 1.0 for
5393 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5395 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5397 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5398 Amend previous change to avoid runtime error in g_param_spec_ref()
5400 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
5402 * gtk/gtkrc.c (insert_rc_property): Fix blank line
5405 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
5407 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5408 do a lookup immediately after creating style->property_cache,
5409 since bsearch crashes on zero length for Solaris.
5410 (Found by Padraig O'Briain.)
5412 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5414 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5415 Really return NULL if not set.
5416 (gtk_widget_init): Remove unused varaible.
5418 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5421 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5424 2001-09-08 Havoc Pennington <hp@pobox.com>
5426 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
5427 people might want to use
5429 2001-09-08 Havoc Pennington <hp@pobox.com>
5431 * gtk/gtkalignment.c (gtk_alignment_class_init): default
5432 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5434 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5436 * gtk/gtktextiter.c: fix docs
5437 (gtk_text_iter_spew): get rid of this
5439 * gtk/gtklayout.c: docs
5441 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5442 to center image and label together, instead of having image on
5443 left and label centered, patch/suggestion from Jacob
5445 * gtk/gtkdialog.c: docs
5447 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
5449 * gtk/gtkliststore.c: Write documentation
5450 * gtk/gtktreestore.c: Write documentation
5452 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
5454 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5455 with GArray and bsearch(), to remove dependency on a still
5456 evolving interface that we want to keep private to glib/gobject.
5458 2001-09-08 Havoc Pennington <hp@pobox.com>
5460 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5463 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5465 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5467 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5469 * gtk/gtkscrolledwindow.h: docs fixes
5471 * gtk/gtkimage.c (gtk_image_new): docs fixes
5473 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
5475 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
5476 false alarm constness warning with a cast.
5478 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5479 for the inside-gdk case.
5481 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
5483 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5486 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5487 change models, #59899
5489 2001-09-07 Havoc Pennington <hp@pobox.com>
5491 * gtk/gtkmain.c: move some docs inline
5493 2001-09-07 Havoc Pennington <hp@pobox.com>
5495 * gtk/gtk.h: tsk tsk, jrb broke the build
5497 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
5499 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5500 Removed 'fill' attribute. It was silly b/c that was a property of
5501 the cell renderer, anyway.
5502 (gtk_tree_view_column_render): Actually render the packed
5504 * doc/tree-column-sizing.txt: initial devel documentation.
5505 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5506 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5508 * tests/testtreefocus.c: fix up to reflect above changes.
5509 * tests/testtreeview.c: ditto
5510 * demos/gtk-demo/stock_browser.c: ditto
5512 2001-09-07 Alex Larsson <alexl@redhat.com>
5514 * gdk/linux-fb/gdkcolor-fb.c:
5515 Removed unused function.
5517 * gdk/linux-fb/gdkdrawable-fb2.c
5518 * gdk/linux-fb/gdkfont-fb.c:
5519 Use PangoLanguage functions.
5521 * gdk/linux-fb/gdkinput.c:
5522 * gdk/linux-fb/gdkselection-fb.c:
5525 * gdk/linux-fb/gdkwindow-fb.c:
5526 Fix warning. Implement gdk_window_set_icon_list() and
5527 gdk_window_get_frame_extents(). (No icon support yet though.)
5529 * gtk/gtkwindow.c (gtk_window_get_position):
5530 If window->frame is set get the extents of it instead.
5532 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
5534 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
5535 Make the default default colormap the GdkRGB colormap,
5536 not the system colormap.
5538 * gtk/gtkinvisible.c (gtk_invisible_init)
5539 gtk/gtkwindow.c (gtk_window_init): Set the current
5540 colormap, as returned by _gtk_widget_peek_colormap()
5543 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5544 to GTK+. Make it return %NULL instead of the default
5545 colormap if no colormap has explicitely been pushed.
5547 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5548 colormaps on ancestral widgets before defaulting the
5549 the system default colormap.
5551 * docs/Changes-2.0.txt: explain colormap changes.
5553 2001-09-07 Havoc Pennington <hp@redhat.com>
5555 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
5558 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
5560 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
5561 make gdk_set_use_xshm a noop. Remove --no-xshm command line
5562 option. If we aren't autodetecting properly, we need
5563 to fix the problem, or at least make it an environment
5564 variable setting, to avoid problems with propagating
5565 to embedded children, plugins, etc.
5567 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5569 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5570 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5571 New function to render a pixmap and mask for a particular colormap.
5573 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5574 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5575 of internal implementation of the same.
5577 2001-09-07 Havoc Pennington <hp@redhat.com>
5579 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5580 debug code that seems to have caused a breakpoint in valid cases
5582 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5583 pointer on the first view when adding the second view, fixes
5584 crash when closing gtk-demo text test with active selection
5586 * gtk/gtktextbuffer.c
5587 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5588 clipboards in the list of clipboards - probably fixes #59836
5590 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
5592 Make gdkx.h the only installed header from gdk/x11.
5593 All structures in gdk/x11 are opaque.
5595 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5596 Don't install gdk{drawable,pixmap,window}-x11.h.
5598 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
5599 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
5600 GdkVisualClass into C files.
5602 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5604 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5605 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5606 Add public functions to replace previously exported direct
5608 gdk_x11_colormap_get_{xdisplay,xcolormap}
5609 gdk_x11_cursor_get_{xdisplay,xcursor},
5610 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
5611 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5612 gdk_x11_gc_get_{xdisplay,ximage}
5614 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5615 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5617 Fix a number of variables and functions that were exported
5618 "accidentally" from GDK.
5620 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5621 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
5622 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5623 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5624 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5625 gdk_event_queue_find_first, gdk_event_queue_remove_link,
5626 gdk_event_queue_append, gdk_event_button_generate,
5627 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5629 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
5630 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5631 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
5632 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5633 gdk_use_xshm, gdk_input_ignore_core.
5635 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5636 #defines to namespace functions into the private _gdk_
5639 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5640 to replace gdk_parent_root exported variable. Adjust and
5641 deprecate GDK_ROOT_PARENT().
5643 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5644 GDK_ROOT_PARENT usage, remove includes of port-specific
5647 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
5648 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
5649 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5651 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5652 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
5653 gdk_wm_delete_window functions, gdk_wm_take_focus,
5654 use gdk_atom_intern() instead.
5656 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5657 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
5658 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5660 Unexport gdk_selection_property, just use
5661 gdk_atom_intern ("GDK_SELECTION").
5663 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
5664 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
5665 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
5666 GdkVisualprivate, gdk_x11_gc_flush.
5668 Make a number of public exports of variables into functions
5669 to increase encapsulation.
5671 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
5672 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
5673 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
5675 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5676 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
5679 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5680 docs/Changes-2.0.txt:
5681 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5682 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5683 Add gdk_x11_get_default_xdisplay().
5685 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
5686 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
5687 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
5688 Don't export gdk_progclass, move --class command line
5689 option and handling to common portion of GDK.
5691 Miscellaneous fixes:
5693 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5694 g_return_val_if_fail that should have been g_return_if_fail.
5696 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5697 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5699 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5702 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
5703 Remove unused gdk_key_repeat_disable/restore.
5705 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
5706 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5707 Remove unused gdk_null_window_warnings variable.
5709 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5710 it can be retrieved from the repository; it is too far
5711 from functional to be worth having people check out;
5712 it would be easier to start from scratch, I suspect.
5714 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5716 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5717 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5718 Fix some accidentally global variables and unused global variables.
5720 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
5721 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
5722 Fix some accidentally global variables and unused global variables.
5724 Add some space for future expansion to multihead.
5726 * gdk/gdkdrawable.h: Add four reserved function pointers
5727 for future expansion of GdkDrawableClass.
5729 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5730 where we can put a GdkScreen * later.
5732 2001-09-07 Havoc Pennington <hp@redhat.com>
5734 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5735 adjustments after validating destination yrange; fixes #53918
5736 (This may cause other issues, but I hope it won't)
5738 2001-09-05 Havoc Pennington <hp@redhat.com>
5740 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5741 line into start line, update the character counts in parent nodes;
5742 caused a bug when end and start line had different parent nodes.
5744 2001-08-30 Havoc Pennington <hp@redhat.com>
5746 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5747 assertion that tag is in a table
5749 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
5751 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5752 g_strcasecmp on NULL strings. (#59058)
5754 2001-09-06 Alex Larsson <alexl@redhat.com>
5758 * gtk/gtkspinbutton.c:
5759 * gtk/gtktipsquery.c:
5760 Use GtkType/GType instead of uint.
5762 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
5764 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5767 * gtk/gtktreestore.c (gtk_list_store_init): ditto
5769 * gtk/gtktreesortable.c: add docs.
5771 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
5775 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
5778 * modules/input/Makefile.am (install-data-local): Don't
5779 run gtk-query-immodules if DESTDIR is set.
5781 * NEWS: Various additions.
5783 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
5785 * NEWS: updates for 1.3.7 release.
5787 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
5789 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5790 handle default sort feature
5792 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5793 new function to handle default sort.
5794 (gtk_tree_sortable_has_default_sort_func): check if default sort
5797 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
5798 handle default sort feature
5800 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
5802 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5803 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5806 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
5808 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5809 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5812 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5815 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
5817 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5818 so that we don't eternally update the keymap after we
5819 get a change notification.
5821 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5824 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
5826 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5827 it working. It mostly works now, although there're still a few issues
5830 * tests/testtreesort.c (main): changes to have a better test
5831 application for the GtkTreeModelSort.
5833 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
5835 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5838 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5839 gpointer search_data argument to function definition and
5840 prototype, to match GtkTreeViewSearchEqualFunc typedef.
5842 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
5844 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5847 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
5849 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5851 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5853 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
5855 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
5856 Instead of always mirroring the selection to a single PRIMARY
5857 selection, allow it to be mirrored to any number of clipboards.
5859 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
5860 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5862 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5863 GtkClipboard argument, and for paste_clipboard, the
5864 @override_location argument from @paste_primary.
5866 * gtk/gtktextview.c: Adapt to above change.
5868 2001-08-30 Havoc Pennington <hp@redhat.com>
5870 * gtk/gtktextview.c (invalidated_handler): put validate idle at
5871 resize - 2 just for flexibility
5873 2001-08-30 Havoc Pennington <hp@redhat.com>
5875 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5876 object from the empty-child-anchor case by drawing a little box.
5878 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5879 if the child anchor has no anchored widgets - fixes #59328.
5881 Also, remove bizarre deletion of preedit string that seems to have
5882 gotten in here somehow.
5884 2001-08-30 Havoc Pennington <hp@redhat.com>
5886 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5887 to #58420 from Hidetoshi Tajima and Matthias Clasen
5889 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
5891 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5892 change color when the GtkTreeView loses focus.
5894 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5897 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5899 2001-08-28 Havoc Pennington <hp@pobox.com>
5901 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5903 2001-08-28 Havoc Pennington <hp@pobox.com>
5905 * demos/gtk-demo/main.c (setup_default_icon): add default icon
5907 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5909 (gtk_radio_button_new_with_label): warning fix
5911 * gtk/gtkdnd.c: used some random GtkImage private structs,
5912 update to reflect GtkImage changes
5914 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5915 whether the hint is supported, just always set the icon. A task
5916 list might want to use it even if the WM doesn't, and the WM may
5917 change over time. Also, XDeleteProperty() if list == NULL.
5919 * gtk/gtkwindow.c (gtk_window_set_icon_list)
5920 (gtk_window_get_icon_list)
5921 (gtk_window_set_icon)
5922 (gtk_window_get_icon)
5923 (gtk_window_set_default_icon_list)
5924 (gtk_window_get_default_icon_list):
5927 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5929 * gtk/gtkimage.c: Implement property support, bug #59408
5931 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5932 on reparent-without-removing-first a bit more helpful.
5933 Let's just destroy this FAQ.
5935 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
5937 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5938 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5940 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
5942 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5943 of use_text_format to the end of the function. (#56447)
5945 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
5947 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5948 only in response to an area_prepared signal.
5950 2001-08-28 Alex Larsson <alexl@redhat.com>
5952 * gtk/gtkwidget.c (gtk_widget_class_init):
5953 Make unrealize GTK_RUN_LAST.
5955 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5957 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5958 with_label and with_mnemonic should create radio buttons, not
5961 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
5963 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5964 * tests/treestoretest.c (make_window): ditto
5965 * demos/gtk-demo/main.c (create_tree): ditto
5966 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5968 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
5970 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5971 GTK selection types rather than GtkTreeSelectionMode.
5973 * docs/Changes-2.0: Add comment about selection change.
5975 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
5977 * gtk/gtkenums.h (GtkSelectionMode): deprecate
5978 GTK_SELECTION_EXTENDED.
5980 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5981 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5983 * gtk/gtkctree.c: ditto
5985 * gtk/gtklist.c: ditto
5987 * gtk/gtktree.c: ditto
5989 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
5991 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5992 of typos in compat macros. (#59624, Skip Montaro)
5994 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
5996 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5999 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
6001 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
6002 interface to be a standard setter from gtk_menu_item_right_justify.
6003 (gtk_menu_item_get_right_justified): a getter to go with the setter
6005 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
6006 gtk_menu_item_right_justify.
6008 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
6009 gtk_menu_item_set_right_justified.
6011 2001-08-27 Jens Finke <jens@gnome.org>
6013 * gtk+.spec.in: Updated to match gpp requirements, reworked the
6014 files section to make it work with 1.3.x releases.
6016 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
6018 * gtk/gtkbutton.[ch]:
6019 Add properties for labels, mnemonics and stock items.
6020 Added C accessor functions for the properties.
6021 Removed deprecated button->child.
6023 * gtk/gtkradiobutton.c:
6024 * gtk/gtktogglebutton.c:
6025 Update to use the functions in GtkButton.
6027 * gtk/gtkcheckbutton.c:
6028 Update to use the functions in GtkButton.
6029 Changed size allocation of child. Now only gets as much
6030 space as it requests.
6033 Don't use GtkButton->child
6038 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
6041 * tests/Makefile.am:
6042 Ressurect the properties test.
6043 I don't care if it is inferior, I just want to test my property code.
6045 2001-08-25 Chema Celorio <chema@celorio.com>
6047 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
6048 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
6049 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
6051 2001-08-24 Havoc Pennington <hp@pobox.com>
6053 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
6054 these are already in gtkmenu.h, and the copies
6057 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
6059 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
6060 special-case bitmaps to allow no colormap
6061 (bitmap1): implement no-colormap bitmap-getting
6062 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
6065 (rgb1a, rgb1): change the way we read the data out of the image,
6066 old way didn't seem to work quite right.
6068 I'm pretty sure a lot of the rgbconvert code is still broken.
6070 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
6071 above position constraint (I really intended to do this before,
6072 don't know what's up with that)
6073 (gtk_XParseGeometry): shut up gcc
6075 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
6076 and "0" should have been. remove the attempted 4-bytes-at-once
6077 optimization, it was totally broken.
6079 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
6081 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
6082 on push to buttons (based on patch from Soeren Sandmann, #54720)
6084 - Add child_displacement_x/y style properties to control how far the
6085 child moves when the button is depressed.
6087 - Add non-exported function _gtk_button_set_depressed to clean
6088 up the handling of the in/out shadow and separate it frmo
6091 - Lots of code cleanup and simplification of state handling
6092 for GtkButton/GtkToggleButton.
6094 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
6095 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
6097 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
6099 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
6100 and make gtk_image_new() take no arguments. The compiler will
6101 catch it, and it is vastly more useful than having
6102 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
6104 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
6105 to add tearoff-title property (#51319, Lee Mallabone)
6107 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
6109 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
6110 gtk_menu_item_configure(). (#58925)
6112 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
6114 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
6115 "use_align" to give people the option to just make a cell visible.
6117 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
6118 we were scrolling past the end of the tree.
6120 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
6121 rename gtk_tree_view_column_pack_start_cell_renderer to
6122 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
6124 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
6126 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
6127 a stray g_object_ref() left over from gtk_object_ref/sink.
6128 (Pointed out by Josh Pritikin.)
6130 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
6132 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
6133 to gtk_container_get_children. Added deprecated compatibility
6134 macro. (Suggested by Vitaly Tishkov, #59051)
6136 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
6139 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
6141 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
6142 gtk_menu_bar_append/prepend/insert, forgot to do this
6143 when we deprecated gtk_menu_append/prepend/insert.
6145 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
6148 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
6149 renamed by compat macro.
6151 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
6152 gtk_font_selection_dialog_get_font(). (Suggested by
6153 Vitaly Tishkov, #59383)
6155 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
6157 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
6158 Rename from gtk_text_tag_table_size(). (#59366)
6160 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
6162 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
6163 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
6164 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
6167 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
6169 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
6170 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
6171 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
6173 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
6175 [ Patch from Sebastian Wilhelmi, 52790 ]
6177 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
6179 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
6180 Move compatibility macros from g[dt]kcompat.h to within
6181 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
6183 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
6185 * demos/Makefile.am demos/gtk-demo/Makefile.am
6186 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
6187 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
6189 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
6190 testpixbuf.c}: Fix usages of deprecated functions.
6192 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
6194 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
6195 when changing models.
6197 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
6199 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
6200 We check the current event for modifiers rather than try to trap
6203 2001-08-22 Anders Carlsson <andersca@gnu.org>
6205 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
6206 It's LIST_STORE, not LISTSTORE.
6208 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
6210 * gtk/gtk.h: Remove commented out gtkpacker reference.
6212 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
6214 * configure.in (all_loaders): Add tga loader,
6215 patch by Nicola Girardi. (#56067)
6217 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
6219 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
6220 a little. More needs to be done tomorrow.
6222 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
6224 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
6226 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
6228 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
6229 reported by Kristian Rietveld <kristian@planet.nl> to handle row
6231 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
6232 <kristian@planet.nl> to change destroy order.
6234 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
6236 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
6239 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
6241 * gtk/gtkliststore.c: Fix up warnings, #58928.
6243 * gtk/gtktreeselection.h: Change signal prototype, #58647
6245 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
6248 * gtk/gtkstyle.c: Actually prelight arrow, #50981
6250 2001-08-18 Hans Breuer <hans@breuer.org>
6252 * gdk/gdk.def : updated externals
6254 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
6255 is required to get (at least) visible in entry fields. Some selections
6256 are really handled now - even on win32 - but copying via middle
6257 mouse button into a different app needs to wait ...
6259 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
6260 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
6262 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6263 handling. I'm not sure if it is better now, but at least not worse
6265 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
6266 with SetWindowPos () which allows more fine-tuning backing-store wise
6268 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
6269 Also changed move/resize to be more like the X version.
6271 * gtk/gtk.def : updated externals
6273 2001-08-19 Sven Neumann <sven@gimp.org>
6276 * tests/testtreesort.c
6277 * tests/treestoretest.c: inserted some casts to get rid of compiler
6280 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
6282 * gtk/gtktreeviewcolumn.c
6283 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
6285 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
6286 (_gtk_tree_view_find_node): If *node is NULL,
6287 *tree should be NULL too.
6289 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
6291 * tests/testtreecolumns.c: ditto
6292 * tests/testtreefocus.c: ditto
6293 * tests/testtreesort.c: ditto
6294 * tests/testtreeview.c: ditto
6295 * tests/treestoretest.c: ditto
6297 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
6299 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
6300 signals; is_expander/is_expanded.
6302 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6305 * gtk/gtktreeview.c: set above properties.
6307 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
6309 * gtk/gtkwidget.h: Really remove set_default_style().
6311 * docs/Changes-2.0.txt: added a note about
6312 gtk_widget_push/pop/set_default_style.
6314 2001-08-18 Havoc Pennington <hp@pobox.com>
6316 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6317 hints_changed in addition to the other cases.
6318 (gtk_window_move_resize): include last position from configure
6319 notify in debug spew
6321 2001-08-18 James Henstridge <james@daa.com.au>
6323 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6324 second argument to the weak ref notify, cleaning up some uglyness.
6325 (gtk_accel_group_attach): remove and add the weak notifier when
6326 changing the accel groups slist.
6327 (gtk_accel_group_detach): same here.
6329 2001-08-17 Darin Adler <darin@bentspoon.com>
6331 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6332 missing parameters to utf8 functions to make it compile.
6334 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
6336 * gtk/gtktreeprivate.h:
6337 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6338 (gtk_tree_view_init), (gtk_tree_view_set_property),
6339 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6340 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6341 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6342 (gtk_tree_view_set_destroy_count_func),
6343 (gtk_tree_view_set_enable_search),
6344 (gtk_tree_view_get_enable_search),
6345 (gtk_tree_view_get_search_column),
6346 (gtk_tree_view_set_search_column),
6347 (gtk_tree_view_get_search_equal_func),
6348 (gtk_tree_view_set_search_equal_func),
6349 (gtk_tree_view_search_dialog_destroy),
6350 (gtk_tree_view_search_position_func),
6351 (gtk_tree_view_interactive_search),
6352 (gtk_tree_view_search_delete_event),
6353 (gtk_tree_view_search_button_press_event),
6354 (gtk_tree_view_search_key_press_event),
6355 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6356 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6357 * gtk/gtktreeview.h:
6358 Add heavily modified patch from Kristian Rietveld to handle
6359 interactive searching.
6361 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
6363 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6366 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6367 GtkMenuShell::selection_done, now that we have it, instead of
6368 ::deactivate so we're not tearing the menu apart and notify
6369 the user prematurely.
6371 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
6373 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6374 window, clear window->need_default_position to avoid infinite loops.
6375 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6377 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
6379 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6380 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6381 (gtk_tree_view_set_property): don't cast possible NULL objects.
6382 (gtk_tree_view_destroy): reset the model to NULL.
6384 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6385 parent_class handler.
6387 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
6389 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6391 2001-08-17 Anders Carlsson <andersca@gnu.org>
6393 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6394 point numbers so that the result will be floating point.
6396 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
6398 * tests/testgtk.c (create_handle_box):
6399 (create_toolbar): Replace gtk_window_set_policy calls by
6400 gtk_window_set_resizable.
6402 2001-08-16 Jakub Steiner <jimmac@ximian.com>
6404 * gtk/stock-icons/dialog_info.png: new style bulb
6405 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6406 * gtk/stock-icons/dialog_warning.png: need a hand?
6407 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
6408 the aa border gets chopped off ok
6409 * gtk/stock-icons/stock_colorselector.png: using the new hand
6410 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
6411 this one is for, but the old icon was butt ugly.
6412 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6413 * gtk/stock-icons/stock*_insert_object.png: "
6414 * gtk/stock-icons/stock_index.png: using new hand icon
6415 * gtk/stock-icons/stock*_new.png: the document template being used
6417 * gtk/stock-icons/stock*_print*.png: new print and print preview
6419 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
6420 icons based on Tuomas' floppy image.
6421 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6422 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6423 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6424 * gtk/stock-icons/stock*_undelete.png: "
6425 * gtk/stock-icons/stock_preferences.png: I have a version with a
6426 document base if the sliders are no good.
6427 * gtk/stock-icons/stock_properties.png: properties
6430 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
6431 (tigert@ximian.com) clipboard icons
6432 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6433 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6434 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6437 2001-08-16 Sven Neumann <sven@gimp.org>
6439 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6441 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
6443 * gtk/gtkcellrenderertext.c:
6444 Avoid warning when specifying NULL for "attributes" property
6446 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
6448 * docs/debugging.txt: Add a warning about --enable-debug=no,
6449 some editorial changes.
6451 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6453 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
6454 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
6455 debugging info, remove unused debug flags. (#58330)
6457 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
6459 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
6460 (gtk_tree_selection_select_all): Remove strict checking for rows.
6462 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6464 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
6465 Don't remove the tooltip window when the tip text changes. (#15891)
6467 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
6469 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6472 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
6474 * Makefile.am (EXTRA_DIST): Fix problem with trying to
6475 dist files from intl/, which is no longer there.
6477 2001-08-11 Hans Breuer <hans@breuer.org>
6479 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6480 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
6481 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
6482 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
6483 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6484 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6486 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6487 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6488 GDK_TYPE_EVENT signals
6490 * gtk/gtkalignment.c : removed 'direct allocation bug',
6491 which Tim discovered while reading the patch
6493 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
6495 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6496 compat macros for push/pop/set_visual that were supposed
6497 to be added a long time ago, but got dropped.
6499 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
6501 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6504 2001-08-07 Havoc Pennington <hp@pobox.com>
6506 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6508 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6509 some fixage is needed here, but nothing simple. Owen understands
6512 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6513 sizing and positioning. Also, fix bug in compute_geometry_hints
6514 (width/height confusion for setting min size).
6515 (gtk_window_move): new function
6516 (gtk_window_resize): new function
6517 (gtk_window_get_size): new function
6518 (gtk_window_get_position): new function
6519 (gtk_window_parse_geometry): new function
6521 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6522 (gtk_widget_get_size_request): new function
6523 (gtk_widget_get_usize): delete, that was a short-lived function
6525 (gtk_widget_set_usize): deprecate
6526 (gtk_widget_set_uposition): deprecate, make it a trivial
6527 gtk_window_move() wrapper
6528 (gtk_widget_class_init): remove x/y/width/height properties,
6529 add width_request height_request
6531 * demos/*: update to avoid deprecated functions
6533 * gtk/gtklayout.c: add x/y child properties
6535 * gtk/gtkfixed.c: add x/y child properties, and get rid of
6538 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6541 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6542 configure events on toplevel windows are always in root window
6543 coordinates, following ICCCM spec that all synthetic events
6544 are in root window coords already, while real events are
6545 in parent window coords. Previously the code assumed that
6546 coords of 0,0 were parent window coords, which was
6549 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6552 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
6553 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
6554 hints in gtk_window_parse_geometry()
6556 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6557 new USER_POS USER_SIZE hints
6559 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6561 * tests/prop-editor.c (properties_from_type): Use
6562 g_object_class_list_properties to get the param specs
6563 for a given type. (#58609)
6565 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6567 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6568 free the text_aa parts. (#57549)
6570 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6572 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6573 not the foreground color. (#57621)
6575 2001-08-09 Alexander Larsson <alexl@redhat.com>
6577 * gdk/win32/gdkfont-win32.c:
6578 Update to the new pango win32 api.
6580 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
6582 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6583 COMPOUND_TEXT instead of TEXT
6584 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6585 interpret the return value of g_string_to_compound_text()
6588 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
6590 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6591 fail if iter is NULL. (#58347)
6593 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6595 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6596 some off-by-one issues, fixing selection of line-ends. (#50323)
6598 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6600 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6601 functions in order to make mouse operation work again in the
6602 color wheel. (#58604)
6604 2001-08-07 James Henstridge <james@daa.com.au>
6606 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6607 the accelerator when the accel object is changed. Fixes bug
6610 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
6612 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6613 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6614 (gnome bugzilla #58202)
6616 2001-08-06 Havoc Pennington <hp@pobox.com>
6618 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
6619 GDK_IS_WINDOW() branch of this was a bit screwed up, because
6620 it was expecting a GdkWindow, not a GdkWindowImplX11.
6622 Also, we were getting the window rect in screen coords
6623 and the screen rect in window coords then intersecting
6624 them; instead, get window rect in window coords.
6626 Finally, there were codepaths that resulted in a stuck server grab
6627 (when the window was fully onscreen, or on gdk_image_new()
6628 failure); make the server ungrab thing a bit more
6631 2001-08-06 Sven Neumann <sven@gimp.org>
6633 * gdk/gdkpango.c (gdk_pango_context_destroy):
6634 check if info->colormap != NULL before unref'ing it. It might have
6635 been set to NULL using gdk_pango_context_set_colormap().
6637 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
6639 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
6640 Fix conversion from float to int so that we don't get
6641 skew in the int => float => int roundtrip.
6642 (#58120, reported by Vitaly Tishkov). Also fix problem
6643 where if no alpha was set, the returned alpha
6644 from (say) set_current_alpha() was returned as 1, not 65535.
6646 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
6648 * gtk/gtklist.c (gtk_list_clear_items): Fix
6649 problem with selecting a new focus child.
6651 * gtk/gtklist.c (gtk_list_clear_items): Clear
6652 list->undo/list_focus_child after unparenting
6653 child, since unparenting the child can result
6654 in list->last_focus_child being set. (#58024)
6656 * Makefile.am (SUBDIRS): Add target specific pc
6657 files to DISTCLEANFILES.
6659 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6660 (58327, Matthias Clasen)
6662 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
6664 * tests/testgtk.c: Patch from Hans (with various modifications),
6665 to add the ability to use testgtk as a rough-and-ready
6666 benchmark. Try, 'testgtk --bench all:5' (if you want decent
6667 numbers, run without a window manager)
6669 2001-08-04 Alexander Larsson <alexl@redhat.com>
6671 * gdk/win32/gdkinput.c:
6672 Add #ifdef HAVE_WINTAB around wintab.h include.
6675 Removed marshals that have been moved to glib.
6676 Commented out plug and socket. They didn't compile for me
6679 2001-08-04 Hans Breuer <hans@breuer.org>
6681 * gtk/stocks-icons/makefile.msc : new file
6682 * gtk/makefile.msc.in : use it
6684 * gtk/gtkstyle.c : not all platforms do provide M_PI and
6685 friends, but luckily there is G_PI
6687 * gtk/gtk.def : updated
6689 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
6690 windows WS_POPUP, but only those without a parent. This fixes the
6691 mis-alignment between the selectable (temp, input only) window and
6692 the window text of GtkLabel.
6694 (gdk_window_show) : respect private->state when actually showing
6697 (gdk_window_set_transient_for) : Implementation from Wolfgang
6698 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
6699 error handling. Should fix #50586.
6701 * gdk/win32/gdkevents-win32.c : beautify log output
6703 2001-08-04 Michael Natterer <mitch@gimp.org>
6705 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6706 Need to show the image after adding it to the GtkImageMenuItem.
6707 This used to work without in testgtk because of the
6708 gtk_widget_show_all() at the end of the function.
6711 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
6713 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
6714 (gtk_notebook_set_child_property): fix finding of child's page,
6715 since we have to validly deal with labels and menus here as well.
6716 (gtk_notebook_get_child_property): fix warning.
6717 (gtk_notebook_class_init): property tab_pack is of type
6718 GTK_TYPE_PACK_TYPE (enum) not boolean.
6719 (gtk_notebook_find_child): don't always warn, we might be looking
6720 for a label or menu child.
6721 (gtk_notebook_map): fix mapping of panel.
6723 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6724 widget's mapped state, regardless of the value being set equals
6725 old settings, since things like REALIZED(parent) or MAPPED(parent)
6726 may have changed since the old value was set. make it an error to
6727 invoke this function on a toplevel widget.
6729 2001-07-31 Darin Adler <darin@bentspoon.com>
6733 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6735 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6738 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
6740 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
6741 scoping error pointed out by matthiasc@poet.de.
6743 2001-07-31 Sven Neumann <sven@gimp.org>
6745 * demos/gtk-demo/appwindow.c
6746 * demos/gtk-demo/item_factory.c
6747 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6749 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6751 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6752 argument order for g_signal_has_handler_pending.
6754 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
6756 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6757 instead of long deprecated g_scanner_stat_mode().
6759 2001-07-29 Hans Breuer <hans@breuer.org>
6761 * gdk/makefile.msc : build in the backend dir after
6762 auto-generating files
6764 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6765 with code from win32-production-branch.
6767 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6768 before calling DestroyWindow, which indirectly calls
6769 gdk_window_destroy_notify ()
6771 (performance patch merged from win32-production-branch)
6772 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
6773 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
6774 R2_COPYPEN rop). It is claimed to be much faster.
6776 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
6778 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6779 add an "attributes" property to the text renderer for ATK.
6781 2001-07-26 Alex Larsson <alexl@redhat.com>
6783 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6784 Initialize image->bits_per_pixel from the drawable, not from
6787 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6788 Fix cast. argument is an IMPL already.
6790 2001-07-15 James Henstridge <james@daa.com.au>
6792 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6793 (gtk_window_remove_accel_group): same here.
6794 (gtk_window_key_press_event): same here.
6796 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6797 (gtk_widget_remove_accelerator): same here.
6798 (gtk_widget_remove_accelerators): same here.
6800 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6802 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6803 instead of GtkObject.
6805 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6808 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6809 pass a GObject to gtk_accel_group_entries_from_object.
6810 (gtk_item_factory_create_item): s/accel_widget/accel_object/
6812 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6814 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6816 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6817 GObjects can have accelerators set now. Add compatibility
6820 * gtk/gtkmarshal.list: add missing marshallers.
6822 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6823 accelerators on plain GObjects. gtk_accel_group_object_destroy
6824 has been converted into a weak reference, and
6825 gtk_accel_group_delete_entries is now a destroy notify for that
6828 2001-07-23 Ron Steinke <rsteinke@w-link.net>
6830 * gdk/gdkdraw.c: Added a check on the colormap depth to
6831 gdk_drawable_set_colormap()
6832 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6833 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6834 for pixmaps without visuals (more specifically, bitmaps)
6835 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6836 doesn't set a colormap with the wrong depth
6839 2001-07-22 Anders Carlsson <andersca@gnome.org>
6841 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6842 expander_height and expander_width properties with a single
6843 property, expander_size.
6844 (gtk_tree_view_init): Set the tab_offset to expander_size
6846 (gtk_tree_view_unrealize): Remove the expand/collapse
6847 timeout if it exists.
6848 (coords_are_over_arrow): Fix a small bug.
6849 (gtk_tree_view_motion_draw_column_motion_arrow): Use
6851 (gtk_tree_view_draw_focus): Use "treeview" instead of
6852 "add-mode" as detail when drawing the focus.
6853 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6854 instead of "add-mode" as detail when drawing the focus.
6855 (gtk_tree_view_deleted): If we have a node currently being
6856 expanded or collapsed, remove the timeout and set the node
6858 (gtk_tree_view_queue_draw_arrow): New function that just
6859 redraws the arrow of a node.
6860 (gtk_tree_view_draw_arrow): Use expander_size instead of
6861 expander_width/expander_height, also pass a different
6862 expander_style to gtk_paint_expander depending on the
6863 state of the node being drawn.
6864 (expand_collapse_timeout): New function for expanding
6865 or collapsing a node depending on the previous state.
6866 (gtk_tree_view_real_expand_row): Add timeout and set
6867 correct state for node being expanded.
6868 (gtk_tree_view_real_collapse_row): Add timeout and set
6869 correct state for node being collapsed.
6871 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6872 information about the node currently being expanded or
6873 collapsed, and also a timeout id.
6875 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6876 with expander_style for draw_expander.
6878 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6880 (create_expander_affine): New function for creating an
6882 (apply_affine_on_point): New function for applying an
6884 (gtk_default_draw_expander): Modified to take expander_style
6885 instead of is_open, and to draw the rectangle rotated differently
6886 depending on the expander style.
6887 (gtk_paint_expander): Replace is_open with expander_style.
6889 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6891 * gtk/gtkenums.h: Add expander style enum.
6893 2001-07-21 Jonas Borgström <jonas@codefactory.se>
6895 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6896 value from gtk_tree_model_get_iter, the model might be empty.
6898 2001-07-20 Hans Breuer <hans@breuer.org>
6900 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6901 gdk/gdkinput.c like the other backends
6903 * gdk/win32/gdkinput-win32.h :
6904 * gdk/win32/gdkinput.c :
6905 * gdk/win32/gdkvisual-win32.c :
6906 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6907 GdkVisual GObjectification. UNTESTED for pen-devices because
6911 * gtk/gtk.def : updated externals
6913 * gtk/gtkiconfactory.c :
6914 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
6915 before passing &error to functions to avoid strange crashes
6917 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6919 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6921 * gtk/makefile.msc.in : updated
6923 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
6925 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6926 Add property support. (#51858)
6928 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
6930 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
6931 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6932 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6934 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
6936 * gtk/gtkcolorsel.c: Add propery support (roughly
6937 based on patch from Lee Mallabone, #51014)
6939 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6940 deprecated, since we already g_warning() on it.
6942 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
6944 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6945 typo that sometimes caused selection not to work properly.
6947 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6948 entry when tabbing in. (#57743)
6950 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6951 user drags up above or down below the entry, move
6952 to the end or the beginning of the entry. (Suggestion
6953 from Jay Cox, #50940)
6955 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6956 a current selection, then when moving by chars or
6957 words, move to the end of the selection rather than
6958 from entry->current_pos. (Suggestion from Jay Cox,
6961 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
6963 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6964 set window->decorated. (Patch from Hidetoshi Tajima,
6967 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
6969 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6970 the widget/child realization/mapping invariants.
6972 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
6973 gtk_widget_[get/set]_child_visible() to control
6974 whether visible children of a mapped window are
6977 * docs/widget_system.txt: Updated for changes in
6978 container contract, and addition of GTK_CHILD_VISIBLE.
6980 * gtk/gtkcontainer.c: Add generic map()/unmap()
6981 functions that work for almost all containers.
6983 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
6984 gtk_widget_set_child_visible() where necessary.
6986 * gtk/*.c: Remove excess map(), unmap(), and
6987 realization/mapping invariant enforcing code
6988 from many containers.
6990 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
6992 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
6993 Get the foreground color from 'text', nor 'fg'. (#57568)
6995 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
6997 * gtk/*.c: Patch from Matthias Clasen to remove remove
6998 all instances of g_return_if_fail (foo != NULL); that are
6999 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
7000 since the second check catches the NULL anyways.
7002 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
7004 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
7005 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
7006 GDK_THREADS_ENTER()/LEAVE() pairs.
7008 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
7009 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
7010 pairs. (Problem found by M. Meeks)
7012 2001-07-18 Darin Adler <darin@bentspoon.com>
7014 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
7015 that we don't get a g_warning message every time we register a new
7018 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
7019 using pixel variable of the correct type.
7021 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
7023 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
7024 so that using X functions on a GdkWindow is possible, if
7027 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
7028 and ts_origin of a GC, so that external parties can offset/restore
7029 a GC, when using gdk_window_get_internal_paint_info().
7031 2001-07-17 Darin Adler <darin@bentspoon.com>
7033 * .cvsignore: Ignore the sgml directory made by gtkdoc.
7034 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
7035 instead of the deprecated gtk_window_set_policy.
7036 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
7037 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
7038 function to get rid of warning and some code too.
7039 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
7041 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
7043 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
7045 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
7046 (gdk_utf8_to_compound_text): Add missing const.
7047 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
7048 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
7049 cast and get rid of an unnecessary one.
7050 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
7051 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
7053 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
7054 Remove unused local.
7055 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
7057 * tests/testsocket.c: (add_child): Add cast so the printf format
7058 doesn't make us implicitly depend on what integer type
7059 gtk_socket_get_id returns.
7060 * tests/testtextbuffer.c: Add missing const.
7061 * tests/testtreefocus.c: (main): Remove unused local.
7062 * tests/treestoretest.c: (iter_remove): Remove unused local.
7063 (uppercase_value): Remove unused function.
7064 (make_window): Add statement to quiet the compiler's uninitialized
7067 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
7072 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
7073 (gtk_range_calc_layout): compute the new layout based on an
7074 adjustment->value being passed in as argument.
7075 (gtk_range_button_press): for button2 slider warps, first recalc
7076 the layout, then adjust the value. also, use update_slider_position()
7077 for adjusting the value, so we keep pixel quantisation at which we
7078 usually operate (upon motion or button releases). the reason for this
7079 is that, we can't change the adjustment upon button2 presses to a non
7080 quantised value and upon button2 release re-quantise the value since
7081 that'd alter the value even if we didn't get any motion events (causing
7082 unexpected scroll area warps upon release and/or slider pixel-jitter).
7083 (gtk_range_motion_notify): update the slider position from queried
7084 coordinates, not event coordinates.
7086 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
7088 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
7089 the default gc values are: width=0, CapBut, JoinMiter.
7091 2001-07-13 Anders Carlsson <andersca@codefactory.se>
7093 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
7094 into account the xpad and ypad when calculating the width and the
7095 height of the pixbuf cel.
7097 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
7099 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
7100 Rename to gtk_radio_menu_item_get_group(), add deprecated
7103 * gtk/gtkfilesel.c: Indentation fix.
7105 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
7107 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
7108 Hasselmann to fix warnings in compat macros.
7111 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
7112 stupid wrong cast added in last patch.
7114 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
7116 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
7117 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
7119 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
7121 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
7124 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
7125 NULL/FALSE return value confusion.
7127 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
7128 problem when scrollbar completely fills range. (Patch
7129 from Matthias Clasen, #57047)
7131 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
7133 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
7134 clean up when handling events for move-resize emulation.
7135 (Problem traced down by Matthias Clasen, #57271)
7137 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
7139 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
7140 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
7141 gtk/gtkfontsel.c gtk/gtkhandlebox.c
7142 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
7143 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
7144 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
7145 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
7146 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
7148 2001-07-09 Peter Williams <peterw@ximian.com>
7150 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
7151 for when srcdir != builddir
7153 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
7155 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
7156 gtk_tree_model_get_iter_root.
7158 * gtk/gtkliststore.c: Add a bunch of g_return statements.
7159 (gtk_list_store_iter_n_children): Fix up.
7161 * gtk/gtktreestore.c: Add a bunch of g_return statements.
7163 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
7165 * gtk/gtkwidget.c (gtk_widget_class_init):
7166 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
7167 restore some workingness.
7169 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
7170 handle of window type for input-only windows.
7172 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
7174 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
7175 Patch from Gregory Merchan to add
7176 gtk_button_box_set_secondary(), which separates
7177 the child into a separate group from the normal
7180 * gtk/gtkdialog.c: Make help buttons secondary by
7183 * gtk/gtkbbox.c: Added a child property "secondary".
7185 * gtk/testgtk.c: Turn on the help button for the
7186 color selector to check that it properly appears
7189 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
7191 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
7192 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
7193 Add gdk_set_pointer_hooks() to allow pointer-querying to
7194 be hooked by an event record/playback system like GERD.
7197 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
7199 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
7200 in the right value of initial_emission to
7201 gtk_widget_set_style_internal (#57091)
7203 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
7205 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
7208 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
7209 with calling gtk_widget_set_style_internal() with
7210 the old style, not the new style. (#56989)
7212 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
7214 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
7216 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
7217 not GTK_WIDGET_GET_ANCESTOR ... see
7218 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
7219 Indicate the best practice in the docs for gtk_widget_get_toplevel().
7221 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
7222 so GtkPlug can give the correct signals when transforming
7223 from a child to a toplevel.
7225 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
7226 reparentation correctly.
7228 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
7229 Propagate the previous_toplevel argument down properly.
7231 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
7234 * gtk/gtkplug.[ch]: Add an "embedded" signal.
7236 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
7239 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
7240 functions gtk_plug_get_id(), gtk_socket_get_id(),
7241 to avoid the user having to worry about realization,
7244 * tests/testsocket.c: Extend to try out the new signals
7245 and gtk_plug/socket_get_id().
7247 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
7248 setting of underline attributes.
7250 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7251 DestroyNotify events from SubstructureNotifyMask
7253 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
7254 Switch GDK_WINDOW_TYPE (window) as needed.
7256 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
7257 allow creation of toplevel windows as children of
7260 * gtk/gtkplug.c: Remove hacks involving changing private
7261 fields of GdkWindow.
7263 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
7264 exactly the same signals and notification
7265 be emitted for local embedding as for inter-process
7268 2001-07-04 James Henstridge <james@daa.com.au>
7270 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
7272 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
7274 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
7275 XEMBED embedding add a _XEMBED_INFO property to the
7276 client with version number and a "mapped" flags.
7277 Use the mapped flag instead of the racy MapRequestEvent
7279 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
7280 code to reliably set things (when the child is a passive
7281 embedder participating in the XEMBED protocol) intead
7282 of just being a hack for embedding non-participating
7283 programs. Fix various bugs and race conditions.
7285 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
7286 work by simply making the GtkSocket the gtk parent
7287 of the GtkPlug. Set a flag in this case and make
7288 the GtkPlug work like a normal container by overriding
7289 methods such as check_resize and "chaining past" GtkWindow
7292 * gtk/gtkentry.c (gtk_entry_real_activate)
7293 gtk/gtkmain.c (gtk_propagate_event):
7294 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
7296 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
7297 gtk_widget_get_ancestor):
7298 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
7299 might not give the expected result and recommend
7302 * tests/testsocket.c tests/testsocket_child.c
7303 tests/testsocket_common.c tests/Makefile.am: Extended
7304 to test different type of adding plugs to sockets
7305 (local,active,passive), and to test mapping/unmapping
7308 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7309 mark the window as destroyed until after we
7310 called _gdk_windowing_window_destroy().
7311 (_gdk_windowing_window_destroy() may use GDK functions
7314 * gdk/x11/gdkinput.c: Remove the check for finalization -
7315 devices can be finalized under some circumnstances.
7317 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
7318 small problem with GDK_TYPE_DEVICE.
7320 2001-07-02 Havoc Pennington <hp@pobox.com>
7322 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
7323 use constants not atoms.
7325 2001-07-02 James Henstridge <james@daa.com.au>
7327 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7328 PANGO_TYPE_TAB_ARRAY.
7330 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7331 for PANGO_TYPE_TAB_ARRAY.
7333 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7334 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7336 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7337 the file. Remove Pango types from defs -- they are now defined in
7340 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
7342 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7344 * gtk/gtkobject.c (gtk_object_destroy): invoke
7345 g_object_run_dispose().
7350 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7353 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
7355 * gtk/gtktypeutils.c (gtk_type_class): Remove
7356 change check for GTK_TYPE_OBJECT derivation to
7357 G_TYPE_OBJECTS - it's Tim-approved to use this
7358 for arbitary objects.
7360 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7361 prefix gtk_container_dequeue_resize_handler().
7363 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7364 to the hierarachy_changed signal, since you otherwise
7365 have to always keep that around.
7367 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7368 for extra argument to hierarchy_changed.
7370 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
7372 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7373 for style to mean "revert to default style"
7375 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7376 gtk_widget_restore_default_style): Make this functions
7377 deprecated aliases for gtk_widget_set_style (widget, NULL).
7379 * gtk/gtkwidget.[ch]: Remove:
7380 gtk_widget_set_default_style ()
7381 gtk_widget_push_style ()
7382 gtk_widget_pop_style ()
7383 These functions interact are overriden by RC files, and
7384 thus virtually useless, and complicated.
7386 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
7388 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
7389 most of the previous global variables in gtkrc.c. This is
7390 in preparation for multi-head, since each screen can
7391 have different GtkSettings and RC information.
7395 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7396 GtkSettings parameter to GtkRcStyle::parse.
7398 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
7399 Add two new settings gtk-theme-name, gtk-key-theme-name,
7400 for RC files that are loaded by name after reading
7401 the default RC files.
7403 * gtk/gtkrc.c: Allow priorities for styles, as wll as
7406 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7407 and use it by default for RC files loaded via
7408 gtk-theme-name, gtk-key-theme-name.
7410 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7411 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
7412 tests/testgtkrc: Require pathnames to be absolute.
7414 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7415 the source when parsing, since the operation of looking up a
7416 pixmap from an RC file depends on the parsing context.
7418 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7419 reset RC styles on all widgets when files are reparsed.
7421 * tests/testgtk.c (create_rc_file)
7422 gtk/gtkwindow.c (gtk_window_read_rcfiles):
7423 Simplify, now that gtk_rc_reparse_all() resets styles on
7426 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7429 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7430 GtkSettings argument.
7432 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7433 gtk_settings_get_global().
7435 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7436 to get the appropriate GtkSettings for a widget. (For now,
7437 just gets the default GtkSetttings.)
7439 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7440 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7443 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7444 getting a style for a path without actually having a widget.
7445 (Allows using a style for a subpart of a widget, for
7448 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7449 the RC files to be reloaded for just one GtkSettings
7450 (not sure how useful this really is.)
7452 * gtk/gtkrc.h: Deprecate
7453 gtk_rc_add_widget_name/widget_class/class_style
7455 2001-06-30 Alex Larsson <alexl@redhat.com>
7457 * gdk/linux-fb/gdkinput-none.c:
7458 * gdk/linux-fb/gdkinput.c:
7459 * gdk/linux-fb/gdkinputprivate.h:
7460 Convert GdkDevice to a GObject.
7462 * linux-fb/gdkprivate-fb.h:
7463 * linux-fb/gdkvisual-fb.c:
7464 Convert GdkVisual to a GObject.
7466 2001-06-29 Alex Larsson <alexl@redhat.com>
7471 * gdk/x11/gdkvisual-x11.c:
7472 Convert GdkVisual to a GObject.
7476 * gdk/x11/gdkinputprivate.h:
7477 * gdk/x11/gdkinput-gxi.c:
7478 * gdk/x11/gdkinput-none.c:
7479 * gdk/x11/gdkinput-x11.c:
7480 * gdk/x11/gdkinput-xfree.c:
7481 * gdk/x11/gdkinput.c:
7482 Convert GdkDevice to a GObject.
7484 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
7486 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7487 to just plain new, fixing the number of columns, and column types
7490 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7492 * gtk/gtkcellrenderertext.c
7493 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7494 height to a specific font.
7496 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7498 * tests/*c: change to work with new store models.
7500 2001-06-29 Havoc Pennington <hp@redhat.com>
7502 * Throughout: fixes to compile with G_DISABLE_COMPAT
7503 (s/g_signal_connectc/g_signal_connect/,
7504 s/g_signal_newc/g_signal_new/,
7505 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7507 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com>
7509 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7510 add path argument to selection callbacks.
7512 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
7514 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7515 walk through a model in a depth first manner, with the option to
7518 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
7520 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7521 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7522 column and follow it when draged, rather than a location in the
7523 view. "expander_column" property and drawing functions changed
7524 accordingly. Fixes bug #55942.
7526 (gtk_tree_view_{set,get}_expander_column): Now works with a
7527 GtkTreeViewColumn* instead of int.
7529 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
7531 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
7533 2001-06-28 Havoc Pennington <hp@pobox.com>
7535 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7536 image data to the screen, using a server grab to avoid race
7539 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
7540 check for NULL return from gtk_image_new_from_stock(), it never
7542 (gtk_item_factory_create_item): fix bug where we parsed the stock
7543 ID as an inline pixbuf
7545 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7547 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7548 support (should be using binding set here)
7550 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7551 support (should be using binding set here)
7553 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
7556 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7558 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7560 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7562 * gtk/gtkimcontextsimple.c
7563 (gtk_im_context_simple_filter_keypress): keypad
7565 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
7567 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7569 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7571 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7572 should be binding-setted)
7574 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7576 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7578 * gtk/gtkcalendar.c: numeric keypad fixes
7580 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7583 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7586 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7587 clip the render area to the drawable's clip region in advance,
7588 so we don't get data from the server that we don't need.
7590 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7591 check return value of gdk_pixbuf_get_from_drawable(), fall back
7592 to bilevel alpha if we can't get the pixbuf to composite against.
7594 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7596 * gdk/gdkimage.c (gdk_image_get_colormap): add
7597 gdk_image_set_colormap, gdk_image_get_colormap
7599 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7600 take a region of the image, instead of converting the entire
7603 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7604 keybinding signal. Add default bindings for it. Add default
7605 handler for show_help that shows the tooltip for the widget.
7607 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7608 "close" keybinding signal, remove key press handler.
7610 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7611 it's not our usual practice to leave a deprecated function around
7612 with a runtime warning, plus we don't want it to appear in docs,
7613 plus if we make them yellow no one will want to change them
7616 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
7618 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7619 GTK_WIDGET_REALIZE() for resize queueing.
7621 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7622 GTK_WIDGET_REALIZE() for post event delivery destruction upon
7625 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7626 sompensate for former (pre-2.0) connect_after() facility.
7627 (gtk_widget_send_expose):
7628 (gtk_widget_event): assert the widget is realized, since event delivery
7629 to non-realized widgets is essentially a bug. event handlers should
7630 be able to unconditionally rely on widget->window (unless they
7631 emit events on their own which can trigger widget destruction).
7632 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7633 logic. event delivery happens as follows:
7634 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7635 b) if !was_handled in (a) and the widget is still realized, emit event-
7636 specific signal (RUN_LAST handler). returns was_handled.
7637 c) emission of GtkWidget::event-after for notification if the widget is
7638 still realized (regardless of was_handled from previous stages, no
7639 class handler). no return value.
7640 d) was_handled gets passed on to caller, to determine further
7641 propagation. if the widget got unrealized meanwhile, was_handled
7642 is returned as TRUE.
7644 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7645 gdk_event_get_coords().
7647 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
7649 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7650 age 0, binary age 0. depend on glib 1.3.7.
7652 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7654 * gtk/gtkmenubar.c: same here.
7656 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7658 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7660 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7662 * gtk/gtkmenubar.c (add_to_window): likewise.
7664 * gtk/gtktextbtree.c: and here...
7666 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7668 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7670 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7672 * gtk/gtktreeviewcolumn.c:
7673 (_gtk_tree_view_column_set_tree_view): yet again.
7675 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7676 signal connections without g_signal_connect_data().
7678 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7681 * demos/testpixbuf.c (main): running out of equality phrases for the
7682 ChangeLog, but had to adapt connections here as well.
7684 * demos/testanimation.c (progressive_timeout): and for the fun of it,
7685 tackled this the same way.
7687 * tests/testtext.c (create_view): ok, it's becoming a pain at this
7688 point, but had enough enery for one more fix.
7690 * tests/testtreecolumns.c (main): stand up man, do your work!
7692 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7693 fix, either that's been all of it or CVS gtk is broken yet again.
7695 2001-06-29 James Henstridge <james@daa.com.au>
7697 The following changes correspond to bug #56812
7699 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7702 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7705 2001-06-19 Havoc Pennington <hp@pobox.com>
7707 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7708 for mapping a window without fooling with stacking order, but
7709 updating the "withdrawn" flag
7711 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7712 filtering as soon as possible, moving move resize and wmspec_check
7713 handling after the event filter. Make default filter apply to all
7714 events, not just those with no GdkWindow wrapped around the X
7715 window. Fix a FIXME about how the window could be a pixmap using
7716 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
7718 Also, be robust against events not on a known GdkWindow.
7720 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7721 gdk_x11_ungrab_server): export reference-counted server grabs, so
7722 other people can grab server over a GDK function that also does
7725 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
7727 * gtk/gtktreeviewcolumn.c
7728 (gtk_tree_view_column_pack_start_cell_renderer): New function to
7729 reflect that you can (hypothetically) pack cell renderers into a
7731 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7732 (gtk_tree_view_column_cell_is_visible): Move more functionality to
7734 (gtk_tree_view_column_cell_can_focus): Move more functionality to
7737 * gtk/gtktreeview.c: Move to use new column-packing code.
7738 (gtk_tree_view_real_expand_row): remove totally braindead code.
7739 (gtk_tree_view_real_collapse_row): ditto.
7741 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
7743 * gtk/gtktreeviewcolumn.c: Fix a typo.
7745 2001-06-26 Joel Becker <jlbec@evilplan.org>
7747 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7748 at the end of the file
7750 2001-06-26 Havoc Pennington <hp@redhat.com>
7752 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7754 2001-06-26 Havoc Pennington <hp@redhat.com>
7756 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7759 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
7761 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7762 stupid missing statement
7764 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7765 private function for ATK. It notifies you of how many _visible_
7766 children are deleted when a node is deleted. Should be used by
7769 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
7771 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7772 Use new pango_context_get_metrics() to fix problems
7773 with font lists in descriptions. (#56184, reported by
7776 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
7778 * gtk/gtkiconfactory.c:
7779 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7780 item factory so inlined pixbufs actually work.
7782 2001-06-25 Havoc Pennington <hp@redhat.com>
7784 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7785 s/RESIZEABLE/RESIZABLE/
7787 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7789 2001-06-25 Alexander Larsson <alexl@redhat.com>
7792 Added --enable-fbmanager. This is some experimental code
7793 that lets several GtkFB apps coordinate their access to the
7797 Added ENABLE_FB_MANAGER.
7799 * gdk/linux-fb/Makefile.am:
7800 Added gdkfbmanager and gdkfbswitch.
7802 * gdk/linux-fb/gdkkeyboard-fb.c:
7803 * gdk/linux-fb/gdkmouse-fb.c:
7804 * gdk/linux-fb/gdkprivate-fb.h:
7805 Split device init and open so that
7806 they can be opened and closed while switched
7809 * gdk/linux-fb/gdkmain-fb.c:
7810 Add the basic manager communication.
7812 * gdk/linux-fb/gdkrender-fb.c:
7813 Don't update to the shadow fb if we're
7814 blocked by the fb manager.
7816 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
7818 * docs/Changes-2.0.txt: Add note about child property
7821 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
7823 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7824 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7826 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7827 with un'reffing wrong list reported by Jeff Franks.
7829 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7831 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7832 for the default icon. Remove inline XPM.
7834 * gtk/gtkstock.h gtk/gtkiconfactory.c:
7835 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7836 is used for GTK_STOCK_DND, but it is a bit too small.)
7838 * gtk/stock-icons/stock_dnd_multiple.png
7839 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7841 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7842 TRUE when starting a drag. In other cases, we are
7843 just observing. (#52995)
7845 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
7846 function to set the icon for a drag from a GdkPixbuf
7849 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
7850 Likewise, for drag sources.
7852 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7853 (Now should be done using the stock system.)
7855 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
7857 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
7858 Removed - didn't work and not particularly useful anyways
7861 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
7863 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7864 introduced last night that was making things decidedly not work.
7866 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7867 so that we have getter/setter pairing everywhere it makes
7870 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7871 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7872 deprecated compat macro. (#55516)
7874 * gtk/gtklabel.[ch]: Add functions
7875 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7876 gtk_label_set_label(), which mirror the property API for GtkLabel.
7877 Make gtk_label_get_attributes() only reflect the attributes
7878 set by gtk_label_set_attributes.
7880 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7881 from gtk_notebook_set_page().
7883 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
7885 * configure.in: Fix tests for XShm.h.
7887 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7888 gdk_image_new() by use of goto, properly use g_object_unref().
7890 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
7892 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7893 calls, as GdkImage is an object. these should be g_obejct_unref()
7894 instead but that won't work because of the g_error() statement
7895 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7896 to spot these places.
7898 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
7900 * modules/input/gtkimcontextxim.c: Fixup some problems with
7901 text length handling in error cases.
7903 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7904 a bit to make test actually warn on attempt to allocation
7905 a negative size. (#56101, Matthias Clasen)
7907 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
7909 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7910 noticed by Brian Cameron.
7911 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7914 2001-06-22 Hans Breuer <hans@breuer.org>
7916 * gdk/gdk.def : updated externals
7918 * gdk/win32/gdkdrawable-win32.c : corrected some casts
7921 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7922 to translate coordinates to the internal > 16 bit system
7923 Try to handle WM_WINDOWPOSCHANGED to get better performance for
7924 when moving/resizing
7926 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7927 and gdk_keymap_get_direction (). The latter is untested for
7930 * gtk/gtk.def : updated externals
7932 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7933 from pango_language_from_string (), not an already freed pointer
7935 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
7936 binary (-kb) to be useable on windoze
7938 2001-06-21 Alexander Larsson <alexl@redhat.com>
7940 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
7941 Update to new PangoLanguage changes.
7943 * gtk/gtkwindow-decorate.c:
7944 * gtk/gtkwindow.[ch]:
7945 Added setting argument to gtk_window_set_has_frame ()
7947 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
7949 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7950 the case without XKB properly.
7952 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7953 unused gtk_rc_auto_parse variable.
7955 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7956 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7957 longer needed with GdkPixbuf.
7959 * gtk/gtkrc.c (_gtk_rc_init): Make private.
7961 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
7963 * gtk/gtkentry.h: Mark deprecated functions with
7964 GTK_DISABLE_DEPRECATED.
7966 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
7968 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7970 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7972 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7973 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7974 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7975 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7976 to recent changes in Pango.
7978 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7979 to test whether the basic engine honors them.
7981 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
7983 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7984 gtk_container_child_get_property().
7986 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
7988 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7989 (gtk_tree_view_move_cursor_page_up_down): implement.
7991 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
7993 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7994 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7995 don't use automatic fixed size buffer for printf-ing floats, doubles
7996 can expand to really _huge_ strings, use g_strdup_printf() instead.
7998 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
8000 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
8001 construct property in 1.2 and still needs to be.
8003 * gtk/gtkwidget.c: "composite_child" is not a settable property.
8005 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
8007 * gtk/gtkliststore.c (gtk_list_store_clear):
8008 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
8011 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
8013 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
8016 * gtk/gtk.h: disabled GtkPacker compilation.
8018 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
8020 * gtk/gtknotebook.c:
8022 * gtk/gtkbox.c: ported this over to child properties.
8024 * gtk/gtksettings.c: fetch class properties via
8025 g_object_class_list_properties().
8027 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
8028 child arg interface. use gobjectnotifyqueue.c for child property
8031 * gtk/gtkwidget.[hc]: provide necessary means for container child
8032 properties, i.e. ::child_notify signal,
8033 gtk_widget_freeze_child_notify(),
8034 gtk_widget_child_notify(),
8035 gtk_widget_thaw_child_notify().
8037 * tests/testgtk.c: removed inferior property handling code, for
8038 property editing, a generic module should be used, and GLE
8039 coincidentally fullfills that purpose.
8041 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
8042 needs to be adapted to g_object_class_list_properties() before this
8045 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
8047 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
8048 test if a node is expanded.
8050 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
8052 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8053 where collapsing a selected row would result in the cursor/anchor
8056 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
8058 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
8059 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
8060 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
8061 Now I can really reorder/sort all Store widgets. treesorttest
8062 seems to just work now.
8063 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
8064 testtreesort worked through a big coincidence all this time.
8065 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
8067 * tests/testtreecolumns.c: Big 'ol warning at the top letting
8068 people know that this code should never ever ever be copied.
8070 2001-06-15 Jonas Borgström <jonas@codefactory.se>
8072 * gtk/gtkwindow.h: Fixed a small typo, it should be
8073 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
8076 2001-06-14 Havoc Pennington <hp@redhat.com>
8080 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
8081 GTK_DISABLE_DEPRECATED
8083 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
8085 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
8086 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
8087 finish it off tonight, though it basically works now when it's a
8088 list. Also, I have a sinking feeling neither GtkTreeStore or
8089 GtkListStore actually resort when adding a new item. I'll look
8092 2001-06-14 Havoc Pennington <hp@redhat.com>
8094 * demos/gtk-demo/main.c (load_file): fix bug identified by
8095 warnings I just added to gtktextbuffer
8097 2001-06-14 Havoc Pennington <hp@redhat.com>
8099 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
8101 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
8103 * gtk/gtktextbtree.c: don't leak node data all over the place.
8105 * demos/gtk-demo/main.c (main): create fontify tags for the right
8108 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
8109 to mention tags in the same table can't have the same name,
8110 suggested by Skip Montanaro
8112 2001-06-11 Havoc Pennington <hp@redhat.com>
8114 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
8115 for trying to add two tags with same name to the tag table
8117 * demos/gtk-demo/main.c (main): fix colors ;-)
8119 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
8121 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
8122 that allows grouping together multiple windows so that grabs
8123 within that set of windows only affect those windows.
8125 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
8126 signal for notification when a widget becomes shadowed
8127 by a grab or is no longer shadowed by a grab.
8129 * gtk/gtkwidget.c (gtk_widget_propagate_state)
8130 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
8131 insenstive widgets to maintain a grab.
8133 2001-06-14 Alexander Larsson <alexl@redhat.com>
8135 * docs/README.linux-fb:
8136 Add some example config files that can be used with the URW fonts.
8138 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8139 Set up the color ramps for DirectColor mode.
8141 2001-06-11 Havoc Pennington <hp@redhat.com>
8145 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8147 * gdk/linux-fb/gdkwindow-fb.c:
8148 Unify shaped window code and make it repaint the area that used
8149 to be part of the shape, but isn't anymore.
8151 2001-06-11 Havoc Pennington <hp@redhat.com>
8155 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
8157 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
8159 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8161 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
8162 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
8163 passes zero instead, so do we.
8165 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8167 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
8168 Deep copy dash_list too.
8169 (_gdk_fb_gc_new): Set default cap_style before
8172 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
8174 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
8175 gdk_keymap_get_direction): New functions.
8177 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
8179 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
8180 gtk_tree_model_get_flags by adding a second flag for atk.
8182 * gtk/gtktreemodel.c: make cursor behavior interact better with
8185 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
8187 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
8188 expand_row/collapse_row to be 2 signals each -- test_expand_row
8189 and row_expanded as well as test_collapse_row and row_collapsed.
8191 2001-06-10 Anders Carlsson <andersca@codefactory.se>
8193 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
8194 signal name to be changed instead of selection_changed.
8196 2001-06-08 Havoc Pennington <hp@redhat.com>
8198 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
8199 "scroll_offset" property for notification when the layout offsets
8201 (gtk_entry_adjust_scroll): add notify for scroll_offset
8202 (gtk_entry_layout_index_to_text_index): function to compensate for
8203 preedit string when doing coordinate stuff on the entry's layout
8204 (gtk_entry_text_index_to_layout_index): inverse function
8205 (gtk_entry_get_layout_offsets): hook to get current position of
8207 (gtk_entry_get_layout): hook to get the layout itself.
8209 * gtk/gtklabel.c (gtk_label_get_layout): new function
8211 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
8213 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
8215 (gtk_tree_view_focus): Fix merge conflict.
8217 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
8219 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
8220 clean up cursor handling.
8222 2001-06-08 Havoc Pennington <hp@redhat.com>
8224 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
8227 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
8230 2001-06-08 Alex Larsson <alexl@redhat.com>
8232 * gtk/gtkcompat.h.in:
8233 Added compat macros for all old GTK_TYPE_GDK_xxx types.
8236 2001-06-08 Havoc Pennington <hp@redhat.com>
8238 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
8241 2001-06-08 Havoc Pennington <hp@redhat.com>
8243 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
8244 don't call g_list funcs on GSList
8246 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
8247 gtk_container_focus(), since some widgets have focusable locations
8248 which are not other widgets. These widgets should not have to be
8249 containers just to manage the focus. For example, GtkHSV is
8250 currently a container for no good reason. Also, this cleans
8251 up the "if (is_container && is_sensitive && is_drawable)
8252 container_focus ()" mess in widget implementations.
8254 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
8255 function, and have it just call gtk_widget_child_focus().
8257 * gtk/gtkhsv.c: derive from widget not container
8259 Throughout: fix to reflect GtkContainer::focus change
8261 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
8263 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
8264 range. Fix bug #55921
8266 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
8269 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
8271 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
8272 and gdk_keymap_get_current_direction().
8274 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
8275 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
8276 the current locked group, use it to set the keymap
8279 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
8280 to determine whether we draw a split cursor or use
8281 a jumping cursor based on the current direction.
8283 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
8284 Obey the split cursor setting.
8286 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
8288 * gtk/gtkimmulticontext.c (activate_cb): Only activate
8289 when toggling on, not when toggling off... (#55906)
8291 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
8293 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
8294 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
8295 in docs. (#55812, Vitaly Tishkov)
8297 2001-06-08 Anders Carlsson <andersca@codefactory.se>
8299 * demos/gtk-demo/main.c (create_tree): Changed signal name from
8300 selection_changed to changed in signal connection to GtkTreeSelection,
8301 also used g_signal_connectc since GtkTreeSelection is now a GObject.
8303 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
8305 * gtk/gtktreeselection.c: Now it's a GObject instead of a
8306 GtkObject. The GtkTreeSelection::selection_changed signal is now
8307 the GtkTreeSelection::changed signal.
8309 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8312 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8315 2001-06-07 Havoc Pennington <hp@redhat.com>
8317 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8319 2001-06-07 Havoc Pennington <hp@redhat.com>
8321 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8322 (not tested yet because with absolute path to srcdir I can't build
8323 atk, but it was broken anyway so this may help)
8325 2001-06-07 Havoc Pennington <hp@redhat.com>
8327 * configure.in: output m4macros/Makefile
8329 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
8331 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8332 buttons. Fixes #55460 reported by matthiasc@poet.de.
8334 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
8336 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8337 expansion/collapsing so it only happens in one place.
8338 (gtk_tree_view_real_expand_row): ditto.
8340 2001-06-07 Havoc Pennington <hp@redhat.com>
8342 * tests/Makefile.am: add missing -I flag
8344 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8346 * configure.in: use pkg-config to see if GModule is
8347 supported; fix to properly turn on included loaders
8348 when GModule isn't supported; don't use AC_CHECK_LIB
8349 when libs are not installed yet
8351 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8353 * Makefile.am (SUBDIRS): add m4macros subdir
8355 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8358 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
8360 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8361 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8363 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
8366 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8367 bindings to expand and collapse rows.
8368 (gtk_tree_view_real_select_cursor_parent): New key binding.
8369 (gtk_tree_view_real_toggle_cursor_row): New key binding.
8371 * gtk/gtkmarshal.list: new
8372 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8374 2001-06-06 Havoc Pennington <hp@redhat.com>
8376 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8378 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8379 Down to move visually rather than logically, since it confuses
8380 people. Add -/+ and Ctrl--/+ bindings for logical movement.
8382 2001-06-06 Alex Larsson <alexl@redhat.com>
8384 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8385 Fix up error messages.
8387 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
8389 * gtk/gtktooltips.h: Include gtkwidget.h
8390 (#55798, Karl Nelson)
8392 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8393 a valid latin-1 character. (Marc Lehmann, #35467)
8395 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
8396 (Marc Lehmann, #35467)
8398 2001-06-05 Alex Larsson <alexl@redhat.com>
8400 * demos/gtk-demo/appwindow.c (do_appwindow):
8401 Don't swap the order of the args to gtk_widget_destroyed.
8403 * tests/testgtk.c (destroy_properties):
8404 Don't crash when the properties window is destroyed.
8406 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8407 Use with_mnemonics to handle the case of stock items with
8408 underscores in them.
8410 2001-06-05 Havoc Pennington <hp@redhat.com>
8412 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
8413 gtk_text_iter_reorder
8415 2001-06-05 Havoc Pennington <hp@redhat.com>
8417 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8419 2001-06-05 Havoc Pennington <hp@redhat.com>
8421 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
8422 to the range that was set
8424 * gtk/gtkrange.c: add value_changed signal, primarily
8425 intended for use with GtkScale
8426 (gtk_range_set_increments): new function
8427 (gtk_range_set_range): new function with weird name
8428 (gtk_range_set_value): new function
8429 (gtk_range_get_value): new function
8431 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
8432 from gtk_spin_button_get_value_as_float(). Compat #define
8433 added for get_value_as_float.
8435 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8437 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8439 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
8441 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8443 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
8445 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8447 * tests/testgtk.c (create_tooltips): Remove usage of
8450 2001-06-05 Havoc Pennington <hp@redhat.com>
8452 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8454 Applying patch from Jeff Franks, with function docs added.
8456 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8457 remove call to set_mnemonic_widget, change docs a bit.
8459 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8462 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8465 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8467 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8469 (gtk_radio_button_new_with_mnemonic_from_widget): new function
8471 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8474 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8477 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
8478 auto-selection of mnemonic widget.
8480 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
8482 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8483 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8484 (gtk_tree_view_column_set_min_width): ditto.
8486 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
8488 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
8489 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8491 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
8493 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8496 2001-06-04 Havoc Pennington <hp@pobox.com>
8498 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8499 r eleases for buttons 6, 7
8501 2001-06-04 Havoc Pennington <hp@redhat.com>
8503 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8504 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8507 2001-06-04 Havoc Pennington <hp@redhat.com>
8509 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8510 where text_view->layout == NULL by assuming its size is 0,
8511 i.e. same as if we haven't done any reflow. Reported by
8512 Hidetoshi Tajima #55448
8514 2001-06-04 Havoc Pennington <hp@redhat.com>
8516 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8517 and 7 for scroll left/right, from Thomas Broyer
8519 2001-05-10 Havoc Pennington <hp@redhat.com>
8521 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8522 we need to parse the xsetting as if it were an RC file string.
8524 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8525 value of palette from settings, not from static variable
8527 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8528 xsettings translation table
8530 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
8531 hardcoding the toolbar style conflicts with new customizable
8532 toolbar style philosophy
8533 (gtk_toolbar_class_init): add settings for default toolbar style;
8534 these are used unless the app specifically forces a toolbar style
8536 * gtk/gtksettings.c (settings_install_property_parser): only
8537 return at the start if we warn and parser == NULL
8539 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8540 palette changed handler so we don't notify dead color selections
8542 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8543 xthickness/ythickness of 0 or 1 properly
8544 (gtk_default_draw_resize_grip): clear the background behind the
8545 resize grips, and align to bottom right if we square the
8548 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
8549 statusbar label to 1, so it doesn't make toplevels resize oddly
8550 (gtk_statusbar_size_request): add grip size to request
8551 (gtk_statusbar_size_allocate): hack so the hbox still works with
8552 the grip size in the request
8554 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
8555 bug where showing all on a toplevel makes the toolbar
8556 button text appear despite the toolbar mode
8558 * gtk/gtkmenubar.c: add internal padding style property
8560 * gtk/gtktoolbar.c: Add internal padding style property; add
8561 shadow type style property
8563 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8564 state; and put Container::border_width outside the frame
8566 * gtk/gtktextview.c: don't draw focus rectangle if we're in
8567 interior focus mode, we just use blinking cursor
8569 2001-06-04 Havoc Pennington <hp@redhat.com>
8571 * configure.in: Make gdk-pixbuf have same version number as GTK
8573 2001-06-04 Havoc Pennington <hp@redhat.com>
8575 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
8576 digits greater than 6. If there actually are limits (which there
8577 likely aren't), should clamp to them not warn.
8578 (gtk_spin_button_new_with_range): don't take log of 0
8579 (gtk_spin_button_size_request): use digits to compute size
8580 request, rather than step increment.
8582 * tests/testgtk.c (create_spins): test larger values of digits
8584 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8585 font on map not expose, so we don't get weirdness during scrolling
8587 2001-06-04 Havoc Pennington <hp@redhat.com>
8589 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8590 Sam Solon, bug #54577, update value even if not drawable.
8592 2001-06-04 Havoc Pennington <hp@redhat.com>
8594 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8595 SCROLL_LEFT, reported by Thomas Broyer.
8597 2001-06-04 Havoc Pennington <hp@redhat.com>
8599 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
8600 Process updates immediately, to prevent funny lag effect
8601 when scrolling, at some mild potential efficiency cost.
8603 2001-06-04 Havoc Pennington <hp@redhat.com>
8605 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8606 slider on the click.
8608 2001-06-03 Havoc Pennington <hp@pobox.com>
8610 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8611 hscale/vscale details, so we can use it for scrollbar as well.
8613 * tests/testgtk.c (reformat_value): honor digits from GtkScale
8615 * gtk/gtkenums.h (GtkTroughType): Remove this enum
8616 (GtkScrollType): add START and END from GtkTroughType
8618 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8621 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8622 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8623 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8624 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8625 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8627 Notable changes in the process:
8629 - stepper_size style property is the height for vertical
8630 ranges, width for horizontal; the other dimension matches
8632 - add ability to do NeXT-style steppers (and several other styles
8633 that don't make any sense)
8634 - added min_slider_length, fixed_slider_length properties to
8636 - cleaned some private (or at least useless) functions out of
8638 - moved bindings to GtkScale from subclasses, even arrow keys,
8639 since blind users don't know scale orientation.
8640 - change move_slider action signal to use new GtkScrollType,
8641 remove GtkTroughType argument
8642 - digits rounds the values a range will input to the given
8643 number of decimals, but will not try to force adjustment
8644 values set by other controllers. That is, we no longer
8645 modify adjustment->value inside a value_changed handler.
8646 - added getters for GtkScale setters
8647 - middle-click begins a slider drag
8649 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
8651 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8652 getting the focus code to work.
8653 (gtk_tree_view_class_init): Add a bunch of keybindings.
8655 * gtk/gtktreeviewcolumn.c
8656 (gtk_tree_view_column_set_cell_data_func):
8657 s/GtkCellDataFunc/GtkTreeCellDataFunc.
8658 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8659 of "properties_changed" to help justify the death of the latter
8662 * tests/testtreefocus.c (main): Let some columns be focussable to
8665 2001-06-01 Havoc Pennington <hp@redhat.com>
8667 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8669 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8670 overwrite in overwrite mode if we already deleted the selection
8671 and replaced it with new text.
8673 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8674 selection to an empty range, clear the clipboard if we owned it.
8675 (gtk_label_set_selectable): give up selection if we become
8677 (gtk_label_state_changed): override state changed to unselect text
8679 (get_text_callback): add paranoia check that indexes aren't
8680 outside of label->text
8681 (gtk_label_select_region): make -1 for start_offset mean "end of
8682 label," for consistency with GtkEditable
8684 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8685 GTK_DIALOG_NO_SEPARATOR flag
8687 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
8689 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
8690 notifications on non-existant "enable_arrow_keys".
8691 (#53753, Skip Montanaro)
8693 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
8695 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
8698 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8699 of allocation argument be GDK_TYPE_RECTANGLE.
8701 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
8703 * gtk/gtkoptionmenu.c: Account for the fact that the border
8704 width is _outside_ the window. (Fixes #54585, bug found
8707 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
8709 * gtk/gtksettings.c (gtk_settings_get_property): Validate
8710 value from GDK settings against parameter spec.
8712 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8713 to temporary values and use g_value_transform(), since
8714 thinking that GValue was going to be easy or efficient
8715 to use was, of course, a mistake.
8717 * gtk/gtksettings.c: Add cursor blink setting.
8719 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8721 * gtk/gtkentry.c: Add cursor blinking.
8723 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8724 cursor blink global settings.
8726 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8727 for :text_position in places where it is missing.
8729 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
8731 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8733 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
8735 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8736 not pkg-config. (#51032)
8738 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8739 (fixes #51952, James Henstridge)
8741 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
8743 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8744 Rename to the more correct gtk-go-up.
8746 * gtk/stock-icons/stock_menu_sort_ascending.png:
8749 * gtk/stock-icons/stock_menu_sort_descending.png:
8750 Changed to show descending instead of ascending.
8752 * gtk/gtkiconfactory.c:
8753 Added menu size icon to sort ascending.
8755 * gtk/stock-icons/Makefile.am:
8756 Added stock_menu_sort_ascending.png.
8758 * gtk/gtkseparatormenuitem.c:
8759 Use correct typenames.
8761 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
8763 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8764 gulong as in GSignal.
8766 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
8768 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8769 instances of GtkCellRenderer in code (all but dnd icon code).
8770 Virtualized in GtkTreeViewColumn. Now I need to move focus in
8771 there, and I can do multiple Cells per column.
8773 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8775 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8776 when model was unreffed prior to removing the row reference.
8778 2001-05-25 Havoc Pennington <hp@redhat.com>
8780 * gtk/gtkiconfactory.c: fix so that default icons are created if
8781 you call gtk_stock_list_ids()
8783 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8786 2001-05-25 Havoc Pennington <hp@redhat.com>
8788 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8789 set can render without falling back to missing image icon
8791 * gtk/gtktextview.c (gtk_text_view_size_request): request full
8792 size of text, instead of random values
8794 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8795 size of tree view, instead of random values
8797 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8798 image in an appropriate size
8800 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8801 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8803 Throughout: fix GTK_STOCK_BUTTON_ instances
8805 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8806 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8807 Add a bunch of new stock items/icons
8809 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8810 new function, convenience for inserting columns with a data func
8812 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8813 (_gtk_icon_factory_list_ids): use list of all factories to
8814 generate a list of all known IDs
8816 * gtk/gtkstock.c (gtk_stock_list_ids): replace
8817 gtk_stock_list_items() with a function that returns all IDs known
8818 including those for GtkIconFactory.
8820 2001-05-25 Hans Breuer <hans@breuer.org>
8822 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8823 work -> check boxes and radio buttons are drawn now, even on win9x.
8824 Improved line settings a bit, still no clue how to get really dotted
8825 lines on win9x, on NT it's PS_ALTERNATE.
8827 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
8828 GDK_HINT_MIN_SIZE as well
8830 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8832 * gtk/gtk.def : updated
8834 * gtk/gtktreeprivate.h : change column_drop_func to be a function
8835 pointer not a function pointer pointer
8837 * tests/testdnd.c : include <stdlib.h> for putenv prototype
8839 * tests/testsocket.c : made it compile on win32 again
8841 * tests/makefile.msc : one more test-app uses prop-editor.obj
8843 2001-05-22 Havoc Pennington <hp@pobox.com>
8845 * gtk/gtkbin.c (gtk_bin_get_child): New function
8847 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
8849 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8850 to ignore when doing compose processing.
8852 2001-05-22 Joe Shaw <joe@ximian.com>
8854 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
8855 Simplify as suggested by Havoc. Just get the last iter and work
8856 backward to the tag instead of getting a line and working back from
8857 there. Fixes passing in an invalid offset to
8858 iter_init_from_byte_offset().
8860 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
8862 * gtk/gtktreeview*.h:
8865 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8866 macros to all objects.
8868 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
8870 * gtk/gtkcellrenderertext.c
8871 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8872 with very large (TM) amounts of text. May be moved to
8873 GtkCellRenderer in the future, though I'm not sure it wants to be
8876 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8877 More sanity brought to this class. I like it.
8879 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8880 case. Kids, don't try this at home.
8882 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8883 convenience function.
8885 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8887 2001-05-21 Alexander Larsson <alexl@redhat.com>
8890 Added properties. Based on patch by Lee Mallabone.
8896 * gtk/gtktextview.c:
8897 Converted GtkArg to GParam. Based on patches by John Margaglione.
8899 * tests/Makefile.am:
8901 Add a property editor to testtext.
8903 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
8905 * gtk/gtk{h,v,}paned.c: Only show the separator if
8907 * configure.in: Fixed reversed conditional causing all image
8908 libraries to be linked in.
8910 2001-05-21 Joe Shaw <joe@ximian.com>
8912 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8913 that top_y needs to be >= 0.
8915 2001-05-11 Havoc Pennington <hp@pobox.com>
8917 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8918 losing connection to the X server.
8920 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
8922 * configure.in: Start checks for X from pangox/pangoxft
8923 CFLAGS to avoid duplicate libraries.
8925 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8927 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8930 2001-05-18 Alexander Larsson <alexl@redhat.com>
8932 * gtk/gtkspinbutton.c:
8933 Convert GtkArgs to GParams. Based on patch by John Margaglione.
8934 Also do size request reasonable for MAXDOUBLE. Previously it printed
8935 the limits to a buffer and overran it. Instead do it using log10() and
8936 limit the width to 10 digits.
8938 * gtk/gtkwidget.c (gtk_widget_get_property):
8939 Correctly handle setting the parent property to NULL.
8941 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
8943 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
8944 style attributes even if the widget isn't realized.
8946 * demos/gtk-demo/main.c: Use a slightly smaller font.
8948 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
8950 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8951 This is something that only a widget writer would ever want
8954 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8955 gtk_signal_emit_by_name().
8957 * gtk/gtkviewport.c: Fix some warnings.
8959 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8960 allowing the requisitions of multiple widgets to be grouped
8963 * tests/testgtk.c: Add GtkSizeGroup test
8965 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8967 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8970 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8972 2001-04-28 Martin Baulig <baulig@suse.de>
8974 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8975 to gtk_image_menu_item_set_icon() and made it work if there's already
8977 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8978 (gtk_image_menu_item_new_with_label): New function.
8980 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
8982 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8983 highlighting code!!!! The result is okay so long as you don't try
8984 to stress it. It also highlights a bug in the TextView so it's in
8985 an unproportional font right now until it's fixed.
8987 *demos/gtk-demo/*.c: Clean up code a bit to make it
8988 ugly-parser(TM) friendly. (-:
8990 2001-05-17 Joe Shaw <joe@ximian.com>
8992 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8993 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8994 if it is only partially onscreen.
8996 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
8998 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
9001 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
9002 are not zero or one; that is, when graphemes of multiple characters
9005 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
9008 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
9011 Add properties, based on patch by Lee Mallabone.
9013 * gtk/gtknotebook.c:
9015 Convert from GtkArg to GParam, based on patch by John Margaglione.
9019 * gtk/gtkhscrollbar.c:
9020 * gtk/gtkvscrollbar.c:
9022 Move adjustment property to GtkRange.
9025 Setup mnemonics on property changes
9027 * gtk/gtkwidget.c (gtk_widget_get_property):
9028 GdkExtensionMode is an enum, not a flag. Set it with
9029 g_value_set_enum ().
9031 * tests/prop-editor.c:
9032 Better propery editor.
9035 Add new property test. Pass zero to the property editor to
9036 get properties from all derived types.
9038 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
9040 * autogen.sh (have_automake): Require libtool-1.4,
9043 * acinclude.m4: Remove libtool macros.
9045 * gdk-pixbuf/Makefile.am: Add dependencies to loade
9048 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
9051 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
9052 libgdk.la for libgtk.
9054 * modules/input/Makefile.am: Make modules have full
9057 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
9059 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
9060 #54699 where paths weren't being checked for correctness.
9062 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
9064 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
9065 in any order you wan, whether or not the column is added to the
9066 tree, or the tree is realized. Yay!
9068 * gtk/gtktreeviewcolumn.c
9069 (gtk_tree_view_column_setup_sort_column_id_callback): handle
9070 sorting columns a lot saner
9072 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
9073 new function to actually set wether or not a column is
9076 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
9079 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
9080 Fix nasty bug where we were showing the button just before
9081 realizing it. As a result, the parent window was
9082 tree_view->window instead of tree_view->priv->header_window.
9084 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
9085 to let you easily reorder a list or tree.
9087 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
9089 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
9090 from args to properties.
9092 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
9094 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
9095 from args to properties. (#51957)
9097 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
9098 calls to after ->set_property call.
9100 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
9102 * tests/prop-editor.c: Block against redundant changes.
9104 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
9107 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
9109 * gdk/gdkpixmap.h: Remove creative formatting.
9111 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
9113 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
9114 property API. (#51669)
9116 * gtk/gtkscale.c: Patch from John Margaglione converting to
9117 property API. (#51891)
9119 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
9120 to property API. (#50985)
9122 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
9124 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
9125 buffering state across expose event, so we still call end_paint().
9127 2001-05-11 Alexander Larsson <alexl@redhat.com>
9129 * gtk/gtkhsv.c (paint_triangle):
9130 Expose the ring in the triangle at the correct place when
9131 exposing just a part of the triangle.
9133 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
9134 Return FALSE, or window focusing will not work.
9136 2001-05-11 Havoc Pennington <hp@pobox.com>
9138 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
9141 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
9144 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
9146 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
9147 propagate exposes to NULL child.
9149 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
9150 against not having one of the scrollbars.
9152 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
9153 we don't keep a mnemonic window if we have no mnemonic installed.
9155 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
9157 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
9158 it has the _important_ side effect of initializing a class.
9160 2001-05-10 Alexander Larsson <alexl@redhat.com>
9162 * gdk/linux-fb/gdkprivate-fb.h:
9163 Make sure you can compile out the implementation/wrapper assert
9166 * gdk/linux-fb/gdkdrawable-fb2.c:
9167 Check implementation/wrappers, initialize type for pixmap dummys.
9169 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
9170 Hide the cursor if reading from the screen.
9172 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9173 Fix sign bug in tiling code.
9175 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9176 Handle background pixmaps.
9178 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
9180 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
9181 function to let user control where columns are dragged.
9183 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
9186 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
9188 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
9189 "columns_changed" signal.
9190 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
9191 motion code to draw arrows to the side if indicator is outside the
9193 (gtk_tree_view_map_expanded_rows): Implement.
9195 2001-05-07 Alexander Larsson <alexl@redhat.com>
9197 * demos/testpixbuf-save.c:
9198 * demos/testpixbuf-drawable.c:
9199 Include gdkfb.h on linux-fb.
9201 2001-05-07 Alexander Larsson <alexl@redhat.com>
9203 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
9204 New function for getting toplevel window at position.
9205 (gdk_drag_find_window): Use get_toplevel_window () instead
9206 of gdk_window_get_pointer(). (gdk_drag_status): Use
9207 correct context for getting window.
9209 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
9210 g_strdup the atom name.
9212 * gdk/linux-fb/gdkwindow-fb.c:
9215 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
9216 Add code for changing cursor on linux-fb backend (same as
9219 2001-05-07 Federico Mena Quintero <federico@ximian.com>
9221 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
9222 present before doing anything with it. Patch from Håvard Kvålen
9223 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
9224 report was not for the development branch of GTK+, but it applies
9227 2001-05-04 Havoc Pennington <hp@redhat.com>
9229 * configure.in: fix some shell typos
9231 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
9233 * gtk/gtkimage.c: handle animations
9235 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
9236 border_width * 2, not just border_width
9238 * gtk/gtkscale.c: add "format_value" signal to allow people
9239 to override the way values are drawn.
9240 (gtk_scale_get_value_size): fix width/height mistake,
9241 and compute size from actual displayed text, not
9244 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
9247 * tests/testtext.c: Add "Remove all tags" menu item for testing
9249 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
9251 * demos/gtk-demo/main.c (main): add hack so we can find modules
9252 without installing gtk
9254 * demos/gtk-demo/textview.c (insert_text): demo font scaling
9256 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
9258 (gtk_cell_renderer_text_set_property): remove some bogus
9261 * gtk/gtktexttag.c: add "scale" property which is a font scaling
9264 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
9267 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
9268 gtk_text_iter_is_first
9270 2001-01-06 Hans Breuer <hans@breuer.org>
9272 * gdk/gdk.def : updated exports
9274 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
9275 gdk won't compile anymore
9277 * gdk/win32/gdkevents-win32.c : initialize ret_val when
9278 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
9279 Improved gdk_flush () to not only do pending drawing operations
9280 but also process all currently pending events. This should make
9281 the behaviour more similar to the X11 version.
9283 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
9284 option needs to be set even if there is no GDK_GC_BACKGROUND.
9285 (gdk_win32_hdc_get) : use predraw_set_background () independent
9286 of value_mask. This allows to draw dashed lines leaving the original
9289 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
9290 after processing, because we can't reuse it as the X11 version does.
9292 * gtk/gtk.def : updated exports
9294 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
9295 would like to get rid of this file again, and use straight
9296 makefile.msc again, as the other Gtk+ subdirs do)
9298 * test/makefile.msc (new file) : build the test apps here
9300 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
9302 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9303 strike-through setting
9304 (gdk_draw_layout_line_with_colors): Render strike-through
9306 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
9310 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9314 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9317 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
9319 * demos/gtk-demo/images.c (progressive_timeout): Fix
9322 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9323 out FIXME warning; just too annoying.
9325 2001-05-04 Alex Larsson <alla@lysator.liu.se>
9327 * gdk/linux-fb/gdkcolor-fb.c:
9328 Better error messages.
9330 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9331 Initialize abs_x and abs_y.
9333 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9334 Correct handling of stipple offset.
9336 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9337 Treat directcolor framebuffers as truecolor.
9339 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
9341 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9342 dependency on Atk for accessibility support.
9344 * configure.in **/Makefile.am: Major reworking of substituted
9345 variables for CFLAGS/LIBS to make a lot more sane and
9346 keep the the compile/link lines a bit shorter.
9348 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9350 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
9352 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9353 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9354 use _gtk_boolean_handled_accumulator.
9356 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
9358 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9359 to fix things so clicking inside selection leaves cursor
9360 at point where clicked. (#50324)
9362 * gtk/gtksettings.c (gtk_settings_class_init): Restore
9363 sane value for default double click time.
9365 * tests/testtext.c (test_init): Really path to input modules.
9367 2001-05-03 Sven Neumann <sven@convergence.de>
9369 * demos/testpixbuf-save.c: include target-specific headers as
9370 done in testpixbuf-drawable.c
9372 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
9374 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9375 new_text_length appropriately when we run into the
9376 size limit for the entry. (#53445, reported by Jeff Franks)
9378 * tests/testgtk.c (create_entry): Remove most of the
9379 property toggle buttons. Replace with a "Props" button
9380 that brings up a property editor.
9382 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9383 Split the property editor code out for reuse, improve.
9385 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
9387 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9388 trap errors around calls to XSetInputFocus since we have
9389 no way of knowing reliably whether we are viewable or
9392 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
9394 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9395 fix bug in dropping columns. Moving columns now basically works
9396 modula some fine tuning.
9398 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
9400 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9401 autoscroll support. It mostly works, but could use some fine
9403 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9404 Actually move the column.
9406 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
9408 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
9409 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9410 New default theme! A slighly improved version of the 2.0 Raleigh
9411 theme, with Windows-esque focus/drawing default.
9412 (GtkWidget::interior_focus defaults to TRUE.)
9414 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9416 2001-04-30 Havoc Pennington <hp@pobox.com>
9418 * tests/testtext.c (line_numbers_expose): fix to work with
9419 gtk_paint_layout change
9421 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
9423 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9424 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9425 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9426 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9428 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9429 with GtkWidget::interior_focus = TRUE better.
9431 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9432 ::default_outside_border for more flexibility.
9434 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
9435 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9436 change that had to be made with g_object_get.
9438 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
9440 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9441 (gtk_tree_view_move_column_after): Clean up interface.
9443 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
9446 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9449 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9453 (gtk.defs): generate enum portions with glib-mkenums.
9454 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9455 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9457 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9460 * docs/Changes-2.0.txt: keep a note on signal handlers now
9461 not getting emitted during the emission they were connected within.
9463 2001-04-28 Havoc Pennington <hp@pobox.com>
9465 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9467 2001-04-24 Havoc Pennington <hp@redhat.com>
9469 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
9470 (gtk_text_layout_move_iter_to_next_line): fix these two for
9471 invisible text, lots of other stuff still hosed.
9473 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9474 new function, replaces the get/set palette stuff. This function
9475 is intended for use by libgnomeui which should set the hook to a
9476 thing which sets the palette in GConf, and we need the
9477 GConf-to-xsettings proxy which will result in the change being
9478 propagated back to the GTK app.
9480 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
9481 about unusable signals that it may be because the signal has
9484 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9485 style, otherwise gtkrc.c won't know to create a new GtkStyle for
9487 (gtk_widget_modify_color_component): call
9488 gtk_widget_modify_style() so the rc style will get copied.
9489 (gtk_widget_modify_font): ditto
9491 * gtk/gtkrc.c: make a couple variables static
9493 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9494 help button by default, since it does nothing
9496 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9499 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9500 so we can have tooltips
9502 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9505 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9506 GDK_ENABLE_BROKEN, because its memory behavior is completely
9509 * gtk/gtknotebook.c: remove key press handler, replace with
9510 binding set, add numeric keypad support
9512 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9514 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9516 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9517 addition to plain Delete
9519 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9520 GDK_KP_Enter in addition to GDK_Return
9522 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9523 activate on entry instead of key press
9524 (gtk_font_selection_on_clist_key_press): get
9525 rid of this signal handler, not needed with new font sel.
9527 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9528 no-longer-needed emit_stop_by_name(), just return TRUE
9530 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9531 cruft, this widget is no longer focusable.
9533 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9534 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9535 move_slider action signal, add binding set for vscale/hscale, in
9536 the process support numeric keypad
9538 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
9539 make GDK_Return and GDK_KP_Enter activate the entry via
9540 binding set, instead of hardcoded.
9542 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
9544 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9545 code. Some documentation added.
9547 2001-04-27 Havoc Pennington <hp@redhat.com>
9549 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9551 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9553 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9554 line/para separators
9555 (gtk_entry_create_layout): set single paragraph mode on the layout
9557 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9558 spacing between the image and label; instead, inside a button box
9559 the button will get extra space that will go there, but if people
9560 configure button box for 0 chubbiness, then there's no spacing.
9562 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9563 and min/max size style properties, so people can tune their
9566 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9569 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9570 space_style, and button_relief into style properties, remove
9571 functions for setting them
9573 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
9576 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9577 types from gtk_widget_style_get
9579 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9580 with a style property.
9582 * gdk/x11/gdkevents-x11.c: namespace the settings
9584 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9586 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9587 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9588 be used. Also, translate doc strings for settings. Also, namespace
9589 the double-click-time property. Also, remove bell properties crap.
9591 2001-04-27 Sven Neumann <sven@gimp.org>
9593 * Makefile.am: before creating links, check if pkg-config files
9594 exist for the default target. Otherwise link to the pkg-config files
9595 that got installed with this build.
9597 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
9599 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9600 dragging code. Revealed some (potential) GdkWindow bugs.
9602 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9603 _gdk_window_init_position to the end of reparent to fix the case
9604 of reparenting when new_x != old_x and new_y != old_y.
9606 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
9608 * gtk/gtkentry.c (strstr_len): Fix optimization that
9609 was correct for the use here, but completely incorrect
9612 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
9614 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9615 until patch adding gtk_window_set_size() is recommitted.
9617 * **Makefile.am configure.in gdk/x11/gdkim-11.c
9618 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9619 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9622 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
9624 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
9625 window == NULL in a number of cases.
9627 * tests/testdnd.c: Set module path for gdk-pixbuf.
9629 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
9631 * gtk/Makefile.am xembed.h: File containing #defines
9632 for XEMBED protocol.
9634 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
9636 - Change protocol from old plug/socket specific protocol
9638 - Various fixes to work with GTK+-2.0
9640 Still quite a bit of work to do here to handle initiation
9641 from the socket side (as specified by XEMBED), to handle
9642 the more advanced features of XEMBED, and to figure out
9643 a good way to handle same-app embedding with less overhead
9644 than using full XEMBED.
9646 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
9648 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9649 track of whether the toplevel has the focus; only send
9650 focus-in events to the focus widget when the window
9651 actually has the focus.
9653 2001-04-25 Havoc Pennington <hp@pobox.com>
9655 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9656 were still in the header
9658 2001-04-24 Alexander Larsson <alexl@redhat.com>
9660 * gtk/gtkclist.[ch]:
9662 When there is a row highlighted for D'n'D it must alse
9663 be painted hightlighted on exposes. Otherwise exposes from
9664 the icon being dragged will mess up the hightlight.
9667 Don't recenter selected font when exposing the font family
9668 clist. This means you can now actually scroll the font family
9671 * gtk/gtknotebook.c:
9672 Fix focus movement on scrolling tabs that are placed on the left
9675 2001-04-21 Havoc Pennington <hp@pobox.com>
9677 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9678 empty/invisible lines.
9680 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9681 (gtk_text_iter_set_visible_line_index): new functions to set
9682 indexes excluding invisible text
9684 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
9687 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9688 (gtk_text_iter_get_visible_line_offset): new functions to
9689 get indexes excluding invisible text
9691 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9692 bunch of extra padding that served no purpose
9694 * gtk/gtkdialog.c: Make all the spacings configurable via style
9695 properties, for chubbiness configuration in themes
9697 * tests/testtext.c: fix path to the immodules.
9699 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
9701 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9702 got munched by #endif.
9704 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9706 * gtk/gtktreeview.c: Refactored code to clean up a number of
9709 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9710 values to make consistent with other functions. Spotted by Jeff
9711 Franks <jcf@tpg.com.au>.
9713 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9714 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9716 2001-04-23 Sven Neumann <sven@gimp.org>
9720 * gtk/gtksocket.c: on request of Owen, reverted my last change
9721 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9723 2001-04-23 Sven Neumann <sven@gimp.org>
9725 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9726 compile for non-X11 targets again
9728 2001-04-20 Alexander Larsson <alexl@redhat.com>
9730 * gtk/gtkcolorsel.[ch]:
9731 API Change. Take GdkColor arguments instead of gdouble *.
9732 Leave the old gtk_color_selection_set_color for compatibility,
9733 but marked deprecated.
9734 Do correct rounding when converting RGB <-> HSV.
9736 * gtk/gtkcolorseldialog.c:
9738 Use new GtkColorSelection API.
9741 Fix problem selecting colors in triangle when Hue is 330.
9742 Fix some black dots around the HSB triangle.
9745 return FALSE from the focus_in_event handler to fix focus problems.
9747 2001-04-18 Havoc Pennington <hp@redhat.com>
9749 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9750 set, so keybindings are configurable
9751 (gtk_window_activate_default): Change to activate the focus widget
9752 instead if there's a focus widget, to be consistent with the
9753 behavior that previously existed in key_press_event
9755 2001-04-18 Havoc Pennington <hp@redhat.com>
9757 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9759 2001-04-18 Havoc Pennington <hp@redhat.com>
9763 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9766 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9768 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9770 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9772 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9773 to blue for base, in addition to bg
9775 2001-04-18 Havoc Pennington <hp@redhat.com>
9777 * tests/testgtk.c (create_image): allow shrinking the image window
9778 to test that we clip to allocation.
9780 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9783 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9785 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
9787 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9788 mode on shm segments to 0600. We'll see who complains.
9790 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9791 _gdk_windowing_window_destroy() AFTER recursing through
9794 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9795 testsocket_child on X.
9797 * tests/testsocket[_child].c: Fix uses of
9798 gtk_window_get_default_accel_group().
9800 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
9802 * gdk/gdkimage.c: (gdk_image_get):
9803 Deal with the possibility that XGetImage() might return NULL.
9804 Allocate the GdkImagePrivate structure only after XGetImage()
9805 succeeds in order not to dereference a NULL ximage pointer. This
9806 prevents a core dump when XGetImage() fails - which is unlikely,
9807 but can happen due to race conditions accessing the geometries of
9808 drawables. An x error will still be triggered, but the gdk image
9809 wrapper at least wont seg fault.
9811 2001-04-18 Havoc Pennington <hp@redhat.com>
9813 * gtk/gtkimage.c: fix to properly queue resizes when the image is
9816 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9817 if the insertion point isn't editable
9819 * demos/gtk-demo/images.c: Added a GtkImage demo
9821 * demos/gtk-demo/drawingarea.c: drawing area demo
9823 * demos/gtk-demo/menus.c (create_menu): cleanups
9825 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
9827 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
9828 gdk/x11/gdkevents-x11.c: Introduce an extra child
9829 of toplevel windows that serves to hold the focus to
9830 avoid events being delivered to embedded windows.
9832 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9833 some extra variables to clean up code and reduce the
9836 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9837 guint for 1 bit bit fields, not gboolean.
9839 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
9841 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9842 not TRUE. (Fixes #52925)
9844 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
9850 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9853 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
9855 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9857 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9858 names to compatibility #defines so docs work.
9860 * gtk/gtkenums.h: Remove GtkMenuFactoryType
9862 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9864 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9866 * tests/testgtkrc: No magenta cursors, please.
9868 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9870 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9872 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
9874 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9875 grabs, since they are no longer necessary.
9877 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9878 by signal_connect() and call gtk_button_pressed() rather
9879 than signal_connect_after().
9881 * tests/testgtk.c: Restore radio menu items to combos
9882 since they'll look OK with Raleigh, and it is easier
9883 than finishing the process of removing them that was
9886 2001-04-16 Hans Breuer <hans@breuer.org>
9889 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9891 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9892 we are interested in the functions return value not the function address
9893 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9895 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9897 2001-04-14 Hans Breuer <hans@breuer.org>
9900 * gdk/makefile.msc : updated
9902 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
9903 "fill with tile" do so with new helper function gdk_win32_draw_tiles
9904 (the testgtk::text backgound pixmap is drawn again)
9905 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
9907 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9909 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9910 Not sure if the returned settings have the right unit, because I couldn't
9911 find any docs for the X version ...
9914 * gtk/makefile.msc.in : updated
9916 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
9918 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9919 wording problems. (Compared to version from Johannes Stezenbach to
9922 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
9924 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9927 2001-04-12 Anders Carlsson <andersca@codefactory.se>
9929 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9932 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9934 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9935 are unsigned insts, therefore use g_value_set_uint.
9936 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9938 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
9940 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9942 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9945 * gtk/gtktreeview.c: New functions to allow initial column
9948 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9950 * tests/testtreefocus.c: give dave some love.
9952 * tests/testtreesort.c: Modify test to check really long samples.
9954 2001-04-11 Alexander Larsson <alexl@redhat.com>
9956 * gtk-2.0.m4: Pass pkg-config options
9957 before the other args so it works even if
9958 POSIXLY_CORRECT is set.
9960 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
9962 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9965 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
9967 * gtk/gtkcalendar.c (gtk_calendar_button_press):
9968 check for action_func != NULL
9970 2001-04-04 Sven Neumann <sven@gimp.org>
9972 * tests/testgtk.c (test_init): corrected path to gtk.immodules
9974 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
9976 * Released Gtk+-1.3.3.
9978 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
9980 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9982 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
9984 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9985 files to/from source dir. (if we don't stay in builddir, we
9986 can't reach make-inline-pixbuf.
9988 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9991 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9994 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
9996 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
9997 moved to the GtkTreeSortable interface.
9999 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
10000 Make more efficient (fixes #50262).
10002 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
10006 * configure.in: Remove support for uninstalled glib.
10008 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
10009 so as not to stop emission.
10011 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
10012 is no longer supported.
10014 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
10015 into tests, change build order to build modules before
10018 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
10021 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
10023 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
10024 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
10025 GPatternSpec. this is actually unlikely to cause breakage in
10026 third-party apps since except for gle, pretty much ever caller
10029 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
10031 * *.c: use g_pattern_*() API.
10033 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
10035 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
10036 directions aren't passed in.
10038 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
10039 functionality to be usable from gtkstyle.c as well, give precedence
10040 for conversion to user-supplied parsers.
10041 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
10043 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
10044 _gtk_settings_parse_convert() for rcporperty value conversion.
10046 2001-04-03 Alexander Larsson <alexl@redhat.com>
10048 * gdk/linux-fb/gdkevents-fb.c:
10049 Add empty gdk_setting_get().
10051 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
10053 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
10056 * gtk/makeenums.pl: touch this so enum files get remade.
10058 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
10060 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
10061 work again when not sorted.
10063 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
10064 and "expand_row" signal, closing bug 52578.
10066 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
10069 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
10072 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
10074 * gdk/gdkevents.h: Add GdkEventSetting event for notification
10075 of changes to system settings, gdk_setting_get() to retrieve
10076 a single system setting.
10078 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
10079 to the draft XSETTINGS mechanism.
10081 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
10084 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
10085 of GDK settings changes to the GtkSettings object.
10087 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
10088 double-click-timeout property to GDK.
10090 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
10091 Define GDK boxed types here.
10093 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
10094 gdk/gdkenumtypes.[ch] for enum definitions.
10096 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
10097 * gtk/gtk-boxed.defs: Comment out GDK types
10098 * gtk/gtktypeutils.h: Remove GDK types
10099 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
10101 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
10103 * Applied patch from Ron Steinke to add signal accumulators
10104 so that signals with the convention 'TRUE return means
10105 handled' stop emission on a TRUE return.
10107 * gtk/gtkmain.[ch]: Add private accumulator
10108 _gtk_boolean_handled_accumulator, used throughout GTK+.
10110 * gtk/gtkspinbutton.c: Add accumulator for ::output.
10112 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
10114 * gtk/gtkwidget.c: Add accumulators for event signals,
10115 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
10116 for ::mnemonic-activate.
10118 * gtk/gtkwindow.c: Add accumulator for ::frame_event
10120 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
10122 * gtk/gtkwidget.c: Add missing include.
10124 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
10126 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
10129 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
10130 "changed" signal to "range_changed".
10132 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
10133 removing a tree from one model would remove all trees from that
10135 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
10136 changed signal instead.
10138 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
10140 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
10141 chaining up to parent impl, since we have a INPUT_ONLY
10144 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
10145 foreground color for the cursor.
10147 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
10149 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
10150 param spec when caching property values, since we unref it
10151 later when we free the style.
10153 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
10154 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
10156 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
10158 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
10159 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
10162 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
10164 [ First pass at adding style properties. Still needs some definite
10167 * gtk/gtkbutton.c: Add ::default_spacing style property.
10169 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
10170 ::indicator_spacing style properties.
10172 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
10175 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
10176 rather than a normal property.
10178 * gtk/gtkwidget.c: Add an ::interior_focus style property to
10179 draw focus inside buttons, in the Windows/Java Metal/etc. style.
10181 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
10182 Honor ::interior_focus.
10184 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
10187 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
10188 Add ::slider_width, ::trough_border, ::stepper_size,
10189 ::stepper_spacing style properties.
10191 * gtk/gtkscale.[ch] Add ::slider-length style property.
10193 2001-04-02 Alexander Larsson <alexl@redhat.com>
10195 * gdk/linux-fb/gdkwindow-fb.c:
10196 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
10197 warnings that were spewed on startup.
10199 * gtk/gtkwindow-decorate.c:
10200 gtk_window_reposition -> _gtk_window_reposition
10202 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
10204 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10205 Add boxed type for GtkRequistion. Use it for ::size-request.
10207 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10208 Add a new GtkBorder structure useful for geometry properties
10209 for widgets. Add corresponding GTK_TYPE_BORDER.
10211 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
10212 Support automatic parser selection like
10213 gtk_settings_install_property_parser().
10215 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
10216 functionality for use by gtk_widget_class_install_style_property.
10217 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
10219 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
10221 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
10222 g_param_spec_unichar().
10224 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
10226 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
10227 _NET window managers.
10229 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
10231 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
10233 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
10234 bad needs to be nuked, not just deprecated.
10236 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
10237 gtk_widget_popup().
10239 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
10241 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
10244 * docs/Changes-2.0.txt: updates.
10246 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
10248 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
10249 for (i = 0; i < 100; i ++)
10250 g_print ("I will confirm it compile before committing\n");
10252 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
10254 * gtk/gtktreestore.c: Initial work on implementing the
10255 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
10257 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
10259 * gtk/gtkwidget.c: fixed a bunch of notifications, added
10260 reference counts around emissions where the widget is used afterwards.
10261 added freeze/thaws around multiple properties being notified.
10262 (_gtk_widget_get_aux_info): cleanups.
10264 * gtk/gtksettings.c (gtk_settings_install_property): provide
10265 default parsing functions for gdkcolor, enums and flags.
10267 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
10269 backed out gtk_window_get_location(), gtk_window_set_location(),
10270 gtk_window_get_size() and gtk_window_set_size(), these
10271 have to be sorted out wrg x/y/width/height/default_with/default_height
10273 kept a flag in GtkWindowGeometryInfo to handle user
10274 resetting default sizes.
10275 cleaned up ZVT comments.
10276 bunch of assorted bug fixes, notification fixes.
10277 (_gtk_window_reposition): make this a really internal function.
10279 * gtk/testgtk.c: fixups.
10281 2001-03-31 Hans Breuer <hans@breuer.org>
10283 * config.h.win32.in : disable USE_MMX for msvc build cause
10284 the assembler doesn't fit and is out of my scope. Disable
10285 USE_GMODULE for msvc build as wel. The right way to share
10286 binaries on win32 would be to use libtiff.dll etc. To reduce
10287 installation hassles IMO it's better to include all fileformats
10288 builtin to gdk-pixbuf
10290 * gdk-pixbuf/makefile.msc : new file
10292 * gdk/gdk.def : updated
10294 * gdk/win32/gdkevents-win32.c : don't erase the background if
10295 .no_bg is set. It improves the scrolling (e.g. of testgtk main
10297 * gdk/win32/gdkgeometry-win32.c : added comment about the above
10299 * gdk/win32/gdkwindow-win32.c : added three new functions like
10300 the X version. Only one is implemented, because the other two
10301 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
10302 be default behaviour on win32 anyway ...
10304 * gtk/gtk.def : updated
10306 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10307 from where it was built and add an additional rule to automagically
10308 build gtkmarshal.[hc]
10310 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10311 before array access for the current entry isn't finished
10313 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10314 use g_return_val_if_fail
10316 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10317 for the static array, but let the compiler calculate it. It
10318 makes me wonder if gcc isn't capable to catch bugs like this ...
10320 2001-03-31 James Henstridge <james@daa.com.au>
10322 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10323 constant "-1" in the aux info structure.
10325 2001-03-30 Alexander Larsson <alexl@redhat.com>
10327 * gtk/gtkbutton.c (gtk_button_get_property):
10331 * gtk/gtkcontainer.c:
10333 * gtk/gtkhscrollbar.c:
10336 * gtk/gtkprogress.c:
10337 * gtk/gtkprogressbar.c:
10340 * gtk/gtkviewport.c:
10342 * gtk/gtkvscrollbar.c:
10344 Property patches, based on patches from John Margaglione and Lee Mallabone.
10346 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
10348 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10349 adjustment. Cleaned redundant preconditions (spin != NULL). Added
10350 inline API function docs.
10351 (gtk_spin_button_new_with_range): New convenience constructor.
10352 (gtk_spin_button_set_increments): New adjustment helper.
10353 (gtk_spin_button_set_range): New adjustment helper.
10355 * gtk/testgtk.c : added test of the new convenince constructor and
10356 value_changed signals.
10358 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
10360 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10361 listen to the reorder signal.
10363 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
10365 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10366 to get the aux info structure fo the widget.
10368 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10371 [ Patch from Havoc Pennington <hp@redhat.com> ]
10373 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10374 to get the size of the window manager frame, basically the same
10375 code that gdk_window_get_root_origin() had
10376 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10378 * gtk/gtkwindow.c (gtk_window_set_default_size): use
10379 gdk_window_resize() if the window is realized and resizeable
10381 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10382 typo so that setting gravity works
10384 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10385 allocation if auto_shrink is on, even if the default size
10388 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10391 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
10393 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10394 reordering/sorting work. Now pretty much works.
10396 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10397 reorder mostly work. Still need to get the parity correct.
10399 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10400 signal, so I can listen for the sort_column_changed signal so I
10401 can change my "sort_indicator" property. Cool.
10403 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
10405 [ Patch from Havoc Pennington, hp@redhat.com ]
10407 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10408 Add functions gdk_window_begin_resize_drag/begin_move_drag
10409 to start resizing or moving a toplevel window. This
10410 is done either using the _NET_WM_MOVERESIZE protocol,
10411 or, if that isn't present, by emulation.
10413 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10414 to export the above to GTK+-land.
10416 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10418 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10419 Move this function into gdkwindow, since we need it
10420 when implementing fallback resizing.
10422 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10423 Fix typo when setting gravity.
10425 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10426 Add an optional (but on by default) resize grip for resizing
10429 01-03-29 Alexander Larsson <alexl@redhat.com>
10431 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10432 Don't return TRUE from the event handler, that blocks all
10433 event signals on the tooltip widget. Now you can press buttons
10436 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
10438 * gtk/testtext.c (create_buffer): Add missing NULL on
10441 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10442 c-n-p problem with INCONSISTENT property.
10444 [ Patch from Havoc Pennington <hp@redhat.com> ]
10446 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10449 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10450 signal as a hook for extending the default popup menu
10452 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10453 use radio menu items for the input method menuitems
10455 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
10456 inserted unicode from Ctrl-Shift-hex input method
10458 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10459 validatation here, already done at GtkTextBuffer level.
10461 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10462 popup_menu run action signal and Shift+F10 and Menu keybindings.
10464 * gtk/gtkentry.c: implement a default handler for popup_menu
10466 * gtk/gtktextview.c: implement a default handler for popup_menu
10468 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10471 * gtk/gtklabel.c: remove "trailer" cruft
10473 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
10475 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10476 handle reordering of trees. Seems to mostly work w/ the exception
10477 of the parity flag.
10479 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10482 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
10484 * gtk/gtkwidget.h: c++ fixes.
10486 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
10488 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10491 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
10493 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
10494 Nils Barth fixing event return values. (#51041)
10496 * gtk/gtkwidget.c: Fix some return values for default
10499 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10500 return values for trough_keys functions.
10502 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10503 value for add_accelerator (shoudl have been a void
10506 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10507 Fix return type of EVENT.
10509 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10510 signal return a boolean.
10512 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
10514 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10517 * tests/testtreesort.c (main): fix spelling.
10519 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
10521 * gtk/gtkliststore.c: More work on implementing sortable
10524 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
10526 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10527 reference the widgets in the resulting list. (#11821)
10528 This makes this consistent with gtk_container_children.
10530 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10531 uses of gtk_window_list_toplevels.
10533 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
10535 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10536 a virtual function to set whether the IM context should use
10537 the preedit string. (#51922)
10539 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
10541 * gdk/gdkpango.h: Remove stale FIXME comment.
10543 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
10545 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10546 Fixed bug that returned NULL if a filename was selected.
10548 2001-03-24 Havoc Pennington <hp@pobox.com>
10550 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10551 to contain the word "theme"
10553 2001-03-24 Havoc Pennington <hp@pobox.com>
10555 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10556 slower but finer-grained
10557 (gtk_hsv_focus): get initial focus on the ring or triangle
10558 according to tab direction
10560 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10562 2001-03-23 Havoc Pennington <hp@pobox.com>
10564 * gtk/gtkhsv.c: make this somewhat key-navigable
10566 * gtk/gtkfontsel.c: mnemonics
10568 * gtk/gtkgamma.c: mnemonics
10570 * gtk/gtkcolorsel.c: add mnemonics to labels
10572 2001-03-22 Havoc Pennington <hp@pobox.com>
10574 Applied big patch from Seth Lytle to fix event handler return
10575 values, slightly modified.
10577 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10579 (gtk_calendar_key_press): return TRUE for GDK_space triggers
10582 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10583 (gtk_clist_button_release): return TRUE if handled
10585 * gtk/gtkcolorsel.c (mouse_release):
10586 (palette_activate):
10590 (get_screen_color):
10591 fixed return type (void to gboolean), return TRUE,
10592 added GTK_SIGNAL_FUNC cast
10594 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10595 (void to gboolean), and return TRUE
10596 (gtk_combo_button_release): changed return value to TRUE after
10597 gtk_grab_add on combo->popwin
10599 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10602 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10605 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10606 press/release and motion that trigger act
10608 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10610 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10613 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10614 (gtk_list_button_release): return TRUE if selection
10616 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10619 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10620 (gtk_menu_shell_button_release): chain parent_menu_shell retval
10622 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10624 (gtk_notebook_button_release): return TRUE if we do anything
10626 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
10627 (gtk_spin_button_button_release): return TRUE or chained retval
10629 * gtk/gtktext.c (gtk_text_button_press):
10630 (gtk_text_button_release): return TRUE
10631 (gtk_text_key_press): remove redundant retval code
10633 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10635 (gtk_tree_item_subtree_button_click): changed type to gint, and return
10638 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
10641 2001-03-23 Havoc Pennington <hp@redhat.com>
10643 * gtk/testgtk.c: fix warnings
10645 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10647 * gtk/gtktextview.c: fix warnings
10649 * gtk/gtktext.c (find_cursor_at_line): fix warning
10651 * gtk/gtkselection.c (gtk_selection_notify): fix warning
10653 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10656 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10659 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10661 * gtk/gtkfontsel.c: fix warning
10663 * gtk/gtkcolorsel.c: fix warnings
10665 2001-03-23 Havoc Pennington <hp@redhat.com>
10667 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10669 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10671 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10672 and deprecated gtk_check_menu_item_set_show_toggle().
10674 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10676 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10678 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10680 2001-03-23 Havoc Pennington <hp@redhat.com>
10682 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10685 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
10687 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10690 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10691 set_cell to set_value
10693 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10694 set_cell to set_value
10696 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
10698 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10700 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10703 * gtk/gtktreeview.c: Addition of initial sortable support.
10705 * gtk/gtktreestore.c: Addition of initial sortable support.
10707 * gtk/gtkliststore.c: Addition of initial sortable support.
10709 * gtk/gtkmarshal.list: yet another marshaller.
10711 * gtk/gtktreedatallist.[ch]: shared code between the store models
10712 for handling sorting headers.
10714 2001-03-22 Havoc Pennington <hp@redhat.com>
10716 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
10717 (gtk_container_unset_focus_chain): Add ability to override the
10718 focus chain for a container explicitly
10720 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
10722 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10723 added PROP_MNEMONIC_WIDGET.
10725 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
10726 (gtk_window_remove_mnemonic):
10727 (gtk_window_add_mnemonic): fixed assertions.
10728 (gtk_window_activate_mnemonic): constrain modifier checks to those
10729 permitted by gtk_accelerator_get_default_mod_mask().
10730 got rid of gtk_window_get_default_accel_group().
10732 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10733 activatable widgets either by focussing or a warning.
10734 added a signal accumulator to ::activate_mnemonic which stops the
10735 emission once a handler returned TRUE.
10737 2001-03-22 Havoc Pennington <hp@pobox.com>
10739 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10740 the stock item label
10742 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10744 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10746 * demos/gtk-demo/*.c: Add mnemonics all over the place
10748 * gtk/gtklabel.h: mark parse_uline deprecated
10750 2001-03-21 Alexander Larsson <alexl@redhat.com>
10752 * gtk/gtkitemfactory.[ch]:
10753 Add support for stock and normal imagemenuitems.
10756 Add some tests for mnemonics, stock toolbars, stock
10757 and image menuitems in itemfactory and gdk_window_scroll.
10759 2001-03-21 Alexander Larsson <alexl@redhat.com>
10761 * gtk/gtkbutton.[ch]:
10763 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10764 removed accel_group argument. Renamed gtk_button_new_accel() to
10765 gtk_button_new_with_mnemonic() and removed accel_group argument.
10767 * gtk/gtkcheckbutton.[ch]:
10768 New function gtk_check_button_new_with_mnemonic().
10771 Override activate_mnemonic and just grab focus.
10773 * gtk/gtkitemfactory.c:
10774 Don't add menu uline accel group, instead use mnemonics support.
10776 * gtk/gtklabel.[ch]:
10777 New support for mnemonics.
10779 * gtk/gtkmarshal.list:
10780 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10784 Use mnemonics instead of accel groups for uline
10785 support in menu items.
10786 Removed gtk_menu_get_uline_accel_group() and
10787 gtk_menu_ensure_uline_accel_group().
10789 * gtk/gtkmenuitem.c:
10790 Override activate_mnemonic to handle switching between
10791 menu items if there are collisions.
10793 * gtk/gtknotebook.c:
10794 Connect to activate_mnemonic on the tab_label, so that
10795 activating it switches to that notebook page.
10797 * gtk/gtkwidget.[ch]:
10798 Add activate_mnemonic signal. New function
10799 gtk_widget_activate_mnemonic() to emit it.
10800 Default implementation does activate/grab_focus.
10802 * gtk/gtkwindow.[ch]:
10803 Add support for mnemonics in windows.
10805 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10806 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10809 Update to function name changes.
10811 2001-03-21 Alexander Larsson <alexl@redhat.com>
10813 * gtk/gtkimagemenuitem.[c]:
10814 Add gtk_image_menu_item_new_from_stock()
10816 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
10818 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10819 Fix buglet in meeting.
10821 2001-03-19 Havoc Pennington <hp@redhat.com>
10823 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10824 add a bunch of accessor functions. This is because we have
10825 reasonable expectations of extending what fields it contains in
10828 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10831 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10834 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
10836 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10837 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10839 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
10840 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10841 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10842 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10843 Change float to double everywhere with the exception of 0<->1.0 alignment
10846 2001-03-19 Tor Lillqvist <tml@iki.fi>
10848 * gdk/win32/gdkdrawable-win32.c
10849 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10852 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10855 2001-03-18 Tor Lillqvist <tml@iki.fi>
10857 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10858 print_event_state, print_event): Use preprocessor macro to make
10859 code more compact. Print also GDK_WINDOW_STATE events.
10860 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10863 * gtk/makefile.mingw.in: Update.
10865 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10866 to catch also Cygwin.
10868 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
10870 * gtk/gtkspinbutton.[hc]: added rc-style argument
10871 GtkSpinButton::shadow_type.
10872 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10873 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10876 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10878 * gtk/gtkwidget.c: quark cleanups.
10880 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10881 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10882 to create_rc_style() (we don't do cloning in standard OO sense).
10883 added per rc style properties.
10885 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10886 property values and for caching those. some cleanups.
10888 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10890 * gtk/gtksettings.[hc]: new file for global rc-file properties
10891 (at least currently, should get extended to support X properties
10892 and other communication mechanisms).
10894 * gtk/gtkwidget.[hc]: added style property support:
10895 (gtk_widget_class_install_style_property_parser): install style
10896 property pspec with parser function for rc-file values other
10897 than LONG, DOUBLE or STRING.
10898 (gtk_widget_class_install_style_property): same as above without
10899 parser (parsers are going to be needed quite infrequently).
10900 (gtk_widget_style_get_property): retrive style property value.
10901 (gtk_widget_style_get_valist): same as above with varargs support,
10902 has NOCOPY semantics.
10903 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10905 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
10907 * demos/gtk-demo/main.c (row_activated_cb): modified to use
10908 "row_activated" signal.
10910 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10911 stupidity. Lets actually pass in the row with this signal...
10913 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
10915 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10917 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10919 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10920 everything into the ::destroy function, and freed a lot more.
10922 2001-03-16 Havoc Pennington <hp@redhat.com>
10924 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10925 instead of gint16, to avoid overflow issues, since sizes > 16-bit
10928 2001-03-16 Havoc Pennington <hp@redhat.com>
10930 * Applied patch from Nils Barth (bug # 51041) to
10931 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10934 2001-03-15 Havoc Pennington <hp@redhat.com>
10936 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
10937 for properties to set on the tag.
10939 * gtk/testtext.c: fixups to reflect create_tag change
10941 * gtk/gtktexttag.c (gtk_text_tag_set_property):
10942 background/foreground stipple are objects, not boxed.
10944 * demos/gtk-demo/textview.c: intellihancing
10946 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
10948 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10949 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10951 2001-03-16 Alexander Larsson <alexl@redhat.com>
10953 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10954 Fix sign error with queued region translations.
10956 2001-03-15 HideToshi Tajima <tajima@happy>
10958 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
10959 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10960 * gtk/gtkentry.c (update_im_cursor_location):
10961 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10962 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10963 set_cursor_pos to set_cursor_location in GtkInputContext class
10965 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
10967 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10968 the location of the cell relative to its area.
10969 * gtk/gtkcell*: modified for above change
10970 * gtk/gtktreeview.c: modified for above change.
10972 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
10974 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10975 (gtk_tree_view_finalize): actually unref the model. Thanks to
10976 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10978 2001-03-14 Havoc Pennington <hp@redhat.com>
10980 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10982 * gtk/gtk.h: remove gtkdata.h
10984 * gtk/Makefile.am: remove gtkdata
10986 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10987 not "disconnect" on the adjustments.
10989 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10992 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10995 * configure.in: handle case where X render exists, but Pango lacks
10998 2001-03-15 Alexander Larsson <alexl@redhat.com>
11000 * gtk/gtktoolbar.[ch]:
11001 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
11002 to add stock items to toolbars.
11005 Remove ../gdk/gdkim.h from gdk_headers.
11007 2001-03-15 Sven Neumann <sven@gimp.org>
11009 * gdk/gdkim.h: removed
11012 * gdk/x11/gdkim-x11.c: do not include gdkim.h
11014 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
11016 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
11017 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
11018 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
11019 set_cursor_pos() virtual method
11021 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
11022 (gtk_im_context_xim_set_cursor_pos): add implementation for
11023 set_cursor_pos() method
11025 * gtk/gtkentry.c (recompute_idle_func): set current cursor
11026 position to input methods
11028 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
11030 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
11033 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
11035 (_gtk_tree_data_list_alloc): use g_mem_chunk.
11036 (_gtk_tree_data_list_node_to_value): Fix to switch on
11037 G_TYPE_FUNDAMENTAL.
11038 (_gtk_tree_data_list_value_to_node): Fix to switch on
11039 G_TYPE_FUNDAMENTAL.
11040 (_gtk_tree_data_list_node_copy): Fix to switch on
11041 G_TYPE_FUNDAMENTAL.
11043 2001-03-12 Havoc Pennington <hp@redhat.com>
11045 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
11046 to convert to new property API. Also, change default_width and
11047 default_height get_property to return 0 as the flag value for
11048 "unset"; -1 is not a valid value for these fields.
11050 2001-03-12 Havoc Pennington <hp@redhat.com>
11052 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
11053 enum with registration for icon sizes, instead of strings.
11055 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
11056 gtkwidget.c: Fix to reflect GtkIconSize
11058 2001-03-12 Alexander Larsson <alexl@redhat.com>
11060 Make GtkFB compile and link.
11062 * gdk/linux-fb/gdkdrawable-fb2.c:
11063 window->mapped to GDK_WINDOW_IS_MAPPED().
11065 * gdk/linux-fb/gdkwindow-fb.c:
11066 window->mapped to GDK_WINDOW_IS_MAPPED().
11067 Added gdk_window_shape_combine_region.
11068 Added assorted placeholders for unimplemented new GdkWindow API calls.
11070 2001-03-12 Alexander Larsson <alexl@redhat.com>
11072 * gtk/gtkfilesel.c:
11073 Add more test when converting filenames from/to utf-8.
11074 Don't allow entering text in the filename entry which isn't allowed in
11075 a filename. Just beep instead.
11077 2001-03-12 Alexander Larsson <alexl@redhat.com>
11080 Scroll using gdk_window_scroll(). Don't wait for exposes.
11081 Move the column headers in an order that makes them flash less.
11083 2001-03-10 Hans Breuer <hans@breuer.org>
11085 * gdk/gdk.def : updated
11087 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
11088 to offseting the clip_mask at the right place
11090 * gdk/win32/gdkwindow-win32.c : don't create background brushes
11091 for all the gdkClasses, especially not for the input_only case.
11092 Otherwise flickering wont be avoidable, because we don't get
11093 WM_ERASEBKGND message for these windows.
11095 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
11096 and fixed massive redraw problems apparently triggered by Alexanders
11097 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
11098 but it seems to work quite well :-)
11100 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
11103 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
11105 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
11106 (gtk_list_store_set_cell): Fix a stupid typo.
11108 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
11110 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
11111 select_all not work if you're in SINGLE mode (it doesn't make that
11112 much sense, anyway.)
11114 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11115 handle types more sanely.
11116 (_gtk_tree_data_list_value_to_node): handle types more sanely.
11117 (_gtk_tree_data_list_node_copy): handle types more sanely.
11119 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
11120 GValue better. Converts the type as well.
11122 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
11123 GValue better. Converts the type as well.
11125 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
11127 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
11128 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
11129 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
11130 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
11132 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
11135 2001-03-09 Hans Breuer <hans@breuer.org>
11137 * gdk/gdk.def : updated
11139 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
11142 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
11145 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
11146 removing and implemented Havoc's GdkWindow state functions;
11147 stick/unstick only as no-op, cause I don't know how to emulate
11150 * gtk/gtk.def : updated
11152 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
11154 * gtk/gtktypeutils.c : #include <string.h>
11156 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
11158 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
11160 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
11161 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
11164 2001-03-09 Alexander Larsson <alexl@redhat.com>
11166 * docs/Changes-2.0.txt:
11167 Document expose event->region change and that gtk_widget_event
11168 doesn't allow passing expose events.
11171 Add region to expose event.
11174 Handle event->region in gdk_event_copy() and gdk_event_free().
11176 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
11177 Generate expose_event->region when creating expose events.
11179 * gdk/x11/gdkevents-x11.c:
11180 Generate expose events with regions when translating X events.
11182 * gtk/gtkcontainer.[ch]:
11183 Default expose handler that propagates expose events to NO_WINDOW
11184 children. New function gtk_container_propagate_expose()
11186 * gtk/gtkwidget.[ch]:
11187 Moved gtk_widget_event implementation to gtk_widget_event_internal.
11188 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
11189 expose events. New function gtk_widget_send_expose() to send expose
11190 events. New function gtk_widget_region_intersect() to calculate
11191 window/region intersections.
11193 * gtk/gtkmain.c (gtk_main_do_event):
11194 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
11195 Use gtk_widget_send_expose() to send expose events.
11200 * gtk/gtkimagemenuitem.c:
11205 Remove expose handler, using the default container implementation
11209 * gtk/gtkcheckbutton.c:
11210 * gtk/gtkeventbox.c:
11212 * gtk/gtkhandlebox.c:
11214 * gtk/gtklistitem.c:
11216 * gtk/gtkmenubar.c:
11217 * gtk/gtkmenuitem.c:
11218 * gtk/gtknotebook.c:
11219 * gtk/gtkoptionmenu.c:
11221 * gtk/gtkscrolledwindow.c:
11222 * gtk/gtktogglebutton.c:
11223 * gtk/gtktoolbar.c:
11224 * gtk/gtktreeitem.c:
11225 * gtk/gtkviewport.c:
11226 Chain expose handler to parent class handler. Use
11227 gtk_container_propagate_expose() to propagate exposes.
11229 * gtk/gtkclist.c (check_exposures):
11230 * gtk/gtktext.c (process_exposes):
11231 Use gtk_widget_send_expose instead of gtk_widget_event.
11233 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
11235 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
11237 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
11239 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
11240 unref the nodes. Fixes bug #50058.
11242 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
11243 "::ref_iter" to "::ref_node".
11244 (gtk_tree_model_unref_node): change "::unref_iter" to
11245 "::unref_node". Fixes bug #50064.
11247 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
11249 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
11250 support for invisible cells.
11251 (gtk_tree_view_bin_expose): ditto
11253 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
11255 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
11258 * tests/testtreefocus.c (main): New test file.
11260 * tests/testtreeview.c: update to latest glib changes.
11262 * tests/testtreecolumns.c: update to latest glib changes.
11264 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
11266 * gtk/testgtk.c: re-enabled event watcher emission hooks.
11268 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
11270 * *.c: added accumulator data argument to g_signal_newc()
11273 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
11274 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
11275 * gtk/treestoretest.c (make_window):
11276 s/g_signal_connect/g_signal_connectc/.
11278 * gtk/gtktextbuffer.c: completed signal arg fixups,
11279 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
11281 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
11283 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
11286 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
11287 ::hierarchy-changed signal when a widget changes
11288 from anchored to unanchored or vice versa.
11290 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
11291 Use a private flag to keep track of this efficiently.
11293 2001-03-07 Havoc Pennington <hp@redhat.com>
11295 * gtk/testgtk.c (create_spins): uglify so that size request gets
11298 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
11299 request on values for upper/lower, completes #6152
11301 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
11303 * Makefile.am: Remove gtk-config-2.0 again.
11304 (Grrrr, pkg-config. And stops make loops.)
11306 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
11308 * gtk/gtksignal.[hc]: removed old emission hook API.
11310 * docs/Changes-2.0.txt: fixed sections.
11312 * gtk/gtktextbuffer.c: signal arg fixups.
11314 2001-03-07 Havoc Pennington <hp@redhat.com>
11316 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11318 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11319 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11320 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11321 validation and the redraw which is higher priority than the
11324 2001-03-07 Havoc Pennington <hp@redhat.com>
11326 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11327 (gtk_entry_set_property): remove trailer
11329 * gtk/gtkentry.c (gtk_entry_set_width_chars):
11330 (gtk_entry_get_width_chars): new functions, to set size request to
11331 a given number of characters
11333 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11335 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11336 (gtk_dialog_get_has_separator): new function
11337 (run_delete_handler): fix to not emit "response" signal
11338 because we already did in the delete event handler installed
11339 at dialog creation time.
11341 * gtk/gtkdialog.h: add a has_separator property,
11342 add GTK_DIALOG_NO_SEPARATOR flag
11344 2001-03-07 Havoc Pennington <hp@redhat.com>
11346 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11347 off decorations for a window.
11349 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11352 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
11353 to get location of PangoLayout inside the label, closes #51198
11355 * gtk/testgtk.c (create_bbox): fix up button box usage
11357 * gtk/testcalendar.c (create_calendar): fix up button box usage
11359 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11361 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11363 * gtk/gtkhbbox.h: deprecations
11365 * gtk/gtkvbbox.h: deprecations
11367 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11368 emulate deprecated gtk_button_box_get_spacing
11370 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
11371 the "set global default" functions
11372 (struct _GtkButtonBox): remove "spacing" field, use the one from
11375 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11377 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11378 render the icon, return the missing image icon.
11380 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11381 image icon if the load fails.
11383 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11384 when no image is found; should be the Netscape "missing image"
11385 icon eventually but for now is a random image
11387 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
11388 role for the session manager
11390 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11392 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11393 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11395 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11397 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
11399 * gtk/*.c: marshaller fixes.
11401 * gtk/gtkmarshal.list: extreme cleanup.
11403 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11404 param spec for now.
11406 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11409 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11410 special cased autogenerated boxed types from gtktypebuiltins_ids.c
11411 which are not reference counted:
11412 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11413 PangoFontDescription, GtkTreeIter and GtkTreePath.
11415 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
11417 * gtk/gtktreeselection.h:
11418 * gtk/gtktreemodel.c:
11419 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11420 file should be included directly, and gobject/gmarshal.h
11421 as well as gtk/gtkmarshal.h even can't be included directly.
11423 * Makefile.am: grr, install gtk-config-2.0.
11428 * gtk/gtkitemfactory.c: use g_object_connect() instead of
11429 passing "*signal*::*" args to gtk_widget_set().
11431 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11433 * gtk/*.c: removed trailer arg from property setters and getters.
11436 2001-03-07 Alexander Larsson <alexl@redhat.com>
11438 * gtk/gtklabel.c (set_markup): Removed warning
11440 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
11442 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11443 field to allow you to hide cell renderers.
11445 * gtk/gtkcellrenderer.c: Add support for invisible cells.
11447 * gtk/gtktreeview.c: Add support for invisible cells.
11449 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
11451 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11452 Add "clicked" signal back to columns.
11454 * ChangeLog: remove conflict markers.
11456 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
11458 * gtk/gtkbutton.c: Add animation of activation by, on
11459 activate, pressing the button, and adding a timeout that
11460 releases the button after 250ms or on key release and
11461 emits ::clicked. (#51501)
11463 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11464 action area, we connect to ::clicked instead of ::activate
11465 so the dialog stays up through the animation.
11467 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
11469 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11470 check the ignore_enter flag for the menu shell that
11471 the item is actually a child of, not for attached
11474 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11476 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11477 special key-press grab handling for widgets within
11478 GtkWindows. Otherwise, fall through to normal case.
11480 This prevents key events being sent twice to GtkInvisible
11481 widgets, which can cause all sorts of mischief.
11483 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11485 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11486 widget is in effect, give the grab widget a first
11487 crack at KEY_PRESS/RELEASE events. (#424)
11489 2001-03-06 James Henstridge <james@daa.com.au>
11491 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11492 offset for the window_state_event to point at window_state_event
11493 rather than no_expose_event.
11495 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
11497 * gtk/gtkimmodule.h: fix busted /* comment */
11499 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
11501 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11504 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
11506 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11507 add object properties.
11509 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11510 to add object properties.
11512 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11515 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11516 add object properties.
11518 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11521 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
11523 * gtk/gtktreemodel.c: renamed "child_toggled" to
11524 "has_child_toggled".
11526 * gtk/gtktreeview.c: Handle removing columns better. Updated to
11527 handle new signal name.
11529 * gtk/gtktreestore.c: Updated to handle new signal name.
11530 * gtk/gtklisttore.c: Updated to handle new signal name.
11531 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11533 2001-03-05 Alexander Larsson <alexl@redhat.com>
11535 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11536 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11538 2001-03-05 Michael Natterer <mitch@gimp.org>
11540 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11541 pixbuf-engine coincidentially also failed to make one of it's
11542 parent_class pointers static, causing overwriting of GtkLabel's
11543 parent_class pointer in pixbuf_style_class_init().
11544 (Will commit the fix to the pixbuf-engine too).
11546 2001-03-05 Alexander Larsson <alexl@redhat.com>
11549 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11550 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11551 gdk_window_set_icon_list for net wmspec functionality.
11553 * gdk/x11/gdkwindow-x11.c:
11554 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11555 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11556 gdk_window_set_icon_list.
11557 Added gdk_wmspec_change_state helper function and used it in the code.
11558 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11560 * gtk/gtkdialog.c (gtk_dialog_init):
11561 Set GDK_WINDOW_TYPE_HINT_DIALOG.
11563 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11564 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11567 new function gtk_window_set_type_hint.
11568 On realize, set type hint and modal hint.
11571 Added type_hint field and gtk_window_set_type_hint.
11573 2001-03-05 Alexander Larsson <alexl@redhat.com>
11575 * gtk/gtklabel.[ch]:
11576 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11577 New function gtk_label_get_accel_keyval () to get the underline accelerator
11578 of the label. Setting the label pattern overrides other attributes.
11580 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
11582 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11583 Added missing initializers to gtk_rc_style_init().
11585 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11587 * gtk/gtktextview.c: fixed bug #51097 about setting
11588 gtk_text_view_set_border_window_size() if the widget is
11591 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
11593 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11595 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11596 comment. Won't do to have duplicated doc comments between
11597 the platform subdirs.
11599 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
11601 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
11602 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11604 Detectable auto-repeat - make a repeating key generate
11605 press/press/press/release instead of press/release pairs.
11607 If we have Xkb and XkbSetDectableAutoRepeat supports
11608 that, we do it that way. Otherwise, when we get
11609 a release event, we check ahead with XPending to see
11610 if the next key is a KeyPress with the same keycode
11611 and timestamp. (Not 100% reliable, but pretty close.)
11613 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11615 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11616 special key-press grab handling for widgets within
11617 GtkWindows. Otherwise, fall through to normal case.
11619 This prevents key events being sent twice to GtkInvisible
11620 widgets, which can cause all sorts of mischief.
11622 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11624 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11625 widget is in effect, give the grab widget a first
11626 crack at KEY_PRESS/RELEASE events. (#424)
11628 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
11630 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11631 to extend the selection. (Roughly based on patch
11632 from Jay Cox, #50939)
11634 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11635 to properly handle previous GDK_BUTTON_PRESS.
11636 (Patch from Jay Cox, #50938)
11638 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11639 '\0' back along with the deleted text. (#51148)
11641 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
11643 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11644 the group when extracting it from the X keyboard event.
11646 * modules/input/Makefile.am modules/input/imipa.c:
11647 Simple module for entering IPA. (Do we need a
11648 gtk-stupid-input-tricks CVS module?)
11650 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
11652 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11655 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11657 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11658 is no focus widget for the dialog currently, grab the focus as well
11661 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11662 the action area's children to iterate through, not the
11665 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
11667 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11668 Add plug-socket tests. (Won't work worth a darn until I commit
11669 the rest of the plug-socket changes, but no reason these
11670 can't go into CVS now.)
11672 2001-03-02 Havoc Pennington <hp@redhat.com>
11674 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11675 _gdk_region_get_xrectangles()
11677 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11679 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11681 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11682 function, contributed by Ron Steinke
11684 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11685 gdk_net_wm_supports
11687 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
11688 New function, contributed by Ron Steinke
11690 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
11691 used to line up the text in the entry when using the entry for
11692 editable sheet cell hacks
11694 * gtk/testgtk.c (create_entry): test the activate_default setting
11697 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
11698 cause the entry to activate the default button for a dialog when
11700 (gtk_entry_get_activates_default): new function
11702 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
11704 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11705 Hwang to move call to sync_selection() up a few lines
11706 to before the row list is modified, to fix crash when
11707 removing rows in the undo_selection list.
11709 (Test case provided by Daniel Elstner:
11711 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11713 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
11715 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11716 of tree->root_tree in parent_set rather than _map(),
11717 fixing #50892 in a bit better manner.
11719 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
11721 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11723 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
11725 * gtk/gtkstyle.c : Remove duplicate fwd decl for
11726 gtk_default_draw_shadow.
11728 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
11730 * gdk/gdkimage.c (gdk_image_new): Remove excess
11731 warning, make warnings more verbose, treat a error
11732 in shmat as permanent, and don't try again.
11733 (#51163, Ed Randall.)
11735 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
11737 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11738 delay for the first click before starting to scroll.
11739 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11741 * gtk/gtktext.c: GtkText should have I-beam cursor.
11742 (based on gtk-enf-990513-1.patch, Eric Fisher.)
11744 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
11746 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11747 cleanup to remove some references to unused
11748 ->xoffset, ->yoffset.
11750 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
11752 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11753 mask. (#51039, fix from Martin Maierhofer)
11755 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
11757 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11758 for unshifted + and shifted = for non-us keyboards.
11759 Make <Control>+ and <Control>- work as well as
11760 <Control>KP_Plus, <Control>KP_Minus for recursive
11761 open/close. (#2682, René Seindal)
11763 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
11765 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11766 the active menu item before deactivating the menu,
11767 so gtk_menu_popdown doesn't change the history. (#50964)
11769 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
11771 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
11772 draw lines with text_gc rather than black_gc.
11773 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11775 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
11777 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11778 Move handling of buttons fully in gtktreeviewcolumn. This code is
11779 less interrelated then it was, but it still requires the
11780 GtkTreeView to map it.
11782 * test/testtreecolumn.c: Now I can add a column to one view,
11783 remove it, add it to the another view, remove it, then re-add it
11784 to the first. Nifty.
11786 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
11788 * docs/tutorial/gtk-tut.sgml: Minor corrections
11790 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
11792 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11795 2001-02-28 Havoc Pennington <hp@redhat.com>
11797 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11799 (gtk_widget_draw_focus): remove this function; we could instead
11800 make it just gtk_widget_draw(), but in most cases I think the
11801 result would be broken user code, so think it's better to have
11802 that code not compile and get fixed
11803 (gtk_widget_draw_default): ditto
11805 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11806 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11808 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11809 widgets lose/get the default, instead of calling draw_default
11811 * docs/Changes-2.0.txt: note about all this
11813 Then fixed every widget in GTK, I won't list all the filenames.
11815 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
11817 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11818 _gtk_tree_row_reference_deleted.
11819 (inserted_callback): Proxy out to
11820 _gtk_tree_row_reference_inserted.
11821 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11822 get around signal emission ordering problem.
11824 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11825 fix to work with SINGLE
11826 (_gtk_tree_selection_internal_select_node): Major sanitization on
11827 selections. SINGLE now seems to work.
11829 * tests/Makefile.am: add testtreecolumn.c:
11831 * tests/testtreecolumn.c: New test. Mostly points out selection
11832 bugs currently, but will test columns later.
11834 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11835 selection bug. I hate touching this code -- it's scary.
11837 2001-02-26 Havoc Pennington <hp@redhat.com>
11839 * gtk/testgtk.c: test the window state stuff
11841 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11842 window come to the user's attention as if it were just created
11843 (gtk_window_iconify): new function
11844 (gtk_window_deiconify): new function
11845 (gtk_window_stick): new function
11846 (gtk_window_unstick): new function
11847 (gtk_window_maximize): new function
11848 (gtk_window_unmaximize): new function
11850 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11852 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11854 * gdk/x11/gdkevents-x11.c: create window state events when
11856 (gdk_wmspec_supported): new function
11858 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11859 iconification before showing the window
11860 (gdk_window_deiconify): new function
11861 (gdk_window_stick): new function
11862 (gdk_window_unstick): new function
11863 (gdk_window_maximize): new function
11864 (gdk_window_unmaximize): new function
11866 * gdk/gdkwindow.c: store the window state in the window;
11867 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11869 (gdk_window_get_state): return the current window state
11871 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11872 (gdk_event_get_state): handle GDK_WINDOW_STATE
11873 (gdk_synthesize_window_state): function to create the window state
11876 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11877 event, for changes to "window state" such as maximized, sticky,
11880 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11883 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
11884 finds out if we support a given WM spec hint
11886 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
11888 * docs/faq/gtk-faq.sgml: New question re memory leaks.
11890 2001-02-25 Hans Breuer <hans@breuer.org>
11892 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11893 cause we want to loose those prototypes only in the latter case
11895 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11896 GdkPixmapImplWin32 because it itsn't derived from it. Use the
11897 impl member variable instead
11899 * gtk/gtk.def : updated
11902 * gtk/gtkmenus.c : include <string.h> for memset ()
11904 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11905 for everthing built here, but for gtk-x.x.dll only. This solves
11906 problem of indifferent gtk type definitions
11908 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
11910 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11912 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
11914 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11915 column that is exposed.
11917 (_gtk_tree_view_update_size): Changed name from set_size, and
11918 changed function to do more work, and not force people calling it
11919 to figure out the size. Simplifies a lot of code elsewhere.
11921 2001-02-23 Alexander Larsson <alexl@redhat.com>
11923 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11924 return solid masks for xpms that have no transparent color.
11925 This makes the ..._create_from_xpm... API backwards
11928 2001-02-23 Tor Lillqvist <tml@iki.fi>
11930 * README.win32: Update. Mention the gtk-1-3-win32-production
11933 * gdk/win32/bdfcursor.c: New file. A program that generates
11934 xcursors.h. Thanks to Stefan Ondrejicka.
11936 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11939 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11941 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11942 function, uses xcursors.h.
11943 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11944 cursor from inline data instead of using LoadCursor() to generate
11945 it from a resource.
11947 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11948 event, must check the Windows message for mouse button state, as
11949 the GDK event state might not have been built if it is
11950 undelivered. Remove one goto.
11952 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11953 SetCursor() if the current cursor as returned by GetCursor() is
11954 the window's previous cursor. The ChildWindowFromPoint() test
11955 apparently didn't work correctly.
11957 * gdk/win32/rc/*.cur: Remove.
11959 * gdk/win32/rc/gdk.rc.in: Remove cursors.
11961 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11963 * gtk/makefile.{mingw,msc}.in: Updates.
11965 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
11967 * gtk/gtktreemodel.h: add functions for signal emission.
11969 * gtk/gtktreestore.c: move to use above functions instead of
11972 * gtk/gtkliststore.c: ditto
11974 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
11976 * gtk/gtktreestore.c: removed signals. Moved to inherit from
11977 GObject instead of GtkObject.
11979 * gtk/gtkliststore.c: ditto.
11981 * gtk/gtktreemodelsort.c: ditto.
11983 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11984 GtkTreeModelIface, instead of in each model.
11986 2001-02-21 Havoc Pennington <hp@redhat.com>
11988 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11989 unbreak this function
11991 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
11994 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11997 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
12000 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
12001 mean unset the max length
12003 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
12005 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
12006 Changed name to be set_cell_data_func to make it clear what
12007 the functino does. Close bug #51069.
12009 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
12011 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
12012 have memory actually freed. Keeps box running longer.
12014 2001-02-21 Alexander Larsson <alexl@redhat.com>
12016 * gtk/gtkseparatormenuitem.[ch]:
12017 Added new menu separator item. The drawing and size handling
12018 is still done in GtkMenuItem, but the API is a bit more sane.
12021 Add gtkseparatormenuitem.[ch].
12024 Add gtkseparatormenuitem.h.
12027 * gtk/gtkmenufactory.c:
12028 * gtk/gtktextview.c:
12029 Use the new API for menu separators.
12031 * demos/gtk-demo/menus.c (create_menu):
12032 Add some GtkSeparatorMenuItem demo code.
12034 2001-02-20 Havoc Pennington <hp@redhat.com>
12036 * gtk/gtkaspectframe.c: Convert to new property API, patch from
12039 * gtk/gtkarrow.c: Convert to new property API, patch from
12042 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
12044 * tests/testtreeview.c (toggled_callback): fix to reflect change
12045 in GtkTreeModelStore.
12047 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
12049 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
12050 function to create an icon set from a pixbuf.
12052 2001-02-20 Alexander Larsson <alexl@redhat.com>
12054 * gtk/gtkcellrenderertext.[ch]:
12055 Add a "markup" property.
12057 * gtk/treestoretest.c:
12058 Use the markup property, remove some leftover stuff from
12059 GtkTreeModelMapping.
12061 2001-02-20 Alexander Larsson <alexl@redhat.com>
12063 * gtk/gtklabel.c (gtk_label_set_selectable):
12064 Queue a redraw if the selectable setting was changed.
12066 2001-02-20 Alexander Larsson <alexl@redhat.com>
12068 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
12069 Actually copy the whole gc, not just the public parts.
12071 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12072 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
12075 2001-02-19 Havoc Pennington <hp@pobox.com>
12077 * gdk/gdkwindow.c: docs
12079 * gdk/gdkrgb.c: docs
12081 * gdk/gdkregion-generic.c: docs
12083 * gdk/gdkgc.c (gdk_gc_set_values): docs
12085 * gdk/gdkdraw.c: docs
12087 * gdk/gdkdrawable.h: deprecate drawable get/set data
12089 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
12091 * demos/gtk-demo/dialog.c: Add simple new demo.
12093 2001-02-19 Havoc Pennington <hp@redhat.com>
12095 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
12096 insert_child_anchor signal, bug #50245
12098 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
12099 from create_child_anchor, so the anchor is passed in
12101 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
12102 (_gtk_widget_segment_new): have the child anchor object passed in,
12103 instead of creating it.
12105 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
12106 to gtk_text_buffer_get_modified
12108 2001-02-19 Havoc Pennington <hp@redhat.com>
12110 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
12111 changed GLib without fixing GTK
12113 * gtk/gtkrange.h: Rename all the stupid implementation detail
12114 functions to have an underscore in front. Most of them should
12115 probably just go away, but for starters don't export them.
12118 2001-02-19 Havoc Pennington <hp@redhat.com>
12120 * gdk/gdkcolor.h: test was backward, so deprecated functions were
12121 excluded by default
12123 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
12124 clean up the old code a bit
12126 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
12129 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
12130 draw inconsistent state
12132 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
12133 (create_menu): add inconsistent test
12135 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
12137 (gtk_check_menu_item_get_inconsistent): new function
12138 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
12139 state (using etched in for now)
12141 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
12142 draw inconsistent state
12144 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
12145 function, used when the user has selected a range of stuff in
12147 (gtk_toggle_button_get_inconsistent): accessor for that
12148 (gtk_toggle_button_paint): draw inconsistent state (etched in?
12149 don't know what else to do)
12151 2001-02-19 Hans Breuer <hans@breuer.org>
12153 * gtk/gtk.def : updated exported symbols
12155 * gtk/makefile.msc.in : updated
12157 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
12158 a colormap, when invoked from testgtk::entry. I'm not sure where
12159 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
12160 avoids immediate crashing ...
12162 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
12165 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
12166 0 parameter. At least msvc doesn't like macros with var args.
12167 I simply removed the extra 0, was it a feature or a typo ?
12169 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
12170 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
12171 because the value assignment to the internal struct wasn't working.
12172 I'm not absolutely sure. The problem could have been resolved by
12173 changing the "func" declartion in the struct, but was the pointer
12174 to the function pointer intended ?
12176 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
12178 * gdk/gdk.def : updated exported symbols
12180 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
12181 only use SetDIBitsToDevice if there is a palette at the drawable
12182 and the image is GDK_VISUAL_PSEUDO_COLOR
12184 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
12186 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
12188 * gdk/*/makefile.msc : updated
12190 2001-02-19 Havoc Pennington <hp@redhat.com>
12192 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
12193 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
12195 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
12196 (gdk_key_repeat_restore): nuke
12198 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
12199 (gdk_init_check): no atexit func
12201 * gdk/gdkrgb.h: mark some stuff deprecated
12203 * gdk/gdkcolor.h: mark some stuff deprecated
12205 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
12207 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
12209 2001-02-16 Havoc Pennington <hp@redhat.com>
12211 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
12214 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
12215 steps, and add Ctrl-arrow shortcuts for paging visually as with
12216 HScale, since Page Up and Page Down move logically.
12218 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
12219 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
12221 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
12223 (gtk_range_scroll): handle the visual steps
12225 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
12228 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
12229 steps, not the logical ones.
12231 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
12232 (scroll_vertical): handle up/down steps
12234 2001-02-19 Alexander Larsson <alexl@redhat.com>
12236 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
12237 Copy data and free data with free().
12239 * gdk-pixbuf/gdk-pixbuf.c:
12240 * gdk-pixbuf/io-jpeg.c:
12241 * gdk-pixbuf/io-png.c:
12242 Use g_try_malloc/g_free instead malloc/free.
12244 * gdk-pixbuf/test-gdk-pixbuf.c:
12245 Must... initialize... gobject...
12247 * gdk-pixbuf/pixops/timescale.c:
12248 * gtk/gtkcalendar.c:
12249 Use g_malloc instead of malloc.
12251 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
12254 Comment out property assignments, these don't work yet.
12256 2001-02-17 Havoc Pennington <hp@pobox.com>
12258 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
12261 2001-02-17 Havoc Pennington <hp@pobox.com>
12263 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
12264 shadowed variables that had broken size request in some cases,
12265 leading to bogus tooltips (#50996)
12267 2001-02-06 Jon K Hellan <hellan@acm.org>
12269 Implement fast browsing of tooltips, bug #50619
12271 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
12274 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
12275 use_sticky_delay and last_popdown.
12276 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
12278 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
12280 (gtk_tooltips_recently_shown): New static function. Return true
12281 if < sticky_delay has elapsed since last popdown.
12282 (gtk_tooltips_event_handler): Display window after sticky_delay
12283 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
12284 since last popdown.
12286 2001-02-17 Havoc Pennington <hp@pobox.com>
12288 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
12289 instead of (). #6394
12291 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
12292 G_CONST_RETURN, make it return by reference, #50473
12294 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
12296 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
12297 generated ENTER_NOTIFY event with 0, otherwise not explicitely
12298 setup fields contain garbage (e.g. subwindow, breaking
12299 gdk_drawable_ref() upon event copy).
12300 (gtk_menu_stop_navigating_submenu_cb): same here.
12302 * gtk/gtklist.c (gtk_list_vertical_timeout):
12303 * gtk/gtklist.c (gtk_list_horizontal_timeout):
12304 * gtk/gtkclist.c (vertical_timeout):
12305 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12306 default-zero-intialization for unions to memset(,0,), as unions are
12307 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12308 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12310 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12311 g_closure_sink() warning.
12313 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
12314 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
12315 * gtk/gtkliststore.c (gtk_list_store_set_valist):
12316 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12318 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
12320 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12321 gtk_*_store_get, and moved to GtkTreeModel.
12323 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12325 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12327 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12329 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12332 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12333 freeze/thaw notify between setting all the properties for a cell.
12335 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12337 2001-02-15 Havoc Pennington <hp@redhat.com>
12339 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12340 the X coordinates so they're with respect to the line, rather than
12341 with respect to the layout.
12343 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12346 * gtk/testgtk.c (create_range_controls): add vscale tests,
12349 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
12352 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12354 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
12355 gtk_text_iter_is_end
12357 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12358 rename gtk_text_buffer_get_end_iter
12360 * gtk/testgtk.c (create_labels): Add test for selectable
12362 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12363 the selection stuff. This code is kind of broken since it doesn't
12364 use the theme engine.
12366 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
12367 fix infinite loop and y offset problem
12368 (gdk_draw_layout_line_with_colors): fix foreground color handling
12370 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
12371 that makes the label selectable.
12373 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12374 layout when the style is set, since fonts etc. could have changed.
12376 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
12378 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12380 * gtk/gtktreemodelsimple.[ch]: removed.
12382 2001-02-16 Alexander Larsson <alexl@redhat.com>
12384 * gtk/gtktreemodelmapping.[ch]:
12385 New files. Implement GtkTreeModelMapping.
12388 Add gtktreemodelmapping.[ch].
12391 Add gtktreemodelmapping.h
12393 * gtk/treestoretest.c:
12394 Test the GtkTreeModelMapping
12396 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
12398 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12399 have a demo, we might as well pass in real values. Thanks to
12400 clahey for pointing this out.
12402 2001-02-14 Havoc Pennington <hp@pobox.com>
12404 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12405 "static" to a private function
12406 (gtk_image_menu_item_class_init): remove destroy handler,
12407 add "image" object property
12409 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
12411 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12412 Add a shortcut if the window and the current clip_region doesn't
12413 overlap. This is needed when there are a lot of windows in a
12414 window. The layout test in testgtk is a good test.
12416 * gdk/linux-fb/gdkwindow-fb.c:
12419 2001-02-13 Sven Neumann <sven@convergence.de>
12421 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12423 2001-02-13 Alexander Larsson <alexl@redhat.com>
12425 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12426 Don't reference last_cursor if it is null. Fixes crash when rotating
12427 the screen before having moved the mouse.
12429 * gdk/linux-fb/gdkcc-fb.c: Zapp!
12431 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12433 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
12434 when using 90 or 270 degrees rotation.
12436 2001-02-12 Havoc Pennington <hp@pobox.com>
12438 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
12439 it always set the foreground, even if we were only using
12441 (gdk_draw_layout_line_with_colors): new function, allow
12443 (gdk_draw_layout_with_colors): new function, allow override
12445 (gdk_pango_layout_line_get_clip_region): function to get the clip
12446 region for a logical text range
12447 (gdk_pango_layout_get_clip_region): get the clip region for a
12450 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12451 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
12452 the right number of arguments.
12454 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12455 enhance the function to check that node data corresponds to a
12456 view still belonging to the tree.
12458 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
12460 (gtk_tree_view_inserted): ditto
12461 (gtk_tree_view_child_toggled): ditto
12463 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12464 simplify this code.
12466 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
12469 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12471 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12473 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12474 size in the size request
12475 (gtk_menu_bar_size_allocate): consider toggle size here
12477 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12478 that displays a widget in the toggle slot
12480 * gtk/testgtk.c: test GtkImageMenuItem
12482 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12484 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12485 request and allocation
12487 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12489 * gtk/gtkcheckmenuitem.c
12490 (gtk_check_menu_item_toggle_size_request): ditto
12492 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
12494 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
12497 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12498 and refuse to initialize GTK+ if they fail.
12500 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
12502 * configure.in: Add check for gtk-doc version.
12504 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
12506 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12507 where the xpad/ypad was only being used on one side!
12509 2001-02-11 Tor Lillqvist <tml@iki.fi>
12511 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12512 function, copied from X11 version.
12514 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12515 DestroyCursor failures. The reason for the problem (despite the
12516 inconsistent messages from GetLastError()) was that
12517 DestroyCursor() cannot be called while a cursor is set in a
12518 window. Set the new cursor first and then destroy the old one.
12519 Thanks to jpe@archaeopteryx.com.
12521 * gdk/win32/gdkcc-win32.c: Remove.
12523 * gdk/win32/Makefile.am: Remove from here, too.
12526 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12529 * gtk/makefile.mingw.in: Updates.
12531 2001-02-08 Havoc Pennington <hp@redhat.com>
12533 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12534 add a widget to a bin that already has a child.
12536 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12538 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12540 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12542 * gdk/gdk.h: remove gdkcc.h
12544 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12546 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12547 GdkPixbuf, since the previous implementation was GdkColorContext
12550 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12552 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
12554 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12557 2001-02-08 Havoc Pennington <hp@redhat.com>
12559 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12562 2001-02-08 Havoc Pennington <hp@redhat.com>
12564 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12567 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12570 * demos/pixbuf-demo.c (timeout): remove deprecated
12573 * demos/testpixbuf-save.c (main): remove deprecated
12574 gtk_drawing_area_size
12576 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12577 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12578 at the start of the allocation.
12579 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12580 unsetup or NULL model.
12582 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
12583 even/odd/sorted cells in the tree view.
12585 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12588 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12589 backgrounds with draw_flat_box using different detail for even/odd
12592 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12593 row, so we can draw the alternating colors thing
12595 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12596 property from a synonym property, notify for the synonym.
12597 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12598 (gtk_text_tag_get_property): Always return the font, even if
12599 all its fields aren't set
12601 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12602 store the attr list; it leaves us with no way to change attributes
12603 in _render according to the render flags, and no way to implement
12604 get_property. Instead store all the specific text attributes.
12605 Separate whether an attribute is enabled from its value. Sync all
12606 properties with GtkTextTag, make them all consistent, etc.
12608 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12609 renderers can highlight the sort row/column
12611 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12612 accessor functions to get values; this has the side effect of
12613 showing up which accessor functions were missing. Added those.
12615 * gtk/gtktreeviewcolumn.h: Replace set_justification with
12616 set_alignment, to be consistent with GtkLabel, GtkMisc
12618 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12621 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12623 * gtk/gtktreesortable.h: updates in here
12625 2001-02-07 Sven Neumann <sven@convergence.de>
12627 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
12628 pango dimensions after painting the background. We used to draw
12629 gigantic flat boxes here.
12631 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
12633 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12634 error introduced with earlier commit) (pointed out by
12637 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
12639 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12640 which are no longer necessary.
12642 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
12644 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12646 2001-02-04 Tor Lillqvist <tml@iki.fi>
12649 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12650 Provide dummy implementations.
12652 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
12654 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12656 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12657 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12658 deprecated this function.
12660 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12663 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
12665 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12667 2001-02-03 Havoc Pennington <hp@pobox.com>
12669 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12670 Mikael Hermansson with patch from Mikael (if there was a toggle
12671 start one after the first character in the range, this function
12672 was broken). Bug #50380
12674 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
12676 * configure.in: Remove confusing comment about X11.
12678 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
12680 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12681 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12683 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
12685 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12686 it breaks things on BSD. If you want to compile GTK+ with
12687 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
12688 when configuring, since GTK+ simply can't be "pure ANSI"
12689 in the header files it uses. (#8170, Greg Hudson)
12691 2001-02-02 Havoc Pennington <hp@redhat.com>
12693 * gtk/gtkwindow.c: docs
12695 * gtk/gtkwidget.c: docs
12696 (gtk_widget_set_colormap): add a reference to the colormap
12697 (gtk_widget_get_default_colormap): add a reference to the colormap
12699 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12701 * gtk/gtktextiter.c: docs
12703 * gtk/gtkmain.c (gtk_propagate_event): docs
12705 * gtk/gtkpaned.c (gtk_paned_get_position): docs
12706 (gtk_paned_set_position): docs
12708 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12709 sort interface, no implementation yet.
12711 * demos/testpixbuf.c (new_testrgb_window): replace
12712 gtk_drawing_area_size() with gtk_widget_set_usize()
12714 * demos/testpixbuf-drawable.c (main): ditto
12716 * gtk/testgtk.c: remove use of GtkStatusbarMsg
12718 * gtk/gtktextbuffer.c: docs
12720 * gtk/gtkstock.c: docs
12722 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12724 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12726 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12728 * gtk/gtkimage.c: add some docs in here
12729 (gtk_image_size_request): change name of
12730 gtk_widget_render_stock_icon
12731 (gtk_image_get_icon_set): don't dup returned string
12732 (gtk_image_get_icon_set): don't dup returned string
12734 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
12735 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12736 and gtkiconfactory.h functions
12738 * gtk/gtkiconfactory.c: add some docs in here
12740 * gtk/gtkmain.c (gtk_get_default_language): document
12741 (gtk_get_current_event): document
12742 (gtk_get_current_event_state): document
12743 (gtk_get_event_widget): document
12745 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12747 * gtk/gtkcontainer.c: Add some documentation
12748 (gtk_container_add): give a more explanatory warning on adding an
12749 already-parented widget, this is kind of a FAQ and also a common
12750 typo that's easier to debug with a nice warning
12752 * gtk/gtkcellrenderertoggle.c
12753 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12754 adding this, it's useless
12755 (gtk_cell_renderer_toggle_set_active): remove
12756 (gtk_cell_renderer_toggle_get_radio): add
12758 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12759 the NULL cell renderer, that doesn't make any sense to me.
12761 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12762 demo code should never use deprecated features.
12764 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12765 code should never use deprecated features.
12767 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12768 gtk_widget_queue_clear_area deprecated
12770 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12773 * gtk/gtklabel.h: mark gtk_label_get() deprecated
12775 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
12776 a GdkImage deprecated, replaced by new consistently-named
12779 * gtk/gtkmain.h: Mark gtk_exit() deprecated
12781 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12783 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
12786 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
12787 so it won't appear in docs and confuse people.
12789 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12791 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12792 macros deprecated. (can't mark the type itself deprecated, since
12793 GtkProgressBar is not deprecated and we need the type decl to use
12796 * gtk/gtkpixmap.h: Mark deprecated
12798 * gtk/gtkoldeditable.h: Mark deprecated
12800 * gtk/gtklist.h: Mark deprecated
12802 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
12803 for anything anymore.
12805 * gtk/gtkctree.h: Mark deprecated
12807 * gtk/gtkclist.h: Mark deprecated
12809 * gtk/gtkpreview.h: Mark deprecated
12811 * gtk/gtkpacker.h: Mark deprecated
12813 * gtk/gtktipsquery.h: Mark deprecated
12815 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12817 * gtk/gtkvruler.h: Add comment that it will move out of GTK
12819 * gtk/gtkhruler.h: Add comment that it will move out of GTK
12821 * gtk/gtkruler.h: Add comment that it will move out of GTK
12823 * gtk/gtkgamma.h: Add comment that it will move out of GTK
12825 * gtk/gtkcurve.h: Add comment that it will move out of GTK
12827 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
12829 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12830 gdk_colormap_sync private since it was never exported
12833 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12834 colormap->colors[] for StaticGray, StaticColor colormaps.
12836 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12837 was being used as if it was image->bits_per_pixel.
12839 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12840 for the image in the GdkImage structure since it isn't
12841 reconstructable, and we need it to handle packed types
12843 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12844 the assumption that on Win32 image->bits_per_pixel == image->depth,
12847 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12849 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12850 warning message if no converter can be found.
12852 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
12854 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12855 chars to isupper() / tolower(). (#567)
12857 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12858 to clear up 64-bit warnings. (#567)
12860 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
12862 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12863 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12865 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12866 since some people set $(libdir) separately. (#1290, David Kaelbling)
12868 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
12870 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12871 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12872 MAXPATHLEN, but the code here depends on a fixed value.)
12875 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
12877 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12878 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12880 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
12882 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12883 viewable there is no way that moving the node will cause the
12884 focus row to become not viewable, so omit check on the visibility
12885 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12887 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
12889 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12890 selection before inserting new text.
12892 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
12894 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12895 Make the sensitivity of the reparented child track that of
12896 the original parent menu item. (#34218, David Hodson)
12898 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12899 the case where the current item is destroyed properly.
12901 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12902 some edge cases with child-less menuitems.
12904 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
12906 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12907 key pop down window. (#12074, Jon K Hellan)
12909 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
12911 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12912 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
12913 The solution here isn't perfect - you get an extraneous
12914 emission of "toggle", which could conceivably confuse an app,
12915 but better than the current situation. LXR search seems to
12916 indicate that no apps in GNOME CVS connect to "toggle".
12918 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
12920 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12921 gtk_public_h_sources to directly here to avoid warning when
12922 building srcdir != builddir. (#9656)
12924 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
12926 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12927 handlers in gtkrange.c return the proper values (TRUE == handled)
12930 This is just the tip of the iceberg, but gtkrange.c is the
12931 most common place where the propagation is problematical,
12932 and also a place where it is almost certainly safe to change
12933 this in the stable branch.
12935 (You don't want right click popups on a range control or anything...)
12937 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
12939 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12940 area on focus out, even if a background pixmap isn't set.
12943 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
12945 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12946 to deal with setting the shape properly when scrolling arrows are
12947 turned on, but not visible because there is sufficient space.
12950 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
12952 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12953 items with submenus, destroy the item along with the submenu.
12954 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
12957 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12960 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
12962 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12963 the focus widget sometimes wasn't drawn with the default if there
12964 was no default widget.
12966 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12967 unreference pixmaps.
12969 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12970 for some extra safety.
12972 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
12974 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12975 the text of a cell to the old pointer value better, by
12976 copying the new text before freeing the old text. Some code
12977 cleanup. (#8079, Karl Nelson)
12979 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
12981 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12982 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12984 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
12986 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12987 item from a menu, check to see if it matches
12988 menu->old_active_menu_item, and if so, unref and clear
12989 old_active_menu_item (Patch from Pavel Cisler)
12991 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
12992 menu_shell->active_menu_item, if it is the child being
12993 removed. (Patch based on that of Gene Ragan, #50337)
12995 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
12997 * gdk/linux-fb/gdkselection-fb.c:
12998 * gdk/linux-fb/gdkcolor-fb.c:
12999 * gdk/linux-fb/gdkdrawable-fb2.c:
13000 * gdk/linux-fb/gdkfont-fb.c:
13001 * gdk/linux-fb/gdkim-fb.c:
13002 * gdk/linux-fb/gdkinput.c:
13003 * gdk/linux-fb/gdkkeyboard-fb.c:
13004 * gdk/linux-fb/gdkmain-fb.c:
13005 * gdk/linux-fb/gdkrender-fb.c:
13006 A bunch of whitespace cleanup.
13008 2001-01-30 Havoc Pennington <hp@pobox.com>
13010 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
13011 #ifdef GTK_ENABLE_BROKEN.
13013 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
13014 GTK_ENABLE_BROKEN just before including the broken headers.
13016 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
13017 deprecated types registered.
13019 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
13020 we have to test the broken stuff.
13022 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
13024 2001-01-30 Havoc Pennington <hp@redhat.com>
13026 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
13027 here where prev pointer was set to the wrong thing
13029 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
13030 (gtk_tree_path_is_descendant): new function
13032 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
13034 (gtk_list_store_get_iter): don't modify iter if we can't get the
13037 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
13039 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
13042 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
13043 was causing segfault
13045 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
13048 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
13050 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
13052 (gtk_list_store_iter_children): ditto
13053 (gtk_list_store_iter_nth_child): ditto
13054 (gtk_list_store_iter_nth_child): ditto
13055 (gtk_list_store_iter_parent): ditto
13057 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
13058 on iter->user_data != NULL instead of silently accepting it.
13059 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
13060 we are returning TRUE.
13061 (gtk_tree_store_iter_children): ditto
13062 (gtk_tree_store_iter_nth_child): ditto
13063 (gtk_tree_store_iter_parent): ditto
13064 (gtk_tree_store_insert): remove handling of parent->user_data ==
13065 NULL, replace with parent == NULL
13067 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
13068 and a comment explaining things
13070 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
13071 interface support to GtkTreeStore.
13073 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
13074 FALSE if no prev, fix
13076 * gtk/gtktreeview.c (set_source_row): use a row reference
13077 (set_dest_row): use a row reference
13079 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
13081 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
13082 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
13083 (gtk_tree_selection_select_iter): The same as above.
13085 2001-01-26 Havoc Pennington <hp@redhat.com>
13087 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
13088 which holds a handle to a specific row (particular set of values
13089 in the model, i.e. pointer-identity row).
13091 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
13092 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
13093 Still need to use it for the src/dest row saved on the drag context.
13095 2001-01-26 Havoc Pennington <hp@redhat.com>
13097 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
13099 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
13100 not offset by TREE_VIEW_HEADER_HEIGHT
13101 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
13102 TREE_VIEW_HEADER_HEIGHT
13104 * configure.in (included_loaders): for me, --with-included-loaders
13105 generates the error "the specified loader yes does not exist",
13106 i.e. the arg defaults to "yes", so change test for value ""
13107 to test for value "yes", and include all loaders in that case.
13109 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
13111 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
13112 handle TREE_VIEW_VERTICAL_SEPARATOR
13113 (gtk_tree_view_bin_expose): fix to consider the row offset as
13114 pointing halfway into vertical separator.
13115 (gtk_tree_view_draw_node_focus_rect): ditto
13117 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
13118 --gtk-debug=updates, which causes gdk_window_set_debug_updates
13119 (TRUE) to be called.
13121 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
13122 debug mode where the invalid region is colored in on invalidate,
13123 so you can see the flicker and know whether your redraw code is
13126 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
13127 tree window coordinates (clip rect is in tree window coords)
13129 * gtk/Makefile.am: add gtktreednd.[hc]
13131 * gtk/gtkliststore.c: implement gtktreednd interfaces.
13133 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
13134 drag-and-drop data operations on a model (so we can set up tree
13135 drag-and-drop automatically)
13137 * gtk/testgtk.c: Add a window to change sensitivity in the
13138 GtkLabel test; add a way to change the entry frame in GtkEntry
13141 * gtk/gtkentry.c (gtk_entry_set_has_frame):
13142 (gtk_entry_get_has_frame): new functions to remove the frame
13144 (gtk_entry_size_request): shrink requisition if no frame
13145 (gtk_entry_draw_focus): don't draw frame if no frame
13147 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
13148 checks inside a cell renderer
13149 (gtk_default_draw_option): ditto for options
13151 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
13152 children from the alignment, not the button
13153 (gtk_tree_view_column_init): ref/sink the column, to emulate
13154 GObject refcounting.
13156 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
13158 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13159 Use theme functions to draw the toggles
13161 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
13163 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
13164 GdkPangoAttrEmbossed to use in rendering insensitive text
13166 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
13168 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
13169 using new GDK features
13171 2001-01-24 Alexander Larsson <alexl@redhat.com>
13174 Splitted gtk_image_clear into gtk_image_clear() and
13175 gtk_image_reset(). Call gtk_image_clear() in ::destroy
13178 * gtk/gtklabel.c (set_markup):
13181 * gtk/gtktextlayout.c:
13182 Always free display->shaped_objects.
13184 * gtk/testgtk.c (create_clist):
13185 Don't leak custom style.
13187 2001-01-23 Alexander Larsson <alexl@redhat.com>
13189 * gtk/gtkcolorsel.c (grab_color_at_mouse):
13190 Don't leak image. Simplify using gdk_colormap_query_color().
13191 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
13193 * linux-fb/gdkcolor-fb.c:
13194 Implemented gdk_colormap_query_color.
13196 2001-01-23 Alexander Larsson <alexl@redhat.com>
13198 * linux-fb/gdkcursor-fb.c:
13199 Don't leak built-in cursors.
13201 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
13202 Don't leak tmp_points.
13204 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
13205 Don't modify desc. Don't leak font if the PangoFont
13208 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
13211 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
13214 2001-01-20 Havoc Pennington <hp@pobox.com>
13216 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
13217 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
13220 2001-01-22 Havoc Pennington <hp@redhat.com>
13222 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
13224 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
13226 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
13227 Remove, move back to gdk-pixbuf
13229 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
13230 to all the word functions
13232 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
13233 before doing anything on NULL layout or if we don't have the focus
13235 * gtk/testtext.c (fill_example_buffer): "justification"
13237 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
13238 to be called "justification" not "justify"
13240 * demos/gtk-demo/textview.c (create_tags): "justification"
13242 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
13244 2001-01-22 Alexander Larsson <alexl@redhat.com>
13246 * gdk/gdkwindow.c (gdk_window_invalidate_region):
13247 Don't leak visible_region. Use visible_region instead of region.
13249 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13250 Don't do extra gdk_drawable_ref(). This is not X.
13251 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
13252 gdk_fb_focused_window is ref:ed.
13253 (gdk_fb_window_send_crossing_events): Watch out for destroyed
13256 2001-01-22 Alexander Larsson <alexl@redhat.com>
13258 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
13259 Don't leak the PangoFontDescriptor.
13261 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
13263 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
13265 (gtk_tree_view_scroll_to_cell): Make work when not realized.
13266 (gtk_tree_view_realize): add scroll_to support
13267 (gtk_tree_view_finalize): add a finalize method. Populate.
13268 (gtk_tree_view_insert_column): ref and sink the column.
13269 (gtk_tree_view_append_column): ref and sink the column.
13270 (gtk_tree_view_queue_draw_node): New function to handle redrawing
13271 individual nodes. Should make the code much more efficient, if
13274 2001-01-19 Havoc Pennington <hp@redhat.com>
13276 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13277 byte_offset variable was being used to mean both "offset into
13278 layout" and "offset into buffer line" which was no longer true
13279 with addition of preedit string; fix
13281 2001-01-19 Havoc Pennington <hp@redhat.com>
13283 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
13285 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
13288 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
13291 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
13292 scroll_to_cell, matches TextView scroll functions better
13293 (gtk_tree_view_tree_to_widget_coords): new function
13294 (gtk_tree_view_widget_to_tree_coords): new function
13295 (gtk_tree_view_get_visible_rect): new function
13296 (gtk_tree_view_get_path_at_pos): accept negative coordinates
13297 (gtk_tree_view_draw_node_focus_rect): new function moved from
13298 draw_focus, also, use width of bin_window as width of the focus
13300 (gtk_tree_view_expand_row): fix bug where it didn't recognize
13301 already-expanded rows
13302 (gtk_tree_view_get_cell_rect): new function
13303 (gtk_tree_view_get_path_at_pos): return the click position
13304 relative to the passed-in cell
13305 (gtk_tree_view_set_expander_column): new function
13307 * configure.in: remove gtk-config-2.0 chmod
13309 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13310 and properly handle drags with targets we don't understand
13311 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13313 (gtk_text_view_drag_drop): stop scrolling here though, and set the
13316 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13318 (gtk_drag_dest_get_target_list): new function
13319 (gtk_drag_dest_set_target_list): new function
13321 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13323 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13324 related to drag-and-drop
13326 2001-01-19 Alexander Larsson <alexl@redhat.com>
13328 * gdk/linux-fb/gdkprivate-fb.h:
13329 Define EMULATE_GDKFONT.
13330 Add extra pango_font stuff to GfkFontPrivate.
13332 * gdk/linux-fb/gdkdrawable-fb2.c:
13333 * gdk/linux-fb/gdkfont-fb.c:
13334 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13335 emulation using PangoFont.
13337 2001-01-17 Havoc Pennington <hp@pobox.com>
13339 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13340 all the non-deprecated set_foo functions. Added missing object
13341 properties, and added g_object_notify() to setters.
13344 2001-01-18 Tor Lillqvist <tml@iki.fi>
13347 * gtk/gtkrc.c: (Win32) Use the new
13348 g_win32_get_package_installation_(sub)directory() functions.
13350 * config.h.win32.in: New file.
13352 * config.h.win32: Removed.
13354 * configure.in: Output config.h.win32.
13356 * Makefile.am: Add it to EXTRA_DIST.
13358 * gtk/gtk.def: Update.
13360 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
13362 * gtk/gtklabel.c (gtk_label_size_request): Set the
13363 attributes onto the PangoLayout even if they are newly
13364 created from label->pattern.
13366 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
13368 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13370 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13371 structures in functions. Fixes bug where gtk_dataset_*
13372 was accidentally still being used in one place, causing
13373 every dest side event to be treated independently.
13375 * gtk/gtkdnd.c: Remove last vestages of handling
13376 ::draw (fixes warning)
13378 * gtk/gtkentry.[ch]: Add drag and drop support.
13380 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13381 new function gtk_check_drag_threshhold() for checking
13382 to check if (dx,dy) has exceeded the threshhold for starting
13383 a drag and use it everywhere.
13385 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
13387 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13388 add -I{includedir}/gtk-2.0.
13390 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13391 gdk/gdk-pixbuf.h: Doc fixups.
13393 * gtk/gtkobject.h: Remove trailing , from enum
13395 2001-01-17 Alexander Larsson <alexl@redhat.com>
13397 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13398 Doh! Mixed up x and y.
13400 * gdk/linux-fb/gdkglobals-fb.c:
13401 Removed gdk_fb_pointer_grab_window_events,
13402 added _gdk_fb_pointer_grab_owner_events and
13403 _gdk_fb_keyboard_grab_owner_events.
13405 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13406 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13407 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13408 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13409 Send crossing events after ungrab finished.
13410 (gdk_keyboard_grab): Set ..._owner_events
13411 (type_masks): Move out of function.
13412 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13413 gdk_fb_keyboard_event_window): New functions, return the
13414 window an event should be targeted at. Handles grabs and
13415 event propagation. Can return NULL.
13416 (gdk_event_make): Remove event_mask checking. Now always
13419 * gdk/linux-fb/gdkkeyboard-fb.c:
13420 * gdk/linux-fb/gdkproperty-fb.c:
13421 * gdk/linux-fb/gdkselection-fb.c:
13422 Use new event_window/gdk_event_make() behaviour.
13424 * gdk/linux-fb/gdkmouse-fb.c:
13425 Use new event_window/gdk_event_make() behaviour.
13426 Only send motion events if in the same window.
13427 If grabbed, use cursor from window if sibling of grabbed
13428 window, and cursor from grabbed window otherwise.
13430 * gdk/linux-fb/gdkprivate-fb.h:
13431 Update gdk_fb_window_send_crossing_events, gdk_event_make
13432 and grab varaible declarations. Add gdk_fb_*_event_window().
13434 * gdk/linux-fb/gdkwindow-fb.c:
13435 Use new event_window/gdk_event_make() behaviour.
13436 Keep correct track of focus window.
13437 (gdk_window_set_events): Set all specific button motion masks
13438 if GDK_BUTTON_MOTION_MASK set.
13440 * gtk/gtkdnd.c (gtk_drag_update):
13441 Free info->last_event if gdk_drag_motion returned FALSE.
13443 2001-01-16 Tor Lillqvist <tml@iki.fi>
13445 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13446 Eliminate redraws when input-only windows are shown or
13447 hidden. Thanks to jpe@archaeopteryx.com.
13449 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
13451 * docs/faq/gtk-faq.sgml: FAQ update:
13452 - Update to bugzilla
13453 - Add GTK+ and security/SUID/SGID
13456 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
13458 * gdk/linux-fb/gdkdnd-fb.c:
13461 2001-01-15 Havoc Pennington <hp@pobox.com>
13463 * tests/testtreeview.c: add test stuff for CellRendererToggle
13465 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13468 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13469 only toggle on button press (would do release like GtkButton, but
13470 we'd need implicit grab code for treeview cells)
13472 2001-01-16 Tor Lillqvist <tml@iki.fi>
13474 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13476 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13477 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13479 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13480 to g_{locale,filename}_{to,from}_utf8 to match current API.
13482 * gtk/makefile.msc.in (gtk_OBJECTS)
13483 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13485 * gtk/gtk.def: Update.
13487 2001-01-15 Tor Lillqvist <tml@iki.fi>
13489 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13490 implementaion that more closely mimics the events that an X server
13491 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13492 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13493 with nested preview widgets, for instance, more responsive when
13494 you move the mouse quickly into them.
13495 (find_window_for_pointer_event): Make it actually compile.
13496 (gdk_event_translate): Set send_event to the value of
13497 InSendMessage (). This doesn't really mean the same as X11's
13498 send_event flag, but is close enough, says jpe@archaeopteryx.com
13500 2001-01-15 Alexander Larsson <alexl@redhat.com>
13502 * gdk/linux-fb/gdkdnd-fb.c:
13503 Implemented drag and drop.
13504 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13505 when it tries to free and then copy the same event (info->last_event).
13506 I am not sure about why this happens, but will continue looking.
13508 2001-01-15 Alexander Larsson <alexl@redhat.com>
13510 * gdk/linux-fb/gdkwindow-fb.c:
13511 Use gdk_window_invalidate_rect instead of
13512 gdk_window_invalidate_rect_clear to minimise flashing.
13513 When hiding windows you need to clear the root window though.
13515 2001-01-15 Alexander Larsson <alexl@redhat.com>
13517 * gdk/linux-fb/gdkdrawable-fb2.c:
13518 For optization, add an full_shapes argument to gdk_fb_clip_region.
13519 If this is false, only the cliprects of the shapes are used.
13521 * gdk/linux-fb/gdkprivate-fb.h:
13522 Export gdk_fb_window_peek_shape.
13523 Add full_shapes to gdk_fb_clip_region.
13525 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13526 When moving a window, don't clear everything under the it, just the
13527 root window. Makes stuff faster and flash less.
13528 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13529 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13530 offset of the shape.
13533 2001-01-12 Havoc Pennington <hp@redhat.com>
13535 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
13536 current invalid region, fixes redraw bug while scrolling the
13539 * gtk/gtktextview.c, gtk/gtktextview.h:
13540 Rearrange the scrolling/validation/etc. code in a major way,
13541 so it seems to make sense to me. Probably isn't genuinely that
13542 much better, but...
13544 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13547 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13549 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
13551 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13552 Hide mouse pointer while rotation. Show it afterwards.
13554 2001-01-12 Alexander Larsson <alexl@redhat.com>
13556 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13557 windows in consideration when generating clip region.
13559 * gdk/linux-fb/gdkfb.h:
13560 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13562 * gdk/linux-fb/gdkprivate-fb.h:
13563 Add shape to GdkWindowFBDatat.
13564 exported gdk_fb_window_get_abs_shape().
13565 removed gdk_fb_draw_lines declaration.
13567 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13568 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13569 send focus changes when there is a grabbed window.
13570 (gdk_window_get_pointer): Handle shaped windows.
13571 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13572 (gdk_fb_window_peek_shape): Returns the shape for a window,
13573 handles GDK_FB_USE_CHILD_SHAPE.
13574 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13575 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13576 (gdk_window_shape_combine_mask): Implement.
13578 * gtk/gtkwindow-decorate.c:
13579 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13580 setting the shape of a window makes the window transparent.
13582 2001-01-11 Havoc Pennington <hp@redhat.com>
13584 * gtk/gtktreemodelsimple.h: Oops, broke some macros
13586 2001-01-10 Havoc Pennington <hp@redhat.com>
13588 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13589 add this function, bug 40251
13591 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13594 2001-01-11 Alexander Larsson <alexl@redhat.com>
13597 Added ENABLE_SHADOW_FB
13600 Added --disable-shadowfb
13602 * gdk/linux-fb/gdkcursor-fb.c:
13603 Update shadowfb when updating cursor
13605 * gdk/linux-fb/gdkdrawable-fb2.c:
13606 Added wrappers for shadowfb that calls the normal drawable
13607 methods, but calls gdk_shadow_fb_update(bounding box) when
13608 GdkWindows are drawed to.
13609 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13610 which also returns the bounding box.
13612 * gdk/linux-fb/gdkfb.h:
13613 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13615 * gdk/linux-fb/gdkgeometry-fb.c:
13616 Update shadowfb when scrolling window.
13618 * gdk/linux-fb/gdkglobals-fb.c:
13619 Add _gdk_fb_screen_angle.
13621 * gdk/linux-fb/gdkkeyboard-fb.c:
13622 Test code for screen rotation. Shift-F2 in the xlate driver
13623 rotates the screen.
13625 * gdk/linux-fb/gdkmain-fb.c:
13626 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13628 * gdk/linux-fb/gdkmouse-fb.c:
13629 Use fb_width/height instead of modeinfo.xres/yres.
13631 * gdk/linux-fb/gdkprivate-fb.h:
13632 Added fb_men, fb_width, fb_height & fb_stride. When using
13633 shadow fb these can differ from the framebuffer stuff.
13634 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13635 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13636 _gdk_fb_screen_angle. Removed CM, RP.
13638 * gdk/linux-fb/gdkrender-fb.c:
13639 Added code for shadowfb handling and screen rotation using
13642 * gdk/linux-fb/gdkwindow-fb.c:
13643 Use fb_mem, fb_stride, fb_width, fb_height.
13644 Added recompute_rowstride to reset the rowstride of all windows.
13645 Added gdk_fb_recompute_all() which recomputes rootwindow size,
13646 window abs positions and window rowstrides. Usefull when the
13647 rotation has changed.
13649 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
13651 * docs/faq/gtk-faq.sgml: update to make web site updating easier
13653 2001-01-10 Havoc Pennington <hp@redhat.com>
13655 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13656 where sibling == iter
13657 (gtk_tree_store_insert_after): handle sibling == iter
13658 (gtk_tree_store_prepend): remove stamp checks
13659 (gtk_tree_store_insert_before): ditto
13660 (gtk_tree_store_append): ditto
13661 (gtk_tree_store_get_path): ditto
13662 (gtk_tree_store_get_value): ditto
13663 (gtk_tree_store_iter_has_child): ditto
13664 (gtk_tree_store_iter_n_children): ditto
13665 (gtk_tree_store_iter_nth_child): ditto
13666 (gtk_tree_store_insert_after): ditto
13667 (gtk_tree_store_is_ancestor): ditto
13668 (gtk_tree_store_iter_depth): ditto
13669 (gtk_tree_store_insert_before): assert that sibling's parent is
13670 the same as the passed-in parent
13671 (gtk_tree_store_insert_after): assert that sibling's parent is
13672 the same as the passed-in parent
13675 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
13676 function to get the first iterator in a model
13678 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13679 conventionally the "root" in this sense is just NULL afaict.
13681 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13682 where sibling == iter
13683 (gtk_list_store_insert_after): handle case where sibling == iter
13685 * tests/testtreeview.c (run_automated_tests): fairly lame basic
13686 automated tests for ListStore, TreeStore
13688 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13689 (gtk_list_store_insert): update tail pointer, and fix it to work
13690 (gtk_list_store_insert_before): update tail pointer, and fix it to work
13691 (gtk_list_store_append): use tail to be faster
13692 (gtk_list_store_prepend): fix it, update tail pointer
13693 (gtk_list_store_insert_after): fix it, update tail pointer
13695 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
13698 2001-01-09 Havoc Pennington <hp@redhat.com>
13700 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13701 is NULL due to a pending resize
13703 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13704 column width to values less than 1
13706 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13707 width to be between min/max width, and still set the width
13708 even if autosize is turned on, so the tree view can use this
13709 function in order to autosize.
13710 (gtk_tree_view_column_init): set initial width to 1 not 0
13712 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13713 setter function to modify column width, so we get notification
13714 (gtk_tree_view_insert_iter_height): ditto
13715 (gtk_tree_view_calc_size): ditto
13716 (gtk_tree_view_check_dirty): ditto
13718 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13719 properties to change all the interesting attributes of the tree
13721 (gtk_tree_view_column_set_header_clickable): rename set_clickable
13722 (gtk_tree_view_column_get_clickable): add
13723 (gtk_tree_view_column_set_cell_renderer): don't unset the current
13724 attributes; assume a cell renderer with equivalent object
13725 properties has been swapped in. Do g_object_notify().
13726 (gtk_tree_view_column_set_visible): g_object_notify
13727 (gtk_tree_view_column_get_sizing): rename from get_col_type
13728 (gtk_tree_view_column_set_sizing): g_object_notify
13729 (gtk_tree_view_column_set_width): add g_object_notify
13730 (gtk_tree_view_column_set_min_width): ditto
13731 (gtk_tree_view_column_set_max_width): ditto
13732 (gtk_tree_view_column_set_title): ditto
13733 (gtk_tree_view_column_set_clickable): ditto
13734 (gtk_tree_view_column_set_widget): ditto
13735 (gtk_tree_view_column_set_justification): ditto
13737 2001-01-09 Havoc Pennington <hp@redhat.com>
13739 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13740 there are no rows in the model
13742 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13743 NULL, then return the start of the list
13745 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13746 if we can't get any rows from an empty model
13748 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13749 extraneous * after function pointer typedef usage
13751 * Makefile.am: don't specify full path to cp and rm
13753 * gtk/gtkcellrenderertextpixbuf.c
13754 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13755 NULL before dereferencing, fixes a segfault that happened from
13758 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13759 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13760 and reindent the function
13761 (gtk_cell_renderer_pixbuf_get_size): indentation
13763 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13765 (gtk_dialog_add_buttons_valist): add g_return_if_fail
13766 (gtk_dialog_set_default_response): New function, to set default
13768 (gtk_dialog_set_response_sensitive): New function, to set
13769 sensitivity of buttons
13771 * gtk/gtkcellrendererpixbuf.c
13772 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13773 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13775 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13776 handle any G_TYPE_OBJECT subclass, not just the base class, and
13778 (_gtk_tree_data_list_value_to_node): ditto
13780 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
13783 * gtk/gtkmain.c: add GTK_DEBUG_TREE
13785 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13787 2001-01-09 Tor Lillqvist <tml@iki.fi>
13789 * gdk/win32/gdkevents-win32.c: Implement better mouse
13790 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13791 (find_window_for_pointer_event): New function.
13792 (gdk_event_translate): Use it when handling mouse events.
13794 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
13797 Added --with-included-loaders option
13799 * gdk-pixbuf/Makefile.am:
13800 * gdk-pixbuf/gdk-pixbuf-io.c:
13801 Add support for including selected gdk-pixbuf loaders only.
13803 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13804 gtk_window_set_has_frame):
13805 Added inline documentation.
13807 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13808 * docs/reference/gdk/tmpl/windows.sgml:
13809 Added inline documentation.
13811 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
13813 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13814 realizing buttons that have already been realized.
13816 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
13818 * tests/testtreeview.c (main): Show menu items before adding to
13821 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13822 around if we kill them.
13824 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13825 Return if we pass in a NULL model.
13827 2001-01-08 Havoc Pennington <hp@redhat.com>
13829 * tests/testtreeview.c: hack on this some
13831 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13832 gtk_tree_store_set_valist, v is for arrays, valist for varargs
13834 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13836 * gtk/gtkliststore.h: Add varargs set() and get() convenience
13839 2001-01-08 Alexander Larsson <alexl@redhat.com>
13841 * gtk/gtkwindow-decorate.[hc]:
13843 New files. Contains an implementation of a minimal WM for
13847 Add the possibility for GtkWindows to specify a frame. This
13848 is used for the window decoration code, but could concievably
13849 be used for X programs too (xmms style windows).
13850 GtkWindow->frame is the toplevel window if the window is framed.
13851 The signal frame_event gets all events that are targeted to
13853 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13856 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13857 Call out to gtkwindow-decorate.c for WM support in linx-fb.
13859 2001-01-08 Alexander Larsson <alexl@redhat.com>
13861 * docs/README.linux-fb:
13862 Correct filename ~/.pangoft2_aliases
13865 Added new function gdk_window_get_decorations.
13867 * gdk/linux-fb/gdkfb.h:
13868 Removed _gdk_window_get_decorations declaration.
13869 Renamed _gdk_window_set_child_handler to
13870 gdk_fb_window_set_child_handler.
13872 * gdk/linux-fb/gdkwindow-fb.c:
13873 Renamed _gdk_window_set_child_handler to
13874 gdk_fb_window_set_child_handler.
13876 * gdk/x11/gdkwindow-x11.c:
13877 New function gdk_window_get_mwm_hints().
13878 Implemented gdk_window_get_decorations.
13880 * docs/reference/gdk/tmpl/windows.sgml:
13881 * docs/reference/gdk/gdk-sections.txt:
13882 Added gdk_window_get_decorations docs.
13884 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
13886 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13887 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13888 gdk_fb_window_send_crossing_events):
13889 Possibly send focus events when the mouse moves from one
13892 2001-01-07 Tor Lillqvist <tml@iki.fi>
13894 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13895 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13896 to match current API.
13898 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13899 environment variable is set, don't call g_error when on a
13900 palettized (PseudoColor) display. Some people want to use GTK+
13901 in 256-colour mode even though works only partially.
13905 * gtk/makefile.mingw.in: Update.
13907 2001-01-05 Havoc Pennington <hp@redhat.com>
13909 * tests/testtreeview.c: hack on this a bit
13911 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13912 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13914 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
13915 was spelled incorrectly
13916 (GTK_IS_TREE_MODEL_SIMPLE): ditto
13918 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13919 from gtk_tree_view_set_headers_active
13921 * gtk/gtktexttag.c:
13922 (gtk_text_tag_get_property): handle PROP_DIRECTION
13923 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13924 properties, bug 40235
13926 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13927 forward_to_line_end
13929 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
13931 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13932 modules/input/gtkimcontextxim.c: Adapt to new prototypes
13933 for unicode,locale,filename conversion functions.
13935 2001-01-05 Havoc Pennington <hp@redhat.com>
13937 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13938 broken if called on the first position in the buffer.
13940 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13941 forward_to_delimiters to be called only if we aren't already at
13944 2001-01-05 Havoc Pennington <hp@redhat.com>
13946 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13948 2001-01-05 Alexander Larsson <alexl@redhat.com>
13950 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13951 colormap in here. Sync from X port.
13952 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13954 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13955 This happens now and then, and i don't think it is a bug.
13956 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13958 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13961 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13962 some of the fields filled in at least.
13964 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13965 miLineArcD is no more, remove it from the function definition.
13967 2001-01-04 Havoc Pennington <hp@redhat.com>
13969 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13972 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13973 user_data instead of tree_node
13975 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13976 TREE_VIEW_COLUMN_SIZE
13978 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13979 "size" field to "width" finishes bug 40061
13981 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13982 for bitfields, bug 40268
13984 2001-01-04 Havoc Pennington <hp@redhat.com>
13988 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13990 s/GtkModelSimple/GtkTreeModelSimple/g;
13991 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13992 s/gtk_model_simple/gtk_tree_model_simple/g;
13993 s/gtkmodelsimple/gtktreemodelsimple/g;
13995 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13997 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13998 s/column_set_col_type/column_set_sizing/g;
14000 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
14001 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
14003 s/GtkCellRendererType/GtkCellRendererState/g;
14005 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
14006 (gtk_cell_renderer_toggle_class_init): change "state" property to
14007 "active", to match GtkToggleButton
14008 (gtk_cell_renderer_toggle_get_active): new function, bug
14010 (gtk_cell_renderer_toggle_set_active): new function
14011 (gtk_cell_renderer_toggle_set_property): route changes to toggle
14012 state through gtk_cell_renderer_set_active
14014 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
14016 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
14017 temporarily until they work again. Brought up to date with
14018 changes in the model.
14019 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
14022 2001-01-04 Havoc Pennington <hp@redhat.com>
14024 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
14025 equal to the line length, then position iterator before paragraph
14026 separators. Fixes crash reported by Mikael Hermansson when
14027 pressing left arrow from the start of a line.
14029 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
14030 about byte indexes off the end
14031 (iter_set_from_char_offset): add g_error about char offsets
14034 2001-01-03 Havoc Pennington <hp@redhat.com>
14036 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
14038 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
14039 of private functions; remove inclusion of private headers.
14041 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
14042 function, so we don't need private functions in gtktextdisplay.c
14044 * gtk/gtktextiterprivate.h: underscore-ification
14046 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
14047 to instead say "only useful to implement widgets"
14049 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
14050 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
14051 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
14053 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
14054 This function was completely broken
14056 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
14058 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
14060 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
14062 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
14064 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
14066 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
14068 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
14071 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
14074 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
14075 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
14076 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
14077 which were not implemented.
14079 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
14080 insert_pixbuf signal. Rename delete_text to delete_range since it
14081 also deletes pixbufs and child anchors. This almost closes bug
14082 40245 (still need to deal with child anchors)
14084 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
14085 insert_pixbuf, change signal names as appropriate, change types of
14086 signals taking marks/tags to have the specific type, not just
14089 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
14092 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
14093 unnecessary remove_contents() call
14094 (gtk_option_menu_class_init): add a "changed" signal, closes
14096 (gtk_option_menu_update_contents): emit "changed" if the
14097 active menu item changes
14099 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
14100 cast to GtkObject, reported by Jonas Borgstrom
14101 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
14102 we can't do stuff with side effects in finalize. Instead, spew a
14103 warning if the loader isn't closed.
14105 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
14106 colormap in here, non-X ports probably need to sync to this change
14108 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
14109 assertion that colormap != NULL, you can set the colormap to NULL
14112 * Makefile.am: remove gtk-config-2.0
14114 * configure.in: Use pkg-config to locate GLib. Remove
14115 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
14116 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
14117 Use pkg-config to locate Pango. Output correct Pango libs to
14118 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
14120 * Makefile.am (pkgconfig_DATA): install only target-specific pc
14122 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
14125 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
14128 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
14131 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
14133 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
14135 * gtk/gtktextlayout.c
14136 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
14137 variable when moving back onto a single line.
14139 2001-01-01 Havoc Pennington <hp@redhat.com>
14141 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14143 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14145 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
14146 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
14148 2001-01-01 Havoc Pennington <hp@redhat.com>
14150 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
14152 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
14155 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
14157 (gtk_text_attributes_copy_values): rename from
14158 gtk_text_attributes_copy
14159 (gtk_text_attributes_copy): a more standard GTK copy function,
14160 which returns a new object
14162 2001-01-01 Havoc Pennington <hp@redhat.com>
14164 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
14166 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
14167 don't fill in tree_view->priv->selection, kind of an unexpected
14170 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
14173 * gtk/gtkcellrenderer.c: Remove definition of _ and include
14175 (gtk_cell_renderer_get_property): remove calls to g_value_init
14177 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
14180 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
14181 and include gtkintl.h
14182 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
14185 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
14187 (_gtk_tree_selection_new_from_with_view): rename, return
14189 (_gtk_tree_selection_set_tree_view): rename with uscore
14190 (gtk_tree_selection_get_selected): fill in the "model" out param
14191 first, so it gets filled in even if we return at the top of the
14193 (gtk_tree_selection_real_select_all): add a comment and an else{}
14194 to clarify this a bit
14195 (gtk_tree_selection_real_unselect_all): add the same else{}
14197 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
14198 set_tree_view to have underscore prefixes, move them to the
14199 private header, fix return type of new_with_tree_view
14200 (struct _GtkTreeSelection): mark struct
14203 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
14204 GtkTreeModelFlags, not a guint
14205 (gtk_tree_path_prev): return gboolean not gint
14206 (gtk_tree_path_up): return gboolean not gint
14208 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
14209 return GtkTreeModelFlags, not a guint
14211 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
14212 that child model is non-null before unrefing it
14213 (g_value_int_compare_func): make this a qsort compare func, not
14214 a boolean predicate
14216 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
14217 (add -umn to the end), and mark it unimplemented
14218 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
14219 I don't see what it's for - doesn't the model always sort itself?
14220 (gtk_tree_model_sort_set_compare): this had the wrong signature
14222 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
14223 Fix the docs to say that it destructively replaces existing
14224 attributes (previously said that it added attributes).
14225 (gtk_tree_view_column_set_visible): canonicalize bool before
14226 equality testing. Also, check for realization before
14227 hiding/showing the tree_column->window; if this window could exist
14228 before realization, then it's busted and needs fixing, we can't
14229 create GDK resources pre-realization. Also, remove
14230 superfluous queue_resize(), since set_size() does that for us.
14231 (gtk_tree_view_column_set_col_type): check realization before
14232 using tree_column->window
14234 * gtk/gtktreedatalist.c: fix filename in copyright notice
14236 2000-12-31 Havoc Pennington <hp@pobox.com>
14238 * gtk/gtktextview.c: Rearrange all the
14239 scroll-while-dragging-or-selecting code to be different, not
14240 necessarily better. ;-)
14241 (gtk_text_view_scroll_to_mark): Change this
14242 function to take within_margin as a fraction instead of a pixel
14243 value, and to take alignment arguments (indicating where to align
14244 the mark inside the visible area)
14246 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
14249 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
14250 behavior so that offsets past the end of the line are not
14251 allowed, and an offset equal to the line length moves the iterator
14253 (gtk_text_iter_set_line_index): make parallel change
14254 (gtk_text_iter_get_bytes_in_line): add this function
14256 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
14257 of byte indexes off the end of the line; byte index at the end of
14258 the line now returns FALSE and doesn't fill in the requested
14259 values, byte index past the end of the line is an error. Also,
14260 don't allow -1 offset anymore, since its meaning is unclear.
14262 This change exposes some bug in visual cursor motion, where we
14263 end up with a huge invalid byte index; needs fixing. Symptom of
14264 bug is a crash when you hit up arrow.
14266 (_gtk_text_line_char_locate): match the change to byte_locate
14268 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
14269 from start of line properly. fixes bug reported by Mikael
14270 Hermansson where backspace would delete all text before the
14273 2000-12-30 Tor Lillqvist <tml@iki.fi>
14275 * gdk/win32/gdkwindow-win32.c
14276 (gdk_window_impl_win32_get_visible_region): New function, as in
14278 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
14279 instead of duplicating the same code here.
14281 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
14282 GDK_COLORMAP macro.
14284 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
14286 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
14289 * gtk/gtk.def: Update.
14291 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
14293 2000-12-30 Havoc Pennington <hp@pobox.com>
14295 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
14296 colormap on input only windows, to avoid special cases all over
14297 the code for these windows.
14299 2000-12-26 Tor Lillqvist <tml@iki.fi>
14301 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
14302 we are on a palettized display ("PseudoColor" in X11), as the code
14303 for that doesn't work anyway, and never has.
14305 2000-12-22 Alexander Larsson <alexl@redhat.com>
14307 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14308 Don't use isprint() for chars > 255.
14310 2000-12-21 Havoc Pennington <hp@redhat.com>
14312 * tests/testtreeview.c: more work
14314 2000-12-21 Alexander Larsson <alexl@redhat.com>
14316 * docs/README.linux-fb:
14317 Update the docs to the new pangoft2 way.
14319 2000-12-21 Alexander Larsson <alexl@redhat.com>
14322 For linux-fb get the pangoft2 cflags and libs. This needs a recent
14324 Remove modules/linux-fb/Makefile.
14326 * gdk/linux-fb/gdkdrawable-fb2.c:
14327 Render glyphs using freetype.
14329 * gdk/linux-fb/gdkfb.h:
14330 Add new fb-specific functions needed for managing windows.
14332 * gdk/linux-fb/gdkmain-fb.c:
14333 Remove gdk_font_init/fini() calls.
14335 * gdk/linux-fb/gdkpango-fb.c:
14336 Remove old implementation. Use pangoft2 instead.
14338 * gdk/linux-fb/gdkprivate-fb.h:
14339 Remove PangoFBFont and related stuff.
14341 * gdk/linux-fb/gdkwindow-fb.c:
14342 Implement drawable->get_visible_region.
14343 Implement support for _gdk_window_set_child_handler () and
14344 _gdk_window_get_decorations().
14346 * modules/Makefile.am:
14347 Remove linux-fb subdir.
14349 * modules/linux-fb/*:
14352 2000-12-20 Jonathan Blandford <jrb@redhat.com>
14354 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14355 calls, as they are no longer needed.
14357 * gtk/gtktreemodelsort.c: Fix up the comparison code.
14359 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
14360 figure out how to emit a signal on an interface.
14362 2000-12-20 Havoc Pennington <hp@redhat.com>
14364 * tests: new directory to contain tests, gtk/test* should move
14365 here sometime (with appropriate on-cvs-server hackery)
14367 * tests/testtreeview.c, tests/Makefile.am: a test
14369 * configure.in (AC_OUTPUT): add tests/Makefile
14371 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14372 and "invisible_set" which were missing
14374 * gtk/gtkrbtree.h: some cheesy indentation fix
14376 2000-12-20 Alexander Larsson <alexl@redhat.com>
14378 * gtk/gtkinvisible.c (gtk_invisible_realize):
14379 Attach the style to the window so that the style it is not
14380 leaked when unrealizing the window.
14382 2000-12-18 Havoc Pennington <hp@redhat.com>
14384 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14385 begin/end user action where appropriate
14386 (gtk_text_view_commit_handler): add begin/end user action
14388 * gtk/gtktextbuffer.c: add begin/end user action signals, and
14389 bracket interactive operations with begin/end user action pair.
14391 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14392 "interactive" arg from insert_text and delete_text signals.
14393 Add begin_user_action, end_user_action signals
14394 (gtk_text_buffer_begin_user_action):
14395 (gtk_text_buffer_end_user_action): New functions to delimit
14396 a user-visible action
14398 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14401 2000-12-18 Havoc Pennington <hp@redhat.com>
14403 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14404 was pretty non-working.
14406 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14407 by passing the length to g_utf8_validate().
14409 2000-12-16 Havoc Pennington <hp@pobox.com>
14411 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
14412 Port to GObject, can go back in gdk-pixbuf after setting up
14413 a gdk-pixbuf-marshal.h header over there.
14415 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14416 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14418 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14420 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14421 here, do it when we create the buttons later
14422 (gtk_tree_view_realize_buttons): add some g_return_if_fail
14423 (gtk_tree_view_map): paranoia checks that column->button is shown
14425 (gtk_tree_view_size_request): only request visible children.
14426 Move header size calculation in here, for cleanliness, and
14427 to maintain invariants for child widgets if we eventually
14428 let users set different children inside the buttons
14429 (gtk_tree_view_map_buttons): factor out code to map buttons,
14430 since it was being called several times
14431 (gtk_tree_view_size_allocate_buttons): move_resize the drag
14432 windows instead of just moving them; their height may change
14433 if we allow random widgets in there, or the theme changes.
14434 (gtk_tree_view_size_allocate): move button size allocation
14435 above emitting the scroll signals, to ensure a sane state when we
14437 (gtk_tree_view_button_release): remove queue_resize after
14438 tree_view_set_size(), set_size() will handle any resize queuing
14440 (gtk_tree_view_focus_in): just queue a draw, don't fool with
14442 (gtk_tree_view_focus): use gtk_get_current_event() and
14443 gdk_event_get_state()
14444 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14445 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14447 (gtk_tree_view_create_button): show the button here
14448 (gtk_tree_view_button_clicked): actually emit the clicked signal
14450 (_gtk_tree_view_set_size): return right away if the size is
14451 unchanged, as a cheesy optimization
14452 (gtk_tree_view_setup_model): rename set_model_realized to
14453 setup_model to match the flag that indicates whether we've
14455 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14456 exist, because set_scroll_adjustment does that and it shouldn't
14457 matter what order you call these in
14458 (gtk_tree_view_get_vadjustment): ditto
14459 (gtk_tree_view_set_headers_visible): canonicalize the bool,
14461 (gtk_tree_view_set_headers_visible): call
14462 gtk_tree_view_map_buttons() instead of using cut-and-paste code
14463 (gtk_tree_view_append_column): clarify whether the return value
14464 is the count of columns before or after, and do the increment
14465 separately from the return statement so you can tell from the code.
14466 (gtk_tree_view_remove_column): ditto
14467 (gtk_tree_view_insert_column): ditto
14468 (gtk_tree_view_get_column): remove g_return_if_fail for columns
14469 outside the existing range, the docs say that outside-range
14470 columns are allowed, so we handle them as documented. (Presumably
14471 this allows a nice loop with column != NULL as test.)
14472 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
14473 mean (left/right/center etc.).
14474 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14475 (gtk_tree_view_expand_row): add docs
14476 (gtk_tree_view_collapse_row): add docs
14478 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14479 function to emit the clicked signal on a column
14481 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14483 (gdk_event_get_time): don't treat GDK_SCROLL
14484 as a button event, remove default case from switch so gcc
14485 will whine if we don't explicitly handle all event types
14487 * gtk/gtktreeselection.h: added some FIXME
14489 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14490 "columns" to "n_columns" and "column" to "columns" for clarity
14492 2000-12-16 Havoc Pennington <hp@pobox.com>
14494 * gtk/gtktextiter.c: General cleanup of the log attr iteration
14495 stuff. This should make e.g. the delete key work again in the
14497 (gtk_text_iter_forward_cursor_positions): handle negative count
14498 (gtk_text_iter_backward_cursor_positions): handle negative count
14499 (gtk_text_iter_forward_word_ends): handle negative count
14500 (gtk_text_iter_backward_word_starts): handle negative count
14502 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14503 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
14504 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
14505 GObject. No doubt will cause breakage.
14507 * demos/gtk-demo/textview.c: remove hacks around
14508 non-GObject-ification of the text objects
14510 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
14513 2000-12-14 Havoc Pennington <hp@pobox.com>
14515 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14516 that we have Xrender
14518 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
14520 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14521 Add two virtualized functions gdk_drawable_get_clip_region - to
14522 get the clip region when drawing.
14524 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14525 use invalidate_region.
14527 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14530 * acconfig.h configure.in: Check for Xft. For now, assume
14531 that if Xft is found, Pango was compiled with Xft support
14534 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
14535 gdk_colormap_query_color().
14537 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14538 with Xft if appropriate.
14540 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14541 a pangoxft context if we have XFT and the environment
14542 variable GD_USE_XFT is set.
14544 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14545 and also possibly an XftDraw structure.
14547 * gtk/gtkfontsel.c: Handle the case where the font from the
14548 style doesn't match any of the fonts a bit better.
14550 * gtk/testgtk.c: Add tabs between directional segments for
14551 hebrew/arabic test. (Not really necessary, just a little
14554 2000-12-14 Havoc Pennington <hp@redhat.com>
14556 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14559 2000-12-14 Havoc Pennington <hp@redhat.com>
14561 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14562 unused call to get_last_line()
14564 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14565 here until boxed is working (and maybe after that - we should
14566 really not gratuitously break old code)
14568 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14569 specific types for font_desc and tabs args, move them to
14570 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
14571 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14573 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14574 use GTK_TYPE_POINTER for signal signatures as a hack-around
14576 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14579 * gtk/gtktextlayout.c (line_display_iter_to_index):
14581 (line_display_index_to_iter): make static
14583 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14584 to marshal a string not a boxed
14586 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14588 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14589 since the UTF-8 isn't validated yet
14591 * gtk/gtktextsegment.c (char_segment_check_func): don't require
14592 lines to end in '\n'
14594 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14595 forward_to_delimiters, and grapheme boundaries
14596 (gtk_text_view_delete_from_cursor): properly handle non-newline
14597 delimiters, and grapheme boundaries
14599 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14600 to gtk_text_iter_forward_to_delimiters, and make it work properly
14601 if empty lines end with a character other than '\n'
14603 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14606 2000-12-15 Tor Lillqvist <tml@iki.fi>
14608 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14611 * gdk/gdk.def: Update.
14613 * gdk/win32/gdkmain-win32.c
14614 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14615 gdkmain-win32.c here.
14617 * gdk/win32/makefile.mingw.in (all): No need to make
14618 gdk-win32res.o here, the makefile one step up will call us to make
14621 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14624 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14626 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14627 call to g_source_add().
14629 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14630 leak. Thanks to Andreas Kemnade.
14632 2000-12-13 Havoc Pennington <hp@pobox.com>
14634 * gtk/gtktextbtree.h: Remove double _ in front of some functions
14636 * gtk/gtktext*.[hc]: update accordingly
14638 2000-12-13 Havoc Pennington <hp@pobox.com>
14640 * gtk/gtktextbtree.h: Put _ in front of every function in this
14643 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14645 2000-12-13 Alex Larsson <alexl@redhat.com>
14647 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14648 Add support for ps2 intellimouse.
14650 * gdkkeyboard-fb.c:
14651 Move shift-F1 repaint handling to xlate handler only.
14653 * docs/README.linux-fb:
14655 Document the new refresh keys.
14657 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
14659 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14661 * gtk/gtkbox.c: change property types from (u)long to (u)int for
14662 ::position and ::padding.
14664 * gtk/gtkcontainer.c: make ::border_width an INT property.
14666 * gtk/gtkpacker.c: make ::position an INT property.
14668 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14669 guard against NULL h/v scrollbars, since this is used at construction
14672 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14673 internal gtk_clist_constructor().
14675 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14676 gtk_ctree_constructor().
14678 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14679 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14681 * docs/reference/Makefile.am: fun stuff, disabled docs generation
14682 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14684 * gtk/gtkwidget.[hc]:
14685 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14686 and gtk_widget_get().
14687 (gtk_widget_new): use g_object_new_valist().
14688 (gtk_widget_set): use g_object_set_valist().
14690 * gtk/gtkobject.[hc]:
14691 removed gtk_object_arg_get_info(), gtk_object_getv(),
14692 gtk_object_query_args(), gtk_object_newv(),
14693 gtk_object_class_add_signals(),
14694 gtk_object_class_user_signal_new(),
14695 gtk_object_class_user_signal_newv(),
14696 gtk_object_arg_set(), gtk_object_arg_get(),
14697 gtk_object_args_collect(),
14698 gtk_object_default_construct(),
14699 gtk_object_constructed(),
14700 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14701 removed nsignals, signals and n_args members from GtkObjectClass.
14702 (gtk_object_new): use g_object_new_valist().
14703 (gtk_object_set): use g_object_set_valist().
14704 (gtk_object_get): use g_object_get_valist().
14706 * gtk/gtkcompat.h: define gtk_object_default_construct().
14708 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14711 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14712 fucntions, cleaned up method assignments (make sure your structures
14713 are setup properly before calling out). removed all GTK_CONSTRUCTED
14716 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
14718 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
14719 off-by-one error in checks. (Dave Lambert)
14721 2000-12-12 Alexander Larsson <alexl@redhat.com>
14723 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14724 Don't free gdk_fb_keyboard twice.
14726 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
14730 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14731 use GObject swapped_signal:: properties instead.
14733 * gtk/gtkcellrenderertoggle.c:
14734 * gtk/gtkcellrenderertextpixbuf.c:
14735 * gtk/gtkcellrenderertext.c:
14736 * gtk/gtkcellrendererpixbuf.c:
14737 * gtk/gtkcellrenderer.c:
14738 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14739 missing warnings for invalid property ids, install properties
14740 with g_object_class_install_property() now.
14743 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14745 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
14747 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14748 to determine if a window is the focus widget within
14751 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14754 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
14755 of the case where the container CAN_FOCUS to here instead
14756 of having it in each individual move-the-focus place.
14758 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14759 focusing to be geometric in a much more obvious sense. Arrowing
14760 around is still non-intuitive because it isn't perfect and
14761 because entries, etc, grab the arrow keys, but it at least
14762 usually will do what you expect now.
14764 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14767 * gtk/gtknotebook.c: Change tabs to be a single item in
14768 the focus chain. Make movement of focus on tabs with arrow
14771 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14772 CHECK_FIND_CHILD macro to give informative error messages
14773 instead of silent returns.
14775 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
14776 flag since we handle GdkReturn on the tabs.
14778 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14779 windows rather than sending expose events directly.
14781 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
14782 definition for GtkNotebookPage into .c file, since it is private.
14784 * gtk/testgtk.c (create_notebook): Add option for
14785 testing borderless notebook.
14787 * gtk/testgtk.c (page_switch): Removed egregious poking
14788 around in GTK+ internals.
14790 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14792 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14793 properly through gtk_clist_focus. Make the title headers a
14794 single item in the tab-focus chain, and make left-right wrap
14797 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14798 focus method so that wrapping around works properly.
14800 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
14801 that is handled for the widget now.
14803 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
14805 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14806 widgets as TOPLEVEL.
14808 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14809 TOPLEVEL widgets are containers.
14811 * gtk/gtkinvisible.h: Remove useless include.
14813 2000-12-11 Havoc Pennington <hp@redhat.com>
14815 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14816 Handle chopping off \r\n and 0x2029 in addition to \n before
14817 passing to PangoLayout
14819 * gtk/gtkimcontextsimple.c
14820 (gtk_im_context_simple_get_preedit_string):
14821 return an empty string if no match is pending
14823 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14824 assertion that the returned preedit string was sane
14826 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14827 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14828 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14830 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
14832 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
14833 Fix up finalizer to chain to its parent.
14835 2000-12-11 Alexander Larsson <alexl@redhat.com>
14837 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14838 Clearified the difference between the keyboard types. Wrote a note
14839 about the magic sysrq key to get out of raw mode.
14841 2000-12-09 James Henstridge <james@daa.com.au>
14843 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14844 member to hold masks for detecting the start of a protocol packet.
14845 (mouse_devs): add packet start masks for ps2 and ms device types.
14846 Left the mask for fidmour blank, as I have no idea what it should
14848 (handle_mouse_io): skip bytes until we get to the start of a
14849 packet. My Logitech mouse seems to be passing an extra NULL pad
14850 byte, and GPM does a similar thing here.
14851 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14852 this is the ms mouse driver.
14853 (gdk_fb_mouse_ms_packet): fix up button handling, which was
14854 completely broken except for button1. It was checking the wrong
14855 bit in the packet for the status of the right mouse button, and
14856 wrongly assuming right == button2 rather than 3. I fixed that and
14857 also added support for middle button (button2).
14859 2000-12-08 Havoc Pennington <hp@redhat.com>
14861 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14862 that cause a segfault on text insertion
14864 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
14867 * gtk/gtktextiter.c (test_log_attrs): use
14868 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14870 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
14871 Get log attrs for a line, using a cache stored on the buffer
14873 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14874 reported by Jeff Franks
14876 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14878 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14879 /dev/ttyS0 -> /dev/mouse
14881 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14883 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14884 Added dummy gdk_fontset_load.
14886 2000-12-08 Alexander Larsson <alexl@redhat.com>
14888 * docs/README.linux-fb:
14889 * docs/Makefile.am:
14890 Initial GtkFB docs.
14892 * gdk/linux-fb/Makefile.am:
14893 Define GDK_DATA_PREFIX.
14895 * gdk/linux-fb/gdkmain-fb.c:
14897 Change default display to /dev/fb0.
14899 * gdk/linux-fb/gdkpango-fb.c:
14900 Add $(prefix)/share/fonts/ to font path.
14902 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
14904 * gdk/linux-fb/gdkkeyboard-fb.c:
14905 New file containing the abstracted keyboard driver. Most code
14906 taken from gdkinput-ps2.c
14908 * gdk/linux-fb/gdkinput-ps2.c:
14911 * gdk/linux-fb/Makefile.am:
14912 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14914 * gdk/linux-fb/gdkcolor-fb.c:
14915 display->fb was renamed to display->fb_fd.
14917 * gdk/linux-fb/gdkcursor-fb.c:
14918 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14920 * gdk/linux-fb/gdkinput.c:
14921 Moved gdk_input_init here from gdkinput-ps2.c
14923 * gdk/linux-fb/gdkmain-fb.c:
14924 display->fb was renamed to display->fb_fd.
14925 Now the tty and the console is opened here instead
14926 of in the keyboard driver. Also check GDK_VT to see what
14928 Move gdk_beep () here from gdkinput-ps2.c
14929 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14931 * gdk/linux-fb/gdkmouse-fb.c:
14933 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14934 Return correct keyboard modifiers.
14935 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14937 * gdk/linux-fb/gdkprivate-fb.h:
14938 Add tty and vt info to display.
14939 Add orignal modeinfo storage to display
14940 Update global functions
14942 * gdk/linux-fb/gdkwindow-fb.c:
14943 Added gdk_fb_window_find_focus().
14944 gdk_mouse_get_info -> gdk_fb_mouse_get_info
14946 2000-12-07 Havoc Pennington <hp@pobox.com>
14948 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
14949 function, noticed by Alex
14951 2000-12-06 Elliot Lee <sopwith@redhat.com>
14953 * configure.in: Detect freetype properly
14955 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14958 2000-12-06 Alexander Larsson <alexl@redhat.com>
14960 * gdk/linux-fb/Makefile.am:
14963 * gdk/linux-fb/gdkmouse-fb.c:
14964 New file. Abstracted the mouse drivers a bit.
14966 * gdk/linux-fb/gdkcursor-fb.c:
14967 The cursor hide/show functions was moved here from gdkinput-ps2.c.
14969 * gdk/linux-fb/gdkinput-ps2.c:
14970 Removed old mouse handling code. Moved cursor handling code
14971 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14972 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14973 gdk_mouse_get_info.
14975 * gdk/linux-fb/gdkmain-fb.c:
14976 Pass NULL pointers for x,y in gdk_mouse_get_info call.
14978 * gdk/linux-fb/gdkprivate-fb.h:
14979 Removed public gdk_fb_find_common_ancestor, added and renamed
14980 functions for the new mouse handling code.
14982 * gdk/linux-fb/gdkwindow-fb.c:
14983 Moved gdk_fb_window_send_crossing_events here. added global
14984 variable gdk_fb_window_containing_pointer. made
14985 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14986 renamed to gdk_mouse_get_info.
14988 2000-12-06 Alexander Larsson <alexl@redhat.com>
14990 * gdk/linux-fb/gdkevents-fb.c:
14991 Update to match latest gmain/gsource changes.
14993 * gdk/linux-fb/gdkinput-ps2.c:
14994 Bogus gdk_keymap_get_entries_for_keycode implementation so that
14995 it links. Will be implemented later.
14997 2000-12-03 Havoc Pennington <hp@pobox.com>
14999 * gdk/Makefile.am: add gdkkeys.[hc]
15001 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
15002 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
15004 * acconfig.h, configure.in: add checks and command line options
15007 * gdk/x11/gdkkeys-x11.c: Implement the above functions
15009 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
15010 and group in the key event
15012 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
15013 field with the low-level hardware key code, and a group
15014 field with the keyboard group
15016 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
15017 and declare a couple globals used for keymap handling
15019 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
15020 hold down Shift-Control and type a hex number to get a Unicode
15021 character corresponding to the hex number
15022 (gtk_im_context_simple_get_preedit_string): Fix cursor position
15023 (return bytes not chars)
15025 2000-12-05 Elliot Lee <sopwith@redhat.com>
15027 * gdk/gdkcolor.h: Make GdkColor specify element sizes
15028 to avoid waste on 64-bit platforms.
15030 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
15032 * INSTALL: Fix link to PNG home, remove reference
15035 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
15037 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
15040 * gtk/gtkcheckmenuitem.c: Permanently turn on
15041 always_show_toggle.
15043 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
15044 be NULL. (Vladimir Klebanov, #26545)
15046 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
15047 some signed/unsigned comparison problems. (#6510,
15050 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
15051 return type to boolean (Oskar Liljeblad, #18648)
15053 2000-12-05 Alexander Larsson <alexl@redhat.com>
15055 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
15056 Remove bogus colormap setting.
15058 2000-12-05 Alexander Larsson <alexl@redhat.com>
15060 * gdk/linux-fb/gdkcolor-fb.c:
15061 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
15063 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
15066 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
15068 * docs/tutorial/gtk-tut.sgml: DND updates
15070 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
15072 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15073 Remove old debug g_warning().
15074 (gdk_fb_draw_drawable): The src argument can be either a wrapper
15075 or an implementation, just pass the implementation to draw_drawable_2.
15077 * gdk/linux-fb/gdkprivate-fb.h:
15078 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
15080 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15081 clear and invalidate area when window is destroyed.
15082 (send_map_events): Remove old commented out code.
15084 2000-12-05 Alexander Larsson <alexl@redhat.com>
15086 * gdk/linux-fb/gdkpango-fb.c:
15087 Use italic instead of oblique in font aliases.
15089 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
15090 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
15091 other unsupported functions.
15093 2000-12-04 Havoc Pennington <hp@redhat.com>
15095 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
15097 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
15099 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
15101 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
15102 hack to avoid infinite loops (synthetic expose event) -
15103 Owen has more appropriate fixes in a branch he'll check in later.
15105 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
15106 separator, CR, and CRLF as line ends
15108 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
15109 into lines using pango_find_paragraph_boundary(); other bits of
15110 the widget are still going to be broken if the boundary isn't '\n'
15113 2000-12-04 Alexander Larsson <alexl@redhat.com>
15115 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
15118 * gdk/linux-fb/gdkpango-fb.c:
15119 Copied some 26.6 scaling macros from pango to clean up the rounding.
15120 (pango_fb_font_get_glyph_info): Correct sign on x value.
15122 * gdk/linux-fb/gdkprivate-fb.h:
15123 Removed unreferenced external functions.
15125 * modules/linux-fb/Makefile.am: Use ` instead of '.
15127 * modules/linux-fb/basic.c:
15128 Remove dead code. In particular the dummy lang engine which broke all
15129 pango layouts in GtkFB. Don't include tables-big.i anymore.
15131 * modules/linux-fb/tables-big.i:
15132 Upgrade to latest version from pango. Left for reference, basic_ranges
15135 2000-12-04 Havoc Pennington <hp@redhat.com>
15137 Fix bugs Alex found:
15139 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
15142 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
15144 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
15146 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
15147 implementation in here, apparently the expose() implementation was
15150 2000-12-04 Alexander Larsson <alexl@redhat.com>
15152 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15153 Return positive descent.
15155 2000-12-02 Havoc Pennington <hp@pobox.com>
15157 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
15160 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
15161 calls gdk_window_process_updates() to push the exposes through
15162 (gtk_widget_class_init): No more draw signal, no
15163 gtk_widget_real_draw()
15165 * gtk/gtkbin.c (gtk_bin_draw): remove
15167 * gtk/gtkbox.c (gtk_box_draw): remove
15169 * gtk/gtkbutton.c (gtk_button_draw): remove
15171 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
15173 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
15175 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
15177 * gtk/gtkclist.c (gtk_clist_draw): remove
15179 * gtk/gtkentry.c (gtk_entry_draw): remove
15181 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
15183 * gtk/gtkfixed.c (gtk_fixed_draw): remove
15185 * gtk/gtkframe.c (gtk_frame_draw): remove
15187 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
15189 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
15191 * gtk/gtklayout.c (gtk_layout_draw): remove
15193 * gtk/gtklist.c (gtk_list_draw): remove
15195 * gtk/gtklistitem.c (gtk_list_item_draw): remove
15197 * gtk/gtkmenu.c (gtk_menu_draw): remove
15199 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
15201 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
15203 * gtk/gtknotebook.c (gtk_notebook_draw): remove
15205 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
15207 * gtk/gtkpacker.c (gtk_packer_draw): remove
15209 * gtk/gtkrange.c (gtk_range_draw): remove
15211 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
15213 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
15215 * gtk/gtktable.c (gtk_table_draw): remove
15217 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
15219 * gtk/gtktext.c (gtk_text_draw): remove
15221 * gtk/gtktextview.c (gtk_text_view_draw): remove
15223 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
15225 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
15227 * gtk/gtktree.c (gtk_tree_draw): remove
15229 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
15231 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
15233 * gtk/gtkviewport.c (gtk_viewport_draw): remove
15235 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
15237 * gtk/gtkvscale.c (gtk_vscale_draw): remove
15239 * gtk/gtkwindow.c (gtk_window_draw): remove
15241 2000-20-01 Anders Carlsson <andersca@gnu.org>
15243 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
15244 a GtkToggleButton is both insensitive and active, it was being
15245 drawn by the GtkButton draw handler which doesn't check the
15246 state. Now it's calling gtk_toggle_button_paint instead.
15248 2000-12-01 Havoc Pennington <hp@redhat.com>
15250 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
15251 dangling pointers to the appearance attributes from the
15254 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
15255 width/height to mean "full width/height of drawable"
15257 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
15258 click to select word/line
15260 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
15261 when getting log attrs. Get a slice, so that pixmaps and stuff
15262 are properly handled.
15264 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
15265 paste into the selection (replaces selection now, previously
15266 crashed or added to selection). Reveals longstanding btree bug -
15267 select multiple lines, middle-click on the selection, boom. This
15268 isn't related to my changes though.
15270 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
15271 PangoLogAttrs changes
15272 (gtk_entry_move_backward_word): ditto
15274 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
15275 functions return bool whether the iter moved onto a
15276 dereferenceable position.
15278 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
15279 functions for motion in terms of display lines.
15281 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
15282 get the buffer a mark is inside
15284 2000-12-01 Alexander Larsson <alexl@redhat.com>
15286 * gdk/linux-fb/Makefile.am:
15287 * modules/linux-fb/Makefile.am:
15288 Freetype 2 final uses freetype-config
15290 * gdk/linux-fb/gdkpango-fb.c:
15291 Upgrade to use Freetype 2 final.
15292 More flexible support for font aliases, this also fixes a bug with
15293 GtkFontSelector, as the aliases must be visible in the font/family list,
15294 or GtkFontSelector reads uninitialized memory.
15296 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
15298 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
15299 XGetIMValues to properly terminate variable argument list, and do
15300 NULL return check for ic_values and xim_styles.
15302 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15303 Restore preedit state after XmbResetIC().
15305 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15306 XvaCreateNestedList() should take XvaNestedList, but not
15309 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15310 preedit_draw_callback, preedit_caret_callback): Match
15311 "preedit-changed" signal name to "preedit_changed" to be
15312 consistent to the spec.
15314 * gtk/gtkimcontextsimple.c (check_table):
15315 Match "preedit-changed" to "preedit_changed" to be consistent
15318 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
15320 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15321 gc->clip_region == NULL>
15323 2000-11-30 Tor Lillqvist <tml@iki.fi>
15325 Changes by Hans Breuer:
15327 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15328 Dont't use negative width and height as max_hints. This fixes
15329 Owen's recent testgtk changes for win32.
15331 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15332 gdk_win32_hdc_release): These are exported and may be called with
15333 other drawable types than our GdkDrawableImplWin32 (?).
15335 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15336 so always #define USE_BACKING_STORE.
15338 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15339 of printf for debugging output.
15341 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15343 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15345 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15348 * gtk/gtktexttypes.h: Ditto.
15350 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15351 (GDK_VoidSymbol) also if in case of arg check failure.
15353 * gtk/gtkimcontextsimple.c
15354 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15355 position to the pointer, but to the variable it points to.
15357 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15359 * gtk/gtk.def: Updates.
15361 2000-11-29 Elliot Lee <sopwith@redhat.com>
15363 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15364 GTK_TYPE_TREE_MODEL.
15366 2000-11-29 Alexander Larsson <alexl@redhat.com>
15368 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15369 Set the size of the font from the description.
15370 (gdk_text_width): Gross hack that calculates the width
15371 of text by text_length * size/2. This is necessary because
15372 GtkLabel does some ugly gtk_string_width call to calculate
15374 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15376 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
15378 * docs/tutorial/gtk-tut.sgml: DND updates
15380 2000-11-29 Alexander Larsson <alexl@redhat.com>
15382 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15383 If you pass width or height == 0 to gdk_window_clear_area they
15384 should be calculated from the window size.
15386 2000-11-29 Alexander Larsson <alexl@redhat.com>
15388 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15389 a grab, but no grab-cursor, use the cursor from the grabbed
15390 window. (gdk_fb_window_send_crossing_events): Send normal
15391 enter/leave notifications if grab and owner_events == TRUE.
15393 2000-11-29 Alexander Larsson <alexl@redhat.com>
15395 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15396 Do implicit button grabs, even if the window doesn't
15398 (gdk_fb_window_send_crossing_events): If there is a
15399 grab, only the grabbed window gets normal enter/leave
15400 notifications. On ungrab go from grabbed window to current.
15401 Don't send any notification to b when propagating from c -> b.
15402 If setting a grab on window, don't set prev_window.
15403 (handle_mouse_input): Send enter/leave events to the window the
15404 mouse is over, not the grabbed one.
15406 2000-11-28 Elliot Lee <sopwith@redhat.com>
15408 * gdk/gdkregion-generic.c: Zap warning.
15409 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15410 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15412 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
15414 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15415 The cursor should be hidden if it is part of either the
15416 source or destination region. Not only if it is in both.
15417 (gdk_window_set_transient_for): Silence warnings.
15419 2000-11-28 Alexander Larsson <alexl@redhat.com>
15421 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15422 The default mode in X is Pie Arcs, therefore that is
15425 2000-11-28 Alexander Larsson <alexl@redhat.com>
15427 * gdk/linux-fb/gdkinput-ps2.c:
15428 Implement correct EnterNotify/LeaveNotify:
15429 (gdk_fb_window_send_crossing_events): New function that sends
15430 all GdkCrossingEvents from the last mouse-window to the specified
15432 (gdk_fb_window_visibility_crossing): Removed function.
15433 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15434 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15435 instead of gdk_window_get_pointer() for better readability.
15437 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15438 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15440 * gdk/linux-fb/gdkprivate-fb.h:
15441 removed gdk_fb_window_visibility_crossing, added
15442 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15444 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15445 New function that finds the least common ancestor of two windows.
15446 (gdk_window_show, gdk_window_hide):
15447 Use gdk_fb_window_send_crossing_events.
15448 (gdk_fb_window_move_resize): Send configure events to toplevel
15449 windows. Use gdk_fb_window_send_crossing_events.
15451 2000-11-27 Havoc Pennington <hp@redhat.com>
15453 * gtk/gtkprivate.h (enum): Remove a trailing comma
15455 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
15457 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15458 the "changed" callback of the adjustment. We need to redraw the
15459 spin button's arrows when the adjustment's range changes.
15460 (adjustment_changed_cb): Draw the arrows.
15461 (gtk_spin_button_value_changed): Draw the arrows.
15463 2000-11-23 Alexander Larsson <alexl@redhat.com>
15465 * gdk/linux-fb/gdkselection-fb.c:
15466 Initial selection implementation.
15468 * gtk/gtkselection.c:
15469 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15470 requestor in gtk_selection_request.
15472 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15473 Added gdk_selection_property atom.
15475 * gdk/linux-fb/gdkprivate-fb.h:
15476 Export _gdk_selection_window_destroyed.
15477 Removed mask_off_x/y from GdkCursorPrivateFB.
15478 Removed hbearing, added top, left to PangoFBGlyphInfo.
15480 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15481 Call _gdk_selection_window_destroyed
15482 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15483 the root window has been created.
15484 (static_dx_hack, static_dy_hack, compare_draw_rects,
15485 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15486 in region. They are already sorted. Instead just traverse them in
15487 reverse if draw_direction < 0.
15489 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15490 Double-clicks must be sent after the normal button_press.
15491 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15493 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15494 Pass _gdk_fb_screen_gc instead of NULL.
15496 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15497 Initialize gdk_selection_property.
15498 (gdk_event_make): Remove unused code.
15500 * gdk/linux-fb/gdkcursor-fb.c:
15501 Make the pixmap for the cursor the same size as the mask. Also remove
15502 the mask_off_x/y fields in GdkCursorPrivateFB and combine
15503 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15504 Now the whole cursor is visible.
15506 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15507 Fix bug where xdest+height instead of ydest+height was used
15508 to calculate if the source and dest overlapped. This fixes the
15509 redraw bug when the main window in testgtk was scrolled when
15510 partially covered by a tall window.
15511 Copy rectangles in region in order depending on draw_direction.
15512 Also moved the draw_direction flipping of start_y and end_y into
15513 the gc functions, as this might not be what all of them want.
15514 (gdk_fb_draw_lines): Support dashed lines.
15515 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15516 so that the text is positioned correctly (was 1 pixel high).
15518 gdk/linux-fb/gdkgc-fb.c:
15519 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15520 all lines were drawn a pixel to short. Also checked the default of
15521 the rest of the values, and they're the same as X now.
15523 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15524 Clean up pixel positioning of the glyphs. Just use bgy->top and
15525 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15526 to all divisions to get correct rounding behaviour.
15528 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15529 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15530 Moved start_y/end_y flip into draw_drawable implementations.
15531 Flip also x rendering when draw_direction < 0.
15532 Remove unneccesary multiply with draw_direction.
15534 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
15536 * docs/tutorial/gtk-tut.sgml:
15537 - get rid of gtk_toggle_button_toggled FUD
15538 - start DND section - needs work - based on:
15539 http://wolfpack.twu.net/docs/gtkdnd/
15541 2000-11-22 Alexander Larsson <alexl@redhat.com>
15543 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15544 Correct calculation of font metrics. Now GtkEntrys have sane
15547 2000-11-22 Alexander Larsson <alexl@redhat.com>
15550 Add new type GdkSpan
15552 * docs/reference/gdk/gdk-sections.txt,
15553 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15555 Implement and document gdk_region_spans_intersect_foreach.
15557 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15558 Add new file gdkrender-fb.c which contains all core
15560 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15561 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15562 (optimized rectangle fillers).
15564 * gdk/linux-fb/gdkdrawable-fb2.c:
15565 Move all rendering code to gdkrender-fb.c.
15566 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15567 Use the new span intersection functions in gdk_fb_fill_spans.
15568 gdk_fb_draw_rectangle() clips filled rectangles and calls
15569 gc->fill_rectangle with the result.
15570 gdk_fb_fill_spans() gets extra argument "sorted".
15572 * gdk/linux-fb/gdkevents-fb.c:
15573 Remove unused includes and defines.
15574 New function gdk_fb_get_time() to get correct time for events.
15576 * gdk/linux-fb/gdkinput-ps2.c:
15577 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15578 Make sure to set the time of all events.
15580 * gdk/linux-fb/gdkmain-fb.c:
15581 Use gdk_fb_get_time ().
15583 * gdk/linux-fb/gdkprivate-fb.h:
15584 New virtual GC calls: fill_span & fill_rectangle.
15585 Export gdk_fb_get_time().
15586 gdk_fb_fill_spans() gets extra argument "sorted".
15588 * gdk/linux-fb/mi*.c:
15589 Use GdkSpan instead of GdkRectangle.
15590 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15591 from XFree 4 source)
15593 2000-11-22 <jrb@redhat.com>
15595 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15596 reversing the order in an if statement will do. Doing so managed
15597 to make the treemodelsort half work. Other half will follow after
15598 I get the insert function fully fixed.
15600 2000-11-21 Elliot Lee <sopwith@redhat.com>
15601 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15602 more than 2 bits. Besides, I need to implement an evil hack. :)
15604 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
15606 * docs/tutorial/gtk-tut.sgml: minor corrections
15608 2000-11-20 Jonathan Blandford <jrb@redhat.com>
15609 * gtk/gtktreemodelsort.h: Add convertion functions to let you
15610 convert to and from relative path's and iters.
15612 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
15613 testing sorting functions a bit better. Currently broken -- will
15616 2000-11-20 Havoc Pennington <hp@redhat.com>
15618 * gtk/gtkwidget.c: Documented a bunch of functions in here
15619 (gtk_widget_realize): Warn if you try to realize
15620 a widget with no parent that isn't a toplevel
15621 (gtk_widget_intersect): return a gboolean
15623 2000-11-20 Havoc Pennington <hp@redhat.com>
15625 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15626 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15627 scrolling to be implemented in GDK to finish. Also, right now
15628 we just size_allocate all children on every layout change,
15629 which is pretty lame. Test commented out of testtext.c,
15630 until it works better.
15632 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
15634 * gdk/linux-fb/gdkdrawable-fb2.c:
15635 Removed unused arguments from gdk_fb_drawable_get_pixel().
15637 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15638 Renamed fidur specific mouse packet data in MouseDevice to
15639 generic. Used it in ps2 mouse handling code to avoid blocking
15642 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
15644 * demos/gtk-demo/main.c: Changed to have the list become
15645 non-italic when the demo window is destroyed through an external
15646 event (like a close button). Doing so found three bugs in the
15649 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15651 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15652 we actually set the cell.
15654 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15656 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15657 free a leaked path. Thanks memprof.
15659 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
15661 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
15662 off-by-one error when destroying allocated segments
15663 on failure. (Elliot)
15665 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
15667 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15668 memleaks found by Evan Martin.
15670 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
15674 * NEWS: Updates for 1.3.2
15676 2000-11-17 Tor Lillqvist <tml@iki.fi>
15678 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15679 but in general for window system specific events.
15682 * gtk/makefile.mingw.in
15683 * gtk/makefile.msc.in: Update.
15685 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15687 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
15689 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15690 distribute gtk.immodules.
15692 * gtk/Makefile.am (install-data-local): Don't install the
15693 gtk.immodules file created for the uninstalled modules;
15694 instead run gtk-query-immodules after install
15696 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
15698 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15699 -rpath to the right install location.
15701 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15704 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15707 2000-11-15 Havoc Pennington <hp@pobox.com>
15709 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15710 patch from Mikael Hermansson to temporarily stop blinking while
15711 the user is using the keyboard to type or navigate.
15713 Also, when blinking, stay on for longer than we stay off. Also,
15714 return from start_cursor_blink if !cursor_visible, to save
15715 checking that flag all over the place before we call
15716 start_cursor_blink.
15718 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
15720 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15721 only contain a "fontset" line, which is now ignored.
15723 * gtk/gtkentry.c (gtk_entry_button_release): Make
15724 double-click-to-select-word work.
15726 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
15728 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
15729 Don't move back one char when we are actually at the end of the
15732 2000-11-15 Robert Brady <robert@suse.co.uk>
15734 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
15737 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15738 bind_textdomain_codeset.
15740 (gtk_init_check): Make the warning about translating default:LTR
15743 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
15745 * **/Makefile.am : remove unecessary rules for win32-specific
15746 config-substituted targets. If you want these rules, use
15747 --enable-maintainer-mode (called automatically by autogen.sh).
15748 Stops a lot of unneccessary make-time warnings.
15750 * gtk/gtktext{layout,display}.c: Factor in total width as
15751 well as screen when figuring alignment for word-wrap as well as
15752 no wrap; this is necessary to handle lines that cannot be wrapped
15755 2000-11-15 Havoc Pennington <hp@redhat.com>
15757 * gtk/testtext.c: Implement essential color cycling feature
15759 2000-11-15 Havoc Pennington <hp@redhat.com>
15761 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15762 when we invalidate the main window.
15764 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15765 GtkTextView will now invalidate the side windows for us when text
15768 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
15770 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15771 unconditionally, since we may need to update the horizontal
15772 scrollbars even if the height didn't change.
15774 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15775 the extra attrs, since some of them affect size.
15777 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15778 x_offset correctly.
15780 2000-11-15 Havoc Pennington <hp@redhat.com>
15782 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15783 don't move the first line out into the margin, instead move the
15784 whole paragraph in order to make space for the first line within
15787 2000-11-15 Havoc Pennington <hp@redhat.com>
15789 * gtk/gtktextview.c (changed_handler): offset redraw rect by
15790 xoffset in addition to yoffset, so horizontal scrolling doesn't
15793 2000-11-15 Havoc Pennington <hp@redhat.com>
15795 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15797 (render_layout_line): fix reversed test that caused weird
15798 underlines to get drawn
15800 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15802 * gdk/linux-fb/gdkprivate-fb.h:
15805 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
15807 * gdk/linux-fb/gdkprivate-fb.h:
15808 Added virtual functions set_pixel, get_color,
15809 fill_span and draw_drawable to the GC.
15810 Added global _gdk_fb_screen_gc to use instead of
15811 NULL when drawing to the screen.
15812 Added _gdk_fb_gc_calc_state() prototype.
15814 * gdk/linux-fb/gdkgc-fb.c:
15815 Call _gdk_fb_gc_calc_state() on any gc state change.
15817 * gdk/linux-fb/gdkglobals-fb.c:
15818 Add _gdk_fb_screen_gc
15820 * gdk/linux-fb/gdkdrawable-fb2.c:
15821 _gdk_fb_gc_calc_state() calculates best functions
15822 for the GC state and depth.
15823 Moved bpp specialized code to separate functions.
15824 Added optimized 24 bpp AA draw_drawable.
15826 * gdk/linux-fb/gdkevents-fb.c:
15827 Silence gcc warning.
15829 * gdk/linux-fb/gdkimage-fb.c:
15830 Use _gdk_fb_screen_gc
15832 * gdk/linux-fb/gdkwindow-fb.c:
15833 Init and use _gdk_fb_screen_gc
15835 * gdk/linux-fb/mitypes.h:
15836 Remove unused types.
15838 2000-11-14 Havoc Pennington <hp@pobox.com>
15840 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15843 2000-11-14 Havoc Pennington <hp@pobox.com>
15845 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15847 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15848 unknown char, no real reason we were using a variable.
15849 Remove gtk_text_unknown_char variable. Fix all the text widget
15852 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
15853 since the Unicode spec seems to prefer that character for our
15856 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
15858 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
15859 value of g_getenv() isn't freeable, so g_strdup it.
15861 * modules/input/inuktitut.c: Inuktitut input method.
15863 * modules/input/Makefile.am: Build this.
15865 2000-11-14 Elliot Lee <sopwith@redhat.com>
15867 * gtk/Makefile.am: Install gtk.immodules, needed for operation
15870 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
15872 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15873 reversed > that was causing Home to go to end of previous line.
15875 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15876 modified-keypresses (leave for bindings.)
15878 * modules/input/Makefile.am: Remove useless -export-dynamic
15879 from module LDFLAGS.
15881 2000-11-14 Havoc Pennington <hp@redhat.com>
15883 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15886 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15887 account. Also, render rise, underline, background, etc. for
15888 pixbufs as well as text. Also, draw underlines one pixel higher.
15890 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15891 PangoAttribute for the rise, so it gets drawn properly. Also,
15892 add the GtkTextAppearance attribute for pixbuf/widget segments
15893 as well; we should go ahead and have rise, underline, background,
15894 stipple work for those
15896 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15899 2000-11-15 Tor Lillqvist <tml@iki.fi>
15901 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15903 * gtk/gtk.def: Update.
15905 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15907 (gtk_rc_get_im_module_file): Use run-time installation directory
15910 * gdk/win32/rc/gdk.rc: Remove.
15911 * gdk/win32/rc/gdk.rc.in: New file.
15912 * gdk/win32/rc/Makefile.am: New file
15913 * gdk/win32/Makefile.am: Corresponding changes.
15915 * gtk/gtk.rc: Remove.
15916 * gtk/gtk-win32.rc.in: New file.
15917 * gtk/Makefile.am: Corresponding changes.
15919 * configure.in: Corresponding changes.
15921 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15922 has a built gtkcompat.h. Developers using CVS code on Win32 can
15923 hand-edit it from gtkcompat.h.in.
15925 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15926 gtkcompat.h from gtkcompat.h.win32.
15928 2000-11-14 Havoc Pennington <hp@redhat.com>
15930 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15931 to default to GDK_ACTION_MOVE if the drag is within a single
15932 widget. Defaults to GDK_ACTION_COPY between widgets.
15934 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
15936 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15938 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15940 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15943 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15945 * configure.in (GTK_VERSION): Up to 1.3.2
15947 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
15950 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15951 missing doc comment.
15953 2000-11-14 Alexander Larsson <alexl@redhat.com>
15955 * modules/linux-fb/basic.c:
15956 Use the glib iconv wrappers.
15958 2000-11-13 Havoc Pennington <hp@pobox.com>
15960 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15963 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15964 scroll the GdkWindows before realization.
15966 2000-11-13 Havoc Pennington <hp@redhat.com>
15968 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
15969 where GC didn't always get updated properly
15971 * demos/gtk-demo/textview.c (create_tags): Use subattributes
15972 of fonts instead of setting the entire font
15974 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15975 setting entire font
15977 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15979 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
15980 a bunch of individually-settable font attributes. You can still
15981 use the "font" and "font_desc" args, they just set all the font
15982 attributes at once.
15984 2000-11-13 Elliot Lee <sopwith@redhat.com>
15986 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15988 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
15990 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15991 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15993 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15996 2000-11-13 Havoc Pennington <hp@redhat.com>
15998 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
16001 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
16004 * gtk/testtext.c: Test pixels above/below/inside paragraphs
16007 * gtk/gtktextview.c: Implement object args and setters/getters for
16008 all the aspects of the GtkTextAttributes that are not set from
16009 GtkWidget attributes. This is spacing, justification, margins,
16012 (gtk_text_view_set_arg)
16013 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
16015 (gtk_text_view_class_init): Add args for justify, left_margin,
16016 right_margin, indent, and tabs
16019 * gtk/gtktextlayout.c (set_para_values): fix to display indent
16022 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
16023 replace with indent attribute
16025 * gtk/gtktextlayout.c (set_para_values): multiply indent by
16028 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
16029 rearranging code to do that
16030 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
16031 i.e. don't subtract the top_margin first, just to keep
16032 all margin-futzing in one place.
16034 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
16036 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
16037 special case of last line, Pango now handles this itself.
16038 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
16040 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
16041 (find_display_line_above): wasn't moving the byte index as it
16042 iterated over lines, so always returned byte 0. Also, port to use
16044 (find_display_line_below): same problem as
16045 find_display_line_above. Also, port to use PangoLayoutIter.
16047 2000-11-13 Alexander Larsson <alexl@redhat.com>
16049 * gdk/linux-fb/*.[ch]:
16050 Massive reindent to gtk+ standard. My hands hurt.
16052 * gdk/linux-fb/gdkcolor-fb.c:
16053 Move GdkColorPrivateFB from inherited to windowing_data
16055 * gdk/linux-fb/gdkcursor-fb.c:
16056 _gdk_cursor_new_from_pixmap made static
16058 * gdk/linux-fb/gdkdnd-fb.c:
16059 GdkDragContextPrivate moved to windowing_data
16061 * gdk/linux-fb/gdkdrawable-fb2.c:
16062 Removed endian.h, use glib endianness macros instead
16063 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
16064 and GDK_DRAWABLE_IMPL_FBDATA
16066 * gdk/linux-fb/gdkfont-fb.c:
16067 Add empty gdk_font_load(). Needed for linking of Gtk+.
16069 * gdk/linux-fb/gdkimage-fb.c:
16070 Removed endian.h, use glib endianness macros instead
16071 Moved GdkImagePrivateFB to windowing_data
16072 gdk_image_new_bitmap didn't always allocate enough
16075 * gdk/linux-fb/gdkinput-ps2.c:
16076 Added semi-working support for MS serial mice.
16078 * gdk/linux-fb/gdkprivate-fb.h:
16079 s/GdkWindowPrivate/GdkWindowObject/
16080 Removed GdkWindowPrivate typedef
16081 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
16082 Removed GDK_DRAWABLE_P
16083 Move GdkColorPrivateFB from inherited to windowing_data
16084 Moved GdkImagePrivateFB to windowing_data
16086 * gdk/linux-fb/gdkvisual-fb.c:
16087 Removed some unused debug code.
16089 * gdk/linux-fb/gdkwindow-fb.c:
16090 Use stock cursors instead of including X headers.
16091 s/GdkWindowPrivate/GdkWindowObject/
16093 * gdk/linux-fb/mitypes.h:
16094 Removed unused types.
16096 * modules/linux-fb/basic.c:
16097 Use the pango fribidi wrappers.
16099 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
16101 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
16102 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
16103 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
16104 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
16105 GEqualFunc where applicable.
16107 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
16108 pango_font_description_equal as changed in pango.
16110 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
16112 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
16114 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
16116 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
16118 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
16120 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
16122 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
16123 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
16125 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
16126 gtk_rc_styles_compare -> gtk_rc_styles_equal.
16128 2000-11-12 Havoc Pennington <hp@pobox.com>
16130 * demos/gtk-demo/Makefile.am (democodedir): change demo install
16131 dir to datadir/gtk+-2.0/demo
16133 * demos/gtk-demo/textview.c: Text widget demo; reveals all
16134 sorts of text widget and Pango font bugs. Urgh.
16136 * demos/gtk-demo/Makefile.am (demos): Add textview.c
16138 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
16139 tree that you should double click to see the demo. Fix
16140 types of variables to reflect changed return values from
16141 GtkTreeStore and GtkTreeViewColumn constructors.
16143 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
16144 newly-created buffer to prepare for GObject semantics
16146 * gtk/testtext.c: don't leak the buffer with GObject semantics
16148 * gtk/testtextbuffer.c: ditto
16150 2000-11-12 Havoc Pennington <hp@pobox.com>
16152 Rename this testgtk to gtk-demo to avoid confusion, and
16153 install it so people can use it as a supplement to
16156 * demos/gtk-demo: Moved from demos/testgtk
16158 * demos/testgtk: Removed
16160 * configure.in: make Makefile in gtk-demo
16162 * demos/gtk-demo/Makefile.am: Install sample source to
16163 datadir/gtk-demo (maybe there's a better place?), and
16164 rename the binary to gtk-demo
16166 * demos/gtk-demo/main.c (load_file): Load installed sample
16167 source if source isn't found in pwd.
16169 2000-11-09 Havoc Pennington <hp@pobox.com>
16171 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
16172 argument to set the char displayed when visibility == FALSE
16173 (gtk_entry_create_layout): If !entry->visible, replace
16174 all chars with the "invisible char"
16176 * gtk/testgtk.c: Test the invisible_char deal
16178 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
16180 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
16181 can't get a native font in the right encoding.
16183 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
16185 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
16188 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
16190 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
16191 Fix warning when moving between paragraphs.
16193 * gtk/gtkentry.[ch]: Change move => move_cursor,
16194 delete => delete_from_cursor, insert => insert_at_cursor
16196 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
16198 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
16200 * modules/input/imthai-broken.c: A Thai input method for use if
16201 Thai keys are really generating Latin1 keysyms.
16203 * modules/input/Makefile.am: Build these.
16205 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
16207 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
16208 g_filename_{to,from}_utf8 now takes an extra parameter.
16210 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
16211 strftime into UTF-8.
16213 (column_from_x, gtk_calendar_paint_day_names): Support RTL
16216 (gtk_calendar_paint_day_names): Draw day names in the right
16219 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
16221 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
16222 problem with using result of g_get_charset() backwards -
16223 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
16225 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
16226 negative min_width/height and max_width/height to
16227 mean "requisition"; this allows setting a window
16228 to be user-resizable in only one direction easily.
16230 * gtk/testgtk.c (create_main_window): Remove hard-coded
16231 usize - set a default size in the vertical direction.
16233 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
16235 * gtk/gtkrange.c: Add some missing casts. Support
16236 2 and 3 button clicks on the arrows to mean
16237 "move by pages" and "jump to end". (Like gtkspinbutton)
16239 2000-11-12 Hans Breuer <Hans@Breuer.Org>
16241 * gdk/win32/makefile.msc : reflect build module changes
16243 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
16244 from GdkPixmap*, cast implementation member instead.
16246 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
16247 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
16248 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
16249 more Gdi functions return value checking.
16250 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
16251 GdkImagePrivateWin32 *.
16253 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
16254 menus useable again. Add #pragma message to keep reminded on this issue.
16255 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
16256 windows. This allows to enable backing store on Win32!
16258 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
16259 in drawable is of impl type. Correct specific type checks appropriate.
16261 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
16262 GDK_WINDOW_DESTROYED before allocating new resources.
16264 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
16266 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
16267 (gdk_window_foreign_new) initialize parent handle.
16268 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
16270 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
16271 Let the GDI invalidate the window on MoveWindow call to fix scrolling
16272 problems (e.g. main buttons in testgtk).
16274 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
16276 * gtk/gtkentry.c (gtk_entry_key_press): Call
16277 gtk_widget_activate for GDK_Return.
16279 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
16280 of preedit cursor position.
16282 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
16284 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
16287 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
16289 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
16290 out support for multiple locales; that simple doesn't
16291 work reliably with current Xlib
16293 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
16294 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
16295 Add support for positioning the cursor within the preedit string.
16297 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
16299 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
16300 at XIM input method module.
16302 * gtk/gtktextview.c: Check for bindings after passing
16303 events to im context filter.
16305 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
16307 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16308 empty attribute lists properly.
16310 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
16312 * gtk/queryimmodules.c (main): Return non-zero exit
16313 status if errors were encountered querying any
16316 * modules/input/Makefile.am (moduledir): remove
16317 leftover bin program target.
16319 * docs/make-todo: Fix typo in error message.
16321 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
16323 * configure.in: Add modules/input/Makefile
16325 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
16327 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16328 don't include gtkthemes.h.
16330 * gtk/testgtk.c gtk/testtext.c: Set environment variables
16333 * gtk/Makefile.am: Add new .c and .h files, build
16334 gtk-query-immodules and use it to create a gtk.immodules
16335 file for use of test programs.
16337 * gtk/gtkpreview.c: remove extra blank line.
16339 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
16341 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
16342 Add the ability to add extra tables beyond the default
16343 one, and also the ability to have compose sequences
16344 that are prefixes of other compose sequences.
16346 * gtk/gtkimcontextsimple.c: Export a preedit string which
16347 consists of possible candidates for keystrokes that have
16348 been entered but not yet committed.
16350 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16351 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16353 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
16354 Add a function to add input-method switching menu items
16357 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16358 when switching input methods.
16360 * gtk/gtkimcontextsimple.[ch]: Change the format of
16361 the compose table to allow compose tables of different
16362 lengths / sequence.
16364 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
16366 * gtk/gtkimmodule.[ch]: Support routines for loading
16367 GtkIMContext implementations dynamically at runtime.
16369 * modules/input/imcyrillic-translit.c: A sample input
16370 method (based on GtkIMContextSimple with an extra table),
16371 which demonstrates preedit strings and the module
16372 system for input modules
16374 * gtk/queryimmodules.c: Program to query the available
16375 input modules and write the results into a file.
16377 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16378 extra config options "im_module_file" (cache file for
16379 input method modules), and "im_module_path" - path
16380 to look for modules when generating cache file.
16382 This doesn't scale.
16384 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
16386 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
16387 generic code from gtkthemes into a new abstraction
16388 GtkModule which has the logic for implementing
16389 a loadable module which implements a number of
16392 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
16394 * gtk/gtkeditable.[ch]: Convert GtkEditable from
16395 a class into an interface
16397 * gtk/gtkoldeditable.[ch]: Move the old editable
16398 implementation into here, so legacy widgets can
16399 still rely on the implemenation. GtkOldEditable
16400 exports GtkEditable. Make selection handling
16401 code use new text conversion functions (and
16402 handle UTF-8 as a side-effect). Use GtkClipboard
16405 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16406 Adopt to match above changes.
16408 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16409 avoid GtkOldEditable implementation. Restructure
16410 to reduce number of places that modify state directly.
16411 Move to GtkBindingSet. Display the preedit string.
16412 Queue recomputation of PangoLayout and scroll position
16413 to improve effiency of doing complex changes naively.
16414 Add a menu with cut/copy/paste and input method selection.
16416 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
16418 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16419 to set preedit string and attributes; display preedit string by
16420 inserting string and attributes at cursor when creating the
16421 GtkTextLineDisplay.
16423 * gtk/gtktextlayout.c: Move all conversions between byte
16424 positions in PangoLayout and GtkTextIter into new functions
16425 line_display_iter_to_index/index_to_iter that properly
16426 handle the preedit string.
16428 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16429 it to return const char * (eventually will end up
16430 as GCONST char *, most likely.)
16432 * gtk/gtktextview.[ch]: Handle the preedit string, call
16433 gtk_im_context_reset() as necessary, add a menu to switch
16436 * gtk/gtktextlayout.[ch]: Remove useless
16437 gtk_text_layout_get_log_attrs() function.
16439 2000-11-11 Tor Lillqvist <tml@iki.fi>
16442 * gtk/gtk.def: Update.
16444 * gdk/win32/*.c: Add last argument to g_type_register_static()
16447 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16449 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16450 generated by older wheel mouse drivers. Get the correct y
16451 coordinate from WM_MOUSEWHEEL messages.
16453 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16454 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16455 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16456 Debugging functions.
16458 * gdk/win32/gdkprivate-win32.h: Declare them.
16460 * gdk/win32/gdkinput-win32.h: Add declaration for
16461 gdk_input_window_destroy().
16463 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16465 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
16467 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16468 function to help handle keeping things in sync.
16470 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
16472 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16475 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16476 (gtk_list_store_class_init): use the new BOXED marshallers.
16478 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16479 new_with_values to new_with_types.
16480 (gtk_tree_store_get_column_type): add this.
16481 (gtk_tree_store_class_init): use the new BOXED marshallers.
16483 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16484 mirror some POINTER marshallers.
16486 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
16488 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16489 allow more interesting iterators. Also, made the lifecycle of
16490 iterators more explicit.
16492 * gtk/gtktreemodelsort.[ch]: New model for sorting.
16494 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16497 2000-11-09 Alexander Larsson <alexl@redhat.com>
16499 * demos/testgtk/menus.c:
16500 Changes to make the new testgtk compile after
16501 gtk_menu_append was removed.
16503 * gdk/linux-fb/gdkdrawable-fb2.c
16504 (gdk_fb_get_depth, gdk_fb_get_visual,
16505 gdk_drawable_impl_fb_class_init): Implement
16506 these drawable functions. Now GtkImages work again.
16508 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16510 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16512 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16513 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16514 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16515 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16517 2000-11-08 Havoc Pennington <hp@pobox.com>
16519 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16520 visible_set args, don't know where these had gone, I thought they
16523 * gtk/testtext.c: Add a menu item to apply invisibility tag;
16524 now we can test the feature and see that it's totally broken.
16526 2000-11-08 Havoc Pennington <hp@pobox.com>
16528 Make DND copy pixbufs and tags when source and target share a
16531 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16532 in-process GTK_TEXT_BUFFER_CONTENTS target
16533 (gtk_text_view_drag_data_received): Paste from
16534 GTK_TEXT_BUFFER_CONTENTS if we receive it.
16536 2000-11-08 Alexander Larsson <alexl@redhat.com>
16538 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16541 * gtk/gtkmenu.c: Add support for scrolling menus.
16542 Remove gtk_menu_append/prepend/insert, these have been moved to
16543 gtkcompat.h as #defines.
16545 * gtk/gtkcompat.h.in:
16546 Add compatibility #defines for gtk_menu_append/prepend/insert
16548 * gtk/gtkmenu.h: Add data needed for scrolling menus.
16549 GtkMenuPositionFunc gets an extra argument push_in.
16550 gtk_menu_append/prepend/insert removed.
16552 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16553 positioning behaviour to fit to scrolling menus.
16555 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16556 into menuitem->submeny. That is wrong, and broke torn
16557 off submenus of torn off menus, since they were unrealized
16558 when the first menu was unrealized.
16560 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16561 gtk_menu_shell_select_item() since these need to be overridden in
16564 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16565 positioning behaviour to fit to scrolling menus.
16566 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16567 the current item so that it is prelighted when the menu pops up.
16568 This is a workaround to the fact that the menu doesn't get the
16569 initial enter event (due to grabs).
16571 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16572 s/gtk_menu_append/gtk_menu_shell_append/
16574 * gtk/gtknotebook.c:
16575 s/gtk_menu_insert/gtk_menu_shell_insert/
16577 * gtk/testgtk.c (create_menu, create_menus):
16578 Create the first menu with 50 items so that menu scrolling
16582 Patch from Jonathan Blandford <jrb@redhat.com>
16584 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16585 system to handle size requests. First, we ask what the size of
16586 the toggle is. Then, when allocating the size, we allocate the
16587 toggle_size first. This way we can have multiple menu-item
16588 classes w/o needing a seperate class for each.
16590 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16591 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16593 * gtk/gtkcheckmenuitem.c
16594 (gtk_check_menu_item_toggle_size_request): New function to handle
16595 the toggle size-request.
16597 2000-11-07 Havoc Pennington <hp@redhat.com>
16599 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16600 Half-ass somewhat fix this function, so that scrolling to the
16601 insertion point works. Pango hacking is in the future to really
16604 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16605 length of data, no longer used.
16607 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16608 method contents in here, get rid of destroy method
16609 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16610 that were backward. Remove debug spew.
16611 (cut_or_copy): Make the clipboard work with insert_range to
16612 preserve tags and pixbufs, not just the primary selection.
16614 2000-11-07 Havoc Pennington <hp@redhat.com>
16616 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
16617 to gtk_text_mark_get_visible
16619 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16620 bug that was generating an invalid iterator
16622 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16623 ensure_char_offsets() in front of code placing the iter in an
16626 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16627 make override_location arg const
16628 (paste): Replace the selection if we paste into the
16631 * gtk/gtkselection.h: Remove "GtkSelectioData"
16632 (struct _GtkSelectionData): move the definition here.
16634 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16635 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16637 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16639 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16640 (gtk_text_buffer_insert_range_interactive): implement
16641 (gtk_text_buffer_get_tags): Remove, replaced by
16642 gtk_text_iter_get_tags()
16644 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16645 limit parameter, to avoid infinite linear scan.
16646 (gtk_text_iter_backward_search): Add search limit
16647 (gtk_text_iter_forward_find_char): Add search limit
16648 (gtk_text_iter_backward_find_char): Add search limit
16650 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
16652 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16653 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16654 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16655 gdk/linux-fb/gdkwindow-fb.c:
16656 use g_object_new() instead of g_type_create_instance() which
16657 is a private function for fundamental type implementations.
16659 * gdk/linux-fb/gdkinput-ps2.c:
16660 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16661 instead just store the current modifier state. Add a (somewhat broken)
16662 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16663 Rename exported function gdk_input_ps2_get_mouseinfo to
16664 gdk_input_get_mouseinfo.
16666 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16667 gdk/linux-fb/gdkwindow-fb.c:
16668 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16671 2000-11-02 Havoc Pennington <hp@redhat.com>
16673 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
16674 use stock buttons. Should be 100% source compatible, appropriate
16675 filesel fields now point to dialog->vbox and dialog->action_area.
16676 On the bizarre side, dialog->action_area and filesel->action_area
16677 are not the same widget.
16678 (gtk_file_selection_init): Put some padding around the selection
16679 entry, so it isn't touching the GtkDialog separator.
16681 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
16682 use stock buttons, etc. Should also be source compatible.
16683 Set the dialog default title in _init not _new().
16685 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
16686 Use stock buttons; don't put a button box inside the existing
16687 dialog button box. Don't bother with push/pop colormap anymore.
16689 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
16690 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
16691 for message dialog, and necessary for the font selection and color
16692 selection with help and apply buttons.
16694 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
16695 to the created button widget. Set GTK_CAN_DEFAULT on the button.
16696 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
16697 between buttons, put less padding around the action area.
16698 (gtk_dialog_run): Exit on unmap rather than on destroy.
16699 This will also exit the loop if the widget is hidden.
16700 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
16701 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
16702 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
16703 special-case delete event.
16705 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
16708 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
16710 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
16711 button to temporarily disable position recording in the
16712 "saved position" test.
16714 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
16716 * gtk/gtkthemes.c: added compat code that temporarily implements
16717 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
16718 going to be revamped by owen's upcoming GtkModule patches, but
16719 untill then people want gtk to build, right? ;)
16721 2000-11-04 Havoc Pennington <hp@pobox.com>
16723 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
16726 * docs/Changes-2.0.txt: Add note about
16727 gtk_container_get_toplevels()
16729 * gtk/gtktextview.h: formatting
16731 * gtk/gtktextview.c: don't start descriptions with "Returns",
16734 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
16736 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
16737 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
16739 2000-11-03 Havoc Pennington <hp@redhat.com>
16741 * gtk/gtktexttagtable.c: Docs
16742 (gtk_text_tag_table_size): return a signed int
16744 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
16745 (gtk_text_tag_event): make the event_object a GObject
16747 * gtk/gtktextview.c: Write API docs for all functions.
16749 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
16750 for gtk_text_view_get_window_type() called on one of the private
16753 * gtk/gtktextview.c: Instead of accessing text_view->buffer
16754 directly, call get_buffer() which demand-creates a default
16755 buffer. So gtk_text_view_new() can be used to create a view with a
16756 default buffer in it, if you just want an empty text box users can
16757 put data in. Useful for GUI builders also.
16759 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
16761 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
16762 the charset encodign portion MUST be in lowercase.
16763 * gtk/gtkrc.az: added file for Azeri language
16765 2000-11-03 Havoc Pennington <hp@redhat.com>
16767 Get widgets working on the btree/buffer side. Display of them
16768 still doesn't work.
16770 * gtk/gtktextview.c: start implementing child widget stuff
16772 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
16774 * gtk/gtktextlayout.c: handle embedded widgets
16776 * gtk/gtktextdisplay.c: handle embedded widgets
16778 * gtk/gtktextchild.c: Implement all the child anchor goo
16780 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
16783 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
16784 (insert_pixbuf_or_widget_segment): abstract out common portions of
16785 creating a child anchor or a pixbuf segment.
16786 (gtk_text_btree_create_child_anchor): new function
16787 (gtk_text_btree_unregister_child_anchor): new function
16789 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
16790 allocate_child signal on GtkTextLayout
16792 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
16794 (gtk_text_iter_get_child_anchor): new function
16796 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
16797 default handler for the changed signal, which calls
16798 gtk_text_buffer_set_modified(), instead of just always emitting
16799 changed then calling set_modified() manually. I guess this is
16800 maybe more flexible. It seems logical.
16802 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
16804 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
16807 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
16809 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
16811 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
16812 been marked static.
16814 2000-11-02 Havoc Pennington <hp@redhat.com>
16816 * gtk/testgtk.c (create_labels): had a test backward
16818 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
16819 fields, so the dest GC ends up with the correct clip origin,
16820 etc. Fixes a bug where colored labels didn't redraw
16823 2000-11-02 Alexander Larsson <alexl@redhat.com>
16825 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16826 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
16827 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
16828 Add last argument to t_type_register_static call.
16830 * gdk/linux-fb/gdkdrawable-fb2.c:
16831 Add last argument to t_type_register_static call.
16832 export the get_image drawable virtual function.
16834 * gdk/linux-fb/gdkimage-fb.c:
16835 Add last argument to t_type_register_static call.
16836 rename gtk_image_get to _gdk_fb_get_image and
16837 export it for use by gdkdrawable-fb2.
16839 * gdk/linux-fb/gdkprivate-fb.h:
16840 export _gdk_fb_get_image.
16842 * gdk/linux-fb/gdkselection-fb.c:
16843 Add new api call stubs.
16846 Missing ( in linux-fb part.
16848 * modules/linux-fb/Makefile.am:
16849 Must link with gdk_pixbuf or get unresolved symbol.
16851 2000-11-01 Havoc Pennington <hp@pobox.com>
16853 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
16854 GTK_TYPE_TEXT_ITER and BOXED marshallers
16856 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
16858 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
16860 * gtk/gtk-boxed.defs: add GtkTextIter
16862 * gtk/gtkmarshal.list: Add marshallers for text widget that
16863 properly use OBJECT and BOXED
16865 2000-11-01 Havoc Pennington <hp@redhat.com>
16867 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
16869 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
16870 before returning it.
16872 2000-11-01 Havoc Pennington <hp@redhat.com>
16874 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16875 Clip the rectangle to be rendered to the drawable, since
16876 get_from_drawable() requires a region within the drawable
16878 2000-11-01 Havoc Pennington <hp@redhat.com>
16880 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
16883 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
16885 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
16888 2000-11-01 Havoc Pennington <hp@pobox.com>
16890 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
16892 (gtk_label_finalize): unref the attr list if any.
16894 * gtk/testgtk.c (create_get_image): close test on second click
16895 (make_message_dialog): close dialog if it exists
16897 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16899 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16902 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16903 from Pango markup format
16904 (gtk_label_set_markup_with_accel): ditto but with accelerator
16907 * gtk/gtkimage.c (gtk_image_expose): reformatting.
16909 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16910 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16911 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
16912 call gdk_window_get_origin().
16914 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16915 implement GDK_PIXBUF_ALPHA_FULL
16917 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
16919 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16920 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16921 g_signal_handlers_disconnect_matched to block/unblock and disconnect
16922 multiple handlers respectively, instead of only treating the
16923 first handler found (bug reported by owen).
16925 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
16927 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16929 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16931 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16932 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16933 gtk/gtktreeviewcolumn.h: Fixed inline docs.
16935 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16936 widget. Needs writing someday.
16938 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16941 2000-10-30 Havoc Pennington <hp@redhat.com>
16943 * gtk/gtktextview.h, gtk/gtktextview.c:
16944 Rename delete_at_cursor delete_from_cursor, and
16945 move to move_cursor.
16947 2000-10-30 Havoc Pennington <hp@redhat.com>
16949 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16950 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16951 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16952 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16953 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16954 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16955 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16956 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16957 gtktexttypes.h, gtktextview.c, gtktextview.h:
16959 Massive reindentation and reformatting. Arg alignment and comments
16960 still need fixing in various places.
16962 2000-10-30 Havoc Pennington <hp@redhat.com>
16964 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16965 to be named insert_at_cursor and delete_at_cursor so C++ can
16968 2000-10-28 Tor Lillqvist <tml@iki.fi>
16970 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16971 to get a double directory separator in case the home directory
16972 ends with one. This would cause trouble especially on Windows,
16973 where the path will be confused with the syntax for an an UNC
16974 (network share) path \\server\share\path.
16975 (gtk_rc_add_initial_default_files): Ditto.
16977 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
16979 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16981 * gtk/gtktextview.c: Use correct marshallers.
16983 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
16985 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
16986 use new iter stuff, and added all the appropriate signals et al.
16988 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16989 code is internal to gtk only.
16991 2000-10-28 Tor Lillqvist <tml@iki.fi>
16994 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16995 glib-genmarshal etc.
16997 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
16999 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
17002 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
17004 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
17006 2000-10-27 Robert Brady <robert@suse.co.uk>
17008 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
17009 en_GB (British), ia (Interlingua).
17011 2000-10-26 Havoc Pennington <hp@redhat.com>
17013 * gtk/gtktextiter.c (my_strrstr): fix constness warning
17016 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
17018 * gtk/gtktextsegment.c (char_segment_new): rename
17019 (_char_segment_new_from_two_strings): rename
17020 (_toggle_segment_new): rename
17022 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
17023 (make_clipboard_widget): make it static
17024 (text_get_func): static
17025 (text_clear_func): static
17027 * gtk/gtkcolorsel.c (adjustment_changed): make this function
17029 (hex_changed): make it static
17030 (hsv_changed): make it static
17031 (opacity_entry_changed): make it static
17033 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
17034 (toggle_segment_check_func): rename with _gtk
17036 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
17037 (_widget_segment_new): rename
17038 (_widget_segment_add): rename
17039 (_widget_segment_remove): rename
17040 (_widget_segment_ref): rename
17041 (_widget_segment_unref): rename
17043 * gtk/gtktextmark.c (_mark_segment_new): Rename
17044 _gtk_mark_segment_new
17046 2000-10-26 Havoc Pennington <hp@redhat.com>
17048 * gtk/gtkmarshal.list: add new marshallers used by the text widget
17049 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
17052 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
17055 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
17056 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
17057 license on these files.
17059 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
17062 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
17063 runtime random number different for each tree, instead of
17064 a constant I made up.
17066 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
17068 * gtk/Makefile.am: buncha cleanups, kludged build sources
17069 dependencies with a Makefile: oldest-source-stamp dependancy
17070 for the moment. automake is really fighting us here, with
17071 intentionally not allowing user-defined rules or dependancies
17072 prior to it's -include $(DEP_FILES) statement. sucks rocks!
17074 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
17075 to public headers. tehy have a comment stating that they are
17076 "semi-public" aren't included by gtk.h and if enums popup there,
17077 they can be /*< skip >*/-ed.
17079 * gtk/gtktextlayout.h:
17080 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
17081 added LGPL... <SIGH>
17083 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
17085 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
17086 GtkTreeIter. Added iterators everywhere.
17088 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
17090 * gtk/gtktreeviewselection.c: Changed to use the iterators.
17092 * gtk/gtktreestore.c: Changed to use the iterators.
17094 * gtk/gtkliststore.c: Commented out the code. Will convert to
17095 iterators tomorrow.
17097 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
17098 iterators tomorrow.
17100 * gtk/treestoretest.c: Changed to use iterators.
17102 * demos/testgtk/main.c: Moved to use the new iterator system.
17104 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
17106 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
17107 localization misbehaviour.
17109 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
17110 a useless type without copy/free.
17112 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
17113 of GTK_TYPE_CTREE_NODE.
17115 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
17118 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
17121 * gtk/gtk-boxed.defs (GtkSelectionData): specify
17122 gtk_selection_data_copy and gtk_selection_data_free
17123 do GtkSelectionData work as params in signals.
17125 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
17127 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
17128 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
17129 couldn't they at least give it a non-standard name?
17131 * gtk/gtktextlayout.c: arg! yet another implementation of
17132 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
17134 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
17135 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
17136 home. now i know this _is_ a conspiracy.
17138 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
17141 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
17142 (gtk_accel_group_create_add): marshaller signature fixups.
17144 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
17145 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
17147 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
17150 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
17152 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
17153 due to the signal system changes, it wouldn't build currently. to
17156 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
17158 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
17159 so it needs gtk_marshal_VOID__ENUM() instead of
17160 gtk_marshal_NONE__UINT().
17162 * gdk/gdk*.c: adapted type registration functions.
17164 * gtk/gtkbindings.c:
17165 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
17168 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
17171 (gtk_object_destroy):
17172 (gtk_object_shutdown): fixed recursion guards. basically we have to
17173 catch the case where any of GObject.shutdown() or gtk_object_destroy()
17174 is called during ::destroy, and avoid recursion there.
17176 * gtk/gtktypeutils.c:
17177 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
17178 boxed_copy/boxed_free. this needs a more general solution based on a
17179 publically installed code-generator utility.
17181 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
17182 glib's gobject has support for that now.
17183 define GtkSignalMarshaller in terms of GSignalCMarshaller.
17185 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
17187 * gtk/gtksignal.[hc]:
17188 * gtk/gtkmarshal.[hc]:
17189 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
17190 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
17191 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
17194 * *.c: marshaller name fixups.
17196 * gtk/gtkmarshal.list: added a comment briefing the format.
17198 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
17200 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
17201 compatibility macros here now. more specifically, most of
17202 the API is preserved (yes, _most_, nonwithstanding the
17203 following exceptions listed, the API is stil lHUGE ;)
17204 things that got removed completely:
17205 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
17206 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
17207 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
17208 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
17209 gtk_signal_remove_emission_hook().
17210 non-functional functions variants:
17211 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
17212 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
17213 not supported anymore.
17214 (gtk_signal_compat_matched): new internal function to aid
17215 implementation of the compatibility macros, it provides
17216 functionality to block/unblock/disconnect handlers based
17219 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
17221 * *.c: adaptions to new type registration API signatures.
17223 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
17225 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
17227 2000-10-25 Robert Brady <robert@suse.co.uk>
17229 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
17230 gdk_property_delete): If window == NULL, assume the root window.
17231 (restoring the behaviour that was in 1.2).
17233 * gtk/testtext.c (save_buffer): Allow creation of new files when
17236 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
17239 2000-10-25 Tor Lillqvist <tml@iki.fi>
17241 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
17243 * gdk/win32/gdkdrawable-win32.c
17244 * gdk/win32/gdkimage-win32.c
17245 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
17248 * gdk/win32/gdkcc-win32.c
17249 * gdk/win32/gdkcolor-win32.c
17250 * gdk/win32/gdkfont-win32.c
17251 * gdk/win32/gdkinput-win32.c
17252 * gdk/win32/gdkmain-win32.c
17253 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
17255 2000-10-24 Havoc Pennington <hp@redhat.com>
17257 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
17258 it a static function
17260 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
17261 redraw text when a tag is applied to it.
17263 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
17264 (gtk_text_tag_affects_nonsize_appearance): private functions to
17265 see if a tag requires various kinds of redraw/layout to be queued
17268 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
17270 * gtk/testtext.c (fill_example_buffer): Put the cursor
17271 at the start of the buffer, so search works by default
17273 * gtk/gtktextiter.c (lines_match): init match_start always
17275 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
17276 function, get iter at a line + a byte index
17278 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
17279 to set byte position within a line
17280 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
17282 2000-10-23 Havoc Pennington <hp@redhat.com>
17284 * gtk/testtext.c: Re-enable the "find" dialog
17286 * gtk/testgtk.c: Add test for gdk_drawable_get_image
17288 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
17289 the arguments to gdk_draw_drawable were in the wrong order
17290 (gdk_window_paint_init_bg): This function was ignoring the
17291 init_region, instead of clipping to it, so the entire backing
17292 pixmap was cleared on every begin_paint()
17293 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
17294 was in here again, the loop kept using the same GtkWindowPaint
17296 (gdk_window_begin_paint_region): Fix a bug where we had two
17297 x_offset instead of x_offset and y_offset
17299 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
17300 before we get the image.
17301 (gdk_draw_drawable): get the composite before we draw the drawable.
17302 (gdk_drawable_real_get_composite_drawable): default
17303 get_composite_drawable implementation that returns the drawable
17306 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
17307 get_composite_drawable virtual function
17309 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
17312 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
17313 make this work if the source drawable is a GdkDrawableImplX11
17314 instead of a public drawable type. This is really broken; the
17315 problem is that GdkDrawable needs a virtual method get_xid(), but
17316 of course that doesn't work in practice. Enter RTTI.
17318 Also, improve mismatched depth message.
17320 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
17323 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
17324 install _gdk_x11_get_image as our implementation of get_image
17326 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
17327 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
17329 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
17330 gdk_drawable_get_image
17332 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
17334 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
17337 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
17338 trailing semicolon after for loop
17340 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
17342 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
17343 where font_desc for widget's context lagged widget's font_desc by
17346 2000-10-22 Tor Lillqvist <tml@iki.fi>
17348 * gdk/win32/gdkgc-win32.c
17349 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
17351 * gtk/makefile.mingw.in
17352 * gtk/gtk.def: Updates.
17354 * gtk/testgtk.c: sleep() is called _sleep in MS's C
17357 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
17359 * gtk/makefile.msc: Remove
17361 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
17363 * gtk/Makefile.am: Add it.
17365 * configure.in: Generate it.
17367 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
17368 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
17369 something even if not implemented, to satisfy picky MSVC.
17371 Patches by Hans Breuer:
17373 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
17374 SetBkMode() and SetTextAlign() before calling
17375 pango_win32_render().
17377 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
17378 Set hcliprgn to NULL after destroying it.
17379 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
17381 * gdk/win32/gdkgeometry-win32.c
17382 (_gdk_windowing_window_queue_antiexpose): More effective
17385 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
17386 depth as default, not the visual's.
17388 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
17389 against empty title.
17391 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
17392 IMAGE_PRIVATE_DATA.
17394 * gdk/win32/gdkimage-win32.c: Use it.
17396 2000-10-22 Robert Brady <robert@suse.co.uk>
17398 * configure.in: Check for bind_textdomain_codeset
17400 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
17401 present, make use of it.
17403 Add a translatable string "default:LTR" which, if translated
17404 to "default:RTL", will cause the default direction to be
17407 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
17408 direction if marked as flippable.
17410 * gtk/gtkhscale.c: Mark widget as flippable.
17412 2000-10-04 Havoc Pennington <hp@redhat.com>
17414 * gtk/testgtk.c (create_buttons): create some stock buttons
17415 with the default accel group
17416 (create_image): test some new GtkImage features
17417 (make_message_dialog): test GtkMessageDialog
17418 (create_modal_window): fix someone's bizzarro indentation
17420 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
17421 GTK_WIN_POS_CENTER_ON_PARENT.
17422 Add "destroy with parent" setting, which means the window goes
17423 away with its transient parent.
17424 (gtk_window_get_default_accel_group): get the default accel group
17426 (gtk_window_set_destroy_with_parent): set/unset destroy with
17428 (gtk_window_read_rcfiles): invalidate icon set caches
17429 after reloading rcfiles
17431 * gtk/gtkenums.h (GtkWindowPosition): add
17432 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
17433 on its parent window when the dialog is mapped for the first time.
17435 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
17436 a simple message dialog class
17438 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
17439 handler to emit response signal, and maybe later it would
17440 honor a hide_on_delete flag - though that isn't there yet.
17441 Set border width on the vbox to 2, so we get some padding.
17442 Use a button box for the action area.
17443 (gtk_dialog_key_press): synthesize a delete event if Esc
17444 is pressed and the GtkWidget key press handler didn't
17445 handle the escape key.
17446 (gtk_dialog_new_with_buttons): new function creates a dialog
17447 with some default buttons in it.
17448 (gtk_dialog_add_action_widget): add an activatable widget
17449 as a button in the dialog - you can also add a non-activatable
17450 widget by accessing the action area directly.
17451 (gtk_dialog_add_button): add a simple button - stock ID or
17452 label - to the action area
17453 (gtk_dialog_response): emit response signal
17454 (gtk_dialog_run): block waiting for the dialog, return
17455 the response. Override normal delete_event behavior, so that
17456 delete_event does nothing inside gtk_dialog_run().
17457 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
17458 emitted when an action widget is clicked or the dialog gets
17461 * gtk/gtk.h: add gtkmessagedialog.h
17463 * gtk/Makefile.am: add gtkmessagedialog.[hc]
17465 2000-10-18 Havoc Pennington <hp@redhat.com>
17467 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
17468 where any number of empty lines would get skipped
17470 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
17473 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
17474 warning about invalid iterators (explain more thoroughly)
17475 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
17477 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
17480 * demos/*.c: Add error handling
17482 * gtk/gtktextbuffer.c: don't modify const iterators
17484 * gtk/gdk-pixbuf-loader.c: Add full error handling here
17486 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
17489 * gtk/gtkiconfactory.c: Update to reflect addition of error
17490 handling to gdk-pixbuf loaders
17492 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
17494 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
17495 move to new modularized testgtk.
17497 2000-10-17 Jonathan Blandford <jrb@redhat.com>
17499 * gtk/gtktreeview.c: Draw the arrows correctly.
17501 * gtk/gtktreemodel.c: Added user docs.
17503 * gtk/gtk.h: remove gtktreedatalist.h.
17505 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
17506 parent when generating my type.
17508 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
17509 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
17511 2000-10-16 Jonathan Blandford <jrb@redhat.com>
17513 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
17514 GtkTreeModel from object to interface.
17516 2000-10-16 Havoc Pennington <hp@redhat.com>
17518 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
17521 2000-10-16 Jonathan Blandford <jrb@redhat.com>
17523 * gtk/gtktreeselection.c: Add API documentation to all public
17526 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
17529 2000-10-15 Jonathan Blandford <jrb@redhat.com>
17531 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
17532 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
17533 docs to all public functions.
17535 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17536 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17537 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17538 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17539 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17542 2000-10-14 Robert Brady <robert@suse.co.uk>
17544 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17546 2000-10-12 Jonathan Blandford <jrb@redhat.com>
17548 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17549 values other then G_TYPE_STRING.
17550 * gtk/gtktreeselection.c: Minor commenting updates.
17551 * gtk/gtktreeview.c: Format updates.
17553 2000-10-09 Tor Lillqvist <tml@iki.fi>
17555 * README.win32: Update.
17557 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17558 lines that had been deleted by mistake (?).
17560 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17561 also the case fg==white and bg==black (but still not randomly
17562 coloured cursors). Thanks to Wolfgang Sourdeau.
17564 * gdk/win32/*.c: Silence gcc -Wall.
17566 * gtk/gtk.def: Add missing entry points.
17568 Fixes by Hans Breuer:
17571 * gdk/win32/makefile.msc: Update.
17573 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17574 some MSVC thing, presumably), cause breakpoint on failures. Add
17575 GDK_NOR case. Call g_log_set_always_fatal.
17577 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17578 should be pased by reference.
17580 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17582 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17584 * gdk/win32/gdkevents-win32.c
17585 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17587 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17588 implementation object.
17590 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17593 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17594 Use the wrapper object.
17596 2000-10-06 Havoc Pennington <hp@redhat.com>
17598 * Makefile.am (SRC_SUBDIRS): contrib subdir
17600 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17601 so it can be used in Xlib version
17603 * demos/testpixbuf.c (update_timeout): error checking from 1.0
17606 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17607 change from 1.0 tree that returns first frame of animation
17608 if the loaded file is an animation.
17610 * contrib: add new directory to hold stuff that comes with GTK+
17611 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17613 * configure.in: add contrib/*
17615 2000-10-05 Havoc Pennington <hp@redhat.com>
17617 * demos/testpixbuf-save.c: add pixbuf save test
17619 * demos/Makefile.am: add testpixbuf-save.c
17621 2000-10-05 Jonathan Blandford <jrb@redhat.com>
17623 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17624 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17625 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17626 * gtk/gtktreeselection.[ch]: Replaced
17627 "node_selected"/"node_unselected" signal with "selection_changed"
17630 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17632 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17635 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17637 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17640 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
17642 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17643 Move list pointer forwards before removing item from
17644 list. (Crash reported by Salmaso Raffaele)
17646 * gdk/gdkwindow.h: Remove spurious trailing ,
17648 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17649 dependencies on uninstalled libraries, sorry folks.
17651 2000-10-04 Havoc Pennington <hp@redhat.com>
17653 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17654 gtk/gtkiconfactory.c: Fix copyrights
17656 * demos/testpixbuf.c: add inline pixbuf test
17658 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
17660 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17661 Add gdk_window_iconify.
17663 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
17664 (gdk_window_set_geometry_hints): Add win_gravity
17665 to geometry structure.
17667 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
17668 Implement _NET_WM_PING.
17670 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
17671 Set _NET_WM_PID on the client leader.
17673 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
17674 Handle UTF-8 better.
17676 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
17677 UTF-8 better, set _NET_WM_NAME as well. Only set
17678 icon name if it hasn't previously been explicitely
17681 2000-10-03 Havoc Pennington <hp@redhat.com>
17683 * gtk/testtextbuffer.c: clean up trailing whitespace,
17684 add extensive tests for tag toggle iteration.
17686 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
17689 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17690 optimize case where the tag root is on level 1
17691 (gtk_text_line_previous_could_contain_tag): attempt to implement
17692 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
17695 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
17696 Implement this, though not very efficiently.
17698 * gtk/gtktextiterprivate.h: reformat
17700 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
17703 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
17704 this to properly revalidate the iterators.
17706 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
17707 properly at the end of the line (and therefore on empty lines)
17709 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
17710 maybe we should return a value...
17712 2000-10-03 Tor Lillqvist <tml@iki.fi>
17714 * config.h.win32: Guard definition of alloca(). glib.h now handles
17718 * gtk/gtk.def: Add new entry points.
17720 Changes just to make GTK+ build without errors on Win32. No hope
17721 of it working in its current state, though...:
17723 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
17724 some functions from the X11 backend, just to make GTK+ build.
17726 * gdk/makefile.mingw.in
17727 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
17728 number. Add new object files.
17730 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
17731 GetMessageTime to get timestamp (where on X11 uses
17732 gdk_x11_get_server_time()).
17734 2000-10-02 Havoc Pennington <hp@pobox.com>
17736 * gtk/gtktextview.c: text_window_* weren't static and should have
17738 Start work on child widgets; not yet complete, syncing to
17741 * gtk/gtktextchild.h: change this to contain a public interface,
17742 starting work on child interfaces.
17743 * gtk/gtktextchildprivate.h: move private interfaces here
17745 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
17747 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
17748 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
17749 gtk/gtktextmark.c: copyright notices
17751 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
17754 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
17757 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
17760 2000-09-30 Havoc Pennington <hp@pobox.com>
17762 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
17763 NULL start/end pointers
17765 * gtk/gtktextbuffer.c: Write some docs
17766 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
17767 NULL, so you can just check whether there's a selection.
17769 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
17770 cleanup_line or segments_changed ourselves, it gets done
17773 * gtk/gtktextmark.h:
17774 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
17776 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
17778 * gtk/gtktextmark.c: delete some more old Tk cruft
17780 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
17781 mark before removing it, so we can emit MARK_DELETED with a valid
17783 (gtk_text_buffer_mark_set): hold ref across signal emission
17785 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
17786 whining about attempts to delete special marks
17788 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
17789 underscore, since it's internal.
17791 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
17792 now implemented in terms of iterators in gtktextiter.h
17794 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
17795 New function, destructively sets contents of buffer. Also
17796 a convenient way to clear the buffer by setting text to ""
17798 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
17799 multiline string literal
17801 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
17804 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
17805 is not dereferenceable
17806 (gtk_text_iter_forward_lines): fix return value
17808 2000-09-29 Havoc Pennington <hp@redhat.com>
17810 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
17812 * gtk/gtktextview.c: Implement drag thresholding; change functions
17813 that set border window size to have nicer name
17814 (gtk_text_view_mark_set_handler): Fix this to have the
17817 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
17819 * gtk/testtext.c: Update with API changes, put line numbers on
17822 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
17825 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
17826 pixbuf; delete a big block of #if 0 Tk code
17828 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
17829 insert_pixmap with insert_pixbuf
17831 2000-09-29 Martin Baulig <baulig@suse.de>
17833 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
17834 confusion with the GdkPixbuf of the GNOME 1.x platform.
17836 2000-09-29 Havoc Pennington <hp@pobox.com>
17838 * gtk/gtktextview.c: Implement the side windows.
17840 * gtk/testtext.c: Implement simple line numbering in the
17841 left side window; seems to make scrolling sloooow. Oops.
17842 Also, cursor blink is for some reason causing redraws
17843 of the line numbers. Should investigate...
17845 2000-09-28 Havoc Pennington <hp@redhat.com>
17847 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
17848 scrolling child windows, and draw focus rectangle properly.
17850 (gtk_text_view_buffer_to_window_coords):
17851 Coordinate transformation to deal with all these freaking windows
17853 (gtk_text_view_window_to_buffer_coords): transform the other way
17855 * gtk/testtext.c (create_buffer): Update to match Pango API change
17857 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
17859 (foreach_unref): don't emit remove signal from finalize, just
17860 set tag's parent to NULL
17862 2000-09-26 Havoc Pennington <hp@redhat.com>
17864 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
17867 2000-09-26 Havoc Pennington <hp@redhat.com>
17869 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
17870 headers into the private header list
17872 * Makefile.am (pkgconfig_DATA): install pkg-config files
17874 * configure.in: add pkg-config files
17876 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
17878 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
17879 outstanding icon caches on theme change.
17881 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
17884 (GtkIconSource): Specification for creating a pixbuf
17885 appropriate for a direction/state/size triplet from
17886 a source pixbuf or filename
17888 (GtkIconSet): List of GtkIconSource objects that are used to
17889 create the "same" icon (e.g. an OK button icon), and cache for
17892 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
17893 up the icon set for a given stock ID. GTK maintains a stack of
17894 GtkIconFactory to search, and applications or libraries can add
17895 additional icon factories on top of the stack
17897 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
17898 the set of GtkIconSource specified for a given stock ID into
17899 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
17900 RcStyle, under the specified stock ID.
17902 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17903 render_icon used to derive a GdkPixbuf from a GtkIconSource.
17904 This allows people to theme how prelight, insensitive, etc. are
17907 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17908 icon factories for a style, and return the resulting
17911 (gtk_style_render_icon): Render an icon using the render_icon
17912 method in the GtkStyleClass.
17914 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
17915 Use the style for a given widget to look up a stock ID, get the
17916 icon set, and render an icon using the render_icon method
17919 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17920 (contains information about a stock item), the built-in stock item
17921 IDs, and functions to add/lookup stock items.
17923 * gtk/stock-icons/*: Stock icons that come with GTK
17925 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17926 a button based on a GtkStockItem
17927 (gtk_button_new_accel): Takes a uline string and accel group, and
17928 installs the accelerator.
17930 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17931 image-display widget.
17933 2000-09-25 Havoc Pennington <hp@redhat.com>
17935 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17937 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
17938 Fix a bug when removing node data, we didn't properly
17939 re-splice the linked list after removing the data.
17941 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
17942 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17944 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17946 * gtk/gtktextlayout.c (set_para_values): Set tab array
17947 for the layout from the GtkTextTag.
17949 * gtk/gtktexttypes.h: delete tab and search cruft,
17950 remove g_convert() in favor of GLib version
17952 * gtk/gtktexttypes.c: remove tab implementation from here,
17955 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
17956 tab stuff using new PangoTabArray from Pango
17958 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17959 unused border_width stuff
17961 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
17963 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17964 glib) and now useless utf_to_latin1() latin1_to_utf()
17966 * gtk/gtktextview.[ch]: Change ::move_insert and
17967 ::delete_text action signals to ::move and ::delete;
17968 create the signals with the right enumeration type,
17969 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17970 C-v bindings, change Home, End to move to beginning/end
17971 of line, Add C-Home C-End to move to beginning/end
17972 of buffer. Change ::cut_text to ::cut_clipboard, etc;
17973 combine ::scroll_text into ::move; use new GtkSelectionData
17974 functions to simplify DND text handling.
17976 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17977 deletion enumerations here, rename enumeration values to
17978 be consistently plural.
17980 * gtk/gtktextbuffer.c: Use new clipboard interfaces
17981 for cut/copy/paste and primary selection.
17983 * gtk/gtktextbuffer.[ch]: Remove excess time and
17984 'interactive' arguments from cut/copy/paste;
17985 rename cut to cut_clipboard, etc; remove
17986 gtk_text_buffer_get_clipboard_contents().
17988 * gtk/gtktextlayout.[ch]: Add
17989 gtk_text_layout_move_iter_to_line_end() to move the iter to
17992 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17993 Functions to set or get a UTF-8 string on the selection
17996 * gtk/gtkclipboard.[ch]: New, simplified selection handling
17999 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
18000 created widgets - one of these is useless if we don't.
18002 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
18003 a public function clear all targets registered for the
18006 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
18007 Never call gtk_widget_realize() - that was just asking
18008 for bizarre side-effects.
18010 * gtk/gtkselection.c (gtk_selection_owner_set): Call
18011 gdk_selection_owner_set even if the widget is the
18012 same so that we reliably update the timestamp on
18015 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
18016 gdk_x11_get_server_time() function.
18018 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
18019 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
18020 Add some tricky filtering on serial numbers for
18021 selection clear events to fix up long-standard
18022 race condition FIXME's in gtkselection.c.
18024 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
18025 routines to convert from utf8 to compound text or
18026 STRING and from a text property to UTF-8.
18028 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
18029 a convenience function gdk_get_current_event_time().
18031 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
18032 and free selection_data->data properly
18034 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
18036 * gtk/gtkthemes.c: Remove some unecessary includes.
18038 2000-09-08 Jonathan Blandford <jrb@redhat.com>
18040 * gtk/gtktextdisplay.c
18041 * gtk/gtktextlayout.c
18044 * gtk/testtext.c: Change the overstrike property to strikethrough,
18045 to closer match pango.
18047 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
18049 * gtk/gtktextview.c: Fix up visibility so that focus,
18050 cursor_visible and blink interact properly. Reenable cursor blink
18051 which had been roughly disabled. Make blink and focus
18054 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
18055 Add a flag for whether to display insertion cursor and
18056 a function to set the flag.
18058 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
18059 get_line_y() to get_line_yrange(), to be a bit more generally
18062 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
18064 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
18065 do stop_navigating_submenu, to clear last timeout properly.
18066 Also in gtk_menu_motion_notify move ignore_enter above
18067 the conditional to make it always happen as suggested by Owen
18069 2000-09-07 Tor Lillqvist <tml@iki.fi>
18071 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
18073 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
18076 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
18079 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
18080 (gdk_win32_get_colormap): A line had been deleted by mistake.
18082 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
18083 (gdk_event_translate): Handle more virtual keycodes to be able to
18084 generate GDK events for Control-comma, Control-period, etc.
18086 * gtk/gtk.def: Add some missing entry points.
18088 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
18090 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
18091 Doc comment fixing. (Mostly non-matching parameter names.)
18093 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
18094 comments a little to avoid looking like a doc comment.
18096 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
18097 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
18098 conversions be changed to GError?)
18100 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
18101 Move private #defines into .c file.
18103 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
18104 order of argument addition, remove duplicates.
18106 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
18107 parent class is FrameClass, not BinClass.
18109 * gtk/gtk.h: Add gtkinvisible, which was missing.
18110 (It's occasionalyl useful for client apps, if seldom.)
18112 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
18115 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
18117 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
18118 coordinates when creating window, instead of GDK-space
18119 coordinates. (Avoid BadValue on too large windows.)
18121 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
18123 * configure.in (use_mmx_asm): Remove conftest* after use along the
18124 lines of AC_TRY_COMPILE.
18126 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
18127 of g_dirname, which is deprecated.
18128 (gtk_rc_parse_any): Removed calls to
18129 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
18131 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
18132 Removed calls to g_hash_table_{freeze,thaw}, as they are
18135 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
18136 instead of g_basename.
18138 2000-09-04 Elliot Lee <sopwith@redhat.com>
18140 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
18143 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
18145 * gtk/gtkwidget.h: Add some documenting comments about
18146 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
18147 just as owen said on irc.
18149 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
18150 set HAS_DEFAULT. Only set it if there isn't another window
18151 holding it (a focus window which RECEIVES_DEFAULT) and only unset
18152 it if the widget is not the focused window with RECEIVES_DEFAULT.
18153 This fixes weird double default bugs in dialogs which has things
18154 call gtk_window_set_default at times.
18156 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
18158 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
18159 Nils Barth and David Santiago to improve submenu
18160 navigation. The patch does this by creating a triangular
18161 region from the point where the pointer leaves the
18162 menu to the submenu. While the pointer is in
18163 that region and a timeout has not expired, events
18164 that would cause the active submenu to change are
18167 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
18169 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
18170 moving a toplevel window immediately after sizing it would
18171 result in it being sized back to the old size since
18172 impl->width, impl->height aren't updated until we hear
18173 back from the server. There is still a (longstanding) bug
18174 here that gdk_window_get_size() will give the wrong size
18175 until we do hear back.
18177 2000-08-31 Havoc Pennington <hp@redhat.com>
18179 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
18180 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
18181 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
18182 Rename GtkTextStyleValues to GtkTextAttributes
18184 2000-08-31 Havoc Pennington <hp@pobox.com>
18186 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
18187 for rapid testing whether an iterator is the end iterator
18188 (gtk_text_btree_new): init end line cache
18189 (gtk_text_line_is_last): use fast cached line to
18190 see if we're the last line.
18191 (get_last_line): use cached line here too, should
18192 speed up some random unrelated code.
18194 2000-08-30 Havoc Pennington <hp@pobox.com>
18196 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
18199 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
18200 delete_text signals. This allows the signals to be used for
18203 * gtk/gtktextbuffer.c: Change signal handler signatures;
18204 provide "interactive" argument when emitting insert_text or
18205 delete_text signal.
18207 2000-08-30 Havoc Pennington <hp@pobox.com>
18209 * gtk/gtktextbuffer.c: Docs
18211 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
18213 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
18214 from switch statements, since Tor removed the enumeration
18217 * gdk/x11/gdkimage-x11.c (gdk_image_get):
18218 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
18220 2000-08-29 Elliot Lee <sopwith@redhat.com>
18221 * */*.h: Use G_GNUC_CONST.
18223 2000-08-27 Havoc Pennington <hp@pobox.com>
18225 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
18226 minor indentation fixes, inserted some FIXME about stuff I
18227 realized was broken while documenting it.
18228 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
18231 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
18233 * gtk/testgtk.c (create_styles): Fix double free of
18236 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
18238 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
18240 * gtk/testgtk.c (create_styles): Add a test for modifying
18241 the style through gtk_widget_modify_*.
18243 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
18244 a function to get the current modifier style.
18246 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
18247 of the passed in GtkRcStyle instead of ref'ing it.
18249 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
18251 2000-08-20 Tor Lillqvist <tml@iki.fi>
18254 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
18255 shared memory image+pixmap GdkImage type, or
18256 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
18257 I am dropping that.
18259 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
18260 actually call gtk_init_abi_check(), passing also
18261 sizeof(GtkWindow). Ditto for gtk_init_check().
18264 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
18265 New functions, used to check that the GTK+-using code has been
18266 compiled using the correct compiler and switches. In particular,
18267 with gcc one has to use the -fnative-struct switch as GTK+ is
18268 compiled with that.
18270 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
18272 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
18273 ->prev fields when merging lists. (Found simultaneously
18274 by Pawel Salek and Jakub Jelinek)
18276 2000-08-12 Tor Lillqvist <tml@iki.fi>
18279 * gtk/gtk.def: Add missing entries.
18281 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
18282 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
18284 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
18285 function. Dummy implementation at this point.
18287 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
18288 rules. Undefine GTK_COMPILATION when compiling the test programs.
18290 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
18292 2000-08-11 Tor Lillqvist <tml@iki.fi>
18294 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
18295 to convert back and forth from UTF-8 and the "system" (or "current
18296 locale") charset when necessary. Indentation/spacing cleanup.
18298 2000-08-10 Havoc Pennington <hp@redhat.com>
18300 * Makefile.am (snapshot): Change the format of the snapshot
18301 version to match glib
18303 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
18304 from EXTRA_DIST since it doesn't seem to exist
18306 2000-08-10 Tor Lillqvist <tml@iki.fi>
18308 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
18309 version of the directory name (not the UTF-8 one) when building
18310 the path name to stat().
18312 2000-08-03 Elliot Lee <sopwith@redhat.com>
18314 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
18315 PANGO_ATTR_SHAPE set.
18317 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
18319 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
18320 Peter Osterlund to simplify the code while keeping the
18321 functionality the same.
18323 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
18325 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
18326 is_viewable() test further inside the function, since removing the
18327 window from the redraw list without clearing ->update_area
18328 was also very broken.
18330 2000-08-02 Tor Lillqvist <tml@iki.fi>
18332 * configure.in: Check for <unistd.h>.
18334 2000-08-01 Martin Baulig <baulig@suse.de>
18336 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
18337 to display the message that this is a development version of GTK+.
18339 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
18341 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
18342 was depending on widget->allocation instead of the width of text_area,
18343 which was incorrect for subclasses like GtkSpinButton.
18345 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
18346 with width == 1 tests that should be width == -1.
18348 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
18350 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
18351 (broken, Elliot, every single window blank on X) custom code with call
18352 to gdk_window_is_viewable() which a) prevents code duplicate and
18355 2000-07-31 Elliot Lee <sopwith@redhat.com>
18357 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
18358 to get the GDK_PARENT_ROOT() macro to work.
18359 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
18360 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
18361 of, windows that aren't shown.
18362 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
18363 pointer grab stuff.
18365 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
18367 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
18368 s/gtk_main_iteration/g_main_iteration/
18370 Did this already in change:
18371 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
18372 don't know how it got reverted.
18374 2000-07-31 Stanislav Brabec <utx@penguin.cz>
18376 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
18377 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
18379 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
18382 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
18384 * configure.in,po/{sp,sr}.po: Added Serbian files
18386 2000-07-30 Tor Lillqvist <tml@iki.fi>
18388 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
18390 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
18391 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
18392 GIOChannel implementation.
18394 * gdk/win32/gdkinput.c
18395 * gdk/win32/gdkpango-win32.c: Update license name here, too.
18397 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
18398 definition to match prototype.
18400 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
18402 2000-07-27 Elliot Lee <sopwith@redhat.com>
18404 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
18405 function, to allow handling image formats that cannot be detected
18406 by looking at content alone.
18408 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
18410 * docs/tutorial/*.gif *.jpg *.eps
18411 Update these to the same look-n-feel.
18412 Why does including images in DocBook suck so badly?
18414 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
18416 * gtk/gtktable.c: applied patch from Phil Thompson
18417 <phil@river-bank.demon.co.uk> that enables space settings for
18418 the last row/columns as well.
18420 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
18422 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
18423 updates the license headers to the GNU Lesser General Public License,
18424 as well as updating the copyright year to 2000.
18426 2000-07-26 Robert Brady <rwb197@zepler.org>
18428 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
18429 and po/Makefile, was installing and looking for them under gtk20
18430 and gtk2 respectively.
18432 2000-07-25 Havoc Pennington <hp@redhat.com>
18434 * gtk/testtext.c: Comment out some stuff that depends on the rest
18437 2000-07-25 Havoc Pennington <hp@redhat.com>
18439 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
18442 2000-07-25 Havoc Pennington <hp@redhat.com>
18444 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
18447 * gtk/gtktextview.h: To be consistent with usage of "line"
18448 throughout the API to mean "newline-terminated thingy", change
18449 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
18452 (GtkTextView): Add flags for default editability, and whether to
18453 show the cursor. Add functions to get/set that. Add
18455 (gtk_text_view_get_iter_location): new function
18457 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
18459 (g_convert): Add g_convert temporarily, will go in glib in a bit
18461 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
18462 GtkTextTagTableForeach instead of brokenly using GHFunc.
18463 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
18465 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
18466 moved to public header.
18468 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
18469 "invisible", since "elide" was a bad name.
18470 (gtk_text_tag_get_priority): Added
18472 (GtkTextStyleValues): put this in public header, along with
18473 functions to use it.
18475 * gtk/gtktextmarkprivate.h: Include more headers, since we no
18476 longer include gtktextbtree.h.
18478 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
18479 gtk_text_mark_deleted
18481 * gtk/gtktextlayout.h: Don't include the "really private" headers,
18482 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
18483 to make this possible. Now we only need to install
18484 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
18485 (However the Makefile.am isn't changed yet because of the
18486 logistics of merging gtk-hp-patches piecemeal)
18488 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
18489 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
18490 gtk_text_iter_get_line is now used in the public API for a
18493 * gtk/gtktextiter.h: Clean up function names to be more
18494 consistent. Always call char offset "offset" and byte index
18495 "index". A "line" is always a line number.
18497 (gtk_text_iter_is_last): new function, more efficient than
18498 the existing way to check
18499 (gtk_text_iter_is_first): new function, also more efficient
18501 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
18503 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
18504 gtk_text_iter_forward_char, etc.
18506 (gtk_text_iter_forward_to_tag_toggle): Renamed from
18507 forward_find_tag_toggle, since this isn't a linear search
18509 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
18511 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
18512 New functions, search for a buffer substring.
18514 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
18515 interactive and default editable (since we need to store that info
18516 until we receive the selection data).
18518 Remove all the _at_char and at_line etc. versions of functions;
18519 only have iterator versions.
18521 Add _interactive() versions of functions, that consider the
18522 editability of text. (FIXME add interactive flag to the
18523 insert/delete signals per Darin's suggestion)
18525 (gtk_text_buffer_get_tag_table): new function, demand-creates the
18526 tag table if necessary
18528 Remove declaration of gtk_text_buffer_get_iter_from_string
18530 (_gtk_text_buffer_get_btree): private/internal function, added.
18533 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18534 (gtk_text_line_is_last): new function
18536 2000-07-25 Havoc Pennington <hp@redhat.com>
18538 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18539 using GtkProgressBar. See Changes-2.0.txt for details.
18541 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18542 "pulse_step" which are the equivalent of
18543 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18546 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18547 (use_text_format) to mark whether text set on the progress bar is
18548 a format string. Deprecate entire GtkProgress interface.
18550 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18551 (gtk_progress_build_string): make this a no-op if use_text_format
18554 * docs/Changes-2.0.txt: Describe progress bar changes.
18556 2000-07-25 Tor Lillqvist <tml@iki.fi>
18558 * Makefile.am: Include the build directory.
18560 * configure.in: Generate build/Makefile, build/win32/Makefile,
18561 gdk/, gdk/win32/, and gtk/makefile.mingw.
18563 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18564 Add GETTEXT_PACKAGE.
18567 * gtk/gtk.def: Updates.
18570 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18571 need them any longer.
18573 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18575 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18576 PANGOWIN32_LIBS and gdk_pixbuf.
18578 * gdk/win32: Compiles, but no doubt doesn't work at all.
18580 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
18582 * gdk/win32/gdkinput.c: New file, temporarily.
18584 * gdk/win32/gdkinput-win32.h: New file
18586 * gdk/win32/gdkinputprivate.h: Remove.
18588 * gdk/win32/gdkpango-win32.c: New file.
18590 * gtk/makefile.mingw.in: New file
18592 * gtk/makefile.cygwin: Removed
18594 * gtk/Makefile.am: Update accordingly.
18596 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18597 made externally visible.
18599 * gtk/gtkmain.c: Use it.
18601 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18604 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18606 2000-07-24 Elliot Lee <sopwith@redhat.com>
18607 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18608 individual backends already.
18609 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18610 again. Yes, there really is a good reason for this, if you are using the gdkregion
18611 internals, and if you're not, why do you care?
18612 * gdk/gdkwindow.c: Fix inverted condition
18613 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18614 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18615 * gtk/gtkrange.c: Redraw trough when moving.
18616 * gtk/gtktypeutils.c: Fix warning by adding const cast.
18617 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18619 2000-07-23 Tor Lillqvist <tml@iki.fi>
18621 * configure.in: Check for mkstemp and sigsetjmp. Output
18622 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18624 More work on GDK for Win32. Still in an intermediate state.
18626 * gdk/makefile.cygwin
18627 * gdk/win32/makefile.cygwin: Removed.
18629 * gdk/makefile.mingw.in
18630 * gdk/win32/makefile.mingw.in: New files.
18633 * gdk/win32/Makefile.am: Generate and distribute them.
18635 * gdk/win32/gdkwindow-win32.h
18636 * gdk/win32/gdkdrawable-win32.h
18637 * gdk/win32/gdkpixmap-win32.h: New files.
18639 * gdk/win32/gdkcolor-win32.c
18640 * gdk/win32/gdkcursor-win32.c
18641 * gdk/win32/gdkdrawable-win32.c
18642 * gdk/win32/gdkgc-win32.c
18643 * gdk/win32/gdkimage-win32.c
18644 * gdk/win32/gdkprivate-win32.h
18645 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18646 Rename fields and variables called xcursor, xid, etc (these names
18647 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18649 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
18651 * gtk/gtkentry.[ch]: Fix some problems with vertical
18654 * gtk/gtkentry.c (gtk_entry_find_position): Fix
18655 char/byte confusion.
18657 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
18659 * gtk/gtktextview.c (changed_handler): Fix bug where
18660 redraw wasn't being done properly when height of
18661 dirty region changed.
18663 * demos/Makefile.am: Remove various references to
18666 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
18668 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
18669 PangoAttrShape to reserve space for pixmaps, add
18670 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
18671 in the display functions.
18673 * gtk/testgtk.c (create_layout): Set some more exotic
18674 scrolled window options
18676 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
18677 Add function to set the shadow type of a window, to allow
18678 putting a shadow around widgets such as GtkLayout or GnomeCanvas
18679 which don't draw their own frame.
18681 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
18683 * docs/tutorial/package-db-tutorial.sh: New file for
18684 packaging DocBook format tutorial
18686 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
18688 * docs/tutorial/gtk-tut.sgml: Minor updates
18690 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
18692 2000-07-19 Tor Lillqvist <tml@iki.fi>
18694 * gtk/gtksignal.c: Fix C++ comment.
18696 * gtk/gtkimmulticontext.c
18697 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
18698 don't return value from void functions.
18700 * gtk/gtk.def: Add gtk_rc_style_unref.
18702 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
18704 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
18705 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
18706 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
18707 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
18708 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
18709 gtk/gtktypeutils.h: Include files outside of the extern "C"
18710 block. Makes some C++ compiler happy. Reported by Denis Vakatov
18711 <vakatov@peony.nlm.nih.gov>.
18713 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
18715 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
18716 Completes first pass. Hurrah!
18718 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
18720 * docs/tutorial/gtk-tut.sgml: More clean ups.
18722 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
18724 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
18725 paint the background of the text area which was accidentally
18726 removed at some point.
18728 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
18730 - Move most of the functionality from the theme vtable
18731 into GtkRcStyleClass and GtkStyleClass. The moved
18732 vtable functions were changed a bit in the move to
18733 work better in their new home.
18735 - Get rid of the engine and engine_data fields from
18736 GtkRcStyle and GtkStyle; instead the theme
18737 engine derives theme-specific subclasses of GtkRcStyle
18740 - Add extra dlsym() found entry point to themes,
18741 theme_create_rc_style().
18743 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
18744 in gtk_style_real_copy.
18746 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
18747 to register a type associated with an engine. (The engine
18748 won't be unloaded as there is an instance of the type.)
18751 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
18753 * docs/tutorial/gtk-tut.sgml: Clean ups.
18755 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
18757 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
18758 of cleaning up to do.
18760 2000-07-15 Tor Lillqvist <tml@iki.fi>
18762 * gdk/testgdk.c: New file, quick hack to test backends for
18763 pixel-by-pixel correctness of the most simple graphic operations.
18765 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
18767 * Really release 1.3.1
18769 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
18772 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
18776 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
18778 * gtk/gtktextlayout.c: use FALSE for size_only most
18779 of the time when calling gtk_text_layout_get_line_display()
18780 to avoid causing double reshapes when a redraw follows
18783 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
18785 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
18786 appropriate region and gdk_window_process_updates() so trough
18787 updating doesn't lag behind the window being scrolled.
18789 * gdk/gdkgc.c: Make parent_class pointer static.
18791 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
18793 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
18794 include <string.h>.
18796 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
18797 cut-and-paste error in computing memory offset for 4 channels.
18799 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
18801 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
18802 gtk_rc_append_default_pixmap_path(), since it wasn't
18803 adding an interesting path and we don't have a meaningful
18804 default for this value.
18806 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
18808 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
18809 gtk-config to gtk-config-2.0 move gtk_.m4 to
18812 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18813 gdk/Makefile.am demos/Makefile.am: Change
18814 library names to libgtk-1.3.la, etc, so that we
18815 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
18817 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18818 gdk/Makefile.am gdk/x11/Makfile.am
18819 Move include files into /usr/include/gtk-2.0,
18820 /usr/lib/gtk-2.0/include/
18822 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
18823 gtk/gtkintl.h: Change package for gettext from
18824 gtk+ to gtk20. Put hack in autogen.sh to modify
18825 po/Makefile.in.in after gettextize to make this
18828 * gtk+.spec: Some updates, not tested.
18830 * gdk-pixbuf/Makefile.am: Move loaders into
18831 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
18833 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
18834 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
18835 to THEMENAME/gtk-2.0/. Move engine directory to
18836 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
18838 2000-07-12 Tor Lillqvist <tml@iki.fi>
18840 Win32 changes, still doesn't build though.
18842 * gdk/makefile.cygwin
18843 * gdk/win32/makefile.cygwin
18844 * gtk/makefile.cygwin: Updates.
18846 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
18847 default values for fg and bg pixel as X11 does (0 and 1), not
18848 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
18849 Use 0 for pen width by default (treated as 1 anyway later, but for
18850 apps that might check the value in the GdkGC).
18851 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
18852 interface to gdk_gc_predraw and _postdraw.
18854 * gdk/win32/gdkwin32.h
18855 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
18857 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
18858 extraneous semicolon.
18860 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
18862 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
18863 not the Win32 bitspixel value.
18865 * gdk/win32/gdkcc-win32.c:
18866 * gdk/win32/gdkcolor-win32.c
18867 * gdk/win32/gdkprivate-win32.h
18868 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
18869 GDK object structure.
18871 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
18873 * docs/tutorial/gtk_tut_12.es.sgml (name):
18874 * docs/tutorial/gtk_tut_it.sgml (name):
18875 * docs/tutorial/gtk_tut_fr.sgml (name):
18876 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
18877 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
18879 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
18881 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
18884 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
18886 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
18887 a bug here, never been here and never fixed anything ;(
18888 (don't segfault if tree->root_tree is NULL, which happens prior
18889 to widget realization, but puke instead).
18891 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
18893 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18894 add the necessary tokens.
18896 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18897 (gtk_rc_style_to_style): copy thicknesses.
18898 (gtk_rc_init_style): apply thicknesses.
18899 (gtk_rc_parse_style): parse xthickness and ythickness.
18901 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18903 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
18905 (_gdk_windowing_window_init):
18906 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
18907 (gdk_pixmap_create_from_data):
18908 (gdk_bitmap_create_from_data):
18910 * gdk/x11/gdkimage-x11.c (gdk_image_get):
18912 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
18913 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
18914 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18915 (gdk_colormap_get_system):
18916 (gdk_colormap_new):
18917 * gdk/gdkwindow.c (gdk_window_init):
18918 * gtk/gtkstyle.c (gtk_style_new):
18919 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18920 * gdk/gdkpixmap.c (gdk_pixmap_init):
18921 * gtk/gtkrc.c (gtk_rc_style_new):
18922 use g_object_new() instead of g_type_create_instance() which
18923 is a private function for fundamental type implementations.
18925 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
18927 * configure.in: Add check for db2html
18929 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
18931 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
18932 hack to set glib_debug_objects based on gtk_debug_flags.
18934 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
18936 * INSTALL.in: Update the Prerequisites section.
18938 * Makefile.am demos/Makefile.am docs/Makefile.am
18939 docs/tutorial/Makefile.am gdk/x11/Makefile.am
18940 gdk/linux-fb/Makefile.am: Dist fixes
18942 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
18944 * NEWS: 10,000 foot view of 1.3.1 changes.
18946 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
18948 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18949 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18950 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18951 gdk/x11/gdkmain-x11.c:
18953 Patch from George Lebl to add a GdkGrabStatus enumeration to use
18954 as a return value of gdk_*_grab(). Previously, we just
18955 returned the X11 values directly.
18957 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
18959 * gdk/x11/Makefile.am: Patch from George Lebl to
18960 install all the headers in the right place.
18962 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
18964 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18965 initial conversion to DocBook.
18967 2000-07-04 Tor Lillqvist <tml@iki.fi>
18969 * README.win32: Improve a bit.
18971 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18972 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18973 Alt+0nnn on the numpad (used to enter characters by numeric code
18974 from current DOS or ANSI codepage) working correctly, as in other
18977 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18978 same argument validity tests as in X11 version.
18979 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18981 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18982 definitions in case missing from headers.
18984 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18985 destroy the window-specific cursor.
18986 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18987 calling GetModuleHandle(NULL).
18988 (gdk_window_set_cursor): Reworked to always copy the passed cursor
18989 with CopyCursor before setting it as the window-specific
18990 cursor. It is OK for the caller to destroy the GdkCursor (and thus
18991 also its Windows cursor) after calling this function. Destroy any
18992 previous window-specific cursor.
18994 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
18996 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18997 font charset is iso8859-1, not iso-8859-1.
18999 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
19001 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
19002 Use g_get_charset() instead of g_get_codeset().
19004 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
19005 Comment out some strdup'ing functions to keep timj
19006 happy until we finish fighting this out.
19008 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
19010 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
19011 <= width or height.
19013 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
19014 from 1.2 for parent/child states.
19016 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
19019 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
19020 event structures, replace with a generic axes field. Replace
19021 deviceid/sourec with GdkDevice *device.
19023 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
19024 to extract particular axis use value from event. (Also
19025 can be used for normal X/Y.)
19027 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
19028 allow for arbitrary number of axes, namespace everything
19029 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
19032 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
19033 Get rid of the gdk_input_vtable setup if favor of simply
19034 defining the functions in gdkinput-none/gxi/xfree.c in
19035 a similar fashion to the way that the port structure is
19038 * gtk/gtkdnd.c: Fix fields of synthesized button press event
19039 for new event structures.
19041 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
19042 new device interfaces.
19044 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
19046 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
19047 set the initial text.
19049 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
19050 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
19051 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
19052 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
19054 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19055 pango_layout_set_font_description to simplify.
19057 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
19059 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19060 pango_layout_set_font_description to simplify.
19062 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
19064 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
19065 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
19066 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
19068 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
19069 PANGO_PIXELS() macro.
19071 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
19073 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
19074 that returns a PangoContext owned by the widget and updated to
19075 match future changes in the widget. Also, make
19076 gtk_widget_create_pango_layout() use this context. If we ever
19077 add a ::changed signal to PangoContext, this will make things
19078 much more convenient.
19080 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
19081 in the appropriate places instead of destroying the layouts and
19084 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
19085 in a few strategic places.
19087 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
19089 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
19090 gtk_widget_size_request() on reparented child, if one. Otherwise,
19091 queue_resize() on the child never results in it getting size-requested
19094 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
19095 in option menus, so that (with luck) people won't copy it into
19096 their apps in the future.
19098 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
19099 to gtk_option_menu_calc_size. This isn't perfect, but should fix
19100 a lot of problems with changing the size of the menu's menu
19101 items after adding it to the option menu.
19103 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
19105 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
19106 the text direction for a widget changes.
19108 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
19109 ::direction_changed to get rid of various hacks.
19111 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
19113 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
19116 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
19118 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
19119 flag to the structure. Do not call XFreePixmap on pixmaps created
19120 by gdk_pixmap_foreign_new().
19122 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
19124 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
19125 value using GdkRGB functionality given GdkColormap and GdkColor.
19126 (name not final, waiting for inspiration.)
19128 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
19129 set the foreground/background of a GC using the GC's colormap
19130 and GdkRGB. (name not final, waiting for inspiration.)
19132 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
19133 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
19135 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
19136 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
19137 purely a function of the corresponding colormap. Make
19138 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
19140 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
19141 gdk_pixbuf_*create_from_xpm_* in terms of
19142 gdk_pixbuf_new_from_xpm_data(), move into platform independent
19145 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
19146 advantage of the new draw_rgb_32_image_dithalign.
19148 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
19150 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
19151 on each created GC.
19153 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
19155 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
19156 which we initialize from the drawable when the GC is created,
19157 if the drawable has a colormap.
19159 * gdk/x11/gdkgc-x11.c: include string.h for memset.
19161 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
19163 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
19165 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
19167 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
19168 actually returning expose events, make sure to set
19169 the count field properly.
19171 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
19172 accidentally reintroced bug which always cleared
19173 the graphics_exposures value.
19175 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
19177 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
19179 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
19181 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
19183 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
19185 * docs/faq/gtk-faq.sgml: Start of Section 6.
19187 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
19189 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
19191 (Fixes problem with drawing childless frames. Pointed out
19192 by and a first patch from Anders)
19194 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
19195 compute a child_allocation, even if we don't have a child.
19197 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
19198 Always chain to the parent's impl, even if we don't have a child.
19200 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
19202 * gdk/gdkrgb.c: If possible, create only a single shm segment and
19203 use multiple parts of it instead of creating a bunch of separate
19204 segments, since the maximum number of segments per system is not
19205 large. (This might be worth backporting to GTK+-1.2.x if we make a
19208 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
19209 structure in preparation for per-colormap GdkRGB.
19211 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
19212 to False when we get EINVAL from shmget so that the caller of
19213 gdk_image_new can retry with a smaller segment size.
19215 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
19217 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
19219 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
19221 * configure.in: make the current version number 1.3.1 (binary age 0,
19224 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
19225 gtkcompat.h is all we want.
19227 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
19228 GLib primitive types. fixed g_type_register_fundamental() argument
19231 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
19234 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
19235 object code cleanup, comment trigraph fixes, etc...
19237 2000-06-23 Havoc Pennington <hp@redhat.com>
19239 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
19240 instead of making up a bogus name for first_para_mark
19242 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
19245 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
19247 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
19249 2000-06-21 Havoc Pennington <hp@pobox.com>
19251 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
19252 we didn't check window->bg_pixmap != GDK_NO_BG.
19254 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
19257 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
19259 * docs/faq/gtk-faq.sgm: Move file to here.
19260 TODO: Update Makfile.am
19262 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
19264 * docs/gtk-faq.sgm: Add Section 2
19266 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
19268 * docs/gtk-faq.sgm: New file. Start of DocBook
19269 version of the FAQ.
19271 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
19273 * configure.in (GDK_PIXBUF_MAJOR): Define version
19274 numbers for GDK_PIXBUF_*, as they get substituted
19275 into a header file. Need to consider versioning
19276 for gdk-pixbuf more carefully later.
19278 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
19280 Work with srcdir != builddir.
19281 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
19282 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
19283 * demos/testpixbuf.c: Likewise.
19284 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
19285 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
19287 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
19289 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
19291 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
19293 * TODO.xml: Change 1.4 version numbers to 2.0.
19295 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
19297 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
19298 fixups to GTK+ standard.
19300 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
19302 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
19305 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
19306 fixups for GObject.
19308 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
19309 gdk-pixbuf with GDK dependencies moved into GDK.
19311 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
19312 move gdk-pixbuf-loader here until GObject has signals.
19314 * demos/: New directory of demos. Move demos from
19317 * demos/pixbuf-init.c: Small bit of code to check for
19318 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
19319 set GDK_PIXBUF_MODULEDIR appropriately.
19321 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
19322 define which no longer makes sense.
19324 2000-06-21 Havoc Pennington <hp@redhat.com>
19326 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
19327 gtk_get_default_language
19329 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
19330 new function to get the default language
19332 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
19333 s/gtk_text_view_style_values/gtk_text_style_values/
19335 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
19336 Add a "language" field to tags.
19338 (gtk_text_tag_set_arg): Fix bug in setting
19339 "bg_full_height_set" tag.
19341 2000-06-21 Havoc Pennington <hp@redhat.com>
19343 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
19346 * gtk/gtktexttypes.c: Remove UTF functions, use glib
19347 stuff instead when possible.
19349 * gtk/gtktexttypes.h: Delete some unused constants
19351 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
19352 testtextbuffer.c: use glib instead of custom unicode routines
19354 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
19356 * docs/es/: Removed mistakenly added generated sgml
19358 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
19359 Remove outdated info files.
19361 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
19362 Moved tutorial files into subdir
19364 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
19367 * docs/man/gtk_button.pod: Remove. (contents will be
19368 integrated into gtk-reference button page.)
19370 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
19371 docs/faq/Makefile.am: Adjust for new organization
19373 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
19375 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
19376 not $(MKINSTALLDIRS)
19378 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
19380 * gtk/testgtk.c (create_text): Finish the job Elliot started
19381 of removing font setting test for text widget. (Since text widget
19382 and GdkFont are not deprecated, and cause portability problems.)
19384 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
19386 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
19387 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
19388 Remove use of libunicode in favor of new GLib functions.
19390 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
19391 nano-x, framebuffer. The X11 include is just a hack until we get
19392 the necessary functions in gdkcolor.h, so there is no reason to
19393 add other includes of platforms.
19395 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
19396 window bigger than the screen change.
19398 * gtk/testgtk.c: Revert some random changes from Elliot
19399 that had no particular point and were causing testgtkrc
19400 not to function correctly.
19402 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
19403 because GdkSegment and GdkRegionBox have the same fields,
19404 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
19405 results in clearer code.
19407 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
19408 gdk_input_translate_coordinates): Fix missed GdkObjectification
19410 2000-06-18 Elliot Lee <sopwith@redhat.com>
19412 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
19413 * gtk/gtk{plug,socket}.h: Missed commits from previous.
19415 2000-06-20 Havoc Pennington <hp@redhat.com>
19417 * modules/linux-fb/Makefile.am: Make this compile
19418 without framebuffer enabled
19420 * gdk/linux-fb/Makefile.am: Add conditional to not build
19421 framebuffer unless specified in configure
19423 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
19424 the size of the target instead of source if -1 was passed for
19427 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
19428 width/height confusion.
19430 2000-06-19 Havoc Pennington <hp@redhat.com>
19432 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
19433 GDK_DRAWABLE_XID. In the future, we probably want to make it
19434 faster with G_DISABLE_CHECKS turned on.
19436 2000-06-14 Havoc Pennington <hp@redhat.com>
19438 * gdk/Makefile.am: add gdkpixmap.c
19440 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
19441 s/gdk_image_init/_gdk_windowing_image_init
19443 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
19446 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
19448 * gdk/gdkcompat.h: remove GdkWindowType compat, since
19449 GdkWindowType is now non-deprecated;
19450 change gdk_window_get_type() compat to be
19451 gdk_window_get_window_type().
19453 * gdk/gdkdnd.h: make GdkDragContext a GObject.
19455 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
19456 virtual GObject. Make all functions call into the vtable.
19457 Move gdk_image_put() guts in here. Remove GdkDrawableType
19458 and gdk_drawable_get_type(), these are now GdkWindow-specific.
19459 draw_image, get_depth, get_size, set_colormap, get_colormap,
19460 get_visual added to the vtable.
19462 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
19463 GObject. Virtualize everything.
19464 (gdk_gc_new_with_values): remove check for destroyed window,
19465 because now GdkWindow::create_gc will check this.
19466 (gdk_gc_set_values): New function to set GC values, this
19467 was already implemented but wasn't in the header
19469 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
19471 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
19472 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
19473 remove _gdk_window_class; add _gdk_window_impl_get_type() and
19474 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
19475 _gdk_windowing_window_init, rename gdk_image_init to
19476 _gdk_windowing_image_init.
19478 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
19479 (gdk_draw_layout): Remove check for destroyed window,
19480 because all the drawable methods already check it.
19482 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
19483 Add gdkpixmap.c which contains implementation of GdkDrawable
19484 virtual table (by chaining to a platform-specific implementation
19487 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
19488 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
19489 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
19490 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
19491 GdkColormapPrivate.
19493 * gdk/gdktypes.h: #include <glib-object.h>
19495 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
19496 Move most functionality to platform-specific implementation
19497 object. GdkWindow itself now handles the backing store, then
19498 chains to the platform-specific implementation.
19499 (gdk_window_get_window_type): return GdkWindowType of the window.
19500 (gdk_window_peek_children): New routine, returns the children of
19502 (gdk_window_get_children): Was in X11-specific code and did
19503 XQueryTree. Changed to simply return a copy of window->children;
19504 so it can go in cross-platform code.
19506 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
19508 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
19509 GdkColormap; just changed to use the new private data instead
19510 of casting to GdkColormapPrivate.
19512 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
19515 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
19516 (private data member in the GObject).
19517 (xdnd_manager_source_filter): Function had broken
19518 error handling, fix it (use gdk_error_trap_push).
19520 * gdk/x11/gdkdrawable-x11.c: This file now implements
19521 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
19522 base class is purely for the convenience of the X port,
19523 and not part of the interface to cross-platform GDK.
19525 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
19527 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
19528 specific to X, and returned by the create_gc virtual method
19529 of GdkDrawableImplX11.
19530 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
19531 rather than gchar, this was also changed in the GdkGC vtable.
19532 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19533 mask is 0, return immediately, instead of checking every flag.
19534 This is faster, and keeps us from segfaulting if values is NULL
19535 and the mask contains some nonzero flags.
19537 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19540 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
19541 GdkWindowPrivate is gone.
19543 * gdk/x11/gdkim-x11.c: rename things that got renamed.
19545 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
19546 remove the image_put stuff that got transferred to GdkDrawable.
19548 * gdk/x11/gdkinput.c: renamings
19550 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19552 * gdk/x11/gdkpixmap-x11.c: GObject conversion
19554 * gdk/x11/gdkprivate-x11.h: indentation fixes
19556 * gdk/x11/gdkproperty-x11.c: renamings
19558 * gdk/x11/gdkselection-x11.c: renamings
19560 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
19561 implements the platform-specific "impl" object.
19562 Moved gdk_window_get_children to gdk/gdkwindow.c
19564 * gdk/x11/gdkx.h: Remove all the private structs and private datas
19565 that no longer exist. Add declaration of GdkGCX11 object here.
19566 Fix all the macros to still work.
19568 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19569 GdkDragContext from the boxed types since they are now GObjects.
19571 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19572 moved xthickness/ythickness into the instance. GtkStyleClass
19573 functions are now in the standard vtable for GtkStyle, so you have
19574 to create a GObject subclass to write a theme engine.
19575 (gtk_style_copy): fixed a leaked PangoFontDescription
19576 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19577 can be the standard GObject function.
19580 s/style->klass->[xy]thickness/style->[xy]thickness
19581 s/pango_layout_unref/g_object_unref/
19583 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19585 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
19586 accessing GDK internals.
19588 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
19589 accessing GDK internals.
19591 2000-06-18 Elliot Lee <sopwith@redhat.com>
19593 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19595 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19596 problem by calculating event position relative to the trough
19597 rather than the slider.
19598 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19600 * gdk/gdkgc.h: Add GDK_NOR.
19602 * configure.in, Makefile.am: Add modules top level dir
19603 * configure.in: Only use pangox library if building x11 target.
19604 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19606 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19608 * gtk/gtkcolorsel.c: Change private class member to be named
19609 private_data throughout the file.
19611 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19612 private_data to avoid clashing with keyword.
19614 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19616 * gdk/gdkdnd.h: Add comment to remove warning.
19618 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
19620 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19621 Byelorussian language; changed the Makefile and file names
19624 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
19626 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19627 rather than gdk_window_hide; this makes things work
19628 correctly if the window is programmatically hidden while
19631 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
19633 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19634 cut and paste typo where wrong pixmap was being
19635 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19637 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
19639 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19640 Add helper function to compute format / bytes
19641 relationship. Use in a couple places to fix up
19642 errors which assume 8 * format.
19644 * gtk/gtkselection.c (gtk_selection_request): Use 32
19645 rather than 8 * sizeof (GdkAtom), to work correctly
19648 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
19650 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19652 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19655 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19656 checking macros return NULL since the function has a return value.
19658 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
19660 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19661 GTK+ from building at all.
19663 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
19665 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
19667 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
19668 gtk/Makefile.am: make it possible to configure gtk for different
19669 targets on the same platform. The library name is now
19670 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
19671 flag. Only the x11 target compiles right now.
19672 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
19673 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
19674 * gdk/nanox/gdk*generic*: delete generic region code.
19675 * gdk/linux-fb/gdk*generic*: delete generic region code.
19676 * README.nanox: update information.
19678 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
19680 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
19681 prepend not append. (Pointed out by Brett Hall.)
19683 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
19685 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
19687 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
19689 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
19690 need this later, and this makes sure that the atexit for
19691 glib gets called after that for GDK, so atexits are
19692 properly ordered for object leak checking.
19694 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
19696 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
19697 pango_x_shutdown_display()
19699 * gtk/simple.c (main): Close window on destroy.
19701 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
19703 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
19704 to treat initial creation different from setting with
19705 regards to the graphics-exposures parameter, so add a parameter
19706 indicating whether this is initial or not.
19708 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
19710 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
19711 to sort of work by adding an extra return_exposes arg
19712 to gdk_event_translate() - it might be better to simply
19713 deprecate the function altogether and force people to rewrite
19714 without it. gdk_window_scroll() handles most of it, and where
19715 gdk_window_scroll() doesn't work, simply redrawing more does.
19717 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
19720 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
19722 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
19723 bunch of pretty much useless /* Print debugging info */ comments
19724 which had drifted away from the code they were commenting.
19726 2000-06-02 Havoc Pennington <hp@pobox.com>
19728 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
19729 is in working order.
19731 * gtk/testtext.c: Change to reflect anonymous mark API
19733 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
19735 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
19736 field, which was unused.
19738 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
19741 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
19743 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
19744 flag on the insertion point and selection bound
19746 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
19747 make mark-manipulation functions take a GtkTextMark* instead of a
19750 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
19751 GtkTextMarkBody; will be used to detect attempts to delete
19752 the permanent marks (insert and selection bound)
19754 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
19756 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
19758 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
19761 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
19762 Honor DOUBLE_BUFFRED_FLAG
19764 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
19765 function to set the DOUBLE_BUFFERED flag.
19767 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
19768 or not exposes done on the widget should be double-buffered.
19770 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
19771 to be what would be expected. (Fixes problem with a
19772 g_return_if_fail() validating a TextDirection enumeration)
19774 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
19776 * gtk/gtkwidget.c: Remove all references to
19777 offscreen flag which was no longer used.
19779 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
19781 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
19782 for non-null label_widget->parent.
19784 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
19785 which no longer was used.
19787 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
19789 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
19790 for null arguments.
19792 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
19793 check for destroyed windows.
19795 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
19797 * gtk/gtkimmulticontext.c: Add a finalize method and unref
19798 the slave context there.
19800 * gtk/gtkinvisible.[ch]: Make reference counting behavior
19801 identical to GtkWindow.
19803 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
19805 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
19806 pangox to here, so we can write them independent of rendering
19807 system, using GDK primitives.
19809 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
19810 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
19811 since we have a rendering-system independent implementation in
19812 terms of draw_glyphs().
19814 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
19815 function to render a single line.
19817 * gdk/x11/gdkpango.c: Move the guts of this file mostly
19818 into ../gdkpango.c, which simplifies things, since we
19819 don't have to deal with raw X gc's.
19821 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
19823 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
19824 get the logical attributes for a given GtkTextLine.
19826 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
19828 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
19829 g_locale_get_codeset() to g_get_codeset() change.
19831 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
19833 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
19836 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
19839 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
19840 redoing (vastly simplifying) for Pango. Still needs quite
19841 a bit of work. (Size selection is currently poor. List of
19842 predefined sizes is not a good idea, since all of these
19843 sizes won't necessarily be distinct.)
19845 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
19847 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
19848 CODESET results for LANG=C.
19850 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
19852 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
19853 which takes a stringized pango font description;
19854 ignore the older 'font' and 'fontset' declarations.
19856 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
19857 field with a GdkFont derived via gdk_font_from_description(),
19858 for compatibility. (Should we just remove it entirely?
19859 Probably too much compatibility breakage, but people
19860 should be migrating to the new Pango stuff as quickly
19863 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
19865 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
19867 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
19869 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
19870 redoing; there are some bugs in size allocation right
19871 now, the semi-existant distinction between header / day
19872 fonts was removed, but, with Pango, could actually
19873 be made functional in a nice way.
19875 * gtk/testcalender: Move calender from examples into this
19876 directory as a test program. (We really need to restrcture
19877 testgtk into a whole directory full of tests for every
19878 widget or functionality group, separated into multiple .c
19881 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
19883 * gtk/testgtk.c (file_exists): Fix stupid typo that
19884 was keeping RC file from being loaded.
19886 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
19889 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
19891 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
19892 Add function to load a GdkFont from a PangoFontDescription.
19894 2000-05-29 Tor Lillqvist <tml@iki.fi>
19896 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19897 variable should be of type GdkEventPrivate.
19899 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
19901 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19902 to have any widget for the label, use a GtkLabel widget
19903 to display the text. (Based partially on a patch from
19906 (Quite a bit of code reorganization - strip 90% of the
19907 guts out of gtkaspectframe and add a single virtual
19908 func to GtkFrameClass - compute_child_allocation.)
19910 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
19912 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19913 (Removed clist->row_center_offset field because caching
19914 it wasn't saving time or code, added private function
19915 _gtk_clist_create_cell_layout()).
19917 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
19919 * gtk/gtkaccellabel.c: Pangoized.
19921 * gtk/[hv]ruler.c: Pangoized
19923 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
19925 * gtk/gtkfilesel.c (gtk_file_selection_init):
19926 Use gtk_clist_set_column_auto_resize() to remove need
19927 need for manual column width computations.
19929 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
19931 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
19932 ensuring Pango correctness, and considerably simplifying the
19935 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19937 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19938 getting of numbers of lines.
19940 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19941 to the actual requested width of the lable, not to the wrap
19944 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19946 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19947 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19949 * gtk/gtktextview.c: Fix structure inheritance.
19951 * gtk/gtkprogressbar.c: Pangoize.
19953 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
19955 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19958 * gtk/gtktextlayout.c (find_display_line_above): Fixed
19959 bug with computing line tops.
19961 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19963 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
19965 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19966 and y_offset coordinates to do what we need now. (The offset between
19967 buffer and layout coordinates has been reintroduced, but is a
19968 bit different than before.)
19970 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19971 handle the adjustments ourselves, and scroll as necessary using
19972 the new gdk_window_scroll().
19974 The advantage of this is that when we are incrementally revalidating,
19975 we are essentially rearranging things around the visible portion
19976 of the screen. With the old setup, the visible portion of the
19977 screen was moved around in the layout, so scrolling and redrawing
19978 to track that caused jumping of the display. Since we now
19979 control the scrolling ourselves, we can suppress this and
19980 only redraw when things actually change.
19982 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
19984 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19985 the region not just redisplay it after-all, since we store the
19986 cursors in the LineDisplay. (Ugly interactions here between
19987 GtkLayout and GtkTextBTree here.)
19989 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19991 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
19993 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
19994 Added function to scroll contents of a window while keeping the
19995 window constant. Works by XCopyArea or guffaw-scrolling depending
19996 on the details of how the window is set up. (guffaw-scrolling
19997 still needs to be filled in.)
19999 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
20001 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
20002 move the debugging that was tied to a global variable
20005 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
20007 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
20008 validated flag, in line data instead of setting height/width to
20009 -1. This allows us to perform operations with partially invalid
20010 buffer (using the old size for invalid lines) and thus to do
20011 incremental vaidation. Keep height/width aggregates up to date
20012 when deleting text and rebalancing the tree.
20014 * gtk/gtktextbtree.[ch]: Add functions validate a line
20015 (gtk_text_btree_validate_line), and to validate up
20016 to a number of pixels (gtk_text_btree_validate).
20018 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
20019 that indicates that something is changed and a revalidation
20020 pass is needed. Change ::need_repaint to ::changed, and
20021 make it take old and new yranges instead of a rectangle.
20023 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
20024 the line_data_destroy() function from
20025 gtk_text_btree_add_view() to a virtual function in
20028 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
20029 since we are handling partial repaints in a different fashion
20032 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
20033 of the selection instead of queueing a repaint on the
20036 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
20037 get_selection_bounds() down to btree, make the function
20038 in buffer a wrapper around the btree function.
20040 * gtk/gtktextlayout.[ch]: Add functions to check if the
20041 layout is valid and to recompute either a range of pixels
20042 aroudn a line or a certain total number of pixels.
20044 * gtk/gtktextlayout.[ch]: Cache a single line display;
20045 now that we only redraw the needed portions, the hit rate
20046 for this cache is quite high.
20048 * gtk/gtktextview.[ch]: Keep track of the first paragraph
20049 on the screen so that when re-laying-out the buffer, we can
20050 keep the same place. This requires connecting to ::value_changed
20053 * gtk/gtktextview.[ch]: Add idle functions to revalidate
20054 the buffer after we receive an ::invalidated signal.
20056 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
20058 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
20059 to max of allocation and layout size, not just to the
20062 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
20063 Invalidate window so it gets redrawn properly.
20065 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
20066 to mean the entire window.
20068 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
20069 into public header.
20071 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
20073 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
20074 to get the name of a mark.
20076 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
20077 to find the paragraph from a y position.
20079 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
20081 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
20082 nodes have width/height >= 0, not > 0.
20084 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
20086 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
20087 Add a size_only flag, so when we only need the size, we don't create
20088 useless appearance attributes.
20090 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
20091 duplicate setting of font description.
20093 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
20095 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
20097 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
20098 EXTRA_DIST. It does not work well when the file that
20099 everything depends on is not in the tarball.
20101 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
20103 * gtk/testgtk.c: Some hacks and fixes so that it basically
20104 works when not sitting in the GTK+ build tree.
20106 2000-05-03 Havoc Pennington <hp@redhat.com>
20108 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
20109 Properly determine the ordering of the tag root and the current
20110 line within the tree. Previous algorithm only worked if the tag
20111 root's immediate parent was the common root of both the current
20112 line and the tag root.
20114 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
20116 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
20119 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
20120 the widget text directional dynamically.
20122 * gtk/gtktextview.[ch]: Added functions to get and set default
20125 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
20127 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
20128 in cursor location computation.
20130 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
20132 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
20133 vadjusment values properly when layout gets smaller.
20135 * gtk/gtktextview.c (need_repaint_handler): Areas being
20136 passed in are far completely inaccurate, and sometimes
20137 too small, so, for now, just queue a redraw on the
20138 whole visible region.
20140 2000-04-25 Havoc Pennington <hp@redhat.com>
20142 * gtk/gtktextbtree.c (summary_destroy): new function to
20143 destroy tag summary nodes
20144 (gtk_text_line_next_could_contain_tag): this function was
20145 totally broken if the line passed in wasn't below the tag
20147 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
20148 "wildcard" case, we have to do a linear scan. Blah.
20149 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
20150 we have to do the linear scan
20151 (tag_removed_cb): When a tag is removed from the tag table,
20152 remove the GtkTextTagInfo node from the btree.
20153 (gtk_text_btree_spew): Implement the spew function, for
20154 our debugging pleasure.
20156 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
20158 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
20159 a problem with referring to the wrong buffer.
20161 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
20163 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
20164 font description to gtk_style_new() - otherwise things
20165 don't work without a .gtkrc file.
20167 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
20168 tags table if we create it ourself, too.
20170 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
20171 it was conflicting with XKB modifiers.
20173 * gtk/gtktextview.[ch]: Add simple support for
20176 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
20178 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
20179 with deletion from last commit.
20181 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
20183 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
20184 in the context from the current locale.
20186 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
20187 context, not hardcoded value.
20189 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
20192 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
20194 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
20195 attributes - that doesn't handle partial-glyph selection
20196 properly. Instead use new pango_layout_line_get_x_ranges()
20197 functionality to draw the selection.
20199 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
20200 now properly handles out-of-range coordinates.
20202 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
20204 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
20207 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
20208 for paragraphs opposite to the base direction of the widget.
20210 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
20212 * gtk/gtktextlayout.c: Don't split segments on marks, since that
20213 causes Arabic words to reshape as you cursor through.
20215 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
20216 cursor position when moving vertically with the arrow keys and
20217 scrolling with page-up/page-down. (Arrow keys save only the X,
20218 scrolling saves both X and Y.)
20220 This means you can line-up / line-down or page-up / page-down
20221 without losing your place, and also that moving vertically
20222 with the cursor keys keeps the same X position, not the same
20225 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
20226 arrow keys move by display lines, not paragraphs.
20228 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
20230 * gtk/gtklayout.c: Make sure that the bin window is at least
20231 as big as the allocation. (Should we also make sure that the
20232 bin window is big enough to completely cover widget->window?)
20234 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
20235 function to get the onscreen rectangle.
20237 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
20238 for offsets in window coordinates.
20240 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
20242 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
20245 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
20246 from the widget direction.
20248 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
20249 Add a "direction" attribute.
20251 * gtk/gtktextview.c: global s/tkxt/text_view/.
20253 * gtk/testtext.c: Added long block of text in Arabic, to test out
20254 the direction attributes. (Some problems with the shaping system
20255 for arabic become obvious - like the fact the cursor splits words
20256 into unjoined pieces.)
20258 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
20260 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
20262 * gtk/gtktextlayout.c: Fix up alignment.
20264 * gtk/testtext.c: Add some tests for centering, wrapping.
20266 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
20268 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20269 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
20270 If we wrote GTK+-specific layout-render function this could just replace
20271 the draw_layout() operation in the vtable.
20273 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
20274 pango_layout_get_cursor_pos() and use that function.
20276 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
20277 is a non-static symbol.
20279 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
20280 with gtk_text_btree_find_line_by_y()
20282 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
20283 renderer that handles GtkTextAppearance attributes.
20285 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
20287 - Move the values in the style that don't affect geometry into a
20288 GtkTextAppearance structure.
20289 - Change underline to take a PangoUnderline and "font" a string
20290 representation of a font description
20291 - Add a "font_desc" attribute which takes a FontDescription structure.
20293 * gtk/gtktextlayout.[ch]:
20295 - Get rid of the display-line list per each line. Instead, we
20296 generate, on demand, a GtkTextLineDisplay structure which]
20297 contains a PangoLayout * and other necesary information
20298 (offsets, cursor locations) for displaying a paragraph.
20299 - Get rid of the code to wrap lines, create display chunks,
20300 etc. Instead, we just go through a paragraph and convert
20301 it into the necessary inputs to a PangoLayout.
20302 - Implement a new attribute type, GtkTextAttrAppearance. This
20303 holds a GtkTextAppearance, and is used to pass colors,
20304 stipple, etc, through from the layout to the display without
20305 having to use lots and lots of individual attributes.
20306 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
20307 in terms of PangoLayout functions.
20309 * gtk/gtktextview.c:
20311 - Handle passing the necessary PangoContext to the layout
20312 - Some fixups in painting to deal with the automatic backing store
20313 and offsetting of GTK+-1.4
20314 - Add a style_set handler so that the default style reacts
20315 properly to theme changes.
20317 * gtk/gtktext?*.[ch]: Random code-style fixes.
20319 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
20321 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
20323 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
20324 in original form preparatory to Pango-ization and gdkimcontext-ization.
20326 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
20328 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
20329 so that we can derive from gtkimcontext in language bindings properly.
20331 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
20333 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
20334 Add a compose table including (almost) all the compose combinations
20335 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
20336 data in the XIM implementation.
20338 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
20339 Moved functions to convert keyvalues from and to unicode here from
20340 the win32 port and made them public.
20342 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
20344 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
20346 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
20348 * gtk/gtkimcontext.[ch]: Base class for new input context system
20350 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
20351 the real input context implementation to be loaded from modules
20352 and switched on the fly.
20354 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
20355 context that just does direct keysymbol => unicode translation.
20357 * gtk/gtkentry.[ch]: Start switching editing over to using
20358 GtkInputContext. (No handling of preedit yet.)
20360 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
20362 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
20363 many substitutions. (klass should not be subsituted.)
20365 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
20367 * configure.in: Add checks for Pango
20369 * configure.in docs/Makefile.am: Add test for sgml2html
20370 and allow 'make dist' without building html, but print out
20371 warnings in that case. (For making snapshots)
20373 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
20374 Add Pango libraries and C flags
20376 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20377 Add function (gdk_draw_layout) to draw a pango layout.
20379 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
20380 for getting Pango contexts for GDK.
20382 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
20384 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
20387 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
20388 keysym => unicode translations. More languages can be added
20389 here, but real input-method support is needed.
20391 * docs/Changes-1.4.txt: Added note about entry behavior.
20393 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
20394 to set the reading direction for a widget and the global direction.
20395 Add test which allows toggling the global direction. Two private
20396 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
20398 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
20399 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
20401 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
20403 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
20404 underlining now handled by Pango.
20406 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
20407 to RCStyle and Style. (Having both this and the old font name and GdkFont
20410 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
20411 convenience functions for creating contexts and layouts for widgets.
20413 * gtk/testgtk.c: Enhance label tests with multilingual labels.
20415 2000-05-29 Jonathan Blandford <jrb@redhat.com>
20417 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
20418 titles to be active, even if they aren't visible.
20419 (gtk_clist_column_titles_passive): Ditto.
20421 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
20425 * gtktypeutils.h: Spelling/grammar fixes in comments.
20427 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
20429 * gdk/nanox/*.h: add missing header files.
20431 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
20433 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
20434 send_event to TRUE.
20435 (gtk_drawing_area_size): queue a resize.
20437 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
20439 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
20440 the handlers, also invalidate them. bug nailed down by Karl Nelson
20441 <kenelson@ece.ucdavis.edu>.
20443 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
20445 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
20446 "(nil)" foundries, patch from Grigorios Magklis.
20448 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
20449 on non-available fonts, based on a patch by Grigorios Magklis
20450 <maglis@cs.rochester.edu>.
20452 2000-05-18 Elliot Lee <sopwith@redhat.com>
20454 * gdk/x11/gdkregion-generic.c: If a region does not have any
20455 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
20456 instead of GDK_OVERLAP_RECTANGLE_IN.
20458 2000-05-17 Jonathan Blandford <jrb@redhat.com>
20460 * gtk/gtklayout.c (gtk_layout_map): Remove references to
20461 OFFSCREEN, as it is no longer necessary.
20463 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
20465 * gtk/gtkcolorsel.c: Patch from David Santiago
20466 <mrcooger@cyberverse.com> to change things so that the
20467 indicator of the active palette entry is done independently,
20468 not via the focus, since it should always be visible.
20470 2000-05-17 Tor Lillqvist <tml@iki.fi>
20472 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
20473 refcount leaks as in the X11 backend.
20475 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
20478 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
20479 backend. Add _gdk_windowing_window_destroy().
20481 * gtk/gtkcolorsel.c: Include correct backend-specific header.
20482 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
20483 either, but these probably do exist on nanox?)
20485 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
20486 which isn't necessarily defined by <math.h>.
20488 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
20489 ancestry past GtkObject.
20491 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
20494 * gtk/gtk.def: Update corresponding to recent changes.
20496 * gtk/makefile.{cygwin,msc}: Updates.
20498 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
20500 * docs/Changes-1.4.txt: A bit of editing.
20502 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
20503 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
20504 to clear the update area for the window, and clear it
20505 when hiding a window.
20507 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
20508 if window destroyed.
20510 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
20512 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
20513 gdk_window_destroy() to the generic code, since there was a lot of
20514 window-system-independent logic it in. Add a function:
20516 _gdk_window_destroy()
20518 to the internal API to destroy a window without unreferencing it.
20521 _gdk_windowing_window_destroy()
20523 That does the windowing-system-dependent part of destroying
20526 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
20528 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
20530 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
20532 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
20533 Make gtk_widget_shape_combine_mask() keep a reference count on
20534 the pixmap since it keeps it around.
20536 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
20538 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20541 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20542 leak with event filters.
20544 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
20546 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20547 signal handlers with the right data arguments. (Fixes
20548 some warnings when a widget was repeatedly set as a drag
20551 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20552 window so we can avoid avoid setting the DND properties on the
20553 toplevel window repeatedly.
20555 2000-05-13 Tor Lillqvist <tml@iki.fi>
20557 * gdk/win32/gdkwin32.h: Define more message types missing from
20560 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20561 call gdk_window_destroy_notify(). It was never called. This
20562 probably meant that the GdkWindow was never freed. Thanks Owen for
20565 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20566 window as destroyed before calling DestroyWindow(). DestroyWindow()
20567 causes a call to the window procedure (gdk_WindowProc), which
20568 calls gdk_event_translate(), which calls
20569 gdk_window_destroy_notify(), which gets confused unless the window
20570 is set as destroyed.
20572 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20573 this function to indicate it's win32 only. Put inside #ifdef
20576 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20577 debugging function. (gdk_event_translate:) Add a default branch
20578 that uses the above function to print debug messages with all
20579 Windows messages symbolically.
20581 * gdk/win32/gdkprivate-win32.h: Declare it, and
20582 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20584 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
20586 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20587 public header file.
20589 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
20591 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20593 * gtk/gtktext.c: made the adjustments no-construct args, simply
20594 provide default adjustments.
20595 (gtk_text_destroy): release adjustments.
20597 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20598 adjustment argument non-construct.
20600 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20601 instead of in finalize.
20602 (gtk_progress_get_text_from_value):
20603 (gtk_progress_get_current_text):
20604 (gtk_progress_set_value):
20605 (gtk_progress_get_percentage_from_value):
20606 (gtk_progress_get_current_percentage):
20607 (gtk_progress_set_percentage):
20608 (gtk_progress_configure): ensure an adjustment is present.
20610 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
20612 * gtk/gtkcolorsel.[hc]:
20613 * gtk/gtkcolorseldialog.[hc]:
20614 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20615 their parent implementation, use bit fields for boolean values, don't
20616 create unused widgets, usage of glib types, braces go on their own
20617 lines, function argument alignment, #include directives etc. etc. etc..
20619 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20621 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
20623 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20625 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20628 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20630 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20632 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20633 to NULL when the toplevel is getting destroyed.
20634 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20635 (gtk_menu_destroy):
20636 (gtk_menu_init): store the information of whether we have to
20637 readd the initial child ref_count during destruction in a new
20638 GtkMenu field needs_destruction_ref_count.
20640 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20641 here, those reading: learn from my mistake! ;)
20642 in order for set_?adjustment to support a default adjustemnt if
20643 invoked with an adjustment pointer of NULL, the code read (pseudo):
20644 if (v->adjustment) unref (v->adjustment);
20645 if (!adjustment) adjustment = adjustment_new ();
20646 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20647 now imagine the first unref to actually free the old adjustment and
20648 adjustment_new() creating a new adjustment from the very same memory
20649 portion. here, the latter comparision will unintendedly fail, and
20650 all hell breaks loose.
20651 (gtk_viewport_set_hadjustment):
20652 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20653 after unreferencing it.
20655 * gtk/gtkcontainer.[hc]: removed toplevel registration
20656 functions: gtk_container_register_toplevel(),
20657 gtk_container_unregister_toplevel() and
20658 gtk_container_get_toplevels() which had wrong semantics
20659 anyways: it didn't reference and copy the list.
20661 * gtk/gtkwindow.c: we take over the container toplevel registration
20662 bussiness now. windows are registered across multiple destructions,
20663 untill they are finalized. the initial implicit reference count
20664 users are holding on windows is removed with the first destruction
20666 (gtk_window_init): ref & sink and set has_user_ref_count, got
20667 rid of gtk_container_register_toplevel() call. add window to
20669 (gtk_window_destroy): unref the window if has_user_ref_count
20670 is still set, got rid of call to
20671 gtk_container_unregister_toplevel().
20672 (gtk_window_finalize): remove window from toplevel list.
20673 (gtk_window_list_toplevels): new function to return a newly
20674 created list with referenced toplevels.
20675 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
20677 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
20678 adjustment a non-construct arg.
20679 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
20680 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
20681 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
20683 * gtk/gtkrange.c: added some realized checks.
20684 (gtk_range_destroy): get rid of the h/v adjustments in the
20685 destroy handler instead of finalize. remove timer.
20686 (gtk_range_get_adjustment): demand create adjustment.
20688 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
20689 we simply create them on demand now and get rid of them in
20690 the destroy handler.
20691 (gtk_viewport_destroy): get rid of the h/v adjustments in the
20692 destroy handler instead of finalize.
20693 (gtk_viewport_get_hadjustment):
20694 (gtk_viewport_get_vadjustment):
20695 (gtk_viewport_size_allocate): demand create h/v adjustment
20698 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
20699 gtk_widget_real_destroy () functionality.
20700 (gtk_widget_real_destroy): reinitialize with a new style, instead
20701 of setting widget->style to NULL.
20703 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
20705 * gtk/gtkcalendar.c:
20706 * gtk/gtkbutton.c: ported _get_type() implementation over to
20707 GType, either to preserve memchunks allocation facilities,
20708 or because Gtk+ 1.0 GtkTypeInfo was still being used.
20710 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
20711 over. prepare for ::destroy to be emitted multiple times.
20712 removed reference tracer magic. chain into GObjectClass.shutdown()
20713 to emit ::destroy signal.
20715 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
20718 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
20725 * gtk/gtkargcollector.c:
20726 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
20727 not being a fundamental anymore, and to work with the new
20728 type system (nuked fundamental type varargs clutter).
20730 * gtk/*.c: install finalize handlers in the GObjectClass
20731 part of the class structure.
20732 changed direct GTK_OBJECT()->klass accesses to
20734 changed direct object_class->type accesses to GTK_CLASS_TYPE().
20736 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
20737 GType. made most of the GTK_*() type macros and Gtk* typedefs
20738 simple wrappers around macros and types provided by GType.
20739 most notably, a significant portion of the old API vanished:
20742 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
20743 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
20746 GTK_TYPE_C_CALLBACK,
20750 gtk_type_set_varargs_type(),
20751 gtk_type_get_varargs_type(),
20752 gtk_type_check_object_cast(),
20753 gtk_type_check_class_cast(),
20754 gtk_type_describe_tree(),
20755 gtk_type_describe_heritage(),
20757 gtk_type_children_types(),
20758 gtk_type_set_chunk_alloc(),
20759 gtk_type_register_enum(),
20760 gtk_type_register_flags(),
20761 gtk_type_parent_class().
20762 replacements, where available are described in ../docs/Changes-1.4.txt.
20763 implemented compatibility functions for the remaining API.
20765 * configure.in: depend on glib 1.3.1, use gobject module.
20767 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
20769 * TODO.xml: Various updates to current status.
20771 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
20773 * gtk.m4: Print out version when test succeeds.
20775 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
20777 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
20778 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
20780 (Original triangle color selector from Simon Budig
20781 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
20782 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
20783 Santiago <mrcooger@cyberverse.com>)
20785 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
20786 out into a separate widget.
20788 * gtk/testgtk.c: Add some checkbuttons for toggling palette
20789 and opacity controls.
20791 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
20793 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
20794 snuck in prematurely.
20796 2000-05-07 Tor Lillqvist <tml@iki.fi>
20798 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
20799 had deleted a ! operator by mistake, which caused
20800 GDK_SELECTION_CLEAR events never to be generated, which caused
20801 only the first copy to the clipboard from an gtkeditable to
20802 actually cause a copy to the Windows clipboard.
20804 2000-05-06 Tor Lillqvist <tml@iki.fi>
20806 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
20807 compilation, too. Current mingw gcc distributions include the
20808 necessary headers. Also the necessary IIDs are now in mingw
20809 headers/libraries, and own definitions unnecessary.
20811 More hacking on OLE2 DND, still doesn't work though, and thus
20814 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
20817 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
20819 * gdk/nanox/*: nano-X port work in progress.
20820 * gdk/simple.c: simple test for Gdk.
20821 * README.nanox: notes about the port: read this first!
20822 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
20825 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
20827 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
20828 gdk_window_clear() into common code, implement in terms of
20829 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
20830 not redirected to the backing rectangle.
20832 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
20834 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
20835 EXTRA_DIST. It does not work well when the file that
20836 everything depends on is not in the tarball.
20838 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
20840 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
20841 with recursion where process_updates() is called from
20842 an expose handler. (GtkTextView is highly broken in
20843 doing this, but it should work, so it is a nice test
20846 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
20848 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
20849 handle the case where updates are queued during processing of
20852 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
20854 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
20855 window is on gdk_display - use that instead of segfaulting.
20857 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
20859 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
20860 broken and require an empty arg, give it to them.
20862 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
20864 * gtk/gtklabel.h: indentation fixes.
20866 2000-05-02 Tor Lillqvist <tml@iki.fi>
20868 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
20869 draw too narrow or too low arcs, they seem to fail, at least with
20870 some display drivers.
20872 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
20874 Large changes to the Win32 backend, partially made necessary by
20875 the changes to the backend-independent internal
20876 structures. Attempts to implement similar backing store stuff as
20877 on X11. The current (CVS) version of the Win32 backend is *not* as
20878 stable as it was before the no-flicker branch was merged. A
20879 zipfile with that version is available from
20880 http://www.gimp.org/win32/. That should be use by "production"
20881 code until this CVS version is usable. (But note, the Win32
20882 backend has never been claimed to be "production quality".)
20884 * README.win32: Add the above comment about versions.
20886 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
20888 * gdk/gdk.def: Update.
20890 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
20891 presumably be replaced by some more better mechanism as 1.4 gets
20892 closer to release shape.
20894 * gdk/makefile.{cygwin,msc}: Update.
20896 * gdk/win32/*.c: Correct inclusions of the backend-specific and
20897 internal headers. Change code according to changes in these. Use
20898 gdk_drawable_*, not gdk_window_* where necessary.
20900 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20903 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20904 to interpret single characters as UTF-8. Thanks to Hans Breuer.
20905 Use correct function name in warning messages.
20907 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20908 GSourceFuncs gdk_event_prepare and gdk_event_check.
20909 (gdk_event_get_graphics_expose): Do implement, use
20910 PeekMessage. Thanks to Hans Breuer.
20911 (event_mask_string): Debugging function to print an GdkEventMask.
20912 (gdk_pointer_grab): Use it.
20914 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20915 (old) book I used claimed was Hangul actually is CJK Unified
20916 Ideographs Extension A. Also, Hangul Syllables were missing.
20919 * gdk/win32/gdkgc-win32.c: Largish changes.
20921 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20922 g_win32_getlocale() from GLib, and not setlocale() to get current
20925 * gdk/win32/gdkprivate-win32.h
20926 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20927 gdkwin32.h, similarily as in the X11 backend.
20929 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20930 assignment was used instead of equals in if test. Thanks to Hans
20933 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20936 * gdk/win32/makefile.{cygwin,msc}
20937 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20938 path to the Win32 headers that works also with the mingw compiler.
20940 * gtk/gtkstyle.c: Include <string.h>.
20942 2000-04-26 Havoc Pennington <hp@redhat.com>
20944 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20945 replacing the broken gtk_label_get ()
20947 2000-04-15 Havoc Pennington <hp@pobox.com>
20949 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
20950 this keeps scanner scripts from getting confused.
20952 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20953 data, rather than void
20955 2000-04-15 Tor Lillqvist <tml@iki.fi>
20957 * gtk/gtkclist.c (gtk_clist_motion)
20958 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20959 with is_hint FALSE, get x and y from the event. They used to be
20960 used uninitialised. The Win32 backend never sends motion events
20961 marked as hints. This for instance fixes the annoying file and
20962 font selector behaviour in the Win32 version.
20964 2000-04-14 Tor Lillqvist <tml@iki.fi>
20966 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20967 gtk_private_n_signals variables, they are used by some software,
20970 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20971 installation directory from the Registry, where the installer
20972 should have put it.
20974 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
20976 * gdk/x11/Makefile.am: Fix problem with installation directory for
20979 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20980 <mrcooger@cyberverse.com> so that when selecting menus with the
20981 mouse, the first item will not be selected, but when selecting
20982 with an accelerator, or navigating left-right on a menubar with
20983 the menus popped up, the first item will be selected.
20985 2000-04-05 Dan Damian <dand@dnttm.ro>
20987 * configure.in: Added "ro" to ALL_LINGUAS.
20989 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
20991 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20994 * Makefile.am (EXTRA_DIST): Fix typo.
20996 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20997 to catch gdkconfig.h
20999 * gtk/gtkitemfactory.c: Added FIXME.
21001 2000-03-30 Jonathan Blandford <jrb@redhat.com>
21003 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
21004 s/return_if_fail/return_val_if_fail/g and add a return value.
21006 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
21008 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
21011 * gdk/gdkinput.h: Fix missing line from merge.
21013 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
21015 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
21016 instead of gdkprivate.h.
21018 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
21020 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
21021 parent class to correctly be GtkDialogClass.
21023 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
21025 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
21026 toplevel windows and their immediate children by their parents,
21027 since the size of toplevel windows is out of our immediate
21028 control and we don't get any real benefit from trying to track
21029 this size for clipping.
21031 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
21032 for input_only windows.
21034 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
21035 to fix some hacks and make sure that we don't try to set the
21036 background of input only windows.
21038 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
21040 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
21041 the _really_ internal stuff, and leave gdkprivate.h for the fake private
21042 stuff that we've traditionally exposed.
21044 * gdk/**.c: Use gdkinternals.h where appropriate.
21046 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
21047 not include gdkprivate-x11.h, move all stuff of conceivable public
21048 interest into gdkx.h; keep all really private stuff in
21049 uninstalled header gdkprivate-x11.h.
21051 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
21052 image->image_put on windows through a new function _gdk_window_draw_image()
21053 to allow us to do backing store for images. (Sort of ugly)
21055 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
21056 contexts locally so that we can offset them properly when drawing
21057 onto backing pixmaps.
21059 * gdk/gdkinput.h: Reindented
21061 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
21062 pixmap or color for the window, so we can properly initialize
21063 our double-buffer pixmaps, and also so that we temporarily set
21064 a background of None while scrolling.
21066 * gdk/gdkregion.h: Revise region boolean operators to have an
21067 interface that is actually convenient - switch from creating new
21068 regions on every op, to "methods" that modify existing regions
21069 (A = A OP B). 3 argument forms which allow dest == src, would also
21070 be possible, but the current interfaces seem to map nicely
21071 onto what needs to be done. (There is quite a lot of region
21074 * gdk/gdkregion.h: Add constructor from rectangle and a copy
21077 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
21078 gdkpoly-generic.h: Copy region code from Xlib, switch it over
21079 to 32 bit coordinates, modify it to be mostly GTK+ style
21080 and to have interfaces that match gdkregion.h.
21082 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
21083 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
21084 create a backing pixmap and redirect all drawing to
21085 that backing pixmap until a matching gdk_window_end_paint().
21087 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
21088 Create a special drawable class for GtkWindow's that
21089 redirects the drawing to the backing pixmap as necessary
21090 and then calls the real operations in _gdk_windowing_window_class.
21092 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
21093 Store invalid region for each window. Generate expose events for invalid
21094 region in an idle. This replaces both the expose compression
21095 and the redrawing queuing in GTK+. It is both more efficient and
21096 simpler than either one individually and far more so then the
21099 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
21100 Emulate 32 bit coordinates for windows with 16 bit coordinates
21101 by offsetting drawing, guffaw scrolling techniques and
21102 mapping/unmapping child windows as necessary.
21104 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
21105 where, when invalid regions are processed, the region is stored,
21106 and if expose events come in that are detectably duplicate
21107 the processed exposes (by comparison of event serial numbers),
21108 the stored region is subtracted out of those exposes.
21110 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
21111 regions newly exposed when scrolling or resizing windows.
21112 This, combined with forcing processesing of queued invalidated
21113 regions, gives nice flicker-free scrolling.
21115 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
21116 invalidated regions after every scroll.
21118 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
21119 emulation in GDK. Its, for all practical purposes just a
21120 GtkViewport/GtkFixed hybrid now.
21122 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
21123 (16-bit) structures as necessary instead of just casting.
21125 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
21126 in terms of the structures from gdkregion-generic.c, using appropriate
21127 offsets from GDK to X11 coordinates. Cache clip mask and
21128 origin and ts origin locally and only flush to the server
21129 when drawing, to avoid constantly setting and resetting these
21130 values when offsetting GC's for scrolling and backing pixmaps.
21132 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
21134 * gtk/gtkcontainer.c: Call process_all_updates at end
21135 of resizing to reduce flicker. (Avoids having redraw
21136 lag arbitrarily behind resize under some circumstances)
21138 * gtk/gtkentry.c: Remove old backing store code, and simply take
21139 advantage of the new backing store capabilities of GDK.
21141 * gtk/gtkmain.c: Simple implementation of widget backing
21142 store - simply push a paint while handling each expose.
21143 (Should really be configurable widget for widget.)
21145 * gtk/gtkwidget.c: Remove all the old complicated redraw
21146 code, and simply invalidate the GDK windows from
21147 gdk_window_queue_clear(), etc. (Sigh, so much carefully
21148 debugged complexity ... gone to the winds.)
21150 Remove all the code for suppressing expose events while
21151 resizes are pending; this isn't needed since the invalid
21152 areas won't be processed until after the resizes are
21153 processed, since they are in a lower priority idle.
21155 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
21157 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
21158 and height of dest rectangle for non-intersecting rectangles.
21160 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
21162 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
21165 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
21167 * gdk/gdk{events,image,private,types,window}.h
21168 gdk/x11/gdkinputprivate.h: Change all coordinates
21169 from int16 to int. Also, Change width and height from
21170 unsigned to signed to avoid all the stupid C
21173 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
21175 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
21176 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
21177 Add some more detailed checking.
21179 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
21180 New function to retrieve the depth of a drawable.
21182 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
21183 field, reorder fields to save memory.
21185 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
21187 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
21188 of the background image instead of scaling the background down to
21191 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
21192 which temporarily set slider to wrong size.
21194 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
21197 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
21199 2000-03-23 Jonathan Blandford <jrb@redhat.com>
21201 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
21203 2000-03-17 Tor Lillqvist <tml@iki.fi>
21205 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
21206 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
21208 * gdk/win32/gdkfont-win32.c
21209 * gdk/win32/gdkproperty-win32.c
21210 * gdk/win32/gdkselection-win32.c
21211 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
21214 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
21216 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
21218 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
21220 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
21221 is called without trapping X errors.
21223 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
21225 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
21226 way into the fontset lists.
21228 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
21230 * gtk/gtkthemes.h: add extern "C" scope.
21232 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
21234 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
21235 to make appends to the list constant. (gtk-guy-990901-0.patch)
21237 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
21239 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
21240 for the typename hash table.
21242 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
21244 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
21245 to make sure we never divide by zero.
21246 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
21248 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
21250 * gtk/gtkfontsel.c: Apply patch from
21251 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
21252 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
21254 Also, some cleanups in atom handling.
21256 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
21258 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21261 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
21263 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
21264 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
21265 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
21266 more guint wrap-around bugs before going to bed.
21268 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
21270 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
21271 guint wrap arounds in allocation.width.
21273 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
21274 process untill we fit the allocation given.
21276 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
21279 (gtk_widget_unrealize): guard widget access with ref/unref
21280 around signal emission.
21281 (gtk_widget_hide): same here, but also check its destroyed
21282 state before queueing a resize.
21284 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
21286 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
21287 of gtk_default_insensitive_bg as insensitive base color.
21289 * gtk/gtktext.c (gtk_text_style_set): set the background color according
21290 to the widget's state.
21291 (gtk_text_realize): same here.
21292 (gtk_text_state_changed): same here.
21293 (draw_bg_rect): compare background color against base[] from
21294 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
21296 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
21298 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
21299 grabs are active, unless a delete event is send to the toplevel
21300 of the currently grab holding widget.
21302 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
21304 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
21305 debugging g_print's.
21307 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
21309 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
21310 ever make the scrolled-window requisition ever depend on the
21311 visibility state of the scrollbars for the AUTOMATIC policy.
21312 This breaks the GTK+ requisition model, and causes loops.
21314 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
21316 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
21317 the default font to avoid problems with XFree86-4.0 where the
21318 default charset is iso10646-1, not iso8859-1.
21320 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
21326 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
21328 * gtk/Makefile.am: minor cosmetic consistency tweak
21330 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
21332 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
21333 the activate_time to 0, so that we handle a quick
21334 press/release press/release properly and don't suppress
21335 the second release. (Red Hat bug #7545)
21337 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
21339 * gtk/gtkctree.c (row_delete):
21340 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
21341 bugs with destruction notifier, *always* update internal
21342 structures *before* calling user code.
21344 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
21346 A few more fixes for bug #5487, #2051, #2677.
21348 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
21349 not GDK_BUTTON_PRESS.
21350 (resync_selection): resync only if selection_mode is
21351 GTK_SELECTION_EXTENDED
21352 * gtk/gtkctree.c (resync_selection): same here
21354 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
21356 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
21357 gdk_drag_get_selection() and gtk_menu_detach().
21359 [ From Jeroen Ruigrok/Asmodai ]
21361 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
21363 * gtk/gtknotebook.c (gtk_notebook_size_request):
21364 page->tab_label can be NULL.
21366 2000-01-25 Havoc Pennington <hp@pobox.com>
21368 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
21371 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
21373 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
21375 * gdk/gdkproperty.c (gdk_property_get): return boolean
21377 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
21379 * gdk/gdkim.c (gdk_im_ready): return boolean
21381 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
21383 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
21384 glib clash, should fix glib)
21386 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
21387 (gdk_get_show_events): return gboolean, and canonicalize
21390 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
21391 colormap is private
21392 (gdk_colors_alloc): gboolean whether to be contiguous
21393 (gdk_color_equal): return gboolean since we are a predicate
21394 and not a qsort() (this looks semi-wrong due to glib breakage,
21395 IMO glib should be fixed)
21397 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
21398 (gdk_get_use_xshm): return gboolean
21399 (gdk_pointer_is_grabbed): return gboolean
21401 * gdk/gdk.h: Change prototypes to match all the above changes,
21402 and re-run egtk-format-protos as required.
21404 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
21406 * gtk/gtkctree.c (resync_selection):
21407 * gtk/gtkclist.c (resync_selection):
21409 Return immediately if clist->drag_pos < 0. This is a workaround
21410 for the corrupt state that the clist gets into when a
21411 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
21413 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
21415 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
21416 variable from recent commit.
21418 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
21420 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
21422 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
21424 * gtk/Makefile.am: prefix all autogenerated source that get build in
21425 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
21426 in builddir. since we subsequently cd into srcdir for autogeneration,
21427 the paths have to be stripped from the target file names, thusly we
21428 use $(@F) as target names now.
21429 put a comment about configure.in's --disable-rebuilds option,
21430 which can be used for non-writable source directories, for development
21431 setups though, srcdir has to be *writable*.
21433 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
21435 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
21436 Finish the job of allowing event to be NULL.
21437 (Fixes bug #4283, reported by Chris Blizzard)
21439 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
21440 things so that the cursor appears on screen, properly
21441 take into account INNER_BORDER.
21442 (Fixes bug #4754, reported by Antonio Campos)
21444 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
21446 * gtk/gtknotebook.c (gtk_notebook_map): Don't
21447 show the tab_label unless it itself is visible.
21449 gtk/gtknotebook.c (gtk_notebook_size_request):
21450 Do a better job of making sure that the visibility
21451 of the tab label corresponds to whether it should
21454 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
21456 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
21457 Use the requisition, not the allocation, since the
21458 allocation has not necessarily been computed yet.
21459 (Pointed out by Eugene Osintsev)
21461 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
21463 * gtk/gtkstyle.c (gtk_style_new): Dont' set
21464 style/base[GTK_STATE_INSENSITIVE] both to
21465 gtk_default_insensitive_bg!
21466 (Bug #2187, reported by Jonathan Blandford)
21468 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
21469 Add Alt_L, Alt_R to list of invalid accelerators.
21470 (Bug #3736, reported by Vlad Harchev)
21472 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
21474 * gtk/gtkfilesel.c (open_ref_dir): Fix several
21475 bugs which occured after an attempt to open
21476 invalid home directory left cmpl_state->reference_dir == NULL.
21478 - completion on files in home directory didn't work
21479 - completion on an empty string caused segfault
21481 (Bug #3678, reported by Steve Ratcliffe)
21483 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
21484 cut and paste error that was causing scales to
21485 be incorrectly positioned.
21487 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
21489 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
21491 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
21492 when checking for dcgettext, if we've found we needed
21495 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
21497 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21498 queue_clear on NO_WINDOW widgets during a reparent,
21499 since at that point the window and widget heirarchies
21500 are out of sync. This stops crashing in some cases
21501 (the scrolled window reparent test, for instance), and
21502 _probably_ won't cause drawing errors.
21504 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
21505 test do what it was supposed to do and be robust against
21506 window closings, etc. (Bug #2443)
21508 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
21510 * gtk/gtkentry.c: Fix return values on mouse events.
21511 (Bug #2686, Sky <seb_sky@yahoo.com>)
21513 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
21514 (pointed out by George Lebl)
21516 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
21517 (From Ettore Perazzoli <ettore@helixcode.com>)
21519 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
21521 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
21522 clicks between rows or outside calender area correctly.
21523 (Patch from Damon Chaplin)
21525 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
21526 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
21527 Call destroy function when overwriting existing data.
21528 (Pointed out by Damon Chaplin)
21530 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
21532 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21533 which was causing problems on various systems with Xmu.
21534 This hasn't been needed for a very long time.
21537 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
21539 * gdk/gdki18n.h: Include <ctype.h> when defining
21540 gdk_isw* in terms of is* as a fallback.
21541 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21543 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
21545 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21546 realize the widget when it is size allocated!
21549 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21550 Removed unused call to gdk_window_get_size() that
21551 showed up when the above was fixed.
21553 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
21555 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21556 fix up widget->window when the widget is a
21557 NO_WINDOW container widget.
21559 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
21561 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21562 to account for the fact that feof() does _not_
21563 return TRUE on errors, and thus avoid infinite loops
21564 when trying to use gdk_pixmap_create_from_xpm()
21565 on unreadable values.
21567 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
21569 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21571 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
21573 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21574 gdk_gc_set_dashes to take gint8 instead of gchar to
21575 make it clearer that it is _not_ a NULL terminated string.
21577 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21578 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21579 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21582 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
21584 * gtk/gtkvscale.c (gtk_vscale_pos_background):
21585 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21586 background size relative to our allocation, guard against small
21587 allocations, we may have not yet been size allocated.
21589 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
21591 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21592 not just version == 3. We implement all 3 + most of 4 -
21593 (we don't support matching text/plain;charset=iso-8859-1
21594 to a dest that expects text/plain). We'll still advertise
21595 3 to be safe, but any client implementing version >= 3
21596 must interoperate with 3.
21598 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
21600 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21601 background and gc members, add a warning in gtk_tooltips_set_color()
21602 indicating that this function is deprecated.
21604 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
21606 * docs/gtkfaq.sgml: FAQ Update:
21607 - Minor cleanups (Emmanuel, me)
21609 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21610 How can I retrieve the text from a GtkMenuItem? (timj)
21611 How do I validate/limit/filter the input to a GtkEntry? (me)
21612 Memory does not seem to be released when I free the list
21613 nodes I've allocated (timj)
21615 2000-03-07 Tor Lillqvist <tml@iki.fi>
21617 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21618 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21619 for which it is no use to call GetLastError onWin9x.
21620 (gdk_other_api_failed) New function, for general error
21621 reporting without calling GetLastError.
21622 (gdk_win32_api_failed) OTOH, this function always calls
21623 GetLastError. (gdk_win32_last_error_string) Remove this function,
21624 GLib has the equivalent now.
21626 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21627 call them with function name, file name and line number in the
21630 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21633 * gtk/gtk.def: Add some missing entry points.
21635 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21636 gtk_paned_set_gutter_size, which don't exist any longer, as void.
21638 Fixes by Hans Breuer:
21640 * gdk/makefile.msc: Update for debugging.
21642 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21643 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21644 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21647 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21650 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21652 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21654 2000-03-04 Tor Lillqvist <tml@iki.fi>
21656 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21657 just pixel value of background colour.
21659 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21660 containing code snippet previously duplicated in a couple of
21663 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
21664 gdk_colormap_color.
21666 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
21667 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
21668 events for autorepeated Shift, Control and Alt keys. Use
21669 gdk_colormap_color.
21671 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
21672 pointer is inside the window the cursor of which we are setting,
21673 call SetCursor immediately.
21675 * gdk/win32/makefile.cygwin
21676 * gtk/makefile.cygwin: If we don't have the build number stamp
21679 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21680 gtk_paned_set_gutter_size as empty.
21682 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
21684 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
21686 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
21687 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
21688 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
21689 docs/gtk_tut.sgml docs/gtk.texi TODO:
21691 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
21693 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
21695 * gtk/gtkcalendar.c: Implement num_marked_dates,
21696 and don't emit mutiple day_selected signals on
21699 2000-02-25 Jonathan Blandford <jrb@redhat.com>
21701 * docs/make-todo (lineno): let title and logo be configurable so
21702 that GNOME can use this script too.
21704 * TODO.xml: added logourl and a title
21706 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
21708 * TODO.xml: Added some UI items, and an explanatory
21709 comment at the top of the file.
21711 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
21713 * TODO.xml: some updates, added abunch of new entries.
21714 a note for those fiddeling with this file, when done
21716 $ ./docs/make-todo TODO.xml >/dev/null
21717 and correct output errors before comitting changes.
21719 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
21721 * TODO.xml: Added XML-structured TODO file.
21722 * docs/make-todo: python script to turn TODO.xml into
21725 2000-02-23 Jonathan Blandford <jrb@redhat.com>
21727 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
21728 the function to let it draw the seven dots, instead of the old,
21729 much maligned, method.
21730 (draw_dot): New function to draw a dot.
21732 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
21733 to draw the handle inside the border width as opposed to outside.
21734 Use paint function instead of gdk_draw_point.
21736 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
21737 to draw the handle inside the border width as opposed to outside.
21738 Use paint function instead of gdk_draw_point.
21740 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
21741 Change indenting to be more GTK like.
21743 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
21745 * docs/gtk_tut.sgml: New section on GtkCalendar
21746 * examples/calendar: Update example code
21748 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
21750 * docs/gtkfaq.sgml: FAQ Update
21752 2000-02-19 Anders Carlsson <andersca@gnu.org>
21754 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
21755 to prevent the scroll event to be propagated upwards.
21757 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
21759 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
21760 OwnerGrabButtonMask from button entries for
21761 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
21763 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
21764 to the event mask (which will result in button/press release
21765 being added to the event mask on Unix) so scrolling works
21766 for layouts in scroll windows.
21768 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
21770 Patch from Anders Carlsson <andersca@gnu.org> to add
21773 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
21774 scrolling to the "Test Scrolling" part of testgtk.
21776 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
21778 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
21779 it against GDK_SCROLL.
21781 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
21782 way of mouse wheel scrolling.
21784 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
21786 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
21788 * gtk/gtkmain.c: Removed previous mouse wheel hack.
21790 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
21791 gdk_event_mask_table.
21793 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
21794 GdkEventScroll handler.
21796 * gdk/gdkevents.h: Added GdkEventScroll structure.
21798 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
21800 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
21801 and Anders Carlsson to change the Paned widgets so that they
21802 can be dragged from anywhere along the length. Also change
21803 the way that this is drawn to make this apparent.
21805 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
21806 from George Lebl to check that option_menu->menu is present
21807 before getting history.
21809 2000-02-14 Tor Lillqvist <tml@iki.fi>
21811 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
21812 before the assertion for non-NULL segment list.
21814 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
21815 Seems that pattern brushes *must* be 8x8 pixels! At least on my
21816 machine, but it might be display driver dependent. Sigh, so make
21817 sure the stipple is that size. Does Windows suck or what?
21819 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
21822 2000-02-13 Havoc Pennington <hp@pobox.com>
21824 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
21826 (gdk_cursor_new): init refcount to 1
21828 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
21830 2000-02-13 Tor Lillqvist <tml@iki.fi>
21832 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
21833 so that we don't have to do unnecessary settings to the HDC.
21835 * gdk/win32/gdkdrawable-win32.c
21836 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
21839 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
21840 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
21841 GDI paths, call WidenPath to get the outline of the stroken path,
21842 and then fill the outline (with the brush that was built from the
21845 * gdk/win32/gdkgc-win32.c: Factor out common code from
21846 _gdk_win32_gc_new and gdk_win32_gc_set_values into
21847 gdk_win32_gc_values_to_win32values. Use correct colour for
21848 SetBkColor() (Until now the code actually used a random colour in
21849 the call to SetBkColor()... but that didn't show up as not many
21850 GDI APIs use the background colour. Pattern (opaque stippled)
21853 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
21854 gdk_win32_api_failed): New functions for error logging.
21856 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
21857 WIN32_API_FAILED to call them, passing function or file name and
21860 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
21862 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
21863 GdkColor for foreground and background in GdkGCWin32Data.
21865 * gdk/makefile.cygwin: Link in the resource object separately.
21867 * gdk/win32/rc/gdk.rc
21868 * gtk/gtk.rc (New file)
21869 * gdk/win32/makefile.cygwin
21870 * gtk/makefile.cygwin: Update build number in DLLs automatically,
21873 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
21875 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
21876 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
21877 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
21878 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
21879 parameters given and cursor->ref_count. coding style fixups.
21881 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21884 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
21885 fix up widget macros and add _GET_CLASS() variant.
21887 * gtk/*.c: some GtkType fixups.
21889 2000-02-09 Tor Lillqvist <tml@iki.fi>
21891 * gdk/win32/gdkproperty-win32.c
21892 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21895 2000-02-04 Tor Lillqvist <tml@iki.fi>
21897 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21898 g_filename_to_utf8 to convert the font names Windows gives us from
21899 whatever is the default codepage to UTF-8.
21900 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21901 in the other direction.
21903 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21904 error in debugging output.
21906 2000-02-02 Tor Lillqvist <tml@iki.fi>
21908 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21909 and height parameters to gdk_window_clear_area(). Not minus one.
21911 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
21913 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21914 checks if the widget passed to gtk_drag_get_data() was not the
21917 2000-02-01 Tor Lillqvist <tml@iki.fi>
21919 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21920 g_filename_from_utf8 functions (which were added a moment ago to
21921 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21924 gtk_file_selection_get_filename returns the filename in the C
21925 runtime encoding. It calls g_filename_from_utf8, but copies the
21926 returned string to a static buffer, which is returned. I think
21927 this is better than returning the result from g_filename_from_utf8
21928 directly, which would mean all apps that use it would have to free
21929 the return value. Or should this function care about this issue at
21930 all? Maybe a new function with clearly defined semantics.
21932 * gtk/gtkfilesel.h: Add comment about
21933 gtk_file_selection_get_filename returning the filename in the C
21934 runtime's encoding.
21938 * gdk/makefile.{cygwin,msc}
21939 * gtk/gtk.def: Updates.
21941 * gdk/gdkcursor-win32.c: Initialise refcount.
21943 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
21945 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21947 2000-01-30 Havoc Pennington <hp@pobox.com>
21949 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21952 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21954 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
21955 implemented in platform-specific code
21957 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21959 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21960 underscore in front
21962 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21963 put an underscore in front
21965 * gdk/gdkcursor.c: new file, implements
21966 gdk_cursor_ref/gdk_cursor_unref
21968 * gdk/gdkcursor.h: Refcount GdkCursor
21970 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21972 2000-01-29 Tor Lillqvist <tml@iki.fi>
21975 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21977 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
21979 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21980 structures to properly inherit from GtkWidget not GtkBin.
21982 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
21984 * gtk+.spec.in: Added lib/gtk+/include/* to %files
21985 (bug #5178 - Peter Wainright)
21987 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21988 so that it will be installed.
21989 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21991 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
21993 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21994 for the GtkStyleClass vtable const.
21996 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21997 take a const string argument like GtkTranslateFunc. This will
21998 require changes in use code.
22000 2000-01-19 Tor Lillqvist <tml@iki.fi>
22002 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
22003 semantics (to mimic the X11 backend, which just calls XClearArea)
22004 is to check for zero width (and height), and in that case use the
22005 window's width minus x (height minus y). This fixes for instance
22006 some redraw problems with gtkclist, which were easily noticeable
22007 in the gtk file selection widget.
22009 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
22012 2000-01-13 Tor Lillqvist <tml@iki.fi>
22016 * gdk/x11/Makefile.am
22017 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
22019 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
22022 2000-01-09 Tor Lillqvist <tml@iki.fi>
22024 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
22025 WM_MOVE for iconified or invisible windows. This fixes various
22026 problems when minimising windows. Thanks to Bernd Herd.
22028 2000-01-05 Tor Lillqvist <tml@iki.fi>
22030 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
22031 backend's draw_lines method, not draw_points.
22033 2000-01-02 Tor Lillqvist <tml@iki.fi>
22035 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
22036 before Owen's reorganisation: Don't have queued_events and
22037 queued_tail statics in this file, but use gdk_queued_events and
22038 gdk_queued_tail. This makes exposure event compression work again.
22040 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
22043 1999-12-30 Tor Lillqvist <tml@iki.fi>
22045 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
22046 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
22047 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
22048 doesn't do anything.
22050 * gdk/gdk.def: Add gdk_xid_table_insert.
22052 * gdk/win32/gdkprivate-win32.h
22053 * gdk/win32/gdkevents-win32.c
22054 * gdk/win32/gdkinput-win32.c
22056 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
22057 extension_events field in the GdkWindowWin32Data struct. Use only
22058 the extension_events field in GdkWindowPrivate. Previously one was
22059 set, and the other one tested, which broke tablet
22060 functionality. Thanks to Keishi Suenaga for pointing this out.
22062 1999-12-18 Tor Lillqvist <tml@iki.fi>
22064 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
22065 When handling a single character (text length == 1), don't handle
22066 it as if it was UTF-8.
22068 1999-12-11 Tor Lillqvist <tml@iki.fi>
22070 * Makefile.am: Distribute README.win32.
22073 * gdk/win32/Makefile.am: Distribute Win32 files.
22075 * gdk/makefile.msc: New file.
22077 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
22080 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
22081 gdk_error_code as GDKVAR, as they are referred outside GDK.
22083 * gdk/win32/makefile.msc: Update.
22085 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
22086 tweaks. Check only if at least one of those Unicode subrange bits
22087 we care for is set. If no code page bits are set, guess (wildly)
22088 based on the charset.
22090 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
22092 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
22098 * gtk/gtkselection.c
22100 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
22101 appropriate. There must be a cleaner way to handle this?
22103 * gtk/gtkrc.c: Must include windows.h on Win32.
22105 * gtk/testgtk.c: No need to include gdkx.h.
22107 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
22109 1999-12-07 Tor Lillqvist <tml@iki.fi>
22111 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
22112 the rbearing is set to the same as the width, but this should be
22115 1999-12-06 Tor Lillqvist <tml@iki.fi>
22117 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
22118 function. If Windows doesn't tell us what Unicode subranges a font
22119 covers, guesstimate based on the codepages it covers. This will
22120 hopefully help those Windows versions or fonts that don't give us
22121 any useful Unicode subrange information with GetTextCharsetInfo.
22122 Call this function in gdk_font_load_internal.
22124 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
22127 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
22129 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
22130 New function, long needed.
22132 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
22134 * gdk/gdkproperty.h x11/gdkproperty.c: Change
22135 only_if_exists argument of gdk_atom_intern to
22138 1999-11-25 Tor Lillqvist <tml@iki.fi>
22140 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
22141 Fix two copy&paste errors.
22143 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
22146 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
22147 GdkWin32SingleFont struct.
22149 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
22150 subranges of loaded fonts. Clear font signature first, in case
22151 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
22152 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
22154 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
22155 Unoffset clip region.
22157 1999-11-23 Tor Lillqvist <tml@iki.fi>
22159 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
22160 event->any.window before calling filter functions.
22162 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
22164 * gtk/gtkgamma.h: Adapt cast macros to standard.
22166 [ Merges from 1.2 ]
22168 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
22170 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
22171 If translation does not include a '/', use entire
22172 translation instead of crashing.
22174 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
22176 * docs/gtk_tut.sgml:
22177 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
22179 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
22181 * gtk/gtkselection.c (gtk_target_list_remove): Use
22182 g_list_remove_link, not g_list_remove.
22184 [ From Geert Bevin <gbevin@thunderstorms.org> ]
22186 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
22188 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
22189 statement upon unselection (how the heck did that slip in?).
22191 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
22193 * gtk/gtktext.c (gtk_text_freeze):
22194 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
22195 in frozen state (and aparently crashes). patch provided by Anders
22196 Melchiorsen <and@kampsax.dtu.dk>.
22198 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
22200 * fix insensitive default/focus widget activation,
22201 reported by Matt Goodall <mgg@isotek.co.uk>.
22203 * gtk/gtkwindow.c (gtk_window_key_press_event):
22204 (gtk_window_activate_default):
22205 (gtk_window_activate_focus):
22206 return handled=FALSE for actiavtion of insensitive default
22207 widgets. return handled=TRUE for activation of insensitive
22208 focus widgets. don't activate in either case.
22210 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
22212 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
22213 and $glib_cflags to match library order and in the
22214 theory that an old version of GLib is more likely to
22215 be in the include directory for X then vice-versa.
22218 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
22220 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
22221 to determine the locale for fontsets, not LC_MESSAGES;
22222 the user may want English messages with a handling
22223 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
22224 will still be broken) (Bug #2891)
22226 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
22228 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
22230 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
22232 * gtk/gtkrc.ko: Changed the Korean default fontset.
22234 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
22236 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
22237 where when scrolling to the left or top double exposes
22238 were done, causing major slowdowns.
22240 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
22242 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
22243 names to lowercase and alphanumeric, before looking
22246 * gtk/Makefile.am: Install codeset variant gtkrc files
22247 with normalized names.
22249 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
22251 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
22252 popup menus when the menu is already visible, but its parent
22253 is still hidden, (happens after tornoff window got hidden).
22255 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
22257 * gtk/Makefile.am (install-data-local): Fix
22258 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
22259 deleted, causing error messages on install.
22261 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
22263 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
22264 the handle as well, since we now sometimes ignore
22265 exposes on the handle while resizing.
22267 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
22269 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
22270 extra g_free introduced in one of the last one or two
22273 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
22275 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
22276 consistent, put each style that a gtkrc.* file creates
22277 in a unique namespace, remove old files before installing.
22279 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
22281 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
22282 gtk_rc_init is called multiple times. (Yes, people who
22283 do that have bugs in their code.)
22285 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
22287 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
22288 Remove it since it's generated by the Makefile anyway
22290 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
22292 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
22293 device->info.axes for core pointer.
22295 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
22297 * gtk/testgtk.c (destroy_idle_test): Rename idle to
22298 idle_id, to deal with obsolete, broken C libraries.
22300 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
22302 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
22303 allocation->x/y twice!
22305 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
22306 consistent with gtk_vscale_pos_trough().
22308 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
22310 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
22311 be queueing a resize on a toplevel container between
22312 the time we show it and when we map it. So, we need
22313 to test GTK_WIDGET_VISIBLE() for toplevels, and only
22314 use GTK_WIDGET_DRAWABLE() for child windows.
22316 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
22318 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
22321 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
22323 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
22324 container DRAWABLE (instead of VISIBLE), so we don't queue
22325 resizes on non-toplevel containers.
22327 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
22329 * gtk/gtkselection.[ch]: Make the data argument
22332 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
22334 * gtk/gtkwindow.c: Try to behave sensibly if
22335 the focus widget is the window itself. (Should
22336 we allow this at all?)
22338 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
22340 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
22341 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
22342 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
22343 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
22344 in prototypes and implementations consistent (Tomas Ogren).
22346 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
22347 before the widget is unparented (reported by damon).
22349 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
22350 since we provide unsigned data anyways.
22352 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
22354 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
22355 the call to gtk_tooltips_layout_text() until later.
22357 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
22358 Call gtk_widget_ensure_style() before using the style.
22360 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
22362 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
22363 for old widgets that don't propagate draws to all
22364 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
22366 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
22368 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
22369 for a redraw but just the widget that requested the resize.
22371 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
22373 * gtk/gtkcontainer.c: added new widget level method
22374 gtk_container_set_reallocate_redraws() and a GtkContainer flag
22375 reallocate_redraws : 1 to reflect the setting, exported this through
22376 the argument system as a boolean ::reallocate_redraws.
22378 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
22379 on the widget because the allocation changes, do so as well for
22380 widget->parent if the parent has reallocate_redraws set to TRUE.
22381 with that containers requesting reallocation redraws get automatically
22382 redrawn if their children changed allocation (this unfortunately
22383 affects also other children that didn't change allocation, but we
22384 cannot work around that before 1.3).
22386 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
22388 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
22389 _and_ height are >0 (not _or_).
22391 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
22392 instead of gtk_container_queue_resize(), which is a core gtk internal
22393 function (must have been on crack when i queued that).
22395 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
22396 we can check more reliably if we want to discard expose events.
22397 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
22400 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
22401 we simply trust these events. for deciding whether to discard exposes,
22402 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
22404 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
22406 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22407 queues of areas that are completely off screen.
22409 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
22410 logic for handleboxes.
22412 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
22413 check on width/height.
22415 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
22417 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
22418 we are fine with using $@ the way we do (if we actually encounter
22419 brokeness with $@ in VPATH builds because of additional path prefixes,
22420 we need to use $(@F) actually).
22422 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
22424 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
22425 short lived bugs, that would allow language bindings to do surgeries
22428 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
22430 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
22431 where comparison was being done against an uninitialized
22432 value causing intermittant results depending on
22433 compiler flags. Also make it clearer that we aren't
22434 ever initializing the child as 0x0 (though this will
22435 be caught in gtk_widget_size_allocate())
22437 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
22439 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
22440 gtk_window_unset_transient_for() call after we do checks
22441 involving the old transient parent.
22442 [ From Lance Capser <lmc@cyberhighway.net> ]
22444 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
22446 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
22449 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
22451 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
22452 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
22454 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
22456 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
22457 `$@' is valid only in the build dir, not after we've done
22458 `cd $srcdir'. Also use `test -f' instead of less portable
22461 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
22463 * gtk/gtktext.c (correct_cache_insert): Rewrite
22464 for simplicity, and hopefully correctness.
22465 (Fixes bug #1322, which was a segfault when
22466 on some insertions with the properties around
22467 the insertion set up just wrong.)
22469 * gtk/gtktext.c (gtk_text_adjustment): When we receive
22470 a "changed" signal, clamp the new value to the adjustment
22471 bounds to avoid segfaulting if someone tries to change
22472 the adjustment to a bogus value. (Bug #1795)
22474 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
22476 * gtk/gtkmain.c: Ignore unexpected destroy notifies
22477 for children, for toplevel windows handle them
22480 * gtk/gtkplug.c: Add an unrealize handler so that
22481 we unref plug->socket_window when we are done
22484 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
22486 * gtk/gtktext.c (clear_area): Fix stupid signedness
22487 problem that was causing background to sometimes
22490 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
22492 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
22494 * gtk/gtkmenu.c (gtk_menu_position): Make
22495 sure we never position menus with negative x, y,
22496 since gtk_widget_set_uposition() can't handle that.
22498 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
22499 Modify the positioning code a bit so that we always
22500 put the top-left corner onscreen. (This is for
22501 UI reasons, gtk_menu_position() now takes care of
22502 gtk_widet_set_uposition() brokeness.)
22504 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
22506 * gtk/Makefile.am: fixed up things for -jx, x > 1.
22508 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
22510 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
22511 RC style that is passed in. The lack of the ref
22512 before was a bug. If people worked around this
22513 bug, this will introduce a slight memory leak
22514 in their code. The code should typically look like:
22516 rc_style = gtk_rc_style_new ();
22518 gtk_widget_modify_style (widget, rc_style);
22519 gtk_rc_style_unref (rc_style);
22521 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
22522 the style if it was already set.
22524 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
22525 style if it was set before.
22527 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
22529 * gtk/testgtk.c (main): Add a check to see if we
22530 are being run from the correct directory and
22531 to quit nicely if we are not.
22533 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22536 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
22538 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22541 queue resizes unconditionally (gtk_widget_queue_resize will figure
22542 what to do if the window is not realized).
22543 (gtk_window_move_resize): only recenter the window
22544 for GTK_WIN_POS_CENTER_ALWAYS.
22545 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22546 the same way as GTK_WIN_POS_CENTER.
22548 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
22550 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22551 with (!(info->last_flags & GDK_HINT_POS)) instead of
22552 (!info->last_flags & GDK_HINT_POS).
22554 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22555 new_height unconditionally, because we use these values even if
22556 !default_size_changed && !hints_changed.
22557 comented the (default_size_changed || hints_changed) case with
22558 respect to resize rejects from the window manager.
22560 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22561 in the zvt condition hack, since this includes the window hints, set
22562 the hints after the handling_resize case.
22564 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22565 window is initially shown with to the geometry.
22567 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
22569 * gtk/gtkwindow.c (gtk_window_move_resize):
22570 s/size_changed/default_size_changed/g so i know what's
22571 really going on (frying brain on smaller flame now).
22573 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
22575 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22576 we have size_changed upon handling_resize. this is a gross
22577 workaround for the broken zvt widget and should be removed in
22578 1.3 again (search for FIXME).
22579 Owen provided an accurate comment for this:
22581 /* We could be here for two reasons
22582 * 1) We coincidentally got a resize while handling
22584 * 2) Our computation of size_changed was completely
22585 * screwed up, probably because one of our children
22586 * is broken. It's probably a zvt widget.
22588 * For 1), we could just go ahead and ask for the
22589 * new size right now, but doing that for 2)
22590 * might well be fighting the user (and can even
22591 * trigger a loop). Since we really don't want to
22592 * do that, we requeue a resize in hopes that
22593 * by the time it gets handled, the child has seen
22594 * the light and is willing to go along with the
22595 * new size. (this happens for the zvt widget, since
22596 * the size_allocate() above will have stored the
22597 * requisition corresponding to the new size in the
22600 * This doesn't buy us anything for 1), but it shouldn't
22601 * hurt us too badly, since it is what would have
22602 * happened if we had gotten the configure event before
22603 * the new size had been set.
22606 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
22608 * gtk/gtkrc.c: deal properly with the fact that RC
22609 style lists may include rc styles more than once.
22611 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22612 unused static function.
22614 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22615 stack of directories of RC files currently being
22616 parsed and implicitely add them to pixmap path.
22618 This fixes a bug where the directory would get
22619 appended then overwritten by pixmap_path declarations.
22621 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22623 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22624 theme's exit function. (Patch from Peter Wainwright,
22627 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22628 Add a destroy() handler to take care of removing
22629 group for menu item. (Fixes bug #1197)
22631 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22632 in warning message.
22634 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
22636 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22637 roundtrip to figure window's width and height, since we know that
22638 anyways from widget->allocation.
22640 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
22642 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22643 the hints after we request the new size.
22645 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
22647 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22648 GTK_WIDGET_REALIZED() assertion - we can compute the
22649 hints before we are realized.
22651 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22652 hint changing so that we have a value of hints_changed
22653 when we decide whether to constrain the window size.
22655 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22657 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22658 change back to G_MAXINT.
22660 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
22662 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
22663 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
22664 contain uncluttered values.
22665 (gtk_window_compute_hints): simply assert that window is realized
22666 and that geometry_info is valid, since we rely on this anyways.
22667 (gtk_window_constrain_size): major cleanups to the code.
22668 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
22669 for the base size, instead of the minimums. use 32767 as max width
22670 and height (like in gtkwindow.c) instead of G_MAXINT.
22672 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
22674 * cleaned up the GtkContainer.need_resize flag handling mess, we
22675 only need to force resize requests when we were prematurely
22676 realized, or our widget tree was modified when we were temporarily
22677 hidden. handling these cases directly upon showing the window (i.e.
22678 while the GdkWindow is still unmapped) avoids the need to wait for
22679 a configure event response and therefore makes the GUI more snappier
22680 and avoids blank windows during the roundtrip.
22684 (gtk_widget_show): don't queue resizes on toplevels, they know how
22685 to deal with matters.
22687 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
22688 flag directly for not visible resize containers and spare us unecessary
22692 (gtk_window_realize): if we need to enforce premature size allocation,
22693 queue a container resize so we are correctly resized later on.
22695 (gtk_window_size_request):
22696 don't freak around with the ->need_resize flag,
22697 gtk_container_queue_resize() will care about that.
22699 handle initial resizing issues here, we can handle matters better in
22700 this place, especially since we know that our GdkWindow is still
22702 (gtk_window_move_resize):
22703 don't care about ->need_resize at all.
22704 handle size changes properly that occoured while we waited for a
22707 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
22709 * gtk/gtkwidget.c (gtk_widget_set_uposition):
22710 * gtk/gtkwindow.[hc] (gtk_window_reposition):
22711 Move the hint setting code from gtk_widget_set_uposition
22712 to here; set the hints so that we respect any previously
22713 set geometry hints.
22715 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
22716 change the window hints here or move the window here,
22717 let that happen in gtk_window_move_resize().
22719 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
22721 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
22722 to already queued resizes (and therefore redraws) on a widget, check
22723 its anchestry as well.
22725 * gtk/gtkcontainer.c:
22726 (gtk_container_queue_resize): clear resize widgets for resize
22727 containers before aborting prematurely. this is especially important
22728 for toplevels which may need imemdiate processing or their resize
22729 handler to be queued.
22730 (gtk_container_dequeue_resize_handler): added new internal function for
22733 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
22734 configure event, take possible changes in window position into account
22736 if we request a new window size, queue up a resize handler that will
22737 last until the configure event response arrives.
22738 combined the ->need_resize case (initial show) with the general size
22739 (hints) changed case and added even more comments.
22740 if !auto_shrink, only revert to the old allocation if the new size
22741 is smaller than the current allocation.
22743 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
22745 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
22746 gtk_window_set_geometry_hints
22747 gtk_window_set_default_size):
22748 When hints are set, queue a resize so that the hints will
22749 be eventually reset on the toplevel.
22751 * gtk/gtkwindow.c (gtk_window_show): Use
22752 gtk_window_compute_default_size(). Clear the need_resize flag
22753 on the initail map so that we don't unnecessarily trigger the
22756 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
22757 into separate functions. Compare the hints we are setting
22758 with what we set last time so that we can accurately
22759 tell when we need to reset the hints.
22761 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
22762 function to figure out the size from requisition
22765 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
22766 from fvwm to constrain a size to the geometry hints.
22768 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
22769 to compare two sets of geometry hints.
22771 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
22772 from gtk_window_set_hints(), just compute the hints,
22775 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
22776 code from gtk_window_move_resize() to separate function,
22779 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
22781 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
22782 structure into a new private structure.
22784 * gtkrc.c: Split GtkRcStyle into public/private.
22785 In the private part, add a list of pointers to the
22786 RcStyle lists this RcStyle participates in.
22788 * gtkrc.c: When a RcStyle is free, remove all
22789 lists referencing it from the
22790 realized_style_ht hash, and free those lists.
22792 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
22793 gtk_rc_init(), since that adds the default styles
22794 to the list of parsed RC files again.
22796 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
22798 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
22800 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
22801 checks that ensure that a widget's allocation is at least 1 in width
22802 and height. (GNOME note: this doesn't affect old panel code anymore,
22803 because GtkSocket will request width and height of at least 1 since
22806 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
22807 allocated yet (happens if the user realizes the window prematurely),
22808 size request and allocate it.
22809 (gtk_window_size_allocate): guard against guint underflows.
22811 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
22813 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
22814 in gtk_built_sources, so gtk.defs gets built prior to all other
22817 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
22820 invoke indent on gtkmarshal.*.
22821 rewrote source generation rules, use COPYING as oldest source tag for
22822 a piggyback rule to generate all sources from (don't touch it ;).
22823 major cleanups, strip spaces on build rules for GNU Make.
22825 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
22826 source and target files from commandline arguments. don't invoke indent.
22828 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
22830 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22831 notebook after switch to avoid drawing problems.
22832 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22834 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
22836 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22838 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
22840 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22841 notebook after switch to avoid drawing problems.
22842 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22844 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
22846 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22848 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
22851 we use window->need_resize from configure_event now, to indicate that
22852 the gtkwindow should keep its allocation (e.g. because the user resized
22853 the window through window manager handles). resize_count is now reliably
22854 used to figure whether we got the allocation we requested from the
22856 configure events get queued as resizes now, the real stuff (size
22857 computation and allocation) now only goes on in gtk_window_move_resize().
22858 GtkWindow's requisition now contains its *real* requisition (like all
22859 other widgets), *not* taking usize into account.
22860 geometry_info->last_{width|height} is now updated from set_hints() only
22861 so it always contains the last hints we set for the window manager.
22862 made some event handlers return TRUE instead of FALSE.
22863 the overall code should be much more straight forward now, and the
22864 significant code portions are accompanied by comments now.
22865 (gtk_window_set_hints):
22866 removed requisition argument and made it
22867 fetch the requisition through gtk_widget_get_child_requisition.
22868 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
22871 ensure that the widget is realized before calling
22872 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
22873 ensure that we got properly size requested and allocated before
22875 (gtk_window_configure_event):
22876 ignore plain window moves, or reallocate the widget tree through the
22877 resize queue otherwise.
22878 (gtk_window_move_resize):
22879 mostly rewrote this function to figure window manager hints more
22880 reliably, coalesce window moves and resizes to reduce configure events
22881 and do actuall size allocations.
22883 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
22885 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
22886 that have a resize pending, because a redraw is already queued for them.
22888 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
22889 hack to clear resize_widgets.
22891 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
22892 for resize containers prior to size allocation. (this is also a bit
22893 ugly, but avoids side effects for stopped emissions and is thus more
22895 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22897 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22898 function from gtk_tooltips_expose, as we connect to ::expose_event
22901 1999-08-18 Federico Mena Quintero <federico@redhat.com>
22903 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22905 (gtk_target_list_unref): Likewise.
22907 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22909 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
22911 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22912 guard against division by zero. (Fixes bug #1339)
22914 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
22916 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
22917 Prevent the trivial leak of information of allowing
22918 word motion when the entry is not visible.
22920 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
22922 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22923 modality to error dialog as well as confirmation dialogs.
22924 (Bug #1803, reported by Rosanna Wing Sze Yuen)
22926 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
22928 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22930 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22932 * gtk/Makefile.am (install-data-local): Solaris apparently
22933 has various troubles with ln -f; use rm first instead.
22934 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22936 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
22938 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22939 use `cp' followed by `rm' (the `rm' was already there).
22941 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22943 * configure.in: Fix autoconf warnings about cross compilation by
22944 trying to provide sane defaults for AC_TRY_RUN.
22945 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22946 put them into $(srcdir) when generated. Also add a dependency of
22947 gtksignal.h on gtkmarshal.h for -j builds.
22948 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22950 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
22952 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22953 GDK_THREADS_{LEAVE,ENTER} pair.
22954 (From Paul Fisher <pnfisher@redhat.com>)
22956 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
22958 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22959 width and height are always >0 (owen).
22961 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
22963 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22964 change that assured that a widget's allocated with and height are
22965 always >1, since this breaks *buggy* panel code. unfortunately this
22966 back-breaks the gimp's color selector.
22968 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22969 allocation is always >0 in width and height, before sending the
22970 configure event; this is a *gross* hack to get the gimp back to work.
22972 * marked both cases with TODO-1.3
22974 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
22976 * gtk/gtktext.c: Don't display wrap indicators when
22977 text is not editable and word wrap is on.
22979 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
22981 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22982 option menus here as they are not derived from menu shell, assure that
22983 the option menu has a menu we can add items to.
22985 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
22987 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22988 width/height to (gint) before calculations and check against < 0 to
22989 avoid guint wraparounds.
22991 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
22993 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22994 width and height is never zero. sanity check both dimensions against
22995 32767 and issue a warning if the allocation is greater than that.
22997 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
22999 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
23000 to g_main_pending() as well.
23002 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
23004 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
23005 call to g_main_iteration() - since that will regrab
23006 GTK+ lock to process events.
23008 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
23011 - Regularize with the rest of GTK+ by making widget->requisition
23012 not reflect the set_usize()
23013 - Always recompute geometry hints, then check if they
23014 changed before sending them to the X server. The
23015 previous checks for changes would fail in a number
23018 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
23020 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
23022 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
23026 - Instantaneously update on modifier key presses
23027 - Allow cancellation of the drag with Escape.
23029 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
23031 * gtk/testgtk.c (create_handle_box): Set the policy
23032 to auto_shrink - otherwise the appearance is rather
23033 strange when flipping between horizontal and vertical.
23035 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
23037 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
23038 (gtk_window_set_default_size): don't change a value if it's < 0.
23041 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
23043 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
23045 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
23047 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
23048 add an extra "/" when concating "/" + filename.
23049 (From Matt Grossman <mattg@oz.net>)
23051 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
23053 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
23054 for fg_gc if we set it for drawing pixmap.
23056 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
23058 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
23060 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
23061 already set, call old engine's destroy function and
23062 unref the old engine.
23064 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
23066 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
23068 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
23070 * gtk/gtkaccelgroup.h: mark certain functions as internal.
23072 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
23074 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
23075 expand behaviour changed.
23077 * gtk/gtklabel.c (gtk_label_set_pattern):
23078 (gtk_label_set_justify):
23079 (gtk_label_set_line_wrap):
23080 don't bother invoking queue_clear, the reallocation does
23081 that for us, always free_words so the upcoming resize will
23082 relayout the label's contents.
23084 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
23086 * applied argument implementation patches from Elena Devdariani
23089 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
23090 ::space_style, ::relief
23091 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
23092 * gtk/gtkpreview.c: ::expand
23093 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
23094 * gtk/gtknotebook.c: ::homogeneous
23095 * gtk/gtklabel.c: ::wrap
23096 * gtk/gtklist.c: ::selection_mode
23097 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
23098 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
23099 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
23100 * gtk/gtkclist.c: ::sort_type
23101 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
23102 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
23104 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
23106 * gtk/gtkstyle.c: Removed ill-thought-out part of last
23109 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
23111 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
23112 counting right when we have to attach a new style
23113 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
23115 * gtk/gtkstyle.c: Documented the refcounting
23116 peculularities of gtk_style_attach.
23118 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
23120 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
23123 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
23124 of GTK_TOPLEVEL for creating the window.
23126 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
23128 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
23129 the last argument (reported by Per Winkvist).
23131 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
23133 Fixes for invisible XOR lines (Frank Loemker
23134 <floemker@TechFak.Uni-Bielefeld.DE>)
23136 * gtk/gtkclist.c (gtk_clist_realize): Always use
23137 a non-zero pixel for GDK_XOR.
23139 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
23140 Use GDK_INVERT instead of GDK_XOR.
23142 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
23144 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
23145 signals if h/voffsets differ from adjustment values.
23146 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
23148 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
23150 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
23151 ::selection-done emissions up to the topmost menu shell.
23153 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
23155 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
23156 the user data on the window before destroying it.
23158 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
23159 unrealize handler to take care of destroying
23160 notebook->panel properly.
23161 (Bug #1198 - Morten Welinder <terra@diku.dk>)
23163 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
23164 of g_new and g_realloc to stop memory leak. (Actually,
23165 we could just use g_realloc(), but I'm not 100% sure
23167 (Bug #1196 - Morten Welinder <terra@diku.dk>)
23169 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
23171 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
23173 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23176 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
23177 with bin/button confusion.
23179 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
23181 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
23182 and show how preselection of radio items is done.
23184 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
23186 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
23187 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
23188 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
23189 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
23190 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
23191 * gtk/gtktable.c (gtk_table_attach):
23192 * gtk/gtklist.c (gtk_list_insert_items):
23193 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
23194 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
23195 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
23196 * gtk/gtkbin.c (gtk_bin_add):
23197 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
23198 * gtk/gtkfixed.c (gtk_fixed_put):
23199 * gtk/gtklayout.c (gtk_layout_put):
23200 general fixups to container_add logic. always realize child if
23201 child->parent is realized, only map the child and queue a resize
23202 if child and child->parent are both visible.
23204 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
23206 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
23207 instead of gtk_container_foreach to walk and unrealize children, so
23208 composite children get also unrealized.
23209 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
23210 (gtk_widget_map): assert that the widget is visible (basic constrain).
23211 (gtk_widget_real_map): assert that the widget is realized (basic
23214 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
23216 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
23218 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
23220 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
23221 file for iso-8859-2 locales.
23223 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
23225 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
23227 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
23228 (Pointed out by andy@rz.uni-karlsruhe.de and others).
23229 Remove some suspicious and useless lines.
23231 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
23233 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
23234 width,height = 0, 0 to mean - here to edge of window,
23235 instead of -1, -1, since the former is all we support.
23237 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
23239 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
23240 when removing from quit_functions list.
23242 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
23244 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
23246 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
23248 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
23249 When redrawing characters on non-visible entry, use appropriate
23250 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
23252 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
23254 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
23255 from drag coordinates.
23256 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
23257 use drag_dest_cell.
23259 * gtk/gtktree (drag_dest_cell)
23260 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
23263 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
23265 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
23266 translate_* fields.
23267 (gtk_item_factory_finalize): invoke translate_notify independant from
23269 (gtk_item_factory_set_translate_func): likewise.
23270 (gtk_item_factory_destroy): only remove ifactory pointer from those
23271 widgets that belong to us (stupid me).
23273 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
23275 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
23276 rc_style list when lookup succeeeds.
23278 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
23280 * gtk/gtkctree.c (resync_selection):
23281 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
23282 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
23285 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
23287 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
23288 Add some missing GDK_THREADS_ENTER()/LEAVE around
23289 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
23291 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
23293 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
23294 rather than emit_by_name.
23296 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
23297 on the widget across multiple signal emissions.
23298 (gtk_editable_delete_text): same here.
23299 (gtk_editable_class_init): set widget_class->activate_signal after
23300 editable_signals[ACTIVATE] has been created.
23302 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
23304 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
23305 position here prematurely -- we might not have the
23306 right ->min_position and ->max_position yet.
23308 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
23310 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
23311 Add error traps so if the other end of the connection
23314 * gtk/gtkselection.c (gtk_selection_notify): Clean
23315 up properly when selection property retrieval fails.
23317 * gtk/gtkselection.c (gtk_selection_request): Correctly
23318 reject SelectionRequest notifies where the handler
23321 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
23323 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
23324 when we've previously highlighted.
23326 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
23327 emit two "drag_leave" signals for Motif drops.
23329 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
23330 back the correct status messages when dropping from
23331 Motif onto a proxy window that is rejecting the
23334 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
23336 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
23337 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
23338 to compare two argument values. added gtk_arg_to_valueloc() to set a
23339 variable from an arg through its location (pointer).
23341 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
23342 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
23343 as gfloat*, uchars are collected as guchar*, ints are collected as
23346 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
23348 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
23349 Include <string.h> instead of <strings.h>.
23351 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
23352 (actually, a lot more duplicate includes occur if
23353 you trace through the sequence of #include's)
23354 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
23356 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
23358 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23359 gtk-a-higuti-990322-[0-3]
23361 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23362 that was causing -DX_LOCALE not to work.
23364 * gtk/gtkrc.c (gtk_rc_init):
23365 X_LOCALE will never have LC_MESSAGES defined
23367 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
23369 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
23370 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
23372 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
23373 left/right as well (gtk-michael-980726-0.patch.gz).
23375 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
23376 for pointer values, use gchar instead of char. fixed uline allocation
23377 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
23378 chunks instead of G_ALLOC_ONLY.
23379 (gtk_label_size_request): always alter requisition as passed and leave
23380 widget->requisition alone.
23381 (gtk_label_set_text): allow NULL strings.
23382 (gtk_label_new): likewise.
23384 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
23386 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
23388 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
23390 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
23391 *and* mapped (i.e. drawable).
23392 (gtk_bin_expose): only send exposes to drawable children.
23394 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
23395 (gtk_box_expose): only send exposes to drawable children.
23397 * gtk/gtkhscale.c (gtk_hscale_draw):
23398 * gtk/gtkvscale.c (gtk_vscale_draw):
23399 hm, this is an ugly one. we first compute the size of our trough area
23400 here (window relative) and then check intersection with the draw_area
23401 which is parent relative because we're a NO_WINDOW widget, so we need
23402 to offset the trough area by allocation.x and allocation.y before the
23403 check. (this must not be done for the background area though, since
23404 that's already computed parent relative).
23406 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
23408 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
23409 unrealize title buttons.
23411 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
23413 * gtk/gtkclist.c (gtk_clist_column_title_passive)
23414 (gtk_clist_column_title_active):
23415 only connect/disconnect to GtkWidgetClass::event to block mouse events.
23417 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
23418 zero initialize event, removed superfluous gdk_window_get_pointer call
23420 * gtk/gtklist.c (gtk_list_vertical_timeout)
23421 (gtk_list_horizontal_timeout): removed superfluous
23422 gdk_window_get_pointer call
23424 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
23426 * plugging problems reported by "Bruce Mitchener, Jr."
23427 <bruce@puremagic.com> due to a purify session.
23431 (gtk_style_unref): assert ref_count to be > 0.
23433 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
23435 (gtk_clist_set_shift): likewise.
23437 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
23440 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
23441 event before sending it and set send_event to TRUE (which needs to
23442 be done for *all* synthesized events).
23443 (gtk_list_vertical_timeout): likewise.
23445 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
23448 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
23449 to TRUE when synthesizing events.
23451 [ *** end of merges from 1.2 *** ]
23453 1999-11-21 Tor Lillqvist <tml@iki.fi>
23455 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
23456 (or copied from gdkconfig.h.win32 on Win32, sigh).
23458 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
23460 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
23462 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
23464 * gdk/gdkconfig.h.win32: New file.
23466 * gdk/win32/makefile.cygwin: Build just a static archive here.
23468 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
23469 for the DLL from the static archive built above.
23471 * gdk/gdk.def: Moved here from the win32 subdirectory.
23473 * gdk/win32/*: Adapt for the changed private struct organisation.
23475 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
23477 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
23479 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
23480 for wheel mice (buttons 4 and 5).
23482 1999-11-18 Tor Lillqvist <tml@iki.fi>
23484 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
23485 drawables use just the pixel field in the foreground and
23486 background GdkColor of the GdkGC.
23488 gdk_gc_set_{fore,back}ground() are called in the GIMP with
23489 GdkColors containing uninitialized (red,green,blue) fields, and
23490 just the pixel field filled in, and furthermore in the
23491 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
23492 It thus turns out that we really don't need to have the full
23493 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
23494 it later to have just the pixel values.
23496 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
23498 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
23500 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
23502 * docs/gtkfaq.sgml: threads example from Erik Mouw.
23503 New question on GtkLabel background colors.
23505 * docs/gtk_tut.sgml:
23506 - Correct the example code callback
23507 function definitions.
23508 - Update the gtkdial example code, from Frans van Schaik.
23509 - Update setselection.c to current API.
23511 * examples/Makefile examples/*/*.c: Update to code
23512 listed in tutorial.
23514 1999-11-10 Tor Lillqvist <tml@iki.fi>
23516 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
23517 subrange table (from the "Developing International Software for
23518 WIndows 95 and Windows NT" book) was missing the Hangul syllable
23519 block... Get the loaded font's charset correctly.
23521 (Note that this, and the other *-win32.c files, still really are
23522 the old ones, the win32 subdirectory is not ready for compilation
23523 yet after the reorg.)
23525 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
23527 * gtk/gtkclist.c: Fix off-by-one bug in parameter
23530 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
23532 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23533 on results of XQueryDeviceState().
23535 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
23537 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23538 we need to accesss only ->children. We need an accessor
23541 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23542 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23543 to get rid of gdkx.h include.
23545 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23546 and random references to 'None'.
23548 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23549 Get rid of unused #include <gdk/gdkx.h>
23551 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23552 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23555 1999-11-08 Tor Lillqvist <tml@iki.fi>
23557 * gdk/win32/gdkdraw.c
23558 * gdk/win32/gdkfont.c
23559 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23560 following yesterday's changes. (Unrelated to Owen's reorg.)
23562 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
23564 * gdk/x11/gdkinput-gxi.c: Add missing include,
23565 fix GdkWindowPrivate => GdkDrawablePrivate.
23567 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23569 * gdk/x11/Makefile.am (xinput_sources): Add missing
23570 backslash to fix building with --with-xinput=none
23572 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
23574 Move all X specific code into the x11/ directory.
23575 Aside from shuffling things around, did the following:
23577 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23578 gdk_arg_context_* - a simple argument parsing system
23579 in the style of popt.
23581 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23582 gdk/x11/gdkprivate-x11.h:
23583 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
23584 add ->klass and ->klass_data fields. The klass_data
23585 field points to an auxilliary structure that is
23586 windowing system dependent.
23588 * gdk/gdkfont.c: Make most of the measurement functions
23589 simply wrappers around gdk_text_extents().
23591 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
23592 _gdk_font_strlen() function that hides the weird
23593 behavior in gtk+-1.[02] where a string is interpreted
23594 differently for 8-bit and 16-bit fonts.
23596 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23597 to store common code for synthesizing double/triple
23600 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23601 Make all the function that modify an existing GC
23602 simply wrappers around gdk_gc_set_values().
23604 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23605 for throwing out later.
23607 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23608 GdkImagePrivate and GdkColormapPrivate to have a
23609 windowing system dependent part (GdkFontPrivateX etc.)
23610 that "derives" from the system-independent part.
23612 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23613 Got rid of the included-source-files for XInput in
23614 favor of automake conditionals. (Which didn't exist
23615 when XInput support was originally added.)
23617 * gdk/gdkrgb.c: Remove the visual id from the debugging
23618 statements since that is X11 specific; print out
23619 type/depth info instead.
23622 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
23624 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23625 loading duplicates of hashed fonts.
23627 * gdk/gdk.c (gdk_keysym_convert_case): rename
23628 gdk_XConvertCase to gdk_keysym_convert_case, allow
23629 results to be NULL in the GTK+ style.
23631 * gdk/gdkcompat.h: Started compatibility header
23634 1999-11-07 Tor Lillqvist <tml@iki.fi>
23636 * gdk/win32/gdkprivate.h: New font private structures, related to
23639 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23640 gdk_font_list_free(). On X11, will just be wrappers to
23641 XListFonts() and XFreeFontNames(). On Win32, the code previously
23642 in gtkfontsel.c is now here.
23644 New function gdk_font_xlfd_create(). On X11 will get the FONT
23645 property of the font (for GDK_FONT_FONTs), or call
23646 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23647 builds a XLFD style name from the font information in the LOGFONT
23650 New function gdk_font_xlfd_free(), which correspondingly frees the
23651 string returned by gdk_font_xlfd_create().
23653 Implement fontsets on Win32. Add a function that iterates over a
23654 wide char string and calls a callback function for each substring
23655 of wide chars from the same Unicode subrange (and thus probably
23656 available in the same real font).
23658 Improve the XLFD emulation a bit.
23660 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23662 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
23663 Beta3, WM_IME_CHAR messages don't seem to contain the composed
23664 multi-byte char as with the Active IMM on Win9x. Oh well, handle
23665 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
23666 ImmGetCompositionStringW() to get the composed Unicode chars.
23668 * gdk/win32/gdkgc.c
23669 * gdk/win32/gdkdraw.c: Changes needed because of the font private
23672 * gdk/win32/gdk.def: Add the new functions.
23674 1999-11-04 Tor Lillqvist <tml@iki.fi>
23676 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
23677 get the Platform SDK to get <dimm.h>.
23679 * gdk/win32/gdkevents.c: More event handling fixes and
23680 simplification. Never generate motion events with is_hint true. We
23681 used to do that on bogus grounds earlier. Windows sends
23682 WM_MOUSEMOVE messages on button events even if the mouse hasn't
23683 moved, ignore these.
23685 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
23687 * gdk/win32/gdkglobals.c
23688 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
23689 the TrackMouseEvent function, and use it.
23691 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
23692 char before calling WideCharToMultiByte in order to get a string
23693 for the window title.
23695 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
23697 * gdk/win32/gdk.def: Remove obsolete functions.
23699 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
23700 /nodefaultlib and /defaultlib switches.
23702 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
23704 1999-10-31 Tor Lillqvist <tml@iki.fi>
23706 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
23709 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
23710 same type as GdkWChar, especially on Win32.
23712 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
23714 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
23715 before passing to Windows GDI for drawing etc. Convert to the
23716 system default codepage before passing to Windows as window
23719 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
23720 support changing input locale on the fly.
23722 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
23723 on-the-fly changes. Convert incoming characters from the current
23724 codepage to Unicode (and then to a UTF-8 multi-byte string) based
23725 on the current input language. Use keysym<->Unicode mapping tables
23726 and functions borrowed from xterm sources.
23728 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
23729 editions of Win9x, use the ActiveX-based Active IMM (Input Method
23730 Manager) if available. IMEs and the Active IMM are available under
23731 the disguise of Chinese, Korean and Japanese support for IE and
23732 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
23733 support is present in all editions (as long as you install it).
23735 Call DispatchMessage from gdk_events_queue() (and thus
23736 gdk_WindowProc()), instead of duplicating the code in
23739 Reworked the grab handling and propagation code, factored out
23740 duplicated code snippets into separate functions. Other cleanups,
23743 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
23744 the <dimm.h> header describing the Active IMM.
23746 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
23747 just do the same as for "single" fonts.
23749 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
23750 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
23751 the new keysyms from gdkkeysyms.h.
23753 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
23754 fontset, so that gtkentry uses wide characters.
23756 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
23757 GTk+'s system directory "gtk+", not "gtk".
23759 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
23761 * docs/gtkfaq.sgml: FAQ update
23763 1999-10-21 Tor Lillqvist <tml@iki.fi>
23765 * gdk/win32/gdkprivate.h: Add more font private data.
23767 * gdk/win32/gdkfont.c
23768 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
23769 fonts and strings. Now works much better. You still have to
23770 have a correct font selected, though. No fontset emulation yet.
23772 1999-10-19 Tor Lillqvist <tml@iki.fi>
23774 * gtk/maketypes.awk: Use G_OS_WIN32.
23776 * gtk/gtk.def: Add some missing entry points. Also some non-public
23777 ones, but PyGTK porter claims to need them.
23779 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
23780 built-in type generation.
23782 1999-10-14 Tor Lillqvist <tml@iki.fi>
23784 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
23785 GDK_FONT_FONT fonts (which is all we have for now, we don't
23786 emulate fontsets). The X11 version uses plain XDrawString in that
23787 case, too. The string passed to gdk_draw_text_wc seems to be in
23788 fact (at least, when used by gtkentry and gtktext) either in a
23789 single-byte charset, or a DBCS. Not Unicode.
23791 This fixes the problem in gtkfontsel, where even if you had
23792 selected a font with a non-Latin1 charset (windows-greek, for
23793 instance), the preview still used Latin-1 glyphs.
23795 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
23796 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
23797 (gdk_font_load): Recognize the demibold etc weights, even if we
23798 don't have the corresponding constants in the headers.
23799 (gdk_font_hash_insert): Use same hash mechanism as in the X11
23800 version. Should save font resources a bit, when we don't have
23801 multiple HFONTs for the same font.
23803 * gdk/win32/gdkprivate.h: Add the names field as in the X11
23806 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
23808 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
23811 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
23813 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
23814 layout support (as mentioned on
23815 http://www.jcinteractive.com/gnome-ui/software/widgets/)
23817 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
23820 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
23822 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
23824 * configure.in (ALL_LINGUAS): Added Galician (gl)
23826 1999-10-05 Tor Lillqvist <tml@iki.fi>
23828 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
23830 * gdk/win32/gdkcompat.c: New file, actually provide an
23831 implementation for the deprecated functions. (Just temporarily.)
23833 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
23835 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
23837 * gdk/win32/gdk.def gtk/gtk.def: Updates.
23839 1999-10-05 Kjartan Maraas <kmaraas@online.no>
23841 * configure.in: Added "uk" to ALL_LINGUAS.
23843 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
23845 * configure.in: correct checking for BeOS check
23850 * gtk/gtkitemfactory.c
23852 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
23854 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23856 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
23857 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
23858 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
23861 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
23863 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
23864 Fix a reference to window_private->destroyed.
23866 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
23867 (ugly) setting of an internal GdkWindow member to use
23868 a _slightly_ cleaner macro.
23870 * gdk/gdkprivate.h: Split GdkWindowPrivate into
23871 GdkDrawablePrivate and GdkWindowPrivate.
23872 Add extra macros for accessing GDK_DRAWABLE_ components.
23874 * *.[ch]: Massive adjustments for the above, use the
23875 new macros in a lot of places.
23877 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
23879 * gdk/gdktypes.h: Make GdkDrawable the base type,
23882 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
23884 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
23886 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
23888 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
23890 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
23892 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
23893 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23895 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23897 * docs/gtk-config.1: Now autogenerated.
23898 * docs/Changes-1.4.txt: started
23900 1999-10-03 Tor Lillqvist <tml@iki.fi>
23902 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23903 to #ifdef also here.
23905 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23906 Owen did to the X11 backend.
23908 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23909 ScrollWindowEx when blitting inside a window, it can't be correct
23910 in the general case.
23912 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23913 WM_GETMINMAXINFO is easier.
23915 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23916 depth equal to the bitspixel value, not the visual's depth.
23918 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23919 to 24 even if the bitspixel value is 32.
23921 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23922 need to check for depth==32 when bpp==32, depth will always be 24.
23924 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
23926 * docs/Changes-1.4.txt: Started
23928 * gtk/Makefile.am (gdk_headers): Include all the new headers.
23930 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23932 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23935 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23936 header to gdkinputprivate.h.
23938 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23939 unused since before 1.2.
23941 1999-09-30 Tor Lillqvist <tml@iki.fi>
23943 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23944 expand possible hex escapes in the font family (put there by
23945 logfont_to_xlfd if the font name isn't a legal XLFD font family,
23946 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23947 On Win32, add hex escapes here, too.
23949 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
23951 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23952 to #ifdef GDK_WINDOWING_X11.
23954 [ Merges from gtk-1-2 ]
23956 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
23958 * configure.in: fixed "GNU Make" check to pass with new make version
23961 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
23963 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23964 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23965 AM_PATH_GTK() macros don't get confused by the -pre1.
23967 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
23969 * configure.in (REBUILD): Change check for perl5
23970 to check explicitely for v >= 5.002. (5.001
23971 does not work with our scripts.)
23973 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
23975 * configure.in: evaluate $PERL for the perl version check. added
23976 --disable-rebuilds to give the user an option to completely disable
23977 any source autogeneration rules.
23979 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
23981 * configure.in: evaluate $ac_make when checking for GNU Make.
23983 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23985 * docs/Makefile.am: added generation.txt.
23987 * Makefile.am: require automake 1.4, build README from README.in and
23988 INSTALL from INSTALL.in in dist-hook.
23991 * INSTALL.in: new files to autogenerate README and INSTALL from.
23993 * configure.in: figure whether we have GNU Make
23995 * docs/generation.txt: minor additions/corrections.
23997 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
23999 * docs/gtkfaq.sgml: FAQ Update
24001 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24003 * configure.in: Fix autoconf warnings about cross compilation by
24004 trying to provide sane defaults for AC_TRY_RUN.
24006 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
24009 * ltmain.sh: upgrade to libtool 1.3.3
24011 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
24013 * INSTALL: Indicate that the --with-glib= configure
24014 time flag is unsupported.
24016 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
24018 * docs/generation.txt: Added a file that gives
24019 documenation about the autogeneration process for
24020 various autogenerated files.
24022 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
24024 * configure.in (LIBS): Look for libgmodule in the
24027 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
24029 * docs/gtk_tut.sgml: Removed references to
24030 code examples in my directory on gtk.org as
24031 they should all be in the tutorial now.
24033 * docs/gtk_tut.sgml: Added sources for dial-test
24034 and scribble-xinput programs that were previously
24037 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
24039 * TODO: Added entry about menu keyboard navigation, removed
24040 some finished items.
24042 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
24044 * acinclude.m4: Standardize on func_dgettext
24045 not func_gettext, so that the checks for dgettext
24046 actually are paid attention to.
24048 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
24050 * configure.in (LIBS): Add $INTLLIBS into $LIBS
24051 directly, rather than repeating the checks for
24054 * INSTALL: Added information about gettext and
24057 * acinclude.m4 (LIBM): Check for dgettext, not
24058 just gettext. This should hopefully fix things wrt
24059 systems with old versions of GNU gettext installed.
24061 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
24063 * configure.in (LIBS): Look for libgmodule in the
24066 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24068 * autogen.sh: add --enable-maintainer-mode
24070 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
24072 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
24074 * docs/gtk-config.1.in:
24076 configure.in: gtk-config is now generated.
24078 * docs/gtk-config.1: Removed, now generated.
24080 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
24082 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
24083 handle CreateNotify itself, still put out a debuging message for
24084 --gdk-debug=events. made the ReparentNotify debugging message more
24086 wrap xcoords translation for ConfigureEvents into an error trap,
24087 a destroy event may already be pending, and in that case, the
24088 actuall coordinate values are not at all critical.
24090 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
24092 * gdk/gdkcc.c: Stop leaking the color_hash all over
24093 the place. Simplify and improve the logic.
24095 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
24097 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
24098 for prototypes and function implementations consistent (reported
24101 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
24103 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
24104 send_event set in debugging output.
24105 (gdk_compress_exposures): default initialize the event so we don't
24106 operate on bogus values (namely send_event).
24108 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
24110 * gdk/gdkwindow.c: When we receive an unexpected
24111 destroy notify on one of our windows, don't just
24112 warn about it, also mark our windows as destroyed.
24114 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
24116 * gdk/gdkfont.c (gdk_font_hash_insert): Add
24117 name => font and name => fontset hashes. The
24118 name => fontset hash is a _big_ win since we
24119 weren't previously caching fontsets at all and loading
24120 fontsets is expensive. The name => font hash
24121 is less of a win, but it does save us from doing
24122 repeated XQueryFont calls on the same font.
24124 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
24125 list so we can remove font/fontset from hash.
24127 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
24129 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
24130 and slightly confusing test. [ XInternAtom (,,TRUE)
24131 will never return None ].
24133 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
24135 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
24136 gdk/gdkwindow.c (gdk_window_set_hints):
24138 Don't omit setting the properties if flags == 0 -
24139 there may be an existing set of properties there
24140 already. (Very old bug. Would it be better to
24141 delete the property instead?)
24143 * gdk/gdkselection.c (gdk_selection_property_get): Fix
24144 spelling error in comment.
24146 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
24148 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
24149 to avoid stomping over gdk_error_warnings.
24151 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
24152 as (bits_per_pixel + 7) / 8. This gives the same
24153 result as before for multiples of 8, but actually
24154 a "reasonable" value for 1bit or 4bit displays.
24156 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
24158 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
24161 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
24163 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
24164 discarding configure events.
24166 1999-08-18 Federico Mena Quintero <federico@redhat.com>
24168 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
24169 refcount is greater than zero.
24171 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
24173 * gdk/gdkfont.c (gdk_font_unref): Likewise.
24175 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
24177 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
24179 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
24181 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
24182 that format 32 => sizeof(item) == 4. It really is
24185 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
24187 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
24188 core dump at all on X IO errors, only core dump
24189 if --enable-debug for X errors.
24191 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
24193 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
24194 unknown window:" message. disabled ConfigureNotify discarding code,
24195 because it led to events being processed out of order.
24197 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
24199 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
24201 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
24202 we export this function, supress error warnings and don't reset the
24203 error code in the first half of this function.
24205 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
24206 code (instead of just -1) so gdk_error_trap_pop() reveals something
24207 actually informative about the error that happened.
24210 don't rely on gdk_error_code being -1 if an error occoured, but just
24211 gdk_error_code != 0.
24213 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
24215 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
24216 pointer *before* invoking the filter function, so we at least don't
24217 crash if a filter is removed that is currently executed. window filters
24218 *really* need to be made truely reentrant at some point.
24220 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
24222 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
24223 PropertyNotify debug messages.
24225 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
24227 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
24229 * gdk/gdkim.c: Fix cut-and-paste errors for
24230 x/y and PreeditAttributes/StatusAttributes.
24232 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
24234 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
24235 G_MAXINT to 2^16 to alleviate overflow problems in
24236 various window managers.
24238 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
24240 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24243 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
24245 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
24246 Initialize size_hints.x and size_hints.y because kwm
24247 brokenly pays attention to them.
24248 (Bug #1181 - Lars Heete <hel@admin.de>)
24250 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
24252 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
24253 return value of gdk_list_visuals().
24254 (Bug #1193 - Morten Welinder <terra@diku.dk>)
24256 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
24258 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
24259 XSetIMValues to (void *) when comparing to NULL, to workaround
24260 the problem of some compilers barfing since older X headers don't
24261 have the prototype for it.
24263 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
24265 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
24266 for pseudocolor where colormap->colors was double
24269 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
24270 color value in the hash table with the pixel filled
24271 in so when we do later hash table lookups, the color
24274 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
24276 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
24279 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
24281 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
24282 pointed out by Morten Welinder <terra@diku.dk>.
24284 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24286 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24287 default filter from the list
24289 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24291 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24292 default filter from the list
24294 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
24296 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
24298 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
24299 g_strdup_printf instead of calcing the length separately
24301 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
24303 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
24304 that we don't do in many other places. (Fixing duplicate
24305 #include of config.h)
24307 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
24308 Otherwise, #ifndef XINPUT_NONE check in the latter
24309 doesn't work. (Bug #546)
24311 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
24313 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
24314 "None" case insensitive.
24316 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
24318 * gdk/gdkselection.c:
24319 Add error traps so if the other end of the connection
24322 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
24324 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
24325 dest_xid field into two fields - one for the window
24326 to send in messages, one to indicate the last looked
24327 up window for caching purposes. This is needed, so
24328 that Leave messages get the correct window.
24330 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
24332 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
24333 Fix warning created by people mucking around
24334 with the gsource API.
24336 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
24337 Change mapping between GIOCondition and GdkInputCondition
24338 to match the way the Linux kernel does it. This should
24339 fix problems where closed pipes were no longer signalling
24340 GDK_INPUT_READ on systems with a native poll().
24342 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
24344 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
24345 explicitly for the string "None" - it is in the XPM
24346 spec and some servers treat unknown colors in odd ways
24347 (like asking the user!)
24349 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24351 * gdk/gdkevents.c: made "->" into a "." of previous change so
24354 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
24356 * gdk/gdkevents.c (gdk_compress_exposures): Set the
24357 window field of the event structure before calling
24360 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
24362 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
24363 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
24365 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
24367 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
24368 intermediate text property - prevents major memory
24369 leak when gdk_use_mb.
24370 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
24372 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
24374 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24375 gtk-a-higuti-990322-[0-3]
24377 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
24378 sizeof(wchar_t) != sizeof (GdkWChar)
24380 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24381 that was causing -DX_LOCALE not to work.
24383 * gtk/gtkrc.c (gtk_rc_init):
24384 X_LOCALE will never have LC_MESSAGES defined
24386 * gdk/gdk.c (gdk_init_check):
24387 Remove --xim-preedit and --xim-status from argv properly.
24389 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
24390 that the client window is present on the X server
24391 before we pass it to the input method.
24393 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
24395 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
24396 if --display is specified on the command line, than
24397 the drag window will not be created on that display.
24399 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
24401 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
24402 lookups with only_if_exists == TRUE were inserting
24403 bogus values into the atom cache.
24405 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
24407 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
24408 then reset it to NULL.
24412 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
24413 key for g_hash_table_remove() in both functions, this prevents us
24414 from accessing possibly uninitialized portions of a GdkColor structure
24415 where we are only interested in its pixel value.
24417 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24419 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24420 font hash table, if we have a GdkFontPrivate entry for this font
24421 already, simply increment its reference count, provided by Olaf Dietsche
24422 <olaf.dietsche+list.gtk@netcologne.de>.
24424 1999-09-21 Tor Lillqvist <tml@iki.fi>
24426 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
24429 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
24430 unused variables, leftovers from the X11 version.
24432 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
24434 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
24435 downcase fields on X11.
24437 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24439 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
24440 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
24442 1999-09-17 Tor Lillqvist <tml@iki.fi>
24444 * gdk/win32/gdk.def: Add gdk_threads_mutex.
24446 * gtk/makefile.msc: Correct path to libintl.
24448 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
24449 use of gint vs. int, and gint vs. gboolean in headers and
24450 definitions. Use GtkType for the *_get_type functions. Note that
24451 these changes preserve binary compatibility.
24455 * gdk/gdk.h: Fix inconsistencies: gint vs int.
24459 * gtk/gtkmenufactory.c
24460 * gtk/gtknotebook.c
24461 * gtk/gtkwidget.c: Fix inconsistencies, also gint
24464 * gtk/gtkcolorsel.[ch]
24465 * gtk/gtkcombo.[ch]
24466 * gtk/gtkdrawingarea.[ch]
24467 * gtk/gtkgamma.[ch]
24468 * gtk/gtkhandlebox.[ch]
24469 * gtk/gtkhpaned.[ch]
24470 * gtk/gtkhruler.[ch]
24472 * gtk/gtkpreview.[ch]
24473 * gtk/gtkruler.[ch]
24474 * gtk/gtksocket.[ch]
24475 * gtk/gtkstatusbar.[ch]
24476 * gtk/gtktoolbar.[ch]
24477 * gtk/gtkvbbox.[ch]
24478 * gtk/gtkvpaned.[ch]
24479 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
24482 * gtk/gtkgamma.h: Fix bug, missing () in call of
24483 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
24485 1999-09-14 Tor Lillqvist <tml@iki.fi>
24487 * gdk/gdkcolor.c (gdk_colormap_new)
24488 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
24489 colormap->colors was allocated twice.
24491 * gdk/win32/gdk.c: Remove some unused stuff.
24493 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
24496 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
24497 * gtk/gtklabel.h (gtk_label_get_type)
24498 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
24499 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
24500 in a couple of places, not guint.
24502 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24504 * configure.in,po/et.po: added Estonian language file
24506 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24508 * configure.in,po/da.po: added Danish file
24510 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
24512 * docs/gtkfaq.sgml: Minor FAQ Update
24514 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
24516 * docs/gtkfaq.sgml: FAQ update
24518 1999-08-27 Tor Lillqvist <tml@iki.fi>
24520 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
24521 way to get window contents continually refreshed while resizing. I
24522 didn't like the effects myself, so it's not on by default.
24524 * gdk/win32/gdkprivate.h: New flag variable
24525 gdk_event_func_from_window_proc, FALSE by default.
24527 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
24528 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
24529 are passed --gdk-event-func-from-window-proc.
24531 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
24532 and we have am event_func, call it instead of enqueing the event.
24534 1999-08-23 Tor Lillqvist <tml@iki.fi>
24536 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24537 Kelley: Set expose_count in GdkEventExposes correctly.
24539 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24540 MULTIPLE_WINDOW_CLASSES).
24542 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24543 for bug in NT, apparently NT *does* draw the end pixel, too, in
24544 LineTo with a one-pixel pen, so we don't have to do it ourselves.
24546 1999-08-21 Tor Lillqvist <tml@iki.fi>
24548 Improvements by Hans Breuer:
24550 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24552 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24553 CS_?REDRAW flags as they cause lots of (late) redraws when "show
24554 window contents while dragging" is turned on. Allocate at least
24555 one unique class for every GdkWindowType. If support for single
24556 window-specific icons is ever needed (eg. Dialog specific), every
24557 such window should get its own class.
24559 1999-08-19 Tor Lillqvist <tml@iki.fi>
24561 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24562 error that caused crashes.
24564 1999-08-17 Tor Lillqvist <tml@iki.fi>
24566 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24567 window, use ScrollWindowEx, and call UpdateWindow. This prevents
24568 bugs when for instance part of the window was outside the
24569 display. Thanks to Philippe Colantoni for finding and fixing this.
24571 1999-08-16 Tor Lillqvist <tml@iki.fi>
24573 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24574 endpoint calculations which were totally wrong. (A little RTFMing
24577 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24578 from a separate directory, not from gettext, because of licensing
24579 issues (we want to use the LGPL version).
24581 * README.win32: Mention the intl from glibc vs from gettext issue.
24583 1999-08-13 Tor Lillqvist <tml@iki.fi>
24585 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24586 in the key event handling: Now AltGr chars work again. Also,
24587 now Alt-digits are passed up as well as Control-digits.
24588 Pass keypad plus and minus as normal plus and minus.
24590 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
24592 * docs/gtkfaq.sgml: FAQ Update
24594 1999-07-25 Tor Lillqvist <tml@iki.fi>
24597 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24600 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24601 OK, but getting closer. Guard against bogus tilt data from Wacom
24602 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24603 enable easier building without Wintab.
24605 * gdk/win32/gdkinput.h
24606 * gdk/win32/gdkevents.c
24607 * gdk/win32/gdkwindow.c: Minor changes related related to above.
24609 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24610 code. As we have just one visual on Win32, no sense to have it in a
24611 table, and no need for the hash table.
24613 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24614 better on white background.
24616 1999-07-21 Tor Lillqvist <tml@iki.fi>
24618 * README.win32: Update gcc build instructions. Mention gettext is
24621 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24622 supported cursor size with GetSystemMetrics.
24624 * gdk/win32/gdkfont.c
24625 * gtk/gtkfontsel.c: Guard against some font weight and charset
24626 symbols being undefined (in mingw32 headers).
24628 * gdk/win32/makefile.cygwin
24629 * gtk/makefile.cygwin
24630 * gtk/gtkthemes.c: No longer need to have differently named
24631 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24633 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24635 * docs/gtkfaq.sgml: Long awaited FAQ update.
24637 1999-07-15 Tor Lillqvist <tml@iki.fi>
24639 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24640 it. Obscure bit manipulation needed.
24642 * gdk/win32/gdkevents.c: Logging.
24644 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24645 style (file name include compiler name) for theme engines.
24647 1999-07-13 Tor Lillqvist <tml@iki.fi>
24649 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24651 * gdk/win32/gdkevents.c: Fix long-standing bug in key
24652 events. The key.string wasn't zero-terminated, still we strdup'ed
24653 it in gdk_event_copy(). Synthesize crossing events for button
24654 events before possible propagation.
24656 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24658 * gdk/win32/makefile.cygwin
24659 * gtk/makefile.cygwin: Use new DLL naming style for the
24662 * gdk/win32/makefile.msc
24663 * gtk/makefile.msc: Cosmetics mostly.
24665 * gtk/gtk.def: Add missing entry points.
24667 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
24669 1999-07-09 Tor Lillqvist <tml@iki.fi>
24671 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
24672 or height is zero. Don't print a warning if Pie or Arc fails, they
24673 always fail (?) for very narrow ellipses.
24675 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
24676 the part or the destination window corresponding to source area
24677 outside of the source drawable's boundary.
24679 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
24680 anything if less than two points.
24682 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
24683 return NULL. Gtk cut-and-paste inside a single program works
24684 better this way. (It always gets the clipboard contents from
24685 Windows, not from its own copy, which is cleared anyway. I can't
24686 say I fully understand what happens... Emulating the X selection
24687 and property stuff is a bit of a mess.)
24689 * gdk/win32/gdkevents.c
24690 * gdk/win32/gdkproperty.c: A bit more verbose logging.
24692 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
24693 that never got deleted). Revamp gdk_region_shrink.
24695 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
24698 * gtk/gtk.def: Add some missing entry points.
24700 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
24703 1999-07-04 Tor Lillqvist <tml@iki.fi>
24705 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
24706 Control-digits specially.
24708 1999-07-03 Tor Lillqvist <tml@iki.fi>
24710 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
24712 1999-06-28 Tor Lillqvist <tml@iki.fi>
24714 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
24715 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
24718 1999-06-01 Jose H Mercado <jmercado@mit.edu>
24720 * gtk+.spec.in: Corrected some typos in files section.
24722 1999-06-15 Tor Lillqvist <tml@iki.fi>
24724 * README.win32: Mention using GNU gettext.
24725 * config.h.win32: Enable NLS stuff.
24726 * gtk/makefile.msc: Use GNU gettext.
24727 * gdk/win32/gdkdnd.c: Minor header reorg.
24728 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
24730 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
24731 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
24733 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
24739 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
24741 1999-05-30 Tor Lillqvist <tml@iki.fi>
24743 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
24744 SafeAdjustWindowRectEx. Don't override all calls to
24745 AdjustWindowRectEx by it, but use it only in two places: When
24746 creating a new top-level window and when moving a top-level
24749 Use screen coordinate rectangle, not client rectangle, in
24750 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
24751 when we try to place a window so that the decoration (mainly,
24752 title bar) isn't visible.
24754 These changes fix the bug that showed up for instance as the
24755 GIMP's saved top-level windows moving right and down (by an amount
24756 equal to the window decoration) for each session. This bug showed
24757 up also in testgtk's "Saved Position".
24759 gdk_window_resize also redone a bit.
24761 1999-05-25 Tor Lillqvist <tml@iki.fi>
24763 * gtk/testgtkrc: Add (commented out) Windows-style theme
24766 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
24768 1999-05-18 Tor Lillqvist <tml@iki.fi>
24770 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
24771 gdkx.h to a gdk subdirectory, so that applications can include
24772 these with <gdk/*.h> without trouble.
24774 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
24775 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
24776 have their bitmap destroyed.
24778 * gdk/win32/gdk.def: Add gdk_root_parent.
24780 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
24786 gtk/Makefile.am: changes to compile nicely (with xlib)
24789 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
24795 * ltmain.sh: upgrade to libtool 1.3
24797 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
24800 * gtk/gtkctree.c: merges from gtk-1-2
24802 1999-04-25 Tor Lillqvist <tml@iki.fi>
24804 Support added for building using a GNU toolchain on Win32,
24805 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
24807 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
24808 * config.h.win32: Changes for gcc.
24809 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
24810 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
24811 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
24812 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
24813 Protect shl stuff unavaiilable with mingw32 headers.
24814 * gdk/win32/gdkevents.c: Fix typo.
24815 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
24816 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
24817 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
24818 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
24819 the mingw32 headers.
24820 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
24821 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
24822 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
24823 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
24824 Test for NATIVE_WIN32, not _MSC_VER.
24825 * gtk/gtkmain.c: No use warning about developer version on Win32,
24826 there aren't any non-developer versions anyhow.
24827 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
24828 * gtk/makefile.msc: Use pthread from another directory. Minor other
24831 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24833 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24834 default filter from the list
24836 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
24838 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
24839 when gtk_widget_grab_default() is called for a widget that
24840 is not within a GtkWindow.
24842 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
24844 * docs/gtk_tut.sgml, examples/clist.c: use a
24845 scrolled window in the clist example. Minor
24848 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
24850 * docs/gtk_tut.sgml: Style check from David King
24851 <dking@youvegotmail.net>
24853 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
24855 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
24856 compile with unknown value of GDK_WINDOWING
24858 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
24860 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
24861 after the rule is fired.
24862 (install-exec-local): Install gdkconfig.h only if the contents are
24863 different from the currently installed gdkconfig.h.
24865 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
24867 * gdk/Makefile.am (configexecincludedir): Rename from
24868 configincludedir so that gdkconfig.h will be installed
24869 as part of `make install-exec'.
24871 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
24877 * ltmain.sh: upgrade to libtool 1.2f
24879 * autogen.sh: libtool is not required to autogen gtk+
24881 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
24884 1999-03-18 Tor Lillqvist <tml@iki.fi>
24886 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
24887 declaring gdk variables exported/imported from the DLL. New image
24888 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
24889 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
24890 GDK_DRAG_PROTO_OLE2.
24892 * gdk/gdk.h: Merge in Win32 version: Two new functions,
24893 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24894 declared only for the Win32 version, but could be in the X11
24895 version as well. (Needed for a Xlib-less gdk_imlib.)
24896 gdk_color_hash should have only one parameter. Declare
24897 gdk_threads_mutex with GDKVAR.
24899 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24900 just one parameter.
24902 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24903 per pixel, not bits.
24905 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24906 Fetch bpp (which means bits-per-pixel here) from another place on
24907 Win32. Accept also depth==32 (which we might get on Win32) with
24910 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24911 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24912 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24913 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24914 in the backend-dependent directory, not in the common gdk
24917 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24920 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
24922 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24923 want to use the Gtk+ devel version (which is true, and yes - even i am
24924 currently working with the 1.2.x branch). so everyone reading this, you
24925 probably want to issue
24926 cvs checkout -r glib-1-2 glib
24928 cvs checkout -r gtk-1-2 gtk+
24929 as your next two comands.
24931 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
24933 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24934 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24936 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24937 file. strongly deprecated the GTK_HAVE_* macros, we provide
24938 GTK_CHECK_VERSION() for people that need to check for certain
24941 * gtk/gtkcompat.h: removed this from CVS.
24942 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24943 idea right from the start, it just didn't seem like that back then.
24945 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
24947 * merges from gtk-1-2:
24949 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
24951 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24952 item factory class has been created.
24953 (gtk_item_factory_parse_rc): likewise.
24956 keep proper references for old_active_menu_item.
24957 (gtk_menu_reparent): unset the usize of the new parent,
24958 so the menu can sanely be size requested and we don't get nasty screen
24959 artefacts upon next reparentation.
24960 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24961 enter notify. only synthesize enter notifies if the pointer really is
24962 inside the event window.
24963 (gtk_menu_popdown): use gtk_menu_shell_deselect().
24964 (gtk_menu_popup): move the background setting stuff into
24965 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24967 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24968 gtk_menu_shell_select_item() to select the new item.
24969 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24970 do the right thing for deselection as well.
24972 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
24974 * gtk/gtkwidget.[hc]:
24975 (gtk_widget_accelerators_locked): return whether a widget's accelerators
24978 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24979 existing accelerators if the widget's accelerators are locked.
24981 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
24983 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24985 * gtk/gtkmenu.c: truely forward key press and key release events to
24986 the menu widget from the toplevel or tearoff window. we can't simply
24987 connect to that, we need to stop further processing of the events as
24990 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
24993 (gtk_menu_key_press): pass event->keyval, event->state to
24994 gtk_accelerator_valid, instead of event->keyval twice.
24995 refuse to install single letter accelerators for menus that use
24996 single letter shortcuts.
24998 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24999 gtk_menu_ensure_uline_accel_group().
25001 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
25002 which will always return an uline accel group, made
25003 gtk_menu_get_uline_accel_group() return NULL if the group isn't
25006 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
25008 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
25010 * gtk/gtkclist.c (gtk_clist_column_title_passive):
25011 Leave button sensitive, trap button_press, button_release,
25012 motion_notify, enter_notify and leave_notify events instead.
25013 (gtk_clist_column_title_active): disconnect event handler.
25014 (gtk_clist_drag_data_get): fixed memory leak. Reported by
25015 Guillaume Laurent <glaurent@worldnet.fr>
25017 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
25019 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
25020 width/height mixups.
25022 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
25025 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
25027 * gtk/testgtk.c (create_item_factory): unref the item factory after
25028 window's destruction.
25030 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
25031 count on the menu shell around the menu item's activation, since the
25032 signal emission may cause menu shell destruction.
25034 * gtk/gtkitemfactory.c:
25035 the previous code leaked one accel group per menu. we use
25036 gtk_menu_get_uline_accel_group() now to fix that, and with that
25037 also create the underline accelerator group of the menus only if
25038 required (i.e. an underline accelerator has been specified).
25039 (gtk_item_factory_construct):
25040 (gtk_item_factory_create_item): removed code that would create an
25041 extra accel group for the menu (and leak references).
25042 (gtk_item_factory_create_item): adapted the underline accelerator
25043 installation code to properly feature gtk_menu_get_uline_accel_group().
25045 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
25046 menu->accel_group, this may return NULL if the accelerator group
25047 hasn't been set yet.
25048 added gtk_menu_get_uline_accel_group() to retrive the underline
25049 accelerator group of the menu, this will be created on demand
25050 and proper care is taken about its reference count.
25052 * gtk/gtkitemfactory.h:
25053 * gtk/gtkitemfactory.c:
25054 dumped the approach of keeping a widgets by action list on the
25055 factory since the factory<->widget destroy negotiation didn't work
25056 and would be hard to get going at all. instead we keep a list of
25057 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
25058 persistant throughout a program's life time).
25059 also, i removed the static const gchar *key_* variables, and made
25060 them inline strings (they weren't actually used anyways).
25061 (gtk_item_factory_add_item): update ifactory->items.
25062 (gtk_item_factory_destroy): destroy ifactory->items (and remove
25063 the item factory pointer from the remaining ifactory widgets).
25064 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
25065 list to find the widget.
25066 (gtk_item_factory_get_item): new function that works around
25067 gtk_item_factory_get_widget() limitations, this function will only
25068 return menu items, even for <Branch> entries.
25070 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
25072 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25073 font hash table, if we have a GdkFontPrivate entry for this font
25074 already, simply increment its reference count, provided by Olaf Dietsche
25075 <olaf.dietsche+list.gtk@netcologne.de>.
25077 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25078 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25080 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
25082 * gtk/gtkcontainer.c:
25083 (gtk_container_add_with_args):
25084 (gtk_container_addv):
25085 (gtk_container_add): before adding a child to a conatiner, make sure
25086 it is (default) constructed, this is neccessary because under certain
25087 circumstances the child will get relized and mapped immediatedly, in
25088 which case it has to be constructed already.
25090 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
25092 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
25093 values > 1 as TRUE also.
25095 1999-03-16 Tor Lillqvist <tml@iki.fi>
25097 * README.win32: New file.
25099 * configure.in: Check for lstat.
25101 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
25104 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
25106 * gtk/gtk.def: Removed CRs.
25108 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
25111 * gdk/win32/makefile.msc: Correct upwards relative paths.
25113 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
25115 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
25116 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
25117 it was connecting a void function to expose_event and the int
25118 returning function to the draw signal
25120 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
25123 Use correct path to libgmodule.la when ref'ing uninstalled copy
25124 of glib. (Already in stable branch, Bug #417)
25126 1999-03-15 Tor Lillqvist <tml@iki.fi>
25128 Win32 merge and general portability stuff:
25130 * acconfig.h,configure.in: Check for <sys/time.h>.
25132 * gdk/win32: New directory (actually, been there for a while).
25134 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
25135 NATIVE_WIN32, and use these. Always case fold on Win32. No
25136 backslashed escapes on native Win32.
25138 * gtk/{gtk.def,makefile.msc}: New files.
25140 * gtk/Makefile.am: Add above new files.
25142 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
25143 instead of <strings.h>.
25145 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
25146 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
25147 <unistd.h> appropriately.
25149 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
25150 Use ABS() (from <glib.h>) instead of abs().
25152 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
25153 of gtk (and thus glib) headers, so that WIN32 will be
25154 defined. With MS C, include <direct.h> for mkdir prototype.
25156 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
25157 some casts, needed by MS C.
25159 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
25162 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
25163 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
25164 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
25166 * gtk/gtkmain.h: Mark variables for export/import on Win32.
25168 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
25169 the event is not a hint, or its window is not the slider. Needed
25170 on Win32, at least.
25172 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
25173 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
25174 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
25175 a subdirectory of the Windows directory as gtk system
25176 configuration directory.
25178 * gtk/gtkselection.c: No chunks on Win32.
25180 * gtk/gtksocket.c: Not implemented on Win32.
25182 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
25184 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
25186 * gtk/maketypes.awk: Declare variables with a macro that expands to
25187 necessary export/import magic in the case of Win32.
25189 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
25191 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
25193 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
25194 since those were meant only for gdki18n.h.
25195 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
25196 for widechar tests.
25197 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
25199 1999-03-13 Tor Lillqvist <tml@iki.fi>
25201 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
25202 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
25204 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
25205 installed) to CFLAGS.
25207 * gdk/Makefile.am: Add rules for gdkconfig.h.
25209 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
25212 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
25213 gdkx.h anyway when compiling for X11.
25214 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
25215 general): Merge in Win32 version.
25217 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
25218 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
25219 expansion (if we don't have HAVE_PWD_H), allow for drive
25220 letters. UNC paths (\\server\share\...) are not handled yet. Also,
25221 included code from Craig Setera's port to Win32 (the one that uses
25222 X11, and the cygwin dll), even if it probably will be abandoned.
25224 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
25225 the user entered one herself. This way one can complete *.h and
25226 don't get matches on any .help files, for instance.
25228 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
25230 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25231 font hash table, if we have a GdkFontPrivate entry for this font
25232 already, simply increment its reference count, provided by Olaf Dietsche
25233 <olaf.dietsche+list.gtk@netcologne.de>.
25235 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25236 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25238 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
25240 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
25241 the number of calls to gdk_draw_point() (and thus to X) by
25242 clipping the points by hand.
25244 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
25245 the clip parameter.
25246 (gtk_handle_box_paint): Only paint the handle if the expose area
25249 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
25251 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
25253 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
25255 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
25256 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
25258 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
25260 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
25261 textmode (O_TEXT) for OS/2 version.
25263 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
25265 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
25266 GtkSpinButton, "input" and "output", to make the output more flexible.
25267 The user has to provide a mapping between adjustment->value and the
25268 output string (and vice versa, if the spin button is editable).
25269 See testgtk for examples.
25271 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
25273 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
25276 * configure.in: set gtk+ version to 1.3.0.
25278 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,