1. 22 Sep, 2003 1 commit
  2. 21 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Changes to make cross-process merging feasible: · d381967d
      Matthias Clasen authored
      2003-09-21  Matthias Clasen  <maclas@gmx.de>
      	Changes to make cross-process merging feasible:
      	* gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
      	merged UI definition. Remove the "changed" signal, since its role
      	is now filled by "notify::ui". Instead add a "actions-changed" signal
      	which gets emitted when the set of actions changes.
      	* gtk/gtktoggleactionprivate.h:
      	* gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
      	Add a "draw_as_radio" property to toggle actions so that they can be
      	used as proxies for radio actions much like the "draw_as_radio"
      	property on check menu items enables them to operate as proxies for
      	radio actions.
      	Prevent the "show_all" trap for action-based menus (see
      	* gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
      	calls from static functions.
      	* gtk/gtkuimanager.c (update_node):
      	* gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
      	widgets whose visibility is externally controlled.
      	* gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean
      	"no_show_all" property with setter and getter. When TRUE, it keeps
      	gtk_widget_{hide,show}_all() from modifying the visibility of the
      	widget and its children.
  3. 17 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Install accelerators on actions, not on proxies, support accelerator-only · 0ceb0db0
      Matthias Clasen authored
      2003-09-18  Matthias Clasen  <maclas@gmx.de>
      	Install accelerators on actions, not on proxies, support
      	accelerator-only actions:
      	* gtk/gtkmenu.c (get_accel_path): New function to get the accel path
      	and its lock status either via _gtk_widget_get_accel_path() or by
      	looking at the accel_path stored in the menu item itself and determining
      	its lock status by peeking into the contained accel label. This was
      	already (accidentally) committed a week ago.
      	* gtk/gtkaction.h (gtk_action_set_accel_group):
      	(gtk_action_[dis]connect_accelerator): New functions.
      	* gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
      	accel_closure and accel_count. We must have a reference to the accel_group,
      	since we need it in connect_proxy. The count is necessary to ensure
      	that the accelerator isn't removed before the last proxy requesting
      	it has been unmerged.
      	(connect_proxy): Connect the accelerator to the
      	action now, only set the accel_path on the menuitem.
      	(remove_proxy): Disconnect the accelerator from the action, not from
      	the menuitem.
      	(gtk_action_set_accel_group): Set the accel group.
      	(gtk_action_[dis]connect_accelerator): Count the number of times
      	this functions have been called and install/remove the accelerator if
      	the count leaves/reaches zero.
      	* gtk/gtkuimanager.h (GtkUIManagerItemType): Add
      	* gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
      	(start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
      	<accelerator> elements.
      	(gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
      	(update_node): Set the accel group on actions before creating their
      	proxies. Don't set the accel group on created menus. For
      	NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
      	(print_node): Also emit <accelerator> elements.
      	* tests/testmerge.c (dump_accels): Add a "Dump Accels" button.
  4. 15 Sep, 2003 3 commits
    • Matthias Clasen's avatar
      Apply egtk-format-protos. Doc tweaks. · 543b020f
      Matthias Clasen authored
      	* gtk/gtkaction.h: Apply egtk-format-protos.
      	* gtk/gtkuimanager.c: Doc tweaks.
      	* gtk/tmpl/gtkaction.sgml:
      	* gtk/tmpl/gtkradioaction.sgml:
      	* gtk/tmpl/gtkactiongroup.sgml:
      	* gtk/tmpl/gtkuimanager.sgml: Updates.
    • Matthias Clasen's avatar
      New function which implements "smart" separators by iterating once over · c77b0caa
      Matthias Clasen authored
      	* gtk/gtkuimanager.c (update_smart_separators): New function which
      	implements "smart" separators by iterating once over the entries of a
      	menu, hiding and showing separators as necessary.
      	(update_node): Mark separators used as fences of placeholders as
      	hidden. Explicitly added separators are marked as smart. Call
      	update_smart_separators after updating a menu or toolbar node.
      	Connect update_smart_separators to "notify::visible" signal on menu
      	and tool items.
      	* tests/merge-[12].ui: Test smart separators.
      	* gtk/tmpl/gtkuimanager.sgml: Add a paragraph about smart separators.
    • Matthias Clasen's avatar
      Add value parameter to allow setting the currently selected group member · caf380c7
      Matthias Clasen authored
      2003-09-15  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
      	(gtk_action_group_add_radio_actions_full): Add value parameter to allow
      	setting the currently selected group member before connecting signals.
      	(GtkToggleActionEntry): Separate struct for constructing toggle actions,
      	including a boolean to initialize the action state before connecting
      	(gtk_action_group_add_toggle_actions_full): New functions to construct
      	toggle actions from an array of GtkToggleActionEntries.
      	* demos/gtk-demo/appwindow.c:
      	* tests/testactions.c:
      	* tests/testmerge.c: Adjust to new action group API.
      	* gtk/gtk-sections.txt: Add gtk_action_group_add_toggle_actions[_full].
  5. 11 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Add deprecation notes. (#121955) · df145210
      Matthias Clasen authored
      2003-09-12  Matthias Clasen  <maclas@gmx.de>
      	* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)
      	(gdk_draw_text_wc): Add deprecation notes.  (#121955)
  6. 04 Sep, 2003 3 commits
    • Matthias Clasen's avatar
      Test gtk_ui_manager_add_ui(). · 02a963e1
      Matthias Clasen authored
      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.
    • Matthias Clasen's avatar
      Use "position" instead of "pos". · 6c227b5a
      Matthias Clasen authored
      	* 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".
    • Matthias Clasen's avatar
      Doc tweaks. · 0a163c7f
      Matthias Clasen authored
  7. 01 Sep, 2003 4 commits
    • Matthias Clasen's avatar
      Doc addition. · 2ece92c8
      Matthias Clasen authored
      	* gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
    • Matthias Clasen's avatar
      Additions. · 7899a702
      Matthias Clasen authored
    • Matthias Clasen's avatar
      Shorten the names of some static functions. · cbbe97ab
      Matthias Clasen authored
      2003-09-02  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtkuimanager.c: Shorten the names of some static
      	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.
    • Matthias Clasen's avatar
      Add an example UI description. · 38ee74b0
      Matthias Clasen authored
      	* gtk/tmpl/gtkuimanager.sgml: Add an example UI description.
  8. 31 Aug, 2003 3 commits
    • Matthias Clasen's avatar
      Make this public again, since it's occasionally useful. (#121128, Marco · 7cddc693
      Matthias Clasen authored
      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)
    • Matthias Clasen's avatar
      Add gtktoggleactionprivate.h · 2c41fc09
      Matthias Clasen authored
      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/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
    • Matthias Clasen's avatar
      Additions. · 320bba9f
      Matthias Clasen authored
      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.
  9. 27 Aug, 2003 1 commit
  10. 25 Aug, 2003 1 commit
  11. 24 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      New templates. · 20667ea7
      Matthias Clasen authored
      2003-08-24  Matthias Clasen  <maclas@gmx.de>
      	* gtk/tmpl/gtkmenumerge.sgml:
      	* gtk/tmpl/gtkaction.sgml:
      	* gtk/tmpl/gtkactiongroup.sgml:
      	* gtk/tmpl/gtkradioaction.sgml:
      	* gtk/tmpl/gtktoggleaction.sgml: New templates.
      	* gtk/gtk-docs.sgml:
      	* gtk/gtk-sections.txt: Add GtkMenuMerge, GtkAction, GtkActionGroup,
      	GtkRadioAction, GtkToggleAction.
  12. 11 Aug, 2003 1 commit
  13. 10 Aug, 2003 2 commits
  14. 09 Aug, 2003 1 commit
  15. 08 Aug, 2003 1 commit
  16. 03 Aug, 2003 1 commit
  17. 29 Jul, 2003 2 commits
    • Soeren Sandmann's avatar
      Move documentation inline from template files. · 05ce8747
      Soeren Sandmann authored
      Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtk/gtktoolbar.c (gtk_toolbar_set_style,
      	gtk_toolbar_prepend_element, gtk_toolbar_append_element,
      	gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
      	gtk_toolbar_append_space, gtk_toolbar_insert_item,
      	gtk_toolbar_prepend_item, gtk_toolbar_append_item,
      	gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
      	gtk_toolbar_new, gtk_toolbar_prepend_item):
      	Move documentation inline from template files.
      	* gtk/gtktoolbar.c (gtk_toolbar_insert_element,
      	gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
      	gtk_toolbar_append_widget, gtk_toolbar_remove_space,
      	gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
      	gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
      	gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
      	gtk_toolbar_get_style, gtk_toolbar_get_orientation)
      	Copy documentation from stable that was added after the EggToolbar
      	* gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
    • Sven Neumann's avatar
      Resurrected documentation that got lost when the window parameter was · ac209d13
      Sven Neumann authored
      2003-07-29  Sven Neumann  <sven@gimp.org>
      	* gdk/tmpl/pixmaps.sgml: Resurrected documentation that got lost
      	when the window parameter was renamed to drawable.
  18. 21 Jul, 2003 1 commit
  19. 18 Jul, 2003 3 commits
    • Matthias Clasen's avatar
      Add authentication icon. · a314e4c2
      Matthias Clasen authored
    • Matthias Clasen's avatar
      New function. (#64562) · 1fd4cd2f
      Matthias Clasen authored
      2003-07-19  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtkbbox.h:
      	* gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New function. (#64562)
    • Matthias Clasen's avatar
      Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): · eaae0a6b
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport.
      	(gtk_text_view_move_viewport): New function which implements the move_viewport functionality.
      	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669)
      	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument.
      	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property.  (#111779)
      	* gtk/gtkwindow.h:
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
      	* gtk/gtkmessagedialog.h:
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
      	(#65501, Sebastian Rittau)
  20. 14 Jul, 2003 2 commits
    • Matthias Clasen's avatar
      New templates. · 225b8cce
      Matthias Clasen authored
      2003-07-15  Matthias Clasen  <maclas@gmx.de>
      	* gtk/tmpl/gtkseparatortoolitem.sgml:
      	* gtk/tmpl/gtkradiotoolbutton.sgml:
      	* gtk/tmpl/gtktoggletoolbutton.sgml: New templates.
      	* gtk/gtk-docs.sgml: Include gtkseparatortoolitem.xml, gtkradiotoolbutton.xml and
      	* gtk/gtk.types: Add gtk_separator_tool_item_get_type, gtk_radio_tool_button_get_type and
      	* gtk/gtk-sections.txt: Add GtkSeparatorToolItem, GtkRadioToolButton and GtkToggleToolButton
    • Matthias Clasen's avatar
      API doc updates. · a0829aa4
      Matthias Clasen authored
  21. 13 Jul, 2003 2 commits
  22. 08 Jul, 2003 1 commit
  23. 02 Jul, 2003 1 commit
    • Owen Taylor's avatar
      Document named icon system. · 9e3f0c6f
      Owen Taylor authored
      Wed Jul  2 18:15:21 2003  Owen Taylor  <otaylor@redhat.com>
              * gtk/Makefile.am gtk/gtk-docs.sgml gtk/gtksections.txt
              gtk/tmpl/gtkicontheme.sgml: Document named icon system.
              * gtk/tmpl/gtkrc.sgml: Mention specifying named icons
              as @"icon-name".
              * gtk/tmpl/gtkimage.sgml: Add a cross-reference to stock
  24. 01 Jul, 2003 2 commits