summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add a checkbox to queue an merge/unmerge. Patch from Matthias Clasen.Soeren Sandmann2004-06-051-3/+11
| | | | | | | | | | | | | | | | | | | | | | | Sat Jun 5 20:05:39 2004 Soeren Sandmann <sandmann@daimi.au.dk> * tests/testmerge.c: Add a checkbox to queue an merge/unmerge. Patch from Matthias Clasen. * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag "need_rebuild" (rebuild_menu): New function that rebuilds the overflow menu and makes sure it doesn't start or end with a separator. (toolbar_content_new_tool_item) (toolbar_content_remove) (toolbar_content_new_compatibility): Set the rebuild_needed flag (gtk_toolbar_size_allocate): Only show the overflow arrow when we have actually overflown an item with a proxy menu item. Also make sure we rebuild the menu if needed. Fix #125504, #142377, #143463 * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose): Obey the "priv->draw" flag. (#143692)
* Support insensitive cells in tree views and combo boxes.Matthias Clasen2004-05-271-1/+28
|
* Add a progress cell renderer, based on the one found in Epiphany.Matthias Clasen2004-05-121-6/+21
|
* Make the second example use the ::match-selected signal to make itMatthias Clasen2004-05-101-0/+19
| | | | | | | 2004-05-10 Matthias Clasen <mclasen@redhat.com> * tests/testentrycompletion.c: Make the second example use the ::match-selected signal to make it actually work.
* tests/makefile.msc is in CVS for a long time, finally added to EXTRA_DISTHans Breuer2004-05-011-1/+3
| | | | | | | | 2004-05-01 Hans Breuer <hans@breuer.org> * tests/Makefile.am : tests/makefile.msc is in CVS for a long time, finally added to EXTRA_DIST : fixes bug #141334, John Ehresman
* Add a missing cat. (#141070, Chris Sherlock)Matthias Clasen2004-04-291-1/+2
| | | | | | | | | | | | | | | | 2004-04-29 Matthias Clasen <mclasen@redhat.com> * tests/testentrycompletion.c (main): Add a missing cat. (#141070, Chris Sherlock) * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused variable. (#141022, Chris Sherlock) * gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing cast. (#141013, Chris Sherlock) * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove unused variable. (#141011, Chris Sherlock)
* Moved search entries into priv data.Jonathan Blandford2004-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Sun Apr 11 15:08:45 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreeprivate.h: Moved search entries into priv data. * gtk/gtktreeview.c: Prep for type-ahead support. (gtk_tree_view_destroy): Destroy the search window explicitly. (gtk_tree_view_key_press): Minor change; prep for type-ahead (gtk_tree_view_ensure_interactive_directory): New function (gtk_tree_view_focus_out): Rework to handle new entry life-cycle. (gtk_tree_view_real_start_interactive_search): rework (gtk_tree_view_search_dialog_hide): ditto (gtk_tree_view_search_delete_event): ditto (gtk_tree_view_search_button_press_event): ditto (gtk_tree_view_search_key_press_event): ditto (gtk_tree_view_search_move): ditto (gtk_tree_view_search_init): ditto * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_cell_layout_clear): remove unused variable. * tests/testfilechooser.c: (main): change
* Plug leak.Morten Welinder2004-03-171-0/+3
| | | | | | 2004-03-17 Morten Welinder <terra@gnome.org> * tests/prop-editor.c (object_changed): Plug leak.
* Plug some leaks and expose others.Morten Welinder2004-03-171-1/+18
| | | | | | | 2004-03-17 Morten Welinder <terra@gnome.org> * tests/testfilechooser.c (main): Plug some leaks and expose others.
* Don't leak the tooltip object.Morten Welinder2004-03-171-3/+12
| | | | | | | 2004-03-17 Morten Welinder <terra@gnome.org> * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip object.
* Rewritten to use the GtkEntryCompletion API more correctly. Now pops downJonathan Blandford2004-03-151-2/+4
| | | | | | | | | | | | | Mon Mar 15 01:50:28 2004 Jonathan Blandford <jrb@gnome.org> * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion API more correctly. Now pops down the dropdown well. * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the FilePath. * test/testfilechooser.c: disable preview widget temporarily. It's not representative of a good preview widget.
* #136672, reported by Christian Persch; fixes based on a patch by SoerenOwen Taylor2004-03-152-1/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Mar 14 19:26:48 2004 Owen Taylor <otaylor@redhat.com> #136672, reported by Christian Persch; fixes based on a patch by Soeren Sandmann. * gtk/gtkmenu.c: Change the handling of mixed gridded and non-gridded menu items; the old method was causing major performance problems even with the "avoid relayout on destruction" hack put in recently. Now we first lay out the gridded items and then put the non-gridded items into empty rows / after the gridded items. Layout is done in a central menu_shell_ensure_layout(). Also avoid emitting property notifications when we initially insert or attach items. * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the unused menu_shell->menu_flag, and document it as unused in the header. * tests/testactions.c: Add a test of creating/removing lots of items. * test/testgtk.c: Add some more cruft to the menu test.
* gtk/gtkcombobox.c : prototype cell_view_sync_cells() before first usageHans Breuer2004-03-141-1/+1
| | | | | | | | | | | 2004-03-14 Hans Breuer <hans@breuer.org> gtk/gtkcombobox.c : prototype cell_view_sync_cells() before first usage gtk/makefile.msc.in : updated 'gtk_public_h_sources' tests/makefile.msc : added testspinbutton
* Ssssh!Morten Welinder2004-03-121-1/+3
|
* Add new testspinbutton.cMorten Welinder2004-03-123-8/+59
| | | | | | 2004-03-12 Morten Welinder <terra@gnome.org> * tests/Makefile.am: Add new testspinbutton.c
* Use gtk_entry_set_width_chars() rather than gtk_widget_set_size_request().Owen Taylor2004-03-111-3/+3
| | | | | | | Thu Mar 11 15:59:05 2004 Owen Taylor <otaylor@redhat.com> * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars() rather than gtk_widget_set_size_request().
* Add support for --multiple.Morten Welinder2004-03-101-0/+5
| | | | | | 2004-03-10 Morten Welinder <terra@gnome.org> * tests/testfilechooser.c (main): Add support for --multiple.
* Support changes in icon themes.Jonathan Blandford2004-03-101-5/+1
| | | | | | | | | | | | | | | | | | Wed Mar 10 02:41:05 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init), (remove_settings_signal), (gtk_path_bar_dispose), (gtk_path_bar_style_set), (gtk_path_bar_screen_changed), (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme), (settings_notify_cb), (gtk_path_bar_check_icon_theme), (get_button_image), (gtk_path_bar_update_button_appearance), (make_directory_button), (gtk_path_bar_check_parent_path): Support changes in icon themes. * gtk/gtkpathbar.h: add two elements * tests/testfilechooser.c: (main): use gnome-vfs method again to get more testing.
* Destroy widgets to reveal leaks.Morten Welinder2004-03-091-0/+4
| | | | | | 2004-03-09 Morten Welinder <terra@gnome.org> * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
* new function to consolidate creating the path_bar.Jonathan Blandford2004-03-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | Mon Mar 8 04:50:12 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdefault.c (create_path_bar): new function to consolidate creating the path_bar. (gtk_file_chooser_default_set_current_folder): no longer need to pass in the filesystem. * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor of just setting the filesystem. * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and home_dir. (get_button_image): Add images to path_bar. (update_button_appearance): use images (make_directory_button): Clasify buttons based upon location. (_gtk_path_bar_set_path): no longer need a file-system. Also, add rerooting, #135845, #135914 * tests/testfilechooser.c: Fix reused error handling.
* Correct localtime_r() emulation on Win32. Remove a couple of unnecessaryTor Lillqvist2004-03-081-4/+1
| | | | | | | 2004-03-08 Tor Lillqvist <tml@iki.fi> * tests/testfilechooser.c: Correct localtime_r() emulation on Win32. Remove a couple of unnecessary Win32-only includes.
* Fixed typo in entry completion test.Christian Neumair2004-03-081-1/+1
|
* Test dynamic addition/removal.Matthias Clasen2004-03-081-7/+98
| | | | | | | | | | | Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de> * tests/testentrycompletion.c: Test dynamic addition/removal. Sun Mar 7 22:38:49 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not xthickness in the calculation of vertical dimensions.
* some more settings from system, also reflect some name changes done aHans Breuer2004-03-071-2/+6
| | | | | | | | | | | | | | | | 2004-03-07 Hans Breuer <hans@breuer.org> * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) : some more settings from system, also reflect some name changes done a while ago in the x11 backend * gdk/win32/makefile.msc : build gdkspawn-win32.c * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4" * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib * tests/makefile.msc : some more tests get build
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-0634-9/+76
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* don't try and store pointers in ints. Fixes 64-bit build.Mark McLoughlin2004-03-031-6/+32
| | | | | | | 2004-03-03 Mark McLoughlin <mark@skynet.ie> * tests/testsocket_common.c: (print_hello): don't try and store pointers in ints. Fixes 64-bit build.
* Plug leak.Morten Welinder2004-03-031-0/+3
| | | | | | 2004-03-03 Morten Welinder <terra@gnome.org> * tests/testfilechooser.c (update_preview_cb): Plug leak.
* Split function into realized and unrealized variants, and consolidate theJonathan Blandford2004-03-031-1/+1
| | | | | | | | | | | | | | | Tue Mar 2 23:39:55 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_realized_size_changed): Split function into realized and unrealized variants, and consolidate the handling fo size-changing and default changing. * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init): remove resizable-hints-changed, as it just complicated things. * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit resizable-hints-changed.
* Add an animation mode, to test how the combobox behaves if the modelMatthias Clasen2004-03-021-2/+37
| | | | | | | | Wed Mar 3 00:28:59 2004 Matthias Clasen <maclas@gmx.de> * tests/testcombochange.c: Add an animation mode, to test how the combobox behaves if the model changes while it is popped up.
* Move the /nonexistant stuff out of the main window, keep the main windowOwen Taylor2004-03-021-37/+28
| | | | | | | | Tue Mar 2 16:47:40 2004 Owen Taylor <otaylor@redhat.com> * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): Move the /nonexistant stuff out of the main window, keep the main window somewhat normal looking.
* gtk/gtktreestore.c (gtk_tree_store_reorder) Fix up the interpretation ofOwen Taylor2004-03-021-8/+6
| | | | | | | | | | | | | | | | | | Tue Mar 2 16:18:43 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_reorder) * gtk/gtkliststore.c (gtk_list_store_reorder): Fix up the interpretation of new_order to match what it means elsewhere, document the meaning of new_order. * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered): Fix interpretation of new_order. * tests/testcombochange.c (on_reorder): Fix interpretation of new_order. * tests/testcombochange.c (on_reorder): Fix hitting "reorder" with an empty list.
* Patch from Frederic Crozat, test code from Jean-Philippe Chancelier. FixesSoeren Sandmann2004-03-022-31/+137
| | | | | | | | | | | | | | | | | | Tue Mar 2 21:23:30 2004 Soeren Sandmann <sandmann@daimi.au.dk> Patch from Frederic Crozat, test code from Jean-Philippe Chancelier. Fixes bug #120479. * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs to the right window group. * gtk/gtkmenu.c (gtk_menu_popup): Same * tests/testsocket.c (main): Pack the plugs into an hbox instead of a vbox. * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a GtkComboBox to the children.
* If the model was empty before, select the first inserted item.Owen Taylor2004-03-022-0/+274
| | | | | | | | | | | | | | | | | Tue Mar 2 14:38:23 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted): If the model was empty before, select the first inserted item. * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Fix up the logic for the new row to select. * gtk/gtkcombobox.c (gtk_combo_box_class_init): Rename "appearance" property to "appears-as-list". * tests/testcombochange.c tests/Makefile.am: Test case for combos and dynamically changing models.
* Don't update the save folder combo if we are already switching folders;Federico Mena Quintero2004-03-021-4/+62
| | | | | | | | | | | | | | | | 2004-03-02 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_current_folder): Don't update the save folder combo if we are already switching folders; based on a patch by Jonathan Blandford. * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): Handle failure to insert the path. Based on a patch by Morten Welinder attached to bug #135380. * tests/testfilechooser.c (extra_widget_create): Add a bunch of buttons to test various things.
* Add testentrycompletion.Matthias Clasen2004-03-022-0/+243
| | | | | | | | | Tue Mar 2 20:59:23 2004 Matthias Clasen <maclas@gmx.de> * tests/Makefile.am: Add testentrycompletion. * tests/testentrycompletion.c: New file to test some of the more exotic GtkEntryCompletion features.
* improve tests a little.Jonathan Blandford2004-03-021-8/+39
| | | | | | Tue Mar 2 14:38:10 2004 Jonathan Blandford <jrb@redhat.com> * tests/testfilechooser.c (main): improve tests a little.
* Don't scale images that are small enough to fit. Avoid using incompatiblyMorten Welinder2004-03-021-20/+16
| | | | | | | | 2004-03-02 Morten Welinder <terra@gnome.org> * tests/testfilechooser.c (size_prepared_cb): Don't scale images that are small enough to fit. Avoid using incompatibly typed data pointer.
* Add gtk_drag_source_set/get_target_list(). (#127499, based on patch fromOwen Taylor2004-03-021-4/+2
| | | | | | | | | | Mon Mar 1 19:30:25 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list(). (#127499, based on patch from Michael Natterer) * tests/testgtk.c: Fix bidi strings to display correctly with new auto-bidi.
* Add gtk_entry_set_alignment() to allow right-aligned entries and aOwen Taylor2004-03-011-1/+8
| | | | | | | | | | | | | | | Sun Feb 29 22:01:49 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() to allow right-aligned entries and a "xalign" property. (#59799, patch from Egon Andersen and Steffen Gutmann) * gtk/gtkmisc.c (gtk_misc_class_init): Use improved xalign property description here too. * tests/testtext.c: UNDERLINE_ERROR test addition from Nicolas Settons' patch.
* New convenience API to construct simple text combos, implemented by DamonMatthias Clasen2004-02-261-27/+16
| | | | | | | | | | | Thu Feb 26 22:20:44 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcomboboxentry.h: * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New convenience API to construct simple text combos, implemented by Damon Chaplin. * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
* re-arrange widgets to allow more overflowing toolbar goodness.Michael Meeks2004-02-201-12/+18
| | | | | | | 2004-02-20 Michael Meeks <michael@ximian.com> * tests/testtoolbar.c (main): re-arrange widgets to allow more overflowing toolbar goodness.
* Don't set a default size for the dialog - FedericoFederico Mena Quintero2004-02-141-2/+0
|
* Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.Federico Mena Quintero2004-02-101-0/+2
| | | | | | | | | 2004-02-10 Federico Mena Quintero <federico@ximian.com> Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>. * tests/prop-editor.c (create_prop_editor): Free the title. (object_changed): Free the children list.
* Fix #59707.Federico Mena Quintero2004-02-041-2/+2
| | | | | | | | | | | | | | | 2004-02-04 Federico Mena Quintero <federico@ximian.com> Fix #59707. * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore the focus chain. (gtk_label_button_press): Fix prototype. (gtk_label_button_release): Likewise. (gtk_label_motion): Likewise. * tests/testgtk.c (create_message_dialog): For the dialog with only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
* new GTK_STOCK_NETWORK ... gtk/gtkstock.[hc] : ... define ...Hans Breuer2004-01-282-4/+9
| | | | | | | | | | | | | | | | | | 2004-01-28 Hans Breuer <hans@breuer.org> * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ... gtk/gtkstock.[hc] : ... define ... gtk/gtkiconfactory.c : ... register ... gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ... * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent IFace changes. * gtk/gtk.def : added a bunch of new exported symbols * tests/testfilechooser.c (no_backup_files_filter) : don't crash on filter_info->display_name being NULL * tests/testgtk.c : make testgtk --bench=all work again
* Set a small size request and make the window resizable, to testSoeren Sandmann2004-01-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Jan 18 13:16:34 2004 Soeren Sandmann <sandmann@daimi.au.dk> * tests/testgtk.c (create_toolbar): Set a small size request and make the window resizable, to test mapping/unmapping of buttons. * gtk/gtktoolbar.c (gtk_toolbar_remove_content, gtk_toolbar_insert_tool_item): remove these functions. * gtk/gtktoolbar.c (gtk_toolbar_show_all, toolbar_content_show_all, gtk_toolbar_hide_all, toolbar_content_hide_all): New functions. Ignore show_all/hide_all for buttons created in compatibility mode. * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all, gtk_toolbar_hide_all): Make sure buttons are ignored by gtk_toolbar_show_all() and gtk_toolbar_hide_all(). * gtk/gtktoolbar.c: s/regular_widget/compatibility/g * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate GtkToolbarChild inline. Get rid of GtkToolbarChildSpace. * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget could become NULL. * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items instead of prepending them. * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same 'elapsed' for all items. * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans into bitfields. * gtk/gtktoolbar.c: Many formatting fixes
* Adjust to the new connect_proxy signals.Jody Goldberg2004-01-121-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Jan 12 23:40:34 2004 Matthias Clasen <maclas@gmx.de> * tests/testmerge.c: Adjust to the new connect_proxy signals. * gtk/gtkuimanager.c * gtk/gtkactiongroup.c * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This removes the confusion between the disconnect_/connect_proxy signals and the (unrelated) virtual functions of the same name and aligns the setup with the pre_/post_activate signals. 2004-01-12 Jody Goldberg <jody@gnome.org> * gtk/gtkaction.c (connect_proxy) : only connect activate for menus with no submenus otherwise it looks like we activate every time a submenu opens. 2004-01-10 Jody Goldberg <jody@gnome.org> * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew. s/merge_signals/ui_manager_signals/ for readability. (gtk_ui_manager_class_init) : add pre_activate and post_activate signals. (cb_proxy_pre_activate) : new. (cb_proxy_post_activate) : new. (gtk_ui_manager_insert_action_group) : connect the proxies for GtkActionGroup::pre/post_activate (gtk_ui_manager_remove_action_group) : disconnect them. * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add 'sensitive', and 'visible' properties. Also add pre_activate and post_activate signals to help deal with activations at a higher level (eg GtkUIManager) (gtk_action_group_init) : init sensitive and visible (gtk_action_group_set_property) : add sensitive and visible (gtk_action_group_get_property) : add sensitive and visible (gtk_action_group_get_sensitive) : new. (gtk_action_group_get_visible) : new. (cb_set_action_sensitivity) : new with minor optimization that only signals sensitivity changes if the action could possibly change. (cb_set_action_visiblility) : ditto. (gtk_action_group_set_sensitive) : new. walk the actions directly rather than using notify::sensitive because that is simpler, easier to read, and more efficient. (gtk_action_group_set_visible) : ditto. (gtk_action_group_add_action) : Each action can only be in 1 group, set GtkAction::action_group. (gtk_action_group_remove_action) : clear it. (gtk_action_group_add_toggle_actions_full) : warning suppression. (gtk_action_group_add_radio_actions_full) : warning suppression. (_gtk_action_group_emit_pre_activate) : new protected routine for use by GtkAction. (_gtk_action_group_emit_post_activate) : ditto. * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property. (gtk_action_init) : initialize it. (gtk_action_get_property) : get. (gtk_action_set_property) : set it via (gtk_action_set_action_group) : new function. (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity with the logical sensitivity (action & group) rather than the simple action::sensitivity. (gtk_action_sync_visible) : use gtk_action_is_visible to handle logical visibility (action & group) rather than the simple action::visible. Use widget show/hide directly. (connect_proxy) : handle the custom sensitivity handler. Make the TOOL_BUTTON signals more general and support TOOL_ITEM directly, with special cases for TOOL_BUTTON. Still not especially good it might be useful to handle label/use_underline by parmspec lookup. Those are likely to be implemented by custom types, and are assumed to exist in GtkToolItem. (disconnect_proxy) : disconnect the new sensitivity handler. (_gtk_action_emit_activate) : add pre/post signals. (gtk_action_activate) : use logical sensitivity. (gtk_action_is_sensitive) : logical sensitivity. (gtk_action_get_sensitive) : actual sensitivity. (closure_accel_activate) : use logical sensitivity.
* New function to obtain a list of toplevel widgets constructed by the uiMatthias Clasen2004-01-081-0/+25
| | | | | | | | | | | | | | Fri Jan 9 00:34:57 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.h: * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to obtain a list of toplevel widgets constructed by the ui manager. * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that the values can be combined for gtk_ui_manager_get_toplevels(). * tests/testmerge.c: Add a "Dump toplevels" button to test gtk_ui_manager_get_toplevels().
* Pull accelerator key from the stock item if stock_id is given, butMatthias Clasen2003-12-311-1/+1
| | | | | | | | | | | | | Wed Dec 31 02:05:39 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): (gtk_action_group_add_toggle_actions_full): (gtk_action_group_add_radio_actions_full): Pull accelerator key from the stock item if stock_id is given, but accelerator not. (Noticed by Jeff Franks and Jody Goldberg) * tests/testmerge.c: Remove the accelerator from the "Open" entry to test the above change.
* handle GTK_DATADIR similar as the other filesystem placement 'constants'Hans Breuer2003-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-14 Hans Breuer <hans@breuer.org> * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR similar as the other filesystem placement 'constants' (dynamic resolving on win32) * gtk/gtkfilechooserwidget.c : handle file system to win32 renaming here as will * gtk/gtkfilesystemwin32.c : implement render_icon * gtk/gtk.def gdk/gdk.def : updated externals * gdk/win32/gdkdisplay-win32.c : make it compile without <multimon.h> - i.e. even older sdk * gdk/win32/gdkevents-win32.c : match resize_timer_proc with TIMERPROC prototype * gdk/win32/gdkwindow-win32.c : older msvc does not know BITMAPV5HEADER (from win xp) either * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is not defined * tests/testfilechooser.c : recent GLib crashes on g_print ("%s", NULL) so avoid this