summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* The table menu patch! Turns GtkMenu into a table, so you can attach menuKristian Rietveld2003-09-101-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Sep 10 22:25:04 2003 Kristian Rietveld <kris@gtk.org> The table menu patch! Turns GtkMenu into a table, so you can attach menu items in numerous new ways! Be creative! Contains some bug fixes and RTL adaptions from Matthias Clasen. * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend GtkMenuPrivate, introduce AttachInfo, add child properties enum, (gtk_menu_free_private), (gtk_menu_get_private): we have to free the heights array in the private struct, (gtk_menu_class_init): reorder code a bit, install child properties, (get_attach_info), (get_child_attach): new utility functions, (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce child properties, for the attach info, (gtk_menu_remove): remove AttachInfo from menu item, (gtk_menu_real_insert): implemented algorithm to automagically place inserted menu items at the correct place in the table, (gtk_menu_size_request), (gtk_menu_size_allocate), (compute_child_offset): reworked/rewritten to support table menus, (gtk_menu_attach): new function, (find_child_containing), (gtk_menu_move_current): new functions to get table menu keynav right. * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
* Only remove PropertyNotify events from the stream if they have beenMatthias Clasen2003-09-101-0/+7
| | | | | | | | | 2003-09-10 Matthias Clasen <maclas@gmx.de> * gtk/gtksocket.c (gtk_socket_filter_func): Only remove PropertyNotify events from the stream if they have been handled, in order to enable extending the plug<->socket communication via properties.
* Big TreeView DnD fixage, makes drops on empty models work, makes TreeStoreKristian Rietveld2003-09-091-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Sep 10 01:06:44 2003 Kristian Rietveld <kris@gtk.org> Big TreeView DnD fixage, makes drops on empty models work, makes TreeStore DnD work and gets rid of gtk-tree-model-drop-append. Related bugs #95362 and #113314. I don't want to touch this code ever again. * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field. * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check for selection_data->length. * gtk/gtktreeview.c (struct DestRow), (dest_row_free), (set_dest_row), (get_dest_row): we don't store just the row ref anymore, but a struct with the row ref and additional info, (set_destination_row): handle drops on empty space and some style fixes, (get_logical_dest_row): also return path_down_mode/drop_append_mode flags, handle dropping childs on their new parents, rewrite drop append handling into something saner, (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty spaces, (gtk_tree_view_drag_drop): updates for updated backend, (gtk_tree_view_drag_data_received): updates for updated backend, path down mode (treestore DnD) handling, (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag, when we are trying to drop a row on an empty model, (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag. * gtk/gtkliststore.c (gtk_list_store_drag_data_received), (gtk_list_store_row_drop_possible): style and drop-append fixes. * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
* Implement gtk_event_box_get/set_input_only()Alexander Larsson2003-09-081-0/+8
| | | | | | | | | | 2003-09-08 Alexander Larsson <alexl@redhat.com> * gtk/gtkeventbox.[hc]: Implement gtk_event_box_get/set_input_only() * tests/testgtk.c: Tests for the new input only event boxes
* Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.Kristian Rietveld2003-09-081-0/+12
| | | | | | | | | | | | | | Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org> Fixes from David Hampton <hampton@employees.org> via gtk-devel-list. * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix the call to gtk_tree_model_filter_add_root, (gtk_tree_model_filter_row_changed): bail out if c_path is not above the virtual root, allow building levels on the second try to convert the child path to a filter path, (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual root when calling gtk_tree_model_filter_elt_get_path.
* Fix a C99ism. (#121640, Josh Beam)Matthias Clasen2003-09-061-0/+19
| | | | | | | | | | | | | | | | | | | | | 2003-09-07 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640, Josh Beam) Fixes for accelerator handling during (un)merging: * gtk/gtkuimanager.c (update_node): Move setting info-action after the switch, since the old action is needed in some cases. In cases of proxy type mismatch, disconnect the old proxy from the old action. * gtk/gtkaction.c (remove_proxy): Renamed from gtk_action_remove_proxy(). Move unsetting of the accelerator here from disconnect_proxy() in order to catch all cases of removing a proxy. (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail() to fail if proxy isn't a proxy of action.
* Added Uzbek filesPablo Saratxaga2003-09-061-0/+5
|
* Make disconnect work for toolitems.Matthias Clasen2003-09-061-0/+5
| | | | | | | 2003-09-07 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c (disconnect_proxy): Make disconnect work for toolitems.
* Disconnect from prev_action, not from action. (Fix by David Hampton)Matthias Clasen2003-09-061-1/+6
| | | | | | | 2003-09-06 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from prev_action, not from action. (Fix by David Hampton)
* //bugs.xfree86.org/show_bug.cgi?id=534)Owen Taylor2003-09-051-0/+9
| | | | | | | | | | | Fri Sep 5 14:15:10 2003 Owen Taylor <otaylor@redhat.com> * Back out locale-dependent interpretation of KP_Decimal, the official XFree86 interpretation is that KP_Decimal => . KP_Separator => , always, independent of locale. (#105161, Frederic Crozat, http://bugs.xfree86.org/show_bug.cgi?id=534)
* Test buttons and toggle buttons as proxies.Matthias Clasen2003-09-041-0/+9
| | | | | | | | | | | | | 2003-09-04 Matthias Clasen <maclas@gmx.de> * tests/testmerge.c: Test buttons and toggle buttons as proxies. * gtk/gtktoggleaction.c (connect_proxy): (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note that a "draw_as_radio" property is needed for check buttons similar to check menu items, in order to fully support button proxies for radio actions. * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
* Test gtk_ui_manager_add_ui().Matthias Clasen2003-09-041-0/+10
| | | | | | | | | | | | | | 2003-09-04 Matthias Clasen <maclas@gmx.de> * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the 'type' argument of gtk_ui_manager_add_ui(). * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments to make this function as powerful as the XML methods of adding UI. (#120647) * gtk/gtk-sections.txt: Add GtkUIManagerItemType.
* Merge from stable.Kristian Rietveld2003-09-041-0/+6
| | | | | | | | Thu Sep 4 19:11:23 2003 Kristian Rietveld <kris@gtk.org> Merge from stable. * docs/RELEASE-HOWTO: updates.
* Use "position" instead of "pos".Matthias Clasen2003-09-041-1/+9
| | | | | | | | | | | * tests/merge-2.ui: Use "position" instead of "pos". * gtk/gtkuimanager.c (start_element_handler): No need to be terse: Change the name of the "pos" attribute to "position". * gtk/tmpl/gtkuimanager.sgml: Change the name of the "pos" attribute to "position".
* Doc tweaks.Matthias Clasen2003-09-041-0/+1
|
* Un-prefix GtkUIManagerNodeType and GtkUIManagerNode to shorten the namesMatthias Clasen2003-09-041-1/+5
| | | | | | * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and GtkUIManagerNode to shorten the names and to make the GTK_UI_MANAGER_<TYPE> names available for a public enum.
* Various doc tweaks.Matthias Clasen2003-09-041-0/+7
| | | | | | | | | 2003-09-04 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c: Various doc tweaks. * gtk/gtkuimanager.c (start_element_handler): (end_element_handler): Improve error reporting.
* Merge from stable.Kristian Rietveld2003-09-031-0/+9
| | | | | | | | | | | Wed Sep 3 23:18:17 2003 Kristian Rietveld <kris@gtk.org> Merge from stable. * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case, use end_position - page_size instead of G_MAXINT, since gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237, reported by Havoc Pennington).
* Merge from stable.Kristian Rietveld2003-09-031-0/+7
| | | | | | | | | Wed Sep 3 21:58:03 2003 Kristian Rietveld <kris@gtk.org> Merge from stable. * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL, unref it. (Fixes memleak, patch from Kjartan Maraas).
* big patch from Kjartan Maraas to fix numerous typos.Kristian Rietveld2003-09-031-0/+10
| | | | | | | | | | | | Wed Sep 3 21:38:26 2003 Kristian Rietveld <kris@gtk.org> * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c, gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c, gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c, gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c, gtk/gtktypeutils.h: big patch from Kjartan Maraas to fix numerous typos.
* Correct compile line for threads example.BST 2003 Tony Gale2003-09-031-0/+4
| | | | | | Wed Sep 3 17:38:01 BST 2003 Tony Gale <gale@gtk.org> * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
* Don't call CloseHandle() on the HMODULE returned from GetModuleHandle().Tor Lillqvist2003-09-021-0/+11
| | | | | | | | | | | | | 2003-09-02 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call CloseHandle() on the HMODULE returned from GetModuleHandle(). Didn't cause any harm, but didn't do anything useful either. When running a GTK+ program under MS's debugger, the CloseHandle() call would cause a "first-chance exception" in ntdll.dll to show up. (The exception is caught appropriately if you let it proceed, but it confuses the person using the debugger). Thanks to Bruce Hochstetler for noticing.
* Merge from stable.Kristian Rietveld2003-09-021-0/+8
| | | | | | | | | | Tue Sep 2 21:01:19 2003 Kristian Rietveld <kris@gtk.org> Merge from stable. * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change to only select when button 1 is pressed introduced in the fix of bug #120187.
* Doc addition.Matthias Clasen2003-09-011-0/+2
| | | | * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
* Shorten the names of some static functions.Matthias Clasen2003-09-011-0/+16
| | | | | | | | | | | | | | | | | | 2003-09-02 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c: Shorten the names of some static functions. Support adding and removing merge nodes dynamically (#120647, Anders Carlsson): * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id and made it public. (gtk_ui_manager_add_ui): New function to add UI elements without juggling XML fragments, currently restricted to menuitems, toolitems and separators. Actions still come from registered action groups.
* Fix bug where the background pixmap was being offset twice, once by theSoeren Sandmann2003-09-011-0/+6
| | | | | | | | Mon Sep 1 19:39:14 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the background pixmap was being offset twice, once by the ts_origin in gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
* Make this public again, since it's occasionally useful. (#121128, MarcoMatthias Clasen2003-08-311-0/+9
| | | | | | | | | | | 2003-09-01 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make this public again, since it's occasionally useful. (#121128, Marco Pesenti Gritti) * gtk/gtkaction.c: Add an "is_important" property and propagate it to toolitem proxies. (#121058, Marco Pesenti Gritti)
* connect to "delete_event" so the application will actually quit when youSoeren Sandmann2003-08-311-0/+5
| | | | | | | Mon Sep 1 00:32:30 2003 Soeren Sandmann <sandmann@daimi.au.dk> * tests/testtoolbar.c (main): connect to "delete_event" so the application will actually quit when you close the window
* g_return_if_fail() if path is NULL. (gtk_ui_manager_get_node): Avoid aMatthias Clasen2003-08-311-0/+9
| | | | | | | | | | | 2003-09-01 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) (gtk_ui_manager_get_action): g_return_if_fail() if path is NULL. (gtk_ui_manager_get_node): Avoid a segfault if path is empty. (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, Marco Pesenti Gritti)
* Fix some typos in docs.Matthias Clasen2003-08-311-0/+2
| | | | * gtk/gtktoolitem.c: Fix some typos in docs.
* Add gtktoggleactionprivate.hMatthias Clasen2003-08-311-1/+7
| | | | | | | | | | | | | | | | 2003-08-31 Matthias Clasen <maclas@gmx.de> * gtk/Makefile.am (IGNORE_HFILES): Add gtktoggleactionprivate.h * gtk/tmpl/gtkuimanager.sgml: * gtk/gtk-sections.txt: Replace gtk_ui_manager_activate by gtk_ui_manager_get_action. * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function, replaces gtk_ui_manager_activate(). (#120658) * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of gtk_ui_manager_activate().
* Additions.Matthias Clasen2003-08-311-2/+3
| | | | | | | | | | | | | | | | | | | | | 2003-08-31 Matthias Clasen <maclas@gmx.de> * gtk/tmpl/gtkuimanager.sgml: * gtk/tmpl/gtkactiongroup.sgml: * gtk/tmpl/gtkaction.sgml: * gtk/tmpl/gtktoggleaction.sgml: * gtk/tmpl/gtkradioaction.sgml: Additions. * gtk/gtk-sections.txt: Updates. * gtk/gtk.types: Add GtkAction, GtkActionGroup, GtkToggleAction, GtkRadioAction and GtkUIManager. * gtk/gtkaction.c: * gtk/gtkactiongroup.c: Some doc tweaks. * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It wasn't emitted anyway. Some doc tweaks.
* Add some docs.Matthias Clasen2003-08-301-0/+7
| | | | | | | | | 2003-08-31 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.c: Add some docs. * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It wasn't emitted anyway.
* Connect to "destroy" on toolbar, rather than to "remove" on handlebox.Matthias Clasen2003-08-301-13/+24
| | | | | | | | | | | | 2003-08-30 Matthias Clasen <maclas@gmx.de> * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar, rather than to "remove" on handlebox. * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to activate an action found by following a path. (#120658) * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
* Put toolbars in handleboxes.Matthias Clasen2003-08-291-1/+2
| | | | | | | | | | | | | | 2003-08-30 Matthias Clasen <maclas@gmx.de> * tests/testmerge.c (add_widget): Put toolbars in handleboxes. * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with setter and getter. If it is set, add tearoff menu items to regular menus, but not to popups. Add a signal "changed", which gets emitted when the merged ui has changed. * tests/testmerge.c: Add button to test the generation of tearoff menu items.
* Put toolbars in handleboxes.Matthias Clasen2003-08-291-0/+2
| | | | * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
* Add a boolean property, "add_tearoffs" with setter and getter. If it isMatthias Clasen2003-08-291-4/+13
| | | | | | | | | | | 2003-08-30 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with setter and getter. If it is set, add tearoff menu items to regular menus, but not to popups. * tests/testmerge.c: Add button to test the generation of tearoff menu items.
* Actually group the actions together rather than putting each in its ownMatthias Clasen2003-08-291-0/+3
| | | | | | | 2003-08-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Actually group the actions together rather than putting each in its own group.
* Set "draw_as_radio" on proxy menu items for radio actions.Matthias Clasen2003-08-291-0/+3
| | | | | | | 2003-08-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items for radio actions.
* Use g_strtod instead of strtod.Matthias Clasen2003-08-291-0/+4
| | | | * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
* Fix use of uninitialized variable.Soeren Sandmann2003-08-291-0/+9
| | | | | | | | | | | Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Fix use of uninitialized variable. * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): add const cast to get rid of warning
* Also support "draw_as_radio".Matthias Clasen2003-08-291-0/+2
| | | | | | | 2003-08-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_get_property): (gtk_check_menu_item_set_property): Also support "draw_as_radio".
* Install "draw_as_radio" as a separate property, not as an alias ofMatthias Clasen2003-08-291-0/+5
| | | | | | | 2003-08-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install "draw_as_radio" as a separate property, not as an alias of "inconsistent".
* Only treat buttons as homogeneous when they are narrower than 13 time theSoeren Sandmann2003-08-291-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Aug 29 20:32:07 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they are narrower than 13 time the estimated character width of the font. (#107781, David Bordoley) * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check here if the GtkToggleButton is active. This may be the case if it is a radio button. * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc vs. void (*) (GtkWidget, gpointer). (#107495, Mariano Suarez-Alvarez). * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio" property. (#111207, David Bordoley). * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_create_menu_proxy): use new "draw_as_radio" property on the menu item when the item is a radio tool button * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes to only pay attention to the "use_underline" property when the button label comes from the "label" property.
* Added "sq" to ALL_LINGUASLaurent Dhima2003-08-291-2/+6
| | | | * configure.in: Added "sq" to ALL_LINGUAS
* Improve PointerHint docs. Explain is_hint field in GdkEventMotion.Matthias Clasen2003-08-271-0/+3
| | | | | | | | | | 2003-08-28 Matthias Clasen <maclas@gmx.de> * gdk/tmpl/events.sgml: Improve PointerHint docs. * gdk/tmpl/event_structs.sgml: Explain is_hint field in GdkEventMotion. (#120542) * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup fix in the docs.
* Change the XML format: <Root> element is replaced by <ui>, <menu> elementMatthias Clasen2003-08-271-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-08-28 Matthias Clasen <maclas@gmx.de> * gtk/gtkuimanager.c: Change the XML format: <Root> element is replaced by <ui>, <menu> element is replaced by <menubar>, <submenu> element is replaced by <menu>, <dockitem> element is replaced by <toolbar>, <popups> element is gone, verb attribute is replaced by action, name defaults to action or the element name. * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified by removing the user_data, entry_type and extra_data fields, GtkRadioActionEntry is further simplified by removing the callback. The user_data can now be specified as an argument to gtk_action_group_add_actions(). There is a new method gtk_action_group_add_radio_actions(), which is similar to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys and a callback parameter in addition to the user_data. The callback is connected to the ::changed signal of the first group member. There are _full() variants taking a GDestroyNotify of gtk_action_group_add_[radio_]actions(). * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted on every member of the radio group when the active member is changed. Add an integer property "value", and a getter for the value of "value" on the currently active group member. * tests/testactions.c: * tests/testmerge.c: * tests/merge-[123].ui: * demos/gtk-demo/appwindow.c: Adjust to these changes. * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
* Focus the text view, so the tool bar won't have focus.Anders Carlsson2003-08-271-0/+5
| | | | | | | 2003-08-27 Anders Carlsson <andersca@gnome.org> * demos/gtk-demo/appwindow.c (do_appwindow): Focus the text view, so the tool bar won't have focus.
* Fix variable declaration not at start of block. (#120371, Damien Carbery)Owen Taylor2003-08-261-0/+5
| | | | | | | Tue Aug 26 09:57:38 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable declaration not at start of block. (#120371, Damien Carbery)
* My firstname is Frederic, not Federico :)Frédéric Crozat2003-08-261-1/+1
|