summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Implement "fuzzy" key binding lookups; allow matches on key and level butOwen Taylor2002-02-211-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 20 14:26:47 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups; allow matches on key and level but not group. Also, implement ignoring "consumed modifiers correctly." * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using GtkKeyHash. * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in the group for key release events as well as key press events. * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Rename unused_modifiers to consumed_modifiers, make the docs and non-Xkb implementation match the Xkb implementation. * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate doc and parameter name changes. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): XkbTranslateKeyCode doesn't handle LockMask, we need to handle it ourselves. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency to allow dealing with ISO_Left_Tab. * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c gtk/gtkpaned.c gtk/gtkcombo.c gtk/gtknotebook.c: Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab or <Shift>Tab both are equivalent as a binding specifier.) * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate GTK_RUN_ACTION, so you can bind an accelerator to it. * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call gdk_unicode_to_keyval on the mnemonic character. * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
* hm, check buttons look better for below.Manish Singh2002-02-171-2/+2
| | | | | | 2002-02-16 Manish Singh <yosh@gimp.org> * tests/testgtk.c: hm, check buttons look better for below.
* redid the filesel test. Added a way to set select multiple as a toggleManish Singh2002-02-171-24/+51
| | | | | | | | | 2002-02-16 Manish Singh <yosh@gimp.org> * tests/testgtk.c: redid the filesel test. Added a way to set select multiple as a toggle button, and made show/hide fileops toggle buttons as well. get_selections() is called on OK and all the filenames selected are printed.
* Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratioOwen Taylor2002-02-141-2/+1
| | | | | | | | | | | | | | Thu Feb 14 16:46:48 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio style property to GtkWidget to allow theming the aspect ratio of the cursor. * gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property to GtkWidget.
* just go ahead and flush all the first validate stuff if it hasn't beenHavoc Pennington2002-02-131-1/+1
| | | | | | | | | | | | | | | 2002-02-13 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush all the first validate stuff if it hasn't been done, presumably someone called process_updates at a weird time. * tests/testtext.c (do_apply_colors): terminate on >= end, not > end, avoids infinite loop when end is at the end of the buffer. * gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a line data, we were adding it to the wrong line ("line" instead of "start_line")
* Cast GType to long and use %ld to fix warning. (#71318, Morten Welinder)Owen Taylor2002-02-131-1/+1
| | | | | | | Wed Feb 13 11:27:31 2002 Owen Taylor <otaylor@redhat.com> * tests/testtreeview.c (typesystem_recurse): Cast GType to long and use %ld to fix warning. (#71318, Morten Welinder)
* don't reduce the scroll rect size by the scroll amountHans Breuer2002-02-102-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-10 Hans Breuer <hans@breuer.org> * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll rect size by the scroll amount * gdk/win32/gdkwindow-win32.c * gdk/win32/gdkselection-win32.c : added some casts to make it compile with msvc's strict type checking * gtk/fnmatch.c : #include <ctype.h> again for tolower prototype. The fnmatch() code assumes to be in the crt locale though it is feeded by utf8 strings from gtkfilesel.c * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by _CompletionDir instead of referencing already freed memory * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to gtk_rc_parse_string (theDefaultTooltipColor) once as it was intended * tests/makefile.msc : added more tests * tests/testgtk.c (create_list) : don't try to load gtkenums.h from the current directory use ../gtk/gtkenums.h instead
* Keyboard navigation for GtkPaned F6: cycle between panes. F8: focus handleSoeren Sandmann2002-02-091-0/+366
| | | | | | | | | | | Sat Feb 9 13:58:41 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned F6: cycle between panes. F8: focus handle (#53584) * tests/testgtk.c: Add test cases for GtkPaned keyboard navigation.
* Remove the objectionably short cursor blink time setting.Owen Taylor2002-02-051-1/+1
| | | | | | | Sat Feb 2 17:43:00 2002 Owen Taylor <otaylor@redhat.com> * tests/testgtkrc: Remove the objectionably short cursor blink time setting.
* Fix ordering of priorities so that priorities take precendence over theOwen Taylor2002-02-022-5/+45
| | | | | | | | | | | Fri Feb 1 17:48:51 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of priorities so that priorities take precendence over the ordering by type. (#70205) * test/testgtkrc tests/testgtk.c (create_rc_file): Add some labels to test priorities in testgtkrc.
* Handle reparsing any strings if the theme changes. (#69465)Owen Taylor2002-02-011-0/+11
| | | | | | | | | Fri Feb 1 14:50:36 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing any strings if the theme changes. (#69465) * tests/testgtk.c: Add a test for gtk_rc_parse_string().
* Try to make sure that we have some focused widget on map. (#50339)Owen Taylor2002-01-311-6/+9
| | | | | | | | | | | | | | Wed Jan 30 13:55:59 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_show): Try to make sure that we have some focused widget on map. (#50339) * gtk/gtkdialog.c (gtk_dialog_map): Handling picking a focus widget here differently so that if a response button gets picked, it's the default one. * tests/testgtk.c (make_message_dialog): Set the default response for the dialogs.
* allow cancel to happen.Jonathan Blandford2002-01-141-1/+13
| | | | | | | | | | Mon Jan 14 17:42:28 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to happen. * gtk/gtktreeview.c (install_presize_handler): only install the handler if we're realized, #68056
* declared internal functions static.Sven Neumann2002-01-091-2/+2
| | | | | | 2002-01-09 Sven Neumann <sven@gimp.org> * tests/prop-editor.c: declared internal functions static.
* Private function to tell if we have RENDER extension.Owen Taylor2002-01-041-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jan 3 22:18:15 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h (_gdk_x11_have_render): Private function to tell if we have RENDER extension. * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return None if we don't have RENDER extension. * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't use Xft unless we have render extension. * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture): Handle missing render extension. * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c gdk/gdkinternals.h: Add a private copy_to_image() virtual function to the GdkDrawable vtable that extends get_image() to allow copying onto existing images. Make the default implementation of get_image() use this so that backends don't have to implement both. Add private wrapper _gdk_drawable_copy_to_image(). * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement copy_to_image() semantics, speed up by using ShmPixmaps and XCopyArea when possible, XFlush() after ungrabbing the server, generally redo the logic once again. * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c _gdk_windowing_bits_per_depth(): Function to convert from depth to bits-per-pixel. (We assume only one bpp per depth - X requires this.) * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB scratch image code into a generic _gdk_image_get_scratch() chunk of code that we can use other places we need scratch images. * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h: Add _gdk_image_new_for_depth() as the backend to _gdk_image_new() to allowing creating images with a depth and no visual. * gdk/gdkpixbuf-drawable.c: Fix so that getting parts of images not at 0,0 actually works. * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: - Add a new GdkDrawableClass vfunc _draw_pixbuf, and _gdk_draw_pixbuf() [ will be made public later ], to allow backends to accelerate drawing pixbufs. - Move the implementation of gdk_pixbuf_render_to_drawable_alpha() to be the default implementation. - Update docs for gdk_pixbuf_render_to_drawable_alpha(). - Optimize the default implementation by using _gdk_image_copy_to_pixmap() and scratch shared images, and special casing the compositing. * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf() with alpha using the RENDER extension. * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Optimize by _gdk_image_copy_to_pixmap() and scratch images. * tests/testrgb.c: Add test for speed of alpha composition, reduce the number of iterations since alpha composition can be a bit slow. * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): Private function to get a ShmPixmap for an image, if possible.
* Add my cool list of integers.Anders Carlsson2002-01-041-24/+36
| | | | | | 2002-01-04 Anders Carlsson <andersca@gnu.org> * tests/testtreesort.c: Add my cool list of integers.
* propagate exposes to no window children not in the buffer window.Havoc Pennington2002-01-021-1/+68
| | | | | | | | | | | | | | | | | 2002-01-01 Havoc Pennington <hp@pobox.com> * gtk/gtktextview.c (gtk_text_view_expose_event): propagate exposes to no window children not in the buffer window. (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab - is this the right way to do it? (gtk_text_view_focus): add focus method, just chains up for now, I'm not sure why the GtkContainer implementation doesn't work * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill in the text line for the child anchor segment * tests/testtext.c (do_add_focus_children): add another test example (to put focusable buttons into the widget)
* remove backward_char since we no longer have bogus newlineHavoc Pennington2001-12-311-5/+1
| | | | | | | | | 2001-12-31 Havoc Pennington <hp@pobox.com> * tests/testtext.c (do_insert_and_scroll): remove backward_char since we no longer have bogus newline (dialog_response_callback): remove another backward_char horkage, reported by Matthias Clasen #63065
* Only draw for events on the bin window.Owen Taylor2001-12-121-6/+5
| | | | | | | Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c (layout_expose_handler): Only draw for events on the bin window.
* Don't return TRUE since then the default GtkLayout expose handler won't beAnders Carlsson2001-12-081-1/+1
| | | | | | | 2001-12-08 Anders Carlsson <andersca@gnu.org> * tests/testgtk.c (layout_expose_handler): Don't return TRUE since then the default GtkLayout expose handler won't be called.
* get logic right, #66249Jonathan Blandford2001-12-081-7/+7
| | | | | | | | | | | | | | Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (validate_visible_area): get logic right, #66249 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where removing a node ended up with a corrupt tree. Really really nasty bug. (_gtk_rbtree_debug_spew): new debug helper function (_fixup_validation): new inline function to clean up code readability a lot.
* Version 1.3.11 Require GLib-1.3.11, Pango-0.22, ATK-0.7. Restore toGTK_1_3_11Owen Taylor2001-11-231-43/+41
| | | | | | | | | | | | | | | | | | Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com> * Version 1.3.11 * configure.in (ATK_REQUIRED_VERSION): Require GLib-1.3.11, Pango-0.22, ATK-0.7. * tests/prop-editor.c (property_widget): Restore to working as well as it did before. * gtk/gtklistitem.h: Mark deprecated since it is an integral part of GtkList. * demos/gtk-demo/demo-common.h: New header file, for a common functions not important to the meat of the demos. * demos/gtk-demo/main.c (demo_ifind_file): Add a utility function to search for a file used by the demo. * demos/*.c: Use demo_find_file.
* raise event window afte children, in order for the input pnly window toTim Janik2001-11-212-9/+15
| | | | | | | | | | | | | | | Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org> * gtk/gtkbutton.c (gtk_button_map): raise event window afte children, in order for the input pnly window to stay *above* children. Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org> * tests/testtreeview.c: make hackery worse ;) by checking fundamental type walks againts G_TYPE_FUNDAMENTAL_MAX. * tests/prop-editor.c: disable type hackery.
* Ref-sink the tooltips object. Ref-sink the tooltips object. Fix someOwen Taylor2001-11-211-0/+2
| | | | | | | | | | | | | | | | | Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object. * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object. * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings. * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable() back to gtk_accel_groups_from_object(), change @acceleratable parameter to gtk_accel_groups_activate() accordingly. * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove left-over comment about quark return. * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered(). * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type. (Patch from Matt Wilson) * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating object is finalized.
* Add a "resizable" property, to get rid of theJonathan Blandford2001-11-192-2/+2
| | | | | | | | | | | | | | | | Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a "resizable" property, to get rid of the GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag. (gtk_tree_view_column_set_resizable): New function to set resizable. (gtk_tree_view_column_set_resizable): getter. * tests/testtreecolumns.c (add_clicked): modify for above change. * Makefile.am (install-data-hook): remove old .pc files before installing the new one. We used to symlink this, and it will break old installs.
* put in a test for negative indentation valuesHavoc Pennington2001-11-191-1/+14
| | | | | | | 2001-11-19 Havoc Pennington <hp@pobox.com> * tests/testtext.c (fill_example_buffer): put in a test for negative indentation values
* Include glib-object.h instead of gobject/gsignal.hOwen Taylor2001-11-181-5/+5
| | | | | | | | | | | | | | | Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkenums.h: Include glib-object.h instead of gobject/gsignal.h * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch], x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen argument to the window_at_pointer() field of GdkPointerHooks. (Patch from Erwann Chenede) * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up to 6 pointers.
* We no longer need to create the signals here ... they come from theOwen Taylor2001-11-181-62/+1
| | | | | | | | | | | | | | | | | | Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com> * tests/testtreeview.c (gtk_tree_model_types_get_type): We no longer need to create the signals here ... they come from the interface. * gtk/maketypes.awk: Use GType, not GtkType in output. * gtk/gtktypeutils.h: Mark virtually all of this file deprecated. * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full; the only use of this function is the GtkArg using GtkCallbackMarshal, since destroy notification is silly here.
* move the separator to the right place in the radio buttons windowJacob Berkman2001-11-161-0/+4
|
* add some no-indicator radio buttonsjacob berkman2001-11-161-0/+20
| | | | | | | | | | | 2001-11-16 jacob berkman <jacob@ximian.com> * tests/testgtk.c (create_radio_buttons): add some no-indicator radio buttons * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are initially active, also initially be depressed (gtk_radio_button_clicked): also update our depressed state
* Patch from Murray Cumming to add "message_type" and "buttons" CONSTRUCTOwen Taylor2001-11-151-3/+24
| | | | | | | | | | Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add "message_type" and "buttons" CONSTRUCT properties. (#64069) * tests/testsocket.c: Expand tests to add a "local passive child" (Test case for #64428)
* make it compile without warnings.Sven Neumann2001-11-141-22/+53
| | | | | | 2001-11-15 Sven Neumann <sven@gimp.org> * tests/testgtk.c: make it compile without warnings.
* bulk of the tests were commented out, oops.Havoc Pennington2001-11-141-2/+2
| | | | | | | | | | | | | | 2001-11-14 Havoc Pennington <hp@redhat.com> * tests/testtextbuffer.c (main): bulk of the tests were commented out, oops. * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this function work, should resolve #63426 (gtk_text_iter_ends_line): return TRUE for the end iterator * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of a couple things that might get cached in here.
* param spec fixTim Janik2001-11-141-3/+3
|
* new "model" construct property for language bindings.Jonathan Blandford2001-11-141-0/+1
| | | | | | | | | | | | | Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new "model" construct property for language bindings. * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New function to let you set the column types of a GtkTreeStore for language bindings. * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
* add set_border_width for testingHavoc Pennington2001-11-141-0/+4
|
* add border width to requisition, request non-anchored childrenHavoc Pennington2001-11-131-0/+160
| | | | | | | | | | | | | | | | | | | | 2001-11-13 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_size_request): add border width to requisition, request non-anchored children (gtk_text_view_size_allocate): handle border width, allocate non-anchored children (text_view_child_new_window): set the child as object data (gtk_text_view_move_child): allow children at negative coordinates, no reason why not (gtk_text_view_forall): make it copy the list of children before walking it, to avoid reentrancy issues (gtk_text_view_move_child): short-circuit if position is unchanged (changed_handler): only queue_resize if requisition has changed (gtk_text_view_init): don't redraw_on_allocate, since we can do a better job of invalidation ourselves * tests/testtext.c: add tests for the fixed-position children
* added gtkaccelmap.sgml. other updates.Tim Janik2001-11-132-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 12 23:06:38 2001 Tim Janik <timj@gtk.org> * added gtkaccelmap.sgml. other updates. Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org> * gtk/maketypes.awk: fix type utils generation on unix. * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator registry. * gtk/gtkaccelgroup.[hc]: major API/implementation revamp: removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default, gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry, gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove, gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object. introduced ::accel_changed signal for change notification, and gtk_accel_group_connect/disconnect to connect closures to accel groups. made gtk_accel_group_attach/detach and gtk_accel_group_activate private functions. deprecated gtk_accel_group_ref/unref. * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention to accel group changed notification and basically operate on closures. removed gtk_accel_label_get_accel_object and gtk_accel_label_set_accel_object. introduced gtk_accel_label_set_accel_closure, and for convenience, gtk_accel_label_set_accel_widget. * gtk/gtkitemfactory.[hc]: removed accelerator propagation code which mostly moved into gtkaccelmap.[hc]. removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_* and gtk_item_factory_print_func. * gtk/gtkmain.c: call _gtk_accel_map_init(). * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(), that associates an accelerator path with menu items, through which persistent accelerator settings on menu items are enabled. * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator paths of menu item can be default constructed to allow installation of accelerators on menu items that don't come with an accelerator binding by default. * gtk/gtksettings.c: fix STRING type rc settings by special casing them appropriately in the parser. * gtk/gtksignal.[hc]: allow a class function offset of 0 for gtk_signal_newv(). * gtk/gtkwidget.[hc]: accelerator API revamp. removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal, gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and gtk_widget_(un)lock_accelerators. accelerators maintained through gtk_widget_add/remove_accelerator() are not runtime changable now, the correct sequence to setup a widget for runtime changable accelerators is now: gtk_accel_map_add_entry(accel_path, key, mods); _gtk_widget_set_accel_path(widget, accel_path, accel_group); * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel group changes (as well as mnemonic changes) through the new signal ::accels_changed. Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org> * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle GString->string conversions.
* use g_strcasecmp(), some poor platforms don't have strcasecmp()Hans Breuer2001-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 Hans Breuer <hans@breuer.org> * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms don't have strcasecmp() * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need to remove the idle funcs in gtk_text_view_destroy (). To reduce code duplication wrap it in its own function and use it in gtk_text_view_unrealize () and gtk_text_view_destroy_layout () * gdk/win32/gdkdrawable-win32.c : implement the finalize method like the X11 version does, allow to set_colormap NULL * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32:: set_colormap, also some adaption to X11 version : (gdk_window_hide) call _gdk_window_clear_update_area (gdk_window_reparent) call _gdk_window_init_position * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : call gdk_window_resize() after all hints are set, because the window resizing process (WM_GETMINMAXINFO) takes all of them into account * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean * gdk/win32/gdkvisual-win32.c : register GdkVisual with sizeof (GdkVisualPrivate) * gdk/gdk.def gtk/gtk.def : upated externals * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc : from now on use make.msc from $(TOP)/glib/build/win32 * gtk/stock-icons/makefile.msc : add stock_missing_image
* Add row_draggable() vfunc, and wrapper function.Owen Taylor2001-11-062-68/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): Add row_draggable() vfunc, and wrapper function. * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make row_drop_possible take a GtkSelectionData, rather than model/row pair. * gtk/gtktreestore.c gtk/gtkliststore.c: Update for new DND interfaces. * gtk/gtktreeview.[ch]: Remove the row_draggable_func location_dropable_func from gtk_tree_view_set_rows_drag_source/dest. and rename them to enable_model_drag_source/dest. * gtk/treeviewcolumn.c: Add DND of columns between rows. Still can't drop _to_ the left tree, but other places work. * gtk/gtktreeview.c (unset_reorderable): Unset the reorderable property if unset/enable_model_drag_source/dest are called manually. * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): Correct for change in depth count handling. * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): Pass in a expose area to gtk_tree_view_column_cell_render()
* lost this file due to CVS broken pipeHavoc Pennington2001-11-061-3/+0
|
* Clamp max window width/height to 32767, not 32768 since we have to be ableOwen Taylor2001-11-051-0/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Clamp max window width/height to 32767, not 32768 since we have to be able to deal with a dx/y of -32768 without getting a width of 65536 when guffaw scrolling. * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll() for the guffaw scrolling case, fixing some problems with copy-area case as well. Fix BadValue bug with moving windows by large amounts. * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update clip in window structue before calling gdk_window_invalidate_region since that trims new invalidations to the window's visible region. * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): Really set the static window gravity on the children, not repeatedly on the window. * gtk/testgtk.c: Add a torture test for big windows and gdk_window_scroll().
* Removed -DGTK_DISABLE_COMPAT_H.Sebastian Wilhelmi2001-11-021-2/+2
| | | | | | | | | | | | 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * tests/makefile.msc, gtk/makefile.msc.in: Removed -DGTK_DISABLE_COMPAT_H. * docs/Changes-2.0.txt: s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/ * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
* don't know why this didn't commitJonathan Blandford2001-10-311-0/+1
|
* Add GTK_SELECTION_NONE enum, #61695Jonathan Blandford2001-10-311-1/+0
| | | | | | | | | | | | | | | | | | Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new GTK_SELECTION_NONE enum. (_gtk_tree_selection_internal_select_node): ditto * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add constness. * gtk/gtkcellrenderertoggle.c: more yummy constness. * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail if mode == GTK_SELECTION_NONE
* fix reordered signal.Jonathan Blandford2001-10-291-6/+7
| | | | | | | Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix reordered signal.
* Set up destroy signals so that all windows will be destroyed when one is.Anders Carlsson2001-10-261-2/+9
| | | | | | | | | 2001-10-27 Anders Carlsson <andersca@gnu.org> * tests/testgtk.c (create_window_states): Set up destroy signals so that all windows will be destroyed when one is. This fixes bug #58133.
* Don't set a fixed height on the hscale widget. This fixes "bug" #55840.Anders Carlsson2001-10-261-1/+1
| | | | | | | | 2001-10-27 Anders Carlsson <andersca@gnu.org> * tests/testgtk.c (create_range_controls): Don't set a fixed height on the hscale widget. This fixes "bug" #55840.
* fixed a small typoKristian Rietveld2001-10-261-1/+1
| | | | | | Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl> * tests/Makefile.am: fixed a small typo
* sync minor clenupJonathan Blandford2001-10-261-6/+13
|