1. 30 Oct, 2003 3 commits
  2. 29 Oct, 2003 1 commit
    • Soeren Sandmann's avatar
      Add this function; remove gtk_toolbar_highlight_drop_location() and · f36e68a1
      Soeren Sandmann authored
      Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
      	function; remove gtk_toolbar_highlight_drop_location() and
      	gtk_toolbar_unhighlight_drop_location().
      
      	Also fix bug where the number of overflowed items were miscounted.
      f36e68a1
  3. 25 Oct, 2003 1 commit
    • Soeren Sandmann's avatar
      Make this function take an index and a GtkToolItem. · 356df7f6
      Soeren Sandmann authored
      Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
      	this function take an index and a GtkToolItem.
      
      	* tests/testtoolbar.c (main): Make "Show Arrow" default to
      	true. Make one of the separators !draw and expand.
      	Update for new highlight_drop_location() API.
      
      	* gtk/gtktoolitem.[ch]: Remove "pack_end" property
      
      	* gtk/gtktoolbar.h: Formatting fixes.
      
      	* gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
      	separator tool items to expand.
      	(logical_to_physical, physical_to_logical): Fix off-by-one errors
      	(Fix #125472, Marco Pesenti Gritti)
      
      	* gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
      	(gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
      	return FALSE, not TRUE.
      	(gtk_separator_too_item_{set|get}_property,
      	(gtk_separator_tool_item_{set|get}_draw): new functions
      356df7f6
  4. 20 Oct, 2003 1 commit
    • Soeren Sandmann's avatar
      Add support for OS X like sliding of toolbar items during drag and drop, · 7c659465
      Soeren Sandmann authored
      Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Add support for OS X like sliding of toolbar items during drag and
      	drop, (#110919, Dave Bordoley)
      
      	Make dnd highlighting the responsibility of the
      	application. (Fixes #116298, Owen Taylor)
      
      	* gtk/gtktoolbar.h: Add prototypes for new API.
      
      	* gtk/gtktoolbar.c
      	(physical_to_logical, logical_to_physical): new functions
      	converting between "position including placeholders" and "position
      	excluding placeholders".
      	(gtk_toolbar_class_init): remove drag_leave and drag_motion
      	handlers
      	(struct _ToolbarContent): new struct containing information
      	related to toolbar items.
      	(gtk_toolbar_highlight_drop_location): new public function
      	(gtk_toolbar_unhighlight_drop_location): new public function
      
      	* tests/testtoolbar.c
      	(toolbar_drag_motion, toolbar_drag_leave): new functions
      	(main): connect to dnd signals.  Make the "New" item expand to
      	make drag and drop more exciting.
      7c659465
  5. 04 Oct, 2003 1 commit
  6. 30 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Doc formatting tweaks. · dbdc43be
      Matthias Clasen authored
      2003-10-01  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkmain.c: Doc formatting tweaks.
      
      	* gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
      
      	* gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio):
      	Use the same parameter names as in .c file, to pacify gtk-doc.
      
      	* gtk/gtktoggletoolbutton.[hc]:
      	* gtk/gtktoolbutton.[hc]:
      	* gtk/gtktoolitem.[hc]:
      	* gtk/gtktoolbar.[hc]:
      	* gtk/gtkcolorbutton.[hc]:
      	* gtk/gtkfontbutton.[hc]:
      	* gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the
      	source, not in the header.
      
      	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio):
      	Document these as 2.4 API additions.
      
      	* gtk/tmpl/gtkaction.sgml: Fix cross reference to GtkMenuMerge.
      
      	* gtk/gtk-sections.txt: Additions.
      
      	* gtk/tmpl/gtkitemfactory.sgml: Add hint to use #GtkUIManager instead.
      dbdc43be
  7. 17 Sep, 2003 1 commit
  8. 14 Sep, 2003 2 commits
  9. 29 Aug, 2003 1 commit
    • Soeren Sandmann's avatar
      Only treat buttons as homogeneous when they are narrower than 13 time the · 545b40a1
      Soeren Sandmann authored
      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.
      545b40a1
  10. 27 Aug, 2003 1 commit
    • Matthias Clasen's avatar
      Change the XML format: <Root> element is replaced by <ui>, <menu> element · cbc20c4d
      Matthias Clasen authored
      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.
      cbc20c4d
  11. 04 Aug, 2003 1 commit
    • Soeren Sandmann's avatar
      add new "is_important" property · 6f6d3a22
      Soeren Sandmann authored
      Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
      	property
      
      	* gtk/gtkradiotoolbutton.c
      	(gtk_radio_tool_button_new_from_widget): Don't take a stock id
      
      	* gtk/gtkradiotoolbutton.c
      	(gtk_radio_tool_button_new_with_stock_from_widget): make this
      	function take a stock_id.
      
      	* gtk/toolbar: documentation
      6f6d3a22
  12. 31 Jul, 2003 1 commit
  13. 30 Jul, 2003 1 commit
  14. 29 Jul, 2003 1 commit
    • 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
      	branched.
      
      	* gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
      05ce8747
  15. 18 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      By popular request give toolbuttons a border. · 80560b9d
      Soeren Sandmann authored
      Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	By popular request give toolbuttons a border.
      
      	* gtk/gtktoolitem.c
      	(gtk_tool_item_size_allocate):
      	(gtk_tool_item_size_request): don't request and allocate a border
      	around the child
      
      	* gtk/gtktoolbutton.c
      	(gtk_tool_button_size_allocate):
      	(gtk_tool_button_size_request): remove these functions
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_size_request):
      	(gtk_toolbar_size_allocate): request and allocate a border if we
      	have a shadow.
      80560b9d
  16. 08 Jul, 2003 3 commits
    • Soeren Sandmann's avatar
      remove GDK_EXPOSURE_MASK for INPUT_ONLY window same same same same · 81785924
      Soeren Sandmann authored
      Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
      	for INPUT_ONLY window
      	* gtk/gtkmenuitem.c (gtk_menu_item_realize): same
      	* gtk/gtknotebook.c (gtk_notebook_realize): same
      	* gtk/gtkexpander.c (gtk_expander_realize): same
      	* gtk/gtkrange.c (gtk_range_realize): same
      
      	Fix #116303
      81785924
    • Soeren Sandmann's avatar
      remove correction on x when detail is "menuitem". With the new menu look · 7913e63f
      Soeren Sandmann authored
      Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
      	when detail is "menuitem". With the new menu look is isn't needed
      	anymore.
      
      	* gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
      	resize here, so that tool items will get a chance to relayout
      	themselves based on the toolbar configuration.
      
      	change DEFAULT_SPACE_SIZE to 4 instead of 5
      
      	* gtk/gtktoolbar.c
      	Get rid of "!GTK_BIN (item)->child means separator". Separators
      	are widgets in their own right
      
      	change DEFAULT_SPACE_SIZE to 4 instead of 5
      
      	(get_space_size): remove this function
      	(toolbar_item_is_homogeneous): new function
      
      	* gtk/gtkseparatortoolitem.c
      	(gtk_separator_tool_item_size_request): new function.
      
      Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoggletoolbutton.h: use private data, add new
      	internal function _gtk_toggle_tool_button_get_button()
      
      	* gtk/gtktoolbutton.h: move to private data
      
      	* gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
      	private data.
      7913e63f
    • Soeren Sandmann's avatar
      fix a type check, (#116947, Krasimir Angelov) · b3b16beb
      Soeren Sandmann authored
      Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
      	type check, (#116947, Krasimir Angelov)
      
      	* gtk/gtktoolbar.c: Use new GtkToolItem accessors.
      
      	* gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
      	data. Not instance private data yet, because of bug 116921.
      
      	* gtk/gtktoolitem.h: new accessors:
      		gtk_tool_item_get_homogeneous ()
      		gtk_tool_item_get_expand ()
      		gtk_tool_item_get_pack_end ()
      		gtk_tool_item_get_use_drag_window ()
      b3b16beb
  17. 07 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      remove accidentally committed debugging spew · 71ff8228
      Soeren Sandmann authored
      Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkcellrenderertext.c
      	(gtk_cell_renderer_text_class_init): remove accidentally committed
      	debugging spew
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_paint_space_line): remove this function
      	(gtk_toolbar_expose): always propagate expose, even if the item is
      	a separator item
      
      	* gtk/gtkseparatortoolitem.c
      	(gtk_separator_tool_item_expose): moved here from gtktoolbar.c
      	(get_space_size): new function.
      	(get_space_style): new function
      71ff8228
  18. 04 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      new test for removing items · f91ae4ed
      Soeren Sandmann authored
      Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* tests/stresstest-toolbar.c: new test for removing items
      
      	* tests/testtoolbar.c: add a popup menu
      
      	* gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
      	  assert widget->parent == container when the container is a
      	  toolbar.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
      	simpler. Also make correct.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_button_press): make
      	popup_context_menu a boolean handled signal.
      f91ae4ed
  19. 03 Jul, 2003 1 commit
    • Soeren Sandmann's avatar
      Insert cast to fix warning. Assign something to old_value to quiet gcc · 1f894276
      Soeren Sandmann authored
      Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
      	fix warning. Assign something to old_value to quiet gcc
      
      	* gtk/gtkcalendar.c
      	(start_spinning): gtk_timeout_add->g_timeout_add
      
      	* gtk/gtkicontheme.c
      	(theme_lookup_icon): Make it compile (remove double semicolon)
      
      	* gtk/gtktoolbutton.c
      	(gtk_tool_button_class_init): Long comment about properties.
      	(gtk_tool_button_class_init): Improve text for "use_underline"
      	property
      	(gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
      	on whether the passed-in label has use_mnemonic set
      	(gtk_tool_button_create_menu_proxy): Split image cloning out in
      	new function. Make that function also handle image with pixbuf
      	storage.
      	(gtk_tool_button_construct_contents): Use gtk_widget_destroy()
      	instead of gtk_container_remove().
      	(gtk_tool_button_construct_contents): Fix eliding bug
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_finalize): New function. Unref tooltips, pointed out
      	by Morten Welinder
      	(gtk_toolbar_button_press): Make popup_context_menu signal provide
      	coordinates and button number
      
      	* tests/testtoolbar.c (main): Add new pixbuf toolbutton
      
      	* tests/apple-red.png: new file
      1f894276
  20. 02 Jul, 2003 2 commits
    • Owen Taylor's avatar
      Attach the style to the widget. · 8982aa67
      Owen Taylor authored
      Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
              style to the widget.
      8982aa67
    • Soeren Sandmann's avatar
      Add new toolbar headers · 26698473
      Soeren Sandmann authored
      Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtk.h: Add new toolbar headers
      
      	* tests/testtoolbar.c: new file
      
      	* tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
      
      	* gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
      
      Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktoolbar.c:
      	(gtk_toolbar_remove_tool_item): Fix bug where list is changed
      	inside a for loop (pointed out by Morten Welinder).
      	(gtk_toolbar_focus_home_or_end): Minor formatting change
      
      	Comments from Owen:
      
      	* gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
      	gtk_toolbar_elide_underscores instead.
      
      	* gtk/gtktoolbar.c: rename signal from focus_ends to
      	focus_home_or_end.
      	(_gtk_toolbar_elide_underscores): export this as an internal
      	function.
      	(gtk_toolbar_move_focus): add comment explaining difference to
      	gtk_toolbar_focus();
      	(gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
      	TAB_BACKWARD focus the right widgets in RTL mode
      
      	* gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
      	"label" and "icon" parameters
      
      	* gtk/gtktoolbutton.[ch]: remove icon_set property.
      26698473
  21. 29 Jun, 2003 1 commit
    • Soeren Sandmann's avatar
      gtkradiotoolbutton.c gtkradiotoolbutton.h gtktoggletoolbutton.c · fa336d28
      Soeren Sandmann authored
      Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtkradiotoolbutton.c
      	* gtkradiotoolbutton.h
      	* gtktoggletoolbutton.c
      	* gtktoggletoolbutton.h
      	* gtktoolbutton.c
      	* gtktoolbutton.h
      	* gtktoolitem.c
      	* gtktoolitem.h
      	* gtktoolbar.c
      	* gtktoolbar.h
      	* gtkseparatortoolitem.c
      	* gtkseparatortoolitem.h
      
      	New toolbar.
      fa336d28
  22. 05 Jun, 2003 1 commit
  23. 30 Jan, 2003 1 commit
    • Daniel Elstner's avatar
      New helper function that sets the icon's and label's packing options and · e12d5fb2
      Daniel Elstner authored
      2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
      
      	* gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
      	function that sets the icon's and label's packing options and
      	visibility based on toolbar->style.
      
      	(gtk_toolbar_internal_insert_element):
      	(gtk_real_toolbar_style_changed): Make use of
      	set_child_packing_and_visibility() to clean up the code and get
      	the packing right for icon-only/text-only toolbars. (#104679)
      
      	(get_first_child): Remove, and use gtk_bin_get_child() instead.
      e12d5fb2
  24. 23 Jan, 2003 1 commit
  25. 26 Nov, 2002 1 commit
  26. 07 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add ::screen-changed signal. · 100286ac
      Owen Taylor authored
      Thu Nov  7 12:53:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.[ch] gtk/gtkwindow.c gtk/gtkinvisible.c:
              Add ::screen-changed signal.
      
              * gtk/gtkfontsel.c gtk/gtktoolbar.c: Use ::screen-changed
              signal to simplify logic.
      100286ac
  27. 02 Nov, 2002 2 commits
    • Owen Taylor's avatar
      Add startup notification hooks - mostly based on patch by Havoc Pennington · accc3a33
      Owen Taylor authored
      Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              Add startup notification hooks - mostly based on patch
              by Havoc Pennington in #96772.
      
              * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
              gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
              new function that indicates an application has finished starting
              up.
      
              * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
              (_gdk_windowing_set_default_display): store value of
              DESKTOP_STARTUP_ID on the default screen, and clear it from the
              environment.
      
              * gdk/x11/gdkdisplay-x11.c:
              Set _NET_STARTUP_ID hint on display's group leader window.
      
              * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
              function to toggle whether we automatically broadcast that we've
              started up, after mapping the first toplevel window.
              (gtk_window_map): call gdk_screen_notify_startup_complete() by
              default, unless enabled by above.
      
              * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
              Couple of warning fixes.
      accc3a33
    • Matthias Clasen's avatar
      00943af8
  28. 31 Oct, 2002 1 commit
  29. 25 Oct, 2002 1 commit
  30. 22 Oct, 2002 2 commits
  31. 09 Oct, 2002 1 commit
    • Manish Singh's avatar
      Deprecation cleanup · cb7c950a
      Manish Singh authored
      Tue Oct  8 17:34:26 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkmain.c gtk/gtkscrolledwindow.[ch] gtk/gtksettings.c
              gtk/gtkstatusbar.[ch] gtk/gtkstyle.c gtk/gtktoolbar.[ch]
              gtk/gtkviewport.[ch] gtk/gtkwindow.[ch]: Deprecation cleanup
      cb7c950a
  32. 07 Sep, 2002 1 commit