summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Return the index of the newly inserted page. (#130986, Olexiy Avramchenko)Matthias Clasen2004-01-152-39/+59
| | | | | | | | | | | | | Fri Jan 16 00:04:43 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtknotebook.h: * gtk/gtknotebook.c (gtk_notebook_append_page): * gtk/gtknotebook.c (gtk_notebook_append_page_menu): * gtk/gtknotebook.c (gtk_notebook_prepend_page): * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): * gtk/gtknotebook.c (gtk_notebook_insert_page): * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the index of the newly inserted page. (#130986, Olexiy Avramchenko)
* Inserting a 'newly-allocated' to hint that the list should be freed afterMatthias Clasen2004-01-151-1/+2
| | | | | | | | Thu Jan 15 23:17:14 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting a 'newly-allocated' to hint that the list should be freed after use.
* move grab_focus to after handling the button presses in the TreeView toJonathan Blandford2004-01-151-11/+20
| | | | | | | | Wed Jan 14 18:01:52 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus to after handling the button presses in the TreeView to avoid getting multiple selection_changes()
* Documentation fix. (#131335, Theppitak Karoonboonyanan)Matthias Clasen2004-01-141-3/+3
| | | | | | | Wed Jan 14 21:16:20 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkimcontext.c: Documentation fix. (#131335, Theppitak Karoonboonyanan)
* Don't leak name and stock_id. (#131358, Morten Welinder)Matthias Clasen2004-01-141-4/+6
| | | | | | | Wed Jan 14 21:00:49 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): Don't leak name and stock_id. (#131358, Morten Welinder)
* Add a writable group property to align with the GtkRadioButton API.Matthias Clasen2004-01-141-1/+31
| | | | | | | Wed Jan 14 02:34:57 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkradioaction.c: Add a writable group property to align with the GtkRadioButton API. (#129166, Olivier Andrieu)
* Adjust to the new connect_proxy signals.Jody Goldberg2004-01-125-112/+660
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove accidentially committed debug spew.Matthias Clasen2004-01-111-17/+2
| | | | | | Mon Jan 12 00:10:20 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
* Remove accidentally committed notification stuff.Matthias Clasen2004-01-111-101/+24
| | | | | | | | | | Sun Jan 11 01:55:07 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. (gtk_accel_map_lock_path): (gtk_accel_map_unlock_path): Path locking can now be nested, a missing entry is silently created during lock_path(), and treated as an error during unlock_path(). These changes have been requested by Tim Janik.
* Introduce a new parser state for accelerator elements to avoid misparsingMatthias Clasen2004-01-091-8/+34
| | | | | | | | Fri Jan 9 22:23:45 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c: Introduce a new parser state for accelerator elements to avoid misparsing files containing such elements. (#131035, Morten Welinder)
* New function to obtain a list of toplevel widgets constructed by the uiMatthias Clasen2004-01-082-11/+78
| | | | | | | | | | | | | | 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().
* Change the return value from gint to gboolean. (#130718, reported byMatthias Clasen2004-01-072-2/+2
| | | | | | | | Wed Jan 7 23:07:28 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkmain.h: * gtk/gtkmain.c (gtk_events_pending): Change the return value from gint to gboolean. (#130718, reported by Johannes Weißl)
* Remove the redundant name and stock_id parameters, adjust all callers.Matthias Clasen2004-01-072-24/+18
| | | | | | | | Wed Jan 7 23:03:32 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.h: * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): Remove the redundant name and stock_id parameters, adjust all callers.
* Add creation functions for actions.Matthias Clasen2004-01-077-50/+162
| | | | | | | | | | | | | | | | | Wed Jan 7 22:20:20 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.h: * gtk/gtkaction.c (gtk_action_new): * gtk/gtktoggleaction.h: * gtk/gtktoggleaction.c (gtk_toggle_action_new): * gtk/gtkradioaction.h: * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation functions for actions. * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): (gtk_action_group_add_toggle_actions_full): (gtk_action_group_add_radio_actions_full): and use the new functions here. (#125322, Patch by Jeff Frank)
* Fix grammar of docs.Matthias Clasen2004-01-071-4/+96
| | | | | | | Wed Jan 7 21:42:49 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of docs.
* add REMOVABLE column to the shortcuts_model.Jan Arne Petersen2004-01-071-57/+38
| | | | | | | | | | | | | | | 2004-01-07 Jan Arne Petersen <jpetersen@uni-bonn.de> * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path), (shortcuts_append_home), (shortcuts_append_desktop), (shortcuts_append_paths), (shortcuts_add_volumes), (shortcuts_append_bookmarks), (create_shortcuts_model), (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column to the shortcuts_model. (remove_bookmark_button_clicked_cb), (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if bookmarks can be removed. Fixes #129873
* Call gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.Jody Goldberg2004-01-061-1/+1
| | | | | | | 2004-01-06 Jody Goldberg <jody@gnome.org> * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
* Use 0777 as the mode for mkdir() and let the umask do the right thing.Federico Mena Quintero2004-01-061-1/+1
| | | | | | | | 2004-01-06 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use 0777 as the mode for mkdir() and let the umask do the right thing. Fixes #121819.
* g_path_skip_root() can return NULL; handle this. Fixes #129565.Federico Mena Quintero2004-01-061-35/+35
| | | | | | | 2004-01-06 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root() can return NULL; handle this. Fixes #129565.
* Removed space that proceeded the end-of-sentence punctuation. Fixes:Alexander Winston2004-01-061-1/+1
| | | | | | | 2004-01-06 Alexander Winston <alexander.winston@comcast.net> * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space that proceeded the end-of-sentence punctuation. Fixes: #130353.
* Oops, call shortcuts_add_bookmarks() here.Federico Mena Quintero2004-01-061-4/+8
| | | | | | | | | | | 2004-01-05 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops, call shortcuts_add_bookmarks() here. (remove_bookmark_button_clicked_cb): Ahem, fetch the selected iter. (shortcuts_append_paths): Don't display error dialogs here. (create_file_list): Remove the @#$% rules hint.
* New helper function. (toolbar_create): Do not use a toolbar widget, justFederico Mena Quintero2004-01-061-164/+100
| | | | | | | | | | | | | | | 2004-01-05 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper function. (toolbar_create): Do not use a toolbar widget, just an hbox instead. Add the bookmarks buttons and the current folder label here. (create_filename_entry_and_filter_combo): Create the filter combo here. (filter_create): Don't show the filter combo initially. (up_button_cb): Renamed from toolbar_up_cb(). (create_shortcuts_buttons): Removed.
* Change API so group is a GtkRadioButton, not a GtkWidget.Soeren Sandmann2004-01-042-4/+4
| | | | | | | | Sun Jan 4 15:29:04 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkradiotoolbutton.[ch] (gtk_radio_tool_button_new_with_stock_from_widget): Change API so group is a GtkRadioButton, not a GtkWidget.
* use SWP_NOACTIVATE in gdk_window_set_keep_(above|below) to make DND workHans Breuer2004-01-048-36/+176
| | | | | | | | | | | | | | | | | | | | 2004-01-04 Hans Breuer <hans@breuer.org> * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in gdk_window_set_keep_(above|below) to make DND work again. Thanks to Alif Wahid for noticing. * gdk/gdk.def : update externals * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : gtk/stock-icons/stock_harddisk_16.png gtk/stock-icons/stock_harddisk_24.png Harddisk stock icons for file system implementations. Beside FLOPPY and CDROM there is now HARDDISK, probably some GTK_STOCK_NETWORK would be useful, but I could not find one.
* Update freedesktop.org clipboard doc link. Patch from Andrew MoiseManish Singh2004-01-031-6/+6
| | | | | | | Sat Jan 3 11:39:42 2004 Manish Singh <yosh@gimp.org> * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link. Patch from Andrew Moise (#130462).
* add visible_horizontal, visible_vertical. (gtk_action_class_init) : here.Jody Goldberg2004-01-023-94/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-01 Jody Goldberg <jody@gnome.org> * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal, visible_vertical. (gtk_action_class_init) : here. (gtk_action_init) : here. (gtk_action_set_property) : here. (gtk_action_get_property) : here. (connect_proxy) : and here. 2003-12-30 Jody Goldberg <jody@gnome.org> * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) : new utility routine for use in derived GtkActions with the replicated code from. (gtk_action_group_add_actions_full) : here. (gtk_action_group_add_toggle_actions_full) : here. (gtk_action_group_add_radio_actions_full) : and here. 2003-12-24 Jody Goldberg <jody@gnome.org> * gtk/gtkactiongroup.h : Add some const to the char * in GtkActionEntry*. We're reccomending people pass static strings to them, and not freeing them. This stems to flood of warnings that result. * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change temp vars to const to match above. (gtk_action_group_add_toggle_actions_full) : ditto. (gtk_action_group_add_radio_actions_full) : ditto.
* Changes to support week_start values other than 0 and 1, e.g. 6 will letMatthias Clasen2004-01-021-21/+19
| | | | | | | | | | Fri Jan 2 02:50:11 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcalendar.c (gtk_calendar_compute_days): * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support week_start values other than 0 and 1, e.g. 6 will let weeks start on Saturday. (#130353, Roozbeh Pournader)
* Use ngettext for plurals (#123847).Christian Neumair2003-12-311-1/+1
|
* Pull accelerator key from the stock item if stock_id is given, butMatthias Clasen2003-12-311-21/+47
| | | | | | | | | | | | | 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.
* Make show_all() work for the extra and preview widgets; reported by PaoloFederico Mena Quintero2003-12-291-2/+2
| | | | | | | | | | | 2003-12-29 Federico Mena Quintero <federico@ximian.com> Make show_all() work for the extra and preview widgets; reported by Paolo Maggi. * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the preview widget. (set_extra_widget): show_all() the extra widget.
* Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle functions.Soeren Sandmann2003-12-293-2/+17
| | | | | | | | | | | Mon Dec 29 12:22:22 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkuimanager.c (do_updates): * gtk/gtktoolbar.c (slide_idle_handler): * gtk/gtkdnd.c (gtk_drag_update_idle): Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle functions. (#130157, patch from Olexiy Avramchenko).
* Update my e-mail address.Anders Carlsson2003-12-2912-12/+12
| | | | | | | | | | | | | | | | | | 2003-12-29 Anders Carlsson <andersca@gnome.org> * gtk/gtkradiotoolbutton.c: * gtk/gtkradiotoolbutton.h: * gtk/gtkseparatortoolitem.c: * gtk/gtkseparatortoolitem.h: * gtk/gtktoggletoolbutton.c: * gtk/gtktoggletoolbutton.h: * gtk/gtktoolbar.c: * gtk/gtktoolbar.h: * gtk/gtktoolbutton.c: * gtk/gtktoolbutton.h: * gtk/gtktoolitem.c: * gtk/gtktoolitem.h: Update my e-mail address.
* Add a way to lock individual accelerator paths. (#73207, reported by HavocMatthias Clasen2003-12-292-0/+62
| | | | | | | | Mon Dec 29 01:36:22 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, gtk_accel_map_unlock_path): Add a way to lock individual accelerator paths. (#73207, reported by Havoc Pennington)
* use CHILD_VISIBLE instead of VISIBLE to determine whether we should stopSoeren Sandmann2003-12-271-1/+2
| | | | | | | | Sat Dec 27 23:17:56 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE instead of VISIBLE to determine whether we should stop sliding. (#130018, reported by Christian Persch).
* Don't use first_action without initializing it if n_entries is 0.Matthias Clasen2003-12-261-2/+2
| | | | | | | Fri Dec 26 23:24:35 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Don't use first_action without initializing it if n_entries is 0.
* fix GTK_TYPE_ICON_INFO macro, reported by muppet.Manish Singh2003-12-241-1/+1
| | | | | | | Tue Dec 23 22:34:50 2003 Manish Singh <yosh@gimp.org> * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by muppet.
* Add GtkClipboardTargetReceivedFunc, gtk_clipboard_request_targets() andMatthias Clasen2003-12-242-0/+115
| | | | | | | | Wed Dec 24 01:12:53 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc, gtk_clipboard_request_targets() and gtk_clipboard_wait_for_targets(). (#101774, Dom Lachowicz)
* Use gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right. Removed.Matthias Clasen2003-12-211-49/+23
| | | | | | | | | | | | | Mon Dec 22 00:40:39 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right. * gtk/gtkcalendar.c (draw_arrow_left): (draw_arrow_right): Removed. * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the arrow_state to GTK_STATE_INSENSITIVE if the calendar is insensitive. (#97376)
* Fix memory leaks caused by the failure to free the result ofMatthias Clasen2003-12-213-3/+16
| | | | | | | | | | | | | | Sun Dec 21 23:17:01 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c (update_node): (update_smart_separators): (_gtk_menu_is_empty): (find_menu_position): * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): (gtk_combo_box_relayout): Fix memory leaks caused by the failure to free the result of gtk_container_get_children(). (#127576, Yao Zhang)
* New function to emit the "cancel" signal on a menu shell.Matthias Clasen2003-12-215-5/+20
| | | | | | | | | | | | | | Sun Dec 21 01:54:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkmenushell.h: * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function to emit the "cancel" signal on a menu shell. * gtk/gtkmenu.c (gtk_menu_key_press): * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the new function instead of directly emitting the signal. (#81803, Owen Taylor)
* Fix the "language_set" blurb. (#129720, Christian Rose)Matthias Clasen2003-12-201-1/+1
| | | | | | | Sun Dec 21 00:39:50 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): Fix the "language_set" blurb. (#129720, Christian Rose)
* do not invalidate all of treeview when resizing (#110074, patch fromKristian Rietveld2003-12-201-1/+3
| | | | | | | Sat Dec 20 22:06:03 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate all of treeview when resizing (#110074, patch from Soeren Sandmann).
* Fixes #108458.Kristian Rietveld2003-12-196-0/+172
| | | | | | | | | | | | | | | | | | | | Fri Dec 19 23:36:00 2003 Kristian Rietveld <kris@gtk.org> Fixes #108458. * gtk/gtkcelllayout.[ch]: added a reorder method. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init), (gtk_tree_view_column_cell_layout_reorder): implement reorder. * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init), (gtk_cell_view_cell_layout_reorder): ditto. * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init), (gtk_combo_box_cell_layout_reorder): ditto. * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init), (gtk_entry_completion_reorder): ditto.
* use strstr instead of strcmp (#117127, suggestion from Soeren Sandmann).Kristian Rietveld2003-12-191-1/+1
| | | | | | | Fri Dec 19 22:18:19 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr instead of strcmp (#117127, suggestion from Soeren Sandmann).
* move item insertion logic here from gtk_menu_real_insert(),Kristian Rietveld2003-12-191-9/+25
| | | | | | | | | | Fri Dec 19 21:52:46 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic here from gtk_menu_real_insert(), (gtk_menu_real_insert): just call gtk_menu_do_insert(), (gtk_menu_reorder_child): run _do_insert after inserting the child (unbreaks _reorder_child, reported by Tim Janik).
* Use g_date_strftime() for UTF-8 correctness; use Julian dates to simplifyFederico Mena Quintero2003-12-191-41/+19
| | | | | | | | 2003-12-19 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use g_date_strftime() for UTF-8 correctness; use Julian dates to simplify the function.
* Fix the behaviour of insensitive actions, which was broken whenMatthias Clasen2003-12-194-3/+11
| | | | | | | | | | | | | | | | Fri Dec 19 01:35:34 2003 Matthias Clasen <maclas@gmx.de> Fix the behaviour of insensitive actions, which was broken when gtk_action_activate() was changed to pay attention to sensitivity (#129557, Christian Persch) * gtk/gtkaction.h: * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary function to emit an activate signal without regard to sensitivity. * gtk/gtkradioaction.c: * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate() instead of gtk_action_activate().
* Fixes #110249, reworked patch from Joshua N Pritikin.Kristian Rietveld2003-12-182-0/+174
| | | | | | | | | | | | | | | | | | Thu Dec 18 19:13:12 2003 Kristian Rietveld <kris@gtk.org> Fixes #110249, reworked patch from Joshua N Pritikin. * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type), (gtk_tree_model_sort_tree_drag_source_init), (gtk_tree_model_sort_row_draggable), (gtk_tree_model_sort_drag_data_get), (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource. * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type), (gtk_tree_model_filter_tree_drag_source_init), (gtk_tree_model_filter_row_draggable), (gtk_tree_model_filter_drag_data_get), (gtk_tree_model_filter_drag_data_delete): ditto.
* add key bindings for "*" and "/" (expand/collapse all). (#110195, reportedKristian Rietveld2003-12-181-0/+23
| | | | | | | | Thu Dec 18 18:01:01 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings for "*" and "/" (expand/collapse all). (#110195, reported by Calum Benson).
* clear the extra_attrs list if we set "text" after "markup". (FixesKristian Rietveld2003-12-181-0/+11
| | | | | | | | Thu Dec 18 17:52:56 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): clear the extra_attrs list if we set "text" after "markup". (Fixes #121933, Federico Mena Quintero).