summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Improve checks on public entry points, including, among other thingsOwen Taylor2002-10-043-13/+8
| | | | | | | | | | | | | | | Fri Oct 4 17:13:03 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c: Improve checks on public entry points, including, among other things checking whether drag contexts passed in are source or dest. (Fixes #76762, Alexey A. Malyshev) * tests/testtext.c tests/testgtk.c tests/testdnd.c: Fix uninstalled operation for new pixbuf changes. * gtk/stock-icons/Makefile.am (pixbuf_csource): Fix makefile for uninstalled operation.
* Fix error in computing length and a memory leak. (Fixes #94072, reportedOwen Taylor2002-10-031-1/+3
| | | | | | | | | | | Thu Oct 3 19:00:55 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): Fix error in computing length and a memory leak. (Fixes #94072, reported by Hema Seetharamaiah) * gtk/gtkmenu.c (gtk_menu_motion_notify): Fix &event used instead of event.
* Add a 'type' parameter, make public.Owen Taylor2002-10-031-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Oct 3 14:13:33 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c (gdk_event_new): Add a 'type' parameter, make public. * gdk/gdkevents.c (gdk_event_copy): Copy the screen. * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c: _gdk_event_new() => gdk_event_new(). * gdk/win32/gdkevents-win32.c (real_window_procedure): Fix event_private->screen breakage that results from evil encapsulation breakage here. * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c tests/testgtk.c: Remove most usage of stack-allocated GdkEvent structures. * gtk/gtktreeview.c: Use a cut-and-paste of the full send_focus_event() from gtkwindow.c that does the necessary notification of the ::has-focus property and setting of the HAS_FOCUS flag.x * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing an extraneous use of a GdkEvent.
* Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbufOwen Taylor2002-10-021-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 2 17:46:53 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual function to draw_pixbuf. (#60582) * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]): Note that these functions are obsolete in the docs. * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Remove all the sanity checks now we make it clear that it is obsolete name for gdk_draw_pixbuf(). * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c tests/testrgb.c: Use gdk_draw_pixbuf() everywhere. * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix some warnings. * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed bit from last gdk_event_get_screen() change. * gdk/gdkevents.c: Couple of small fixes.i
* fix GtkWindowMnemonic to have a separate typedefHavoc Pennington2002-09-251-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-24 Havoc Pennington <hp@redhat.com> * gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate typedef * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): monitor FULLSCREEN state * tests/testgtk.c (get_state_controls): add fullscreen/unfullscreen test * gdk/gdkdisplay.c (gdk_display_finalize): fix unused variable * gdk/x11/gdkscreen-x11.c (init_xinerama_support): fix unused variable * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused variable * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_window_manager_changed): emit window_manager_changed signal * gdk/x11/gdkscreen-x11.h (struct _GdkScreenX11Class): add window_manager_changed signal * gdk/x11/gdkevents-x11.c (gdk_x11_screen_get_window_manager_name): new function * gtk/gtkwindow.c (gtk_window_class_init): add type_hint, skip_taskbar_hint, skip_pager_hint properties (gtk_window_set_skip_taskbar_hint): (gtk_window_get_skip_taskbar_hint): (gtk_window_set_skip_pager_hint): (gtk_window_get_skip_pager_hint): (gtk_window_fullscreen): (gtk_window_unfullscreen): new functions * gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state * gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint values * gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint): (gdk_window_set_skip_pager_hint): (gdk_window_fullscreen): (gdk_window_unfullscreen): new functions (set_initial_hints): set fullscreen here if appropriate
* Copy from X11 backend. The old version mishandled consecutive newlines.Tor Lillqvist2002-09-211-3/+0
| | | | | | | | | | 2002-09-21 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkselection-win32.c (sanitize_utf8): Copy from X11 backend. The old version mishandled consecutive newlines. * tests/testgtkrc: Remove obsolete mention of gtk-engines and Pixmap theme engine on Win32.
* Add a note that yes, we do know what () means and we can't change it.Owen Taylor2002-08-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 5 14:50:13 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkitemfactory.h: Add a note that yes, we do know what () means and we can't change it. Fixes for warnings reported by David L. Cooper II * tests/testtext.c: Warning fixes. Fix order of arguments to gtk_message_dialog_new(). (#85891) * gtk/gtktreeitem.c (gtk_tree_item_paint): Fix incorrect use GTK_STATE_INSENSITIVE for a shadow type. (Not clear what the drawing intent was, but it's ENABLE_BROKEN anyways.) (#85880) * gtk/gtktexttypes.c: Use character literals instead of direct constants to avoid warning. (#85878) * gtk/theme-bits/decompose-bits.c gtk/gtkstyle.c: Fix some signed/unsigned problems (#85876) * gtk/gtksignal.c (gtk_signal_newv): Add an explicit cast from GtkSignalRunType to GSignalFlags. (#85875) * gtk/gtkitemfactory.c (gtk_item_factory_add_item): Fix use of guint instead of GdkModifierType (#85871) * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): Fix signed/unsigned problem (#85870) * gtk/gtkimcontext.c (gtk_im_context_class_init): Get rid of GtkType/Signal*. (Fixes #85869 as a side effect) * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix some signed/unsigned warnings (#85865)
* Fix bug in the selection mode option menus which were setting the wrongOwen Taylor2002-07-301-27/+19
| | | | | | | | Tue Jul 30 16:36:53 2002 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c: Fix bug in the selection mode option menus which were setting the wrong values. (#85763, Manuel Op de Coul)
* Renames:Owen Taylor2002-06-204-5/+5
| | | | | | | | | | | Thu Jun 20 19:41:09 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c tests/*.c: Renames: gdk_get_default_display => gdk_display_get_default gdk_get_default_screen => gdk_screen_get_default gdk_open_display => gdk_display_open
* Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().Owen Taylor2002-06-181-3/+3
| | | | | | | | | | | | | | | Tue Jun 18 14:41:48 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkcursor.[ch] gdk/x11/gdkcursor-x11.c gdk/x11/gdkprivate-x11.h gdk/win32/gdkcursor-win32.c: Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display(). (#85671) * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcurve.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtklabel.c gtk/gtkpaned.c gtk/gtktext.c gtk/gtktextview.c gtk/gtktipsquery.c gtk/gtktreeviewcolumn.c: Adapt to above change.
* Set the private LEAVE_PENDING flag to fix problem where with menu itemsOwen Taylor2002-05-201-2/+2
| | | | | | | | | | | | | Mon May 20 12:59:14 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c: Set the private LEAVE_PENDING flag to fix problem where with menu items with submenus, tooltips were getting stuck. (Effectively disables tooltips for menu items with submenus.) (Bug #75961, Soeren Sandmann) * tests/testgtk.c: Set a tooltip on a menu item with a submenu.
* Silent CVSAnders Carlsson2002-05-181-0/+4
|
* Fix a missing unref in the local/passive case. (#82067, Michael Meeks)Owen Taylor2002-05-171-0/+1
| | | | | | | | | | | | | | | | Fri May 17 13:56:23 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.c (gtk_plug_filter_func): Fix a missing unref in the local/passive case. (#82067, Michael Meeks) * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Fix reference leak on the plug window. * tests/testsocket.c (add_child): Fix memory leak. * gtk/gtkdnd.c (gtk_drag_dest_site_destroy): Unref the proxy window.
* Special case menu items to pop down on motion. (#75961)Owen Taylor2002-05-151-0/+18
| | | | | | | | | | | | | | Wed May 15 17:12:50 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c: Special case menu items to pop down on motion. (#75961) * tests/testgtk.c (create_item_factory): Add tooltips to the File menu. * gtk/gtkentry.c (update_im_cursor_location): Fix cursor locations passed to the IM context. (#80027, Yao Zhang)
* The "big treeview focus patch". Fixes several issues and adds someKristian Rietveld2002-05-051-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun May 5 16:42:32 2002 Kristian Rietveld <kris@gtk.org> The "big treeview focus patch". Fixes several issues and adds some goodies. Related bugs: #73676, #73734, #78660. * gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell * gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell if applicable, (gtk_tree_view_bin_expose): set_cell_data before iterating columns, add support for row-spanning focus rectangles, (gtk_tree_view_has_special_cell): new function, (gtk_tree_view_move_cursor_left_right): add support for multiple focusable cells in one column, (gtk_tree_view_set_cursor): call _set_cursor_on_cell now, (gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended with focus_cell parameter, (gtk_tree_view_search_iter): removed unused column variable, (gtk_tree_view_start_editing): add neighbor size code to allow for multiple editable cells in one column. * gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add in_editing_mode field, (gtk_tree_view_column_get_edited_cell): new function, removed _get_editable_cell, (_gtk_tree_view_column_get_cell_at_pos): new function, (gtk_tree_view_column_pack_end): s/g_new/g_new0/ ..., (gtk_tree_view_column_cell_process_action): loads of changes to get it right and to allow for multiple special cells, etc, (gtk_tree_view_column_cell_first): new function, (gtk_tree_view_column_cell_last): ditto, (gtk_tree_view_column_cell_next): ditto, (gtk_tree_view_column_cell_prev): ditto, (gtk_tree_view_column_cell_focus): add left and right parameters, allow for multiple special cells, (gtk_tree_view_column_cell_is_visible): add assertion, (gtk_tree_view_column_focus_cell): new function, (gtk_tree_view_column_stop_editing): unset in_editing_mode flag, (_gtk_tree_view_column_get_neighbor_sizes): iterate through cells correctly * gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell * gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add _gtk_tree_view_column_get_cell_at_pos, add new parameters to _gtk_tree_view_column_cell_focus. * tests/testtreeedit.c: add some cells in order to test new code.
* image files for testing pixbuf loaders the old test-loaders.c split intoSoeren Sandmann2002-05-0538-21/+1956
| | | | | | | | | | | | | | | Sun May 5 02:22:59 2002 Soeren Sandmann <sandmann@daimi.au.dk> * tests/test-images/*: image files for testing pixbuf loaders * tests/pixbuf-*.c: the old test-loaders.c split into four different programs * tests/Makefile.am: add new pixbuf tests Sun May 5 02:27:01 2002 Soeren Sandmann <sandmann@daimi.au.dk> * Makefile.am (noinst_PROGRAMS): remove test-loaders (moved to gtk+/tests/) * test-loaders.c, test-images.h: remove
* make gdk_screen_get_monitor_at_point cross platform instead of backendErwann Chenede -2002-05-021-1/+1
| | | | | | | | | | | | 2002-05-02 Erwann Chenede - <erwann.chenede@sun.com> * gdk/gdkscreen.c (gdk_screen_get_monitor_at_point): * gdk/gdkscreen.h : * gdk/x11/gdkscreen-x11.c : make gdk_screen_get_monitor_at_point cross platform instead of backend dependant. #80480 * tests/testxinerama.c (main): changed the warning message.
* remove virtualization and made it cross platform. fix #79961 fixedErwann Chenede -2002-05-011-9/+10
| | | | | | | | | | | | | | | 2002-05-01 Erwann Chenede - <erwann.chenede@sun.com> * gdk/gdkscreen.[hc] (gdk_screen_x11_get_monitor_at_window): remove virtualization and made it cross platform. fix #79961 * gdk/x11/gdkdisplay-x11.c (check_solaris_xinerama): fixed initialization bugs. * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_get_monitor_geometry): * tests/testxinerama.c: * gtk/gtkwindow.c (gtk_window_compute_configure_request): * gtk/gtkmenu.c (gtk_menu_position): take a GdkRectangle argument instead of returning a GdkRectangle * and propagated the changes. fix #79974
* Make it work, even if the window is already realized or mapped.Owen Taylor2002-04-303-206/+625
| | | | | | | | | | | | | | | | Tue Apr 30 18:42:25 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_set_screen): Make it work, even if the window is already realized or mapped. * tests/testgtk.c: Erwann's multihead changes, slightly dumbed down. (Removed logic for pulling windows onto the current screen, people can click twice on the demo to destroy and create again.) * tests/prop-editor.c: Set the screen on the property editor if the edited object is a widget.
* cvsignore additionsOwen Taylor2002-04-301-0/+3
|
* Multi-screen test case form multihead branch with a few cleanups. (Get ridOwen Taylor2002-04-303-0/+324
| | | | | | | | | | | | | | Tue Apr 30 15:59:53 2002 Owen Taylor <otaylor@redhat.com> * tests/testmultiscreen.c: Multi-screen test case form multihead branch with a few cleanups. (Get rid of use of g_object_connect()) * tests/testmultidisplay.c: Multi-display test case from multihead branch with a few improvements. (Allow the other display name to be passed on the command line, use a GtkDialog to get more attractive spacing.)
* fix problem with finalizing non-initialized fully display when failing toOwen Taylor2002-04-302-1/+83
| | | | | | | | | | | | Tue Apr 30 14:23:43 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdisplay-x11.c (gdk_open_display): fix problem with finalizing non-initialized fully display when failing to open display. * tests/testxinerama.c: Xinerama test case from multihead branch, with some cleanups. (Start even if there is only one monitor, for one.)
* tests/testtreecolumns.c quit the main loop when the window is destroyed.Sven Neumann2002-04-262-3/+6
| | | | | | | | 2002-04-26 Sven Neumann <sven@gimp.org> * tests/testtreecolumns.c * tests/testtreeview.c: quit the main loop when the window is destroyed. Removed compiler warnings about wrong format in printf().
* Add a small test case.Anders Carlsson2002-04-171-0/+15
| | | | | | | 2002-04-17 Anders Carlsson <andersca@gnu.org> * tests/testtreeedit.c (button_press_event): Add a small test case.
* really revert testgtk.cManish Singh2002-04-081-12/+12
| | | | | | 2002-04-08 Manish Singh <yosh@gimp.org> * tests/testgtk.c: really revert testgtk.c
* revert accidentally commited change to testgtk.cSoeren Sandmann2002-04-041-1/+1
| | | | | | | Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk> * tests/testgtk.c (menu_items): revert accidentally commited change to testgtk.c
* Fix problem with menu titles being clipped (#75948)Soeren Sandmann2002-04-041-13/+13
| | | | | | | Thu Apr 4 22:28:08 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu titles being clipped (#75948)
* start implementingJonathan Blandford2002-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Mar 7 02:58:16 2002 Jonathan Blandford <jrb@redhat.com> * gtk/tmpl/gtkliststore.sgml: start implementing * gtk/question_index.sgml: "I can set with the tree, but not get???!?!" Wed Mar 6 23:20:51 2002 Jonathan Blandford <jrb@redhat.com> and Kristian Rietveld <kris@gtk.org> Finishing touch for 2.0.0 release, fixes #70782, #72729, the 'stealth' bug and other last-minute minor issues. * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set dnd dest line drawing right. We can't draw the line at the position of the next row, because that one still has to be drawn. So draw everthing at a -1 offset. (validate_visible_area): add check for invalid descendants and NULL scroll_to_path path, get scrolling right. Also, fix the area_above value. Pretty amazing I got it wrong. (get_logical_dest_row): add gtk-tree-model-drop-append magic, so dragging a row to the end of the model works right. (gtk_tree_view_get_dest_row_at_pos): minor floating point fix (gtk_tree_view_start_editing): add call to validate_row (gtk_tree_view_tree_to_widget_coords): Never subtract HEADER_HEIGHT from y values anymore!!! (gtk_tree_view_widget_coords_to_tree): ditto. (gtk_tree_view_scroll_to_point): allow -1 as values for the scroll_to coords (gtk_tree_view_move_cursor_page_up_down): Don't need scroll_to_y as clamp_node_visible will make it work. * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): also check path depth, as we can't get iters from empty paths * gtk/gtkliststore.c (gtk_list_store_drag_data_received): handle gtk-tree-model-drop-append * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): free path_str * tests/testtreeflow.c (main): select path where we are scrolling to
* Update version to 2.0.0Owen Taylor2002-03-052-6/+5
| | | | | | | | | | | | | | | | Tue Mar 5 15:47:54 2002 Owen Taylor <otaylor@redhat.com> * configure.in test/makefile.msc **.pc.in **/*.am: Update version to 2.0.0 * gtk/Makefile.am (MAINTAINERCLEANFILES): Add stamp files. * configure.in (GDK_PIXBUF_VERSION): Require GLib 2.0.0, Pango, Atk, 1.0.0. * m4macros/gtk-2.0.m4: Default to 2.0.0 as the minimum version.
* Make color selection and selection examples work.Matthias Clasen2002-03-041-2/+2
| | | | | | | | | * docs/tutorial/gtk-tut.sgml: Make color selection and selection examples work. * tests/testselection.c (selection_toggled, selection_clear): Use selection_widget as selection owner - otherwise clearing the selection doesn't work.
* Fix to properly take the default window into account by setting a flag andOwen Taylor2002-03-041-0/+145
| | | | | | | | | | | | | Sun Mar 3 18:47:13 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_parse_geometry): Fix to properly take the default window into account by setting a flag and in gtk_window_compute_configure_request_size () multiplying by the increments and adding in the base size. (#72393) * tests/testgtk.c (create_gridded_geometry): Add a test for gridded geometry and for gtk_window_parse_geometry().
* Centralize lookup and caching of cursor GC's here.Owen Taylor2002-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | Sun Mar 3 14:26:33 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (_gtk_get_insertion_cursor_gc): Centralize lookup and caching of cursor GC's here. * gtk/gtkentry.[ch] gtk/gtktextview.[ch] gtk/gtktextdisplay.c gtk/gtklabel.c: Move to using _gtk_get_insertion_cursor_gc(). * gtk/gtkentry.c (gtk_entry_expose): Draw cursors under the text, not over the text. * gtk/gtkwidget.c (gtk_widget_class_init): add a secondary-cursor-color property. * gtk/gtkwidget.c (gtk_widget_class_init): Decrease the default aspect ratio to 1/25 (0.04). * tests/testgtkrc (bell_duration): Comment out cursor color setting.
* Fixes for uninstalled operation with module suffixes other than .so and inOwen Taylor2002-03-033-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Mar 2 23:08:23 2002 Owen Taylor <otaylor@redhat.com> Fixes for uninstalled operation with module suffixes other than .so and in general for platforms like AIX where the module suffix isn't predictable. (#72185, problems reported by Miroslaw Dobrzanski-Neumann) * modules/input/Makefile.am (gtk.immodules): Query .la files rather than shared objects in .libs when creating the uninstalled gtk.immodules file. * gtk/gtkmain.c (_gtk_find_module): Look for .la files after looking for the normal soname extension to handle cases where the soname extension isn't predictable, like AIX. * gtk/gtkthemes.c (gtk_theme_engine_load): Don't call g_module_build_path... leave that to gtk_rc_find_module_in_path. * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init): tests/testgtk.c (test_init): tests/testtext.c (test_init) tests/testdnd.c (test_init): Point gdk-pixbuf to .la files rather than poking in .libs for .so files. * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove .libs from GDK_PIXBUF_MODULEDIR.
* Handle NO_WINDOW widgets with windows that are children of widget->window.Owen Taylor2002-03-031-7/+17
| | | | | | | | | | | Sat Mar 2 20:58:30 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW widgets with windows that are children of widget->window. (#50279) * tests/testgtk.c: Add eventboxes to the example so that we are reparenting between different GdkWindows.
* include gdkkeysysms.h if compiling gdk_keyval_convert_case.Owen Taylor2002-03-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | Thu Feb 28 19:55:01 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.c: include gdkkeysysms.h if compiling gdk_keyval_convert_case. * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement <Control>Tab <Control><Shift>Tab to cycle between all menu bars in a toplevel once one is up. * tests/testgtk.c: Add a second menubar, this example is already full of crack anyways. * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd unhandled events up to the parent menu shell. * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only pop up the menu if the parent menu shell is still active. * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a old_focus argument, export privately.
* Convert over to using an GtkInvisible - selections don't work properlyOwen Taylor2002-02-251-5/+8
| | | | | | | | | | | | | | | | Sun Feb 24 23:23:28 2002 Owen Taylor <otaylor@redhat.com> * tests/testselection.c (main): Convert over to using an GtkInvisible - selections don't work properly with now NO_WINDOW GtkToggleButton. (Example really should be using GtkClipboard.) * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): Fix problems if sizeof(GdkAtom) != sizeof(Atom). (Unlikely) * gdk/x11/gdkproperty-x11.c (gdk_property_get): Set actual_length when converting atoms as well. (Gregory Merchan, #72074)
* at Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>Jonathan Blandford2002-02-241-3/+3
| | | | | | | | | | | | | | | | | | | | * gtk/gtktreemodel.h: add () to function macros as per owen's request. * gtk/gtkfontsel.c: (gtk_font_selection_select_best_style), (gtk_font_selection_show_available_sizes), (gtk_font_selection_set_font_name): * gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first), (gtk_tree_model_foreach): * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level), (gtk_tree_model_sort_build_level): * gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach): * gtk/gtktreeview.c: (validate_visible_area), (gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model), (gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move), (gtk_tree_view_search_init): * tests/testtreeview.c: (run_automated_tests): change iter_root to iter_first
* delay scrolling until we try to draw the window.Jonathan Blandford2002-02-231-1/+8
| | | | | | | | | | Wed Feb 20 16:44:05 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): delay scrolling until we try to draw the window. * gtk/gtktreeview.c (validate_visible_area): Implement scroll_to_cell.
* 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.